PageSourceSearch

https://printarex.com/assets/index-COb3BWG8.js

js printarex.com collected 2026-10-02 06:27:17 UTC 877,835 bytes, 1,267 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardLayout-BM16B6CL.js","assets/popover-ChSfy2t1.js","assets/index-zqNstspn.js","assets/returns-CNCTRRtN.js","assets/notification-badges-CADvHd5L.js","assets/return-routes-CAWP2IJM.js","assets/customer-notification-time-CVl_AceL.js","assets/useSubscription-DCTWm10W.js","assets/useIsomorphicLayoutEffect-D8rpVvO2.js","assets/useMutation-BQY-xsoU.js","assets/bell-Dyv3Q0M1.js","assets/circle-alert-CCGVUS_b.js","assets/inbox-DP3Zkz0D.js","assets/shield-f_xgTcDn.js","assets/credit-card-D8f3Mq8o.js","assets/circle-help-CeQMJ-ca.js","assets/order-queries-5Y6DjekV.js","assets/layers-DMIgUnwW.js","assets/message-square-B4jfBKCV.js","assets/rocket-BT39_0nP.js","assets/file-text-BTkHYJBq.js","assets/package-check-DVUPGXZC.js","assets/history-TOTve4JH.js","assets/warehouse-fcMEA1Ar.js","assets/store-BKX9YTX3.js","assets/crown-CHQJg5qV.js","assets/life-buoy-nGCXBf5U.js","assets/use-is-mobile-CKUsbUY4.js","assets/HomePage-CS0sgAxM.js","assets/PlatformIntegrationLinks-Bd29A_6D.js","assets/circle-check-big-BANmrhMR.js","assets/shopping-cart-D6WFcoX6.js","assets/truck-u2tLuypV.js","assets/LoginPage-BDEUO4Xf.js","assets/AuthSplitLayout-IcUxTrOd.js","assets/oauth-state-D5wXNq-F.js","assets/alert-BcZXKgYj.js","assets/FacebookIcon-CEu474I0.js","assets/checkbox-X5f5njlo.js","assets/tabs-f61vqlqW.js","assets/OtpInput-BRO2BZsk.js","assets/smartphone-C_rdlJMT.js","assets/loader-circle-OXwY4kRz.js","assets/arrow-left-Fzfx8Qzj.js","assets/useTurnstileConfig-CXAZq54D.js","assets/provider-portal-url-ef9HQa0_.js","assets/lock-OBFruAMx.js","assets/eye-off-BuoHyqzA.js","assets/eye-BSNkfUPT.js","assets/factory-CT2v7j4Y.js","assets/RegisterPage-B2jsyvZa.js","assets/user-CmrQUDg0.js","assets/BecomeProviderPage-BIVlUsiq.js","assets/trending-up-HRziUnAo.js","assets/chart-column-DAyHRqnv.js","assets/headphones-CmuD9C99.js","assets/circle-check-BvfgDFVk.js","assets/GoogleCallbackPage-CTDvTj-_.js","assets/csp-nonce-C9tyM8jG.js","assets/refresh-cw-CoRVSjNV.js","assets/FacebookCallbackPage-4_wc-DWy.js","assets/EmailVerificationPage-DMLWceqZ.js","assets/emailVerification-CUa_Xbrm.js","assets/circle-x-Brpt41T7.js","assets/ForgotPasswordPage-Dpel-WGv.js","assets/passwordReset-CDZi63v_.js","assets/label-DNJsNNpl.js","assets/ResetPasswordPage-C7HuZ_n6.js","assets/ProductDetailsPage-CWfqC-g2.js","assets/purify.es-CqxHTgmJ.js","assets/provider-stock-photos-C03tfuPR.js","assets/catalog-C8V3WKfP.js","assets/delivery-estimate-kAMKet08.js","assets/product-availability-U8BoQtw7.js","assets/table-Dmz2t2iI.js","assets/download-DnUvfH58.js","assets/badge-BtMzbs5Q.js","assets/index-BXej4b60.js","assets/tooltip-B1SSuT69.js","assets/index-CD_9dLLA.js","assets/shipping-zone-queries-C8tKJ9vX.js","assets/parse-product-details-BUThhkJR.js","assets/info-CQzPDbS5.js","assets/select-Y1pMYI5s.js","assets/triangle-alert-BLtiBg_s.js","assets/provider-selection-queries-DngM0zpQ.js","assets/textarea-Djn1xzmr.js","assets/plus-CuL11dK2.js","assets/radio-group-DVsmUsIt.js","assets/square-pen-Bo0qNIoz.js","assets/copy-BpNy9jqS.js","assets/clock-BjT2jRP1.js","assets/calendar-D8UFs2zl.js","assets/star-IL9DOKsY.js","assets/zap-D6uNgPAN.js","assets/ruler-Bneyiuix.js","assets/box-DvKsuQy5.js","assets/circle-play-BoFy124d.js","assets/award-C-JflutH.js","assets/tag-CrwCp0XH.js","assets/branding-design-entry-Bao_ADcR.js","assets/house-C3hDUInT.js","assets/chevron-left-DN3ceSAL.js","assets/minus-BWc2G7k0.js","assets/file-COpwJmwv.js","assets/zoom-out-BMbkwNao.js","assets/CatalogBrowsePage-Crj08an-.js","assets/AutoRotateCarousel-wiTqLoBg.js","assets/image-CumAHAoL.js","assets/currency-CZVg9M6_.js","assets/catalog-display-copy-Cf7RNyeu.js","assets/CategoryBrowsePage-CsqQ0gFB.js","assets/filter-BSJpe28G.js","assets/grid-3x3-DhwKuy9x.js","assets/list-But-YFFG.js","assets/SubcategoryBrowsePage-Bk7AhHFa.js","assets/ProductsListPage-Bz9TkD6X.js","assets/ProductCardSkeleton-DI6e-TXO.js","assets/AccountPage-DzpZT5tU.js","assets/billing-address-DtCq64Wr.js","assets/use-billing-country-DpG4cJB6.js","assets/OrdersPage-DYx7cElj.js","assets/index.module-BoyMkH3L.js","assets/collapsible-DEDqKRF_.js","assets/page-wrapper-C1MiCEiJ.js","assets/order-mutations-CGHpGUFC.js","assets/safe-random-uuid-C5emDdYB.js","assets/CancelOrderDialog-BQZ1ZRuO.js","assets/order-amounts-Dt_Iupbv.js","assets/OrderTransitionalStatus-CxRrYL1z.js","assets/use-toast-BXBb_A5U.js","assets/use-store-integration-D58qmjWd.js","assets/store-integration-C2tBoZ8H.js","assets/selected-variants-igcVJzbJ.js","assets/useLazyQuery-DLiXDTCF.js","assets/index-Bku_nFze.js","assets/proxy-Cqkl-YI8.js","assets/brush-D1kxxCWa.js","assets/timer-6J1ioEQD.js","assets/retry-payment-status-yVo35F6j.js","assets/clipboard-check-IzwTOC__.js","assets/package-x-zZ8ck0zF.js","assets/ban-BB8yjAtQ.js","assets/cog-8s9BwiLb.js","assets/ellipsis-C1Q3tS1k.js","assets/receipt-C_HWBHxI.js","assets/OrderDetailsPage-BDIVSdK4.js","assets/checkout-errors-B_gvqWjO.js","assets/chevron-up-9MXJvrF7.js","assets/separator-
1BZBWtPhC.js","assets/store-order-line-totals-DQv1bwuF.js","assets/external-link-BFGzlI4f.js","assets/gift-2tKJY17-.js","assets/building-2-D0TjEFtb.js","assets/wallet-CQmGgUi4.js","assets/pen-DiaUSYyL.js","assets/scale-UNitk8Bj.js","assets/undo-2-Ni6d2L87.js","assets/camera-DUiGx1gE.js","assets/StorePendingApprovalOrderDetailPage-Dekn65lZ.js","assets/personalization-CQwG9-sw.js","assets/AfsReturnPage-CA40tvqG.js","assets/payment-integration-CVfa0zAo.js","assets/posthog-BmmK-gfd.js","assets/customer-telemetry-sanitization-DJncNWuW.js","assets/retry-checkout-attempt-TsElKsB7.js","assets/RetryPaymentPage-Cqcv5Caz.js","assets/AfsCopyAndPayWidget-BDKGQ9l8.js","assets/PaymentMethodSelector-DZxKhu4a.js","assets/receipt-text-C_moknh7.js","assets/lock-keyhole-D0U_4f_a.js","assets/checkout-tokens-BPiJkMXc.css","assets/AfsBillingReturnPage-DzMiiQ5z.js","assets/card-decline-messages-B_nbAiVJ.js","assets/SearchPage-3Vv6UTSd.js","assets/SubscriptionPage-CZ3_s3wA.js","assets/afs-widget-security-CjRizinP.js","assets/subscription-payment-reconciliation-mYDqMlBp.js","assets/premium-upgrade-intent-1CbACDTR.js","assets/SubscriptionAfsReturnRoute-CO4Kn5AB.js","assets/MobileSubscriptionCheckoutPage-CerzNONX.js","assets/DashboardPage-BU6Bpjb_.js","assets/design-management-client-DqWSUC1T.js","assets/use-payment-methods-CvRorXrQ.js","assets/file-pen-Bj3-trGe.js","assets/StoresPage-I80hX_Gf.js","assets/users-rPJGObV1.js","assets/AmazonDisconnectHandoffDialog-ApF2ZIfL.js","assets/MarketSetupDialog-C4EhdBxc.js","assets/link-2-Dgn9Itc_.js","assets/StoreDetailsPage-ovGXmT5N.js","assets/progress-B1h2wEL6.js","assets/design-mutations-C6bSVE-k.js","assets/UnpublishConfirmDialog-DulkEJ4a.js","assets/trash-2-BuLADKDU.js","assets/BrandingPage-DPYv-RIJ.js","assets/branding-designs-BhEYpWPr.js","assets/bookmark-Bba9QOQV.js","assets/BrandingProductsPage-nOlsSok0.js","assets/product-queries-DXMKt7VH.js","assets/BrandingDesignPage-Dl-Bc-rH.js","assets/design-thumbnail-staging-CcfTqDgm.js","assets/use-file-upload-C1wW8AZt.js","assets/upload-BjtQ_TFi.js","assets/underline-B7BLDGk7.js","assets/catalog-theme-FMWA3Ex-.js","assets/studio-sidebar-static-copy-Cmd7EQ2q.js","assets/fingerprint-CzFh1QW3.js","assets/arrow-up-BdFmwXbS.js","assets/save-D3i9k1oF.js","assets/pencil-line-B8Zujcsk.js","assets/customization-stores-static-copy-BGul_q-W.js","assets/design-thumbnail-staging-Dqi2xTi5.css","assets/WizardStepIndicator-BRTbVHCX.js","assets/RenderProfileBMockupGenerator-CajkoLJd.js","assets/minimize-2-DrZMyFBZ.js","assets/dynamic-pricing-queries-_AEE9uwM.js","assets/BillingPage-9ROiFrmc.js","assets/SupportPage-CA3OV9Ak.js","assets/HelpPage-BakVTQKm.js","assets/LexicalArticleRenderer-0CyS1Bnw.js","assets/LexicalArticleRenderer-CAcGMULS.css","assets/thumbs-up-DyE5mlLG.js","assets/thumbs-down-Mi4DDKTr.js","assets/SettingsPage-B6qbDf6M.js","assets/index-MevfkPFD.js","assets/clock-3-CMAc593Q.js","assets/key-round-CIwTIlwk.js","assets/CardFactoryPage-i1pd_Va2.js","assets/MyDesignsPage-BFvtHV0Z.js","assets/support-queries-Dj-9UKZV.js","assets/evidence-DPvJe72G.js","assets/return-request-draft-BLqehDZt.js","assets/vocabulary-BqYYK51g.js","assets/NotificationsPage-DfMf92O0.js","assets/MessagesPage-ULkK9JJg.js","assets/MessageDetailPage-RWRrMTOu.js","assets/NotificationSettingsPage-DOZk9Dv9.js","assets/NotFoundPage-CbCsPPXk.js","assets/MyTicketsPage-B0cUVA41.js","assets/TicketBadges-CkH2uoSs.js","assets/CreateTicketPage-DeMKcfM-.js","assets/MessageAttachments-vCjV0KLj.js","assets/list-ordered-BpggqWkA.js","assets/PhoneCameraModal-BpUvPkXL.js","assets/image-plus-BJx8oGza.js","assets/paperclip-BxD6n2UU.js","assets/send-BSMegHcq.js","assets/TicketDetailsPage-Bm__87ir.js","assets/KnowledgeBasePage-D2QUHPL9.js","assets/ArticleDetailsPage-DgIgR0KO.js","assets/CameraUploadPage-quZOu7Nb.js","assets/unauthenticated-apollo-client-hg84hwiD.js","assets/video-OjlM7fhR.js","assets/SharedDesignPage-Ca7GEpVJ.js","assets/design-share-format-8vknJmS9.js","assets/TemplatesPage-CS69KG1O.js","assets/index-DJ-jEBIQ.js","assets/persisted-thumbnail-reconciliation-C84c2bXy.js","assets/customization-personal-static-copy-eFdYuxYv.js","assets/use-reduced-motion-CyogHqdE.js","assets/transaction-fee-queries-DGXPSMlD.js","assets/CustomizationForYourselfWizard-CGTPDc29.js","assets/hub-validation-Dvw-uHbK.js","assets/hub-mutations-BsAMoRaG.js","assets/hub-queries-md-FJiyf.js","assets/test-mockup-o3iU5Cqj.js","assets/PrivacyPolicyPage-CozM_oCH.js","assets/database-CSNxemxL.js","assets/TermsOfServicePage-AT6IbdHW.js","assets/CookiePolicyPage-BNShB_9E.js","assets/HowToUsePage-hlv_60dn.js","assets/BulkOrdersPage-Bu_5K8HA.js","assets/PublicPricingPage-Cs7PPP9D.js","assets/AmazonIntegrationPage-1yJhUSLi.js","assets/StorePlatformIntegrationPage-CBcKpdS4.js","assets/CareersPage-Ca2qjrH0.js","assets/AboutPage-_IZH2Ce2.js","assets/ShopifyProofOfResolutionPage-6l2nrAdt.js","assets/ReturnsListPage-rngxFRVP.js","assets/return-reason-display-QGRWGUV9.js","assets/ReturnDetailPage-
vendor: 11,747 bytes, lines 1-18
1DChZNUPN.js","assets/HubInventoryPage-BbYxSpqJ.js","assets/HubBillingPage-NCHUg_MR.js","assets/hub-storage-billing-R_hg4gEp.js","assets/HubStockDetailPage-D-breZqG.js","assets/hub-outbound-payment-DZKGVjk8.js","assets/HubAfsReturnPage-C6qCwd8g.js","assets/HubOutboundAfsReturnPage-DDRJCyVA.js","assets/PoliciesHubPage--oTjxiUu.js","assets/policy-queries-C2ojduXd.js","assets/PolicyDetailPage-DpRbnO-m.js"])))=>i.map(i=>d[i]);
2var AD=Object.defineProperty;var ND=(e,t,n)=>t in e?AD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qn=(e,t,n)=>ND(e,typeof t!="symbol"?t+"":t,n);function A1(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();const DD="modulepreload",kD=function(e){return"/"+e},ax={},de=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=c(n.map(d=>{if(d=kD(d),d in ax)return;ax[d]=!0;const g=d.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${v}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":DD,g||(S.as="script"),S.crossOrigin="",S.href=d,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((b,w)=>{S.addEventListener("load",b),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})}))}function l(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.then(c=>{for(const f of c||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},ll={};/**
3 * @license React
4 * react-jsx-runtime.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var ix;function MD(){if(ix)return ll;ix=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:a,key:c,ref:o!==void 0?o:null,props:l}}return ll.Fragment=t,ll.jsx=n,ll.jsxs=n,ll}var ox;function jD(){return ox||(ox=1,Ip.exports=MD()),Ip.exports}var m=jD(),Lp={exports:{}},Re={};/**
11 * @license React
12 * react.production.js
13 *
14 * Copyright (c) Meta Platforms, Inc. and affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var sx;function ID(){if(sx)return Re;sx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,T={};function C(D,F,Z){this.props=D,this.context=F,this.refs=T,this.updater=Z||w}C.prototype.isReactComponent={},C.prototype.setState=function(D,F){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,F,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=C.prototype;function A(D,F,Z){this.props=D,this.context=F,this.refs=T,this.updater=Z||w}var N=A.prototype=new O;N.constructor=A,_(N,C.prototype),N.isPureReactComponent=!0;var M=Array.isArray;function P(){}var U={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function W(D,F,Z){var ae=Z.ref;return{$$typeof:e,type:D,key:F,ref:ae!==void 0?ae:null,props:Z}}function te(D,F){return W(D.type,F,D.props)}function se(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function me(D){var F={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Z){return F[Z]})}var re=/\/+/g;function ce(D,F){return typeof D=="object"&&D!==null&&D.key!=null?me(""+D.key):F.toString(36)}function oe(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(P,P):(D.status="pending",D.then(function(F){D.status==="pending"&&(D.status="fulfilled",D.value=F)},function(F){D.status==="pending"&&(D.status="rejected",D.reason=F)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function I(D,F,Z,ae,ge){var ye=typeof D;(ye==="undefined"||ye==="boolean")&&(D=null);var fe=!1;if(D===null)fe=!0;else switch(ye){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(D.$$typeof){case e:case t:fe=!0;break;case g:return fe=D._init,I(fe(D._payload),F,Z,ae,ge)}}if(fe)return ge=ge(D),fe=ae===""?"."+ce(D,0):ae,M(ge)?(Z="",fe!=null&&(Z=fe.replace(re,"$&/")+"/"),I(ge,F,Z,"",function(Gt){return Gt})):ge!=null&&(se(ge)&&(ge=te(ge,Z+(ge.key==null||D&&D.key===ge.key?"":(""+ge.key).replace(re,"$&/")+"/")+fe)),F.push(ge)),1;fe=0;var nt=ae===""?".":ae+":";if(M(D))for(var Ae=0;Ae<D.length;Ae++)ae=D[Ae],ye=nt+ce(ae,Ae),fe+=I(ae,F,Z,ye,ge);else if(Ae=b(D),typeof Ae=="function")for(D=Ae.call(D),Ae=0;!(ae=D.next()).done;)ae=ae.value,ye=nt+ce(ae,Ae++),fe+=I(ae,F,Z,ye,ge);else if(ye==="object"){if(typeof D.then=="function")return I(oe(D),F,Z,ae,ge);throw F=String(D),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return fe}function V(D,F,Z){if(D==null)return D;var ae=[],ge=0;return I(D,ae,"","",function(ye){return F.call(Z,ye,ge++)}),ae}function Y(D){if(D._status===-1){var F=D._result;F=F(),F.then(function(Z){(D._status===0||D._status===-1)&&(D._status=1,D._result=Z)},function(Z){(D._status===0||D._status===-1)&&(D._status=2,D._result=Z)}),D._status===-1&&(D._status=0,D._result=F)}if(D._status===1)return D._result.default;throw D._result}var $=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},le={map:V,forEach:function(D,F,Z){V(D,function(){F.apply(this,arguments)},Z)},count:function(D){var F=0;return V(D,function(){F++}),F},toArray:function(D){return V(D,function(F){return F})||[]},only:function(D){if(!se(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Re.Activity=v,Re.Children=le,Re.Component=C,Re.Fragment=n,Re.Profiler=o,Re.PureComponent=A,Re.StrictMode=a,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Re.__COMPILER_RUNTIME={__proto__:null,c:function(D){return U.H.useMemoCache(D)}},Re.cache=function(D){return function(){return D.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(D,F,Z){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ae=_({},D.props),ge=D.key;if(F!=null)for(ye in F.key!==void 0&&(ge=""+F.key),F)!G.call(F,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&F.ref===void 0||(ae[ye]=F[ye]);var ye=arguments.length-2;if(ye===1)ae.children=Z;else if(1<ye){for(var fe=Array(ye),nt=0;nt<ye;nt++)fe[nt]=arguments[nt+2];ae.children=fe}return W(D.type,ge,ae)},Re.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:l,_context:D},D},Re.createElement=function(D,F,Z){var ae,ge={},ye=null;if(F!=null)for(ae in F.key!==void 0&&(ye=""+F.key),F)G.call(F,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ge[ae]=F[ae]);var fe=arguments.length-2;if(fe===1)ge.children=Z;else if(1<fe){for(var nt=Array(fe),Ae=0;Ae<fe;Ae++)nt[Ae]=arguments[Ae+2];ge.children=nt}if(D&&D.defaultProps)for(ae in fe=D.defaultProps,fe)ge[ae]===void 0&&(ge[ae]=fe[ae]);return W(D,ye,ge)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(D){return{$$typeof:f,render:D}},Re.isValidElement=se,Re.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:Y}},Re.memo=function(D,F){return{$$typeof:d,type:D,compare:F===void 0?null:F}},Re.startTransition=function(D){var F=U.T,Z={};U.T=Z;try{var ae=D(),ge=U.S;ge!==null&&ge(Z,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(P,$)}catch(ye){$(ye)}finally{F!==null&&Z.types!==null&&(F.types=Z.types),U.T=F}},Re.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Re.use=function(D){return U.H.use(D)},Re.useActionState=function(D,F,Z){return U.H.useActionState(D,F,Z)},Re.useCallback=function(D,F){return U.H.useCallback(D,F)},Re.useContext=function(D){return U.H.useContext(D)},Re.useDebugValue=function(){},Re.useDeferredValue=function(D,F){return U.H.useDeferredValue(D,F)},Re.useEffect=function(D,F){return U.H.useEffect(D,F)},Re.useEffectEvent=function(D){return U.H.useEffectEvent(D)},Re.useId=function(){return U.H.useId()},Re.useImperativeHandle=function(D,F,Z){return U.H.useImperativeHandle(D,F,Z)},Re.useInsertionEffect=function(D,F){return U.H.useInsertionEffect(D,F)},Re.useLayoutEffect=function(D,F){return U.H.useLayoutEffect(D,F)},Re.useMemo=function(D,F){return U.H.useMemo(D,F)},Re.useOptimistic=function(D,F){return U.H.useOptimistic(D,F)},Re.useReducer=function(D,F,Z){return U.H.useReducer(D,F,Z)},Re.useRef=function(D){return U.H.useRef(D)},Re.useState=function(D){return U.H.useState(D)},Re.useSyncExternalStore=function(D,F,Z){return U.H.useSyncExternalStore(D,F,Z)},Re.useTransition=function(){return U.H.useTransition()},Re.version="19.2.5",Re}var lx;function tu(){return lx||(lx=1,Lp.exports=ID()),Lp.exports}var x=tu();const ne=If(x),Vg=A1({__proto__:null,default:ne},[x]);var Pp={exports:{}},ul={}
vendor: 12,978 bytes, lines 18-44
18,Up={exports:{}},zp={};/**
19 * @license React
20 * scheduler.production.js
21 *
22 * Copyright (c) Meta Platforms, Inc. and affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var ux;function LD(){return ux||(ux=1,(function(e){function t(I,V){var Y=I.length;I.push(V);e:for(;0<Y;){var $=Y-1>>>1,le=I[$];if(0<o(le,V))I[$]=V,I[Y]=le,Y=$;else break e}}function n(I){return I.length===0?null:I[0]}function a(I){if(I.length===0)return null;var V=I[0],Y=I.pop();if(Y!==V){I[0]=Y;e:for(var $=0,le=I.length,D=le>>>1;$<D;){var F=2*($+1)-1,Z=I[F],ae=F+1,ge=I[ae];if(0>o(Z,Y))ae<le&&0>o(ge,Z)?(I[$]=ge,I[ae]=Y,$=ae):(I[$]=Z,I[F]=Y,$=F);else if(ae<le&&0>o(ge,Y))I[$]=ge,I[ae]=Y,$=ae;else break e}}return V}function o(I,V){var Y=I.sortIndex-V.sortIndex;return Y!==0?Y:I.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],g=1,v=null,S=3,b=!1,w=!1,_=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function N(I){for(var V=n(d);V!==null;){if(V.callback===null)a(d);else if(V.startTime<=I)a(d),V.sortIndex=V.expirationTime,t(h,V);else break;V=n(d)}}function M(I){if(_=!1,N(I),!w)if(n(h)!==null)w=!0,P||(P=!0,me());else{var V=n(d);V!==null&&oe(M,V.startTime-I)}}var P=!1,U=-1,G=5,W=-1;function te(){return T?!0:!(e.unstable_now()-W<G)}function se(){if(T=!1,P){var I=e.unstable_now();W=I;var V=!0;try{e:{w=!1,_&&(_=!1,O(U),U=-1),b=!0;var Y=S;try{t:{for(N(I),v=n(h);v!==null&&!(v.expirationTime>I&&te());){var $=v.callback;if(typeof $=="function"){v.callback=null,S=v.priorityLevel;var le=$(v.expirationTime<=I);if(I=e.unstable_now(),typeof le=="function"){v.callback=le,N(I),V=!0;break t}v===n(h)&&a(h),N(I)}else a(h);v=n(h)}if(v!==null)V=!0;else{var D=n(d);D!==null&&oe(M,D.startTime-I),V=!1}}break e}finally{v=null,S=Y,b=!1}V=void 0}}finally{V?me():P=!1}}}var me;if(typeof A=="function")me=function(){A(se)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ce=re.port2;re.port1.onmessage=se,me=function(){ce.postMessage(null)}}else me=function(){C(se,0)};function oe(I,V){U=C(function(){I(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(I){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var Y=S;S=V;try{return I()}finally{S=Y}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(I,V){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Y=S;S=I;try{return V()}finally{S=Y}},e.unstable_scheduleCallback=function(I,V,Y){var $=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?$+Y:$):Y=$,I){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=Y+le,I={id:g++,callback:V,priorityLevel:I,startTime:Y,expirationTime:le,sortIndex:-1},Y>$?(I.sortIndex=Y,t(d,I),n(h)===null&&I===n(d)&&(_?(O(U),U=-1):_=!0,oe(M,Y-$))):(I.sortIndex=le,t(h,I),w||b||(w=!0,P||(P=!0,me()))),I},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(I){var V=S;return function(){var Y=S;S=V;try{return I.apply(this,arguments)}finally{S=Y}}}})(zp)),zp}var cx;function PD(){return cx||(cx=1,Up.exports=LD()),Up.exports}var Fp={exports:{}},Yt={};/**
27 * @license React
28 * react-dom.production.js
29 *
30 * Copyright (c) Meta Platforms, Inc. and affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var fx;function UD(){if(fx)return Yt;fx=1;var e=tu();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)d+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(h,d,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:d,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Yt.createPortal=function(h,d){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return l(h,d,null,g)},Yt.flushSync=function(h){var d=c.T,g=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=d,a.p=g,a.d.f()}},Yt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(h,d))},Yt.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Yt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var g=d.as,v=f(g,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;g==="style"?a.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:b}):g==="script"&&a.d.X(h,{crossOrigin:v,integrity:S,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Yt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var g=f(d.as,d.crossOrigin);a.d.M(h,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(h)},Yt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var g=d.as,v=f(g,d.crossOrigin);a.d.L(h,g,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Yt.preloadModule=function(h,d){if(typeof h=="string")if(d){var g=f(d.as,d.crossOrigin);a.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(h)},Yt.requestFormReset=function(h){a.d.r(h)},Yt.unstable_batchedUpdates=function(h,d){return h(d)},Yt.useFormState=function(h,d,g){return c.H.useFormState(h,d,g)},Yt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Yt.version="19.2.5",Yt}var dx;function N1(){if(dx)return Fp.exports;dx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fp.exports=UD(),Fp.exports}var hx;function zD(){if(hx)return ul;hx=1;/**
35 * @license React
36 * react-dom-client.production.js
37 *
38 * Copyright (c) Meta Platforms, Inc. and affiliates.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE file in the root directory of this source tree.
42 */var e=PD(),t=tu(),n=N1();function a(r){var i="https://react.dev/errors/"+r;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var i=r,s=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(s=i.return),r=i.return;while(r)}return i.tag===3?s:null}function c(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function f(r){if(r.tag===31){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function h(r){if(l(r)!==r)throw Error(a(188))}function d(r){var i=r.alternate;if(!i){if(i=l(r),i===null)throw Error(a(188));return i!==r?null:r}for(var s=r,u=i;;){var p=s.return;if(p===null)break;var y=p.alternate;if(y===null){if(u=p.return,u!==null){s=u;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===s)return h(p),r;if(y===u)return h(p),i;y=y.sibling}throw Error(a(188))}if(s.return!==u.return)s=p,u=y;else{for(var E=!1,R=p.child;R;){if(R===s){E=!0,s=p,u=y;break}if(R===u){E=!0,u=p,s=y;break}R=R.sibling}if(!E){for(R=y.child;R;){if(R===s){E=!0,s=y,u=p;break}if(R===u){E=!0,u=y,s=p;break}R=R.sibling}if(!E)throw Error(a(189))}}if(s.alternate!==u)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?r:i}function g(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r;for(r=r.child;r!==null;){if(i=g(r),i!==null)return i;r=r.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),A=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(r){return r===null||typeof r!="object"?null:(r=se&&r[se]||r["@@iterator"],typeof r=="function"?r:null)}var re=Symbol.for("react.client.reference");function ce(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===re?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList";case W:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case A:return r.displayName||"Context";case O:return(r._context.displayName||"Context")+".Consumer";case N:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case U:return i=r.displayName||null,i!==null?i:ce(r.type)||"Memo";case G:i=r._payload,r=r._init;try{return ce(r(i))}catch{}}return null}var oe=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},$=[],le=-1;function D(r){return{current:r}}function F(r){0>le||(r.current=$[le],$[le]=null,le--)}function Z(r,i){le++,$[le]=r.current,r.current=i}var ae=D(null),ge=D(null),ye=D(null),fe=D(null);function nt(r,i){switch(Z(ye,i),Z(ge,r),Z(ae,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?RS(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=RS(i),r=OS(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}F(ae),Z(ae,r)}function Ae(){F(ae),F(ge),F(ye)}function Gt(r){r.memoizedState!==null&&Z(fe,r);var i=ae.current,s=OS(i,r.type);i!==s&&(Z(ge,r),Z(ae,s))}function Sn(r){ge.current===r&&(F(ae),F(ge)),fe.current===r&&(F(fe),al._currentValue=Y)}var pr,Zn;function Mn(r){if(pr===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);pr=i&&i[1]||"",Zn=-1<s.stack.indexOf(`
43    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
44`+pr+r+Zn}var oi=!1;function da(r,i){if(!r||oi)return"";oi=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Q){var H=Q}Reflect.construct(r,[],ee)}else{try{ee.call()}catch(Q){H=Q}r.call(ee.prototype)}}else{try{throw Error()}catch(Q){H=Q}(ee=r())&&typeof ee.catch=="function"&&ee.catch(function(){})}}
vendor: 6,157 bytes, lines 44-49
44catch(Q){if(Q&&H&&typeof Q.stack=="string")return[Q.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),E=y[0],R=y[1];if(E&&R){var k=E.split(`
45`),q=R.split(`
46`);for(p=u=0;u<k.length&&!k[u].includes("DetermineComponentFrameRoot");)u++;for(;p<q.length&&!q[p].includes("DetermineComponentFrameRoot");)p++;if(u===k.length||p===q.length)for(u=k.length-1,p=q.length-1;1<=u&&0<=p&&k[u]!==q[p];)p--;for(;1<=u&&0<=p;u--,p--)if(k[u]!==q[p]){if(u!==1||p!==1)do if(u--,p--,0>p||k[u]!==q[p]){var K=`
47`+k[u].replace(" at new "," at ");return r.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",r.displayName)),K}while(1<=u&&0<=p);break}}}finally{oi=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?Mn(s):""}function vs(r,i){switch(r.tag){case 26:case 27:case 5:return Mn(r.type);case 16:return Mn("Lazy");case 13:return r.child!==i&&i!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return da(r.type,!1);case 11:return da(r.type.render,!1);case 1:return da(r.type,!0);case 31:return Mn("Activity");default:return""}}function ha(r){try{var i="",s=null;do i+=vs(r,s),s=r,r=r.return;while(r);return i}catch(u){return`
48Error generating stack: `+u.message+`
49`+u.stack}}var mr=Object.prototype.hasOwnProperty,Qi=e.unstable_scheduleCallback,Nr=e.unstable_cancelCallback,pu=e.unstable_shouldYield,Dr=e.unstable_requestPaint,Xt=e.unstable_now,bd=e.unstable_getCurrentPriorityLevel,Jt=e.unstable_ImmediatePriority,kr=e.unstable_UserBlockingPriority,Yi=e.unstable_NormalPriority,Sd=e.unstable_LowPriority,si=e.unstable_IdlePriority,xd=e.log,mu=e.unstable_setDisableYieldValue,Mr=null,Et=null;function Xn(r){if(typeof xd=="function"&&mu(r),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Mr,r)}catch{}}var wt=Math.clz32?Math.clz32:gu,Ed=Math.log,wd=Math.LN2;function gu(r){return r>>>=0,r===0?32:31-(Ed(r)/wd|0)|0}var li=256,Ki=262144,pa=4194304;function Qt(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Wi(r,i,s){var u=r.pendingLanes;if(u===0)return 0;var p=0,y=r.suspendedLanes,E=r.pingedLanes;r=r.warmLanes;var R=u&134217727;return R!==0?(u=R&~y,u!==0?p=Qt(u):(E&=R,E!==0?p=Qt(E):s||(s=R&~r,s!==0&&(p=Qt(s))))):(R=u&~y,R!==0?p=Qt(R):E!==0?p=Qt(E):s||(s=u&~r,s!==0&&(p=Qt(s)))),p===0?0:i!==0&&i!==p&&(i&y)===0&&(y=p&-p,s=i&-i,y>=s||y===32&&(s&4194048)!==0)?i:p}function _e(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function He(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var r=pa;return pa<<=1,(pa&62914560)===0&&(pa=4194304),r}function en(r){for(var i=[],s=0;31>s;s++)i.push(r);return i}function Pt(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function gr(r,i,s,u,p,y){var E=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var R=r.entanglements,k=r.expirationTimes,q=r.hiddenUpdates;for(s=E&~s;0<s;){var K=31-wt(s),ee=1<<K;R[K]=0,k[K]=-1;var H=q[K];if(H!==null)for(q[K]=null,K=0;K<H.length;K++){var Q=H[K];Q!==null&&(Q.lane&=-536870913)}s&=~ee}u!==0&&yr(r,u,0),y!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=y&~(E&~i))}function yr(r,i,s){r.pendingLanes|=i,r.suspendedLanes&=~i;var u=31-wt(i);r.entangledLanes|=i,r.entanglements[u]=r.entanglements[u]|1073741824|s&261930}function sn(r,i){var s=r.entangledLanes|=i;for(r=r.entanglements;s;){var u=31-wt(s),p=1<<u;p&i|r[u]&i&&(r[u]|=i),s&=~p}}function Jn(r,i){var s=i&-i;return s=(s&42)!==0?1:_d(s),(s&(r.suspendedLanes|i))!==0?0:s}function _d(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Td(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function dv(){var r=V.p;return r!==0?r:(r=window.event,r===void 0?32:ZS(r.type))}function hv(r,i){var s=V.p;try{return V.p=r,i()}finally{V.p=s}}var ma=Math.random().toString(36).slice(2),Ut="__reactFiber$"+ma,ln="__reactProps$"+ma,Zi="__reactContainer$"+ma,Cd="__reactEvents$"+ma,vA="__reactListeners$"+ma,bA="__reactHandles$"+ma,pv="__reactResources$"+ma,bs="__reactMarker$"+ma;function Rd(r){delete r[Ut],delete r[ln],delete r[Cd],delete r[vA],delete r[bA]}function Xi(r){var i=r[Ut];if(i)return i;for(var s=r.parentNode;s;){if(i=s[Zi]||s[Ut]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(r=IS(r);r!==null;){if(s=r[Ut])return s;r=IS(r)}return i}r=s,s=r.parentNode}return null}function Ji(r){if(r=r[Ut]||r[Zi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Ss(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function eo(r){var i=r[pv];
vendor: 7,068 bytes, line 49
49return i||(i=r[pv]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function kt(r){r[bs]=!0}var mv=new Set,gv={};function ui(r,i){to(r,i),to(r+"Capture",i)}function to(r,i){for(gv[r]=i,r=0;r<i.length;r++)mv.add(i[r])}var SA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yv={},vv={};function xA(r){return mr.call(vv,r)?!0:mr.call(yv,r)?!1:SA.test(r)?vv[r]=!0:(yv[r]=!0,!1)}function yu(r,i,s){if(xA(i))if(s===null)r.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+s)}}function vu(r,i,s){if(s===null)r.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+s)}}function jr(r,i,s,u){if(u===null)r.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(i,s,""+u)}}function jn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function bv(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function EA(r,i,s){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,y=u.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(E){s=""+E,y.call(this,E)}}),Object.defineProperty(r,i,{enumerable:u.enumerable}),{getValue:function(){return s},setValue:function(E){s=""+E},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Od(r){if(!r._valueTracker){var i=bv(r)?"checked":"value";r._valueTracker=EA(r,i,""+r[i])}}function Sv(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var s=i.getValue(),u="";return r&&(u=bv(r)?r.checked?"true":"false":r.value),r=u,r!==s?(i.setValue(r),!0):!1}function bu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var wA=/[\n"\\]/g;function In(r){return r.replace(wA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Ad(r,i,s,u,p,y,E,R){r.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?r.type=E:r.removeAttribute("type"),i!=null?E==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+jn(i)):r.value!==""+jn(i)&&(r.value=""+jn(i)):E!=="submit"&&E!=="reset"||r.removeAttribute("value"),i!=null?Nd(r,E,jn(i)):s!=null?Nd(r,E,jn(s)):u!=null&&r.removeAttribute("value"),p==null&&y!=null&&(r.defaultChecked=!!y),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?r.name=""+jn(R):r.removeAttribute("name")}function xv(r,i,s,u,p,y,E,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),i!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||i!=null)){Od(r);return}s=s!=null?""+jn(s):"",i=i!=null?""+jn(i):s,R||i===r.value||(r.value=i),r.defaultValue=i}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=R?r.checked:!!u,r.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(r.name=E),Od(r)}function Nd(r,i,s){i==="number"&&bu(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function no(r,i,s,u){if(r=r.options,i){i={};for(var p=0;p<s.length;p++)i["$"+s[p]]=!0;for(s=0;s<r.length;s++)p=i.hasOwnProperty("$"+r[s].value),r[s].selected!==p&&(r[s].selected=p),p&&u&&(r[s].defaultSelected=!0)}else{for(s=""+jn(s),i=null,p=0;p<r.length;p++){if(r[p].value===s){r[p].selected=!0,u&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function Ev(r,i,s){if(i!=null&&(i=""+jn(i),i!==r.value&&(r.value=i),s==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=s!=null?""+jn(s):""}function wv(r,i,s,u){if(i==null){if(u!=null){if(s!=null)throw Error(a(92));if(oe(u)){if(1<u.length)throw Error(a(93));u=u[0]}s=u}s==null&&(s=""),i=s}s=jn(i),r.defaultValue=s,u=r.textContent,u===s&&u!==""&&u!==null&&(r.value=u),Od(r)}function ro(r,i){if(i){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=i;return}}r.textContent=i}var _A=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _v(r,i,s){var u=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?u?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":u?r.setProperty(i,s):typeof s!="number"||s===0||_A.has(i)?i==="float"?r.cssFloat=s:r[i]=(""+s).trim():r[i]=s+"px"}function Tv(r,i,s){if(i!=null&&typeof i!="object")throw Error(a(62));if(r=r.style,s!=null){for(var u in s)!s.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var p in i)u=i[p],i.hasOwnProperty(p)&&s[p]!==u&&_v(r,p,u)}else for(var y in i)i.hasOwnProperty(y)&&_v(r,y,i[y])}function Dd(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var TA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
49dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),CA=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Su(r){return CA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Ir(){}var kd=null;function Md(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ao=null,io=null;function Cv(r){var i=Ji(r);if(i&&(r=i.stateNode)){var s=r[ln]||null;e:switch(r=i.stateNode,i.type){case"input":if(Ad(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+In(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var u=s[i];if(u!==r&&u.form===r.form){var p=u[ln]||null;if(!p)throw Error(a(90));Ad(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<s.length;i++)u=s[i],u.form===r.form&&Sv(u)}break e;case"textarea":Ev(r,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&no(r,!!s.multiple,i,!1)}}}var jd=!1;function Rv(r,i,s){if(jd)return r(i,s);jd=!0;try{var u=r(i);return u}finally{if(jd=!1,(ao!==null||io!==null)&&(sc(),ao&&(i=ao,r=io,io=ao=null,Cv(i),r)))for(i=0;i<r.length;i++)Cv(r[i])}}function xs(r,i){var s=r.stateNode;if(s===null)return null;var u=s[ln]||null;if(u===null)return null;s=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error(a(231,i,typeof s));return s}var Lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=!1;if(Lr)try{var Es={};Object.defineProperty(Es,"passive",{get:function(){Id=!0}}),window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{Id=!1}var ga=null,Ld=null,xu=null;function Ov(){if(xu)return xu;var r,i=Ld,s=i.length,u,p="value"in ga?ga.value:ga.textContent,y=p.length;for(r=0;r<s&&i[r]===p[r];r++);var E=s-r;for(u=1;u<=E&&i[s-u]===p[y-u];u++);return xu=p.slice(r,1<u?1-u:void 0)}function Eu(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function wu(){return!0}function Av(){return!1}function un(r){function i(s,u,p,y,E){this._reactName=s,this._targetInst=p,this.type=u,this.nativeEvent=y,this.target=E,this.currentTarget=null;for(var R in r)r.hasOwnProperty(R)&&(s=r[R],this[R]=s?s(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?wu:Av,this.isPropagationStopped=Av,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),i}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_u=un(ci),ws=v({},ci,{view:0,detail:0}),RA=un(ws),Pd,Ud,_s,Tu=v({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==_s&&(_s&&r.type==="mousemove"?(Pd=r.screenX-_s.screenX,Ud=r.screenY-_s.screenY):Ud=Pd=0,_s=r),Pd)},movementY:function(r){return"movementY"in r?r.movementY:Ud}}),Nv=un(Tu),OA=v({},Tu,{dataTransfer:0}),AA=un(OA),NA=v({},ws,{relatedTarget:0}),zd=un(NA),DA=v({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),kA=un(DA),MA=v({},ci,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),jA=un(MA),IA=v({},ci,{data:0}),Dv=un(IA),LA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},UA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zA(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=UA[r])?!!i[r]:!1}function Fd(){return zA}var FA=v({},ws,{key:function(r){if(r.key){var i=LA[r.key]||r.key;if(i!=="Unidentified")return i}
vendor: 5,186 bytes, line 49
49return r.type==="keypress"?(r=Eu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?PA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(r){return r.type==="keypress"?Eu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Eu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),$A=un(FA),VA=v({},Tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kv=un(VA),BA=v({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),qA=un(BA),HA=v({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),GA=un(HA),QA=v({},Tu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),YA=un(QA),KA=v({},ci,{newState:0,oldState:0}),WA=un(KA),ZA=[9,13,27,32],$d=Lr&&"CompositionEvent"in window,Ts=null;Lr&&"documentMode"in document&&(Ts=document.documentMode);var XA=Lr&&"TextEvent"in window&&!Ts,Mv=Lr&&(!$d||Ts&&8<Ts&&11>=Ts),jv=" ",Iv=!1;function Lv(r,i){switch(r){case"keyup":return ZA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var oo=!1;function JA(r,i){switch(r){case"compositionend":return Pv(i);case"keypress":return i.which!==32?null:(Iv=!0,jv);case"textInput":return r=i.data,r===jv&&Iv?null:r;default:return null}}function eN(r,i){if(oo)return r==="compositionend"||!$d&&Lv(r,i)?(r=Ov(),xu=Ld=ga=null,oo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Mv&&i.locale!=="ko"?null:i.data;default:return null}}var tN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Uv(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!tN[r.type]:i==="textarea"}function zv(r,i,s,u){ao?io?io.push(u):io=[u]:ao=u,i=pc(i,"onChange"),0<i.length&&(s=new _u("onChange","change",null,s,u),r.push({event:s,listeners:i}))}var Cs=null,Rs=null;function nN(r){xS(r,0)}function Cu(r){var i=Ss(r);if(Sv(i))return r}function Fv(r,i){if(r==="change")return i}var $v=!1;if(Lr){var Vd;if(Lr){var Bd="oninput"in document;if(!Bd){var Vv=document.createElement("div");Vv.setAttribute("oninput","return;"),Bd=typeof Vv.oninput=="function"}Vd=Bd}else Vd=!1;$v=Vd&&(!document.documentMode||9<document.documentMode)}function Bv(){Cs&&(Cs.detachEvent("onpropertychange",qv),Rs=Cs=null)}function qv(r){if(r.propertyName==="value"&&Cu(Rs)){var i=[];zv(i,Rs,r,Md(r)),Rv(nN,i)}}function rN(r,i,s){r==="focusin"?(Bv(),Cs=i,Rs=s,Cs.attachEvent("onpropertychange",qv)):r==="focusout"&&Bv()}function aN(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Cu(Rs)}function iN(r,i){if(r==="click")return Cu(i)}function oN(r,i){if(r==="input"||r==="change")return Cu(i)}function sN(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var xn=typeof Object.is=="function"?Object.is:sN;function Os(r,i){if(xn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var s=Object.keys(r),u=Object.keys(i);if(s.length!==u.length)return!1;for(u=0;u<s.length;u++){var p=s[u];if(!mr.call(i,p)||!xn(r[p],i[p]))return!1}return!0}function Hv(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Gv(r,i){var s=Hv(r);r=0;for(var u;s;){if(s.nodeType===3){if(u=r+s.textContent.length,r<=i&&u>=i)return{node:s,offset:i-r};r=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Hv(s)}}function Qv(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Qv(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Yv(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=bu(r.document);i instanceof r.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)r=i.contentWindow;else break;i=bu(r.document)}return i}function qd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var lN=Lr&&"documentMode"in document&&11>=document.documentMode,so=null,Hd=null,As=null,Gd=!1;function Kv(r,i,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Gd||so==null||so!==bu(u)||(u=so,"selectionStart"in u&&qd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focu
vendor: 22,198 bytes, line 49
49sNode:u.focusNode,focusOffset:u.focusOffset}),As&&Os(As,u)||(As=u,u=pc(Hd,"onSelect"),0<u.length&&(i=new _u("onSelect","select",null,i,s),r.push({event:i,listeners:u}),i.target=so)))}function fi(r,i){var s={};return s[r.toLowerCase()]=i.toLowerCase(),s["Webkit"+r]="webkit"+i,s["Moz"+r]="moz"+i,s}var lo={animationend:fi("Animation","AnimationEnd"),animationiteration:fi("Animation","AnimationIteration"),animationstart:fi("Animation","AnimationStart"),transitionrun:fi("Transition","TransitionRun"),transitionstart:fi("Transition","TransitionStart"),transitioncancel:fi("Transition","TransitionCancel"),transitionend:fi("Transition","TransitionEnd")},Qd={},Wv={};Lr&&(Wv=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);function di(r){if(Qd[r])return Qd[r];if(!lo[r])return r;var i=lo[r],s;for(s in i)if(i.hasOwnProperty(s)&&s in Wv)return Qd[r]=i[s];return r}var Zv=di("animationend"),Xv=di("animationiteration"),Jv=di("animationstart"),uN=di("transitionrun"),cN=di("transitionstart"),fN=di("transitioncancel"),e0=di("transitionend"),t0=new Map,Yd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yd.push("scrollEnd");function er(r,i){t0.set(r,i),ui(i,[r])}var Ru=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Ln=[],uo=0,Kd=0;function Ou(){for(var r=uo,i=Kd=uo=0;i<r;){var s=Ln[i];Ln[i++]=null;var u=Ln[i];Ln[i++]=null;var p=Ln[i];Ln[i++]=null;var y=Ln[i];if(Ln[i++]=null,u!==null&&p!==null){var E=u.pending;E===null?p.next=p:(p.next=E.next,E.next=p),u.pending=p}y!==0&&n0(s,p,y)}}function Au(r,i,s,u){Ln[uo++]=r,Ln[uo++]=i,Ln[uo++]=s,Ln[uo++]=u,Kd|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Wd(r,i,s,u){return Au(r,i,s,u),Nu(r)}function hi(r,i){return Au(r,null,null,i),Nu(r)}function n0(r,i,s){r.lanes|=s;var u=r.alternate;u!==null&&(u.lanes|=s);for(var p=!1,y=r.return;y!==null;)y.childLanes|=s,u=y.alternate,u!==null&&(u.childLanes|=s),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(p=!0)),r=y,y=y.return;return r.tag===3?(y=r.stateNode,p&&i!==null&&(p=31-wt(s),r=y.hiddenUpdates,u=r[p],u===null?r[p]=[i]:u.push(i),i.lane=s|536870912),y):null}function Nu(r){if(50<Zs)throw Zs=0,ip=null,Error(a(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var co={};function dN(r,i,s,u){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(r,i,s,u){return new dN(r,i,s,u)}function Zd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Pr(r,i){var s=r.alternate;return s===null?(s=En(r.tag,i,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=i,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&65011712,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,i=r.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function r0(r,i){r.flags&=65011714;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,i=s.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Du(r,i,s,u,p,y){var E=0;if(u=r,typeof r=="function")Zd(r)&&(E=1);else if(typeof r=="string")E=yD(r,s,ae.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case W:return r=En(31,s,i,p),r.elementType=W,r.lanes=y,r;case _:return pi(s.children,p,y,i);case T:E=8,p|=24;break;case C:return r=En(12,s,i,p|2),r.elementType=C,r.lanes=y,r;case M:return r=En(13,s,i,p),r.elementType=M,r.lanes=y,r;case P:return r=En(19,s,i,p),r.elementType=P,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:E=10;break e;case O:E=9;break e;case N:E=11;break e;case U:E=14;break e;case G:E=16,u=null;break e}E=29,s=Error(a(130,r===null?"null":typeof r,"")),u=null}return i=En(E,s,i,p),i.elementType=r,i.type=u,i.lanes=y,i}function pi(r,i,s,u){return r=En(7,r,u,i),r.lanes=s,r}function Xd(r,i,s){return r=En(6,r,null,i),r.lanes=s,r}function a0(r){var i=En(18,null,null,0);return i.stateNode=r,i}function Jd(r,i,s){return i=En(4,r.children!==null?r.children:[],r.key,i),i.lanes=s,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var i0=new WeakMap;function Pn(r,i){if(typeof r=="object"&&r!==null){var s=i0.get(r);return s!==void 0?s:(i={value:r,source:i,stack:ha(i)},i0.set(r,i),i)}return{value:r,source:i,stack:ha(i)}}var fo=[],ho=0,ku=null,Ns=0,Un=[],zn=0,ya=null,vr=1,br="";function Ur(r,i){fo[ho++]=Ns,fo[ho++]=ku,ku=r,Ns=i}function o0(r,i,s){Un[zn++]=vr,Un[zn++]=br,Un[zn++]=ya,ya=r;var u=vr;r=br;var p=32-wt(u)-1;u&=~(1<<p),s+=1;var y=32-wt(i)+p;if(30<y){var E=p-p%5;y=(u&(1<<E)-1).toString(32),u>>=E,p-=E,vr=1<<32-wt(i)+p|s<<p|u,br=y+r}else vr=1<<y|s<<p|u,br=r}function eh(r){r.return!==null&&(Ur(r,1),o0(r,1,0))}function th(r){for(;r===ku;)ku=fo[--ho],fo[ho]=null,Ns=fo[--ho],fo[ho]=null;for(;r===ya;)ya=Un[--zn],Un[zn]=null,br=Un[--zn],Un[zn]=null,vr=Un[--zn],Un[zn]=null}function s0(r,i){Un[zn++]=vr,Un[zn++]=br,Un[zn++]=ya,vr=i.id,br=i.overflow,ya=r}var zt=null,it=null,ze=!1,va=null,Fn=!1,nh=Error(a(519));function ba(r){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ds(Pn(i,r)),nh}function l0(r){var i=r.stateNode,s=r.type,u=r.memoizedProps;switch(i[Ut]=r,i[ln]=u,s){case"dialog":Le("cancel",i),Le("close",i);break;case"iframe":case"object":case"embed":Le("load",i);break;case"video":case"audio":for(s=0;s<Js.length;s++)Le(Js[s],i);break;case"source":Le("error",i);break;case"img":case"image":case"link":Le("error",i),Le("load",i);break;case"details":Le("toggle",i);break;case"input":Le("invalid",i),xv(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Le("invalid",i);break;case"textarea":Le("invalid",i),wv(i,u.value,u.defaultValue,u.children)}s=u.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||u.suppressHydrationWarning===!0||TS(i.textContent,s)?(u.popover!=null&&(Le("beforetoggle",i),Le("toggle",i)),u.onScroll!=null&&Le("scroll",i),u.onScrollEnd!=null&&Le("scrollend",i),u.onClick!=null&&(i.onclick=Ir),i=!0):i=!1,i||ba(r,!0)}function u0(r){for(zt=r.return;zt;)switch(zt.tag){case 5:case 31:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:zt=zt.return}}function po(r){if(r!==zt)return!1;if(!ze)return u0(r),ze=!0,!1;var i=r.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Sp(r.type,r.memoizedProps)),s=!s),s&&it&&ba(r),u0(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));it=jS(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));it=jS(r)}else i===27?(i=it,Ma(r.type)?(r=Tp,Tp=null,it=r):it=i):it=zt?Vn(r.stateNode.nextSibling):null;return!0}function mi(){it=zt=null,ze=!1}function rh(){var r=va;return r!==null&&(hn===null?hn=r:hn.push.apply(hn,r),va=null),r}function Ds(r){va===null?va=[r]:va.push(r)}var ah=D(null),gi=null,zr=null;function Sa(r,i,s){Z(ah,i._currentValue),i._currentValue=s}function Fr(r){r._currentValue=ah.current,F(ah)}function ih(r,i,s){for(;r!==null;){var u=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),r===s)break;r=r.return}}function oh(r,i,s,u){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var y=p.dependencies;if(y!==null){var E=p.child;y=y.firstContext;e:for(;y!==null;){var R=y;y=p;for(var k=0;k<i.length;k++)if(R.context===i[k]){y.lanes|=s,R=y.alternate,R!==null&&(R.lanes|=s),ih(y.return,s,r),u||(E=null);break e}y=R.next}}else if(p.tag===18){if(E=p.return,E===null)throw Error(a(341));E.lanes|=s,y=E.alternate,y!==null&&(y.lanes|=s),ih(E,s,r),E=null}else E=p.child;if(E!==null)E.return=p;else for(E=p;E!==null;){if(E===r){E=null;break}if(p=E.sibling,p!==null){p.return=E.return,E=p;break}E=E.return}p=E}}function mo(r,i,s,u){r=null;for(var p=i,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var E=p.alternate;if(E===null)throw Error(a(387));if(E=E.memoizedProps,E!==null){var R=p.type;xn(p.pendingProps.value,E.value)||(r!==null?r.push(R):r=[R])}}else if(p===fe.current){if(E=p.alternate,E===null)throw Error(a(387));E.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(al):r=[al])}p=p.return}r!==null&&oh(i,r,s,u),i.flags|=262144}function Mu(r){for(r=r.firstContext;r!==null;){if(!xn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function yi(r){gi=r,zr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ft(r){return c0(gi,r)}function ju(r,i){return gi===null&&yi(r),c0(r,i)}function c0(r,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},zr===null){if(r===null)throw Error(a(308));zr=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else zr=zr.next=i;return s}var hN=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(s,u){r.push(u)}};this.abort=function(){i.aborted=!0,r.forEach(function(s){return s()})}},pN=e.unstable_scheduleCallback,mN=e.unstable_NormalPriority,_t={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sh(){return{controller:new hN,data:new Map,refCount:0}}function ks(r){r.refCount--,r.refCount===0&&pN(mN,function(){r.controller.abort()})}var Ms=null,lh=0,go=0,yo=null;function gN(r,i){if(Ms===null){var s=Ms=[];lh=0,go=fp(),yo={status:"pending",value:void 0,then:function(u){s.push(u)}}}return lh++,i.then(f0,f0),i}function f0(){if(--lh===0&&Ms!==null){yo!==null&&(yo.status="fulfilled");var r=Ms;Ms=null,go=0,yo=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function yN(r,i){var s=[],u={status:"pending",value:null,reason:null,then:function(p){s.push(p)}};return r.then(function(){u.status="fulfilled",u.value=i;for(var p=0;p<s.length;p++)(0,s[p])(i)},function(p){for(u.status="rejected",u.reason=p,p=0;p<s.length;p++)(0,s[p])(void 0)}),u}var d0=I.S;I.S=function(r,i){Kb=Xt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&gN(r,i),d0!==null&&d0(r,i)};var vi=D(null);function uh(){var r=vi.current;return r!==null?r:tt.pooledCache}function Iu(r,i){i===null?Z(vi,vi.current):Z(vi,i.pool)}function h0(){var r=uh();return r===null?null:{parent:_t._currentValue,pool:r}}var vo=Error(a(460)),ch=Error(a(474)),Lu=Error(a(542)),Pu={then:function(){}};function p0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function m0(r,i,s){switch(s=r[s],s===void 0?r.push(i):s!==i&&(i.then(Ir,Ir),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,y0(r),r;default:if(typeof i.status=="string")i.then(Ir,Ir);else{if(r=tt,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=i,r.status="pending",r.then(function(u){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=u}},function(u){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,y0(r),r}throw Si=i,vo}}function bi(r){try{var i=r._init;return i(r._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Si=s,vo):s}}var Si=null;function g0(){if(Si===null)throw Error(a(459));var r=Si;return Si=null,r}function y0(r){if(r===vo||r===Lu)throw Error(a(483))}var bo=null,js=0;function Uu(r){var i=js;return js+=1,bo===null&&(bo=[]),m0(bo,r,i)}function Is(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function zu(r,i){throw i.$$typeof===S?Error(a(525)):(r=Object.prototype.toString.call(i),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function v0(r){function i(z,j){if(r){var B=z.deletions;B===null?(z.deletions=[j],z.flags|=16):B.push(j)}}function s(z,j){if(!r)return null;for(;j!==null;)i(z,j),j=j.sibling;return null}function u(z){for(var j=new Map;z!==null;)z.key!==null?j.set(z.key,z):j.set(z.index,z),z=z.sibling;return j}function p(z,j){return z=Pr(z,j),z.index=0,z.sibling=null,z}function y(z,j,B){return z.index=B,r?(B=z.alternate,B!==null?(B=B.index,B<j?(z.flags|=67108866,j):B):(z.flags|=67108866,j)):(z.flags|=1048576,j)}function E(z){return r&&z.alternate===null&&(z.flags|=67108866),z}function R(z,j,B,X){return j===null||j.tag!==6?(j=Xd(B,z.mode,X),j.return=z,j):(j=p(j,B),j.return=z,j)}function k(z,j,B,X){var Ee=B.type;return Ee===_?K(z,j,B.props.children,X,B.key):j!==null&&(j.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===G&&bi(Ee)===j.type)?(j=p(j,B.props),Is(j,B),j.return=z,j):(j=Du(B.type,B.key,B.props,null,z.mode,X),Is(j,B),j.return=z,j)}function q(z,j,B,X){return j===null||j.tag!==4||j.stateNode.containerInfo!==B.containerInfo||j.stateNode.implementation!==B.implementation?(j=Jd(B,z.mode,X),j.return=z,j):(j=p(j,B.children||[]),j.return=z,j)}function K(z,j,B,X,Ee){return j===null||j.tag!==7?(j=pi(B,z.mode,X,Ee),j.return=z,j):(j=p(j,B),j.return=z,j)}function ee(z,j,B){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Xd(""+j,z.mode,B),j.return=z,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return B=Du(j.type,j.key,j.props,null,z.mode,B),Is(B,j),B.return=z,B;case w:return j=Jd(j,z.mode,B),j.return=z,j;case G:return j=bi(j),ee(z,j,B)}if(oe(j)||me(j))return j=pi(j,z.mode,B,null),j.return=z,j;if(typeof j.then=="function")return ee(z,Uu(j),B);if(j.$$typeof===A)return ee(z,ju(z,j),B);zu(z,j)}return null}function H(z,j,B,X){var Ee=j!==null?j.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return Ee!==null?null:R(z,j,""+B,X);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case b:return B.key===Ee?k(z,j,B,X):null;case w:return B.key===Ee?q(z,j,B,X):null;case G:return B=bi(B),H(z,j,B,X)}if(oe(B)||me(B))return Ee!==null?null:K(z,j,B,X,null);if(typeof B.then=="function")return H(z,j,Uu(B),X);if(B.$$typeof===A)return H(z,j,ju(z,B),X);zu(z,B)}return null}function Q(z,j,B,X,Ee){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return z=z.get(B)||null,R(j,z,""+X,Ee);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case b:return z=z.get(X.key===null?B:X.key)||null,k(j,z,X,Ee);case w:return z=z.get(X.key===null?B:X.key)||null,q(j,z,X,Ee);case G:return X=bi(X),Q(z,j,B,X,Ee)}if(oe(X)||me(X))return z=z.get(B)||null,K(j,z,X,Ee,null);if(typeof X.then=="function")return Q(z,j,B,Uu(X),Ee);if(X.$$typeof===A)return Q(z,j,B,ju(j,X),Ee);zu(j,X)}return null}function be(z,j,B,X){for(var Ee=null,$e=null,Se=j,De=j=0,Ue=null;Se!==null&&De<B.length;De++){Se.index>De?(Ue=Se,Se=null):Ue=Se.sibling;var Ve=H(z,Se,B[De],X);if(Ve===null){Se===null&&(Se=Ue);break}r&&Se&&Ve.alternate===null&&i(z,Se),j=y(Ve,j,De),$e===null?Ee=Ve:$e.sibling=Ve,$e=Ve,Se=Ue}if(De===B.length)return s(z,Se),ze&&Ur(z,De),Ee;if(Se===null){for(;De<B.length;De++)Se=ee(z,B[De],X),Se!==null&&(j=y(Se,j,De),$e===null?Ee=Se:$e.sibling=Se,$e=Se);return ze&&Ur(z,De),Ee}for(Se=u(Se);De<B.length;De++)Ue=Q(Se,z,De,B[De],X),Ue!==null&&(r&&Ue.alternate!==null&&Se.delete(Ue.key===null?De:Ue.key),j=y(Ue,j,De),$e===null?Ee=Ue:$e.sibling=Ue,$e=Ue);return r&&Se.forEach(function(Ua){return i(z,Ua)}),ze&&Ur(z,De),Ee}function we(z,j,B,X){if(B==null)throw Error(a(151));for(var Ee=null,$e=null,Se=j,De=j=0,Ue=null,Ve=B.next();Se!==null&&!Ve.done;De++,Ve=B.next()){Se.index>De?(Ue=Se,Se=null):Ue=Se.sibling;var Ua=H(z,Se,Ve.value,X);if(Ua===null){Se===null&&(Se=Ue);break}r&&Se&&Ua.alternate===null&&i(z,Se),j=y(Ua,j,De),$e===null?Ee=Ua:$e.sibling=Ua,$e=Ua,Se=Ue}if(Ve.done)return s(z,Se),ze&&Ur(z,De),Ee;if(Se===null){for(;!Ve.done;De++,Ve=B.next())Ve=ee(z,Ve.value,X),Ve!==null&&(j=y(Ve,j,De),$e===null?Ee=Ve:$e.sibling=Ve,$e=Ve);return ze&&Ur(z,De),Ee}for(Se=u(Se);!Ve.done;De++,Ve=B.next())Ve=Q(Se,z,De,Ve.value,X),Ve!==null&&(r&&Ve.alternate!==null&&Se.delete(Ve.key===null?De:Ve.key),j=y(Ve,j,De),$e===null?Ee=Ve:$e.sibling=Ve,$e=Ve);return r&&Se.forEach(function(OD){return i(z,OD)}),ze&&Ur(z,De),Ee}function Je(z,j,B,X){if(typeof B=="object"&&B!==null&&B.type===_&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case b:e:{for(var Ee=B.key;j!==null;){if(j.key===Ee){if(Ee=B.type,Ee===_){if(j.tag===7){s(z,j.sibling),X=p(j,B.props.children),X.return=z,z=X;break e}}else if(j.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===G&&bi(Ee)===j.type){s(z,j.sibling),X=p(j,B.props),Is(X,B),X.return=z,z=X;break e}s(z,j);break}else i(z,j);j=j.sibling}B.type===_?(X=pi(B.props.children,z.mode,X,B.key),X.return=z,z=X):(X=Du(B.type,B.key,B.props,null,z.mode,X),Is(X,B),X.return=z,z=X)}return E(z);case w:e:{for(Ee=B.key;j!==null;){if(j.key===Ee)if(j.tag===4&&j.stateNode.containerInfo===B.containerInfo&&j.stateNode.implementation===B.implementation){s(z,j.sibling),X=p(j,B.children||[]),X.return=z,z=X;break e}else{s(z,j);break}else i(z,j);j=j.sibling}X=Jd(B,z.mode,X),X.return=z,z=X}return E(z);case G:return B=bi(B),Je(z,j,B,X)}if(oe(B))return be(z,j,B,X);if(me(B)){if(Ee=me(B),typeof Ee!="function")throw Error(a(150));return B=Ee.call(B),we(z,j,B,X)}if(typeof B.then=="function")return Je(z,j,Uu(B),X);if(B.$$typeof===A)return Je(z,j,ju(z,B),X);zu(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,j!==null&&j.tag===6?(s(z,j.sibling),X=p(j,B),X.return=z,z=X):(s(z,j),X=Xd(B,z.mode,X),X.return=z,z=X),E(z)):s(z,j)}return function(z,j,B,X){try{js=0;var Ee=Je(z,j,B,X);return bo=null,Ee}catch(Se){if(Se===vo||Se===Lu)throw Se;var $e=En(29,Se,null,z.mode);return $e.lanes=X,$e.return=z,$e}finally{}}}var xi=v0(!0),b0=v0(!1),xa=!1;function fh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ea(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function wa(r,i,s){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(Be&2)!==0){var p=u.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),u.pending=i,i=Nu(r),n0(r,null,s),i}return Au(r,u,i,s),Nu(r)}function Ls(r,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var u=i.lanes;u&=r.pendingLanes,s|=u,i.lanes=s,sn(r,s)}}function hh(r,i){var s=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var p=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var E={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?p=y=E:y=y.next=E,s=s.next}while(s!==null);y===null?p=y=i:y=y.next=i}else p=y=i;s={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=i:r.next=i,s.lastBaseUpdate=i}var ph=!1;function Ps(){if(ph){var r=yo;if(r!==null)throw r}}function Us(r,i,s,u){ph=!1;var p=r.updateQueue;xa=!1;var y=p.firstBaseUpdate,E=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var k=R,q=k.next;k.next=null,E===null?y=q:E.next=q,E=k;var K=r.alternate;K!==null&&(K=K.updateQueue,R=K.lastBaseUpdate,R!==E&&(R===null?K.firstBaseUpdate=q:R.next=q,K.lastBaseUpdate=k))}if(y!==null){var ee=p.baseState;E=0,K=q=k=null,R=y;do{var H=R.lane&-536870913,Q=H!==R.lane;if(Q?(Pe&H)===H:(u&H)===H){H!==0&&H===go&&(ph=!0),K!==null&&(K=K.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var be=r,we=R;H=i;var Je=s;switch(we.tag){case 1:if(be=we.payload,typeof be=="function"){ee=be.call(Je,ee,H);break e}ee=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=we.payload,H=typeof be=="function"?be.call(Je,ee,H):be,H==null)break e;ee=v({},ee,H);break e;case 2:xa=!0}}H=R.callback,H!==null&&(r.flags|=64,Q&&(r.flags|=8192),Q=p.callbacks,Q===null?p.callbacks=[H]:Q.push(H))}else Q={lane:H,tag:R.tag,payload:R.payload,callback:R.callback,next:null},K===null?(q=K=Q,k=ee):K=K.next=Q,E|=H;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Q=R,R=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);K===null&&(k=ee),p.baseState=k,p.firstBaseUpdate=q,p.lastBaseUpdate=K,y===null&&(p.shared.lanes=0),Oa|=E,r.lanes=E,r.memoizedState=ee}}function S0(r,i){if(typeof r!="function")throw Error(a(191,r));r.call(i)}function x0(r,i){var s=r.callbacks;
vendor: 7,802 bytes, line 49
49if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)S0(s[r],i)}var So=D(null),Fu=D(0);function E0(r,i){r=Kr,Z(Fu,r),Z(So,i),Kr=r|i.baseLanes}function mh(){Z(Fu,Kr),Z(So,So.current)}function gh(){Kr=Fu.current,F(So),F(Fu)}var wn=D(null),$n=null;function _a(r){var i=r.alternate;Z(yt,yt.current&1),Z(wn,r),$n===null&&(i===null||So.current!==null||i.memoizedState!==null)&&($n=r)}function yh(r){Z(yt,yt.current),Z(wn,r),$n===null&&($n=r)}function w0(r){r.tag===22?(Z(yt,yt.current),Z(wn,r),$n===null&&($n=r)):Ta()}function Ta(){Z(yt,yt.current),Z(wn,wn.current)}function _n(r){F(wn),$n===r&&($n=null),F(yt)}var yt=D(0);function $u(r){for(var i=r;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||wp(s)||_p(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var $r=0,Ne=null,Ze=null,Tt=null,Vu=!1,xo=!1,Ei=!1,Bu=0,zs=0,Eo=null,vN=0;function ft(){throw Error(a(321))}function vh(r,i){if(i===null)return!1;for(var s=0;s<i.length&&s<r.length;s++)if(!xn(r[s],i[s]))return!1;return!0}function bh(r,i,s,u,p,y){return $r=y,Ne=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,I.H=r===null||r.memoizedState===null?ob:jh,Ei=!1,y=s(u,p),Ei=!1,xo&&(y=T0(i,s,u,p)),_0(r),y}function _0(r){I.H=Vs;var i=Ze!==null&&Ze.next!==null;if($r=0,Tt=Ze=Ne=null,Vu=!1,zs=0,Eo=null,i)throw Error(a(300));r===null||Ct||(r=r.dependencies,r!==null&&Mu(r)&&(Ct=!0))}function T0(r,i,s,u){Ne=r;var p=0;do{if(xo&&(Eo=null),zs=0,xo=!1,25<=p)throw Error(a(301));if(p+=1,Tt=Ze=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}I.H=sb,y=i(s,u)}while(xo);return y}function bN(){var r=I.H,i=r.useState()[0];return i=typeof i.then=="function"?Fs(i):i,r=r.useState()[0],(Ze!==null?Ze.memoizedState:null)!==r&&(Ne.flags|=1024),i}function Sh(){var r=Bu!==0;return Bu=0,r}function xh(r,i,s){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~s}function Eh(r){if(Vu){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Vu=!1}$r=0,Tt=Ze=Ne=null,xo=!1,zs=Bu=0,Eo=null}function tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Ne.memoizedState=Tt=r:Tt=Tt.next=r,Tt}function vt(){if(Ze===null){var r=Ne.alternate;r=r!==null?r.memoizedState:null}else r=Ze.next;var i=Tt===null?Ne.memoizedState:Tt.next;if(i!==null)Tt=i,Ze=r;else{if(r===null)throw Ne.alternate===null?Error(a(467)):Error(a(310));Ze=r,r={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Tt===null?Ne.memoizedState=Tt=r:Tt=Tt.next=r}return Tt}function qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fs(r){var i=zs;return zs+=1,Eo===null&&(Eo=[]),r=m0(Eo,r,i),i=Ne,(Tt===null?i.memoizedState:Tt.next)===null&&(i=i.alternate,I.H=i===null||i.memoizedState===null?ob:jh),r}function Hu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Fs(r);if(r.$$typeof===A)return Ft(r)}throw Error(a(438,String(r)))}function wh(r){var i=null,s=Ne.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var u=Ne.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=qu(),Ne.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(r),u=0;u<r;u++)s[u]=te;return i.index++,s}function Vr(r,i){return typeof i=="function"?i(r):i}function Gu(r){var i=vt();return _h(i,Ze,r)}function _h(r,i,s){var u=r.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=s;var p=r.baseQueue,y=u.pending;if(y!==null){if(p!==null){var E=p.next;p.next=y.next,y.next=E}i.baseQueue=p=y,u.pending=null}if(y=r.baseState,p===null)r.memoizedState=y;else{i=p.next;var R=E=null,k=null,q=i,K=!1;do{var ee=q.lane&-536870913;if(ee!==q.lane?(Pe&ee)===ee:($r&ee)===ee){var H=q.revertLane;if(H===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ee===go&&(K=!0);else if(($r&H)===H){q=q.next,H===go&&(K=!0);continue}else ee={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},k===null?(R=k=ee,E=y):k=k.next=ee,Ne.lanes|=H,Oa|=H;ee=q.action,Ei&&s(y,ee),y=q.hasEagerState?q.eagerState:s(y,ee)}else H={lane:ee,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},k===null?(R=k=H,E=y):k=k.next=H,Ne.lanes|=ee,Oa|=ee;q=q.next}while(q!==null&&q!==i);if(k===null?E=y:k.next=R,!xn(y,r.memoizedState)&&(Ct=!0,K&&(s=yo,s!==null)))throw s;r.memoizedState=y,r.baseState=E,r.baseQueue=k,u.lastRenderedState=y}return p===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function Th(r){var i=vt(),s=i.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=r;var u=s.dispatch,p=s.pending,y=i.memoizedState;if(p!==null){s.pending=null;var E=p=p.next;do y=r(y,E.action),E=E.next;while(E!==p);xn(y,i.memoizedState)||(Ct=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),s.lastRenderedState=y}return[y,u]}function C0(r,i,s){var u=Ne,p=vt(),y=ze;if(y){if(s===void 0)throw Error(a(407));s=s()}else s=i();var E=!xn((Ze||p).memoizedState,s);if(E&&(p.memoizedState=s,Ct=!0),p=p.queue,Oh(A0.bind(null,u,p,r),[r]),p.getSnapshot!==i||E||Tt!==null&&Tt.memoizedState.tag&1){if(u.flags|=2048,wo(9,{destroy:void 0},O0.bind(null,u,p,s,i),null),tt===null)throw Error(a(349));y||($r&127)!==0||R0(u,i,s)}return s}function R0(r,i,s){r.flags|=16384,r={getSnapshot:i,value:s},i=Ne.updateQueue,i===null?(i=qu(),Ne.updateQueue=i,i.stores=[r]):(s=i.stores,s===null?i.stores=[r]:s.push(r))}function O0(r,i,s,u){i.value=s,i.getSnapshot=u,N0(i)&&D0(r)}function A0(r,i,s){return s(function(){N0(i)&&D0(r)})}function N0(r){var i=r.getSnapshot;r=r.value;try{var s=i();return!xn(r,s)}catch{return!0}}function D0(r){var i=hi(r,2);i!==null&&pn(i,r,2)}function Ch(r){var i=tn();if(typeof r=="function"){var s=r;if(r=s(),Ei){Xn(!0);try{s()}finally{Xn(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:r},i}function k0(r,i,s,u){return r.baseState=s,_h(r,Ze,typeof u=="function"?u:Vr)}function SN(r,i,s,u,p){if(Ku(r))throw Error(a(485));if(r=i.action,r!==null){var y={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){y.listeners.push(E)}};I.T!==null?s(!0):y.isTransition=!1,u(y),s=i.pending,s===null?(y.next=i.pending=y,M0(i,y)):(y.next=s.next,i.pending=s.next=y)}}function M0(r,i){var s=i.action,u=i.payload,p=r.state;if(i.isTransition){var y=I.T,E={};I.T=E;try{var R=s(p,u),k=I.S;k!==null&&k(E,R),j0(r,i,R)}catch(q){Rh(r,i,q)}finally{y!==null&&E.types!==null&&(y.types=E.types),I.T=y}}else try{y=s(p,u),j0(r,i,y)}catch(q){Rh(r,i,q)}}function j0(r,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(u){I0(r,i,u)},function(u){return Rh(r,i,u)}):I0(r,i,s)}function I0(r,i,s){i.status="fulfilled",i.value=s,L0(i),r.state=s,i=r.pending,i!==null&&(s=i.next,s===i?r.pending=null:(s=s.next,i.next=s,M0(r,s)))}function Rh(r,i,s){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=s,L0(i),i=i.next;while(i!==u)}r.action=null}function L0(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}
vendor: 10,975 bytes, line 49
49function P0(r,i){return i}function U0(r,i){if(ze){var s=tt.formState;if(s!==null){e:{var u=Ne;if(ze){if(it){t:{for(var p=it,y=Fn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Vn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){it=Vn(p.nextSibling),u=p.data==="F!";break e}}ba(u)}u=!1}u&&(i=s[0])}}return s=tn(),s.memoizedState=s.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:P0,lastRenderedState:i},s.queue=u,s=rb.bind(null,Ne,u),u.dispatch=s,u=Ch(!1),y=Mh.bind(null,Ne,!1,u.queue),u=tn(),p={state:i,dispatch:null,action:r,pending:null},u.queue=p,s=SN.bind(null,Ne,p,y,s),p.dispatch=s,u.memoizedState=r,[i,s,!1]}function z0(r){var i=vt();return F0(i,Ze,r)}function F0(r,i,s){if(i=_h(r,i,P0)[0],r=Gu(Vr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Fs(i)}catch(E){throw E===vo?Lu:E}else u=i;i=vt();var p=i.queue,y=p.dispatch;return s!==i.memoizedState&&(Ne.flags|=2048,wo(9,{destroy:void 0},xN.bind(null,p,s),null)),[u,y,r]}function xN(r,i){r.action=i}function $0(r){var i=vt(),s=Ze;if(s!==null)return F0(i,s,r);vt(),i=i.memoizedState,s=vt();var u=s.queue.dispatch;return s.memoizedState=r,[i,u,!1]}function wo(r,i,s,u){return r={tag:r,create:s,deps:u,inst:i,next:null},i=Ne.updateQueue,i===null&&(i=qu(),Ne.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=r.next=r:(u=s.next,s.next=r,r.next=u,i.lastEffect=r),r}function V0(){return vt().memoizedState}function Qu(r,i,s,u){var p=tn();Ne.flags|=r,p.memoizedState=wo(1|i,{destroy:void 0},s,u===void 0?null:u)}function Yu(r,i,s,u){var p=vt();u=u===void 0?null:u;var y=p.memoizedState.inst;Ze!==null&&u!==null&&vh(u,Ze.memoizedState.deps)?p.memoizedState=wo(i,y,s,u):(Ne.flags|=r,p.memoizedState=wo(1|i,y,s,u))}function B0(r,i){Qu(8390656,8,r,i)}function Oh(r,i){Yu(2048,8,r,i)}function EN(r){Ne.flags|=4;var i=Ne.updateQueue;if(i===null)i=qu(),Ne.updateQueue=i,i.events=[r];else{var s=i.events;s===null?i.events=[r]:s.push(r)}}function q0(r){var i=vt().memoizedState;return EN({ref:i,nextImpl:r}),function(){if((Be&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function H0(r,i){return Yu(4,2,r,i)}function G0(r,i){return Yu(4,4,r,i)}function Q0(r,i){if(typeof i=="function"){r=r();var s=i(r);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Y0(r,i,s){s=s!=null?s.concat([r]):null,Yu(4,4,Q0.bind(null,i,r),s)}function Ah(){}function K0(r,i){var s=vt();i=i===void 0?null:i;var u=s.memoizedState;return i!==null&&vh(i,u[1])?u[0]:(s.memoizedState=[r,i],r)}function W0(r,i){var s=vt();i=i===void 0?null:i;var u=s.memoizedState;if(i!==null&&vh(i,u[1]))return u[0];if(u=r(),Ei){Xn(!0);try{r()}finally{Xn(!1)}}return s.memoizedState=[u,i],u}function Nh(r,i,s){return s===void 0||($r&1073741824)!==0&&(Pe&261930)===0?r.memoizedState=i:(r.memoizedState=s,r=Zb(),Ne.lanes|=r,Oa|=r,s)}function Z0(r,i,s,u){return xn(s,i)?s:So.current!==null?(r=Nh(r,s,u),xn(r,i)||(Ct=!0),r):($r&42)===0||($r&1073741824)!==0&&(Pe&261930)===0?(Ct=!0,r.memoizedState=s):(r=Zb(),Ne.lanes|=r,Oa|=r,i)}function X0(r,i,s,u,p){var y=V.p;V.p=y!==0&&8>y?y:8;var E=I.T,R={};I.T=R,Mh(r,!1,i,s);try{var k=p(),q=I.S;if(q!==null&&q(R,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var K=yN(k,u);$s(r,i,K,Rn(r))}else $s(r,i,u,Rn(r))}catch(ee){$s(r,i,{then:function(){},status:"rejected",reason:ee},Rn())}finally{V.p=y,E!==null&&R.types!==null&&(E.types=R.types),I.T=E}}function wN(){}function Dh(r,i,s,u){if(r.tag!==5)throw Error(a(476));var p=J0(r).queue;X0(r,p,i,Y,s===null?wN:function(){return eb(r),s(u)})}function J0(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:Y},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:s},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function eb(r){var i=J0(r);i.next===null&&(i=r.alternate.memoizedState),$s(r,i.next.queue,{},Rn())}function kh(){return Ft(al)}function tb(){return vt().memoizedState}function nb(){return vt().memoizedState}function _N(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var s=Rn();r=Ea(s);var u=wa(i,r,s);u!==null&&(pn(u,i,s),Ls(u,i,s)),i={cache:sh()},r.payload=i;return}i=i.return}}function TN(r,i,s){var u=Rn();s={lane:u,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ku(r)?ab(i,s):(s=Wd(r,i,s,u),s!==null&&(pn(s,r,u),ib(s,i,u)))}function rb(r,i,s){var u=Rn();$s(r,i,s,u)}function $s(r,i,s,u){var p={lane:u,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ku(r))ab(i,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var E=i.lastRenderedState,R=y(E,s);if(p.hasEagerState=!0,p.eagerState=R,xn(R,E))return Au(r,i,p,0),tt===null&&Ou(),!1}catch{}finally{}if(s=Wd(r,i,p,u),s!==null)return pn(s,r,u),ib(s,i,u),!0}return!1}function Mh(r,i,s,u){if(u={lane:2,revertLane:fp(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ku(r)){if(i)throw Error(a(479))}else i=Wd(r,s,u,2),i!==null&&pn(i,r,2)}function Ku(r){var i=r.alternate;return r===Ne||i!==null&&i===Ne}function ab(r,i){xo=Vu=!0;var s=r.pending;s===null?i.next=i:(i.next=s.next,s.next=i),r.pending=i}function ib(r,i,s){if((s&4194048)!==0){var u=i.lanes;u&=r.pendingLanes,s|=u,i.lanes=s,sn(r,s)}}var Vs={readContext:Ft,use:Hu,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};Vs.useEffectEvent=ft;var ob={readContext:Ft,use:Hu,useCallback:function(r,i){return tn().memoizedState=[r,i===void 0?null:i],r},useContext:Ft,useEffect:B0,useImperativeHandle:function(r,i,s){s=s!=null?s.concat([r]):null,Qu(4194308,4,Q0.bind(null,i,r),s)},useLayoutEffect:function(r,i){return Qu(4194308,4,r,i)},useInsertionEffect:function(r,i){Qu(4,2,r,i)},useMemo:function(r,i){var s=tn();i=i===void 0?null:i;var u=r();if(Ei){Xn(!0);try{r()}finally{Xn(!1)}}return s.memoizedState=[u,i],u},useReducer:function(r,i,s){var u=tn();if(s!==void 0){var p=s(i);if(Ei){Xn(!0);try{s(i)}finally{Xn(!1)}}}else p=i;return u.memoizedState=u.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},u.queue=r,r=r.dispatch=TN.bind(null,Ne,r),[u.memoizedState,r]},useRef:function(r){var i=tn();return r={current:r},i.memoizedState=r},useState:function(r){r=Ch(r);var i=r.queue,s=rb.bind(null,Ne,i);return i.dispatch=s,[r.memoizedState,s]},useDebugValue:Ah,useDeferredValue:function(r,i){var s=tn();return Nh(s,r,i)},useTransition:function(){var r=Ch(!1);return r=X0.bind(null,Ne,r.queue,!0,!1),tn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,s){var u=Ne,p=tn();if(ze){if(s===void 0)throw Error(a(407));s=s()}else{if(s=i(),tt===null)throw Error(a(349));(Pe&127)!==0||R0(u,i,s)}p.memoizedState=s;var y={value:s,getSnapshot:i};return p.queue=y,B0(A0.bind(null,u,y,r),[r]),u.flags|=2048,wo(9,{destroy:void 0},O0.bind(null,u,y,s,i),null),s},useId:function(){var r=tn(),i=tt.identifierPrefix;if(ze){var s=br,u=vr;s=(u&~(1<<32-wt(u)-1)).toString(32)+s,i="_"+i+"R_"+s,s=Bu++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=vN++,i="_"+i+"r_"+s.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:kh,useFormState:U0,useActionState:U0,useOptimistic:function(r){var i=tn();i.memoizedState=i.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Mh.bind(null,Ne,!0,s),s.dispatch=i,[r,i]},useMemoCache:wh,useCacheRefresh:function(){return tn().memoizedState=_N.bind(null,Ne)},useEffectEvent:function(r){var i=tn(),s={impl:r};return i.memoizedState=s,function(){if((Be&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}},jh={readContext:Ft,use:Hu,useCallback:K0,useContext:Ft,useEffect:Oh,useImperativeHandle:Y0,useInsertionEffect:H0,useLayoutEffect:G0,useMemo:W0,useReducer:Gu,useRef:V0,useState:function(){return Gu(Vr)},useDebugValue:Ah,useDeferredValue:function(r,i){var s=vt();return Z0(s,Ze.memoizedState,r,i)},useTransition:function(){var r=Gu(Vr)[0],i=vt().memoizedState;return[typeof r=="boolean"?r:Fs(r),i]},useSyncExternalStore:C0,useId:tb,useHostTransitionStatus:kh,useFormState:z0,useActionState:z0,useOptimistic:function(r,i){var s=vt();return k0(s,Ze,r,i)},useMemoCache:wh,useCacheRefresh:nb};jh.useEffectEvent=q0;var sb={readContext:Ft,use:Hu,useCallback:K0,useContext:Ft,useEffect:Oh,useImperativeHandle:Y0,useInsertionEffect:H0,useLayoutEffect:G0,useMemo:W0,useReducer:Th,useRef:V0,useState:function(){return Th(Vr)},useDebugValue:Ah,useDeferredValue:function(r,i){var s=vt();return Ze===null?Nh(s,r,i):Z0(s,Ze.memoizedState,r,i)},useTransition:function(){var r=Th(Vr)[0],i=vt().memoizedState;return[typeof r=="boolean"?r:Fs(r),i]},useSyncExternalStore:C0,useId:tb,useHostTransitionStatus:kh,useFormState:$0,useActionState:$0,useOptimistic:function(r,i){var s=vt();return Ze!==null?k0(s,Ze,r,i):(s.baseState=r,[r,s.queue.dispatch])},useMemoCache:wh,useCacheRefresh:nb};sb.useEffectEvent=q0;function Ih(r,i,s,u){i=r.memoizedState,s=s(u,i),s=s==null?i:v({},i,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var Lh={enqueueSetState:function(r,i,s){r=r._reactInternals;var u=Rn(),p=Ea(u);p.payload=i,s!=null&&(p.callback=s),i=wa(r,p,u),i!==null&&(pn(i,r,u),Ls(i,r,u))},enqueueReplaceState:function(r,i,s){r=r._reactInternals;var u=Rn(),p=Ea(u);p.tag=1,p.payload=i,s!=null&&(p.callback=s),i=wa(r,p,u),i!==null&&(pn(i,r,u),Ls(i,r,u))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var s=Rn(),u=Ea(s);u.tag=2,i!=null&&(u.callback=i),i=wa(r,u,s),i!==null&&(pn(i,r,s),Ls(i,r,s))}};function lb(r,i,s,u,p,y,E){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,y,E):i.prototype&&i.prototype.isPureReactComponent?!Os(s,u)||!Os(p,y):!0}function ub(r,i,s,u){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,u),i.state!==r&&Lh.enqueueReplaceState(i,i.state,null)}function wi(r,i){var s=i;if("ref"in i){s={};for(var u in i)u!=="ref"&&(s[u]=i[u])}if(r=r.defaultProps){s===i&&(s=v({},s));for(var p in r)s[p]===void 0&&(s[p]=r[p])}return s}function cb(r){Ru(r)}function fb(r){console.error(r)}function db(r){Ru(r)}function Wu(r,i){try{var s=r.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function hb(r,i,s){try{var u=r.onCaughtError;u(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}
vendor: 4,902 bytes, line 49
49catch(p){setTimeout(function(){throw p})}}function Ph(r,i,s){return s=Ea(s),s.tag=3,s.payload={element:null},s.callback=function(){Wu(r,i)},s}function pb(r){return r=Ea(r),r.tag=3,r}function mb(r,i,s,u){var p=s.type.getDerivedStateFromError;if(typeof p=="function"){var y=u.value;r.payload=function(){return p(y)},r.callback=function(){hb(i,s,u)}}var E=s.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(r.callback=function(){hb(i,s,u),typeof p!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var R=u.stack;this.componentDidCatch(u.value,{componentStack:R!==null?R:""})})}function CN(r,i,s,u,p){if(s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=s.alternate,i!==null&&mo(i,s,p,!0),s=wn.current,s!==null){switch(s.tag){case 31:case 13:return $n===null?lc():s.alternate===null&&dt===0&&(dt=3),s.flags&=-257,s.flags|=65536,s.lanes=p,u===Pu?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([u]):i.add(u),lp(r,u,p)),!1;case 22:return s.flags|=65536,u===Pu?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([u]):s.add(u)),lp(r,u,p)),!1}throw Error(a(435,s.tag))}return lp(r,u,p),lc(),!1}if(ze)return i=wn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,u!==nh&&(r=Error(a(422),{cause:u}),Ds(Pn(r,s)))):(u!==nh&&(i=Error(a(423),{cause:u}),Ds(Pn(i,s))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,u=Pn(u,s),p=Ph(r.stateNode,u,p),hh(r,p),dt!==4&&(dt=2)),!1;var y=Error(a(520),{cause:u});if(y=Pn(y,s),Ws===null?Ws=[y]:Ws.push(y),dt!==4&&(dt=2),i===null)return!0;u=Pn(u,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,r=p&-p,s.lanes|=r,r=Ph(s.stateNode,u,r),hh(s,r),!1;case 1:if(i=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Aa===null||!Aa.has(y))))return s.flags|=65536,p&=-p,s.lanes|=p,p=pb(p),mb(p,r,s,u),hh(s,p),!1}s=s.return}while(s!==null);return!1}var Uh=Error(a(461)),Ct=!1;function $t(r,i,s,u){i.child=r===null?b0(i,null,s,u):xi(i,r.child,s,u)}function gb(r,i,s,u,p){s=s.render;var y=i.ref;if("ref"in u){var E={};for(var R in u)R!=="ref"&&(E[R]=u[R])}else E=u;return yi(i),u=bh(r,i,s,E,y,p),R=Sh(),r!==null&&!Ct?(xh(r,i,p),Br(r,i,p)):(ze&&R&&eh(i),i.flags|=1,$t(r,i,u,p),i.child)}function yb(r,i,s,u,p){if(r===null){var y=s.type;return typeof y=="function"&&!Zd(y)&&y.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=y,vb(r,i,y,u,p)):(r=Du(s.type,null,u,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,!Gh(r,p)){var E=y.memoizedProps;if(s=s.compare,s=s!==null?s:Os,s(E,u)&&r.ref===i.ref)return Br(r,i,p)}return i.flags|=1,r=Pr(y,u),r.ref=i.ref,r.return=i,i.child=r}function vb(r,i,s,u,p){if(r!==null){var y=r.memoizedProps;if(Os(y,u)&&r.ref===i.ref)if(Ct=!1,i.pendingProps=u=y,Gh(r,p))(r.flags&131072)!==0&&(Ct=!0);else return i.lanes=r.lanes,Br(r,i,p)}return zh(r,i,s,u,p)}function bb(r,i,s,u){var p=u.children,y=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(y=y!==null?y.baseLanes|s:s,r!==null){for(u=i.child=r.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~y}else u=0,i.child=null;return Sb(r,i,y,s,u)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Iu(i,y!==null?y.cachePool:null),y!==null?E0(i,y):mh(),w0(i);else return u=i.lanes=536870912,Sb(r,i,y!==null?y.baseLanes|s:s,s,u)}else y!==null?(Iu(i,y.cachePool),E0(i,y),Ta(),i.memoizedState=null):(r!==null&&Iu(i,null),mh(),Ta());return $t(r,i,p,s),i.child}function Bs(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Sb(r,i,s,u,p){var y=uh();return y=y===null?null:{parent:_t._currentValue,pool:y},i.memoizedState={baseLanes:s,cachePool:y},r!==null&&Iu(i,null),mh(),w0(i),r!==null&&mo(r,i,u,!0),i.childLanes=p,null}function Zu(r,i){return i=Ju({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function xb(r,i,s){return xi(i,r.child,null,s),r=Zu(i,i.pendingProps),r.flags|=2,_n(i),i.memoizedState=null,r}function RN(r,i,s){var u=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(ze){if(u.mode==="hidden")return r=Zu(i,u),i.lanes=536870912,Bs(null,r);if(yh(i),(r=it)?(r=MS(r,Fn),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ya!==null?{id:vr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},s=a0(r),s.return=i,i.child=s,zt=i,it=null)):r=null,r===null)throw ba(i);return i.lanes=536870912,null}return Zu(i,u)}var y=r.memoizedState;if(y!==null){var E=y.dehydrated;if(yh(i),p)if(i.flags&256)i.flags&=-257,i=xb(r,i,s);
vendor: 4,995 bytes, line 49
49else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(a(558));else if(Ct||mo(r,i,s,!1),p=(s&r.childLanes)!==0,Ct||p){if(u=tt,u!==null&&(E=Jn(u,s),E!==0&&E!==y.retryLane))throw y.retryLane=E,hi(r,E),pn(u,r,E),Uh;lc(),i=xb(r,i,s)}else r=y.treeContext,it=Vn(E.nextSibling),zt=i,ze=!0,va=null,Fn=!1,r!==null&&s0(i,r),i=Zu(i,u),i.flags|=4096;return i}return r=Pr(r.child,{mode:u.mode,children:u.children}),r.ref=i.ref,i.child=r,r.return=i,r}function Xu(r,i){var s=i.ref;if(s===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(r===null||r.ref!==s)&&(i.flags|=4194816)}}function zh(r,i,s,u,p){return yi(i),s=bh(r,i,s,u,void 0,p),u=Sh(),r!==null&&!Ct?(xh(r,i,p),Br(r,i,p)):(ze&&u&&eh(i),i.flags|=1,$t(r,i,s,p),i.child)}function Eb(r,i,s,u,p,y){return yi(i),i.updateQueue=null,s=T0(i,u,s,p),_0(r),u=Sh(),r!==null&&!Ct?(xh(r,i,y),Br(r,i,y)):(ze&&u&&eh(i),i.flags|=1,$t(r,i,s,y),i.child)}function wb(r,i,s,u,p){if(yi(i),i.stateNode===null){var y=co,E=s.contextType;typeof E=="object"&&E!==null&&(y=Ft(E)),y=new s(u,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Lh,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=u,y.state=i.memoizedState,y.refs={},fh(i),E=s.contextType,y.context=typeof E=="object"&&E!==null?Ft(E):co,y.state=i.memoizedState,E=s.getDerivedStateFromProps,typeof E=="function"&&(Ih(i,s,E,u),y.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(E=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),E!==y.state&&Lh.enqueueReplaceState(y,y.state,null),Us(i,u,y,p),Ps(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(r===null){y=i.stateNode;var R=i.memoizedProps,k=wi(s,R);y.props=k;var q=y.context,K=s.contextType;E=co,typeof K=="object"&&K!==null&&(E=Ft(K));var ee=s.getDerivedStateFromProps;K=typeof ee=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=i.pendingProps!==R,K||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||q!==E)&&ub(i,y,u,E),xa=!1;var H=i.memoizedState;y.state=H,Us(i,u,y,p),Ps(),q=i.memoizedState,R||H!==q||xa?(typeof ee=="function"&&(Ih(i,s,ee,u),q=i.memoizedState),(k=xa||lb(i,s,k,u,H,q,E))?(K||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=q),y.props=u,y.state=q,y.context=E,u=k):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{y=i.stateNode,dh(r,i),E=i.memoizedProps,K=wi(s,E),y.props=K,ee=i.pendingProps,H=y.context,q=s.contextType,k=co,typeof q=="object"&&q!==null&&(k=Ft(q)),R=s.getDerivedStateFromProps,(q=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==ee||H!==k)&&ub(i,y,u,k),xa=!1,H=i.memoizedState,y.state=H,Us(i,u,y,p),Ps();var Q=i.memoizedState;E!==ee||H!==Q||xa||r!==null&&r.dependencies!==null&&Mu(r.dependencies)?(typeof R=="function"&&(Ih(i,s,R,u),Q=i.memoizedState),(K=xa||lb(i,s,K,u,H,Q,k)||r!==null&&r.dependencies!==null&&Mu(r.dependencies))?(q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,Q,k),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,Q,k)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=Q),y.props=u,y.state=Q,y.context=k,u=K):(typeof y.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),u=!1)}return y=u,Xu(r,i),u=(i.flags&128)!==0,y||u?(y=i.stateNode,s=u&&typeof s.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,r!==null&&u?(i.child=xi(i,r.child,null,p),i.child=xi(i,null,s,p)):$t(r,i,s,p),i.memoizedState=y.state,r=i.child):r=Br(r,i,p),r}function _b(r,i,s,u){return mi(),i.flags|=256,$t(r,i,s,u),i.child}var Fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $h(r){return{baseLanes:r,cachePool:h0()}}
vendor: 5,200 bytes, line 49
49function Vh(r,i,s){return r=r!==null?r.childLanes&~s:0,i&&(r|=Cn),r}function Tb(r,i,s){var u=i.pendingProps,p=!1,y=(i.flags&128)!==0,E;if((E=y)||(E=r!==null&&r.memoizedState===null?!1:(yt.current&2)!==0),E&&(p=!0,i.flags&=-129),E=(i.flags&32)!==0,i.flags&=-33,r===null){if(ze){if(p?_a(i):Ta(),(r=it)?(r=MS(r,Fn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:ya!==null?{id:vr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},s=a0(r),s.return=i,i.child=s,zt=i,it=null)):r=null,r===null)throw ba(i);return _p(r)?i.lanes=32:i.lanes=536870912,null}var R=u.children;return u=u.fallback,p?(Ta(),p=i.mode,R=Ju({mode:"hidden",children:R},p),u=pi(u,p,s,null),R.return=i,u.return=i,R.sibling=u,i.child=R,u=i.child,u.memoizedState=$h(s),u.childLanes=Vh(r,E,s),i.memoizedState=Fh,Bs(null,u)):(_a(i),Bh(i,R))}var k=r.memoizedState;if(k!==null&&(R=k.dehydrated,R!==null)){if(y)i.flags&256?(_a(i),i.flags&=-257,i=qh(r,i,s)):i.memoizedState!==null?(Ta(),i.child=r.child,i.flags|=128,i=null):(Ta(),R=u.fallback,p=i.mode,u=Ju({mode:"visible",children:u.children},p),R=pi(R,p,s,null),R.flags|=2,u.return=i,R.return=i,u.sibling=R,i.child=u,xi(i,r.child,null,s),u=i.child,u.memoizedState=$h(s),u.childLanes=Vh(r,E,s),i.memoizedState=Fh,i=Bs(null,u));else if(_a(i),_p(R)){if(E=R.nextSibling&&R.nextSibling.dataset,E)var q=E.dgst;E=q,u=Error(a(419)),u.stack="",u.digest=E,Ds({value:u,source:null,stack:null}),i=qh(r,i,s)}else if(Ct||mo(r,i,s,!1),E=(s&r.childLanes)!==0,Ct||E){if(E=tt,E!==null&&(u=Jn(E,s),u!==0&&u!==k.retryLane))throw k.retryLane=u,hi(r,u),pn(E,r,u),Uh;wp(R)||lc(),i=qh(r,i,s)}else wp(R)?(i.flags|=192,i.child=r.child,i=null):(r=k.treeContext,it=Vn(R.nextSibling),zt=i,ze=!0,va=null,Fn=!1,r!==null&&s0(i,r),i=Bh(i,u.children),i.flags|=4096);return i}return p?(Ta(),R=u.fallback,p=i.mode,k=r.child,q=k.sibling,u=Pr(k,{mode:"hidden",children:u.children}),u.subtreeFlags=k.subtreeFlags&65011712,q!==null?R=Pr(q,R):(R=pi(R,p,s,null),R.flags|=2),R.return=i,u.return=i,u.sibling=R,i.child=u,Bs(null,u),u=i.child,R=r.child.memoizedState,R===null?R=$h(s):(p=R.cachePool,p!==null?(k=_t._currentValue,p=p.parent!==k?{parent:k,pool:k}:p):p=h0(),R={baseLanes:R.baseLanes|s,cachePool:p}),u.memoizedState=R,u.childLanes=Vh(r,E,s),i.memoizedState=Fh,Bs(r.child,u)):(_a(i),s=r.child,r=s.sibling,s=Pr(s,{mode:"visible",children:u.children}),s.return=i,s.sibling=null,r!==null&&(E=i.deletions,E===null?(i.deletions=[r],i.flags|=16):E.push(r)),i.child=s,i.memoizedState=null,s)}function Bh(r,i){return i=Ju({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function Ju(r,i){return r=En(22,r,null,i),r.lanes=0,r}function qh(r,i,s){return xi(i,r.child,null,s),r=Bh(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function Cb(r,i,s){r.lanes|=i;var u=r.alternate;u!==null&&(u.lanes|=i),ih(r.return,i,s)}function Hh(r,i,s,u,p,y){var E=r.memoizedState;E===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:p,treeForkCount:y}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=u,E.tail=s,E.tailMode=p,E.treeForkCount=y)}function Rb(r,i,s){var u=i.pendingProps,p=u.revealOrder,y=u.tail;u=u.children;var E=yt.current,R=(E&2)!==0;if(R?(E=E&1|2,i.flags|=128):E&=1,Z(yt,E),$t(r,i,u,s),u=ze?Ns:0,!R&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Cb(r,s,i);else if(r.tag===19)Cb(r,s,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case"forwards":for(s=i.child,p=null;s!==null;)r=s.alternate,r!==null&&$u(r)===null&&(p=s),s=s.sibling;s=p,s===null?(p=i.child,i.child=null):(p=s.sibling,s.sibling=null),Hh(i,!1,p,s,y,u);break;case"backwards":case"unstable_legacy-backwards":for(s=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&$u(r)===null){i.child=p;break}r=p.sibling,p.sibling=s,s=p,p=r}Hh(i,!0,s,null,y,u);break;case"together":Hh(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Br(r,i,s){if(r!==null&&(i.dependencies=r.dependencies),Oa|=i.lanes,(s&i.childLanes)===0)if(r!==null){if(mo(r,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(a(153));if(i.child!==null){for(r=i.child,s=Pr(r,r.pendingProps),i.child=s,s.return=i;r.sibling!==null;)r=r.sibling,s=s.sibling=Pr(r,r.pendingProps),s.return=i;s.sibling=null}return i.child}function Gh(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Mu(r)))}function ON(r,i,s){switch(i.tag){case 3:nt(i,i.stateNode.containerInfo),Sa(i,_t,r.memoizedState.cache),mi();break;case 27:case 5:Gt(i);break;case 4:nt(i,i.stateNode.containerInfo);break;case 10:Sa(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,yh(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(_a(i),i.flags|=128,null):(s&i.child.childLanes)!==0?Tb(r,i,s):(_a(i),r=Br(r,i,s),r!==null?r.sibling:null);_a(i);break;case 19:var p=(r.flags&128)!==0;if(u=(s&i.childLanes)!==0,u||(mo(r,i,s,!1),u=(s&i.childLanes)!==0),p){
vendor: 4,472 bytes, line 49
49if(u)return Rb(r,i,s);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Z(yt,yt.current),u)break;return null;case 22:return i.lanes=0,bb(r,i,s,i.pendingProps);case 24:Sa(i,_t,r.memoizedState.cache)}return Br(r,i,s)}function Ob(r,i,s){if(r!==null)if(r.memoizedProps!==i.pendingProps)Ct=!0;else{if(!Gh(r,s)&&(i.flags&128)===0)return Ct=!1,ON(r,i,s);Ct=(r.flags&131072)!==0}else Ct=!1,ze&&(i.flags&1048576)!==0&&o0(i,Ns,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(r=bi(i.elementType),i.type=r,typeof r=="function")Zd(r)?(u=wi(r,u),i.tag=1,i=wb(null,i,r,u,s)):(i.tag=0,i=zh(null,i,r,u,s));else{if(r!=null){var p=r.$$typeof;if(p===N){i.tag=11,i=gb(null,i,r,u,s);break e}else if(p===U){i.tag=14,i=yb(null,i,r,u,s);break e}}throw i=ce(r)||r,Error(a(306,i,""))}}return i;case 0:return zh(r,i,i.type,i.pendingProps,s);case 1:return u=i.type,p=wi(u,i.pendingProps),wb(r,i,u,p,s);case 3:e:{if(nt(i,i.stateNode.containerInfo),r===null)throw Error(a(387));u=i.pendingProps;var y=i.memoizedState;p=y.element,dh(r,i),Us(i,u,null,s);var E=i.memoizedState;if(u=E.cache,Sa(i,_t,u),u!==y.cache&&oh(i,[_t],s,!0),Ps(),u=E.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=_b(r,i,u,s);break e}else if(u!==p){p=Pn(Error(a(424)),i),Ds(p),i=_b(r,i,u,s);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(it=Vn(r.firstChild),zt=i,ze=!0,va=null,Fn=!0,s=b0(i,null,u,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(mi(),u===p){i=Br(r,i,s);break e}$t(r,i,u,s)}i=i.child}return i;case 26:return Xu(r,i),r===null?(s=zS(i.type,null,i.pendingProps,null))?i.memoizedState=s:ze||(s=i.type,r=i.pendingProps,u=mc(ye.current).createElement(s),u[Ut]=i,u[ln]=r,Vt(u,s,r),kt(u),i.stateNode=u):i.memoizedState=zS(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return Gt(i),r===null&&ze&&(u=i.stateNode=LS(i.type,i.pendingProps,ye.current),zt=i,Fn=!0,p=it,Ma(i.type)?(Tp=p,it=Vn(u.firstChild)):it=p),$t(r,i,i.pendingProps.children,s),Xu(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&ze&&((p=u=it)&&(u=aD(u,i.type,i.pendingProps,Fn),u!==null?(i.stateNode=u,zt=i,it=Vn(u.firstChild),Fn=!1,p=!0):p=!1),p||ba(i)),Gt(i),p=i.type,y=i.pendingProps,E=r!==null?r.memoizedProps:null,u=y.children,Sp(p,y)?u=null:E!==null&&Sp(p,E)&&(i.flags|=32),i.memoizedState!==null&&(p=bh(r,i,bN,null,null,s),al._currentValue=p),Xu(r,i),$t(r,i,u,s),i.child;case 6:return r===null&&ze&&((r=s=it)&&(s=iD(s,i.pendingProps,Fn),s!==null?(i.stateNode=s,zt=i,it=null,r=!0):r=!1),r||ba(i)),null;case 13:return Tb(r,i,s);case 4:return nt(i,i.stateNode.containerInfo),u=i.pendingProps,r===null?i.child=xi(i,null,u,s):$t(r,i,u,s),i.child;case 11:return gb(r,i,i.type,i.pendingProps,s);case 7:return $t(r,i,i.pendingProps,s),i.child;case 8:return $t(r,i,i.pendingProps.children,s),i.child;case 12:return $t(r,i,i.pendingProps.children,s),i.child;case 10:return u=i.pendingProps,Sa(i,i.type,u.value),$t(r,i,u.children,s),i.child;case 9:return p=i.type._context,u=i.pendingProps.children,yi(i),p=Ft(p),u=u(p),i.flags|=1,$t(r,i,u,s),i.child;case 14:return yb(r,i,i.type,i.pendingProps,s);case 15:return vb(r,i,i.type,i.pendingProps,s);case 19:return Rb(r,i,s);case 31:return RN(r,i,s);case 22:return bb(r,i,s,i.pendingProps);case 24:return yi(i),u=Ft(_t),r===null?(p=uh(),p===null&&(p=tt,y=sh(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=s),p=y),i.memoizedState={parent:u,cache:p},fh(i),Sa(i,_t,p)):((r.lanes&s)!==0&&(dh(r,i),Us(i,null,null,s),Ps()),p=r.memoizedState,y=i.memoizedState,p.parent!==u?(p={parent:u,cache:u},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),Sa(i,_t,u)):(u=y.cache,Sa(i,_t,u),u!==p.cache&&oh(i,[_t],s,!0))),$t(r,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function qr(r){r.flags|=4}function Qh(r,i,s,u,p){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(tS())r.flags|=8192;else throw Si=Pu,ch}else r.flags&=-16777217}function Ab(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!qS(i))if(tS())r.flags|=8192;else throw Si=Pu,ch}function ec(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?et():536870912,r.lanes|=i,Ro|=i)}
vendor: 8,479 bytes, line 49
49function qs(r,i){if(!ze)switch(r.tailMode){case"hidden":i=r.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function ot(r){var i=r.alternate!==null&&r.alternate.child===r.child,s=0,u=0;if(i)for(var p=r.child;p!==null;)s|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)s|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=u,r.childLanes=s,i}function AN(r,i,s){var u=i.pendingProps;switch(th(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(i),null;case 1:return ot(i),null;case 3:return s=i.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Fr(_t),Ae(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(po(i)?qr(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rh())),ot(i),null;case 26:var p=i.type,y=i.memoizedState;return r===null?(qr(i),y!==null?(ot(i),Ab(i,y)):(ot(i),Qh(i,p,null,u,s))):y?y!==r.memoizedState?(qr(i),ot(i),Ab(i,y)):(ot(i),i.flags&=-16777217):(r=r.memoizedProps,r!==u&&qr(i),ot(i),Qh(i,p,r,u,s)),null;case 27:if(Sn(i),s=ye.current,p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return ot(i),null}r=ae.current,po(i)?l0(i):(r=LS(p,u,s),i.stateNode=r,qr(i))}return ot(i),null;case 5:if(Sn(i),p=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return ot(i),null}if(y=ae.current,po(i))l0(i);else{var E=mc(ye.current);switch(y){case 1:y=E.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=E.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=E.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=E.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof u.is=="string"?E.createElement("select",{is:u.is}):E.createElement("select"),u.multiple?y.multiple=!0:u.size&&(y.size=u.size);break;default:y=typeof u.is=="string"?E.createElement(p,{is:u.is}):E.createElement(p)}}y[Ut]=i,y[ln]=u;e:for(E=i.child;E!==null;){if(E.tag===5||E.tag===6)y.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===i)break e;for(;E.sibling===null;){if(E.return===null||E.return===i)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}i.stateNode=y;e:switch(Vt(y,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&qr(i)}}return ot(i),Qh(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,s),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==u&&qr(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(r=ye.current,po(i)){if(r=i.stateNode,s=i.memoizedProps,u=null,p=zt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}r[Ut]=i,r=!!(r.nodeValue===s||u!==null&&u.suppressHydrationWarning===!0||TS(r.nodeValue,s)),r||ba(i,!0)}else r=mc(r).createTextNode(u),r[Ut]=i,i.stateNode=r}return ot(i),null;case 31:if(s=i.memoizedState,r===null||r.memoizedState!==null){if(u=po(i),s!==null){if(r===null){if(!u)throw Error(a(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Ut]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),r=!1}else s=rh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=s),r=!0;if(!r)return i.flags&256?(_n(i),i):(_n(i),null);if((i.flags&128)!==0)throw Error(a(558))}return ot(i),null;case 13:if(u=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=po(i),u!==null&&u.dehydrated!==null){if(r===null){if(!p)throw Error(a(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[Ut]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),p=!1}else p=rh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(_n(i),i):(_n(i),null)}return _n(i),(i.flags&128)!==0?(i.lanes=s,i):(s=u!==null,r=r!==null&&r.memoizedState!==null,s&&(u=i.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),y=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==p&&(u.flags|=2048)),s!==r&&s&&(i.child.flags|=8192),ec(i,i.updateQueue),ot(i),null);case 4:return Ae(),r===null&&mp(i.stateNode.containerInfo),ot(i),null;case 10:return Fr(i.type),ot(i),null;case 19:if(F(yt),u=i.memoizedState,u===null)return ot(i),null;if(p=(i.flags&128)!==0,y=u.rendering,y===null)if(p)qs(u,!1);else{if(dt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(y=$u(r),y!==null){for(i.flags|=128,qs(u,!1),r=y.updateQueue,i.updateQueue=r,ec(i,r),i.subtreeFlags=0,r=s,s=i.child;s!==null;)r0(s,r),s=s.sibling;return Z(yt,yt.current&1|2),ze&&Ur(i,u.treeForkCount),i.child}r=r.sibling}u.tail!==null&&Xt()>ic&&(i.flags|=128,p=!0,qs(u,!1),i.lanes=4194304)}else{if(!p)if(r=$u(y),r!==null){if(i.flags|=128,p=!0,r=r.updateQueue,i.updateQueue=r,ec(i,r),qs(u,!0),u.tail===null&&u.tailMode==="hidden"&&!y.alternate&&!ze)return ot(i),null}else 2*Xt()-u.renderingStartTime>ic&&s!==536870912&&(i.flags|=128,p=!0,qs(u,!1),i.lanes=4194304);u.isBackwards?(y.sibling=i.child,i.child=y):(r=u.last,r!==null?r.sibling=y:i.child=y,u.last=y)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=Xt(),r.sibling=null,s=yt.current,Z(yt,p?s&1|2:s&1),ze&&Ur(i,u.treeForkCount),r):(ot(i),null);case 22:case 23:return _n(i),gh(),u=i.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(s&536870912)!==0&&(i.flags&128)===0&&(ot(i),i.subtreeFlags&6&&(i.flags|=8192)):ot(i),s=i.updateQueue,s!==null&&ec(i,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048),r!==null&&F(vi),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Fr(_t),ot(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function NN(r,i){switch(th(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Fr(_t),Ae(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return Sn(i),null;case 31:if(i.memoizedState!==null){if(_n(i),i.alternate===null)throw Error(a(340));mi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(_n(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(a(340));mi()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return F(yt),null;case 4:return Ae(),null;case 10:return Fr(i.type),null;case 22:case 23:return _n(i),gh(),r!==null&&F(vi),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Fr(_t),null;case 25:return null;default:return null}}function Nb(r,i){switch(th(i),i.tag){case 3:Fr(_t),Ae();break;case 26:case 27:case 5:Sn(i);break;case 4:Ae();break;case 31:i.memoizedState!==null&&_n(i);break;case 13:_n(i);break;case 19:F(yt);break;case 10:Fr(i.type);break;case 22:case 23:_n(i),gh(),r!==null&&F(vi);break;case 24:Fr(_t)}}function Hs(r,i){try{var s=i.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var p=u.next;s=p;do{if((s.tag&r)===r){u=void 0;var y=s.create,E=s.inst;u=y(),E.destroy=u}s=s.next}while(s!==p)}}catch(R){Ye(i,i.return,R)}}function Ca(r,i,s){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&r)===r){var E=u.inst,R=E.destroy;if(R!==void 0){E.destroy=void 0,p=i;var k=s,q=R;try{q()}catch(K){Ye(p,k,K)}}}u=u.next}while(u!==y)}}catch(K){Ye(i,i.return,K)}}function Db(r){var i=r.updateQueue;if(i!==null){var s=r.stateNode;try{x0(i,s)}catch(u){Ye(r,r.return,u)}}}function kb(r,i,s){s.props=wi(r.type,r.memoizedProps),s.state=r.memoizedState;
vendor: 19,826 bytes, line 49
49try{s.componentWillUnmount()}catch(u){Ye(r,i,u)}}function Gs(r,i){try{var s=r.ref;if(s!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof s=="function"?r.refCleanup=s(u):s.current=u}}catch(p){Ye(r,i,p)}}function Sr(r,i){var s=r.ref,u=r.refCleanup;if(s!==null)if(typeof u=="function")try{u()}catch(p){Ye(r,i,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(p){Ye(r,i,p)}else s.current=null}function Mb(r){var i=r.type,s=r.memoizedProps,u=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&u.focus();break e;case"img":s.src?u.src=s.src:s.srcSet&&(u.srcset=s.srcSet)}}catch(p){Ye(r,r.return,p)}}function Yh(r,i,s){try{var u=r.stateNode;XN(u,r.type,s,i),u[ln]=i}catch(p){Ye(r,r.return,p)}}function jb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ma(r.type)||r.tag===4}function Kh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||jb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Ma(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Wh(r,i,s){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(r,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(r),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ir));else if(u!==4&&(u===27&&Ma(r.type)&&(s=r.stateNode,i=null),r=r.child,r!==null))for(Wh(r,i,s),r=r.sibling;r!==null;)Wh(r,i,s),r=r.sibling}function tc(r,i,s){var u=r.tag;if(u===5||u===6)r=r.stateNode,i?s.insertBefore(r,i):s.appendChild(r);else if(u!==4&&(u===27&&Ma(r.type)&&(s=r.stateNode),r=r.child,r!==null))for(tc(r,i,s),r=r.sibling;r!==null;)tc(r,i,s),r=r.sibling}function Ib(r){var i=r.stateNode,s=r.memoizedProps;try{for(var u=r.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);Vt(i,u,s),i[Ut]=r,i[ln]=s}catch(y){Ye(r,r.return,y)}}var Hr=!1,Rt=!1,Zh=!1,Lb=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function DN(r,i){if(r=r.containerInfo,vp=Ec,r=Yv(r),qd(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var p=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var E=0,R=-1,k=-1,q=0,K=0,ee=r,H=null;t:for(;;){for(var Q;ee!==s||p!==0&&ee.nodeType!==3||(R=E+p),ee!==y||u!==0&&ee.nodeType!==3||(k=E+u),ee.nodeType===3&&(E+=ee.nodeValue.length),(Q=ee.firstChild)!==null;)H=ee,ee=Q;for(;;){if(ee===r)break t;if(H===s&&++q===p&&(R=E),H===y&&++K===u&&(k=E),(Q=ee.nextSibling)!==null)break;ee=H,H=ee.parentNode}ee=Q}s=R===-1||k===-1?null:{start:R,end:k}}else s=null}s=s||{start:0,end:0}}else s=null;for(bp={focusedElem:r,selectionRange:s},Ec=!1,Mt=i;Mt!==null;)if(i=Mt,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Mt=r;else for(;Mt!==null;){switch(i=Mt,y=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(s=0;s<r.length;s++)p=r[s],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,s=i,p=y.memoizedProps,y=y.memoizedState,u=s.stateNode;try{var be=wi(s.type,p);r=u.getSnapshotBeforeUpdate(be,y),u.__reactInternalSnapshotBeforeUpdate=r}catch(we){Ye(s,s.return,we)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,s=r.nodeType,s===9)Ep(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Ep(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=i.sibling,r!==null){r.return=i.return,Mt=r;break}Mt=i.return}}function Pb(r,i,s){var u=s.flags;switch(s.tag){case 0:case 11:case 15:Qr(r,s),u&4&&Hs(5,s);break;case 1:if(Qr(r,s),u&4)if(r=s.stateNode,i===null)try{r.componentDidMount()}catch(E){Ye(s,s.return,E)}else{var p=wi(s.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(p,i,r.__reactInternalSnapshotBeforeUpdate)}catch(E){Ye(s,s.return,E)}}u&64&&Db(s),u&512&&Gs(s,s.return);break;case 3:if(Qr(r,s),u&64&&(r=s.updateQueue,r!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{x0(r,i)}catch(E){Ye(s,s.return,E)}}break;case 27:i===null&&u&4&&Ib(s);case 26:case 5:Qr(r,s),i===null&&u&4&&Mb(s),u&512&&Gs(s,s.return);break;case 12:Qr(r,s);break;case 31:Qr(r,s),u&4&&Fb(r,s);break;case 13:Qr(r,s),u&4&&$b(r,s),u&64&&(r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(s=FN.bind(null,s),oD(r,s))));break;case 22:if(u=s.memoizedState!==null||Hr,!u){i=i!==null&&i.memoizedState!==null||Rt,p=Hr;var y=Rt;Hr=u,(Rt=i)&&!y?Yr(r,s,(s.subtreeFlags&8772)!==0):Qr(r,s),Hr=p,Rt=y}break;case 30:break;default:Qr(r,s)}}function Ub(r){var i=r.alternate;i!==null&&(r.alternate=null,Ub(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Rd(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var st=null,cn=!1;function Gr(r,i,s){for(s=s.child;s!==null;)zb(r,i,s),s=s.sibling}function zb(r,i,s){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Mr,s)}catch{}switch(s.tag){case 26:Rt||Sr(s,i),Gr(r,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Rt||Sr(s,i);var u=st,p=cn;Ma(s.type)&&(st=s.stateNode,cn=!1),Gr(r,i,s),tl(s.stateNode),st=u,cn=p;break;case 5:Rt||Sr(s,i);case 6:if(u=st,p=cn,st=null,Gr(r,i,s),st=u,cn=p,st!==null)if(cn)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(s.stateNode)}catch(y){Ye(s,i,y)}else try{st.removeChild(s.stateNode)}catch(y){Ye(s,i,y)}break;case 18:st!==null&&(cn?(r=st,DS(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,s.stateNode),Io(r)):DS(st,s.stateNode));break;case 4:u=st,p=cn,st=s.stateNode.containerInfo,cn=!0,Gr(r,i,s),st=u,cn=p;break;case 0:case 11:case 14:case 15:Ca(2,s,i),Rt||Ca(4,s,i),Gr(r,i,s);break;case 1:Rt||(Sr(s,i),u=s.stateNode,typeof u.componentWillUnmount=="function"&&kb(s,i,u)),Gr(r,i,s);break;case 21:Gr(r,i,s);break;case 22:Rt=(u=Rt)||s.memoizedState!==null,Gr(r,i,s),Rt=u;break;default:Gr(r,i,s)}}function Fb(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Io(r)}catch(s){Ye(i,i.return,s)}}}function $b(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Io(r)}catch(s){Ye(i,i.return,s)}}function kN(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new Lb),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new Lb),i;default:throw Error(a(435,r.tag))}}function nc(r,i){var s=kN(r);i.forEach(function(u){if(!s.has(u)){s.add(u);var p=$N.bind(null,r,u);u.then(p,p)}})}function fn(r,i){var s=i.deletions;if(s!==null)for(var u=0;u<s.length;u++){var p=s[u],y=r,E=i,R=E;e:for(;R!==null;){switch(R.tag){case 27:if(Ma(R.type)){st=R.stateNode,cn=!1;break e}break;case 5:st=R.stateNode,cn=!1;break e;case 3:case 4:st=R.stateNode.containerInfo,cn=!0;break e}R=R.return}if(st===null)throw Error(a(160));zb(y,E,p),st=null,cn=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Vb(i,r),i=i.sibling}var tr=null;function Vb(r,i){var s=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:fn(i,r),dn(r),u&4&&(Ca(3,r,r.return),Hs(3,r),Ca(5,r,r.return));break;case 1:fn(i,r),dn(r),u&512&&(Rt||s===null||Sr(s,s.return)),u&64&&Hr&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?u:s.concat(u))));break;case 26:var p=tr;if(fn(i,r),dn(r),u&512&&(Rt||s===null||Sr(s,s.return)),u&4){var y=s!==null?s.memoizedState:null;if(u=r.memoizedState,s===null)if(u===null)if(r.stateNode===null){e:{u=r.type,s=r.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":y=p.getElementsByTagName("title")[0],(!y||y[bs]||y[Ut]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(u),p.head.insertBefore(y,p.querySelector("head > title"))),Vt(y,u,s),y[Ut]=r,kt(y),u=y;break e;case"link":var E=VS("link","href",p).get(u+(s.href||""));if(E){for(var R=0;R<E.length;R++)if(y=E[R],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){E.splice(R,1);break t}}y=p.createElement(u),Vt(y,u,s),p.head.appendChild(y);break;case"meta":if(E=VS("meta","content",p).get(u+(s.content||""))){for(R=0;R<E.length;R++)if(y=E[R],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){E.splice(R,1);break t}}y=p.createElement(u),Vt(y,u,s),p.head.appendChild(y);break;default:throw Error(a(468,u))}y[Ut]=r,kt(y),u=y}r.stateNode=u}else BS(p,r.type,r.stateNode);else r.stateNode=$S(p,u,r.memoizedProps);else y!==u?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,u===null?BS(p,r.type,r.stateNode):$S(p,u,r.memoizedProps)):u===null&&r.stateNode!==null&&Yh(r,r.memoizedProps,s.memoizedProps)}break;case 27:fn(i,r),dn(r),u&512&&(Rt||s===null||Sr(s,s.return)),s!==null&&u&4&&Yh(r,r.memoizedProps,s.memoizedProps);break;case 5:if(fn(i,r),dn(r),u&512&&(Rt||s===null||Sr(s,s.return)),r.flags&32){p=r.stateNode;try{ro(p,"")}catch(be){Ye(r,r.return,be)}}u&4&&r.stateNode!=null&&(p=r.memoizedProps,Yh(r,p,s!==null?s.memoizedProps:p)),u&1024&&(Zh=!0);break;case 6:if(fn(i,r),dn(r),u&4){if(r.stateNode===null)throw Error(a(162));u=r.memoizedProps,s=r.stateNode;try{s.nodeValue=u}catch(be){Ye(r,r.return,be)}}break;case 3:if(vc=null,p=tr,tr=gc(i.containerInfo),fn(i,r),tr=p,dn(r),u&4&&s!==null&&s.memoizedState.isDehydrated)try{Io(i.containerInfo)}catch(be){Ye(r,r.return,be)}Zh&&(Zh=!1,Bb(r));break;case 4:u=tr,tr=gc(r.stateNode.containerInfo),fn(i,r),dn(r),tr=u;break;case 12:fn(i,r),dn(r);break;case 31:fn(i,r),dn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,nc(r,u)));break;case 13:fn(i,r),dn(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ac=Xt()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,nc(r,u)));break;case 22:p=r.memoizedState!==null;var k=s!==null&&s.memoizedState!==null,q=Hr,K=Rt;if(Hr=q||p,Rt=K||k,fn(i,r),Rt=K,Hr=q,dn(r),u&8192)e:for(i=r.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(s===null||k||Hr||Rt||_i(r)),s=null,i=r;;){if(i.tag===5||i.tag===26){if(s===null){k=s=i;try{if(y=k.stateNode,p)E=y.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{R=k.stateNode;var ee=k.memoizedProps.style,H=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;R.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(be){Ye(k,k.return,be)}}}else if(i.tag===6){if(s===null){k=i;try{k.stateNode.nodeValue=p?"":k.memoizedProps}catch(be){Ye(k,k.return,be)}}}else if(i.tag===18){if(s===null){k=i;try{var Q=k.stateNode;p?kS(Q,!0):kS(k.stateNode,!1)}catch(be){Ye(k,k.return,be)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=r.updateQueue,u!==null&&(s=u.retryQueue,s!==null&&(u.retryQueue=null,nc(r,s))));break;case 19:fn(i,r),dn(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,nc(r,u)));break;case 30:break;case 21:break;default:fn(i,r),dn(r)}}function dn(r){var i=r.flags;if(i&2){try{for(var s,u=r.return;u!==null;){if(jb(u)){s=u;break}u=u.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var p=s.stateNode,y=Kh(r);tc(r,y,p);break;case 5:var E=s.stateNode;s.flags&32&&(ro(E,""),s.flags&=-33);var R=Kh(r);tc(r,R,E);break;case 3:case 4:var k=s.stateNode.containerInfo,q=Kh(r);Wh(r,q,k);break;default:throw Error(a(161))}}catch(K){Ye(r,r.return,K)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function Bb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;Bb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function Qr(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Pb(r,i.alternate,i),i=i.sibling}function _i(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:Ca(4,i,i.return),_i(i);break;case 1:Sr(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&kb(i,i.return,s),_i(i);break;case 27:tl(i.stateNode);case 26:case 5:Sr(i,i.return),_i(i);break;case 22:i.memoizedState===null&&_i(i);break;case 30:_i(i);break;default:_i(i)}r=r.sibling}}function Yr(r,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,p=r,y=i,E=y.flags;switch(y.tag){case 0:case 11:case 15:Yr(p,y,s),Hs(4,y);break;case 1:if(Yr(p,y,s),u=y,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(q){Ye(u,u.return,q)}if(u=y,p=u.updateQueue,p!==null){var R=u.stateNode;try{var k=p.shared.hiddenCallbacks;if(k!==null)for(p.shared.hiddenCallbacks=null,p=0;p<k.length;p++)S0(k[p],R)}catch(q){Ye(u,u.return,q)}}s&&E&64&&Db(y),Gs(y,y.return);break;case 27:Ib(y);case 26:case 5:Yr(p,y,s),s&&u===null&&E&4&&Mb(y),Gs(y,y.return);break;case 12:Yr(p,y,s);break;case 31:Yr(p,y,s),s&&E&4&&Fb(p,y);break;case 13:Yr(p,y,s),s&&E&4&&$b(p,y);break;case 22:y.memoizedState===null&&Yr(p,y,s),Gs(y,y.return);break;case 30:break;default:Yr(p,y,s)}i=i.sibling}}function Xh(r,i){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&ks(s))}function Jh(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ks(r))}function nr(r,i,s,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)qb(r,i,s,u),i=i.sibling}function qb(r,i,s,u){var p=i.flags;switch(i.tag){case 0:case 11:case 15:nr(r,i,s,u),p&2048&&Hs(9,i);break;case 1:nr(r,i,s,u);break;case 3:nr(r,i,s,u),p&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&ks(r)));break;case 12:if(p&2048){nr(r,i,s,u),r=i.stateNode;try{var y=i.memoizedProps,E=y.id,R=y.onPostCommit;typeof R=="function"&&R(E,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){Ye(i,i.return,k)}}else nr(r,i,s,u);break;case 31:nr(r,i,s,u);break;case 13:nr(r,i,s,u);break;case 23:break;case 22:y=i.stateNode,E=i.alternate,i.memoizedState!==null?y._visibility&2?nr(r,i,s,u):Qs(r,i):y._visibility&2?nr(r,i,s,u):(y._visibility|=2,_o(r,i,s,u,(i.subtreeFlags&10256)!==0||!1)),p&2048&&Xh(E,i);break;case 24:nr(r,i,s,u),p&2048&&Jh(i.alternate,i);break;default:nr(r,i,s,u)}}function _o(r,i,s,u,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var y=r,E=i,R=s,k=u,q=E.flags;switch(E.tag){case 0:case 11:case 15:_o(y,E,R,k,p),Hs(8,E);break;case 23:break;case 22:var K=E.stateNode;E.memoizedState!==null?K._visibility&2?_o(y,E,R,k,p):Qs(y,E):(K._visibility|=2,_o(y,E,R,k,p)),p&&q&2048&&Xh(E.alternate,E);break;case 24:_o(y,E,R,k,p),p&&q&2048&&Jh(E.alternate,E);break;default:_o(y,E,R,k,p)}i=i.sibling}}function Qs(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=r,u=i,p=u.flags;switch(u.tag){case 22:Qs(s,u),p&2048&&Xh(u.alternate,u);break;case 24:Qs(s,u),p&2048&&Jh(u.alternate,u);break;default:Qs(s,u)}i=i.sibling}}var Ys=8192;function To(r,i,s){if(r.subtreeFlags&Ys)for(r=r.child;r!==null;)Hb(r,i,s),r=r.sibling}function Hb(r,i,s){switch(r.tag){case 26:To(r,i,s),r.flags&Ys&&r.memoizedState!==null&&vD(s,tr,r.memoizedState,r.memoizedProps);break;case 5:To(r,i,s);break;case 3:case 4:var u=tr;tr=gc(r.stateNode.containerInfo),To(r,i,s),tr=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=Ys,Ys=16777216,To(r,i,s),Ys=u):To(r,i,s));break;default:To(r,i,s)}}function Gb(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function Ks(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var u=i[s];Mt=u,Yb(u,r)}Gb(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Qb(r),r=r.sibling}function Qb(r){switch(r.tag){case 0:case 11:case 15:Ks(r),r.flags&2048&&Ca(9,r,r.return);break;case 3:Ks(r);break;case 12:Ks(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,rc(r)):Ks(r);break;default:Ks(r)}}function rc(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var u=i[s];Mt=u,Yb(u,r)}Gb(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:Ca(8,i,i.return),rc(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,rc(i));break;default:rc(i)}r=r.sibling}}function Yb(r,i){for(;Mt!==null;){var s=Mt;switch(s.tag){case 0:case 11:case 15:Ca(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var u=s.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:ks(s.memoizedState.cache)}if(u=s.child,u!==null)u.return=s,Mt=u;else e:for(s=r;Mt!==null;){u=Mt;var p=u.sibling,y=u.return;if(Ub(u),u===s){Mt=null;break e}if(p!==null){p.return=y,Mt=p;break e}Mt=y}}}var MN={getCacheForType:function(r){var i=Ft(_t),s=i.data.get(r);return s===void 0&&(s=r(),i.data.set(r,s)),s},cacheSignal:function(){return Ft(_t).controller.signal}},jN=typeof WeakMap=="function"?WeakMap:Map,Be=0,tt=null,Ie=null,Pe=0,Qe=0,Tn=null,Ra=!1,Co=!1,ep=!1,Kr=0,dt=0,Oa=0,Ti=0,tp=0,Cn=0,Ro=0,Ws=null,hn=null,np=!1,ac=0,Kb=0,ic=1/0,oc=null,Aa=null,At=0,Na=null,Oo=null,Wr=0,rp=0,ap=null,Wb=null,Zs=0,ip=null;function Rn(){return(Be&2)!==0&&Pe!==0?Pe&-Pe:I.T!==null?fp():dv()}function Zb(){if(Cn===0)if((Pe&536870912)===0||ze){var r=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),Cn=r}else Cn=536870912;return r=wn.current,r!==null&&(r.flags|=32),Cn}function pn(r,i,s){(r===tt&&(Qe===2||Qe===9)||r.cancelPendingCommit!==null)&&(Ao(r,0),Da(r,Pe,Cn,!1)),Pt(r,s),((Be&2)===0||r!==tt)&&(r===tt&&((Be&2)===0&&(Ti|=s),dt===4&&Da(r,Pe,Cn,!1)),xr(r))}function Xb(r,i,s){if((Be&6)!==0)throw Error(a(327));var u=!s&&(i&127)===0&&(i&r.expiredLanes)===0||_e(r,i),p=u?PN(r,i):sp(r,i,!0),y=u;do{if(p===0){Co&&!u&&Da(r,i,0,!1);break}else{if(s=r.current.alternate,y&&!IN(s)){p=sp(r,i,!1),y=!1;continue}if(p===2){if(y=i,r.errorRecoveryDisabledLanes&y)var E=0;else E=r.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){i=E;e:{var R=r;p=Ws;var k=R.current.memoizedState.isDehydrated;if(k&&(Ao(R,E).flags|=256),E=sp(R,E,!1),E!==2){if(ep&&!k){R.errorRecoveryDisabledLanes|=y,Ti|=y,p=4;break e}y=hn,hn=p,y!==null&&(hn===null?hn=y:hn.push.apply(hn,y))}p=E}if(y=!1,p!==2)continue}}if(p===1){Ao(r,0),Da(r,i,0,!0);break}e:{switch(u=r,y=p,y){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Da(u,i,Cn,!Ra);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(p=ac+300-Xt(),10<p)){if(Da(u,i,Cn,!Ra),Wi(u,0,!0)!==0)break e;
vendor: 15,438 bytes, line 49
49Wr=i,u.timeoutHandle=AS(Jb.bind(null,u,s,hn,oc,np,i,Cn,Ti,Ro,Ra,y,"Throttled",-0,0),p);break e}Jb(u,s,hn,oc,np,i,Cn,Ti,Ro,Ra,y,null,-0,0)}}break}while(!0);xr(r)}function Jb(r,i,s,u,p,y,E,R,k,q,K,ee,H,Q){if(r.timeoutHandle=-1,ee=i.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ir},Hb(i,y,ee);var be=(y&62914560)===y?ac-Xt():(y&4194048)===y?Kb-Xt():0;if(be=bD(ee,be),be!==null){Wr=y,r.cancelPendingCommit=be(sS.bind(null,r,i,y,s,u,p,E,R,k,K,ee,null,H,Q)),Da(r,y,E,!q);return}}sS(r,i,y,s,u,p,E,R,k)}function IN(r){for(var i=r;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var u=0;u<s.length;u++){var p=s[u],y=p.getSnapshot;p=p.value;try{if(!xn(y(),p))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Da(r,i,s,u){i&=~tp,i&=~Ti,r.suspendedLanes|=i,r.pingedLanes&=~i,u&&(r.warmLanes|=i),u=r.expirationTimes;for(var p=i;0<p;){var y=31-wt(p),E=1<<y;u[y]=-1,p&=~E}s!==0&&yr(r,s,i)}function sc(){return(Be&6)===0?(Xs(0),!1):!0}function op(){if(Ie!==null){if(Qe===0)var r=Ie.return;else r=Ie,zr=gi=null,Eh(r),bo=null,js=0,r=Ie;for(;r!==null;)Nb(r.alternate,r),r=r.return;Ie=null}}function Ao(r,i){var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,tD(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),Wr=0,op(),tt=r,Ie=s=Pr(r.current,null),Pe=i,Qe=0,Tn=null,Ra=!1,Co=_e(r,i),ep=!1,Ro=Cn=tp=Ti=Oa=dt=0,hn=Ws=null,np=!1,(i&8)!==0&&(i|=i&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=i;0<u;){var p=31-wt(u),y=1<<p;i|=r[p],u&=~y}return Kr=i,Ou(),s}function eS(r,i){Ne=null,I.H=Vs,i===vo||i===Lu?(i=g0(),Qe=3):i===ch?(i=g0(),Qe=4):Qe=i===Uh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Tn=i,Ie===null&&(dt=1,Wu(r,Pn(i,r.current)))}function tS(){var r=wn.current;return r===null?!0:(Pe&4194048)===Pe?$n===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?r===$n:!1}function nS(){var r=I.H;return I.H=Vs,r===null?Vs:r}function rS(){var r=I.A;return I.A=MN,r}function lc(){dt=4,Ra||(Pe&4194048)!==Pe&&wn.current!==null||(Co=!0),(Oa&134217727)===0&&(Ti&134217727)===0||tt===null||Da(tt,Pe,Cn,!1)}function sp(r,i,s){var u=Be;Be|=2;var p=nS(),y=rS();(tt!==r||Pe!==i)&&(oc=null,Ao(r,i)),i=!1;var E=dt;e:do try{if(Qe!==0&&Ie!==null){var R=Ie,k=Tn;switch(Qe){case 8:op(),E=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(i=!0);var q=Qe;if(Qe=0,Tn=null,No(r,R,k,q),s&&Co){E=0;break e}break;default:q=Qe,Qe=0,Tn=null,No(r,R,k,q)}}LN(),E=dt;break}catch(K){eS(r,K)}while(!0);return i&&r.shellSuspendCounter++,zr=gi=null,Be=u,I.H=p,I.A=y,Ie===null&&(tt=null,Pe=0,Ou()),E}function LN(){for(;Ie!==null;)aS(Ie)}function PN(r,i){var s=Be;Be|=2;var u=nS(),p=rS();tt!==r||Pe!==i?(oc=null,ic=Xt()+500,Ao(r,i)):Co=_e(r,i);e:do try{if(Qe!==0&&Ie!==null){i=Ie;var y=Tn;t:switch(Qe){case 1:Qe=0,Tn=null,No(r,i,y,1);break;case 2:case 9:if(p0(y)){Qe=0,Tn=null,iS(i);break}i=function(){Qe!==2&&Qe!==9||tt!==r||(Qe=7),xr(r)},y.then(i,i);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:p0(y)?(Qe=0,Tn=null,iS(i)):(Qe=0,Tn=null,No(r,i,y,7));break;case 5:var E=null;switch(Ie.tag){case 26:E=Ie.memoizedState;case 5:case 27:var R=Ie;if(E?qS(E):R.stateNode.complete){Qe=0,Tn=null;var k=R.sibling;if(k!==null)Ie=k;else{var q=R.return;q!==null?(Ie=q,uc(q)):Ie=null}break t}}Qe=0,Tn=null,No(r,i,y,5);break;case 6:Qe=0,Tn=null,No(r,i,y,6);break;case 8:op(),dt=6;break e;default:throw Error(a(462))}}UN();break}catch(K){eS(r,K)}while(!0);return zr=gi=null,I.H=u,I.A=p,Be=s,Ie!==null?0:(tt=null,Pe=0,Ou(),dt)}function UN(){for(;Ie!==null&&!pu();)aS(Ie)}function aS(r){var i=Ob(r.alternate,r,Kr);r.memoizedProps=r.pendingProps,i===null?uc(r):Ie=i}function iS(r){var i=r,s=i.alternate;switch(i.tag){case 15:case 0:i=Eb(s,i,i.pendingProps,i.type,void 0,Pe);break;case 11:i=Eb(s,i,i.pendingProps,i.type.render,i.ref,Pe);break;case 5:Eh(i);default:Nb(s,i),i=Ie=r0(i,Kr),i=Ob(s,i,Kr)}r.memoizedProps=r.pendingProps,i===null?uc(r):Ie=i}function No(r,i,s,u){zr=gi=null,Eh(i),bo=null,js=0;var p=i.return;try{if(CN(r,p,i,s,Pe)){dt=1,Wu(r,Pn(s,r.current)),Ie=null;return}}catch(y){if(p!==null)throw Ie=p,y;dt=1,Wu(r,Pn(s,r.current)),Ie=null;return}i.flags&32768?(ze||u===1?r=!0:Co||(Pe&536870912)!==0?r=!1:(Ra=r=!0,(u===2||u===9||u===3||u===6)&&(u=wn.current,u!==null&&u.tag===13&&(u.flags|=16384))),oS(i,r)):uc(i)}function uc(r){var i=r;do{if((i.flags&32768)!==0){oS(i,Ra);return}r=i.return;var s=AN(i.alternate,i,Kr);if(s!==null){Ie=s;return}if(i=i.sibling,i!==null){Ie=i;return}Ie=i=r}while(i!==null);dt===0&&(dt=5)}function oS(r,i){do{var s=NN(r.alternate,r);if(s!==null){s.flags&=32767,Ie=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(r=r.sibling,r!==null)){Ie=r;return}Ie=r=s}while(r!==null);dt=6,Ie=null}function sS(r,i,s,u,p,y,E,R,k){r.cancelPendingCommit=null;do cc();while(At!==0);if((Be&6)!==0)throw Error(a(327));if(i!==null){if(i===r.current)throw Error(a(177));if(y=i.lanes|i.childLanes,y|=Kd,gr(r,s,y,E,R,k),r===tt&&(Ie=tt=null,Pe=0),Oo=i,Na=r,Wr=s,rp=y,ap=p,Wb=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,VN(Yi,function(){return dS(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=I.T,I.T=null,p=V.p,V.p=2,E=Be,Be|=4;try{DN(r,i,s)}finally{Be=E,V.p=p,I.T=u}}At=1,lS(),uS(),cS()}}function lS(){if(At===1){At=0;var r=Na,i=Oo,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=I.T,I.T=null;var u=V.p;V.p=2;var p=Be;Be|=4;try{Vb(i,r);var y=bp,E=Yv(r.containerInfo),R=y.focusedElem,k=y.selectionRange;if(E!==R&&R&&R.ownerDocument&&Qv(R.ownerDocument.documentElement,R)){if(k!==null&&qd(R)){var q=k.start,K=k.end;if(K===void 0&&(K=q),"selectionStart"in R)R.selectionStart=q,R.selectionEnd=Math.min(K,R.value.length);else{var ee=R.ownerDocument||document,H=ee&&ee.defaultView||window;if(H.getSelection){var Q=H.getSelection(),be=R.textContent.length,we=Math.min(k.start,be),Je=k.end===void 0?we:Math.min(k.end,be);!Q.extend&&we>Je&&(E=Je,Je=we,we=E);var z=Gv(R,we),j=Gv(R,Je);if(z&&j&&(Q.rangeCount!==1||Q.anchorNode!==z.node||Q.anchorOffset!==z.offset||Q.focusNode!==j.node||Q.focusOffset!==j.offset)){var B=ee.createRange();B.setStart(z.node,z.offset),Q.removeAllRanges(),we>Je?(Q.addRange(B),Q.extend(j.node,j.offset)):(B.setEnd(j.node,j.offset),Q.addRange(B))}}}}for(ee=[],Q=R;Q=Q.parentNode;)Q.nodeType===1&&ee.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ee.length;R++){var X=ee[R];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ec=!!vp,bp=vp=null}finally{Be=p,V.p=u,I.T=s}}r.current=i,At=2}}function uS(){if(At===2){At=0;var r=Na,i=Oo,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=I.T,I.T=null;var u=V.p;V.p=2;var p=Be;Be|=4;try{Pb(r,i.alternate,i)}finally{Be=p,V.p=u,I.T=s}}At=3}}function cS(){if(At===4||At===3){At=0,Dr();var r=Na,i=Oo,s=Wr,u=Wb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?At=5:(At=0,Oo=Na=null,fS(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(Aa=null),Td(s),i=i.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Mr,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=I.T,p=V.p,V.p=2,I.T=null;try{for(var y=r.onRecoverableError,E=0;E<u.length;E++){var R=u[E];y(R.value,{componentStack:R.stack})}}finally{I.T=i,V.p=p}}(Wr&3)!==0&&cc(),xr(r),p=r.pendingLanes,(s&261930)!==0&&(p&42)!==0?r===ip?Zs++:(Zs=0,ip=r):Zs=0,Xs(0)}}function fS(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,ks(i)))}function cc(){return lS(),uS(),cS(),dS()}function dS(){if(At!==5)return!1;var r=Na,i=rp;rp=0;var s=Td(Wr),u=I.T,p=V.p;try{V.p=32>s?32:s,I.T=null,s=ap,ap=null;var y=Na,E=Wr;if(At=0,Oo=Na=null,Wr=0,(Be&6)!==0)throw Error(a(331));var R=Be;if(Be|=4,Qb(y.current),qb(y,y.current,E,s),Be=R,Xs(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Mr,y)}catch{}return!0}finally{V.p=p,I.T=u,fS(r,i)}}function hS(r,i,s){i=Pn(s,i),i=Ph(r.stateNode,i,2),r=wa(r,i,2),r!==null&&(Pt(r,2),xr(r))}function Ye(r,i,s){if(r.tag===3)hS(r,r,s);else for(;i!==null;){if(i.tag===3){hS(i,r,s);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Aa===null||!Aa.has(u))){r=Pn(s,r),s=pb(2),u=wa(i,s,2),u!==null&&(mb(s,u,i,r),Pt(u,2),xr(u));break}}i=i.return}}function lp(r,i,s){var u=r.pingCache;if(u===null){u=r.pingCache=new jN;var p=new Set;u.set(i,p)}else p=u.get(i),p===void 0&&(p=new Set,u.set(i,p));p.has(s)||(ep=!0,p.add(s),r=zN.bind(null,r,i,s),i.then(r,r))}function zN(r,i,s){var u=r.pingCache;u!==null&&u.delete(i),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,tt===r&&(Pe&s)===s&&(dt===4||dt===3&&(Pe&62914560)===Pe&&300>Xt()-ac?(Be&2)===0&&Ao(r,0):tp|=s,Ro===Pe&&(Ro=0)),xr(r)}function pS(r,i){i===0&&(i=et()),r=hi(r,i),r!==null&&(Pt(r,i),xr(r))}function FN(r){var i=r.memoizedState,s=0;i!==null&&(s=i.retryLane),pS(r,s)}function $N(r,i){var s=0;switch(r.tag){case 31:case 13:var u=r.stateNode,p=r.memoizedState;p!==null&&(s=p.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),pS(r,s)}function VN(r,i){return Qi(r,i)}var fc=null,Do=null,up=!1,dc=!1,cp=!1,ka=0;function xr(r){r!==Do&&r.next===null&&(Do===null?fc=Do=r:Do=Do.next=r),dc=!0,up||(up=!0,qN())}function Xs(r,i){if(!cp&&dc){cp=!0;do for(var s=!1,u=fc;u!==null;){if(r!==0){var p=u.pendingLanes;if(p===0)var y=0;else{var E=u.suspendedLanes,R=u.pingedLanes;y=(1<<31-wt(42|r)+1)-1,y&=p&~(E&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(s=!0,vS(u,y))}else y=Pe,y=Wi(u,u===tt?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||_e(u,y)||(s=!0,vS(u,y));u=u.next}while(s);cp=!1}}function BN(){mS()}function mS(){dc=up=!1;var r=0;ka!==0&&eD()&&(r=ka);for(var i=Xt(),s=null,u=fc;u!==null;){var p=u.next,y=gS(u,i);y===0?(u.next=null,s===null?fc=p:s.next=p,p===null&&(Do=s)):(s=u,(r!==0||(y&3)!==0)&&(dc=!0)),u=p}At!==0&&At!==5||Xs(r),ka!==0&&(ka=0)}function gS(r,i){for(var s=r.suspendedLanes,u=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var E=31-wt(y),R=1<<E,k=p[E];k===-1?((R&s)===0||(R&u)!==0)&&(p[E]=He(R,i)):k<=i&&(r.expiredLanes|=R),y&=~R}if(i=tt,s=Pe,s=Wi(r,r===i?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,s===0||r===i&&(Qe===2||Qe===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&Nr(u),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||_e(r,s)){if(i=s&-s,i===r.callbackPriority)return i;switch(u!==null&&Nr(u),Td(s)){case 2:case 8:s=kr;break;case 32:s=Yi;break;case 268435456:s=si;break;default:s=Yi}return u=yS.bind(null,r),s=Qi(s,u),r.callbackPriority=i,r.callbackNode=s,i}return u!==null&&u!==null&&Nr(u),r.callbackPriority=2,r.callbackNode=null,2}function yS(r,i){if(At!==0&&At!==5)return r.callbackNode=null,r.callbackPriority=0,null;var s=r.callbackNode;if(cc()&&r.callbackNode!==s)return null;var u=Pe;return u=Wi(r,r===tt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(Xb(r,u,i),gS(r,Xt()),r.callbackNode!=null&&r.callbackNode===s?yS.bind(null,r):null)}function vS(r,i){if(cc())return null;Xb(r,i,!0)}function qN(){nD(function(){(Be&6)!==0?Qi(Jt,BN):mS()})}function fp(){if(ka===0){var r=go;r===0&&(r=li,li<<=1,(li&261888)===0&&(li=256)),ka=r}return ka}function bS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Su(""+r)}function SS(r,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,r.id&&s.setAttribute("form",r.id),i.parentNode.insertBefore(s,i),r=new FormData(r),s.parentNode.removeChild(s),r}function HN(r,i,s,u,p){if(i==="submit"&&s&&s.stateNode===p){var y=bS((p[ln]||null).action),E=u.submitter;E&&(i=(i=E[ln]||null)?bS(i.formAction):E.getAttribute("formAction"),i!==null&&(y=i,E=null));var R=new _u("action","action",null,u,p);r.push({event:R,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(ka!==0){var k=E?SS(p,E):new FormData(p);Dh(s,{pending:!0,data:k,method:p.method,action:y},null,k)}}else typeof y=="function"&&(R.preventDefault(),k=E?SS(p,E):new FormData(p),Dh(s,{pending:!0,data:k,method:p.method,action:y},y,k))},currentTarget:p}]})}}for(var dp=0;dp<Yd.length;dp++){var hp=Yd[dp],GN=hp.toLowerCase(),QN=hp[0].toUpperCase()+hp.slice(1);er(GN,"on"+QN)}er(Zv,"onAnimationEnd"),er(Xv,"onAnimationIteration"),er(Jv,"onAnimationStart"),er("dblclick","onDoubleClick"),er("focusin","onFocus"),er("focusout","onBlur"),er(uN,"onTransitionRun"),er(cN,"onTransitionStart"),er(fN,"onTransitionCancel"),er(e0,"onTransitionEnd"),to("onMouseEnter",["mouseout","mouseover"]),to("onMouseLeave",["mouseout","mouseover"]),to("onPointerEnter",["pointerout","pointerover"]),to("onPointerLeave",["pointerout","pointerover"]),ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Js="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),YN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Js));function xS(r,i){i=(i&4)!==0;for(var s=0;s<r.length;s++){var u=r[s],p=u.event;u=u.listeners;e:{var y=void 0;if(i)for(var E=u.length-1;0<=E;E--){var R=u[E],k=R.instance,q=R.currentTarget;if(R=R.listener,k!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=q;try{y(p)}catch(K){Ru(K)}p.currentTarget=null,y=k}else for(E=0;E<u.length;E++){if(R=u[E],k=R.instance,q=R.currentTarget,R=R.listener,k!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=q;try{y(p)}catch(K){Ru(K)}p.currentTarget=null,y=k}}}}function Le(r,i){var s=i[Cd];s===void 0&&(s=i[Cd]=new Set);var u=r+"__bubble";s.has(u)||(ES(i,r,2,!1),s.add(u))}function pp(r,i,s){var u=0;i&&(u|=4),ES(s,r,u,i)}var hc="_reactListening"+Math.random().toString(36).slice(2);function mp(r){if(!r[hc]){r[hc]=!0,mv.forEach(function(s){s!=="selectionchange"&&(YN.has(s)||pp(s,!1,r),pp(s,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[hc]||(i[hc]=!0,pp("selectionchange",!1,i))}}function ES(r,i,s,u){switch(ZS(i)){case 2:var p=ED;break;case 8:p=wD;break;default:p=Np}s=p.bind(null,i,s,r),p=void 0,!Id||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),u?p!==void 0?r.addEventListener(i,s,{capture:!0,passive:p}):r.addEventListener(i,s,!0):p!==void 0?r.addEventListener(i,s,{passive:p}):r.addEventListener(i,s,!1)}function gp(r,i,s,u,p){var y=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var R=u.stateNode.containerInfo;
vendor: 2,653 bytes, line 49
49if(R===p)break;if(E===4)for(E=u.return;E!==null;){var k=E.tag;if((k===3||k===4)&&E.stateNode.containerInfo===p)return;E=E.return}for(;R!==null;){if(E=Xi(R),E===null)return;if(k=E.tag,k===5||k===6||k===26||k===27){u=y=E;continue e}R=R.parentNode}}u=u.return}Rv(function(){var q=y,K=Md(s),ee=[];e:{var H=t0.get(r);if(H!==void 0){var Q=_u,be=r;switch(r){case"keypress":if(Eu(s)===0)break e;case"keydown":case"keyup":Q=$A;break;case"focusin":be="focus",Q=zd;break;case"focusout":be="blur",Q=zd;break;case"beforeblur":case"afterblur":Q=zd;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=AA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=qA;break;case Zv:case Xv:case Jv:Q=kA;break;case e0:Q=GA;break;case"scroll":case"scrollend":Q=RA;break;case"wheel":Q=YA;break;case"copy":case"cut":case"paste":Q=jA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=kv;break;case"toggle":case"beforetoggle":Q=WA}var we=(i&4)!==0,Je=!we&&(r==="scroll"||r==="scrollend"),z=we?H!==null?H+"Capture":null:H;we=[];for(var j=q,B;j!==null;){var X=j;if(B=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||B===null||z===null||(X=xs(j,z),X!=null&&we.push(el(j,X,B))),Je)break;j=j.return}0<we.length&&(H=new Q(H,be,null,s,K),ee.push({event:H,listeners:we}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",Q=r==="mouseout"||r==="pointerout",H&&s!==kd&&(be=s.relatedTarget||s.fromElement)&&(Xi(be)||be[Zi]))break e;if((Q||H)&&(H=K.window===K?K:(H=K.ownerDocument)?H.defaultView||H.parentWindow:window,Q?(be=s.relatedTarget||s.toElement,Q=q,be=be?Xi(be):null,be!==null&&(Je=l(be),we=be.tag,be!==Je||we!==5&&we!==27&&we!==6)&&(be=null)):(Q=null,be=q),Q!==be)){if(we=Nv,X="onMouseLeave",z="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(we=kv,X="onPointerLeave",z="onPointerEnter",j="pointer"),Je=Q==null?H:Ss(Q),B=be==null?H:Ss(be),H=new we(X,j+"leave",Q,s,K),H.target=Je,H.relatedTarget=B,X=null,Xi(K)===q&&(we=new we(z,j+"enter",be,s,K),we.target=B,we.relatedTarget=Je,X=we),Je=X,Q&&be)t:{for(we=KN,z=Q,j=be,B=0,X=z;X;X=we(X))B++;X=0;for(var Ee=j;Ee;Ee=we(Ee))X++;for(;0<B-X;)z=we(z),B--;for(;0<X-B;)j=we(j),X--;for(;B--;){if(z===j||j!==null&&z===j.alternate){we=z;break t}z=we(z),j=we(j)}we=null}else we=null;Q!==null&&wS(ee,H,Q,we,!1),be!==null&&Je!==null&&wS(ee,Je,be,we,!0)}}
vendor: 2,146 bytes, line 49
49e:{if(H=q?Ss(q):window,Q=H.nodeName&&H.nodeName.toLowerCase(),Q==="select"||Q==="input"&&H.type==="file")var $e=Fv;else if(Uv(H))if($v)$e=oN;else{$e=aN;var Se=rN}else Q=H.nodeName,!Q||Q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?q&&Dd(q.elementType)&&($e=Fv):$e=iN;if($e&&($e=$e(r,q))){zv(ee,$e,s,K);break e}Se&&Se(r,H,q),r==="focusout"&&q&&H.type==="number"&&q.memoizedProps.value!=null&&Nd(H,"number",H.value)}switch(Se=q?Ss(q):window,r){case"focusin":(Uv(Se)||Se.contentEditable==="true")&&(so=Se,Hd=q,As=null);break;case"focusout":As=Hd=so=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,Kv(ee,s,K);break;case"selectionchange":if(lN)break;case"keydown":case"keyup":Kv(ee,s,K)}var De;if($d)e:{switch(r){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else oo?Lv(r,s)&&(Ue="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(Ue="onCompositionStart");Ue&&(Mv&&s.locale!=="ko"&&(oo||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&oo&&(De=Ov()):(ga=K,Ld="value"in ga?ga.value:ga.textContent,oo=!0)),Se=pc(q,Ue),0<Se.length&&(Ue=new Dv(Ue,r,null,s,K),ee.push({event:Ue,listeners:Se}),De?Ue.data=De:(De=Pv(s),De!==null&&(Ue.data=De)))),(De=XA?JA(r,s):eN(r,s))&&(Ue=pc(q,"onBeforeInput"),0<Ue.length&&(Se=new Dv("onBeforeInput","beforeinput",null,s,K),ee.push({event:Se,listeners:Ue}),Se.data=De)),HN(ee,r,q,s,K)}xS(ee,i)})}function el(r,i,s){return{instance:r,listener:i,currentTarget:s}}function pc(r,i){for(var s=i+"Capture",u=[];r!==null;){var p=r,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=xs(r,s),p!=null&&u.unshift(el(r,p,y)),p=xs(r,i),p!=null&&u.push(el(r,p,y))),r.tag===3)return u;r=r.return}return[]}function KN(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function wS(r,i,s,u,p){for(var y=i._reactName,E=[];s!==null&&s!==u;){var R=s,k=R.alternate,q=R.stateNode;if(R=R.tag,k!==null&&k===u)break;R!==5&&R!==26&&R!==27||q===null||(k=q,p?(q=xs(s,y),q!=null&&E.unshift(el(s,q,k))):p||(q
vendor: 6,490 bytes, lines 49-50
49=xs(s,y),q!=null&&E.push(el(s,q,k)))),s=s.return}E.length!==0&&r.push({event:i,listeners:E})}var WN=/\r\n?/g,ZN=/\u0000|\uFFFD/g;function _S(r){return(typeof r=="string"?r:""+r).replace(WN,`
50`).replace(ZN,"")}function TS(r,i){return i=_S(i),_S(r)===i}function Xe(r,i,s,u,p,y){switch(s){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||ro(r,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&ro(r,""+u);break;case"className":vu(r,"class",u);break;case"tabIndex":vu(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":vu(r,s,u);break;case"style":Tv(r,u,y);break;case"data":if(i!=="object"){vu(r,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||s!=="href")){r.removeAttribute(s);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(s);break}u=Su(""+u),r.setAttribute(s,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(s==="formAction"?(i!=="input"&&Xe(r,i,"name",p.name,p,null),Xe(r,i,"formEncType",p.formEncType,p,null),Xe(r,i,"formMethod",p.formMethod,p,null),Xe(r,i,"formTarget",p.formTarget,p,null)):(Xe(r,i,"encType",p.encType,p,null),Xe(r,i,"method",p.method,p,null),Xe(r,i,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(s);break}u=Su(""+u),r.setAttribute(s,u);break;case"onClick":u!=null&&(r.onclick=Ir);break;case"onScroll":u!=null&&Le("scroll",r);break;case"onScrollEnd":u!=null&&Le("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(s=u.__html,s!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=s}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}s=Su(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(s,""+u):r.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":u===!0?r.setAttribute(s,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(s,u):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(s,u):r.removeAttribute(s);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(s):r.setAttribute(s,u);break;case"popover":Le("beforetoggle",r),Le("toggle",r),yu(r,"popover",u);break;case"xlinkActuate":jr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":jr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":jr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":jr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":jr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":jr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":jr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":jr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":jr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":yu(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=TA.get(s)||s,yu(r,s,u))}}function yp(r,i,s,u,p,y){switch(s){case"style":Tv(r,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(s=u.__html,s!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=s}}break;case"children":typeof u=="string"?ro(r,u):(typeof u=="number"||typeof u=="bigint")&&ro(r,""+u);break;case"onScroll":u!=null&&Le("scroll",r);break;case"onScrollEnd":u!=null&&Le("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Ir);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gv.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(p=s.endsWith("Capture"),i=s.slice(2,p?s.length-7:void 0),y=r[ln]||null,y=y!=null?y[s]:null,typeof y=="function"&&r.removeEventListener(i,y,p),typeof u=="function")){typeof y!="function"&&y!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(i,u,p);break e}s in r?r[s]=u:u===!0?r.setAttribute(s,""):yu(r,s,u)}}}function Vt(r,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",r),Le("load",r);var u=!1,p=!1,y;for(y in s)if(s.hasOwnProperty(y)){var E=s[y];if(E!=null)switch(y){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Xe(r,i,y,E,s,null)}}p&&Xe(r,i,"srcSet",s.srcSet,s,null),u&&Xe(r,i,"src",s.src,s,null);return;case"input":Le("invalid",r);var R=y=E=p=null,k=null,q=null;for(u in s)if(s.hasOwnProperty(u)){var K=s[u];if(K!=null)switch(u){case"name":p=K;break;case"type":E=K;break;case"checked":k=K;break;case"defaultChecked":q=K;break;case"value":y=K;break;case"defaultValue":R=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(a(137,i));break;default:Xe(r,i,u,K,s,null)}}
vendor: 4,226 bytes, line 50
50xv(r,y,R,k,q,E,p,!1);return;case"select":Le("invalid",r),u=E=y=null;for(p in s)if(s.hasOwnProperty(p)&&(R=s[p],R!=null))switch(p){case"value":y=R;break;case"defaultValue":E=R;break;case"multiple":u=R;default:Xe(r,i,p,R,s,null)}i=y,s=E,r.multiple=!!u,i!=null?no(r,!!u,i,!1):s!=null&&no(r,!!u,s,!0);return;case"textarea":Le("invalid",r),y=p=u=null;for(E in s)if(s.hasOwnProperty(E)&&(R=s[E],R!=null))switch(E){case"value":u=R;break;case"defaultValue":p=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(a(91));break;default:Xe(r,i,E,R,s,null)}wv(r,u,p,y);return;case"option":for(k in s)if(s.hasOwnProperty(k)&&(u=s[k],u!=null))switch(k){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Xe(r,i,k,u,s,null)}return;case"dialog":Le("beforetoggle",r),Le("toggle",r),Le("cancel",r),Le("close",r);break;case"iframe":case"object":Le("load",r);break;case"video":case"audio":for(u=0;u<Js.length;u++)Le(Js[u],r);break;case"image":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"embed":case"source":case"link":Le("error",r),Le("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in s)if(s.hasOwnProperty(q)&&(u=s[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Xe(r,i,q,u,s,null)}return;default:if(Dd(i)){for(K in s)s.hasOwnProperty(K)&&(u=s[K],u!==void 0&&yp(r,i,K,u,s,void 0));return}}for(R in s)s.hasOwnProperty(R)&&(u=s[R],u!=null&&Xe(r,i,R,u,s,null))}function XN(r,i,s,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,E=null,R=null,k=null,q=null,K=null;for(Q in s){var ee=s[Q];if(s.hasOwnProperty(Q)&&ee!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":k=ee;default:u.hasOwnProperty(Q)||Xe(r,i,Q,null,u,ee)}}for(var H in u){var Q=u[H];if(ee=s[H],u.hasOwnProperty(H)&&(Q!=null||ee!=null))switch(H){case"type":y=Q;break;case"name":p=Q;break;case"checked":q=Q;break;case"defaultChecked":K=Q;break;case"value":E=Q;break;case"defaultValue":R=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,i));break;default:Q!==ee&&Xe(r,i,H,Q,u,ee)}}Ad(r,E,R,k,q,K,y,p);return;case"select":Q=E=R=H=null;for(y in s)if(k=s[y],s.hasOwnProperty(y)&&k!=null)switch(y){case"value":break;case"multiple":Q=k;default:u.hasOwnProperty(y)||Xe(r,i,y,null,u,k)}for(p in u)if(y=u[p],k=s[p],u.hasOwnProperty(p)&&(y!=null||k!=null))switch(p){case"value":H=y;break;case"defaultValue":R=y;break;case"multiple":E=y;default:y!==k&&Xe(r,i,p,y,u,k)}i=R,s=E,u=Q,H!=null?no(r,!!s,H,!1):!!u!=!!s&&(i!=null?no(r,!!s,i,!0):no(r,!!s,s?[]:"",!1));return;case"textarea":Q=H=null;for(R in s)if(p=s[R],s.hasOwnProperty(R)&&p!=null&&!u.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Xe(r,i,R,null,u,p)}for(E in u)if(p=u[E],y=s[E],u.hasOwnProperty(E)&&(p!=null||y!=null))switch(E){case"value":H=p;break;case"defaultValue":Q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==y&&Xe(r,i,E,p,u,y)}Ev(r,H,Q);return;case"option":for(var be in s)if(H=s[be],s.hasOwnProperty(be)&&H!=null&&!u.hasOwnProperty(be))switch(be){case"selected":r.selected=!1;break;default:Xe(r,i,be,null,u,H)}for(k in u)if(H=u[k],Q=s[k],u.hasOwnProperty(k)&&H!==Q&&(H!=null||Q!=null))switch(k){case"selected":r.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Xe(r,i,k,H,u,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in s)H=s[we],s.hasOwnProperty(we)&&H!=null&&!u.hasOwnProperty(we)&&Xe(r,i,we,null,u,H);for(q in u)if(H=u[q],Q=s[q],u.hasOwnProperty(q)&&H!==Q&&(H!=null||Q!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:Xe(r,i,q,H,u,Q)}return;default:if(Dd(i)){for(var Je in s)H=s[Je],s.hasOwnProperty(Je)&&H!==void 0&&!u.hasOwnProperty(Je)&&yp(r,i,Je,void 0,u,H);for(K in u)H=u[K],Q=s[K],!u.hasOwnProperty(K)||H===Q||H===void 0&&Q===void 0||yp(r,
vendor: 17,649 bytes, line 50
50i,K,H,u,Q);return}}for(var z in s)H=s[z],s.hasOwnProperty(z)&&H!=null&&!u.hasOwnProperty(z)&&Xe(r,i,z,null,u,H);for(ee in u)H=u[ee],Q=s[ee],!u.hasOwnProperty(ee)||H===Q||H==null&&Q==null||Xe(r,i,ee,H,u,Q)}function CS(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function JN(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,s=performance.getEntriesByType("resource"),u=0;u<s.length;u++){var p=s[u],y=p.transferSize,E=p.initiatorType,R=p.duration;if(y&&R&&CS(E)){for(E=0,R=p.responseEnd,u+=1;u<s.length;u++){var k=s[u],q=k.startTime;if(q>R)break;var K=k.transferSize,ee=k.initiatorType;K&&CS(ee)&&(k=k.responseEnd,E+=K*(k<R?1:(R-q)/(k-q)))}if(--u,i+=8*(y+E)/(p.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var vp=null,bp=null;function mc(r){return r.nodeType===9?r:r.ownerDocument}function RS(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function OS(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function Sp(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var xp=null;function eD(){var r=window.event;return r&&r.type==="popstate"?r===xp?!1:(xp=r,!0):(xp=null,!1)}var AS=typeof setTimeout=="function"?setTimeout:void 0,tD=typeof clearTimeout=="function"?clearTimeout:void 0,NS=typeof Promise=="function"?Promise:void 0,nD=typeof queueMicrotask=="function"?queueMicrotask:typeof NS<"u"?function(r){return NS.resolve(null).then(r).catch(rD)}:AS;function rD(r){setTimeout(function(){throw r})}function Ma(r){return r==="head"}function DS(r,i){var s=i,u=0;do{var p=s.nextSibling;if(r.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"||s==="/&"){if(u===0){r.removeChild(p),Io(i);return}u--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")u++;else if(s==="html")tl(r.ownerDocument.documentElement);else if(s==="head"){s=r.ownerDocument.head,tl(s);for(var y=s.firstChild;y;){var E=y.nextSibling,R=y.nodeName;y[bs]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||s.removeChild(y),y=E}}else s==="body"&&tl(r.ownerDocument.body);s=p}while(s);Io(i)}function kS(r,i){var s=r;r=0;do{var u=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),u&&u.nodeType===8)if(s=u.data,s==="/$"){if(r===0)break;r--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||r++;s=u}while(s)}function Ep(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Ep(s),Rd(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function aD(r,i,s,u){for(;r.nodeType===1;){var p=s;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[bs])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=Vn(r.nextSibling),r===null)break}return null}function iD(r,i,s){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Vn(r.nextSibling),r===null))return null;return r}function MS(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Vn(r.nextSibling),r===null))return null;return r}function wp(r){return r.data==="$?"||r.data==="$~"}function _p(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function oD(r,i){var s=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||s.readyState!=="loading")i();else{var u=function(){i(),s.removeEventListener("DOMContentLoaded",u)};s.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Vn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Tp=null;function jS(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var s=r.data;if(s==="/$"||s==="/&"){if(i===0)return Vn(r.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}r=r.nextSibling}return null}function IS(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return r;i--}else s!=="/$"&&s!=="/&"||i++}r=r.previousSibling}return null}function LS(r,i,s){switch(i=mc(s),r){case"html":if(r=i.documentElement,!r)throw Error(a(452));return r;case"head":if(r=i.head,!r)throw Error(a(453));return r;case"body":if(r=i.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function tl(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Rd(r)}var Bn=new Map,PS=new Set;function gc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Zr=V.d;V.d={f:sD,r:lD,D:uD,C:cD,L:fD,m:dD,X:pD,S:hD,M:mD};function sD(){var r=Zr.f(),i=sc();return r||i}function lD(r){var i=Ji(r);i!==null&&i.tag===5&&i.type==="form"?eb(i):Zr.r(r)}var ko=typeof document>"u"?null:document;function US(r,i,s){var u=ko;if(u&&typeof i=="string"&&i){var p=In(i);p='link[rel="'+r+'"][href="'+p+'"]',typeof s=="string"&&(p+='[crossorigin="'+s+'"]'),PS.has(p)||(PS.add(p),r={rel:r,crossOrigin:s,href:i},u.querySelector(p)===null&&(i=u.createElement("link"),Vt(i,"link",r),kt(i),u.head.appendChild(i)))}}function uD(r){Zr.D(r),US("dns-prefetch",r,null)}function cD(r,i){Zr.C(r,i),US("preconnect",r,i)}function fD(r,i,s){Zr.L(r,i,s);var u=ko;if(u&&r&&i){var p='link[rel="preload"][as="'+In(i)+'"]';i==="image"&&s&&s.imageSrcSet?(p+='[imagesrcset="'+In(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(p+='[imagesizes="'+In(s.imageSizes)+'"]')):p+='[href="'+In(r)+'"]';var y=p;switch(i){case"style":y=Mo(r);break;case"script":y=jo(r)}Bn.has(y)||(r=v({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:r,as:i},s),Bn.set(y,r),u.querySelector(p)!==null||i==="style"&&u.querySelector(nl(y))||i==="script"&&u.querySelector(rl(y))||(i=u.createElement("link"),Vt(i,"link",r),kt(i),u.head.appendChild(i)))}}function dD(r,i){Zr.m(r,i);var s=ko;if(s&&r){var u=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+In(u)+'"][href="'+In(r)+'"]',y=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=jo(r)}if(!Bn.has(y)&&(r=v({rel:"modulepreload",href:r},i),Bn.set(y,r),s.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(rl(y)))return}u=s.createElement("link"),Vt(u,"link",r),kt(u),s.head.appendChild(u)}}}function hD(r,i,s){Zr.S(r,i,s);var u=ko;if(u&&r){var p=eo(u).hoistableStyles,y=Mo(r);i=i||"default";var E=p.get(y);if(!E){var R={loading:0,preload:null};if(E=u.querySelector(nl(y)))R.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":i},s),(s=Bn.get(y))&&Cp(r,s);var k=E=u.createElement("link");kt(k),Vt(k,"link",r),k._p=new Promise(function(q,K){k.onload=q,k.onerror=K}),k.addEventListener("load",function(){R.loading|=1}),k.addEventListener("error",function(){R.loading|=2}),R.loading|=4,yc(E,i,u)}E={type:"stylesheet",instance:E,count:1,state:R},p.set(y,E)}}}function pD(r,i){Zr.X(r,i);var s=ko;if(s&&r){var u=eo(s).hoistableScripts,p=jo(r),y=u.get(p);y||(y=s.querySelector(rl(p)),y||(r=v({src:r,async:!0},i),(i=Bn.get(p))&&Rp(r,i),y=s.createElement("script"),kt(y),Vt(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function mD(r,i){Zr.M(r,i);var s=ko;if(s&&r){var u=eo(s).hoistableScripts,p=jo(r),y=u.get(p);y||(y=s.querySelector(rl(p)),y||(r=v({src:r,async:!0,type:"module"},i),(i=Bn.get(p))&&Rp(r,i),y=s.createElement("script"),kt(y),Vt(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(p,y))}}function zS(r,i,s,u){var p=(p=ye.current)?gc(p):null;if(!p)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Mo(s.href),s=eo(p).hoistableStyles,u=s.get(i),u||(u={type:"style",instance:null,count:0,state:null},s.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=Mo(s.href);var y=eo(p).hoistableStyles,E=y.get(r);if(E||(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,E),(y=p.querySelector(nl(r)))&&!y._p&&(E.instance=y,E.state.loading=5),Bn.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Bn.set(r,s),y||gD(p,r,s,E.state))),i&&u===null)throw Error(a(528,""));return E}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=jo(s),s=eo(p).hoistableScripts,u=s.get(i),u||(u={type:"script",instance:null,count:0,state:null},s.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function Mo(r){return'href="'+In(r)+'"'}function nl(r){return'link[rel="stylesheet"]['+r+"]"}function FS(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function gD(r,i,s,u){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=r.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Vt(i,"link",s),kt(i),r.head.appendChild(i))}function jo(r){return'[src="'+In(r)+'"]'}function rl(r){return"script[async]"+r}function $S(r,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var u=r.querySelector('style[data-href~="'+In(s.href)+'"]');if(u)return i.instance=u,kt(u),u;var p=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),kt(u),Vt(u,"style",p),yc(u,s.precedence,r),i.instance=u;case"stylesheet":p=Mo(s.href);var y=r.querySelector(nl(p));if(y)return i.state.loading|=4,i.instance=y,kt(y),y;u=FS(s),(p=Bn.get(p))&&Cp(u,p),y=(r.ownerDocument||r).createElement("link"),kt(y);var E=y;return E._p=new Promise(function(R,k){E.onload=R,E.onerror=k}),Vt(y,"link",u),i.state.loading|=4,yc(y,s.precedence,r),i.instance=y;case"script":return y=jo(s.src),(p=r.querySelector(rl(y)))?(i.instance=p,kt(p),p):(u=s,(p=Bn.get(y))&&(u=v({},s),Rp(u,p)),r=r.ownerDocument||r,p=r.createElement("script"),kt(p),Vt(p,"link",u),r.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,yc(u,s.precedence,r));return i.instance}function yc(r,i,s){for(var u=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,y=p,E=0;E<u.length;E++){var R=u[E];if(R.dataset.precedence===i)y=R;else if(y!==p)break}y?y.parentNode.insertBefore(r,y.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(r,i.firstChild))}function Cp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Rp(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var vc=null;function VS(r,i,s){if(vc===null){var u=new Map,p=vc=new Map;p.set(s,u)}else p=vc,u=p.get(s),u||(u=new Map,p.set(s,u));if(u.has(r))return u;for(u.set(r,null),s=s.getElementsByTagName(r),p=0;p<s.length;p++){var y=s[p];if(!(y[bs]||y[Ut]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var E=y.getAttribute(i)||"";E=r+E;var R=u.get(E);R?R.push(y):u.set(E,[y])}}return u}function BS(r,i,s){r=r.ownerDocument||r,r.head.insertBefore(s,i==="title"?r.querySelector("head > title"):null)}function yD(r,i,s){if(s===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function qS(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function vD(r,i,s,u){if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=Mo(u.href),y=i.querySelector(nl(p));if(y){i=y._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=bc.bind(r),i.then(r,r)),s.state.loading|=4,s.instance=y,kt(y);return}y=i.ownerDocument||i,u=FS(u),(p=Bn.get(p))&&Cp(u,p),y=y.createElement("link"),kt(y);var E=y;E._p=new Promise(function(R,k){E.onload=R,E.onerror=k}),Vt(y,"link",u),s.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(r.count++,s=bc.bind(r),i.addEventListener("load",s),i.addEventListener("error",s))}}var Op=0;function bD(r,i){return r.stylesheets&&r.count===0&&xc(r,r.stylesheets),0<r.count||0<r.imgCount?function(s){var u=setTimeout(function(){if(r.stylesheets&&xc(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+i);0<r.imgBytes&&Op===0&&(Op=62500*JN());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&xc(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>Op?50:800)+i);return r.unsuspend=s,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function bc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Sc=null;function xc(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Sc=new Map,i.forEach(SD,r),Sc=null,bc.call(r))}function SD(r,i){if(!(i.state.loading&4)){var s=Sc.get(r);if(s)var u=s.get(null);else{s=new Map,Sc.set(r,s);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var E=p[y];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(s.set(E.dataset.precedence,E),u=E)}u&&s.set(null,u)}p=i.instance,E=p.getAttribute("data-precedence"),y=s.get(E)||u,y===u&&s.set(null,p),s.set(E,p),this.count++,u=bc.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),y?y.parentNode.insertBefore(p,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),i.state.loading|=4}}var al={$$typeof:A,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function xD(r,i,s,u,p,y,E,R,k){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=en(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=en(0),this.hiddenUpdates=en(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function HS(r,i,s,u,p,y,E,R,k,q,K,ee){return r=new xD(r,i,s,E,k,q,K,ee,R),i=1,y===!0&&(i|=24),y=En(3,null,null,i),r.current=y,y.stateNode=r,i=sh(),i.refCount++,r.pooledCache=i,i.refCount++,y.memoizedState={element:u,isDehydrated:s,cache:i},fh(y),r}function GS(r){return r?(r=co,r):co}function QS(r,i,s,u,p,y){p=GS(p),u.context===null?u.context=p:u.pendingContext=p,u=Ea(i),u.payload={element:s},y=y===void 0?null:y,y!==null&&(u.callback=y),s=wa(r,u,i),s!==null&&(pn(s,r,i),Ls(s,r,i))}function YS(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<i?s:i}}
vendor: 4,482 bytes, line 50
50function Ap(r,i){YS(r,i),(r=r.alternate)&&YS(r,i)}function KS(r){if(r.tag===13||r.tag===31){var i=hi(r,67108864);i!==null&&pn(i,r,67108864),Ap(r,67108864)}}function WS(r){if(r.tag===13||r.tag===31){var i=Rn();i=_d(i);var s=hi(r,i);s!==null&&pn(s,r,i),Ap(r,i)}}var Ec=!0;function ED(r,i,s,u){var p=I.T;I.T=null;var y=V.p;try{V.p=2,Np(r,i,s,u)}finally{V.p=y,I.T=p}}function wD(r,i,s,u){var p=I.T;I.T=null;var y=V.p;try{V.p=8,Np(r,i,s,u)}finally{V.p=y,I.T=p}}function Np(r,i,s,u){if(Ec){var p=Dp(u);if(p===null)gp(r,i,u,wc,s),XS(r,u);else if(TD(p,r,i,s,u))u.stopPropagation();else if(XS(r,u),i&4&&-1<_D.indexOf(r)){for(;p!==null;){var y=Ji(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var E=Qt(y.pendingLanes);if(E!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;E;){var k=1<<31-wt(E);R.entanglements[1]|=k,E&=~k}xr(y),(Be&6)===0&&(ic=Xt()+500,Xs(0))}}break;case 31:case 13:R=hi(y,2),R!==null&&pn(R,y,2),sc(),Ap(y,2)}if(y=Dp(u),y===null&&gp(r,i,u,wc,s),y===p)break;p=y}p!==null&&u.stopPropagation()}else gp(r,i,u,null,s)}}function Dp(r){return r=Md(r),kp(r)}var wc=null;function kp(r){if(wc=null,r=Xi(r),r!==null){var i=l(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=c(i),r!==null)return r;r=null}else if(s===31){if(r=f(i),r!==null)return r;r=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return wc=r,null}function ZS(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bd()){case Jt:return 2;case kr:return 8;case Yi:case Sd:return 32;case si:return 268435456;default:return 32}default:return 32}}var Mp=!1,ja=null,Ia=null,La=null,il=new Map,ol=new Map,Pa=[],_D="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function XS(r,i){switch(r){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":La=null;break;case"pointerover":case"pointerout":il.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ol.delete(i.pointerId)}}function sl(r,i,s,u,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:s,eventSystemFlags:u,nativeEvent:y,targetContainers:[p]},i!==null&&(i=Ji(i),i!==null&&KS(i)),r):(r.eventSystemFlags|=u,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function TD(r,i,s,u,p){switch(i){case"focusin":return ja=sl(ja,r,i,s,u,p),!0;case"dragenter":return Ia=sl(Ia,r,i,s,u,p),!0;case"mouseover":return La=sl(La,r,i,s,u,p),!0;case"pointerover":var y=p.pointerId;return il.set(y,sl(il.get(y)||null,r,i,s,u,p)),!0;case"gotpointercapture":return y=p.pointerId,ol.set(y,sl(ol.get(y)||null,r,i,s,u,p)),!0}return!1}function JS(r){var i=Xi(r.target);if(i!==null){var s=l(i);if(s!==null){if(i=s.tag,i===13){if(i=c(s),i!==null){r.blockedOn=i,hv(r.priority,function(){WS(s)});return}}else if(i===31){if(i=f(s),i!==null){r.blockedOn=i,hv(r.priority,function(){WS(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function _c(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;
vendor: 5,584 bytes, lines 50-59
50){var s=Dp(r.nativeEvent);if(s===null){s=r.nativeEvent;var u=new s.constructor(s.type,s);kd=u,s.target.dispatchEvent(u),kd=null}else return i=Ji(s),i!==null&&KS(i),r.blockedOn=s,!1;i.shift()}return!0}function ex(r,i,s){_c(r)&&s.delete(i)}function CD(){Mp=!1,ja!==null&&_c(ja)&&(ja=null),Ia!==null&&_c(Ia)&&(Ia=null),La!==null&&_c(La)&&(La=null),il.forEach(ex),ol.forEach(ex)}function Tc(r,i){r.blockedOn===i&&(r.blockedOn=null,Mp||(Mp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,CD)))}var Cc=null;function tx(r){Cc!==r&&(Cc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cc===r&&(Cc=null);for(var i=0;i<r.length;i+=3){var s=r[i],u=r[i+1],p=r[i+2];if(typeof u!="function"){if(kp(u||s)===null)continue;break}var y=Ji(s);y!==null&&(r.splice(i,3),i-=3,Dh(y,{pending:!0,data:p,method:s.method,action:u},u,p))}}))}function Io(r){function i(k){return Tc(k,r)}ja!==null&&Tc(ja,r),Ia!==null&&Tc(Ia,r),La!==null&&Tc(La,r),il.forEach(i),ol.forEach(i);for(var s=0;s<Pa.length;s++){var u=Pa[s];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Pa.length&&(s=Pa[0],s.blockedOn===null);)JS(s),s.blockedOn===null&&Pa.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(u=0;u<s.length;u+=3){var p=s[u],y=s[u+1],E=p[ln]||null;if(typeof y=="function")E||tx(s);else if(E){var R=null;if(y&&y.hasAttribute("formAction")){if(p=y,E=y[ln]||null)R=E.formAction;else if(kp(p)!==null)continue}else R=E.action;typeof R=="function"?s[u+1]=R:(s.splice(u,3),u-=3),tx(s)}}}function nx(){function r(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(E){return p=E})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),u||setTimeout(s,20)}function s(){if(!u&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function jp(r){this._internalRoot=r}Rc.prototype.render=jp.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(a(409));var s=i.current,u=Rn();QS(s,u,r,i,null,null)},Rc.prototype.unmount=jp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;QS(r.current,2,null,r,null,null),sc(),i[Zi]=null}};function Rc(r){this._internalRoot=r}Rc.prototype.unstable_scheduleHydration=function(r){if(r){var i=dv();r={blockedOn:null,target:r,priority:i};for(var s=0;s<Pa.length&&i!==0&&i<Pa[s].priority;s++);Pa.splice(s,0,r),s===0&&JS(r)}};var rx=t.version;if(rx!=="19.2.5")throw Error(a(527,rx,"19.2.5"));V.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=d(i),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var RD={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oc.isDisabled&&Oc.supportsFiber)try{Mr=Oc.inject(RD),Et=Oc}catch{}}return ul.createRoot=function(r,i){if(!o(r))throw Error(a(299));var s=!1,u="",p=cb,y=fb,E=db;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError)),i=HS(r,1,!1,null,null,s,u,null,p,y,E,nx),r[Zi]=i.current,mp(r),new jp(i)},ul.hydrateRoot=function(r,i,s){if(!o(r))throw Error(a(299));var u=!1,p="",y=cb,E=fb,R=db,k=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(E=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.formState!==void 0&&(k=s.formState)),i=HS(r,1,!0,i,s??null,u,p,k,y,E,R,nx),i.context=GS(null),s=i.current,u=Rn(),u=_d(u),p=Ea(u),p.callback=null,wa(s,p,u),s=u,i.current.lanes=s,Pt(i,s),xr(i),r[Zi]=i.current,mp(r),new Rc(i)},ul.version="19.2.5",ul}var px;function FD(){if(px)return Pp.exports;px=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pp.exports=zD(),Pp.exports}var $D=FD();const mx=If($D);/**
51 * react-router v7.18.2
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */var Bg=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,D1=/^[\\/]{2}/;function VD(e,t){return t+e.replace(/\\/g,"/")}var gx="popstate";function yx(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function BD(e={}){function t(a,o){var d;let l=(d=o.state)==null?void 0:d.masked,{pathname:c,search:f,hash:h}=l||a.location;return Fm("",{pathname:c,search:f,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default",l?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}
59function n(a,o){return typeof o=="string"?o:Ul(o)}return HD(t,n,null,e)}function ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qD(){return Math.random().toString(36).substring(2,10)}function vx(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Fm(e,t,n=null,a,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ls(t):t,state:n,key:t&&t.key||a||qD(),mask:o}}function Ul({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ls(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function HD(e,t,n,a={}){let{window:o=document.defaultView,v5Compat:l=!1}=a,c=o.history,f="POP",h=null,d=g();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function g(){return(c.state||{idx:null}).idx}function v(){f="POP";let T=g(),C=T==null?null:T-d;d=T,h&&h({action:f,location:_.location,delta:C})}function S(T,C){f="PUSH";let O=yx(T)?T:Fm(_.location,T,C);d=g()+1;let A=vx(O,d),N=_.createHref(O.mask||O);try{c.pushState(A,"",N)}
59catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(N)}l&&h&&h({action:f,location:_.location,delta:1})}function b(T,C){f="REPLACE";let O=yx(T)?T:Fm(_.location,T,C);d=g();let A=vx(O,d),N=_.createHref(O.mask||O);c.replaceState(A,"",N),l&&h&&h({action:f,location:_.location,delta:0})}function w(T){return GD(o,T)}let _={get action(){return f},get location(){return e(o,c)},listen(T){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(gx,v),h=T,()=>{o.removeEventListener(gx,v),h=null}},createHref(T){return t(o,T)},createURL:w,encodeLocation(T){let C=w(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:S,replace:b,go(T){return c.go(T)}};return _}function GD(e,t,n=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),ut(a,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Ul(t);return o=o.replace(/ $/,"%20"),!n&&D1.test(o)&&(o=a+o),new URL(o,a)}function k1(e,t,n="/"){return QD(e,t,n,!1)}function QD(e,t,n,a,o){let l=typeof t=="string"?ls(t):t,c=ra(l.pathname||"/",n);if(c==null)return null;let f=YD(e),h=null,d=ik(c);for(let g=0;h==null&&g<f.length;++g)h=ak(f[g],d,a);return h}function YD(e){let t=M1(e);return KD(t),t}function M1(e,t=[],n=[],a="",o=!1){let l=(c,f,h=o,d)=>{let g={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(a)&&h)return;ut(g.relativePath.startsWith(a),`Absolute route path "${g.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(a.length)}let v=or([a,g.relativePath]),S=n.concat(g);c.children&&c.children.length>0&&(ut(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),M1(c.children,t,S,v,h)),!(c.path==null&&!c.index)&&t.push({path:v,score:nk(v,c.index),routesMeta:S.map((b,w)=>{let[_,T]=L1(b.relativePath,b.caseSensitive,w===S.length-1);return{...b,matcher:_,compiledParams:T}})})};return e.forEach((c,f)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))l(c,f);else for(let d of j1(c.path))l(c,f,!0,d)}),t}function j1(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(a.length===0)return o?[l,""]:[l];let c=j1(a.join("/")),f=[];return f.push(...c.map(h=>h===""?l:[l,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function KD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rk(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var WD=/^:[\w-]+$/,ZD=3,XD=2,JD=1,ek=10,tk=-2,bx=e=>e==="*";function nk(e,t){let n=e.split("/"),a=n.length;return n.some(bx)&&(a+=tk),t&&(a+=XD),n.filter(o=>!bx(o)).reduce((o,l)=>o+(WD.test(l)?ZD:l===""?JD:ek),a)}function rk(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function ak(e,t,n=!1){let{routesMeta:a}=e,o={},l="/",c=[];for(let f=0;f<a.length;++f){let h=a[f],d=f===a.length-1,g=l==="/"?t:t.slice(l.length)||"/",v={path:h.relativePath,caseSensitive:h.caseSensitive,end:d},S=h.matcher&&h.compiledParams?I1(v,g,h.matcher,h.compiledParams):df(v,g),b=h.route;if(!S&&d&&n&&!a[a.length-1].route.index&&(S=df({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!S)return null;
59Object.assign(o,S.params),c.push({params:o,pathname:or([l,S.pathname]),pathnameBase:lk(or([l,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(l=or([l,S.pathnameBase]))}return c}function df(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=L1(e.path,e.caseSensitive,e.end);return I1(e,t,n,a)}function I1(e,t,n,a){let o=t.match(n);if(!o)return null;let l=o[0],c=l.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:a.reduce((d,{paramName:g,isOptional:v},S)=>{if(g==="*"){let w=f[S]||"";c=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const b=f[S];return v&&!b?d[g]=void 0:d[g]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:c,pattern:e}}function L1(e,t=!1,n=!0){Yn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h,d,g)=>{if(a.push({paramName:f,isOptional:h!=null}),h){let v=g.charAt(d+c.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function ik(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ra(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function ok(e,t="/"){let{pathname:n,search:a="",hash:o=""}=typeof e=="string"?ls(e):e,l;return n?(n=P1(n),n.startsWith("/")?l=Sx(n.substring(1),"/"):l=Sx(n,t)):l=t,{pathname:l,search:uk(a),hash:ck(o)}}function Sx(e,t){let n=hf(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function $p(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qg(e){let t=sk(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function Lf(e,t,n,a=!1){let o;typeof e=="string"?o=ls(e):(o={...e},ut(!o.pathname||!o.pathname.includes("?"),$p("?","pathname","search",o)),ut(!o.pathname||!o.pathname.includes("#"),$p("#","pathname","hash",o)),ut(!o.search||!o.search.includes("#"),$p("#","search","hash",o)));let l=e===""||o.pathname==="",c=l?"/":o.pathname,f;if(c==null)f=n;else{let v=t.length-1;if(!a&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),v-=1;o.pathname=S.join("/")}f=v>=0?t[v]:"/"}let h=ok(o,f),d=c&&c!=="/"&&c.endsWith("/"),g=(l||c===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(d||g)&&(h.pathname+="/"),h}var P1=e=>e.replace(/[\\/]{2,}/g,"/"),or=e=>P1(e.join("/")),hf=e=>e.replace(/\/+$/,""),lk=e=>hf(e).replace(/^\/*/,"/"),uk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ck=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,fk=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function dk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function hk(e){let t=e.map(n=>n.route.path).filter(Boolean);return or(t)||"/"}var U1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function z1(e,t){let n=e;if(typeof n!="string"||!Bg.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,o=!1;if(U1)try{let l=new URL(window.location.href),c=D1.test(n)?new URL(VD(n,l.protocol)):new URL(n),f=ra(c.pathname,t);c.origin===l.origin&&f!=null?n=f+c.search+c.hash:o=!0}catch{Yn(!1,`<Link to="${n}">
59 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var F1=["POST","PUT","PATCH","DELETE"];new Set(F1);var pk=["GET",...F1];new Set(pk);var mk=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function gk(e){try{return mk.includes(new URL(e).protocol)}catch{return!1}}var us=x.createContext(null);us.displayName="DataRouter";var Pf=x.createContext(null);Pf.displayName="DataRouterState";var $1=x.createContext(!1);function yk(){return x.useContext($1)}var V1=x.createContext({isTransitioning:!1});V1.displayName="ViewTransition";var vk=x.createContext(new Map);vk.displayName="Fetchers";var bk=x.createContext(null);bk.displayName="Await";var Dn=x.createContext(null);Dn.displayName="Navigation";var nu=x.createContext(null);nu.displayName="Location";var dr=x.createContext({outlet:null,matches:[],isDataRoute:!1});dr.displayName="Route";var Hg=x.createContext(null);Hg.displayName="RouteError";var B1="REACT_ROUTER_ERROR",Sk="REDIRECT",xk="ROUTE_ERROR_RESPONSE";function Ek(e){if(e.startsWith(`${B1}:${Sk}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function wk(e){if(e.startsWith(`${B1}:${xk}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new fk(t.status,t.statusText,t.data)}catch{}}function _k(e,{relative:t}={}){ut(cs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=x.useContext(Dn),{hash:o,pathname:l,search:c}=au(e,{relative:t}),f=l;return n!=="/"&&(f=l==="/"?n:or([n,l])),a.createHref({pathname:f,search:c,hash:o})}function cs(){return x.useContext(nu)!=null}function Zt(){return ut(cs(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(nu).location}var q1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function H1(e){x.useContext(Dn).static||x.useLayoutEffect(e)}function ru(){let{isDataRoute:e}=x.useContext(dr);return e?Pk():Tk()}function Tk(){ut(cs(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(us),{basename:t,navigator:n}=x.useContext(Dn),{matches:a}=x.useContext(dr),{pathname:o}=Zt(),l=JSON.stringify(qg(a)),c=x.useRef(!1);return H1(()=>{c.current=!0}),x.useCallback((h,d={})=>{if(Yn(c.current,q1),!c.current)return;if(typeof h=="number"){n.go(h);return}let g=Lf(h,JSON.parse(l),o,d.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:or([t,g.pathname])),(d.replace?n.replace:n.push)(g,d.state,d)},[t,n,l,o,e])}x.createContext(null);function aH(){let{matches:e}=x.useContext(dr),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function au(e,{relative:t}={}){let{matches:n}=x.useContext(dr),{pathname:a}=Zt(),o=JSON.stringify(qg(n));return x.useMemo(()=>Lf(e,JSON.parse(o),a,t==="path"),[e,o,a,t])}function Ck(e,t){return G1(e,t)}function G1(e,t,n){var T;ut(cs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=x.useContext(Dn),{matches:o}=x.useContext(dr),l=o[o.length-1],c=l?l.params:{},f=l?l.pathname:"/",h=l?l.pathnameBase:"/",d=l&&l.route;{let C=d&&d.path||"";Y1(f,!d||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
61Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let g=Zt(),v;if(t){let C=typeof t=="string"?ls(t):t;ut(h==="/"||((T=C.pathname)==null?void 0:T.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${C.pathname}" was given in the \`location\` prop.`),v=C}else v=g;let S=v.pathname||"/",b=S;if(h!=="/"){let C=h.replace(/^\//,"").split("/");b="/"+S.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(C=>Object.assign(C,{route:n.manifest[C.route.id]||C.route})):k1(e,{pathname:b});Yn(d||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Yn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=Dk(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:or([h,a.encodeLocation?a.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:or([h,a.encodeLocation?a.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),o,n);return t&&_?x.createElement(nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},_):_}function Rk(){let e=Lk(),t=dk(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},l={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:l},"ErrorBoundary")," or"," ",x.createElement("code",{style:l},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
61Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,c)}var Ok=x.createElement(Rk,null),Q1=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=wk(e.digest);n&&(e=n)}let t=e!==void 0?x.createElement(dr.Provider,{value:this.props.routeContext},x.createElement(Hg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(Ak,{error:e},t):t}};Q1.contextType=$1;var Vp=new WeakMap;function Ak({children:e,error:t}){let{basename:n}=x.useContext(Dn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Ek(t.digest);if(a){let o=Vp.get(t);if(o)throw o;let l=z1(a.location,n),c=l.absoluteURL||l.to;if(gk(c))throw new Error("Invalid redirect location");if(U1&&!Vp.get(t))if(l.isExternal||a.reloadDocument)window.location.href=c;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:a.replace}));throw Vp.set(t,f),f}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return e}function Nk({routeContext:e,match:t,children:n}){let a=x.useContext(us);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(dr.Provider,{value:e},n)}function Dk(e,t=[],n){let a=n==null?void 0:n.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,l=a==null?void 0:a.errors;if(l!=null){let g=o.findIndex(v=>v.route.id&&(l==null?void 0:l[v.route.id])!==void 0);ut(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,g+1))}let c=!1,f=-1;if(n&&a){c=a.renderFallback;for(let g=0;g<o.length;g++){let v=o[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=g),v.route.id){let{loaderData:S,errors:b}=a,w=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!b||b[v.route.id]===void 0);if(v.route.lazy||w){n.isStatic&&(c=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let h=n==null?void 0:n.onError,d=a&&h?(g,v)=>{var S,b;h(g,{location:a.location,params:((b=(S=a.matches)==null?void 0:S[0])==null?void 0:b.params)??{},pattern:hk(a.matches),errorInfo:v})}:void 0;return o.reduceRight((g,v,S)=>{let b,w=!1,_=null,T=null;a&&(b=l&&v.route.id?l[v.route.id]:void 0,_=v.route.errorElement||Ok,c&&(f<0&&S===0?(Y1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,T=null):f===S&&(w=!0,T=v.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,S+1)),O=()=>{let A;return b?A=_:w?A=T:v.route.Component?A=x.createElement(v.route.Component,null):v.route.element?A=v.route.element:A=g,x.createElement(Nk,{match:v,routeContext:{outlet:g,matches:C,isDataRoute:a!=null},children:A})};return a&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?x.createElement(Q1,{location:a.location,revalidation:a.revalidation,component:_,error:b,children:O(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:d}):O()},null)}function Gg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function kk(e){let t=x.useContext(us);return ut(t,Gg(e)),t}function Mk(e){let t=x.useContext(Pf);return ut(t,Gg(e)),t}function jk(e){let t=x.useContext(dr);return ut(t,Gg(e)),t}function Qg(e){let t=jk(e),n=t.matches[t.matches.length-1];return ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ik(){return Qg("useRouteId")}function Lk(){var a;let e=x.useContext(Hg),t=Mk("useRouteError"),n=Qg("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Pk(){let{router:e}=kk("useNavigate"),t=Qg("useNavigate"),n=x.useRef(!1);return H1(()=>{n.current=!0}),x.useCallback(async(o,l={})=>{Yn(n.current,q1),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var xx={};function Y1(e,t,n){!t&&!xx[e]&&(xx[e]=!0,Yn(!1,n))}x.memo(Uk);function Uk({routes:e,manifest:t,future:n,state:a,isStatic:o,onError:l}){return G1(e,void 0,{manifest:t,state:a,isStatic:o,onError:l})}function Yc({to:e,replace:t,state:n,relative:a}){ut(cs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=x.useContext(Dn);Yn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=x.useContext(dr),{pathname:c}=Zt(),f=ru(),h=Lf(e,qg(l),c,a==="path"),d=JSON.stringify(h);return x.useEffect(()=>{f(JSON.parse(d),{replace:t,state:n,relative:a})},[f,d,a,t,n]),null}function ie(e){ut(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zk({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:o,static:l=!1,useTransitions:c}){ut(!cs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),h=x.useMemo(()=>({basename:f,navigator:o,static:l,useTransitions:c,future:{}}),[f,o,l,c]);typeof n=="string"&&(n=ls(n));let{pathname:d="/",search:g="",hash:v="",state:S=null,key:b="default",mask:w}=n,_=x.useMemo(()=>{let T=ra(d,f);return T==null?null:{location:{pathname:T,search:g,hash:v,state:S,key:b,mask:w},navigationType:a}},[f,d,g,v,S,b,a,w]);
61return Yn(_!=null,`<Router basename="${f}"> is not able to match the URL "${d}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:x.createElement(Dn.Provider,{value:h},x.createElement(nu.Provider,{children:t,value:_}))}function Fk({children:e,location:t}){return Ck($m(e),t)}function $m(e,t=[]){let n=[];return x.Children.forEach(e,(a,o)=>{if(!x.isValidElement(a))return;let l=[...t,o];if(a.type===x.Fragment){n.push.apply(n,$m(a.props.children,l));return}ut(a.type===ie,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||l.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=$m(a.props.children,l)),n.push(c)}),n}var Kc="get",Wc="application/x-www-form-urlencoded";function Uf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function $k(e){return Uf(e)&&e.tagName.toLowerCase()==="button"}function Vk(e){return Uf(e)&&e.tagName.toLowerCase()==="form"}function Bk(e){return Uf(e)&&e.tagName.toLowerCase()==="input"}function qk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hk(e,t){return e.button===0&&(!t||t==="_self")&&!qk(e)}function Vm(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(o=>[n,o]):[[n,a]])},[]))}function Gk(e,t){let n=Vm(e);return t&&t.forEach((a,o)=>{n.has(o)||t.getAll(o).forEach(l=>{n.append(o,l)})}),n}var Ac=null;function Qk(){if(Ac===null)try{new FormData(document.createElement("form"),0),Ac=!1}catch{Ac=!0}return Ac}var Yk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bp(e){return e!=null&&!Yk.has(e)?(Yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wc}"`),null):e}function Kk(e,t){let n,a,o,l,c;if(Vk(e)){let f=e.getAttribute("action");a=f?ra(f,t):null,n=e.getAttribute("method")||Kc,o=Bp(e.getAttribute("enctype"))||Wc,l=new FormData(e)}else if($k(e)||Bk(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(a=h?ra(h,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||Kc,o=Bp(e.getAttribute("formenctype"))||Bp(f.getAttribute("enctype"))||Wc,l=new FormData(f,e),!Qk()){let{name:d,type:g,value:v}=e;if(g==="image"){let S=d?`${d}.`:"";l.append(`${S}x`,"0"),l.append(`${S}y`,"0")}else d&&l.append(d,v)}}else{if(Uf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Kc,a=null,o=Wc,c=e}return l&&o==="text/plain"&&(c=l,l=void 0),{action:a,method:n.toLowerCase(),encType:o,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function K1(e,t,n,a){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:t&&ra(o.pathname,t)==="/"?o.pathname=`${hf(t)}/_root.${a}`:o.pathname=`${hf(o.pathname)}.${a}`,o}async function Wk(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
61isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zk(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Xk(e,t,n){let a=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let c=await Wk(l,n);return c.links?c.links():[]}return[]}));return nM(a.flat(1).filter(Zk).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Ex(e,t,n,a,o,l){let c=(h,d)=>n[d]?h.route.id!==n[d].route.id:!0,f=(h,d)=>{var g;return n[d].pathname!==h.pathname||((g=n[d].route.path)==null?void 0:g.endsWith("*"))&&n[d].params["*"]!==h.params["*"]};return l==="assets"?t.filter((h,d)=>c(h,d)||f(h,d)):l==="data"?t.filter((h,d)=>{var v;let g=a.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let S=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function Jk(e,t,{includeHydrateFallback:n}={}){return eM(e.map(a=>{let o=t.routes[a.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function eM(e){return[...new Set(e)]}function tM(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function nM(e,t){let n=new Set;return new Set(t),e.reduce((a,o)=>{let l=JSON.stringify(tM(o));return n.has(l)||(n.add(l),a.push({key:l,link:o})),a},[])}function Kg(){let e=x.useContext(us);return Yg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rM(){let e=x.useContext(Pf);return Yg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Wg=x.createContext(void 0);Wg.displayName="FrameworkContext";function zf(){let e=x.useContext(Wg);return Yg(e,"You must render this element inside a <HydratedRouter> element"),e}function aM(e,t){let n=x.useContext(Wg),[a,o]=x.useState(!1),[l,c]=x.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:g,onTouchStart:v}=t,S=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let _=C=>{C.forEach(O=>{c(O.isIntersecting)})},T=new IntersectionObserver(_,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[e]),x.useEffect(()=>{if(a){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[a]);let b=()=>{o(!0)},w=()=>{o(!1),c(!1)};return n?e!=="intent"?[l,S,{}]:[l,S,{onFocus:cl(f,b),onBlur:cl(h,w),onMouseEnter:cl(d,b),onMouseLeave:cl(g,w),onTouchStart:cl(v,b)}]:[!1,S,{}]}function cl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iM({page:e,...t}){let n=yk(),{nonce:a}=zf(),{router:o}=Kg(),l=x.useMemo(()=>k1(o.routes,e,o.basename),[o.routes,e,o.basename]);return l?(t.nonce==null&&a&&(t={...t,nonce:a}),n?x.createElement(sM,{page:e,matches:l,...t}):x.createElement(lM,{page:e,matches:l,...t})):null}function oM(e){let{manifest:t,routeModules:n}=zf(),[a,o]=x.useState([]);return x.useEffect(()=>{let l=!1;return Xk(e,t,n).then(c=>{l||o(c)}),()=>{l=!0}},[e,t,n]),a}function sM({page:e,matches:t,...n}){let a=Zt(),{future:o}=zf(),{basename:l}=Kg(),c=x.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=K1(e,l,o.v8_trailingSlashAwareDataRequests,"rsc"),h=!1,d=[];for(let g of t)typeof g.route.shouldRevalidate=="function"?h=!0:d.push(g.route.id);return h&&d.length>0&&f.searchParams.set("_routes",d.join(",")),[f.pathname+f.search]},[l,o.v8_trailingSlashAwareDataRequests,e,a,t]);return x.createElement(x.Fragment,null,c.map(f=>x.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})))}function lM({page:e,matches:t,...n}){let a=Zt(),{future:o,manifest:l,routeModules:c}=zf(),{basename:f}=Kg(),{loaderData:h,matches:d}=rM(),g=x.useMemo(()=>Ex(e,t,d,l,a,"data"),[e,t,d,l,a]),v=x.useMemo(()=>Ex(e,t,d,l,a,"assets"),[e,t,d,l,a]),S=x.useMemo(()=>
61{if(e===a.pathname+a.search+a.hash)return[];let _=new Set,T=!1;if(t.forEach(O=>{var N;let A=l.routes[O.route.id];!A||!A.hasLoader||(!g.some(M=>M.route.id===O.route.id)&&O.route.id in h&&((N=c[O.route.id])!=null&&N.shouldRevalidate)||A.hasClientLoader?T=!0:_.add(O.route.id))}),_.size===0)return[];let C=K1(e,f,o.v8_trailingSlashAwareDataRequests,"data");return T&&_.size>0&&C.searchParams.set("_routes",t.filter(O=>_.has(O.route.id)).map(O=>O.route.id).join(",")),[C.pathname+C.search]},[f,o.v8_trailingSlashAwareDataRequests,h,a,l,g,t,e,c]),b=x.useMemo(()=>Jk(v,l),[v,l]),w=oM(v);return x.createElement(x.Fragment,null,S.map(_=>x.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),b.map(_=>x.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),w.map(({key:_,link:T})=>x.createElement("link",{key:_,nonce:n.nonce,...T,crossOrigin:T.crossOrigin??n.crossOrigin})))}function uM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cM&&(window.__reactRouterVersion="7.18.2")}catch{}function fM({basename:e,children:t,useTransitions:n,window:a}){let o=x.useRef();o.current==null&&(o.current=BD({window:a,v5Compat:!0}));let l=o.current,[c,f]=x.useState({action:l.action,location:l.location}),h=x.useCallback(d=>{n===!1?f(d):x.startTransition(()=>f(d))},[n]);return x.useLayoutEffect(()=>l.listen(h),[l,h]),x.createElement(zk,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:l,useTransitions:n})}var ta=x.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:o,reloadDocument:l,replace:c,mask:f,state:h,target:d,to:g,preventScrollReset:v,viewTransition:S,defaultShouldRevalidate:b,...w},_){let{basename:T,navigator:C,useTransitions:O}=x.useContext(Dn),A=typeof g=="string"&&Bg.test(g),N=z1(g,T);g=N.to;let M=_k(g,{relative:o}),P=Zt(),U=null;if(f){let oe=Lf(f,[],P.mask?P.mask.pathname:"/",!0);T!=="/"&&(oe.pathname=oe.pathname==="/"?T:or([T,oe.pathname])),U=C.createHref(oe)}let[G,W,te]=aM(a,w),se=pM(g,{replace:c,mask:f,state:h,target:d,preventScrollReset:v,relative:o,viewTransition:S,defaultShouldRevalidate:b,useTransitions:O});function me(oe){t&&t(oe),oe.defaultPrevented||se(oe)}let re=!(N.isExternal||l),ce=x.createElement("a",{...w,...te,href:(re?U:void 0)||N.absoluteURL||M,onClick:re?me:t,ref:uM(_,W),target:d,"data-discover":!A&&n==="render"?"true":void 0});return G&&!A?x.createElement(x.Fragment,null,ce,x.createElement(iM,{page:M})):ce});ta.displayName="Link";var Bm=x.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:o=!1,style:l,to:c,viewTransition:f,children:h,...d},g){let v=au(c,{relative:d.relative}),S=Zt(),b=x.useContext(Pf),{navigator:w,basename:_}=x.useContext(Dn),T=b!=null&&bM(v)&&f===!0,C=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,O=S.pathname,A=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(O=O.toLowerCase(),A=A?A.toLowerCase():null,C=C.toLowerCase()),A&&_&&(A=ra(A,_)||A);const N=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let M=O===C||!o&&O.startsWith(C)&&O.charAt(N)==="/",P=A!=null&&(A===C||!o&&A.startsWith(C)&&A.charAt(C.length)==="/"),U={isActive:M,isPending:P,isTransitioning:T},G=M?t:void 0,W;typeof a=="function"?W=a(U):W=[a,M?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let te=typeof l=="function"?l(U):l;return x.createElement(ta,{...d,"aria-current":G,className:W,ref:g,style:te,to:c,viewTransition:f},typeof h=="function"?h(U):h)});Bm.displayName="NavLink";var dM=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:o,state:l,method:c=Kc,action:f,onSubmit:h,relative:d,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:S,...b},w)=>{let{useTransitions:_}=x.useContext(Dn),T=yM(),C=vM(f,{relative:d}),O=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&Bg.test(f),N=M=>{if(h&&h(M),M.defaultPrevented)return;M.preventDefault();let P=M.nativeEvent.submitter,U=(P==null?void 0:P.getAttribute("formmethod"))||c,G=()=>T(P||M.currentTarget,{fetcherKey:t,method:U,navigate:n,replace:o,state:l,relative:d,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:S}
61);_&&n!==!1?x.startTransition(()=>G()):G()};return x.createElement("form",{ref:w,method:O,action:C,onSubmit:a?h:N,...b,"data-discover":!A&&e==="render"?"true":void 0})});dM.displayName="Form";function hM(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function W1(e){let t=x.useContext(us);return ut(t,hM(e)),t}function pM(e,{target:t,replace:n,mask:a,state:o,preventScrollReset:l,relative:c,viewTransition:f,defaultShouldRevalidate:h,useTransitions:d}={}){let g=ru(),v=Zt(),S=au(e,{relative:c});return x.useCallback(b=>{if(Hk(b,t)){b.preventDefault();let w=n!==void 0?n:Ul(v)===Ul(S),_=()=>g(e,{replace:w,mask:a,state:o,preventScrollReset:l,relative:c,viewTransition:f,defaultShouldRevalidate:h});d?x.startTransition(()=>_()):_()}},[v,g,S,n,a,o,t,e,l,c,f,h,d])}function iH(e){Yn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(Vm(e)),n=x.useRef(!1),a=Zt(),o=x.useMemo(()=>Gk(a.search,n.current?null:t.current),[a.search]),l=ru(),c=x.useCallback((f,h)=>{const d=Vm(typeof f=="function"?f(new URLSearchParams(o)):f);n.current=!0,l("?"+d,h)},[l,o]);return[o,c]}var mM=0,gM=()=>`__${String(++mM)}__`;function yM(){let{router:e}=W1("useSubmit"),{basename:t}=x.useContext(Dn),n=Ik(),a=e.fetch,o=e.navigate;return x.useCallback(async(l,c={})=>{let{action:f,method:h,encType:d,formData:g,body:v}=Kk(l,t);if(c.navigate===!1){let S=c.fetcherKey||gM();await a(S,n,c.action||f,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||d,flushSync:c.flushSync})}else await o(c.action||f,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||d,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,t,n])}function vM(e,{relative:t}={}){let{basename:n}=x.useContext(Dn),a=x.useContext(dr);ut(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),l={...au(e||".",{relative:t})},c=Zt();if(e==null){l.search=c.search;let f=new URLSearchParams(l.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(v=>v).forEach(v=>f.append("index",v));let g=f.toString();l.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:or([n,l.pathname])),Ul(l)}function bM(e,{relative:t}={}){let n=x.useContext(V1);ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=W1("useViewTransitionState"),o=au(e,{relative:t});if(!n.isTransitioning)return!1;let l=ra(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=ra(n.nextLocation.pathname,a)||n.nextLocation.pathname;return df(o.pathname,c)!=null||df(o.pathname,l)!=null}var Zg=N1();const Z1=If(Zg);var qm=function(e,t){return qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},qm(e,t)};function Wn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var L=function(){return L=Object.assign||function(t){for(var n,a=1,o=arguments.length;a<o;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},L.apply(this,arguments)};function bn(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function Va(e,t,n,a){function o(l){return l instanceof n?l:new n(function(c){c(l)})}
vendor: 1,578 bytes, line 61
61return new(n||(n=Promise))(function(l,c){function f(g){try{d(a.next(g))}catch(v){c(v)}}function h(g){try{d(a.throw(g))}catch(v){c(v)}}function d(g){g.done?l(g.value):o(g.value).then(f,h)}d((a=a.apply(e,t||[])).next())})}function Ba(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,o,l,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=f(0),c.throw=f(1),c.return=f(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(d){return function(g){return h([d,g])}}function h(d){if(a)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(n=0)),n;)try{if(a=1,o&&(l=d[0]&2?o.return:d[0]?o.throw||((l=o.return)&&l.call(o),0):o.next)&&!(l=l.call(o,d[1])).done)return l;switch(o=0,l&&(d=[d[0]&2,l.value]),d[0]){case 0:case 1:l=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!l||d[1]>l[0]&&d[1]<l[3])){n.label=d[1];break}if(d[0]===6&&n.label<l[1]){n.label=l[1],l=d;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(d);break}l[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(g){d=[6,g],o=0}finally{a=l=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Lt(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,l;a<o;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}
61var qp="Invariant Violation",wx=Object.setPrototypeOf,SM=wx===void 0?function(e,t){return e.__proto__=t,e}:wx,X1=(function(e){Wn(t,e);function t(n){n===void 0&&(n=qp);var a=e.call(this,typeof n=="number"?qp+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return a.framesToPop=1,a.name=qp,SM(a,t.prototype),a}return t})(Error);function Ai(e,t){if(!e)throw new X1(t)}var J1=["debug","log","warn","error","silent"],xM=J1.indexOf("log");function Nc(e){return function(){if(J1.indexOf(e)>=xM){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Nc("debug"),e.log=Nc("log"),e.warn=Nc("warn"),e.error=Nc("error")})(Ai||(Ai={}));var Xg="3.14.1";function ir(e){try{return e()}catch{}}const pf=ir(function(){return globalThis})||ir(function(){return window})||ir(function(){return self})||ir(function(){return globalThis})||ir(function(){return ir.constructor("return this")()});var _x=new Map;function Hm(e){var t=_x.get(e)||1;return _x.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function e_(e,t){t===void 0&&(t=0);var n=Hm("stringifyForDisplay");return JSON.stringify(e,function(a,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("<undefined>")}function Dc(e){return function(t){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(typeof t=="number"){var o=t;t=Jg(o),t||(t=ey(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var ue=Object.assign(function(t,n){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];t||Ai(t,Jg(n,a)||ey(n,a))},{debug:Dc(Ai.debug),log:Dc(Ai.log),warn:Dc(Ai.warn),error:Dc(Ai.error)});function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new X1(Jg(e,t)||ey(e,t))}var Tx=Symbol.for("ApolloErrorMessageHandler_"+Xg);function t_(e){if(typeof e=="string")return e;try{return e_(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Jg(e,t){if(t===void 0&&(t=[]),!!e)return pf[Tx]&&pf[Tx](e,t.map(t_))}function ey(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Xg,message:e,args:t.map(t_)})))}function Zc(e,t){if(!!!e)throw new Error(t)}function EM(e){return typeof e=="object"&&e!==null}function wM(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const _M=/\r\n|[\n\r]/g;function Gm(e,t){let n=0,a=1;for(const o of e.body.matchAll(_M)){if(typeof o.index=="number"||wM(!1),o.index>=t)break;n=o.index+o[0].length,a+=1}return{line:a,column:t+1-n}}function TM(e){return n_(e.source,Gm(e.source,e.start))}function n_(e,t){const n=e.locationOffset.column-1,a="".padStart(n)+e.body,o=t.line-1,l=e.locationOffset.line-1,c=t.line+l,f=t.line===1?n:0,h=t.column+f,d=`${e.name}:${c}:${h}
62`,g=a.split(/\r\n|[\n\r]/g),v=g[o];if(v.length>120){const S=Math.floor(h/80),b=h%80,w=[];for(let _=0;_<v.length;_+=80)w.push(v.slice(_,_+80));return d+Cx([[`${c} |`,w[0]],...w.slice(1,S+1).map(_=>["|",_]),["|","^".padStart(b)],["|",w[S+1]]])}return d+Cx([[`${c-1} |`,g[o-1]],[`${c} |`,v],["|","^".padStart(h)],[`${c+1} |`,g[o+1]]])}function Cx(e){const t=e.filter(([a,o])=>o!==void 0),n=Math.max(...t.map(([a])=>a.length));return t.map(([a,o])=>a.padStart(n)+(o?" "+o:"")).join(`
63`)}function CM(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class ty extends Error{constructor(t,...n){var a,o,l;const{nodes:c,source:f,positions:h,path:d,originalError:g,extensions:v}=CM(n);super(t),this.name="GraphQLError",this.path=d??void 0,this.originalError=g??void 0,this.nodes=Rx(Array.isArray(c)?c:c?[c]:void 0);const S=Rx((a=this.nodes)===null||a===void 0?void 0:a.map(w=>w.loc).filter(w=>w!=null));this.source=f??(S==null||(o=S[0])===null||o===void 0?void 0:o.source),this.positions=h??(S==null?void 0:S.map(w=>w.start)),this.locations=h&&f?h.map(w=>Gm(f,w)):S==null?void 0:S.map(w=>Gm(w.source,w.start));const b=EM(g==null?void 0:g.extensions)?g==null?void 0:g.extensions:void 0;this.extensions=(l=v??b)!==null&&l!==void 0?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),g!=null&&g.stack?Object.defineProperty(this,"stack",{value:g.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ty):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
64
65`+TM(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
66
67`+n_(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Rx(e){return e===void 0||e.length===0?void 0:e}function Nt(e,t,n){return new ty(`Syntax Error: ${n}`,{source:e,positions:[t]})}class RM{constructor(t,n,a){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=a}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class r_{constructor(t,n,a,o,l,c){this.kind=t,this.start=n,this.end=a,this.line=o,this.column=l,this.value=c,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const a_={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
vendor: 5,292 bytes, lines 67-69
67Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},OM=new Set(Object.keys(a_));function Ox(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&OM.has(t)}var Vo;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Vo||(Vo={}));var Qm;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Qm||(Qm={}));var he;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(he||(he={}));function Ym(e){return e===9||e===32}function zl(e){return e>=48&&e<=57}function i_(e){return e>=97&&e<=122||e>=65&&e<=90}function o_(e){return i_(e)||e===95}function AM(e){return i_(e)||zl(e)||e===95}function NM(e){var t;let n=Number.MAX_SAFE_INTEGER,a=null,o=-1;for(let c=0;c<e.length;++c){var l;const f=e[c],h=DM(f);h!==f.length&&(a=(l=a)!==null&&l!==void 0?l:c,o=c,c!==0&&h<n&&(n=h))}return e.map((c,f)=>f===0?c:c.slice(n)).slice((t=a)!==null&&t!==void 0?t:0,o+1)}function DM(e){let t=0;for(;t<e.length&&Ym(e.charCodeAt(t));)++t;return t}function kM(e,t){const n=e.replace(/"""/g,'\\"""'),a=n.split(/\r\n|[\n\r]/g),o=a.length===1,l=a.length>1&&a.slice(1).every(b=>b.length===0||Ym(b.charCodeAt(0))),c=n.endsWith('\\"""'),f=e.endsWith('"')&&!c,h=e.endsWith("\\"),d=f||h,g=!o||e.length>70||d||l||c;let v="";const S=o&&Ym(e.charCodeAt(0));return(g&&!S||l)&&(v+=`
68`),v+=n,(g||d)&&(v+=`
69`),'"""'+v+'"""'}var J;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
69",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(J||(J={}));class MM{constructor(t){const n=new r_(J.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==J.EOF)do if(t.next)t=t.next;else{const n=IM(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===J.COMMENT);return t}}function jM(e){return e===J.BANG||e===J.DOLLAR||e===J.AMP||e===J.PAREN_L||e===J.PAREN_R||e===J.DOT||e===J.SPREAD||e===J.COLON||e===J.EQUALS||e===J.AT||e===J.BRACKET_L||e===J.BRACKET_R||e===J.BRACE_L||e===J.PIPE||e===J.BRACE_R}function fs(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ff(e,t){return s_(e.charCodeAt(t))&&l_(e.charCodeAt(t+1))}function s_(e){return e>=55296&&e<=56319}function l_(e){return e>=56320&&e<=57343}function Mi(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return J.EOF;if(n>=32&&n<=126){const a=String.fromCodePoint(n);return a==='"'?`'"'`:`"${a}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ot(e,t,n,a,o){const l=e.line,c=1+n-e.lineStart;return new r_(t,n,a,l,c,o)}function IM(e,t){const n=e.source.body,a=n.length;let o=t;for(;o<a;){const l=n.charCodeAt(o);switch(l){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return LM(e,o);case 33:return Ot(e,J.BANG,o,o+1);case 36:return Ot(e,J.DOLLAR,o,o+1);case 38:return Ot(e,J.AMP,o,o+1);case 40:return Ot(e,J.PAREN_L,o,o+1);case 41:return Ot(e,J.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return Ot(e,J.SPREAD,o,o+3);break;case 58:return Ot(e,J.COLON,o,o+1);case 61:return Ot(e,J.EQUALS,o,o+1);case 64:return Ot(e,J.AT,o,o+1);case 91:return Ot(e,J.BRACKET_L,o,o+1);case 93:return Ot(e,J.BRACKET_R,o,o+1);case 123:return Ot(e,J.BRACE_L,o,o+1);case 124:return Ot(e,J.PIPE,o,o+1);case 125:return Ot(e,J.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?VM(e,o):UM(e,o)}if(zl(l)||l===45)return PM(e,o,l);if(o_(l))return BM(e,o);throw Nt(e.source,o,l===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:fs(l)||Ff(n,o)?`Unexpected character: ${Mi(e,o)}.`:`Invalid character: ${Mi(e,o)}.`)}return Ot(e,J.EOF,a,a)}function LM(e,t){const n=e.source.body,a=n.length;let o=t+1;for(;o<a;){const l=n.charCodeAt(o);if(l===10||l===13)break;if(fs(l))++o;else if(Ff(n,o))o+=2;else break}return Ot(e,J.COMMENT,t,o,n.slice(t+1,o))}function PM(e,t,n){const a=e.source.body;let o=t,l=n,c=!1;if(l===45&&(l=a.charCodeAt(++o)),l===48){if(l=a.charCodeAt(++o),zl(l))throw Nt(e.source,o,`Invalid number, unexpected digit after 0: ${Mi(e,o)}.`)}else o=Hp(e,o,l),l=a.charCodeAt(o);if(l===46&&(c=!0,l=a.charCodeAt(++o),o=Hp(e,o,l),l=a.charCodeAt(o)),(l===69||l===101)&&(c=!0,l=a.charCodeAt(++o),(l===43||l===45)&&(l=a.charCodeAt(++o)),o=Hp(e,o,l),l=a.charCodeAt(o)),l===46||o_(l))throw Nt(e.source,o,`Invalid number, expected digit but got: ${Mi(e,o)}.`);return Ot(e,c?J.FLOAT:J.INT,t,o,a.slice(t,o))}function Hp(e,t,n){if(!zl(n))throw Nt(e.source,t,`Invalid number, expected digit but got: ${Mi(e,t)}.`);const a=e.source.body;let o=t+1;for(;zl(a.charCodeAt(o));)++o;return o}function UM(e,t){const n=e.source.body,a=n.length;let o=t+1,l=o,c="";for(;o<a;){const f=n.charCodeAt(o);if(f===34)return c+=n.slice(l,o),Ot(e,J.STRING,t,o+1,c);if(f===92){c+=n.slice(l,o);const h=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?zM(e,o):FM(e,o):$M(e,o);c+=h.value,o+=h.size,l=o;continue}if(f===10||f===13)break;if(fs(f))++o;else if(Ff(n,o))o+=2;else throw Nt(e.source,o,`Invalid character within String: ${Mi(e,o)}.`)}throw Nt(e.source,o,"Unterminated string.")}function zM(e,t){const n=e.source.body;let a=0,o=3;for(;o<12;){const l=n.charCodeAt(t+o++);if(l===125){if(o<5||!fs(a))break;return{value:String.fromCodePoint(a),size:o}}if(a=a<<4|wl(l),a<0)break}throw Nt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function FM(e,t){const n=e.source.body,a=Ax(n,t+2);if(fs(a))return{value:String.fromCodePoint(a),size:6};
vendor: 5,785 bytes, lines 69-82
69if(s_(a)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const o=Ax(n,t+8);if(l_(o))return{value:String.fromCodePoint(a,o),size:12}}throw Nt(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Ax(e,t){return wl(e.charCodeAt(t))<<12|wl(e.charCodeAt(t+1))<<8|wl(e.charCodeAt(t+2))<<4|wl(e.charCodeAt(t+3))}function wl(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $M(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
70`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw Nt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function VM(e,t){const n=e.source.body,a=n.length;let o=e.lineStart,l=t+3,c=l,f="";const h=[];for(;l<a;){const d=n.charCodeAt(l);if(d===34&&n.charCodeAt(l+1)===34&&n.charCodeAt(l+2)===34){f+=n.slice(c,l),h.push(f);const g=Ot(e,J.BLOCK_STRING,t,l+3,NM(h).join(`
71`));return e.line+=h.length-1,e.lineStart=o,g}if(d===92&&n.charCodeAt(l+1)===34&&n.charCodeAt(l+2)===34&&n.charCodeAt(l+3)===34){f+=n.slice(c,l),c=l+1,l+=4;continue}if(d===10||d===13){f+=n.slice(c,l),h.push(f),d===13&&n.charCodeAt(l+1)===10?l+=2:++l,f="",c=l,o=l;continue}if(fs(d))++l;else if(Ff(n,l))l+=2;else throw Nt(e.source,l,`Invalid character within String: ${Mi(e,l)}.`)}throw Nt(e.source,l,"Unterminated string.")}function BM(e,t){const n=e.source.body,a=n.length;let o=t+1;for(;o<a;){const l=n.charCodeAt(o);if(AM(l))++o;else break}return Ot(e,J.NAME,t,o,n.slice(t,o))}const qM=10,u_=2;function ny(e){return $f(e,[])}function $f(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return HM(e,t);default:return String(e)}}function HM(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(GM(e)){const a=e.toJSON();if(a!==e)return typeof a=="string"?a:$f(a,n)}else if(Array.isArray(e))return YM(e,n);return QM(e,n)}function GM(e){return typeof e.toJSON=="function"}function QM(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>u_?"["+KM(e)+"]":"{ "+n.map(([o,l])=>o+": "+$f(l,t)).join(", ")+" }"}function YM(e,t){if(e.length===0)return"[]";if(t.length>u_)return"[Array]";const n=Math.min(qM,e.length),a=e.length-n,o=[];for(let l=0;l<n;++l)o.push($f(e[l],t));return a===1?o.push("... 1 more item"):a>1&&o.push(`... ${a} more items`),"["+o.join(", ")+"]"}function KM(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const WM=globalThis.process&&!0,ZM=WM?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var a;const o=n.prototype[Symbol.toStringTag],l=Symbol.toStringTag in t?t[Symbol.toStringTag]:(a=t.constructor)===null||a===void 0?void 0:a.name;if(o===l){const c=ny(t);throw new Error(`Cannot use ${o} "${c}" from another module or realm.
72
73Ensure that there is only one instance of "graphql" in the node_modules
74directory. If different versions of "graphql" are the dependencies of other
75relied on modules, use "resolutions" to ensure only one version is installed.
76
77https://yarnpkg.com/en/docs/selective-version-resolutions
78
79Duplicate "graphql" modules cannot be used at the same time since different
80versions may have different capabilities and behavior. The data from one
81version used in the function from another could produce confusing and
82spurious results.`)}}return!1};class c_{constructor(t,n="GraphQL request",a={line:1,column:1}){typeof t=="string"||Zc(!1,`Body must be a string. Received: ${ny(t)}.`),this.body=t,this.name=n,this.locationOffset=a,this.locationOffset.line>0||Zc(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Zc(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function XM(e){return ZM(e,c_)}function JM(e,t){const n=new ej(e,t),a=n.parseDocument();return Object.defineProperty(a,"tokenCount",{enumerable:!1,value:n.tokenCount}),a}class ej{constructor(t,n={}){const{lexer:a,...o}=n;if(a)this._lexer=a;else{const l=XM(t)?t:new c_(t);this._lexer=new MM(l)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(J.NAME);return this.node(t,{kind:he.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:he.DOCUMENT,definitions:this.many(J.SOF,this.parseDefinition,J.EOF)})}parseDefinition(){if(this.peek(J.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===J.BRACE_L)throw Nt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===J.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw Nt(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
82ort descriptions.");switch(n.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(J.BRACE_L))return this.node(t,{kind:he.OPERATION_DEFINITION,operation:Vo.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseDescription(),a=this.parseOperationType();let o;return this.peek(J.NAME)&&(o=this.parseName()),this.node(t,{kind:he.OPERATION_DEFINITION,operation:a,description:n,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(J.NAME);switch(t.value){case"query":return Vo.QUERY;case"mutation":return Vo.MUTATION;case"subscription":return Vo.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(J.PAREN_L,this.parseVariableDefinition,J.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:he.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(J.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(J.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(J.DOLLAR),this.node(t,{kind:he.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:he.SELECTION_SET,selections:this.many(J.BRACE_L,this.parseSelection,J.BRACE_R)})}parseSelection(){return this.peek(J.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let a,o;return this.expectOptionalToken(J.COLON)?(a=n,o=this.parseName()):o=n,this.node(t,{kind:he.FIELD,alias:a,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(J.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(J.PAREN_L,n,J.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,a=this.parseName();return this.expectToken(J.COLON),this.node(n,{kind:he.ARGUMENT,name:a,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(J.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(J.NAME)?this.node(t,{kind:he.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:he.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:he.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:he.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case J.BRACKET_L:return this.parseList(t);case J.BRACE_L:return this.parseObject(t);case J.INT:return this.advanceLexer(),this.node(n,{kind:he.INT,value:n.value});case J.FLOAT:return this.advanceLexer(),this.node(n,{kind:he.FLOAT,value:n.value});case J.STRING:case J.BLOCK_STRING:return this.parseStringLiteral();case J.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:he.BOOLEAN,value:!0});case"false":return this.node(n,{kind:he.BOOLEAN,value:!1});case"null":return this.node(n,{kind:he.NULL});default:return this.node(n,{kind:he.ENUM,value:n.value})}case J.DOLLAR:if(t)if(this.expectToken(J.DOLLAR),this._lexer.token.kind===J.NAME){const a=this._lexer.token.value;throw Nt(this._lexer.source,n.start,`Unexpected variable "$${a}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:he.STRING,value:t.value,block:t.kind===J.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:he.LIST,values:this.any(J.BRACKET_L,n,J.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:he.OBJECT,fields:this.any(J.BRACE_L,n,J.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,a=this.parseName();return this.expectToken(J.COLON),this.node(n,{kind:he.OBJECT_FIELD,name:a,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(J.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(J.AT),this.node(n,{kind:he.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(J.BRACKET_L)){const a=this.parseTypeReference();this.expectToken(J.BRACKET_R),n=this.node(t,{kind:he.LIST_TYPE,type:a})}else n=this.parseNamedType();return this.expectOptionalToken(J.BANG)?this.node(t,{kind:he.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:he.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(J.STRING)||this.peek(J.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const a=this.parseConstDirectives(),o=this.many(J.BRACE_L,this.parseOperationTypeDefinition,J.BRACE_R);return this.node(t,{kind:he.SCHEMA_DEFINITION,description:n,directives:a,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(J.COLON);const a=this.parseNamedType();return this.node(t,{kind:he.OPERATION_TYPE_DEFINITION,operation:n,type:a})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const a=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:he.SCALAR_TYPE_DEFINITION,description:n,name:a,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const a=this.parseName(),o=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:he.OBJECT_TYPE_DEFINITION,description:n,name:a,interfaces:o,directives:l,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(J.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(J.BRACE_L,this.parseFieldDefinition,J.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName(),o=this.parseArgumentDefs();this.expectToken(J.COLON);const l=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:he.FIELD_DEFINITION,description:n,name:a,arguments:o,type:l,directives:c})}parseArgumentDefs(){return this.optionalMany(J.PAREN_L,this.parseInputValueDef,J.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseName();this.expectToken(J.COLON);const o=this.parseTypeReference();let l;this.expectOptionalToken(J.EQUALS)&&(l=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:he.INPUT_VALUE_DEFINITION,description:n,name:a,type:o,defaultValue:l,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const a=this.parseName(),o=this.parseImplementsInterfaces(),l=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:he.INTERFACE_TYPE_DEFINITION,description:n,name:a,interfaces:o,directives:l,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const a=this.parseName(),o=this.parseConstDirectives(),l=this.parseUnionMemberTypes();return this.node(t,{kind:he.UNION_TYPE_DEFINITION,description:n,name:a,directives:o,types:l})}parseUnionMemberTypes(){return this.expectOptionalToken(J.EQUALS)?this.delimitedMany(J.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const a=this.parseName(),o=this.parseConstDirectives(),l=this.parseEnumValuesDefinition();return this.node(t,{kind:he.ENUM_TYPE_DEFINITION,description:n,name:a,directives:o,values:l})}parseEnumValuesDefinition(){return this.optionalMany(J.BRACE_L,this.parseEnumValueDefinition,J.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),a=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:he.ENUM_VALUE_DEFINITION,description:n,name:a,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Nt(this._lexer.source,this._lexer.token.start,`${kc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const a=this.parseName(),o=this.parseConstDirectives(),l=this.parseInputFieldsDefinition();return this.node(t,{kind:he.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:a,directives:o,fields:l})}parseInputFieldsDefinition(){return this.optionalMany(J.BRACE_L,this.parseInputValueDef,J.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===J.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),a=this.optionalMany(J.BRACE_L,this.parseOperationTypeDefinition,J.BRACE_R);if(n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:he.SCHEMA_EXTENSION,directives:n,operationTypes:a})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),a=this.parseConstDirectives();if(a.length===0)throw this.unexpected();return this.node(t,{kind:he.SCALAR_TYPE_EXTENSION,name:n,directives:a})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();if(a.length===0&&o.length===0&&l.length===0)throw this.unexpected();return this.node(t,{kind:he.OBJECT_TYPE_EXTENSION,name:n,interfaces:a,directives:o,fields:l})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();if(a.length===0&&o.length===0&&l.length===0)throw this.unexpected();return this.node(t,{kind:he.INTERFACE_TYPE_EXTENSION,name:n,interfaces:a,directives:o,fields:l})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),a=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(a.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:he.UNION_TYPE_EXTENSION,name:n,directives:a,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),a=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(a.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:he.ENUM_TYPE_EXTENSION,name:n,directives:a,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),a=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(a.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:he.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:a,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(J.AT);const a=this.parseName(),o=this.parseArgumentDefs(),l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(t,{kind:he.DIRECTIVE_DEFINITION,description:n,name:a,arguments:o,repeatable:l,locations:c})}parseDirectiveLocations(){return this.delimitedMany(J.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Qm,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,n=this.expectOptionalToken(J.AT),a=this.parseName();let o;!n&&this.expectOptionalToken(J.DOT)&&(o=this.parseName());let l;return(n||o)&&this.expectOptionalToken(J.PAREN_L)&&(l=this.parseName(),this.expectToken(J.COLON),this.expectToken(J.PAREN_R)),n?l?this.node(t,{kind:he.DIRECTIVE_ARGUMENT_COORDINATE,name:a,argumentName:l}):this.node(t,{kind:he.DIRECTIVE_COORDINATE,name:a}):o?l?this.node(t,{kind:he.ARGUMENT_COORDINATE,name:a,fieldName:o,argumentName:l}):this.node(t,{kind:he.MEMBER_COORDINATE,name:a,memberName:o}):this.node(t,{kind:he.TYPE_COORDINATE,name:a})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new RM(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Nt(this._lexer.source,n.start,`Expected ${f_(t)}, found ${kc(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===J.NAME&&n.value===t)this.advanceLexer();else throw Nt(this._lexer.source,n.start,`Expected "${t}", found ${kc(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===J.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Nt(this._lexer.source,n.start,`Unexpected ${kc(n)}.`)}any(t,n,a){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(a);)o.push(n.call(this));return o}optionalMany(t,n,a){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(a));return o}return[]}many(t,n,a){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(a));return o}delimitedMany(t,n){this.expectOptionalToken(t);const a=[];do a.push(n.call(this));while(this.expectOptionalToken(t));return a}
vendor: 3,468 bytes, lines 82-91
82advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==J.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Nt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function kc(e){const t=e.value;return f_(e.kind)+(t!=null?` "${t}"`:"")}function f_(e){return jM(e)?`"${e}"`:e}function tj(e){return`"${e.replace(nj,rj)}"`}const nj=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function rj(e){return aj[e.charCodeAt(0)]}const aj=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vf=Object.freeze({});function sr(e,t,n=a_){const a=new Map;for(const C of Object.values(he))a.set(C,ij(t,C));let o,l=Array.isArray(e),c=[e],f=-1,h=[],d=e,g,v;const S=[],b=[];do{f++;const C=f===c.length,O=C&&h.length!==0;if(C){if(g=b.length===0?void 0:S[S.length-1],d=v,v=b.pop(),O)if(l){d=d.slice();let N=0;for(const[M,P]of h){const U=M-N;P===null?(d.splice(U,1),N++):d[U]=P}}else{d={...d};for(const[N,M]of h)d[N]=M}f=o.index,c=o.keys,h=o.edits,l=o.inArray,o=o.prev}else if(v){if(g=l?f:c[f],d=v[g],d==null)continue;S.push(g)}let A;if(!Array.isArray(d)){var w,_;Ox(d)||Zc(!1,`Invalid AST Node: ${ny(d)}.`);const N=C?(w=a.get(d.kind))===null||w===void 0?void 0:w.leave:(_=a.get(d.kind))===null||_===void 0?void 0:_.enter;if(A=N==null?void 0:N.call(t,d,g,v,S,b),A===Vf)break;if(A===!1){if(!C){S.pop();continue}}else if(A!==void 0&&(h.push([g,A]),!C))if(Ox(A))d=A;else{S.pop();continue}}if(A===void 0&&O&&h.push([g,d]),C)S.pop();else{var T;o={inArray:l,index:f,keys:c,edits:h,prev:o},l=Array.isArray(d),c=l?d:(T=n[d.kind])!==null&&T!==void 0?T:[],f=-1,h=[],v&&b.push(v),v=d}}while(o!==void 0);return h.length!==0?h[h.length-1][1]:e}function ij(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function oj(e){return sr(e,lj)}const sj=80,lj={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ve(e.definitions,`
83
84`)},OperationDefinition:{leave(e){const t=Gp(e.variableDefinitions)?Oe(`(
85`,ve(e.variableDefinitions,`
86`),`
87)`):Oe("(",ve(e.variableDefinitions,", "),")"),n=Oe("",e.description,`
88`)+ve([e.operation,ve([e.name,t]),ve(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:a,description:o})=>Oe("",o,`
89`)+e+": "+t+Oe(" = ",n)+Oe(" ",ve(a," "))},SelectionSet:{leave:({selections:e})=>rr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:a,selectionSet:o}){const l=Oe("",e,": ")+t;let c=l+Oe("(",ve(n,", "),")");return c.length>sj&&(c=l+Oe(`(
90`,Xc(ve(n,`
91`)),`
92)`)),ve([c,ve(a," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Oe(" ",ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ve(["...",Oe("on ",e),ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:a,selectionSet:o,description:l})=>Oe("",l,`
93`)+`fragment ${e}${Oe("(",ve(n,", "),")")} on ${t} ${Oe("",ve(a," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?kM(e):tj(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Oe("(",ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Oe("",e,`
94`)+ve(["schema",ve(t," "),rr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Oe("",e,`
95`)+ve(["scalar",t,ve(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:a,fields:o})=>Oe("",e,`
96`)+ve(["type",t,Oe("implements ",ve(n," & ")),ve(a," "),rr(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:a,directives:o})=>Oe("",e,`
97`)+t+(Gp(n)?Oe(`(
98`,Xc(ve(n,`
99`)),`
100)`):Oe("(",ve(n,", "),")"))+": "+a+Oe(" ",ve(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:a,directives:o})=>Oe("",e,`
101`)+ve([t+": "+n,Oe("= ",a),ve(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:a,fields:o})=>Oe("",e,`
102`)+ve(["interface",t,Oe("implements ",ve(n," & ")),ve(a," "),rr(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:a})=>Oe("",e,`
103`)+ve(["union",t,ve(n," "),Oe("= ",ve(a," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:a})=>Oe("",e,`
104`)+ve(["enum",t,ve(n," "),rr(a)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Oe("",e,`
105`)+ve([t,ve(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:a})=>Oe("",e,`
106`)+ve(["input",t,ve(n," "),rr(a)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:a,locations:o})=>Oe("",e,`
107`)+"directive @"+t+(Gp(n)?Oe(`(
108`,Xc(ve(n,`
109`)),`
110)`):Oe("(",ve(n,", "),")"))+(a?" repeatable":"")+" on "+ve(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ve(["extend schema",ve(e," "),rr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ve(["extend scalar",e,ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:a})=>ve(["extend type",e,Oe("implements ",ve(t," & ")),ve(n," "),rr(a)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:a})=>ve(["extend interface",e,Oe("implements ",ve(t," & ")),ve(n," "),rr(a)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ve(["extend union",e,ve(t," "),Oe("= ",ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ve(["extend enum",e,ve(t," "),rr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ve(["extend input",e,ve(t," "),rr(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>ve([e,Oe(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>ve([e,Oe(".",t),Oe("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>ve(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>ve(["@",e,Oe("(",t,":)")])}};function ve(e,t=""){var n;return(n=e==null?void 0:e.filter(a=>a).join(t))!==null&&n!==void 0?n:""}function rr(e){return Oe(`{
111`,Xc(ve(e,`
112`)),`
113}`)}function Oe(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Xc(e){return Oe("  ",e.replace(/\n/g,`
114  `))}function Gp(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
115`)))!==null&&t!==void 0?t:!1}function Nx(e){return e.kind===he.FIELD||e.kind===he.FRAGMENT_SPREAD||e.kind===he.INLINE_FRAGMENT}function iu(e,t){var n=e.directives;return!n||!n.length?!0:fj(n).every(function(a){var o=a.directive,l=a.ifArgument,c=!1;return l.value.kind==="Variable"?(c=t&&t[l.value.name.value],ue(c!==void 0,105,o.name.value)):c=l.value.value,o.name.value==="skip"?!c:c})}function Fl(e,t,n){var a=new Set(e),o=a.size;return sr(t,{Directive:function(l){if(a.delete(l.name.value)&&(!n||!a.size))return Vf}}),n?!a.size:a.size<o}function uj(e){return e&&Fl(["client","export"],e,!0)}function cj(e){var t=e.name.value;return t==="skip"||t==="include"}function fj(e){var t=[];return e&&e.length&&e.forEach(function(n){if(cj(n)){var a=n.arguments,o=n.name.value;ue(a&&a.length===1,106,o);var l=a[0];ue(l.name&&l.name.value==="if",107,o);var c=l.value;ue(c&&(c.kind==="Variable"||c.kind==="BooleanValue"),108,o),t.push({directive:n,ifArgument:l})}}),t}function dj(e){var t,n,a=(t=e.directives)===null||t===void 0?void 0:t.find(function(l){var c=l.name;return c.value==="unmask"});if(!a)return"mask";var o=(n=a.arguments)===null||n===void 0?void 0:n.find(function(l){var c=l.name;return c.value==="mode"});return globalThis.__DEV__!==!1&&o&&(o.value.kind===he.VARIABLE?globalThis.__DEV__!==!1&&ue.warn(109):o.value.kind!==
115he.STRING?globalThis.__DEV__!==!1&&ue.warn(110):o.value.value!=="migrate"&&globalThis.__DEV__!==!1&&ue.warn(111,o.value.value)),o&&"value"in o.value&&o.value.value==="migrate"?"migrate":"unmask"}const hj=()=>Object.create(null),{forEach:pj,slice:Dx}=Array.prototype,{hasOwnProperty:mj}=Object.prototype;class ua{constructor(t=!0,n=hj){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return pj.call(t,a=>n=n.getChildTrie(a)),mj.call(n,"data")?n.data:n.data=this.makeData(Dx.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let a=0,o=t.length;n&&a<o;++a){const l=n.mapFor(t[a],!1);n=l&&l.get(t[a])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const a=t[0],o=this.mapFor(a,!1),l=o&&o.get(a);l&&(n=l.removeArray(Dx.call(t,1)),!l.data&&!l.weak&&!(l.strong&&l.strong.size)&&o.delete(a))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let a=n.get(t);return a||n.set(t,a=new ua(this.weakness,this.makeData)),a}mapFor(t,n){return this.weakness&&gj(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function gj(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var d_=ir(function(){return navigator.product})=="ReactNative",zi=typeof WeakMap=="function"&&!(d_&&!globalThis.HermesInternal),ry=typeof WeakSet=="function",ay=typeof Symbol=="function"&&typeof Symbol.for=="function",Bf=ay&&Symbol.asyncIterator,yj=typeof ir(function(){return window.document.createElement})=="function",vj=ir(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,bj=(yj||d_)&&!vj;function lt(e){return e!==null&&typeof e=="object"}function Sj(e,t){var n=t,a=[];e.definitions.forEach(function(l){if(l.kind==="OperationDefinition")throw an(112,l.operation,l.name?" named '".concat(l.name.value,"'"):"");l.kind==="FragmentDefinition"&&a.push(l)}),typeof n>"u"&&(ue(a.length===1,113,a.length),n=a[0].name.value);var o=L(L({},e),{definitions:Lt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function ds(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function qf(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var a=t&&t[n];return ue(a,114,n),a||null}default:return null}}function xj(e){var t=!0;return sr(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(a){return a.name.value==="unmask"}),!t)return Vf}}),t}function Ej(){}class Km{constructor(t=1/0,n=Ej){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);
115if(n&&n!==this.newest){const{older:a,newer:o}=n;o&&(o.older=a),a&&(a.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let a=this.getNode(t);return a?a.value=n:(a={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.map.set(t,a),a.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function Wm(){}const wj=Wm,_j=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Tj=typeof WeakMap<"u"?WeakMap:Map,Cj=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Wm,unregister:Wm}},Rj=10024;class mf{constructor(t=1/0,n=wj){this.max=t,this.dispose=n,this.map=new Tj,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const a=this.unfinalizedNodes.values();for(let o=0;o<Rj;o++){const l=a.next().value;if(!l)break;this.unfinalizedNodes.delete(l);const c=l.key;delete l.key,l.keyRef=new _j(c),this.registry.register(c,l,l)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Cj(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);
115if(n&&n!==this.newest){const{older:a,newer:o}=n;o&&(o.older=a),a&&(a.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let a=this.getNode(t);return a?a.value=n:(a={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.scheduleFinalization(a),this.map.set(t,a),this.size++,a.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Qp=new WeakSet;function h_(e){e.size<=(e.max||-1)||Qp.has(e)||(Qp.add(e),setTimeout(function(){e.clean(),Qp.delete(e)},100))}var iy=function(e,t){var n=new mf(e,t);return n.set=function(a,o){var l=mf.prototype.set.call(this,a,o);return h_(this),l},n},Oj=function(e,t){var n=new Km(e,t);return n.set=function(a,o){var l=Km.prototype.set.call(this,a,o);return h_(this),l},n},Aj=Symbol.for("apollo.cacheSize"),Cr=L({},pf[Aj]),Ri={};function oy(e,t){Ri[e]=t}var Nj=globalThis.__DEV__!==!1?jj:void 0,Dj=globalThis.__DEV__!==!1?Ij:void 0,kj=globalThis.__DEV__!==!1?p_:void 0;function Mj(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],a=t[1];return[n,Cr[n]||a]}))}function jj(){var e,t,n,a,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:Mj(),sizes:L({print:(e=Ri.print)===null||e===void 0?void 0:e.call(Ri),parser:(t=Ri.parser)===null||t===void 0?void 0:t.call(Ri),canonicalStringify:(n=Ri.canonicalStringify)===null||n===void 0?void 0:n.call(Ri),links:Xm(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:g_(this.queryManager.documentTransform)}},(o=(a=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(a))}}function p_(){return{cache:{fragmentQueryDocuments:qa(this.getFragmentDoc)}}}function Ij(){var e=this.config.fragments;return L(L({},p_.apply(this)),{addTypenameDocumentTransform:g_(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:qa(this.storeReader.executeSelectionSet),executeSubSelectedArray:qa(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:qa(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:qa(e==null?void 0:e.findFragmentSpreads),lookup:qa(e==null?void 0:e.lookup),transform:qa(e==null?void 0:e.transform)}})}function Lj(e){return!!e&&"dirtyKey"in e}function qa(e){return Lj(e)?e.size:void 0}function m_(e){return e!=null}function g_(e){return Zm(e).map(function(t){return{cache:t}})}function Zm(e){return e?Lt(Lt([qa(e==null?void 0:e.performWork)],Zm(e==null?void 0:e.left),!0),Zm(e==null?void 0:e.right),!0).filter(m_):[]}function Xm(e){var t;return e?Lt(Lt([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],Xm(e==null?void 0:e.left),!0),Xm(e==null?void 0:e.right),!0).filter(m_):[]}var Ya=Object.assign(function(t){return JSON.stringify(t,Pj)},{reset:function(){Bo=new Oj(Cr.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&oy("canonicalStringify",function(){return Bo.size});var Bo;Ya.reset();function Pj(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var a=Object.keys(t);if(a.every(Uj))return t;var o=JSON.stringify(a),l=Bo.get(o);if(!l){a.sort();var c=JSON.stringify(a);l=Bo.get(c)||a,Bo.set(o,l),Bo.set(c,l)}var f=Object.create(n);return l.forEach(function(h){f[h]=t[h]}),f}}return t}function Uj(e,t,n){return t===0||n[t-1]<=e}function Qo(e){return{__ref:String(e)}}function Ge(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function zj(e){return lt(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Fj(e){return e.kind==="StringValue"}function $j(e){return e.kind==="BooleanValue"}function Vj(e){return e.kind==="IntValue"}function Bj(e){return e.kind==="FloatValue"}function qj(e){return e.kind==="Variable"}function Hj(e){return e.kind==="ObjectValue"}function Gj(e){return e.kind==="ListValue"}function Qj(e){return e.kind==="EnumValue"}
115function Yj(e){return e.kind==="NullValue"}function rs(e,t,n,a){if(Vj(n)||Bj(n))e[t.value]=Number(n.value);else if($j(n)||Fj(n))e[t.value]=n.value;else if(Hj(n)){var o={};n.fields.map(function(c){return rs(o,c.name,c.value,a)}),e[t.value]=o}else if(qj(n)){var l=(a||{})[n.name.value];e[t.value]=l}else if(Gj(n))e[t.value]=n.values.map(function(c){var f={};return rs(f,t,c,a),f[t.value]});else if(Qj(n))e[t.value]=n.value;else if(Yj(n))e[t.value]=null;else throw an(123,t.value,n.kind)}function Kj(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(l){var c=l.name,f=l.value;return rs(n[o.name.value],c,f,t)})}));var a=null;return e.arguments&&e.arguments.length&&(a={},e.arguments.forEach(function(o){var l=o.name,c=o.value;return rs(a,l,c,t)})),y_(e.name.value,a,n)}var Wj=["connection","include","skip","client","rest","export","nonreactive"],fl=Ya,y_=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var a=n.connection.filter?n.connection.filter:[];a.sort();var o={};return a.forEach(function(f){o[f]=t[f]}),"".concat(n.connection.key,"(").concat(fl(o),")")}else return n.connection.key;var l=e;if(t){var c=fl(t);l+="(".concat(c,")")}return n&&Object.keys(n).forEach(function(f){Wj.indexOf(f)===-1&&(n[f]&&Object.keys(n[f]).length?l+="@".concat(f,"(").concat(fl(n[f]),")"):l+="@".concat(f))}),l},{setStringify:function(e){var t=fl;return fl=e,t}});function Hf(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(a){var o=a.name,l=a.value;return rs(n,o,l,t)}),n}return null}function aa(e){return e.alias?e.alias.value:e.name.value}function Jm(e,t,n){for(var a,o=0,l=t.selections;o<l.length;o++){var c=l[o];if(Wa(c)){if(c.name.value==="__typename")return e[aa(c)]}else a?a.push(c):a=[c]}if(typeof e.__typename=="string")return e.__typename;if(a)for(var f=0,h=a;f<h.length;f++){var c=h[f],d=Jm(e,qf(c,n).selectionSet,n);if(typeof d=="string")return d}}function Wa(e){return e.kind==="Field"}function Zj(e){return e.kind==="InlineFragment"}function hs(e){ue(e&&e.kind==="Document",115);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw an(116,n.kind);return n});return ue(t.length<=1,117,t.length),e}function ji(e){return hs(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function _l(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function ps(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function v_(e){var t=ji(e);return ue(t&&t.operation==="query",118),t}function b_(e){ue(e.kind==="Document",119),ue(e.definitions.length<=1,120);var t=e.definitions[0];return ue(t.kind==="FragmentDefinition",121),t}function Fi(e){hs(e);for(var t,n=0,a=e.definitions;n<a.length;n++){var o=a[n];if(o.kind==="OperationDefinition"){var l=o.operation;if(l==="query"||l==="mutation"||l==="subscription")return o}o.kind==="FragmentDefinition"&&!t&&(t=o)}if(t)return t;throw an(122)}function sy(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(a){a.defaultValue&&rs(t,a.variable.name,a.defaultValue)}),t}let Bt=null;const kx={};let Xj=1;const Jj=()=>class{constructor(){this.id=["slot",Xj++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Bt;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===kx)break;return t!==Bt&&(Bt.slots[this.id]=n),!0}return Bt&&(Bt.slots[this.id]=kx),!1}getValue(){if(this.hasValue())return Bt.slots[this.id]}withValue(t,n,a,o){const l={__proto__:null,[this.id]:t},c=Bt;Bt={parent:c,slots:l};try{return n.apply(o,a)}finally{Bt=c}}static bind(t){const n=Bt;return function(){const a=Bt;try{return Bt=n,t.apply(this,arguments)}finally{Bt=a}}}static noContext(t,n,a){if(Bt){const o=Bt;try{return Bt=null,t.apply(a,n)}finally{Bt=o}}else return t.apply(a,n)}};function Mx(e){try{return e()}catch{}}const Yp="@wry/context:Slot",eI=Mx(()=>globalThis)||Mx(()=>globalThis)||Object.create(null),jx=eI,ms=jx[Yp]||Array[Yp]||(function(e){try{Object.defineProperty(jx,Yp,{value:e,enumerable:!1,writable:!1,
115configurable:!0})}finally{return e}})(Jj()),{bind:sH,noContext:lH}=ms,Gf=new ms,{hasOwnProperty:tI}=Object.prototype,ly=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function uy(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const $l=[],nI=100;function as(e,t){if(!e)throw new Error(t||"assertion failure")}function S_(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function x_(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function E_(e){return e.slice(0)}class Qf{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Qf.count}peek(){if(this.value.length===1&&!Za(this))return Ix(this),this.value[0]}recompute(t){return as(!this.recomputing,"already recomputing"),Ix(this),Za(this)?rI(this,t):x_(this.value)}setDirty(){this.dirty||(this.dirty=!0,w_(this),uy(this))}dispose(){this.setDirty(),O_(this),cy(this,(t,n)=>{t.setDirty(),A_(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=$l.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(ly(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),$l.push(this.deps),this.deps=null)}}Qf.count=0;function Ix(e){const t=Gf.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Za(e)?T_(t,e):C_(t,e),t}function rI(e,t){return O_(e),Gf.withValue(e,aI,[e,t]),oI(e,t)&&iI(e),x_(e.value)}function aI(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let a;n&&e.value.length===1&&(a=E_(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&a&&!S_(a,e.value))try{e.value[0]=n(e.value[0],a[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function Za(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function iI(e){e.dirty=!1,!Za(e)&&__(e)}function w_(e){cy(e,T_)}function __(e){cy(e,C_)}function cy(e,t){const n=e.parents.size;if(n){const a=ly(e.parents);for(let o=0;o<n;++o)t(a[o],e)}}function T_(e,t){as(e.childValues.has(t)),as(Za(t));const n=!Za(e);if(!e.dirtyChildren)e.dirtyChildren=$l.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&w_(e)}function C_(e,t){as(e.childValues.has(t)),as(!Za(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,E_(t.value)):S_(n,t.value)||e.setDirty(),R_(e,t),!Za(e)&&__(e)}function R_(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&($l.length<nI&&$l.push(n),e.dirtyChildren=null))}function O_(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{A_(e,n)}),e.forgetDeps(),as(e.dirtyChildren===null)}function A_(e,t){t.parents.delete(e),e.childValues.delete(t),R_(e,t)}function oI(e,t){if(typeof e.subscribe=="function")try{uy(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const sI={setDirty:!0,dispose:!0,forget:!0};function N_(e){const t=new Map;function n(a){const o=Gf.getValue();if(o){let l=t.get(a);l||t.set(a,l=new Set),o.dependOn(l)}}return n.dirty=function(o,l){const c=t.get(o);if(c){const f=l&&tI.call(sI,l)?l:"setDirty";ly(c).forEach(h=>h[f]()),t.delete(o),uy(c)}},n}let Lx;function lI(...e){return(Lx||(Lx=new ua(typeof WeakMap=="function"))).lookupArray(e)}const Kp=new Set;function Vl(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:a=lI,normalizeResult:o,subscribe:l,cache:c=Km}=Object.create(null)){const f=typeof c=="function"?new c(t,S=>S.dispose()):c,h=function(){const S=a.apply(null,n?n.apply(null,arguments):arguments);if(S===void 0)return e.apply(null,arguments);let b=f.get(S);b||(f.set(S,b=new Qf(e)),b.normalizeResult=o,b.subscribe=l,b.forget=()=>f.delete(S));const w=b.recompute(Array.prototype.slice.call(arguments));return f.set(S,b),Kp.add(f),Gf.hasValue()||(Kp.forEach(_=>_.clean()),Kp.clear()),w};Object.defineProperty(h,"size",{get:()=>f.size,configurable:!1,enumerable:!1}),Object.freeze(h.options={max:t,keyArgs:n,makeCacheKey:a,normalizeResult:o,subscribe:l,cache:f});function d(S){const b=S&&f.get(S);b&&b.setDirty()}h.dirtyKey=d,h.dirty=function(){d(a.apply(null,arguments))};function g(S){const b=S&&f.get(S);if(b)return b.peek()}h.peekKey=g,h.peek=function(){return g(a.apply(null,arguments))};function v(S){return S?f.delete(S):!1}return h.forgetKey=v,h.forget=function(){return v(a.apply(null,arguments))},h.makeCacheKey=a,h.getKey=n?function(){return a.apply(null,n.apply(null,arguments))}:a,Object.freeze(h)}function uI(e){return e}var D_=(function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=ry?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(uI,{cache:!1})},e.split=function(t,n,a){return a===void 0&&(a=e.identity()),Object.assign(new e(function(o){var l=t
115(o)?n:a;return l.transformDocument(o)},{cache:!1}),{left:n,right:a})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new ua(zi);this.performWork=Vl(e.prototype.performWork.bind(this),{makeCacheKey:function(a){var o=t.getCacheKey(a);if(o)return ue(Array.isArray(o),104),n.lookupArray(o)},max:Cr["documentTransform.cache"],cache:mf})}},e.prototype.performWork=function(t){return hs(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(a){return t.transformDocument(n.transformDocument(a))},{cache:!1}),{left:this,right:t})},e})(),Al,Ga=Object.assign(function(e){var t=Al.get(e);return t||(t=oj(e),Al.set(e,t)),t},{reset:function(){Al=new iy(Cr.print||2e3)}});Ga.reset();globalThis.__DEV__!==!1&&oy("print",function(){return Al?Al.size:0});var mt=Array.isArray;function Kn(e){return Array.isArray(e)&&e.length>0}var Px={kind:he.FIELD,name:{kind:he.NAME,value:"__typename"}};function k_(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===he.FRAGMENT_SPREAD&&k_(t[n.name.value],t)})}function cI(e){return k_(ji(e)||b_(e),ds(ps(e)))?null:e}function fI(e){var t=new Map,n=new Map;return e.forEach(function(a){a&&(a.name?t.set(a.name,a):a.test&&n.set(a.test,a))}),function(a){var o=t.get(a.name.value);return!o&&n.size&&n.forEach(function(l,c){c(a)&&(o=l)}),o}}function Ux(e){var t=new Map;return function(a){a===void 0&&(a=e);var o=t.get(a);return o||t.set(a,o={variables:new Set,fragmentSpreads:new Set}),o}}function M_(e,t){hs(t);for(var n=Ux(""),a=Ux(""),o=function(C){for(var O=0,A=void 0;O<C.length&&(A=C[O]);++O)if(!mt(A)){if(A.kind===he.OPERATION_DEFINITION)return n(A.name&&A.name.value);if(A.kind===he.FRAGMENT_DEFINITION)return a(A.name.value)}return globalThis.__DEV__!==!1&&ue.error(124),null},l=0,c=t.definitions.length-1;c>=0;--c)t.definitions[c].kind===he.OPERATION_DEFINITION&&++l;var f=fI(e),h=function(C){return Kn(C)&&C.map(f).some(function(O){return O&&O.remove})},d=new Map,g=!1,v={enter:function(C){if(h(C.directives))return g=!0,null}},S=sr(t,{Field:v,InlineFragment:v,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(C,O,A,N,M){var P=o(M);P&&P.variables.add(C.name.value)}},FragmentSpread:{enter:function(C,O,A,N,M){if(h(C.directives))return g=!0,null;var P=o(M);P&&P.fragmentSpreads.add(C.name.value)}},FragmentDefinition:{enter:function(C,O,A,N){d.set(JSON.stringify(N),C)},leave:function(C,O,A,N){var M=d.get(JSON.stringify(N));if(C===M)return C;if(l>0&&C.selectionSet.selections.every(function(P){return P.kind===he.FIELD&&P.name.value==="__typename"}))return a(C.name.value).removed=!0,g=!0,null}},Directive:{leave:function(C){if(f(C))return g=!0,null}}});if(!g)return t;var b=function(C){return C.transitiveVars||(C.transitiveVars=new Set(C.variables),C.removed||C.fragmentSpreads.forEach(function(O){b(a(O)).transitiveVars.forEach(function(A){C.transitiveVars.add(A)})})),C},w=new Set;S.definitions.forEach(function(C){C.kind===he.OPERATION_DEFINITION?b(n(C.name&&C.name.value)).fragmentSpreads.forEach(function(O){w.add(O)}):C.kind===he.FRAGMENT_DEFINITION&&l===0&&!a(C.name.value).removed&&w.add(C.name.value)}),w.forEach(function(C){b(a(C)).fragmentSpreads.forEach(function(O){w.add(O)})});var _=function(C){return!!(!w.has(C)||a(C).removed)},T={enter:function(C){if(_(C.name.value))return null}};return cI(sr(S,{FragmentSpread:T,FragmentDefinition:T,OperationDefinition:{leave:function(C){if(C.variableDefinitions){var O=b(n(C.name&&C.name.value)).transitiveVars;if(O.size<C.variableDefinitions.length)return L(L({},C),{variableDefinitions:C.variableDefinitions.filter(function(A){return O.has(A.variable.name.value)})})}}}}))}var fy=Object.assign(function(e){return sr(e,{SelectionSet:{enter:function(t,n,a){if(!(a&&a.kind===he.OPERATION_DEFINITION)){var o=t.selections;if(o){var l=o.some(function(f){return Wa(f)&&(f.name.value==="__typename"||f.name.value.lastIndexOf("__",0)===0)});if(!l){var c=a;if(!(Wa(c)&&c.directives&&c.directives.some(function(f){return f.name.value==="export"})))return L(L({},t),{selections:Lt(Lt([],o,!0),[Px],!1)})}}}}}})},{added:function(e){return e===Px}});function dI(e){var t=Fi(e),n=t.operation;if(n==="query")return e;var a=sr(e,{OperationDefinition:{enter:function(o){return L(L({},o),{operation:"query"})}}});return a}function j_(e){hs(e);var t=M_([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function hI(e){return hs(e),sr(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(a){return a.name.value==="unmask"})))return L(L({},t),{directives:Lt(Lt([],t.directives||[],!0),[{kind:he.DIRECTIVE,name:{kind:he.NAME,value:"nonreactive"}}
115],!1)})}})}var pI=Object.prototype.hasOwnProperty;function zx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Yf(e)}function Yf(e){var t=e[0]||{},n=e.length;if(n>1)for(var a=new Xa,o=1;o<n;++o)t=a.merge(t,e[o]);return t}var mI=function(e,t,n){return this.merge(e[n],t[n])},Xa=(function(){function e(t){t===void 0&&(t=mI),this.reconciler=t,this.isObject=lt,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var a=this,o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];return lt(n)&&lt(t)?(Object.keys(n).forEach(function(c){if(pI.call(t,c)){var f=t[c];if(n[c]!==f){var h=a.reconciler.apply(a,Lt([t,n,c],o,!1));h!==f&&(t=a.shallowCopyForMerge(t),t[c]=h)}}else t=a.shallowCopyForMerge(t),t[c]=n[c]}),t):n},e.prototype.shallowCopyForMerge=function(t){return lt(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=L({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e})();function gI(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=yI(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yI(e,t){if(e){if(typeof e=="string")return Fx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fx(e,t)}}function Fx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function $x(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function dy(e,t,n){return t&&$x(e.prototype,t),n&&$x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hy=function(){return typeof Symbol=="function"},py=function(e){return hy()&&!!Symbol[e]},my=function(e){return py(e)?Symbol[e]:"@@"+e};hy()&&!py("observable")&&(Symbol.observable=Symbol("observable"));var vI=my("iterator"),eg=my("observable"),I_=my("species");function gf(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function dl(e){var t=e.constructor;return t!==void 0&&(t=t[I_],t===null&&(t=void 0)),t!==void 0?t:qe}function bI(e){return e instanceof qe}function is(e){is.log?is.log(e):setTimeout(function(){throw e})}function Jc(e){Promise.resolve().then(function(){try{e()}catch(t){is(t)}})}function L_(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=gf(t,"unsubscribe");n&&n.call(t)}}catch(a){is(a)}}function tg(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function SI(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(P_(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function P_(e,t,n){e._state="running";var a=e._observer;try{var o=gf(a,t);switch(t){case"next":o&&o.call(a,n);break;case"error":if(tg(e),o)o.call(a,n);else throw n;break;case"complete":tg(e),o&&o.call(a);break}}catch(l){is(l)}e._state==="closed"?L_(e):e._state==="running"&&(e._state="ready")}function Wp(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],Jc(function(){return SI(e)});return}P_(e,t,n)}}var xI=(function(){function e(n,a){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var o=new EI(this);try{this._cleanup=a.call(void 0,o)}catch(l){o.error(l)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(tg(this),L_(this))},dy(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),EI=(function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(a){Wp(this._subscription,"next",a)},t.error=function(a){Wp(this._subscription,"error",a)},t.complete=function(){Wp(this._subscription,"complete")},dy(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),qe=(function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(a){return(typeof a!="object"||a===null)&&(a={next:a,error:arguments[1],complete:arguments[2]}),new xI(a,this._subscriber)},t.forEach=function(a){var o=this;
116return new Promise(function(l,c){if(typeof a!="function"){c(new TypeError(a+" is not a function"));return}function f(){h.unsubscribe(),l()}var h=o.subscribe({next:function(d){try{a(d,f)}catch(g){c(g),h.unsubscribe()}},error:c,complete:l})})},t.map=function(a){var o=this;if(typeof a!="function")throw new TypeError(a+" is not a function");var l=dl(this);return new l(function(c){return o.subscribe({next:function(f){try{f=a(f)}catch(h){return c.error(h)}c.next(f)},error:function(f){c.error(f)},complete:function(){c.complete()}})})},t.filter=function(a){var o=this;if(typeof a!="function")throw new TypeError(a+" is not a function");var l=dl(this);return new l(function(c){return o.subscribe({next:function(f){try{if(!a(f))return}catch(h){return c.error(h)}c.next(f)},error:function(f){c.error(f)},complete:function(){c.complete()}})})},t.reduce=function(a){var o=this;if(typeof a!="function")throw new TypeError(a+" is not a function");var l=dl(this),c=arguments.length>1,f=!1,h=arguments[1],d=h;return new l(function(g){return o.subscribe({next:function(v){var S=!f;if(f=!0,!S||c)try{d=a(d,v)}catch(b){return g.error(b)}else d=v},error:function(v){g.error(v)},complete:function(){if(!f&&!c)return g.error(new TypeError("Cannot reduce an empty sequence"));g.next(d),g.complete()}})})},t.concat=function(){for(var a=this,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var f=dl(this);return new f(function(h){var d,g=0;function v(S){d=S.subscribe({next:function(b){h.next(b)},error:function(b){h.error(b)},complete:function(){g===l.length?(d=void 0,h.complete()):v(f.from(l[g++]))}})}return v(a),function(){d&&(d.unsubscribe(),d=void 0)}})},t.flatMap=function(a){var o=this;if(typeof a!="function")throw new TypeError(a+" is not a function");var l=dl(this);return new l(function(c){var f=[],h=o.subscribe({next:function(g){if(a)try{g=a(g)}catch(S){return c.error(S)}var v=l.from(g).subscribe({next:function(S){c.next(S)},error:function(S){c.error(S)},complete:function(){var S=f.indexOf(v);S>=0&&f.splice(S,1),d()}});f.push(v)},error:function(g){c.error(g)},complete:function(){d()}});function d(){h.closed&&f.length===0&&c.complete()}return function(){f.forEach(function(g){return g.unsubscribe()}),h.unsubscribe()}})},t[eg]=function(){return this},e.from=function(a){var o=typeof this=="function"?this:e;if(a==null)throw new TypeError(a+" is not an object");var l=gf(a,eg);if(l){var c=l.call(a);if(Object(c)!==c)throw new TypeError(c+" is not an object");return bI(c)&&c.constructor===o?c:new o(function(f){return c.subscribe(f)})}if(py("iterator")&&(l=gf(a,vI),l))return new o(function(f){Jc(function(){if(!f.closed){for(var h=gI(l.call(a)),d;!(d=h()).done;){var g=d.value;if(f.next(g),f.closed)return}f.complete()}})});if(Array.isArray(a))return new o(function(f){Jc(function(){if(!f.closed){for(var h=0;h<a.length;++h)if(f.next(a[h]),f.closed)return;f.complete()}})});throw new TypeError(a+" is not observable")},e.of=function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];var c=typeof this=="function"?this:e;return new c(function(f){Jc(function(){if(!f.closed){for(var h=0;h<o.length;++h)if(f.next(o[h]),f.closed)return;f.complete()}})})},dy(e,null,[{key:I_,get:function(){return this}}]),e})();hy()&&Object.defineProperty(qe,Symbol("extensions"),{value:{symbol:eg,hostReportError:is},configurable:!0});function wI(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var Fo;typeof self<"u"?Fo=self:typeof window<"u"?Fo=window:typeof globalThis<"u"?Fo=globalThis:typeof module<"u"?Fo=module:Fo=Function("return this")();wI(Fo);var Vx=qe.prototype,Bx="@@observable";Vx[Bx]||(Vx[Bx]=function(){return this});function _I(e){return e.catch(function(){}),e}var TI=Object.prototype.toString;function U_(e){return ng(e)}function ng(e,t){switch(TI.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);
116return t.set(e,n),n.forEach(function(o,l){n[l]=ng(o,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var a=Object.create(Object.getPrototypeOf(e));return t.set(e,a),Object.keys(e).forEach(function(o){a[o]=ng(e[o],t)}),a}default:return e}}function CI(e){var t=new Set([e]);return t.forEach(function(n){lt(n)&&RI(n)===n&&Object.getOwnPropertyNames(n).forEach(function(a){lt(n[a])&&t.add(n[a])})}),e}function RI(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function os(e){return globalThis.__DEV__!==!1&&CI(e),e}function Nl(e,t,n){var a=[];e.forEach(function(o){return o[t]&&a.push(o)}),a.forEach(function(o){return o[t](n)})}function Zp(e,t,n){return new qe(function(a){var o={then:function(h){return new Promise(function(d){return d(h())})}};function l(h,d){return function(g){if(h){var v=function(){return a.closed?0:h(g)};o=o.then(v,v).then(function(S){return a.next(S)},function(S){return a.error(S)})}else a[d](g)}}var c={next:l(t,"next"),error:l(n,"error"),complete:function(){o.then(function(){return a.complete()})}},f=e.subscribe(c);return function(){return f.unsubscribe()}})}function z_(e){function t(n){Object.defineProperty(e,n,{value:qe})}return ay&&Symbol.species&&t(Symbol.species),t("@@species"),e}function qx(e){return e&&typeof e.then=="function"}var $o=(function(e){Wn(t,e);function t(n){var a=e.call(this,function(o){return a.addObserver(o),function(){return a.removeObserver(o)}})||this;return a.observers=new Set,a.promise=new Promise(function(o,l){a.resolve=o,a.reject=l}),a.handlers={next:function(o){a.sub!==null&&(a.latest=["next",o],a.notify("next",o),Nl(a.observers,"next",o))},error:function(o){var l=a.sub;l!==null&&(l&&setTimeout(function(){return l.unsubscribe()}),a.sub=null,a.latest=["error",o],a.reject(o),a.notify("error",o),Nl(a.observers,"error",o))},complete:function(){var o=a,l=o.sub,c=o.sources,f=c===void 0?[]:c;if(l!==null){var h=f.shift();h?qx(h)?h.then(function(d){return a.sub=d.subscribe(a.handlers)},a.handlers.error):a.sub=h.subscribe(a.handlers):(l&&setTimeout(function(){return l.unsubscribe()}),a.sub=null,a.latest&&a.latest[0]==="next"?a.resolve(a.latest[1]):a.resolve(),a.notify("complete"),Nl(a.observers,"complete"))}}},a.nextResultListeners=new Set,a.cancel=function(o){a.reject(o),a.sources=[],a.handlers.error(o)},a.promise.catch(function(o){}),typeof n=="function"&&(n=[new qe(n)]),qx(n)?n.then(function(o){return a.start(o)},a.handlers.error):a.start(n),a}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var a=this.latest[0],o=n[a];o&&o.call(n,this.latest[1]),this.sub===null&&a==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,a){var o=this.nextResultListeners;o.size&&(this.nextResultListeners=new Set,o.forEach(function(l){return l(n,a)}))},t.prototype.beforeNext=function(n){var a=!1;this.nextResultListeners.add(function(o,l){a||(a=!0,n(o,l))})},t})(qe);z_($o);function Yo(e){return"incremental"in e}function OI(e){return"hasNext"in e&&"data"in e}function AI(e){return Yo(e)||OI(e)}function NI(e){return lt(e)&&"payload"in e}function F_(e,t){var n=e,a=new Xa;return Yo(t)&&Kn(t.incremental)&&t.incremental.forEach(function(o){for(var l=o.data,c=o.path,f=c.length-1;f>=0;--f){var h=c[f],d=!isNaN(+h),g=d?[]:{};g[h]=l,l=g}n=a.merge(n,l)}),n}function ef(e){var t=rg(e);return Kn(t)}function rg(e){var t=Kn(e.errors)?e.errors.slice(0):[];return Yo(e)&&Kn(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Ii(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(a){a&&Object.keys(a).forEach(function(o){var l=a[o];l!==void 0&&(n[o]=l)})}),n}function tf(e,t){return Ii(e,t,t.variables&&{variables:Ii(L(L({},e&&e.variables),t.variables))})}var Xp,DI=Symbol.for("apollo.deprecations"),Hx=Symbol.for("apollo.deprecations.slot"),ag=pf,ig=(Xp=ag[Hx])!==null&&Xp!==void 0?Xp:ag[Hx]=new ms;function kI(e){return ag[DI]||(ig.getValue()||[]).includes(e)}function It(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ig.withValue.apply(ig,Lt([Array.isArray(e)?e:[e]],t,!1))}function ht(e,t,n,a){a===void 0&&(a="Please remove this option."),Ha(t,function(){t in e&&globalThis.__DEV__!==!1&&ue.warn(103,n,t,a)})}function Ha(e,t){kI(e)||t()}function Jp(e){return new qe(function(t){t.error(e)})}var $_=function(e,t,n){var a=new Error(n);throw a.name="ServerError",a.response=e,a.statusCode=e.status,a.result=t,a};function MI(e){for(var t=["query","operationName","variables","extensions","context"],n=0,a=Object.keys(e);n<a.length;n++){var o=a[n];if(t.indexOf(o)<0)throw an(58,o)}return e}function jI(e,t){var n=L({},e),a=function(l){typeof l=="function"?n=L(L({},n),l(n)):n=L(L({},n),l)},o=function(){return L({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:a}),Object.defineProperty(t,"getContext",{enumerable:!1,value:o}),t}function II(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?_l(t.query)||void 0:""),t}function LI(e,t){var n=L({},e),a=new Set(Object.keys(e));return sr(t,{Variable:function(o,l,c){c&&c.kind!=="VariableDefinition"&&a.delete(o.name.value)}}),a.forEach(function(o){delete n[o]}),n}function Gx(e,t){return t?t(e):qe.of()}function hl(e){return typeof e=="function"?new kn(e):e}function Mc(e){return e.request.length<=1}var kn=(function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return qe.of()})},e.from=function(t){return t.length===0?e.empty():t.map(hl).reduce(function(n,a){return n.concat(a)})},e.split=function(t,n,a){var o=hl(n),l=hl(a||new e(Gx)),c;return Mc(o)&&Mc(l)?c=new e(function(f){return t(f)?o.request(f)||qe.of():l.request(f)||qe.of()}):c=new e(function(f,h){return t(f)?o.request(f,h)||qe.of():l.request(f,h)||qe.of()}),Object.assign(c,{left:o,right:l})},e.execute=function(t,n){return t.request(jI(n.context,II(MI(n))))||qe.of()},e.concat=function(t,n){var a=hl(t);if(Mc(a))return globalThis.__DEV__!==!1&&ue.warn(47,a),a;var o=hl(n),l;return Mc(o)?l=new e(function(c){return a.request(c,function(f){return o.request(f)||qe.of()})||qe.of()}):l=new e(function(c,f){return a.request(c,function(h){return o.request(h,f)||qe.of()})||qe.of()}),Object.assign(l,{left:a,right:o})},e.prototype.split=function(t,n,a){return this.concat(e.split(t,n,a||new e(Gx)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw an(48)},e.prototype.onError=function(t,n){if(globalThis.__DEV__!==!1&&Ha("onError",function(){globalThis.__DEV__!==!1&&ue.warn(49)}),n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ue.warn(50),this.onError=t,this},e})(),V_=kn.from,B_=kn.split,og=kn.execute;function PI(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function UI(e){var t=null,n=null,a=!1,o=[],l=[];
116function c(v){if(!n){if(l.length){var S=l.shift();if(Array.isArray(S)&&S[0])return S[0]({value:v,done:!1})}o.push(v)}}function f(v){n=v;var S=l.slice();S.forEach(function(b){b[1](v)}),!t||t()}function h(){a=!0;var v=l.slice();v.forEach(function(S){S[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",c),e.removeListener("error",f),e.removeListener("end",h),e.removeListener("finish",h),e.removeListener("close",h)},e.on("data",c),e.on("error",f),e.on("end",h),e.on("finish",h),e.on("close",h);function d(){return new Promise(function(v,S){if(n)return S(n);if(o.length)return v({value:o.shift(),done:!1});if(a)return v({value:void 0,done:!0});l.push([v,S])})}var g={next:function(){return d()}};return Bf&&(g[Symbol.asyncIterator]=function(){return this}),g}function zI(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(a,o){e.then(function(l){a({value:l,done:!1})}).catch(o)}))}};return Bf&&(n[Symbol.asyncIterator]=function(){return this}),n}function Qx(e){var t={next:function(){return e.read()}};return Bf&&(t[Symbol.asyncIterator]=function(){return this}),t}function FI(e){return!!e.body}function $I(e){return!!e.getReader}function VI(e){return!!(Bf&&e[Symbol.asyncIterator])}function BI(e){return!!e.stream}function qI(e){return!!e.arrayBuffer}function HI(e){return!!e.pipe}function GI(e){var t=e;if(FI(e)&&(t=e.body),VI(t))return PI(t);if($I(t))return Qx(t.getReader());if(BI(t))return Qx(t.stream().getReader());if(qI(t))return zI(t.arrayBuffer());if(HI(t))return UI(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Kf=Symbol();function q_(e){return e.extensions?Array.isArray(e.extensions[Kf]):!1}function H_(e){return e.hasOwnProperty("graphQLErrors")}var QI=function(e){var t=Lt(Lt(Lt([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return lt(n)&&n.message||"Error message not found."}).join(`
117`)},Er=(function(e){Wn(t,e);function t(n){var a=n.graphQLErrors,o=n.protocolErrors,l=n.clientErrors,c=n.networkError,f=n.errorMessage,h=n.extraInfo,d=e.call(this,f)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=o||[],d.clientErrors=l||[],d.networkError=c||null,d.message=f||QI(d),d.extraInfo=h,d.cause=Lt(Lt(Lt([c],a||[],!0),o||[],!0),l||[],!0).find(function(g){return!!g})||null,d.__proto__=t.prototype,d}return t})(Error),Yx=Object.prototype.hasOwnProperty;function YI(e,t){return Va(this,void 0,void 0,function(){var n,a,o,l,c,f,h,d,g,v,S,b,w,_,T,C,O,A,N,M,P,U,G,W;return Ba(this,function(te){switch(te.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),a=(W=e.headers)===null||W===void 0?void 0:W.get("content-type"),o="boundary=",l=a!=null&&a.includes(o)?a==null?void 0:a.substring((a==null?void 0:a.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c=`\r
118--`.concat(l),f="",h=GI(e),d=!0,te.label=1;case 1:return d?[4,h.next()]:[3,3];case 2:for(g=te.sent(),v=g.value,S=g.done,b=typeof v=="string"?v:n.decode(v),w=f.length-c.length+1,d=!S,f+=b,_=f.indexOf(c,w);_>-1;){if(T=void 0,U=[f.slice(0,_),f.slice(_+c.length)],T=U[0],f=U[1],C=T.indexOf(`\r
119\r
120`),O=KI(T.slice(0,C)),A=O["content-type"],A&&A.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(N=T.slice(C),N){if(M=G_(e,N),Object.keys(M).length>1||"data"in M||"incremental"in M||"errors"in M||"payload"in M)if(NI(M)){if(P={},"payload"in M){if(Object.keys(M).length===1&&M.payload===null)return[2];P=L({},M.payload)}"errors"in M&&(P=L(L({},P),{extensions:L(L({},"extensions"in P?P.extensions:null),(G={},G[Kf]=M.errors,G))})),t(P)}else t(M);else if(Object.keys(M).length===1&&"hasNext"in M&&!M.hasNext)return[2]}_=f.indexOf(c)}return[3,1];case 3:return[2]}})})}function KI(e){var t={};return e.split(`
121`).forEach(function(n){var a=n.indexOf(":");if(a>-1){var o=n.slice(0,a).trim().toLowerCase(),l=n.slice(a+1).trim();t[o]=l}}),t}function G_(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};$_(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var a=o;throw a.name="ServerParseError",a.response=e,a.statusCode=e.status,a.bodyText=t,a}}function WI(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function Q_(e){return function(t){return t.text().then(function(n){return G_(t,n)}).then(function(n){return!Array.isArray(n)&&!Yx.call(n,"data")&&!Yx.call(n,"errors")&&$_(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(a){return a.operationName}):e.operationName,"'.")),n})}}var Bl=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var a=an(54,t,o.message);throw a.parseError=o,a}return n},ZI={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},XI={accept:"*/*","content-type":"application/json"},JI={method:"POST"},Y_={http:ZI,headers:XI,options:JI},K_=function(e,t){return t(e)};function W_(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o={},l={};
121n.forEach(function(v){o=L(L(L({},o),v.options),{headers:L(L({},o.headers),v.headers)}),v.credentials&&(o.credentials=v.credentials),l=L(L({},l),v.http)}),o.headers&&(o.headers=eL(o.headers,l.preserveHeaderCase));var c=e.operationName,f=e.extensions,h=e.variables,d=e.query,g={operationName:c,variables:h};return l.includeExtensions&&(g.extensions=f),l.includeQuery&&(g.query=t(d,Ga)),{options:o,body:g}}function eL(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(l){n[l.toLowerCase()]=e[l]}),n}var a={};Object.keys(Object(e)).forEach(function(l){a[l.toLowerCase()]={originalName:l,value:e[l]}});var o={};return Object.keys(a).forEach(function(l){o[a[l].originalName]=a[l].value}),o}var tL=function(e){if(!e&&typeof fetch>"u")throw an(51)},nL=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},Z_=function(e,t){var n=e.getContext(),a=n.uri;return a||(typeof t=="function"?t(e):t||"/graphql")};function X_(e,t){var n=[],a=function(v,S){n.push("".concat(v,"=").concat(encodeURIComponent(S)))};if("query"in t&&a("query",t.query),t.operationName&&a("operationName",t.operationName),t.variables){var o=void 0;try{o=Bl(t.variables,"Variables map")}catch(v){return{parseError:v}}a("variables",o)}if(t.extensions){var l=void 0;try{l=Bl(t.extensions,"Extensions map")}catch(v){return{parseError:v}}a("extensions",l)}var c="",f=e,h=e.indexOf("#");h!==-1&&(c=e.substr(h),f=e.substr(0,h));var d=f.indexOf("?")===-1?"?":"&",g=f+d+n.join("&")+c;return{newURI:g}}var Kx=ir(function(){return fetch}),rL=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,a=e.fetch,o=e.print,l=o===void 0?K_:o,c=e.includeExtensions,f=e.preserveHeaderCase,h=e.useGETForQueries,d=e.includeUnusedVariables,g=d===void 0?!1:d,v=bn(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&tL(a||Kx);var S={http:{includeExtensions:c,preserveHeaderCase:f},options:v.fetchOptions,credentials:v.credentials,headers:v.headers};return new kn(function(b){var w=Z_(b,n),_=b.getContext(),T={};if(_.clientAwareness){var C=_.clientAwareness,O=C.name,A=C.version;O&&(T["apollographql-client-name"]=O),A&&(T["apollographql-client-version"]=A)}var N=L(L({},T),_.headers),M={http:_.http,options:_.fetchOptions,credentials:_.credentials,headers:N};if(Fl(["client"],b.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ue.warn(52);var P=j_(b.query);if(!P)return Jp(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));b.query=P}var U=W_(b,l,Y_,S,M),G=U.options,W=U.body;W.variables&&!g&&(W.variables=LI(W.variables,b.query));var te;!G.signal&&typeof AbortController<"u"&&(te=new AbortController,G.signal=te.signal);var se=function($){return $.kind==="OperationDefinition"&&$.operation==="mutation"},me=function($){return $.kind==="OperationDefinition"&&$.operation==="subscription"},re=me(Fi(b.query)),ce=Fl(["defer"],b.query);if(h&&!b.query.definitions.some(se)&&(G.method="GET"),ce||re){G.headers=G.headers||{};var oe="multipart/mixed;";re&&ce&&globalThis.__DEV__!==!1&&ue.warn(53),re?oe+="boundary=graphql;subscriptionSpec=1.0,application/json":ce&&(oe+="deferSpec=20220824,application/json"),G.headers.accept=oe}if(G.method==="GET"){var I=X_(w,W),V=I.newURI,Y=I.parseError;if(Y)return Jp(Y);w=V}else try{G.body=Bl(W,"Payload")}catch($){return Jp($)}return new qe(function($){var le=a||ir(function(){return fetch})||Kx,D=$.next.bind($);return le(w,G).then(function(F){var Z;b.setContext({response:F});
121var ae=(Z=F.headers)===null||Z===void 0?void 0:Z.get("content-type");return ae!==null&&/^multipart\/mixed/i.test(ae)?YI(F,D):Q_(b)(F).then(D)}).then(function(){te=void 0,$.complete()}).catch(function(F){te=void 0,WI(F,$)}),function(){te&&te.abort()}})})},aL=(function(e){Wn(t,e);function t(n){n===void 0&&(n={});var a=e.call(this,rL(n).request)||this;return a.options=n,a}return t})(kn);const{toString:Wx,hasOwnProperty:iL}=Object.prototype,Zx=Function.prototype.toString,sg=new Map;function Ke(e,t){try{return lg(e,t)}finally{sg.clear()}}function lg(e,t){if(e===t)return!0;const n=Wx.call(e),a=Wx.call(t);if(n!==a)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Jx(e,t))return!0;const o=Xx(e),l=Xx(t),c=o.length;if(c!==l.length)return!1;for(let f=0;f<c;++f)if(!iL.call(t,o[f]))return!1;for(let f=0;f<c;++f){const h=o[f];if(!lg(e[h],t[h]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Jx(e,t))return!0;const o=e.entries(),l=n==="[object Map]";for(;;){const c=o.next();if(c.done)break;const[f,h]=c.value;if(!t.has(f)||l&&!lg(h,t.get(f)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let o=e.byteLength;if(o===t.byteLength)for(;o--&&e[o]===t[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=Zx.call(e);return o!==Zx.call(t)?!1:!lL(o,sL)}}return!1}function Xx(e){return Object.keys(e).filter(oL,e)}function oL(e){return this[e]!==void 0}const sL="{ [native code] }";function lL(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Jx(e,t){let n=sg.get(e);if(n){if(n.has(t))return!0}else sg.set(e,n=new Set);return n.add(t),!1}function J_(e,t,n,a){var o=t.data,l=bn(t,["data"]),c=n.data,f=bn(n,["data"]);return Ke(l,f)&&nf(Fi(e).selectionSet,o,c,{fragmentMap:ds(ps(e)),variables:a})}function nf(e,t,n,a){if(t===n)return!0;var o=new Set;return e.selections.every(function(l){if(o.has(l)||(o.add(l),!iu(l,a.variables))||eE(l))return!0;if(Wa(l)){var c=aa(l),f=t&&t[c],h=n&&n[c],d=l.selectionSet;if(!d)return Ke(f,h);var g=Array.isArray(f),v=Array.isArray(h);if(g!==v)return!1;if(g&&v){var S=f.length;if(h.length!==S)return!1;for(var b=0;b<S;++b)if(!nf(d,f[b],h[b],a))return!1;return!0}return nf(d,f,h,a)}else{var w=qf(l,a.fragmentMap);if(w)return eE(w)?!0:nf(w.selectionSet,t,n,a)}})}function eE(e){return!!e.directives&&e.directives.some(uL)}function uL(e){return e.name.value==="nonreactive"}var eT=zi?WeakMap:Map,tT=ry?WeakSet:Set,gy=new ms,tE=!1;function nT(){tE||(tE=!0,globalThis.__DEV__!==!1&&ue.warn(64))}function rT(e,t,n){return gy.withValue(!0,function(){var a=Tl(e,t,n,!1);return Object.isFrozen(e)&&os(a),a})}function cL(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function Tl(e,t,n,a,o){var l,c=n.knownChanged,f=cL(e,n.mutableTargets);if(Array.isArray(e)){for(var h=0,d=Array.from(e.entries());h<d.length;h++){var g=d[h],v=g[0],S=g[1];if(S===null){f[v]=null;continue}var b=Tl(S,t,n,a,globalThis.__DEV__!==!1?"".concat(o||"","[").concat(v,"]"):void 0);c.has(b)&&c.add(f),f[v]=b}return c.has(f)?f:e}for(var w=0,_=t.selections;w<_.length;w++){var T=_[w],C=void 0;if(a&&c.add(f),T.kind===he.FIELD){var O=aa(T),A=T.selectionSet;if(C=f[O]||e[O],C===void 0)continue;if(A&&C!==null){var b=Tl(e[O],A,n,a,globalThis.__DEV__!==!1?"".concat(o||"",".").concat(O):void 0);c.has(b)&&(C=b)}globalThis.__DEV__===!1&&(f[O]=C),globalThis.__DEV__!==!1&&(a&&O!=="__typename"&&!(!((l=Object.getOwnPropertyDescriptor(f,O))===null||l===void 0)&&l.value)?Object.defineProperty(f,O,fL(O,C,o||"",n.operationName,n.operationType)):(delete f[O],f[O]=C))}if(T.kind===he.INLINE_FRAGMENT&&(!T.typeCondition||n.cache.fragmentMatches(T,e.__typename))&&(C=Tl(e,T.selectionSet,n,a,o)),T.kind===he.FRAGMENT_SPREAD){var N=T.name.value,M=n.fragmentMap[N]||(n.fragmentMap[N]=n.cache.lookupFragment(N));ue(M,59,N);var P=dj(T);P!=="mask"&&(C=Tl(e,M.selectionSet,n,P==="migrate",o))}c.has(C)&&c.add(f)}return"__typename"in e&&!("__typename"in f)&&(f.__typename=e.__typename),Object.keys(f).length!==Object.keys(e).length&&c.add(f),c.has(f)?f:e}function fL(e,t,n,a,o){var l=function(){return gy.getValue()||(globalThis.__DEV__!==!1&&ue.warn(60,a?"".concat(o," '").concat(a,"'"):"anonymous ".concat(o),"".concat(n,".").concat(e).replace(/^\./,"")),l=function(){return t}),t};return{get:function(){return l()},set:function(c){l=function(){return c}},enumerable:!0,configurable:!0}}function aT(e,t,n,a){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&nT(),e;var o=t.definitions.filter(function(c){return c.kind===he.FRAGMENT_DEFINITION});typeof a>"u"&&(ue(o.length===1,61,o.length),a=o[0].name.value);var l=o.find(function(c){return c.name.value===a});return ue(!!l,62,a),e==null||Ke(e,{})?e:rT(e,l.selectionSet,{operationType:"fragment",operationName:l.name.value,fragmentMap:ds(ps(t)),cache:n,mutableTargets:new eT,knownChanged:new tT})}function dL(e,t,n){var a;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&nT(),e;var o=ji(t);return ue(o,63),e==null?e:rT(e,o.selectionSet,{operationType:o.operation,operationName:(a=o.name)===null||a===void 0?void 0:a.value,fragmentMap:ds(ps(t)),cache:n,mutableTargets:new eT,knownChanged:new tT})}var iT=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Vl(Sj,{max:Cr["cache.fragmentQueryDocuments"]||1e3,cache:mf})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,a=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,o;return this.performTransaction(function(){return o=t.update(n)},a),o},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){var a=this;return n===void 0&&(n=!!t.optimistic),globalThis.__DEV__!==!1&&ht(t,"canonizeResults","cache.readQuery"),It("canonizeResults",function(){return a.read(L(L({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))})},e.prototype.watchFragment=function(t){var n=this,a=t.fragment,o=t.fragmentName,l=t.from,c=t.optimistic,f=c===void 0?!0:c,h=bn(t,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(a,o),g=typeof l>"u"||typeof l=="string"?l:this.identify(l),v=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var S=o||b_(a).name.value;g||globalThis.__DEV__!==!1&&ue.warn(1,S)}var b=L(L({},h),{returnPartialData:!0,id:g,query:d,optimistic:f}),w;return new qe(function(_){return n.watch(L(L({}
121,b),{immediate:!0,callback:function(T){var C=v?aT(T.result,a,n,o):T.result;if(!(w&&J_(d,{data:w.result},{data:C},t.variables))){var O={data:C,complete:!!T.complete};T.missing&&(O.missing=Yf(T.missing.map(function(A){return A.missing}))),w=L(L({},T),{result:C}),_.next(O)}}}))})},e.prototype.readFragment=function(t,n){var a=this;return n===void 0&&(n=!!t.optimistic),globalThis.__DEV__!==!1&&ht(t,"canonizeResults","cache.readFragment"),It("canonizeResults",function(){return a.read(L(L({},t),{query:a.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))})},e.prototype.writeQuery=function(t){var n=t.id,a=t.data,o=bn(t,["id","data"]);return this.write(Object.assign(o,{dataId:n||"ROOT_QUERY",result:a}))},e.prototype.writeFragment=function(t){var n=t.id,a=t.data,o=t.fragment,l=t.fragmentName,c=bn(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(c,{query:this.getFragmentDoc(o,l),dataId:n,result:a}))},e.prototype.updateQuery=function(t,n){return globalThis.__DEV__!==!1&&ht(t,"canonizeResults","cache.updateQuery"),this.batch({update:function(a){var o=It("canonizeResults",function(){return a.readQuery(t)}),l=n(o);return l==null?o:(a.writeQuery(L(L({},t),{data:l})),l)}})},e.prototype.updateFragment=function(t,n){return globalThis.__DEV__!==!1&&ht(t,"canonizeResults","cache.updateFragment"),this.batch({update:function(a){var o=It("canonizeResults",function(){return a.readFragment(t)}),l=n(o);return l==null?o:(a.writeFragment(L(L({},t),{data:l})),l)}})},e})();globalThis.__DEV__!==!1&&(iT.prototype.getMemoryInternals=kj);var oT=(function(e){Wn(t,e);function t(n,a,o,l){var c,f=e.call(this,n)||this;if(f.message=n,f.path=a,f.query=o,f.variables=l,Array.isArray(f.path)){f.missing=f.message;for(var h=f.path.length-1;h>=0;--h)f.missing=(c={},c[f.path[h]]=f.missing,c)}else f.missing=f.path;return f.__proto__=t.prototype,f}return t})(Error),jt=Object.prototype.hasOwnProperty;function pl(e){return e==null}function sT(e,t){var n=e.__typename,a=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=pl(a)?pl(o)?void 0:{_id:o}:{id:a}),pl(a)&&!pl(o)&&(a=o),!pl(a)))return"".concat(n,":").concat(typeof a=="number"||typeof a=="string"?a:JSON.stringify(a))}var lT={dataIdFromObject:sT,addTypename:!0,resultCaching:!0,canonizeResults:!1};function hL(e){return Ii(lT,e)}function uT(e){var t=e.canonizeResults;return t===void 0?lT.canonizeResults:t}function pL(e,t){return Ge(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var cT=/^[_a-z][_0-9a-z]*/i;function Ja(e){var t=e.match(cT);return t?t[0]:e}function ug(e,t,n){return lt(t)?mt(t)?t.every(function(a){return ug(e,a,n)}):e.selections.every(function(a){if(Wa(a)&&iu(a,n)){var o=aa(a);return jt.call(t,o)&&(!a.selectionSet||ug(a.selectionSet,t[o],n))}return!0}):!1}function qo(e){return lt(e)&&!Ge(e)&&!mt(e)}function mL(){return new Xa}function fT(e,t){var n=ds(ps(e));return{fragmentMap:n,lookupFragment:function(a){var o=n[a];return!o&&t&&(o=t.lookup(a)),o||null}}}var rf=Object.create(null),em=function(){return rf},nE=Object.create(null),ql=(function(){function e(t,n){var a=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,l){return os(Ge(o)?a.get(o.__ref,l):o&&o[l])},this.canRead=function(o){return Ge(o)?a.has(o.__ref):typeof o=="object"},this.toReference=function(o,l){if(typeof o=="string")return Qo(o);if(Ge(o))return o;var c=a.policies.identify(o)[0];if(c){var f=Qo(c);return l&&a.merge(c,o),f}}}return e.prototype.toObject=function(){return L({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),jt.call(this.data,t)){var a=this.data[t];if(a&&jt.call(a,n))return a[n]}if(n==="__typename"&&jt.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Fa)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),jt.call(this.data,t))return this.data[t];if(this instanceof Fa)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var a=this,o;Ge(t)&&(t=t.__ref),Ge(n)&&(n=n.__ref);var l=typeof t=="string"?this.lookup(o=t):t,c=typeof n=="string"?this.lookup(o=n):n;
121if(c){ue(typeof o=="string",2);var f=new Xa(yL).merge(l,c);if(this.data[o]=f,f!==l&&(delete this.refs[o],this.group.caching)){var h=Object.create(null);l||(h.__exists=1),Object.keys(c).forEach(function(d){if(!l||l[d]!==f[d]){h[d]=1;var g=Ja(d);g!==d&&!a.policies.hasKeyArgs(f.__typename,g)&&(h[g]=1),f[d]===void 0&&!(a instanceof Fa)&&delete f[d]}}),h.__typename&&!(l&&l.__typename)&&this.policies.rootTypenamesById[o]===f.__typename&&delete h.__typename,Object.keys(h).forEach(function(d){return a.group.dirty(o,d)})}}},e.prototype.modify=function(t,n){var a=this,o=this.lookup(t);if(o){var l=Object.create(null),c=!1,f=!0,h={DELETE:rf,INVALIDATE:nE,isReference:Ge,toReference:this.toReference,canRead:this.canRead,readField:function(d,g){return a.policies.readField(typeof d=="string"?{fieldName:d,from:g||Qo(t)}:d,{store:a})}};if(Object.keys(o).forEach(function(d){var g=Ja(d),v=o[d];if(v!==void 0){var S=typeof n=="function"?n:n[d]||n[g];if(S){var b=S===em?rf:S(os(v),L(L({},h),{fieldName:g,storeFieldName:d,storage:a.getStorage(t,d)}));if(b===nE)a.group.dirty(t,d);else if(b===rf&&(b=void 0),b!==v&&(l[d]=b,c=!0,v=b,globalThis.__DEV__!==!1)){var w=function(M){if(a.lookup(M.__ref)===void 0)return globalThis.__DEV__!==!1&&ue.warn(3,M),!0};if(Ge(b))w(b);else if(Array.isArray(b))for(var _=!1,T=void 0,C=0,O=b;C<O.length;C++){var A=O[C];if(Ge(A)){if(_=!0,w(A))break}else if(typeof A=="object"&&A){var N=a.policies.identify(A)[0];N&&(T=A)}if(_&&T!==void 0){globalThis.__DEV__!==!1&&ue.warn(4,T);break}}}}v!==void 0&&(f=!1)}}),c)return this.merge(t,l),f&&(this instanceof Fa?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,a){var o,l=this.lookup(t);if(l){var c=this.getFieldValue(l,"__typename"),f=n&&a?this.policies.getStoreFieldName({typename:c,fieldName:n,args:a}):n;return this.modify(t,f?(o={},o[f]=em,o):em)}return!1},e.prototype.evict=function(t,n){var a=!1;return t.id&&(jt.call(this.data,t.id)&&(a=this.delete(t.id,t.fieldName,t.args)),this instanceof Fa&&this!==n&&(a=this.parent.evict(t,n)||a),(t.fieldName||a)&&this.group.dirty(t.id,t.fieldName||"__exists")),a},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),a=[];return this.getRootIdSet().forEach(function(o){jt.call(t.policies.rootTypenamesById,o)||a.push(o)}),a.length&&(n.__META={extraRootIds:a.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(l){t&&jt.call(t,l)||n.delete(l)}),t){var a=t.__META,o=bn(t,["__META"]);Object.keys(o).forEach(function(l){n.merge(l,o[l])}),a&&a.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Fa?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),a=this.toObject();n.forEach(function(c){jt.call(a,c)&&(Object.keys(t.findChildRefIds(c)).forEach(n.add,n),delete a[c])});var o=Object.keys(a);if(o.length){for(var l=this;l instanceof Fa;)l=l.parent;o.forEach(function(c){return l.delete(c)})}return o},e.prototype.findChildRefIds=function(t){if(!jt.call(this.refs,t)){var n=this.refs[t]=Object.create(null),a=this.data[t];if(!a)return n;var o=new Set([a]);o.forEach(function(l){Ge(l)&&(n[l.__ref]=!0),lt(l)&&Object.keys(l).forEach(function(c){var f=l[c];lt(f)&&o.add(f)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),dT=(function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?N_():null,this.keyMaker=new ua(zi)}
121,e.prototype.depend=function(t,n){if(this.d){this.d(tm(t,n));var a=Ja(n);a!==n&&this.d(tm(t,a)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(tm(t,n),n==="__exists"?"forget":"setDirty")},e})();function tm(e,t){return t+"#"+e}function rE(e,t){Dl(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(n){Wn(a,n);function a(o){var l=o.policies,c=o.resultCaching,f=c===void 0?!0:c,h=o.seed,d=n.call(this,l,new dT(f))||this;return d.stump=new gL(d),d.storageTrie=new ua(zi),h&&d.replace(h),d}return a.prototype.addLayer=function(o,l){return this.stump.addLayer(o,l)},a.prototype.removeLayer=function(){return this},a.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},a})(e);e.Root=t})(ql||(ql={}));var Fa=(function(e){Wn(t,e);function t(n,a,o,l){var c=e.call(this,a.policies,l)||this;return c.id=n,c.parent=a,c.replay=o,c.group=l,o(c),c}return t.prototype.addLayer=function(n,a){return new t(n,this,a,this.group)},t.prototype.removeLayer=function(n){var a=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(l){var c=a.data[l],f=o.lookup(l);f?c?c!==f&&Object.keys(c).forEach(function(h){Ke(c[h],f[h])||a.group.dirty(l,h)}):(a.group.dirty(l,"__exists"),Object.keys(f).forEach(function(h){a.group.dirty(l,h)})):a.delete(l)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return L(L({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var a=this.parent.findChildRefIds(n);return jt.call(this.data,n)?L(L({},a),e.prototype.findChildRefIds.call(this,n)):a},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t})(ql),gL=(function(e){Wn(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new dT(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,a){return this.parent.merge(n,a)},t})(Fa);function yL(e,t,n){var a=e[n],o=t[n];return Ke(a,o)?a:o}function Dl(e){return!!(e instanceof ql&&e.group.caching)}function vL(e){return lt(e)?mt(e)?e.slice(0):L({__proto__:Object.getPrototypeOf(e)},e):e}var aE=(function(){function e(){this.known=new(ry?WeakSet:Set),this.pool=new ua(zi),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return lt(t)&&this.known.has(t)},e.prototype.pass=function(t){if(lt(t)){var n=vL(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(lt(t)){var a=this.passes.get(t);if(a)return a;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var l=t.map(this.admit,this),c=this.pool.lookupArray(l);return c.array||(this.known.add(c.array=l),globalThis.__DEV__!==!1&&Object.freeze(l)),c.array}case null:case Object.prototype:{if(this.known.has(t))return t;var f=Object.getPrototypeOf(t),h=[f],d=this.sortedKeys(t);h.push(d.json);var g=h.length;d.sorted.forEach(function(b){h.push(n.admit(t[b]))});var c=this.pool.lookupArray(h);if(!c.object){var v=c.object=Object.create(f);this.known.add(v),d.sorted.forEach(function(b,w){v[b]=h[g+w]}),globalThis.__DEV__!==!1&&Object.freeze(v)}return c.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),a=this.pool.lookupArray(n);if(!a.keys){n.sort();var o=JSON.stringify(n);(a.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,a.keys={sorted:n,json:o})}return a.keys},e})();function iE(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var bL=(function(){function e(t){var n=this;this.knownResults=new(zi?WeakMap:Map),this.config=Ii(t,{addTypename:t.addTypename!==!1,canonizeResults:uT(t)}),this.canon=t.canon||new aE,this.executeSelectionSet=Vl(function(a){var o,l=a.context.canonizeResults,c=iE(a);c[3]=!l;var f=(o=n.executeSelectionSet).peek.apply(o,c);return f?l?L(L({},f),{result:n.canon.admit(f.result)}):f:(rE(a.context.store,a.enclosingRef.__ref),n.execSelectionSetImpl(a))},{max:this.config.resultCacheMaxSize||Cr["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:iE,makeCacheKey:function(a,o,l,c){if(Dl(l.store))return l.store.makeCacheKey(a,Ge(o)?o.__ref:o,l.varString,c)}}),this.executeSubSelectedArray=Vl(function(a){return rE(a.context.store,a.enclosingRef.__ref),n.execSubSelectedArrayImpl(a)},{max:this.config.resultCacheMaxSize||Cr["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(a){var o=a.field,l=a.array,c=a.context;if(Dl(c.store))return c.store.makeCacheKey(o,l,c.varString)}})}return e.prototype.resetCanon=function(){this.canon=new aE},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,a=t.query,o=t.rootId,l=o===void 0?"ROOT_QUERY":o,c=t.variables,f=t.returnPartialData,h=f===void 0?!0:f,d=t.canonizeResults,g=d===void 0?this.config.canonizeResults:d,v=this.config.cache.policies;c=L(L({},sy(v_(a))),c);var S=Qo(l),b=this.executeSelectionSet({selectionSet:Fi(a).selectionSet,objectOrReference:S,enclosingRef:S,context:L({store:n,query:a,policies:v,variables:c,varString:Ya(c),canonizeResults:g},fT(a,this.config.fragments))}),w;if(b.missing&&(w=[new oT(SL(b.missing),b.missing,a,c)],!h))throw w[0];return{result:b.result,complete:!w,missing:w}},e.prototype.isFresh=function(t,n,a,o){if(Dl(o.store)&&this.knownResults.get(t)===a){var l=this.executeSelectionSet.peek(a,n,o,this.canon.isKnown(t));if(l&&t===l.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,a=t.selectionSet,o=t.objectOrReference,l=t.enclosingRef,c=t.context;if(Ge(o)&&!c.policies.rootTypenamesById[o.__ref]&&!c.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var f=c.variables,h=c.policies,d=c.store,g=d.getFieldValue(o,"__typename"),v=[],S,b=new Xa;this.config.addTypename&&typeof g=="string"&&!h.rootIdsByTypename[g]&&v.push({__typename:g});function w(A,N){var M;return A.missing&&(S=b.merge(S,(M={},M[N]=A.missing,M))),A.result}var _=new Set(a.selections);_.forEach(function(A){var N,M;if(iu(A,f))if(Wa(A)){var P=h.readField({fieldName:A.name.value,field:A,variables:c.variables,from:o},c),U=aa(A);P===void 0?fy.added(A)||(S=b.merge(S,(N={},N[U]="Can't find field '".concat(A.name.value,"' on ").concat(Ge(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),N))):mt(P)?P.length>0&&(P=w(n.executeSubSelectedArray({field:A,array:P,enclosingRef:l,context:c}),U)):A.selectionSet?P!=null&&(P=w(n.executeSelectionSet({selectionSet:A.selectionSet,objectOrReference:P,enclosingRef:Ge(P)?P:l,context:c}),U)):c.canonizeResults&&(P=n.canon.pass(P)),P!==void 0&&v.push((M={},M[U]=P,M))}else{var G=qf(A,c.lookupFragment);if(!G&&A.kind===he.FRAGMENT_SPREAD)throw an(10,A.name.value);G&&h.fragmentMatches(G,g)&&G.selectionSet.selections.forEach(_.add,_)}});var T=Yf(v),C={result:T,missing:S},O=c.canonizeResults?this.canon.admit(C):os(C);return O.result&&this.knownResults.set(O.result,a),O},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,a=t.field,o=t.array,l=t.enclosingRef,c=t.context,f,h=new Xa;function d(g,v){var S;return g.missing&&(f=h.merge(f,(S={},S[v]=g.missing,S))),g.result}return a.selectionSet&&(o=o.filter(c.store.canRead)),o=o.map(function(g,v){return g===null?null:mt(g)?d(n.executeSubSelectedArray({field:a,array:g,enclosingRef:l,context:c}),v):a.selectionSet?d(n.executeSelectionSet({selectionSet:a.selectionSet,objectOrReference:g,enclosingRef:Ge(g)?g:l,context:c}),v):(globalThis.__DEV__!==!1&&xL(c.store,a,g),g)}),{result:c.canonizeResults?this.canon.admit(o):o,missing:f}},e})();function SL(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function xL(e,t,n){if(!t.selectionSet){var a=new Set([n]);a.forEach(function(o){lt(o)&&(ue(!Ge(o),11,pL(e,o),t.name.value),Object.values(o).forEac
121h(a.add,a))})}}var yy=new ms,oE=new WeakMap;function kl(e){var t=oE.get(e);return t||oE.set(e,t={vars:new Set,dep:N_()}),t}function sE(e){kl(e).vars.forEach(function(t){return t.forgetCache(e)})}function EL(e){kl(e).vars.forEach(function(t){return t.attachCache(e)})}function wL(e){var t=new Set,n=new Set,a=function(l){if(arguments.length>0){if(e!==l){e=l,t.forEach(function(h){kl(h).dep.dirty(a),_L(h)});var c=Array.from(n);n.clear(),c.forEach(function(h){return h(e)})}}else{var f=yy.getValue();f&&(o(f),kl(f).dep(a))}return e};a.onNextChange=function(l){return n.add(l),function(){n.delete(l)}};var o=a.attachCache=function(l){return t.add(l),kl(l).vars.add(a),a};return a.forgetCache=function(l){return t.delete(l)},a}function _L(e){e.broadcastWatches&&e.broadcastWatches()}var lE=Object.create(null);function vy(e){var t=JSON.stringify(e);return lE[t]||(lE[t]=Object.create(null))}function uE(e){var t=vy(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,a){var o=function(c,f){return a.readField(f,c)},l=a.keyObject=by(e,function(c){var f=Ko(a.storeObject,c,o);return f===void 0&&n!==a.storeObject&&jt.call(n,c[0])&&(f=Ko(n,c,pT)),ue(f!==void 0,5,c.join("."),n),f});return"".concat(a.typename,":").concat(JSON.stringify(l))})}function cE(e){var t=vy(e);return t.keyArgsFn||(t.keyArgsFn=function(n,a){var o=a.field,l=a.variables,c=a.fieldName,f=by(e,function(d){var g=d[0],v=g.charAt(0);if(v==="@"){if(o&&Kn(o.directives)){var S=g.slice(1),b=o.directives.find(function(C){return C.name.value===S}),w=b&&Hf(b,l);return w&&Ko(w,d.slice(1))}return}if(v==="$"){var _=g.slice(1);if(l&&jt.call(l,_)){var T=d.slice(0);return T[0]=_,Ko(l,T)}return}if(n)return Ko(n,d)}),h=JSON.stringify(f);return(n||h!=="{}")&&(c+=":"+h),c})}function by(e,t){var n=new Xa;return hT(e).reduce(function(a,o){var l,c=t(o);if(c!==void 0){for(var f=o.length-1;f>=0;--f)c=(l={},l[o[f]]=c,l);a=n.merge(a,c)}return a},Object.create(null))}function hT(e){var t=vy(e);if(!t.paths){var n=t.paths=[],a=[];e.forEach(function(o,l){mt(o)?(hT(o).forEach(function(c){return n.push(a.concat(c))}),a.length=0):(a.push(o),mt(e[l+1])||(n.push(a.slice(0)),a.length=0))})}return t.paths}function pT(e,t){return e[t]}function Ko(e,t,n){return n=n||pT,mT(t.reduce(function a(o,l){return mt(o)?o.map(function(c){return a(c,l)}):o&&n(o,l)},e))}function mT(e){return lt(e)?mt(e)?e.map(mT):by(Object.keys(e).sort(),function(t){return Ko(e,t)}):e}function cg(e){return e.args!==void 0?e.args:e.field?Hf(e.field,e.variables):null}var TL=function(){},fE=function(e,t){return t.fieldName},dE=function(e,t,n){var a=n.mergeObjects;return a(e,t)},hE=function(e,t){return t},CL=(function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=L({dataIdFromObject:sT},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var a,o=this,l=n&&(n.typename||((a=n.storeObject)===null||a===void 0?void 0:a.__typename))||t.__typename;if(l===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var c=n&&n.storeObject||t,f=L(L({},n),{typename:l,storeObject:c,readField:n&&n.readField||function(){var v=Sy(arguments,c);return o.readField(v,{store:o.cache.data,variables:v.variables})}}),h,d=l&&this.getTypePolicy(l),g=d&&d.keyFn||this.config.dataIdFromObject;return gy.withValue(!0,function(){for(;g;){var v=g(L(L({},t),c),f);if(mt(v))g=uE(v);else{h=v;break}}}),h=h?String(h):void 0,f.keyObject?[h,f.keyObject]:[h]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(a){var o=t[a],l=o.queryType,c=o.mutationType,f=o.subscriptionType,h=bn(o,["queryType","mutationType","subscriptionType"]);l&&n.setRootTypename("Query",a),c&&n.setRootTypename("Mutation",a),f&&n.setRootTypename("Subscription",a),jt.call(n.toBeAdded,a)?n.toBeAdded[a].push(h):n.toBeAdded[a]=[h]})},e.prototype.updateTypePolicy=function(t,n,a){var o=this.getTypePolicy(t),l=n.keyFields,c=n.fields;function f(h,d){h.merge=typeof d=="function"?d:d===!0?dE:d===!1?hE:h.merge}f(o,n.merge),o.keyFn=l===!1?TL:mt(l)?uE(l):typeof l=="function"?l:o.keyFn,c&&Object.keys(c).forEac
121h(function(h){var d=a[h];(!d||(d==null?void 0:d.typename)!==t)&&(d=a[h]={typename:t});var g=c[h];if(typeof g=="function")d.read=g;else{var v=g.keyArgs,S=g.read,b=g.merge;d.keyFn=v===!1?fE:mt(v)?cE(v):typeof v=="function"?v:d.keyFn,typeof S=="function"&&(d.read=S),f(d,b)}d.read&&d.merge&&(d.keyFn=d.keyFn||fE)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var a="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[a];n!==o&&(ue(!o||o===t,6,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=a,this.rootTypenamesById[a]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(a){n.getSupertypeSet(a,!0),t[a].forEach(function(o){n.getSupertypeSet(o,!0).add(a);var l=o.match(cT);(!l||l[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!jt.call(this.typePolicies,t)){var a=this.typePolicies[t]=Object.create(null);a.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(c,f){if(c.test(t)){var h=n.supertypeMap.get(f);h&&h.forEach(function(d){return o.add(d)})}})),o&&o.size&&o.forEach(function(c){var f=n.getTypePolicy(c),h=f.fields,d=bn(f,["fields"]);Object.assign(a,d),Object.assign(a.fields,h)})}var l=this.toBeAdded[t];return l&&l.length&&l.splice(0).forEach(function(c){n.updateTypePolicy(t,c,n.typePolicies[t].fields)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n){if(t)return this.getTypePolicy(t).fields[n]},e.prototype.getSupertypeSet=function(t,n){var a=this.supertypeMap.get(t);return!a&&n&&this.supertypeMap.set(t,a=new Set),a},e.prototype.fragmentMatches=function(t,n,a,o){var l=this;if(!t.typeCondition)return!0;if(!n)return!1;var c=t.typeCondition.name.value;if(n===c)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(c))for(var f=this.getSupertypeSet(n,!0),h=[f],d=function(w){var _=l.getSupertypeSet(w,!1);_&&_.size&&h.indexOf(_)<0&&h.push(_)},g=!!(a&&this.fuzzySubtypes.size),v=!1,S=0;S<h.length;++S){var b=h[S];if(b.has(c))return f.has(c)||(v&&globalThis.__DEV__!==!1&&ue.warn(7,n,c),f.add(c)),!0;b.forEach(d),g&&S===h.length-1&&ug(t.selectionSet,a,o)&&(g=!1,v=!0,this.fuzzySubtypes.forEach(function(w,_){var T=n.match(w);T&&T[0]===n&&d(_)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var a=this.getFieldPolicy(t,n);return!!(a&&a.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,a=t.fieldName,o=this.getFieldPolicy(n,a),l,c=o&&o.keyFn;if(c&&n)for(var f={typename:n,fieldName:a,field:t.field||null,variables:t.variables},h=cg(t);c;){var d=c(h,f);if(mt(d))c=cE(d);else{l=d||a;break}}return l===void 0&&(l=t.field?Kj(t.field,t.variables):y_(a,cg(t))),l===!1?a:a===Ja(l)?l:a+":"+l},e.prototype.readField=function(t,n){var a=t.from;if(a){var o=t.field||t.fieldName;if(o){if(t.typename===void 0){var l=n.store.getFieldValue(a,"__typename");l&&(t.typename=l)}var c=this.getStoreFieldName(t),f=Ja(c),h=n.store.getFieldValue(a,c),d=this.getFieldPolicy(t.typename,f),g=d&&d.read;if(g){var v=pE(this,a,t,n,n.store.getStorage(Ge(a)?a.__ref:a,c));return yy.withValue(this.cache,g,[h,v])}return h}}},e.prototype.getReadFunction=function(t,n){var a=this.getFieldPolicy(t,n);return a&&a.read},e.prototype.getMergeFunction=function(t,n,a){var o=this.getFieldPolicy(t,n),l=o&&o.merge;return!l&&a&&(o=this.getTypePolicy(a),l=o&&o.merge),l},e.prototype.runMergeFunction=function(t,n,a,o,l){var c=a.field,f=a.typename,h=a.merge;return h===dE?gT(o.store)(t,n):h===hE?n:(o.overwrite&&(t=void 0),h(t,n,pE(this,void 0,{typename:f,fieldName:c.name.value,field:c,variables:o.variables},o,l||Object.create(null))))},e})();function pE(e,t,n,a,o){var l=e.getStoreFieldName(n),c=Ja(l),f=n.variables||a.variables,h=a.store,d=h.toReference,g=h.canRead;return{args:cg(n),field:n.field||null,fieldName:c,storeFieldName:l,variables:f,isReference:Ge,toReference:d,storage:o,cache:e.cache,canRead:g,readField:function(){return e.readField(Sy(arguments,t,f),a)},mergeObjects:gT(a.store)}}function Sy(e,t,n){var a=e[0],o=e[1],l=e.length,c;
121return typeof a=="string"?c={fieldName:a,from:l>1?o:t}:(c=L({},a),jt.call(c,"from")||(c.from=t)),globalThis.__DEV__!==!1&&c.from===void 0&&globalThis.__DEV__!==!1&&ue.warn(8,e_(Array.from(e))),c.variables===void 0&&(c.variables=n),c}function gT(e){return function(n,a){if(mt(n)||mt(a))throw an(9);if(lt(n)&&lt(a)){var o=e.getFieldValue(n,"__typename"),l=e.getFieldValue(a,"__typename"),c=o&&l&&o!==l;if(c)return a;if(Ge(n)&&qo(a))return e.merge(n.__ref,a),n;if(qo(n)&&Ge(a))return e.merge(n,a.__ref),a;if(qo(n)&&qo(a))return L(L({},n),a)}return a}}function nm(e,t,n){var a="".concat(t).concat(n),o=e.flavors.get(a);return o||e.flavors.set(a,o=e.clientOnly===t&&e.deferred===n?e:L(L({},e),{clientOnly:t,deferred:n})),o}var RL=(function(){function e(t,n,a){this.cache=t,this.reader=n,this.fragments=a}return e.prototype.writeToStore=function(t,n){var a=this,o=n.query,l=n.result,c=n.dataId,f=n.variables,h=n.overwrite,d=ji(o),g=mL();f=L(L({},sy(d)),f);var v=L(L({store:t,written:Object.create(null),merge:function(b,w){return g.merge(b,w)},variables:f,varString:Ya(f)},fT(o,this.fragments)),{overwrite:!!h,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),S=this.processSelectionSet({result:l||Object.create(null),dataId:c,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:v});if(!Ge(S))throw an(12,l);return v.incomingById.forEach(function(b,w){var _=b.storeObject,T=b.mergeTree,C=b.fieldNodeSet,O=Qo(w);if(T&&T.map.size){var A=a.applyMerges(T,O,_,v);if(Ge(A))return;_=A}if(globalThis.__DEV__!==!1&&!v.overwrite){var N=Object.create(null);C.forEach(function(U){U.selectionSet&&(N[U.name.value]=!0)});var M=function(U){return N[Ja(U)]===!0},P=function(U){var G=T&&T.map.get(U);return!!(G&&G.info&&G.info.merge)};Object.keys(_).forEach(function(U){M(U)&&!P(U)&&OL(O,_,U,v.store)})}t.merge(w,_)}),t.retain(S.__ref),S},e.prototype.processSelectionSet=function(t){var n=this,a=t.dataId,o=t.result,l=t.selectionSet,c=t.context,f=t.mergeTree,h=this.cache.policies,d=Object.create(null),g=a&&h.rootTypenamesById[a]||Jm(o,l,c.fragmentMap)||a&&c.store.get(a,"__typename");typeof g=="string"&&(d.__typename=g);var v=function(){var A=Sy(arguments,d,c.variables);if(Ge(A.from)){var N=c.incomingById.get(A.from.__ref);if(N){var M=h.readField(L(L({},A),{from:N.storeObject}),c);if(M!==void 0)return M}}return h.readField(A,c)},S=new Set;this.flattenFields(l,o,c,g).forEach(function(A,N){var M,P=aa(N),U=o[P];if(S.add(N),U!==void 0){var G=h.getStoreFieldName({typename:g,fieldName:N.name.value,field:N,variables:A.variables}),W=mE(f,G),te=n.processFieldValue(U,N,N.selectionSet?nm(A,!1,!1):A,W),se=void 0;N.selectionSet&&(Ge(te)||qo(te))&&(se=v("__typename",te));var me=h.getMergeFunction(g,N.name.value,se);me?W.info={field:N,typename:g,merge:me}:gE(f,G),d=A.merge(d,(M={},M[G]=te,M))}else globalThis.__DEV__!==!1&&!A.clientOnly&&!A.deferred&&!fy.added(N)&&!h.getReadFunction(g,N.name.value)&&globalThis.__DEV__!==!1&&ue.error(13,aa(N),o)});try{var b=h.identify(o,{typename:g,selectionSet:l,fragmentMap:c.fragmentMap,storeObject:d,readField:v}),w=b[0],_=b[1];a=a||w,_&&(d=c.merge(d,_))}catch(A){if(!a)throw A}if(typeof a=="string"){var T=Qo(a),C=c.written[a]||(c.written[a]=[]);if(C.indexOf(l)>=0||(C.push(l),this.reader&&this.reader.isFresh(o,T,l,c)))return T;var O=c.incomingById.get(a);return O?(O.storeObject=c.merge(O.storeObject,d),O.mergeTree=fg(O.mergeTree,f),S.forEach(function(A){return O.fieldNodeSet.add(A)})):c.incomingById.set(a,{storeObject:d,mergeTree:yf(f)?void 0:f,fieldNodeSet:S}),T}return d},e.prototype.processFieldValue=function(t,n,a,o){var l=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?U_(t):t:mt(t)?t.map(function(c,f){var h=l.processFieldValue(c,n,a,mE(o,f));return gE(o,f),h}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:a,mergeTree:o})},e.prototype.flattenFields=function(t,n,a,o){o===void 0&&(o=Jm(n,t,a.fragmentMap));var l=new Map,c=this.cache.policies,f=new ua(!1);return(function h(d,g){var v=f.lookup(d,g.clientOnly,g.deferred);v.visited||(v.visited=!0,d.selections.forEach(function(S){if(iu(S,a.variables)){var b=g.clientOnly,w=g.deferred;
121if(!(b&&w)&&Kn(S.directives)&&S.directives.forEach(function(C){var O=C.name.value;if(O==="client"&&(b=!0),O==="defer"){var A=Hf(C,a.variables);(!A||A.if!==!1)&&(w=!0)}}),Wa(S)){var _=l.get(S);_&&(b=b&&_.clientOnly,w=w&&_.deferred),l.set(S,nm(a,b,w))}else{var T=qf(S,a.lookupFragment);if(!T&&S.kind===he.FRAGMENT_SPREAD)throw an(14,S.name.value);T&&c.fragmentMatches(T,o,n,a.variables)&&h(T.selectionSet,nm(a,b,w))}}}))})(t,a),l},e.prototype.applyMerges=function(t,n,a,o,l){var c,f=this;if(t.map.size&&!Ge(a)){var h=!mt(a)&&(Ge(n)||qo(n))?n:void 0,d=a;h&&!l&&(l=[Ge(h)?h.__ref:h]);var g,v=function(S,b){return mt(S)?typeof b=="number"?S[b]:void 0:o.store.getFieldValue(S,String(b))};t.map.forEach(function(S,b){var w=v(h,b),_=v(d,b);if(_!==void 0){l&&l.push(b);var T=f.applyMerges(S,w,_,o,l);T!==_&&(g=g||new Map,g.set(b,T)),l&&ue(l.pop()===b)}}),g&&(a=mt(d)?d.slice(0):L({},d),g.forEach(function(S,b){a[b]=S}))}return t.info?this.cache.policies.runMergeFunction(n,a,t.info,o,l&&(c=o.store).getStorage.apply(c,l)):a},e})(),yT=[];function mE(e,t){var n=e.map;return n.has(t)||n.set(t,yT.pop()||{map:new Map}),n.get(t)}function fg(e,t){if(e===t||!t||yf(t))return e;if(!e||yf(e))return t;var n=e.info&&t.info?L(L({},e.info),t.info):e.info||t.info,a=e.map.size&&t.map.size,o=a?new Map:e.map.size?e.map:t.map,l={info:n,map:o};if(a){var c=new Set(t.map.keys());e.map.forEach(function(f,h){l.map.set(h,fg(f,t.map.get(h))),c.delete(h)}),c.forEach(function(f){l.map.set(f,fg(t.map.get(f),e.map.get(f)))})}return l}function yf(e){return!e||!(e.info||e.map.size)}function gE(e,t){var n=e.map,a=n.get(t);a&&yf(a)&&(yT.push(a),n.delete(t))}var yE=new Set;function OL(e,t,n,a){var o=function(v){var S=a.getFieldValue(v,n);return typeof S=="object"&&S},l=o(e);if(l){var c=o(t);if(c&&!Ge(l)&&!Ke(l,c)&&!Object.keys(l).every(function(v){return a.getFieldValue(c,v)!==void 0})){var f=a.getFieldValue(e,"__typename")||a.getFieldValue(t,"__typename"),h=Ja(n),d="".concat(f,".").concat(h);if(!yE.has(d)){yE.add(d);var g=[];!mt(l)&&!mt(c)&&[l,c].forEach(function(v){var S=a.getFieldValue(v,"__typename");typeof S=="string"&&!g.includes(S)&&g.push(S)}),globalThis.__DEV__!==!1&&ue.warn(15,h,f,g.length?"either ensure all objects of type "+g.join(" and ")+" have an ID or a custom merge function, or ":"",d,L({},l),L({},c))}}}}var vT=(function(e){Wn(t,e);function t(n){n===void 0&&(n={});var a=e.call(this)||this;return a.watches=new Set,a.addTypenameTransform=new D_(fy),a.assumeImmutableResults=!0,a.makeVar=wL,a.txCount=0,globalThis.__DEV__!==!1&&(ht(n,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),ht(n,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),a.config=hL(n),a.addTypename=!!a.config.addTypename,a.policies=new CL({cache:a,dataIdFromObject:a.config.dataIdFromObject,possibleTypes:a.config.possibleTypes,typePolicies:a.config.typePolicies}),a.init(),a}return t.prototype.init=function(){var n=this.data=new ql.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var a=this,o=this.storeReader,l=this.config.fragments;this.addTypenameTransform.resetCache(),l==null||l.resetCaches(),this.storeWriter=new RL(this,this.storeReader=new bL({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:uT(this.config),canon:n?void 0:o&&o.canon,fragments:l}),l),this.maybeBroadcastWatch=Vl(function(c,f){return a.broadcastWatch(c,f)},{max:this.config.resultCacheMaxSize||Cr["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(c){var f=c.optimistic?a.optimisticData:a.data;if(Dl(f)){var h=c.optimistic,d=c.id,g=c.variables;return f.makeCacheKey(c.query,c.callback,Ya({optimistic:h,id:d,variables:g}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(c){return c.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){globalThis.__DEV__!==!1&&ht(n,"canonizeResults","cache.read");var a=n.returnPartialData,o=a===void 0?!1:a;try{return this.storeReader.diffQueryAgainstStore(L(L({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(l){if(l instanceof oT)return null;throw l}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(jt.call(n,"id")&&!n.id)return!1;var a=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,a.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return globalThis.__DEV__!==!1&&ht(n,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(L(L({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var a=this;return this.watches.size||EL(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){a.watches.delete(n)&&
121!a.watches.size&&sE(a),a.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){globalThis.__DEV__!==!1&&ht(n||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),Ya.reset(),Ga.reset();var a=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),a},t.prototype.retain=function(n,a){return(a?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,a){return(a?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(Ge(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(a){globalThis.__DEV__!==!1&&ue.warn(a)}},t.prototype.evict=function(n){if(!n.id){if(jt.call(n,"id"))return!1;n=L(L({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var a=this;return this.init(),Ya.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return a.maybeBroadcastWatch.forget(o)}),this.watches.clear(),sE(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var a=this.optimisticData.removeLayer(n);a!==this.optimisticData&&(this.optimisticData=a,this.broadcastWatches())},t.prototype.batch=function(n){var a=this,o=n.update,l=n.optimistic,c=l===void 0?!0:l,f=n.removeOptimistic,h=n.onWatchUpdated,d,g=function(S){var b=a,w=b.data,_=b.optimisticData;++a.txCount,S&&(a.data=a.optimisticData=S);try{return d=o(a)}finally{--a.txCount,a.data=w,a.optimisticData=_}},v=new Set;return h&&!this.txCount&&this.broadcastWatches(L(L({},n),{onWatchUpdated:function(S){return v.add(S),!1}})),typeof c=="string"?this.optimisticData=this.optimisticData.addLayer(c,g):c===!1?g(this.data):g(),typeof f=="string"&&(this.optimisticData=this.optimisticData.removeLayer(f)),h&&v.size?(this.broadcastWatches(L(L({},n),{onWatchUpdated:function(S,b){var w=h.call(this,S,b);return w!==!1&&v.delete(S),w}})),v.size&&v.forEach(function(S){return a.maybeBroadcastWatch.dirty(S)})):this.broadcastWatches(n),d},t.prototype.performTransaction=function(n,a){return this.batch({update:n,optimistic:a||a!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,a){return this.policies.fragmentMatches(n,a)},t.prototype.lookupFragment=function(n){var a;return((a=this.config.fragments)===null||a===void 0?void 0:a.lookup(n))||null},t.prototype.broadcastWatches=function(n){var a=this;this.txCount||this.watches.forEach(function(o){return a.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var a=this.config.fragments;return a?a.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,a){var o=this,l=n.lastDiff,c=It("canonizeResults",function(){return o.diff(n)});a&&(n.optimistic&&typeof a.optimistic=="string"&&(c.fromOptimisticTransaction=!0),a.onWatchUpdated&&a.onWatchUpdated.call(this,n,c,l)===!1)||(!l||!Ke(l.result,c.result))&&n.callback(n.lastDiff=c,l)},t})(iT);globalThis.__DEV__!==!1&&(vT.prototype.getMemoryInternals=Dj);var Fe;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Fe||(Fe={}));function Ho(e){return e?e<7:!1}var vE=Object.assign,AL=Object.hasOwnProperty,Ml=(function(e){Wn(t,e);function t(n){var a=n.queryManager,o=n.queryInfo,l=n.options,c=this,f=t.inactiveOnCreation.getValue();c=e.call(this,function(C){c._getOrCreateQuery();try{var O=C._subscription._observer;O&&!O.error&&(O.error=NL)}catch{}var A=!c.observers.size;c.observers.add(C);var N=c.last;return N&&N.error?C.error&&C.error(N.error):N&&N.result&&C.next&&C.next(c.maskResult(N.result)),A&&c.reobserve().catch(function(){}),function(){c.observers.delete(C)&&!c.observers.size&&c.tearDownQuery()}})||this,c.observers=new Set,c.subscriptions=new Set,c.dirty=!1,c._getOrCreateQuery=function(){return f&&(a.queries.set(c.queryId,o),f=!1),c.queryManager.getOrCreateQuery(c.queryId)},c.queryInfo=o,c.queryManager=a,c.waitForOwnResult=rm(l.fetchPolicy),c.isTornDown=!1,c.subscribeToMore=c.subscribeToMore.bind(c),c.maskResult=c.maskResult.bind(c);var h=a.defaultOptions.watchQuery,d=h===void 0?{}:h,g=d.fetchPolicy,v=g===void 0?"cache-first":g,S=l.fetchPolicy,b=S===void 0?v:S,w=l.initialFetchPolicy,_=w===void 0?b==="standby"?v:b:w;c.options=L(L({},l),{initialFetchPolicy:_,fetchPolicy:b}),c.queryId=o.queryId||a.generateQueryId();var T=ji(c.query);return c.queryName=T&&T.name&&T.name.value,c}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
121,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return globalThis.__DEV__!==!1&&Ha("observableQuery.result",function(){globalThis.__DEV__!==!1&&ue.warn(23)}),new Promise(function(a,o){var l={next:function(f){a(f),n.observers.delete(l),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){c.unsubscribe()},0)},error:o},c=n.subscribe(l)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){var a=this;n===void 0&&(n=!0);var o=It("getLastResult",function(){return a.getLastResult(!0)}),l=this.queryInfo.networkStatus||o&&o.networkStatus||Fe.ready,c=L(L({},o),{loading:Ho(l),networkStatus:l}),f=this.options.fetchPolicy,h=f===void 0?"cache-first":f;if(!(rm(h)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var d=this.queryInfo.getDiff();(d.complete||this.options.returnPartialData)&&(c.data=d.result),Ke(c.data,{})&&(c.data=void 0),d.complete?(delete c.partial,d.complete&&c.networkStatus===Fe.loading&&(h==="cache-first"||h==="cache-only")&&(c.networkStatus=Fe.ready,c.loading=!1)):c.partial=!0,c.networkStatus===Fe.ready&&(c.error||c.errors)&&(c.networkStatus=Fe.error),globalThis.__DEV__!==!1&&!d.complete&&!this.options.partialRefetch&&!c.loading&&!c.data&&!c.error&&bT(d.missing)}return n&&this.updateLastResult(c),c},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,a){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query),l=this.queryManager.dataMasking,c=l?o.nonReactiveQuery:this.query,f=l||o.hasNonreactiveDirective?!J_(c,this.last.result,n,this.variables):!Ke(this.last.result,n);return f||a&&!Ke(this.last.variables,a)},t.prototype.getLast=function(n,a){var o=this.last;if(o&&o[n]&&(!a||Ke(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return globalThis.__DEV__!==!1&&Ha("getLastResult",function(){globalThis.__DEV__!==!1&&ue.warn(24)}),this.getLast("result",n)},t.prototype.getLastError=function(n){return globalThis.__DEV__!==!1&&Ha("getLastError",function(){globalThis.__DEV__!==!1&&ue.warn(25)}),this.getLast("error",n)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&Ha("resetLastResults",function(){globalThis.__DEV__!==!1&&ue.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ue.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var a,o={pollInterval:0},l=this.options.fetchPolicy;if(l==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&AL.call(n,"variables")){var c=v_(this.query),f=c.variableDefinitions;(!f||!f.some(function(h){return h.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&ue.warn(28,n,((a=c.name)===null||a===void 0?void 0:a.value)||c)}return n&&!Ke(this.options.variables,n)&&(o.variables=this.options.variables=L(L({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,Fe.refetch)},t.prototype.fetchMore=function(n){var a=this,o=L(L({},n.query?n:L(L(L(L({},this.options),{query:this.options.query}),n),{variables:L(L({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var l=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var c=this.queryInfo,f=c.networkStatus;c.networkStatus=Fe.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var h=new Set,d=n==null?void 0:n.updateQuery,g=this.options.fetchPolicy!=="no-cache";return g||ue(d,29),this.queryManager.fetchQuery(l,o,Fe.fetchMore).then(function(v){if(a.queryManager.removeQuery(l),c.networkStatus===Fe.fetchMore&&(c.networkStatus=f),g)a.queryManager.cache.batch({update:function(w){var _=n.updateQuery;_?w.updateQuery({query:a.query,variables:a.variables,returnPartialData:!0,optimistic:!1},function(T){return _(T,{fetchMoreResult:v.data,variables:o.variables})}):w.writeQuery({query:o.query,variables:o.variables,data:v.data})},onWatchUpdated:function(w){h.add(w.query)}});else{var S=a.getLast("result"),b=d(S.data,{fetchMoreResult:v.data,variables:o.variables});a.reportResult(L(L({},S),{networkStatus:f,loading:Ho(f),data:b}),a.variables)}return a.maskResult(v)}).finally(function(){g&&!h.has(a.query)&&a.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(n){var a=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(l){var c=n.updateQuery;c&&a.updateQuery(function(f,h){return c(f,L({subscriptionData:l},h))})},error:function(l){if(n.onError){n.onError(l);return}globalThis.__DEV__!==!1&&ue.error(30,l)}});return this.subscriptions.add(o),function(){a.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return globalThis.__DEV__!==!1&&(ht(n,"canonizeResults","setOptions"),Ha("setOptions",function(){globalThis.__DEV__!==!1&&ue.warn(31)})),this.reobserve(n)},t.prototype.silentSetOptions=function(n){var a=Ii(this.options,n||{});vE(this.options,a)},t.prototype.setVariables=function(n){var a=this;return Ke(this.variables,n)?this.observers.size?It("observableQuery.result",function(){return a.result()}):Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},Fe.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var a=this.queryManager,o=a.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),l=o.result,c=o.complete,f=n(l,{variables:this.variables,complete:!!c,previousData:l});f&&(a.cache.writeQuery({query:this.options.query,data:f,variables:this.variables}),a.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,a){if(a.nextFetchPolicy){var o=a.fetchPolicy,l=o===void 0?"cache-first":o,c=a.initialFetchPolicy,f=c===void 0?l:c;l==="standby"||(typeof a.nextFetchPolicy=="function"?a.fetchPolicy=a.nextFetchPolicy(l,{reason:n,options:a,observable:this,initialFetchPolicy:f}):n==="variables-changed"?a.fetchPolicy=f:a.fetchPolicy=a.nextFetchPolicy)}return a.fetchPolicy},t.prototype.fetch=function(n,a,o){var l=this._getOrCreateQuery();return l.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(l,n,a,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var a=this,o=a.pollingInfo,l=a.options.pollInterval;if(!l||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===l)){ue(l,32);var c=o||(this.pollingInfo={});c.interval=l;var f=function(){var d,g;n.pollingInfo&&(!Ho(n.queryInfo.networkStatus)&&!(!((g=(d=n.options).skipPollAttempt)===null||g===void 0)&&g.call(d))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Fe.poll).then(h,h):h())},h=function(){var d=n.pollingInfo;d&&(clearTimeout(d.timeout),d.timeout=setTimeout(f,d.interval))};h()}}},t.prototype.updateLastResult=function(n,a){var o=this;a===void 0&&(a=this.variables);var l=It("getLastError",function(){return o.getLastError()});return l&&this.last&&!Ke(a,this.last.variables)&&(l=void 0),this.last=L({result:this.queryManager.assumeImmutableResults?n:U_(n),variables:a},l?{error:l}:null)},t.prototype.reobserveAsConcast=function(n,a){var o=this;this.isTornDown=!1;var l=a===Fe.refetch||a===Fe.fetchMore||a===Fe.poll,c=this.options.variables,f=this.options.fetchPolicy,h=Ii(this.options,n||{}
121),d=l?h:vE(this.options,h),g=this.transformDocument(d.query);this.lastQuery=g,l||(this.updatePolling(),n&&n.variables&&!Ke(n.variables,c)&&d.fetchPolicy!=="standby"&&(d.fetchPolicy===f||typeof d.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",d),a===void 0&&(a=Fe.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=rm(d.fetchPolicy));var v=function(){o.concast===w&&(o.waitForOwnResult=!1)},S=d.variables&&L({},d.variables),b=this.fetch(d,a,g),w=b.concast,_=b.fromLink,T={next:function(C){Ke(o.variables,S)&&(v(),o.reportResult(C,S))},error:function(C){Ke(o.variables,S)&&(H_(C)||(C=new Er({networkError:C})),v(),o.reportError(C,S))}};return!l&&(_||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=w,this.observer=T),w.addObserver(T),w},t.prototype.reobserve=function(n,a){return _I(this.reobserveAsConcast(n,a).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var l=this.last;It("resetLastResults",function(){return n.resetLastResults()});var c=this.subscribe.apply(this,a);return this.last=l,c},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(n,a){var o=this,l=It("getLastError",function(){return o.getLastError()}),c=this.isDifferentFromLastResult(n,a);(l||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,a),(l||c)&&Nl(this.observers,"next",this.maskResult(n))},t.prototype.reportError=function(n,a){var o=this,l=L(L({},It("getLastResult",function(){return o.getLastResult()})),{error:n,errors:n.graphQLErrors,networkStatus:Fe.error,loading:!1});this.updateLastResult(l,a),Nl(this.observers,"error",this.last.error=n)},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(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?L(L({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var n=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Ho(this.queryInfo.networkStatus))){var n=this.queryInfo.getDiff();n.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var n=this.options,a=n.fetchPolicy,o=n.nextFetchPolicy;return a==="cache-and-network"||a==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(l,c){return this.nextFetchPolicy=o,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(l,c):a}}):this.reobserve()},t.inactiveOnCreation=new ms,t})(qe);z_(Ml);function NL(e){globalThis.__DEV__!==!1&&ue.error(33,e.message,e.stack)}function bT(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&ue.debug(34,e)}function rm(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Go=new(zi?WeakMap:Map);function am(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Go.set(e,(Go.get(e)+1)%1e15),n.apply(this,arguments)})}var im=(function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var a=this.cache=t.cache;Go.has(a)||(Go.set(a,0),am(a,"evict"),am(a,"modify"),am(a,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||Fe.loading;return this.variables&&this.networkStatus!==Fe.loading&&!Ke(this.variables,t.variables)&&(n=Fe.setVariables),Ke(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this,n=this.getDiffOptions();if(this.lastDiff&&Ke(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var a=this.observableQuery;if(a&&a.options.fetchPolicy==="no-cache")return{complete:!1};var o=It("canonizeResults",function(){return t.cache.diff(n)});return this.updateLastDiff(o,n),o},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,a,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&It("getLastError",function(){var l;return(l=n.observableQuery)===null||l===void 0?void 0:l.getLastError()})||(this.updateLastDiff(t),Ke(o&&o.result,t&&t.result)||(a=this.observableQuery)===null||a===void 0||a.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var n=this.observableQuery;n&&n.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var a=this.observableQuery;if(!(a&&a.options.fetchPolicy==="no-cache")){var o=L(L({},this.getDiffOptions(t)),{watcher:this,callback:function(l){return n.setDiff(l)}});(!this.lastWatch||!Ke(o,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var a=this.lastWrite;return!(a&&a.dmCount===Go.get(this.cache)&&Ke(n,a.variables)&&Ke(t.data,a.result.data))},e.prototype.markResult=function(t,n,a,o){var l=this,c,f=new Xa,h=Kn(t.errors)?t.errors.slice(0):[];if((c=this.observableQuery)===null||c===void 0||c.resetNotifications(),"incremental"in t&&Kn(t.incremental)){var d=F_(this.getDiff().result,t);t.data=d}else if("hasNext"in t&&t.hasNext){var g=this.getDiff();t.data=f.merge(g.result,t.data)}this.graphQLErrors=h,a.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0}
121,this.getDiffOptions(a.variables)):o!==0&&(dg(t,a.errorPolicy)?this.cache.performTransaction(function(v){if(l.shouldWrite(t,a.variables))v.writeQuery({query:n,data:t.data,variables:a.variables,overwrite:o===1}),l.lastWrite={result:t,variables:a.variables,dmCount:Go.get(l.cache)};else if(l.lastDiff&&l.lastDiff.diff.complete){t.data=l.lastDiff.diff.result;return}var S=l.getDiffOptions(a.variables),b=It("canonizeResults",function(){return v.diff(S)});!l.stopped&&Ke(l.variables,a.variables)&&l.updateWatch(a.variables),l.updateLastDiff(b,S),b.complete&&(t.data=b.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Fe.ready},e.prototype.markError=function(t){var n;return this.networkStatus=Fe.error,this.lastWrite=void 0,(n=this.observableQuery)===null||n===void 0||n.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function dg(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",a=!ef(e);return!a&&n&&e.data&&(a=!0),a}var DL=Object.prototype.hasOwnProperty,bE=Object.create(null),kL=(function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new iy(Cr["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ua(!1),this.noCacheWarningsByQueryId=new Set;var a=new D_(function(l){return n.cache.transformDocument(l)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var o=t.documentTransform;this.documentTransform=o?a.concat(o).concat(a):a,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,a){t.stopQueryNoBroadcast(a)}),this.cancelPendingFetches(an(35))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Va(this,arguments,void 0,function(n){var a,o,l,c,f,h,d,g=n.mutation,v=n.variables,S=n.optimisticResponse,b=n.updateQueries,w=n.refetchQueries,_=w===void 0?[]:w,T=n.awaitRefetchQueries,C=T===void 0?!1:T,O=n.update,A=n.onQueryUpdated,N=n.fetchPolicy,M=N===void 0?((h=this.defaultOptions.mutate)===null||h===void 0?void 0:h.fetchPolicy)||"network-only":N,P=n.errorPolicy,U=P===void 0?((d=this.defaultOptions.mutate)===null||d===void 0?void 0:d.errorPolicy)||"none":P,G=n.keepRootFields,W=n.context;return Ba(this,function(te){switch(te.label){case 0:return ue(g,36),ue(M==="network-only"||M==="no-cache",37),a=this.generateMutationId(),g=this.cache.transformForLink(this.transform(g)),o=this.getDocumentInfo(g).hasClientExports,v=this.getVariables(g,v),o?[4,this.localState.addExportedVariables(g,v,W)]:[3,2];case 1:v=te.sent(),te.label=2;case 2:return l=this.mutationStore&&(this.mutationStore[a]={mutation:g,variables:v,loading:!0,error:null}),c=S&&this.markMutationOptimistic(S,{mutationId:a,document:g,variables:v,fetchPolicy:M,errorPolicy:U,context:W,updateQueries:b,update:O,keepRootFields:G}),this.broadcastQueries(),f=this,[2,new Promise(function(se,me){return Zp(f.getObservableFromLink(g,L(L({},W),{optimisticResponse:c?S:void 0}),v,{},!1),function(re){if(ef(re)&&U==="none")throw new Er({graphQLErrors:rg(re)});l&&(l.loading=!1,l.error=null);var ce=L({},re);return typeof _=="function"&&(_=_(ce)),U==="ignore"&&ef(ce)&&delete ce.errors,f.markMutationResult({mutationId:a,result:ce,document:g,variables:v,fetchPolicy:M,errorPolicy:U,context:W,update:O,updateQueries:b,awaitRefetchQueries:C,refetchQueries:_,removeOptimistic:c?a:void 0,onQueryUpdated:A,keepRootFields:G})}).subscribe({next:function(re){f.broadcastQueries(),(!("hasNext"in re)||re.hasNext===!1)&&se(L(L({},re),{data:f.maskOperation({document:g,data:re.data,fetchPolicy:M,id:a})}))}
121,error:function(re){l&&(l.loading=!1,l.error=re),c&&f.cache.removeOptimistic(a),f.broadcastQueries(),me(re instanceof Er?re:new Er({networkError:re}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var a=this;n===void 0&&(n=this.cache);var o=t.result,l=[],c=t.fetchPolicy==="no-cache";if(!c&&dg(o,t.errorPolicy)){if(Yo(o)||l.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Yo(o)&&Kn(o.incremental)){var f=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),h=void 0;f.result&&(h=F_(f.result,o)),typeof h<"u"&&(o.data=h,l.push({result:h,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var d=t.updateQueries;d&&this.queries.forEach(function(v,S){var b=v.observableQuery,w=b&&b.queryName;if(!(!w||!DL.call(d,w))){var _=d[w],T=a.queries.get(S),C=T.document,O=T.variables,A=n.diff({query:C,variables:O,returnPartialData:!0,optimistic:!1}),N=A.result,M=A.complete;if(M&&N){var P=_(N,{mutationResult:o,queryName:C&&_l(C)||void 0,queryVariables:O});P&&l.push({result:P,dataId:"ROOT_QUERY",query:C,variables:O})}}})}if(l.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var g=[];if(this.refetchQueries({updateCache:function(v){c||l.forEach(function(_){return v.write(_)});var S=t.update,b=!AI(o)||Yo(o)&&!o.hasNext;if(S){if(!c){var w=v.diff({id:"ROOT_MUTATION",query:a.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});w.complete&&(o=L(L({},o),{data:w.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}b&&S(v,o,{context:t.context,variables:t.variables})}!c&&!t.keepRootFields&&b&&v.modify({id:"ROOT_MUTATION",fields:function(_,T){var C=T.fieldName,O=T.DELETE;return C==="__typename"?_:O}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(v){return g.push(v)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(g).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var a=this,o=typeof t=="function"?t(n.variables,{IGNORE:bE}):t;return o===bE?!1:(this.cache.recordOptimisticTransaction(function(l){try{a.markMutationResult(L(L({},n),{result:{data:o}}),l)}catch(c){globalThis.__DEV__!==!1&&ue.error(c)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,a){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,a).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,a){t[a]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var a={hasClientExports:uj(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Fl(["nonreactive"],t),nonReactiveQuery:hI(t),clientQuery:this.localState.clientQuery(t),serverQuery:M_([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:sy(ji(t)),asQuery:L(L({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?L(L({},o),{operation:"query"}):o})})};n.set(t,a)}return n.get(t)},e.prototype.getVariables=function(t,n){return L(L({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=L(L({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var a=new im(this),o=new Ml({queryManager:this,queryInfo:a,options:t});return o.lastQuery=n,Ml.inactiveOnCreation.getValue()||this.queries.set(o.queryId,a),a.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var a=this;n===void 0&&(n=this.generateQueryId()),ue(t.query,38),ue(t.query.kind==="Document",39),ue(!t.returnPartialData,40),ue(!t.pollInterval,41);var o=this.transform(t.query);return this.fetchQuery(n,L(L({},t),{query:o})).then(function(l){return l&&L(L({},l),{data:a.maskOperation({document:o,data:l.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return a.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}
121),this.cancelPendingFetches(an(42)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=Fe.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var a=new Map,o=new Map,l=new Map,c=new Set;return Array.isArray(t)&&t.forEach(function(f){if(typeof f=="string")o.set(f,f),l.set(f,!1);else if(zj(f)){var h=Ga(n.transform(f));o.set(h,_l(f)),l.set(h,!1)}else lt(f)&&f.query&&c.add(f)}),this.queries.forEach(function(f,h){var d=f.observableQuery,g=f.document;if(d){if(t==="all"){a.set(h,d);return}var v=d.queryName,S=d.options.fetchPolicy;if(S==="standby"||t==="active"&&!d.hasObservers())return;(t==="active"||v&&l.has(v)||g&&l.has(Ga(g)))&&(a.set(h,d),v&&l.set(v,!0),g&&l.set(Ga(g),!0))}}),c.size&&c.forEach(function(f){var h=Hm("legacyOneTimeQuery"),d=n.getOrCreateQuery(h).init({document:f.query,variables:f.variables}),g=new Ml({queryManager:n,queryInfo:d,options:L(L({},f),{fetchPolicy:"network-only"})});ue(g.queryId===h),d.setObservableQuery(g),a.set(h,g)}),globalThis.__DEV__!==!1&&l.size&&l.forEach(function(f,h){if(!f){var d=o.get(h);d?globalThis.__DEV__!==!1&&ue.warn(43,d):globalThis.__DEV__!==!1&&ue.warn(44)}}),a},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var a=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,l){var c=o.options.fetchPolicy;It("resetLastResults",function(){return o.resetLastResults()}),(t||c!=="standby"&&c!=="cache-only")&&a.push(o.refetch()),(n.queries.get(l)||o.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(a)},e.prototype.startGraphQLSubscription=function(t){var n=this,a=t.query,o=t.variables,l=t.fetchPolicy,c=t.errorPolicy,f=c===void 0?"none":c,h=t.context,d=h===void 0?{}:h,g=t.extensions,v=g===void 0?{}:g;a=this.transform(a),o=this.getVariables(a,o);var S=function(w){return n.getObservableFromLink(a,d,w,v).map(function(_){l!=="no-cache"&&(dg(_,f)&&n.cache.write({query:a,result:_.data,dataId:"ROOT_SUBSCRIPTION",variables:w}),n.broadcastQueries());var T=ef(_),C=q_(_);if(T||C){var O={};if(T&&(O.graphQLErrors=_.errors),C&&(O.protocolErrors=_.extensions[Kf]),f==="none"||C)throw new Er(O)}return f==="ignore"&&delete _.errors,_})};if(this.getDocumentInfo(a).hasClientExports){var b=this.localState.addExportedVariables(a,o,d).then(S);return new qe(function(w){var _=null;return b.then(function(T){return _=T.subscribe(w)},w.error),function(){return _&&_.unsubscribe()}})}return S(o)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var n;return(n=t.observableQuery)===null||n===void 0?void 0:n.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,a,o,l){var c=this,f;l===void 0&&(l=(f=n==null?void 0:n.queryDeduplication)!==null&&f!==void 0?f:this.queryDeduplication);var h,d=this.getDocumentInfo(t),g=d.serverQuery,v=d.clientQuery;if(g){var S=this,b=S.inFlightLinkObservables,w=S.link,_={query:g,variables:a,operationName:_l(g)||void 0,context:this.prepareContext(L(L({},n),{forceFetch:!l})),extensions:o};if(n=_.context,l){var T=Ga(g),C=Ya(a),O=b.lookup(T,C);if(h=O.observable,!h){var A=new $o([og(w,_)]);h=O.observable=A,A.beforeNext(function N(M,P){M==="next"&&"hasNext"in P&&P.hasNext?A.beforeNext(N):b.remove(T,C)})}}else h=new $o([og(w,_)])}else h=new $o([qe.of({data:{}})]),n=this.prepareContext(n);return v&&(h=Zp(h,function(N){return c.localState.runResolvers({document:v,remoteResult:N,context:n,variables:a})})),h},e.prototype.getResultsFromLink=function(t,n,a){var o=t.lastRequestId=this.generateRequestId(),l=this.cache.transformForLink(a.query);return Zp(this.getObservableFromLink(l,a.context,a.variables),function(c){var f=rg(c),h=f.length>0,d=a.errorPolicy;if(o>
121=t.lastRequestId){if(h&&d==="none")throw t.markError(new Er({graphQLErrors:f}));t.markResult(c,l,a,n),t.markReady()}var g={data:c.data,loading:!1,networkStatus:Fe.ready};return h&&d==="none"&&(g.data=void 0),h&&d!=="ignore"&&(g.errors=f,g.networkStatus=Fe.error),g},function(c){var f=H_(c)?c:new Er({networkError:c});throw o>=t.lastRequestId&&t.markError(f),f})},e.prototype.fetchConcastWithInfo=function(t,n,a,o){var l=this;a===void 0&&(a=Fe.loading),o===void 0&&(o=n.query);var c=this.getVariables(o,n.variables),f=this.defaultOptions.watchQuery,h=n.fetchPolicy,d=h===void 0?f&&f.fetchPolicy||"cache-first":h,g=n.errorPolicy,v=g===void 0?f&&f.errorPolicy||"none":g,S=n.returnPartialData,b=S===void 0?!1:S,w=n.notifyOnNetworkStatusChange,_=w===void 0?!1:w,T=n.context,C=T===void 0?{}:T,O=Object.assign({},n,{query:o,variables:c,fetchPolicy:d,errorPolicy:v,returnPartialData:b,notifyOnNetworkStatusChange:_,context:C}),A=function(G){O.variables=G;var W=l.fetchQueryByPolicy(t,O,a);return O.fetchPolicy!=="standby"&&W.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),W},N=function(){return l.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(G){N(),setTimeout(function(){return M.cancel(G)})});var M,P;if(this.getDocumentInfo(O.query).hasClientExports)M=new $o(this.localState.addExportedVariables(O.query,O.variables,O.context).then(A).then(function(G){return G.sources})),P=!0;else{var U=A(O.variables);P=U.fromLink,M=new $o(U.sources)}return M.promise.then(N,N),{concast:M,fromLink:P}},e.prototype.refetchQueries=function(t){var n=this,a=t.updateCache,o=t.include,l=t.optimistic,c=l===void 0?!1:l,f=t.removeOptimistic,h=f===void 0?c?Hm("refetchQueries"):void 0:f,d=t.onQueryUpdated,g=new Map;o&&this.getObservableQueries(o).forEach(function(S,b){g.set(b,{oq:S,lastDiff:(n.queries.get(b)||S.queryInfo).getDiff()})});var v=new Map;return a&&this.cache.batch({update:a,optimistic:c&&h||!1,removeOptimistic:h,onWatchUpdated:function(S,b,w){var _=S.watcher instanceof im&&S.watcher.observableQuery;if(_){if(d){g.delete(_.queryId);var T=d(_,b,w);return T===!0&&(T=_.refetch()),T!==!1&&v.set(_,T),T}d!==null&&g.set(_.queryId,{oq:_,lastDiff:w,diff:b})}}}),g.size&&g.forEach(function(S,b){var w=S.oq,_=S.lastDiff,T=S.diff,C;d&&(T||(T=It("canonizeResults",function(){return n.cache.diff(w.queryInfo.getDiffOptions())})),C=d(w,T,_)),(!d||C===!0)&&(C=w.refetch()),C!==!1&&v.set(w,C),b.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(b)}),h&&this.cache.removeOptimistic(h),v},e.prototype.maskOperation=function(t){var n,a,o,l=t.document,c=t.data;if(globalThis.__DEV__!==!1){var f=t.fetchPolicy,h=t.id,d=(n=ji(l))===null||n===void 0?void 0:n.operation,g=((a=d==null?void 0:d[0])!==null&&a!==void 0?a:"o")+h;this.dataMasking&&f==="no-cache"&&!xj(l)&&!this.noCacheWarningsByQueryId.has(g)&&(this.noCacheWarningsByQueryId.add(g),globalThis.__DEV__!==!1&&ue.warn(45,(o=_l(l))!==null&&o!==void 0?o:"Unnamed ".concat(d??"operation")))}return this.dataMasking?dL(c,l,this.cache):c},e.prototype.maskFragment=function(t){var n=t.data,a=t.fragment,o=t.fragmentName;return this.dataMasking?aT(n,a,this.cache,o):n},e.prototype.fetchQueryByPolicy=function(t,n,a){var o=this,l=n.query,c=n.variables,f=n.fetchPolicy,h=n.refetchWritePolicy,d=n.errorPolicy,g=n.returnPartialData,v=n.context,S=n.notifyOnNetworkStatusChange,b=t.networkStatus;t.init({document:l,variables:c,networkStatus:a});var w=function(){return t.getDiff()},_=function(N,M){M===void 0&&(M=t.networkStatus||Fe.loading);var P=N.result;globalThis.__DEV__!==!1&&!g&&!Ke(P,{})&&bT(N.missing);var U=function(G){return qe.of(L({data:G,loading:Ho(M),networkStatus:M},N.complete?null:{partial:!0}))};return P&&o.getDocumentInfo(l).hasForcedResolvers?o.localState.runResolvers({document:l,remoteResult:{data:P},context:v,variables:c,onlyRunForcedResolvers:!0}).then(function(G){return U(G.data||void 0)}):d==="none"&&M===Fe.refetch&&Array.isArray(N.missing)?U(void 0):U(P)},T=f==="no-cache"?0:a===Fe.refetch&&h!=="merge"?1:2,C=function(){return o.getResultsFromLink(t,T,{query:l,variables:c,context:v,fetchPolicy:f,errorPolicy:d})},O=S&&typeof b=="number"&&b!==a&&Ho(a);switch(f){default:case"cache-first":{var A=w();return A.complete?{fromLink:!1,sources:[_(A,t.markReady())]}:g||O?{fromLink:!0,sources:[_(A),C()]}:{fromLink:!0,sources:[C()]}}case"cache-and-network":{var A=w();return A.complete||g||O?{fromLink:!0,sources:[_(A),C()]}:{fromLink:!0,sources:[C()]}}case"cache-only":return{fromLink:!1,sources:[_(w(),t.markReady())]};case"network-only":return O?{fromLink:!0,sources:[_(w()),C()]}:{fromLink:!0,sources:[C()]};case"no-cache":return O?{fromLink:!0,sources:[_(t.getDiff()),C()]}:{fromLink:!0,sources:[C()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new im(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return L(L(L({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e})(),ML=(function(){function e(t){var n=t.cache,a=t.client,o=t.resolvers,l=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,a&&(this.client=a),o&&this.addResolvers(o),l&&this.setFragmentMatcher(l)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(a){n.resolvers=zx(n.resolvers,a)}):this.resolvers=zx(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Va(this,arguments,void 0,function(n){var a=n.document,o=n.remoteResult,l=n.context,c=n.variables,f=n.onlyRunForcedResolvers,h=f===void 0?!1:f;return Ba(this,function(d){return a?[2,this.resolveDocument(a,o.data,l,c,this.fragmentMatcher,h).then(function(g){return L(L({},o),{data:g.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Fl(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return j_(t)},e.prototype.prepareContext=function(t){var n=this.cache;return L(L({},t),{cache:n,getCacheKey:function(a){return n.identify(a)}})},e.prototype.addExportedVariables=function(t){return Va(this,arguments,void 0,function(n,a,o){return a===void 0&&(a={}),o===void 0&&(o={}),Ba(this,function(l){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,a)||{},this.prepareContext(o),a).then(function(c){return L(L({},a),c.exportedVariables)})]:[2,L({},a)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;
121return sr(t,{Directive:{enter:function(a){if(a.name.value==="client"&&a.arguments&&(n=a.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return Vf}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:dI(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Va(this,arguments,void 0,function(a,o,l,c,f,h){var d,g,v,S,b,w,_,T,C,O,A;return l===void 0&&(l={}),c===void 0&&(c={}),f===void 0&&(f=function(){return!0}),h===void 0&&(h=!1),Ba(this,function(N){return d=Fi(a),g=ps(a),v=ds(g),S=this.collectSelectionsToResolve(d,v),b=d.operation,w=b?b.charAt(0).toUpperCase()+b.slice(1):"Query",_=this,T=_.cache,C=_.client,O={fragmentMap:v,context:L(L({},l),{cache:T,client:C}),variables:c,fragmentMatcher:f,defaultOperationType:w,exportedVariables:{},selectionsToResolve:S,onlyRunForcedResolvers:h},A=!1,[2,this.resolveSelectionSet(d.selectionSet,A,o,O).then(function(M){return{result:M,exportedVariables:O.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,a,o){return Va(this,void 0,void 0,function(){var l,c,f,h,d,g=this;return Ba(this,function(v){return l=o.fragmentMap,c=o.context,f=o.variables,h=[a],d=function(S){return Va(g,void 0,void 0,function(){var b,w;return Ba(this,function(_){return!n&&!o.selectionsToResolve.has(S)?[2]:iu(S,f)?Wa(S)?[2,this.resolveField(S,n,a,o).then(function(T){var C;typeof T<"u"&&h.push((C={},C[aa(S)]=T,C))})]:(Zj(S)?b=S:(b=l[S.name.value],ue(b,21,S.name.value)),b&&b.typeCondition&&(w=b.typeCondition.name.value,o.fragmentMatcher(a,w,c))?[2,this.resolveSelectionSet(b.selectionSet,n,a,o).then(function(T){h.push(T)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(d)).then(function(){return Yf(h)})]})})},e.prototype.resolveField=function(t,n,a,o){return Va(this,void 0,void 0,function(){var l,c,f,h,d,g,v,S,b,w=this;return Ba(this,function(_){return a?(l=o.variables,c=t.name.value,f=aa(t),h=c!==f,d=a[f]||a[c],g=Promise.resolve(d),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(v=a.__typename||o.defaultOperationType,S=this.resolvers&&this.resolvers[v],S&&(b=S[h?c:f],b&&(g=Promise.resolve(yy.withValue(this.cache,b,[a,Hf(t,l),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,g.then(function(T){var C,O;if(T===void 0&&(T=d),t.directives&&t.directives.forEach(function(N){N.name.value==="export"&&N.arguments&&N.arguments.forEach(function(M){M.name.value==="as"&&M.value.kind==="StringValue"&&(o.exportedVariables[M.value.value]=T)})}),!t.selectionSet||T==null)return T;var A=(O=(C=t.directives)===null||C===void 0?void 0:C.some(function(N){return N.name.value==="client"}))!==null&&O!==void 0?O:!1;if(Array.isArray(T))return w.resolveSubSelectedArray(t,n||A,T,o);if(t.selectionSet)return w.resolveSelectionSet(t.selectionSet,n||A,T,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,a,o){var l=this;return Promise.all(a.map(function(c){if(c===null)return null;if(Array.isArray(c))return l.resolveSubSelectedArray(t,n,c,o);if(t.selectionSet)return l.resolveSelectionSet(t.selectionSet,n,c,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var a=function(c){return!Array.isArray(c)},o=this.selectionsToResolveCache;function l(c){if(!o.has(c)){var f=new Set;o.set(c,f),sr(c,{Directive:function(h,d,g,v,S){h.name.value==="client"&&S.forEach(function(b){a(b)&&Nx(b)&&f.add(b)})},FragmentSpread:function(h,d,g,v,S){var b=n[h.name.value];ue(b,22,h.name.value);var w=l(b);w.size>0&&(S.forEach(function(_){a(_)&&Nx(_)&&f.add(_)}),f.add(h),w.forEach(function(_){f.add(_)}))}})}return o.get(c)}return l(t)},e})(),SE=!1,ST=(function(){function e(t){var n=this,a,o,l;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw an(16);var c=t.uri,f=t.credentials,h=t.headers,d=t.cache,g=t.documentTransform,v=t.ssrMode,S=v===void 0?!1:v,b=t.ssrForceFetchDelay,w=b===void 0?0:b,_=t.connectToDevTools,T=t.queryDeduplication,C=T===void 0?!0:T,O=t.defaultOptions,A=t.defaultContext,N=t.assumeImmutableResults,M=N===void 0?d.assumeImmutableResults:N,P=t.resolvers,U=t.typeDefs,G=t.fragmentMatcher,W=t.clientAwareness,te=t.name,se=t.version,me=t.devtools,re=t.dataMasking;globalThis.__DEV__!==!1&&(ht(t,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),ht(t,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),ht(t,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),ht(t,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),ht(t,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),ht(t,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),ht(t,"typeDefs","ApolloClient"),t.link||globalThis.__DEV__!==!1&&ue.warn(17));var ce=t.link;ce||(ce=c?new aL({uri:c,credentials:f,headers:h}):kn.empty()),this.link=ce,this.cache=d,this.disableNetworkFetches=S||w>0,this.queryDeduplication=C,this.defaultOptions=O||Object.create(null),this.typeDefs=U,this.devtoolsConfig=L(L({},me),{enabled:(a=me==null?void 0:me.enabled)!==null&&a!==void 0?a:_}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),w&&setTimeout(function(){return n.disableNetworkFetches=!1},w),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=Xg,this.localState=new ML({cache:d,client:this,resolvers:P,fragmentMatcher:G}),this.queryManager=new kL({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:A,documentTransform:g,queryDeduplication:C,ssrMode:S,dataMasking:!!re,clientAwareness:{name:(o=W==null?void 0:W.name)!==null&&o!==void 0?o:te,version:(l=W==null?void 0:W.version)!==null&&l!==void 0?l:se},localState:this.localState,assumeImmutableResults:M,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(t){this.disableNetworkFetches=t}
121,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!SE&&globalThis.__DEV__!==!1&&(SE=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var a=window.navigator,o=a&&a.userAgent,l=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?l="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(l="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),l&&globalThis.__DEV__!==!1&&ue.log("Download the Apollo DevTools for a better development experience: %s",l)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=tf(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=L(L({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(ht(t,"canonizeResults","client.watchQuery"),ht(t,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=tf(this.defaultOptions.query,t)),ue(t.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=L(L({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(ht(t,"canonizeResults","client.query"),ht(t,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),t.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&ue.warn(19)),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=tf(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,a=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(o){return L(L({},o),{data:n.queryManager.maskOperation({document:t.query,data:o.data,fetchPolicy:t.fetchPolicy,id:a})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(L(L({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return og(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(a){return a!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(a){return a!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),a=[],o=[];
121n.forEach(function(c,f){a.push(f),o.push(c)});var l=Promise.all(o);return l.queries=a,l.results=o,l.catch(function(c){globalThis.__DEV__!==!1&&ue.debug(20,c)}),l},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(ST.prototype.getMemoryInternals=Nj);var af=new Map,hg=new Map,xT=!0,vf=!1;function ET(e){return e.replace(/[\s,]+/g," ").trim()}function jL(e){return ET(e.source.body.substring(e.start,e.end))}function IL(e){var t=new Set,n=[];return e.definitions.forEach(function(a){if(a.kind==="FragmentDefinition"){var o=a.name.value,l=jL(a.loc),c=hg.get(o);c&&!c.has(l)?xT&&console.warn("Warning: fragment with name "+o+` already exists.
122graphql-tag enforces all fragment names across your application to be unique; read more about
123this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):c||hg.set(o,c=new Set),c.add(l),t.has(l)||(t.add(l),n.push(a))}else n.push(a)}),L(L({},e),{definitions:n})}function LL(e){var t=new Set(e.definitions);t.forEach(function(a){a.loc&&delete a.loc,Object.keys(a).forEach(function(o){var l=a[o];l&&typeof l=="object"&&t.add(l)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function PL(e){var t=ET(e);if(!af.has(t)){var n=JM(e,{experimentalFragmentVariables:vf,allowLegacyFragmentVariables:vf});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");af.set(t,LL(IL(n)))}return af.get(t)}function Ce(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var a=e[0];return t.forEach(function(o,l){o&&o.kind==="Document"?a+=o.loc.source.body:a+=o,a+=e[l+1]}),PL(a)}function UL(){af.clear(),hg.clear()}function zL(){xT=!1}function FL(){vf=!0}function $L(){vf=!1}var ml={gql:Ce,resetCaches:UL,disableFragmentWarnings:zL,enableExperimentalFragmentVariables:FL,disableExperimentalFragmentVariables:$L};(function(e){e.gql=ml.gql,e.resetCaches=ml.resetCaches,e.disableFragmentWarnings=ml.disableFragmentWarnings,e.enableExperimentalFragmentVariables=ml.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=ml.disableExperimentalFragmentVariables})(Ce||(Ce={}));Ce.default=Ce;var om={exports:{}},xE;function VL(){return xE||(xE=1,(function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,tu())})(om)),om.exports}var St=VL();const BL=If(St),wT=A1({__proto__:null,default:BL},[St]);var EE=ay?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function xy(){ue("createContext"in wT,69);var e=St.createContext[EE];return e||(Object.defineProperty(St.createContext,EE,{value:e=St.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var qL=function(e){var t=e.client,n=e.children,a=xy(),o=St.useContext(a),l=St.useMemo(function(){return L(L({},o),{client:t||o.client})},[o,t]);return ue(l.client,71),St.createElement(a.Provider,{value:l},n)};function _T(e){var t=St.useContext(xy()),n=e||t.client;return ue(!!n,78),n}var wE=!1,HL="useSyncExternalStore",GL=wT[HL],QL=GL||(function(e,t,n){var a=t();globalThis.__DEV__!==!1&&!wE&&a!==t()&&(wE=!0,globalThis.__DEV__!==!1&&ue.error(91));var o=St.useState({inst:{value:a,getSnapshot:t}}),l=o[0].inst,c=o[1];return bj?St.useLayoutEffect(function(){Object.assign(l,{value:a,getSnapshot:t}),sm(l)&&c({inst:l})},[e,a,t]):Object.assign(l,{value:a,getSnapshot:t}),St.useEffect(function(){return sm(l)&&c({inst:l}),e(function(){sm(l)&&c({inst:l})})},[e]),a});function sm(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}var na;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(na||(na={}));var Ni;function _E(e){var t;switch(e){case na.Query:t="Query";break;case na.Mutation:t="Mutation";break;case na.Subscription:t="Subscription";break}return t}function TT(e){Ha("parser",function(){globalThis.__DEV__!==!1&&ue.warn(93)}),Ni||(Ni=new iy(Cr.parser||1e3));var t=Ni.get(e);if(t)return t;var n,a,o;ue(!!e&&!!e.kind,94,e);for(var l=[],c=[],f=[],h=[],d=0,g=e.definitions;d<g.length;
123d++){var v=g[d];if(v.kind==="FragmentDefinition"){l.push(v);continue}if(v.kind==="OperationDefinition")switch(v.operation){case"query":c.push(v);break;case"mutation":f.push(v);break;case"subscription":h.push(v);break}}ue(!l.length||c.length||f.length||h.length,95),ue(c.length+f.length+h.length<=1,96,e,c.length,h.length,f.length),a=c.length?na.Query:na.Mutation,!c.length&&!f.length&&(a=na.Subscription);var S=c.length?c:f.length?f:h;ue(S.length===1,97,e,S.length);var b=S[0];n=b.variableDefinitions||[],b.name&&b.name.kind==="Name"?o=b.name.value:o="data";var w={name:o,type:a,variables:n};return Ni.set(e,w),w}TT.resetCache=function(){Ni=void 0};globalThis.__DEV__!==!1&&oy("parser",function(){return Ni?Ni.size:0});function YL(e,t){var n=It("parser",TT,[e]),a=_E(t),o=_E(n.type);ue(n.type===t,98,a,a,o)}function gl(e,t,n,a){"use no memo";a===void 0&&(a="Please remove this option.");var o=St.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!o.current&&(ht(e,t,n,a),o.current=!0)}var KL=Symbol.for("apollo.hook.wrappers");function WL(e,t,n){var a=n.queryManager,o=a&&a[KL],l=o&&o[e];return l?l(t):t}var ZL=Object.prototype.hasOwnProperty;function TE(){}var of=Symbol();function pg(e,t){return t===void 0&&(t=Object.create(null)),WL("useQuery",XL,_T(t&&t.client))(e,t)}function XL(e,t){globalThis.__DEV__!==!1&&(gl(t,"canonizeResults","useQuery"),gl(t,"partialRefetch","useQuery"),gl(t,"defaultOptions","useQuery","Pass the options directly to the hook instead."),gl(t,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),gl(t,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var n=eP(e,t),a=n.result,o=n.obsQueryFields;return St.useMemo(function(){return L(L({},a),o)},[a,o])}function JL(e,t,n,a,o){function l(v){var S;YL(t,na.Query);var b={client:e,query:t,observable:a&&a.getSSRObservable(o())||Ml.inactiveOnCreation.withValue(!a,function(){return It(["canonizeResults","partialRefetch"],function(){return e.watchQuery(CT(void 0,e,n,o()))})}),resultData:{previousData:(S=v==null?void 0:v.resultData.current)===null||S===void 0?void 0:S.data}};return b}var c=St.useState(l),f=c[0],h=c[1];function d(v){var S,b;Object.assign(f.observable,(S={},S[of]=v,S));var w=f.resultData;h(L(L({},f),{query:v.query,resultData:Object.assign(w,{previousData:((b=w.current)===null||b===void 0?void 0:b.data)||w.previousData,current:void 0})}))}if(e!==f.client||t!==f.query){var g=l(f);return h(g),[g,d]}return[f,d]}function eP(e,t){var n=_T(t.client),a=St.useContext(xy()).renderPromises,o=!!a,l=n.disableNetworkFetches,c=t.ssr!==!1&&!t.skip,f=t.partialRefetch,h=aP(n,e,t,o),d=JL(n,e,t,a,h),g=d[0],v=g.observable,S=g.resultData,b=d[1],w=h(v);rP(S,v,n,t,w);var _=St.useMemo(function(){return lP(v)},[v]);nP(v,a,c);var T=tP(S,v,n,t,w,l,f,o,{onCompleted:t.onCompleted||TE,onError:t.onError||TE});return{result:T,obsQueryFields:_,observable:v,resultData:S,client:n,onQueryExecuted:b}}function tP(e,t,n,a,o,l,c,f,h){var d=St.useRef(h);St.useEffect(function(){d.current=h});var g=(f||l)&&a.ssr===!1&&!a.skip?OT:a.skip||o.fetchPolicy==="standby"?AT:void 0,v=e.previousData,S=St.useMemo(function(){return g&&RT(g,v,t,n)},[n,t,g,v]);return QL(St.useCallback(function(b){if(f)return function(){};var w=function(){var C=e.current,O=t.getCurrentResult();C&&C.loading===O.loading&&C.networkStatus===O.networkStatus&&Ke(C.data,O.data)||mg(O,e,t,n,c,b,d.current)},_=function(C){if(T.current.unsubscribe(),T.current=t.resubscribeAfterError(w,_),!ZL.call(C,"graphQLErrors"))throw C;var O=e.current;(!O||O&&O.loading||!Ke(C,O.error))&&mg({data:O&&O.data,error:C,loading:!1,networkStatus:Fe.error},e,t,n,c,b,d.current)},T={current:t.subscribe(w,_)};return function(){setTimeout(function(){return T.current.unsubscribe()})}},[l,f,t,e,c,n]),function(){return S||CE(e,t,d.current,c,n)},function(){return S||CE(e,t,d.current,c,n)})}function nP(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function rP(e,t,n,a,o){var l;t[of]&&!Ke(t[of],o)&&(t.reobserve(CT(t,n,a,o)),e.previousData=((l=e.current)===null||l===void 0?void 0:l.data)||e.previousData,e.current=void 0),t[of]=o}function aP(e,t,n,a){n===void 0&&(n={});var o=n.skip;n.ssr,n.onCompleted,n.onError;var l=n.defaultOptions,c=bn(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(f){var h=Object.assign(c,{query:t});return a&&(h.fetchPolicy==="network-only"||h.fetchPolicy==="cache-and-network")&&(h.fetchPolicy="cache-first"),h.variables||(h.variables={}),o?(h.initialFetchPolicy=h.initialFetchPolicy||h.fetchPolicy||RE(l,e.defaultOptions),h.fetchPolicy="standby"):h.fetchPolicy||(h.fetchPolicy=(f==null?void 0:f.options.initialFetchPolicy)||RE(l,e.defaultOptions)),h}}function CT(e,t,n,a){var o=[],l=t.defaultOptions.watchQuery;return l&&o.push(l),n.defaultOptions&&o.push(n.defaultOptions),o.push(Ii(e&&e.options,a)),o.reduce(tf)}function mg(e,t,n,a,o,l,c){var f=t.current;f&&f.data&&(t.previousData=f.data),!e.error&&Kn(e.errors)&&(e.error=new Er({graphQLErrors:e.errors})),t.current=RT(sP(e,n,o),t.previousData,n,a),l(),iP(e,f==null?void 0:f.networkStatus,c)}function iP(e,t,n){if(!e.loading){var a=oP(e);Promise.resolve().then(function(){a?n.onError(a):e.data&&t!==e.networkStatus&&e.networkStatus===Fe.ready&&n.onCompleted(e.data)}).catch(function(o){globalThis.__DEV__!==!1&&ue.warn(o)})}}function CE(e,t,n,a,o){return e.current||mg(t.getCurrentResult(),e,t,o,a,function(){},n),e.current}function RE(e,t){var n;return(e==null?void 0:e.fetchPolicy)||((n=t==null?void 0:t.watchQuery)===null||n===void 0?void 0:n.fetchPolicy)||"cac
123he-first"}function oP(e){return Kn(e.errors)?new Er({graphQLErrors:e.errors}):e.error}function RT(e,t,n,a){var o=e.data;e.partial;var l=bn(e,["data","partial"]),c=L(L({data:o},l),{client:a,observable:n,variables:n.variables,called:e!==OT&&e!==AT,previousData:t});return c}function sP(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),L(L({},e),{loading:!0,networkStatus:Fe.refetch})):e}var OT=os({loading:!0,data:void 0,error:void 0,networkStatus:Fe.loading}),AT=os({loading:!1,data:void 0,error:void 0,networkStatus:Fe.ready});function lP(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ue.warn(83),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}function uP(e){return new kn(function(t,n){var a=bn(t,[]);return new qe(function(o){var l,c=!1;return Promise.resolve(a).then(function(f){return e(f,t.getContext())}).then(t.setContext).then(function(){c||(l=n(t).subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)}))}).catch(o.error.bind(o)),function(){c=!0,l&&l.unsubscribe()}})})}function NT(e){return new kn(function(t,n){return new qe(function(a){var o,l,c;try{o=n(t).subscribe({next:function(f){if(f.errors?c=e({graphQLErrors:f.errors,response:f,operation:t,forward:n}):q_(f)&&(c=e({protocolErrors:f.extensions[Kf],response:f,operation:t,forward:n})),c){l=c.subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)});return}a.next(f)},error:function(f){if(c=e({operation:t,networkError:f,graphQLErrors:f&&f.result&&f.result.errors||void 0,forward:n}),c){l=c.subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)});return}a.error(f)},complete:function(){c||a.complete.bind(a)()}})}catch(f){e({networkError:f,operation:t,forward:n}),a.error(f)}return function(){o&&o.unsubscribe(),l&&o.unsubscribe()}})})}(function(e){Wn(t,e);function t(n){var a=e.call(this)||this;return a.link=NT(n),a}return t.prototype.request=function(n,a){return this.link.request(n,a)},t})(kn);function cP(e){return lt(e)&&"code"in e&&"reason"in e}function fP(e){var t;return lt(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var DT=(function(e){Wn(t,e);function t(n){var a=e.call(this)||this;return a.client=n,a}return t.prototype.request=function(n){var a=this;return new qe(function(o){return a.client.subscribe(L(L({},n),{query:Ga(n.query)}),{next:o.next.bind(o),complete:o.complete.bind(o),error:function(l){if(l instanceof Error)return o.error(l);var c=cP(l);return c||fP(l)?o.error(new Error("Socket closed".concat(c?" with event ".concat(l.code):"").concat(c?" ".concat(l.reason):""))):o.error(new Er({graphQLErrors:Array.isArray(l)?l:[l]}))}})})},t})(kn);function gn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Oi(e){return gn(e)==="object"}function dP(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function OE(e,t){return e.length<124?e:t}const hP="graphql-transport-ws";var nn;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(nn||(nn={}));var bt;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(bt||(bt={}));function kT(e){if(!Oi(e))throw new Error(`Message is expected to be an object, but got ${gn(e)}`);
123if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${gn(e.type)}`);switch(e.type){case bt.ConnectionInit:case bt.ConnectionAck:case bt.Ping:case bt.Pong:{if(e.payload!=null&&!Oi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case bt.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Oi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${gn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${gn(e.payload.query)}`);if(e.payload.variables!=null&&!Oi(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${gn(e.payload.variables)}`);if(e.payload.operationName!=null&&gn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${gn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Oi(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${gn(e.payload.extensions)}`);break}case bt.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Oi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${gn(e.payload)}`);break}case bt.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!dP(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case bt.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function pP(e,t){return kT(typeof e=="string"?JSON.parse(e,t):e)}function yl(e,t){return kT(e),JSON.stringify(e,t)}var Wo=function(e){return this instanceof Wo?(this.v=e,this):new Wo(e)},mP=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n.apply(e,t||[]),o,l=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",c),o[Symbol.asyncIterator]=function(){return this},o;function c(b){return function(w){return Promise.resolve(w).then(b,v)}}function f(b,w){a[b]&&(o[b]=function(_){return new Promise(function(T,C){l.push([b,_,T,C])>1||h(b,_)})},w&&(o[b]=w(o[b])))}function h(b,w){try{d(a[b](w))}catch(_){S(l[0][3],_)}}function d(b){b.value instanceof Wo?Promise.resolve(b.value.v).then(g,v):S(l[0][2],b)}function g(b){h("next",b)}function v(b){h("throw",b)}function S(b,w){b(w),l.shift(),l.length&&h(l[0][0],l[0][1])}};function MT(e){const{url:t,connectionParams:n,lazy:a=!0,onNonLazyError:o=console.error,lazyCloseTimeout:l=0,keepAlive:c=0,disablePong:f,connectionAckWaitTimeout:h=0,retryAttempts:d=5,retryWait:g=async function(I){let V=1e3;for(let Y=0;Y<I;Y++)V*=2;await new Promise(Y=>setTimeout(Y,V+Math.floor(Math.random()*2700+300)))},shouldRetry:v=lm,isFatalConnectionProblem:S,on:b,webSocketImpl:w,generateID:_=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,I=>{const V=Math.random()*16|0;return(I=="x"?V:V&3|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:C}=e;let O;if(w){if(!yP(w))throw new Error("Invalid WebSocket implementation provided");O=w}
123else typeof WebSocket<"u"?O=WebSocket:typeof globalThis<"u"?O=globalThis.WebSocket||globalThis.MozWebSocket:typeof window<"u"&&(O=window.WebSocket||window.MozWebSocket);if(!O)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const A=O,N=(()=>{const oe=(()=>{const V={};return{on(Y,$){return V[Y]=$,()=>{delete V[Y]}},emit(Y){var $;"id"in Y&&(($=V[Y.id])===null||$===void 0||$.call(V,Y))}}})(),I={connecting:b!=null&&b.connecting?[b.connecting]:[],opened:b!=null&&b.opened?[b.opened]:[],connected:b!=null&&b.connected?[b.connected]:[],ping:b!=null&&b.ping?[b.ping]:[],pong:b!=null&&b.pong?[b.pong]:[],message:b!=null&&b.message?[oe.emit,b.message]:[oe.emit],closed:b!=null&&b.closed?[b.closed]:[],error:b!=null&&b.error?[b.error]:[]};return{onMessage:oe.on,on(V,Y){const $=I[V];return $.push(Y),()=>{$.splice($.indexOf(Y),1)}},emit(V,...Y){for(const $ of[...I[V]])$(...Y)}}})();function M(oe){const I=[N.on("error",V=>{I.forEach(Y=>Y()),oe(V)}),N.on("closed",V=>{I.forEach(Y=>Y()),oe(V)})]}let P,U=0,G,W=!1,te=0,se=!1;async function me(){clearTimeout(G);const[oe,I]=await(P??(P=new Promise(($,le)=>(async()=>{if(W){if(await g(te),!U)return P=void 0,le({code:1e3,reason:"All Subscriptions Gone"});te++}N.emit("connecting",W);const D=new A(typeof t=="function"?await t():t,hP);let F,Z;function ae(){isFinite(c)&&c>0&&(clearTimeout(Z),Z=setTimeout(()=>{D.readyState===A.OPEN&&(D.send(yl({type:bt.Ping})),N.emit("ping",!1,void 0))},c))}M(ye=>{P=void 0,clearTimeout(F),clearTimeout(Z),le(ye),ye instanceof AE&&(D.close(4499,"Terminated"),D.onerror=null,D.onclose=null)}),D.onerror=ye=>N.emit("error",ye),D.onclose=ye=>N.emit("closed",ye),D.onopen=async()=>{try{N.emit("opened",D);const ye=typeof n=="function"?await n():n;if(D.readyState!==A.OPEN)return;D.send(yl(ye?{type:bt.ConnectionInit,payload:ye}:{type:bt.ConnectionInit},T)),isFinite(h)&&h>0&&(F=setTimeout(()=>{D.close(nn.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},h)),ae()}catch(ye){N.emit("error",ye),D.close(nn.InternalClientError,OE(ye instanceof Error?ye.message:new Error(ye).message,"Internal client error"))}};let ge=!1;D.onmessage=({data:ye})=>{try{const fe=pP(ye,C);if(N.emit("message",fe),fe.type==="ping"||fe.type==="pong"){N.emit(fe.type,!0,fe.payload),fe.type==="pong"?ae():f||(D.send(yl(fe.payload?{type:bt.Pong,payload:fe.payload}:{type:bt.Pong})),N.emit("pong",!1,fe.payload));return}if(ge)return;if(fe.type!==bt.ConnectionAck)throw new Error(`First message cannot be of type ${fe.type}`);clearTimeout(F),ge=!0,N.emit("connected",D,fe.payload,W),W=!1,te=0,$([D,new Promise((nt,Ae)=>M(Ae))])}catch(fe){D.onmessage=null,N.emit("error",fe),D.close(nn.BadResponse,OE(fe instanceof Error?fe.message:new Error(fe).message,"Bad response"))}}})())));oe.readyState===A.CLOSING&&await I;let V=()=>{};const Y=new Promise($=>V=$);return[oe,V,Promise.race([Y.then(()=>{if(!U){const $=()=>oe.close(1e3,"Normal Closure");isFinite(l)&&l>0?G=setTimeout(()=>{oe.readyState===A.OPEN&&$()},l):$()}}),I])]}function re(oe){if(lm(oe)&&(gP(oe.code)||[nn.InternalServerError,nn.InternalClientError,nn.BadRequest,nn.BadResponse,nn.Unauthorized,nn.SubprotocolNotAcceptable,nn.SubscriberAlreadyExists,nn.TooManyInitialisationRequests].includes(oe.code)))throw oe;if(se)return!1;if(lm(oe)&&oe.code===1e3)return U>0;if(!d||te>=d||!v(oe)||S!=null&&S(oe))throw oe;return W=!0}a||(async()=>{for(U++;;)try{const[,,oe]=await me();await oe}catch(oe){try{if(!re(oe))return}catch(I){return o==null?void 0:o(I)}}})();function ce(oe,I){const V=_(oe);let Y=!1,$=!1,le=()=>{U--,Y=!0};return(async()=>{for(U++;;)try{const[D,F,Z]=await me();if(Y)return F();const ae=N.onMessage(V,ge=>{switch(ge.type){case bt.Next:{I.next(ge.payload);return}case bt.Error:{$=!0,Y=!0,I.error(ge.payload),le();return}case bt.Complete:{Y=!0,le();return}}});D.send(yl({id:V,type:bt.Subscribe,payload:oe},T)),le=()=>{!Y&&D.readyState===A.OPEN&&D.send(yl({id:V,type:bt.Complete},T)),U--,Y=!0,F()},await Z.finally(ae);return}catch(D){if(!re(D))return}})().then(()=>{$||I.complete()}).catch(D=>{I.error(D)}),()=>{Y||le()}}return{on:N.on,subscribe:ce,iterate(oe){const I=[],V={done:!1,error:null,resolve:()=>{}},Y=ce(oe,{next(le){I.push(le),V.resolve()},error(le){V.done=!0,V.error=le,V.resolve()},complete(){V.done=!0,V.resolve()}}),$=(function(){return mP(this,arguments,function*(){for(;;){for(I.length||(yield Wo(new Promise(F=>V.resolve=F)));I.length;)yield yield Wo(I.shift());if(V.error)throw V.error;if(V.done)return yield Wo(void 0)}})})();return $.throw=async le=>(V.done||(V.done=!0,V.error=le,V.resolve()),{done:!0,value:void 0}),$.return=async()=>(Y(),{done:!0,value:void 0}),$},async dispose(){if(se=!0,P){const[oe]=await P;oe.close(1e3,"Normal Closure")}},terminate(){P&&N.emit("closed",new AE)}}}
123class AE extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function lm(e){return Oi(e)&&"code"in e&&"reason"in e}function gP(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function yP(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function vP(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bP(e,t,n=""){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");if(typeof t!="function")throw new TypeError("Argument 2 `isExtractable` must be a function.");if(typeof n!="string")throw new TypeError("Argument 3 `path` must be a string.");const a=new Map,o=new Map;function l(c,f,h){if(t(c)){const v=o.get(c);return v?v.push(f):o.set(c,[f]),null}const d=Array.isArray(c)||typeof FileList<"u"&&c instanceof FileList,g=vP(c);if(d||g){let v=a.get(c);const S=!v;if(S&&(v=d?[]:c instanceof Object?{}:Object.create(null),a.set(c,v)),!h.has(c)){const b=f?`${f}.`:"",w=new Set(h).add(c);if(d){let _=0;for(const T of c){const C=l(T,b+_++,w);S&&v.push(C)}}else for(const _ in c){const T=l(c[_],b+_,w);S&&(v[_]=T)}}return v}return c}return{clone:l(e,n,new Set),files:o}}function SP(e,t,n){"name"in n?e.append(t,n,n.name):e.append(t,n)}function xP(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob}function EP({uri:e="/graphql",useGETForQueries:t,isExtractableFile:n=xP,FormData:a,formDataAppendFile:o=SP,print:l=K_,fetch:c,fetchOptions:f,credentials:h,headers:d,includeExtensions:g}={}){const v={http:{includeExtensions:g},options:f,credentials:h,headers:d};return new kn(S=>{const b=S.getContext(),{clientAwareness:{name:w,version:_}={},headers:T}=b,C={http:b.http,options:b.fetchOptions,credentials:b.credentials,headers:{...w&&{"apollographql-client-name":w},..._&&{"apollographql-client-version":_},...T}},{options:O,body:A}=W_(S,l,Y_,v,C),{clone:N,files:M}=bP(A,n,"");let P=Z_(S,e);if(M.size){O.headers&&delete O.headers["content-type"];const W=a||FormData,te=new W;te.append("operations",Bl(N,"Payload"));const se={};let me=0;M.forEach(re=>{se[++me]=re}),te.append("map",JSON.stringify(se)),me=0,M.forEach((re,ce)=>{o(te,String(++me),ce)}),O.body=te}else if(t&&!S.query.definitions.some(W=>W.kind==="OperationDefinition"&&W.operation==="mutation")&&(O.method="GET"),O.method==="GET"){const{newURI:W,parseError:te}=X_(P,A);if(te)return new qe(se=>{se.error(te)});P=W}else O.body=Bl(N,"Payload");const{controller:U}=nL();typeof U!="boolean"&&(O.signal&&(O.signal.aborted?U.abort():O.signal.addEventListener("abort",()=>{U.abort()},{once:!0})),O.signal=U.signal);const G=c||fetch;return new qe(W=>{let te;return G(P,O).then(se=>(S.setContext({response:se}),se)).then(Q_(S)).then(se=>{W.next(se),W.complete()}).catch(se=>{te||(se.result&&se.result.errors&&se.result.data&&W.next(se.result),W.error(se))}),()=>{te=!0,typeof U!="boolean"&&U.abort()}})})}var wP=e=>{switch(e){case"success":return CP;case"info":return OP;case"warning":return RP;case"error":return AP;default:return null}},_P=Array(12).fill(0),TP=({visible:e,className:t})=>ne.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ne.createElement("div",{className:"sonner-spinner"},_P.map((n,a)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),CP=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),RP=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OP=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),AP=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),NP=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),DP=()=>{let[e,t]=ne.useState(document.hidden);return ne.useEffect(()=>{let n=()=>{t(document.hidden)};
123return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},gg=1,kP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...a}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:gg++,l=this.toasts.find(f=>f.id===o),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...e,id:o,title:n}),{...f,...e,id:o,dismissible:c,title:n}):f):this.addToast({title:n,...a,dismissible:c,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
123this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let a=e instanceof Promise?e:e(),o=n!==void 0,l,c=a.then(async h=>{if(l=["resolve",h],ne.isValidElement(h))o=!1,this.create({id:n,type:"default",message:h});else if(jP(h)&&!h.ok){o=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${h.status}`):t.error,g=typeof t.description=="function"?await t.description(`HTTP error! status: ${h.status}`):t.description;this.create({id:n,type:"error",message:d,description:g})}else if(t.success!==void 0){o=!1;let d=typeof t.success=="function"?await t.success(h):t.success,g=typeof t.description=="function"?await t.description(h):t.description;this.create({id:n,type:"success",message:d,description:g})}}).catch(async h=>{if(l=["reject",h],t.error!==void 0){o=!1;let d=typeof t.error=="function"?await t.error(h):t.error,g=typeof t.description=="function"?await t.description(h):t.description;this.create({id:n,type:"error",message:d,description:g})}}).finally(()=>{var h;o&&(this.dismiss(n),n=void 0),(h=t.finally)==null||h.call(t)}),f=()=>new Promise((h,d)=>c.then(()=>l[0]==="reject"?d(l[1]):h(l[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:f}:Object.assign(n,{unwrap:f})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||gg++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},yn=new kP,MP=(e,t)=>{let n=(t==null?void 0:t.id)||gg++;return yn.addToast({title:e,...t,id:n}),n},jP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",IP=MP,LP=()=>yn.toasts,PP=()=>yn.getActiveToasts(),jl=Object.assign(IP,{success:yn.success,info:yn.info,warning:yn.warning,error:yn.error,custom:yn.custom,message:yn.message,promise:yn.promise,dismiss:yn.dismiss,loading:yn.loading},{getHistory:LP,getToasts:PP});function UP(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}UP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
123left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
123:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
123--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
124`);function jc(e){return e.label!==void 0}var zP=3,FP="32px",$P="16px",NE=4e3,VP=356,BP=14,qP=20,HP=200;function ar(...e){return e.filter(Boolean).join(" ")}function GP(e){let[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}var QP=e=>{var t,n,a,o,l,c,f,h,d,g,v;let{invert:S,toast:b,unstyled:w,interacting:_,setHeights:T,visibleToasts:C,heights:O,index:A,toasts:N,expanded:M,removeToast:P,defaultRichColors:U,closeButton:G,style:W,cancelButtonStyle:te,actionButtonStyle:se,className:me="",descriptionClassName:re="",duration:ce,position:oe,gap:I,loadingIcon:V,expandByDefault:Y,classNames:$,icons:le,closeButtonAriaLabel:D="Close toast",pauseWhenPageIsHidden:F}=e,[Z,ae]=ne.useState(null),[ge,ye]=ne.useState(null),[fe,nt]=ne.useState(!1),[Ae,Gt]=ne.useState(!1),[Sn,pr]=ne.useState(!1),[Zn,Mn]=ne.useState(!1),[oi,da]=ne.useState(!1),[vs,ha]=ne.useState(0),[mr,Qi]=ne.useState(0),Nr=ne.useRef(b.duration||ce||NE),pu=ne.useRef(null),Dr=ne.useRef(null),Xt=A===0,bd=A+1<=C,Jt=b.type,kr=b.dismissible!==!1,Yi=b.className||"",Sd=b.descriptionClassName||"",si=ne.useMemo(()=>O.findIndex(_e=>_e.toastId===b.id)||0,[O,b.id]),xd=ne.useMemo(()=>{var _e;return(_e=b.closeButton)!=null?_e:G},[b.closeButton,G]),mu=ne.useMemo(()=>b.duration||ce||NE,[b.duration,ce]),Mr=ne.useRef(0),Et=ne.useRef(0),Xn=ne.useRef(0),wt=ne.useRef(null),[Ed,wd]=oe.split("-"),gu=ne.useMemo(()=>O.reduce((_e,He,et)=>et>
124=si?_e:_e+He.height,0),[O,si]),li=DP(),Ki=b.invert||S,pa=Jt==="loading";Et.current=ne.useMemo(()=>si*I+gu,[si,gu]),ne.useEffect(()=>{Nr.current=mu},[mu]),ne.useEffect(()=>{nt(!0)},[]),ne.useEffect(()=>{let _e=Dr.current;if(_e){let He=_e.getBoundingClientRect().height;return Qi(He),T(et=>[{toastId:b.id,height:He,position:b.position},...et]),()=>T(et=>et.filter(en=>en.toastId!==b.id))}},[T,b.id]),ne.useLayoutEffect(()=>{if(!fe)return;let _e=Dr.current,He=_e.style.height;_e.style.height="auto";let et=_e.getBoundingClientRect().height;_e.style.height=He,Qi(et),T(en=>en.find(Pt=>Pt.toastId===b.id)?en.map(Pt=>Pt.toastId===b.id?{...Pt,height:et}:Pt):[{toastId:b.id,height:et,position:b.position},...en])},[fe,b.title,b.description,T,b.id]);let Qt=ne.useCallback(()=>{Gt(!0),ha(Et.current),T(_e=>_e.filter(He=>He.toastId!==b.id)),setTimeout(()=>{P(b)},HP)},[b,P,T,Et]);ne.useEffect(()=>{if(b.promise&&Jt==="loading"||b.duration===1/0||b.type==="loading")return;let _e;return M||_||F&&li?(()=>{if(Xn.current<Mr.current){let He=new Date().getTime()-Mr.current;Nr.current=Nr.current-He}Xn.current=new Date().getTime()})():Nr.current!==1/0&&(Mr.current=new Date().getTime(),_e=setTimeout(()=>{var He;(He=b.onAutoClose)==null||He.call(b,b),Qt()},Nr.current)),()=>clearTimeout(_e)},[M,_,b,Jt,F,li,Qt]),ne.useEffect(()=>{b.delete&&Qt()},[Qt,b.delete]);function Wi(){var _e,He,et;return le!=null&&le.loading?ne.createElement("div",{className:ar($==null?void 0:$.loader,(_e=b==null?void 0:b.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":Jt==="loading"},le.loading):V?ne.createElement("div",{className:ar($==null?void 0:$.loader,(He=b==null?void 0:b.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Jt==="loading"},V):ne.createElement(TP,{className:ar($==null?void 0:$.loader,(et=b==null?void 0:b.classNames)==null?void 0:et.loader),visible:Jt==="loading"})}return ne.createElement("li",{tabIndex:0,ref:Dr,className:ar(me,Yi,$==null?void 0:$.toast,(t=b==null?void 0:b.classNames)==null?void 0:t.toast,$==null?void 0:$.default,$==null?void 0:$[Jt],(n=b==null?void 0:b.classNames)==null?void 0:n[Jt]),"data-sonner-toast":"","data-rich-colors":(a=b.richColors)!=null?a:U,"data-styled":!(b.jsx||b.unstyled||w),"data-mounted":fe,"data-promise":!!b.promise,"data-swiped":oi,"data-removed":Ae,"data-visible":bd,"data-y-position":Ed,"data-x-position":wd,"data-index":A,"data-front":Xt,"data-swiping":Sn,"data-dismissible":kr,"data-type":Jt,"data-invert":Ki,"data-swipe-out":Zn,"data-swipe-direction":ge,"data-expanded":!!(M||Y&&fe),style:{"--index":A,"--toasts-before":A,"--z-index":N.length-A,"--offset":`${Ae?vs:Et.current}px`,"--initial-height":Y?"auto":`${mr}px`,...W,...b.style},onDragEnd:()=>{pr(!1),ae(null),wt.current=null},onPointerDown:_e=>{pa||!kr||(pu.current=new Date,ha(Et.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(pr(!0),wt.current={x:_e.clientX,y:_e.clientY}))},onPointerUp:()=>{var _e,He,et,en;if(Zn||!kr)return;wt.current=null;let Pt=Number(((_e=Dr.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gr=Number(((He=Dr.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),yr=new Date().getTime()-((et=pu.current)==null?void 0:et.getTime()),sn=Z==="x"?Pt:gr,Jn=Math.abs(sn)/yr;if(Math.abs(sn)>=qP||Jn>.11){ha(Et.current),(en=b.onDismiss)==null||en.call(b,b),ye(Z==="x"?Pt>0?"right":"left":gr>0?"down":"up"),Qt(),Mn(!0),da(!1);return}pr(!1),ae(null)},onPointerMove:_e=>{var He,et,en,Pt;if(!wt.current||!kr||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let gr=_e.clientY-wt.current.y,yr=_e.clientX-wt.current.x,sn=(et=e.swipeDirections)!=null?et:GP(oe);!Z&&(Math.abs(yr)>1||Math.abs(gr)>1)&&ae(Math.abs(yr)>Math.abs(gr)?"x":"y");let Jn={x:0,y:0};Z==="y"?(sn.includes("top")||sn.includes("bottom"))&&(sn.includes("top")&&gr<0||sn.includes("bottom")&&gr>0)&&(Jn.y=gr):Z==="x"&&(sn.includes("left")||sn.includes("right"))&&(sn.includes("left")&&yr<0||sn.includes("right")&&yr>0)&&(Jn.x=yr),(Math.abs(Jn.x)>0||Math.abs(Jn.y)>0)&&da(!0),(en=Dr.current)==null||en.style.setProperty("--swipe-amount-x",`${Jn.x}px`),(Pt=Dr.current)==null||Pt.style.setProperty("--swipe-amount-y",`${Jn.y}px`)}}
124,xd&&!b.jsx?ne.createElement("button",{"aria-label":D,"data-disabled":pa,"data-close-button":!0,onClick:pa||!kr?()=>{}:()=>{var _e;Qt(),(_e=b.onDismiss)==null||_e.call(b,b)},className:ar($==null?void 0:$.closeButton,(o=b==null?void 0:b.classNames)==null?void 0:o.closeButton)},(l=le==null?void 0:le.close)!=null?l:NP):null,b.jsx||x.isValidElement(b.title)?b.jsx?b.jsx:typeof b.title=="function"?b.title():b.title:ne.createElement(ne.Fragment,null,Jt||b.icon||b.promise?ne.createElement("div",{"data-icon":"",className:ar($==null?void 0:$.icon,(c=b==null?void 0:b.classNames)==null?void 0:c.icon)},b.promise||b.type==="loading"&&!b.icon?b.icon||Wi():null,b.type!=="loading"?b.icon||(le==null?void 0:le[Jt])||wP(Jt):null):null,ne.createElement("div",{"data-content":"",className:ar($==null?void 0:$.content,(f=b==null?void 0:b.classNames)==null?void 0:f.content)},ne.createElement("div",{"data-title":"",className:ar($==null?void 0:$.title,(h=b==null?void 0:b.classNames)==null?void 0:h.title)},typeof b.title=="function"?b.title():b.title),b.description?ne.createElement("div",{"data-description":"",className:ar(re,Sd,$==null?void 0:$.description,(d=b==null?void 0:b.classNames)==null?void 0:d.description)},typeof b.description=="function"?b.description():b.description):null),x.isValidElement(b.cancel)?b.cancel:b.cancel&&jc(b.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||te,onClick:_e=>{var He,et;jc(b.cancel)&&kr&&((et=(He=b.cancel).onClick)==null||et.call(He,_e),Qt())},className:ar($==null?void 0:$.cancelButton,(g=b==null?void 0:b.classNames)==null?void 0:g.cancelButton)},b.cancel.label):null,x.isValidElement(b.action)?b.action:b.action&&jc(b.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||se,onClick:_e=>{var He,et;jc(b.action)&&((et=(He=b.action).onClick)==null||et.call(He,_e),!_e.defaultPrevented&&Qt())},className:ar($==null?void 0:$.actionButton,(v=b==null?void 0:b.classNames)==null?void 0:v.actionButton)},b.action.label):null))};function DE(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function YP(e,t){let n={};return[e,t].forEach((a,o)=>{let l=o===1,c=l?"--mobile-offset":"--offset",f=l?$P:FP;function h(d){["top","right","bottom","left"].forEach(g=>{n[`${c}-${g}`]=typeof d=="number"?`${d}px`:d})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(d=>{a[d]===void 0?n[`${c}-${d}`]=f:n[`${c}-${d}`]=typeof a[d]=="number"?`${a[d]}px`:a[d]}):h(f)}),n}var KP=x.forwardRef(function(e,t){let{invert:n,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:c,className:f,offset:h,mobileOffset:d,theme:g="light",richColors:v,duration:S,style:b,visibleToasts:w=zP,toastOptions:_,dir:T=DE(),gap:C=BP,loadingIcon:O,icons:A,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:M}=e,[P,U]=ne.useState([]),G=ne.useMemo(()=>Array.from(new Set([a].concat(P.filter(F=>F.position).map(F=>F.position)))),[P,a]),[W,te]=ne.useState([]),[se,me]=ne.useState(!1),[re,ce]=ne.useState(!1),[oe,I]=ne.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=ne.useRef(null),Y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=ne.useRef(null),le=ne.useRef(!1),D=ne.useCallback(F=>{U(Z=>{var ae;return(ae=Z.find(ge=>ge.id===F.id))!=null&&ae.delete||yn.dismiss(F.id),Z.filter(({id:ge})=>ge!==F.id)})},[]);return ne.useEffect(()=>yn.subscribe(F=>{if(F.dismiss){U(Z=>Z.map(ae=>ae.id===F.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{Z1.flushSync(()=>{U(Z=>{let ae=Z.findIndex(ge=>ge.id===F.id);return ae!==-1?[...Z.slice(0,ae),{...Z[ae],...F},...Z.slice(ae+1)]:[F,...Z]})})})}),[]),ne.useEffect(()=>{if(g!=="system"){I(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:Z})=>
124{I(Z?"dark":"light")})}catch{F.addListener(({matches:ae})=>{try{I(ae?"dark":"light")}catch(ge){console.error(ge)}})}},[g]),ne.useEffect(()=>{P.length<=1&&me(!1)},[P]),ne.useEffect(()=>{let F=Z=>{var ae,ge;o.every(ye=>Z[ye]||Z.code===ye)&&(me(!0),(ae=V.current)==null||ae.focus()),Z.code==="Escape"&&(document.activeElement===V.current||(ge=V.current)!=null&&ge.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[o]),ne.useEffect(()=>{if(V.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,le.current=!1)}},[V.current]),ne.createElement("section",{ref:t,"aria-label":`${N} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},G.map((F,Z)=>{var ae;let[ge,ye]=F.split("-");return P.length?ne.createElement("ol",{key:F,dir:T==="auto"?DE():T,tabIndex:-1,ref:V,className:f,"data-sonner-toaster":!0,"data-theme":oe,"data-y-position":ge,"data-lifted":se&&P.length>1&&!l,"data-x-position":ye,style:{"--front-toast-height":`${((ae=W[0])==null?void 0:ae.height)||0}px`,"--width":`${VP}px`,"--gap":`${C}px`,...b,...YP(h,d)},onBlur:fe=>{le.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(le.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||le.current||(le.current=!0,$.current=fe.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{re||me(!1)},onDragEnd:()=>me(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},P.filter(fe=>!fe.position&&Z===0||fe.position===F).map((fe,nt)=>{var Ae,Gt;return ne.createElement(QP,{key:fe.id,icons:A,index:nt,toast:fe,defaultRichColors:v,duration:(Ae=_==null?void 0:_.duration)!=null?Ae:S,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Gt=_==null?void 0:_.closeButton)!=null?Gt:c,interacting:re,position:F,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,removeToast:D,toasts:P.filter(Sn=>Sn.position==fe.position),heights:W.filter(Sn=>Sn.position==fe.position),setHeights:te,expandByDefault:l,gap:C,loadingIcon:O,expanded:se,pauseWhenPageIsHidden:M,swipeDirections:e.swipeDirections})})):null}))}),ea=(e=>(e.AUTHENTICATION="AUTHENTICATION",e.AUTHORIZATION="AUTHORIZATION",e.VALIDATION="VALIDATION",e.NOT_FOUND="NOT_FOUND",e.CONFLICT="CONFLICT",e.RATE_LIMIT="RATE_LIMIT",e.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNKNOWN="UNKNOWN",e))(ea||{});const WP={AUTHENTICATION:"Your session has expired. Please log in again.",AUTHORIZATION:"You do not have permission to perform this action.",VALIDATION:"Please check your input and try again.",NOT_FOUND:"The requested resource was not found.",CONFLICT:"This action conflicts with existing data.",RATE_LIMIT:"Too many requests. Please wait a moment and try again.",SERVICE_UNAVAILABLE:"This service is temporarily unavailable. Please try again in a few moments.",SERVER_ERROR:"Server error occurred. Our team has been notified.",NETWORK_ERROR:"Network connection issue. Please check your internet connection.",UNKNOWN:"An unexpected error occurred. Please try again."},ZP={UNAUTHENTICATED:"AUTHENTICATION",UNAUTHORIZED:"AUTHORIZATION",FORBIDDEN:"AUTHORIZATION",BAD_USER_INPUT:"VALIDATION",BAD_REQUEST:"VALIDATION",VALIDATION_ERROR:"VALIDATION",NOT_FOUND:"NOT_FOUND",CONFLICT:"CONFLICT",RATE_LIMITED:"RATE_LIMIT",SERVICE_BUSY:"SERVICE_UNAVAILABLE",SERVICE_UNAVAILABLE:"SERVICE_UNAVAILABLE",DATA_FETCHING_EXCEPTION:"SERVER_ERROR",EXCEPTION_WHILE_FETCHING_DATA:"SERVER_ERROR",INTERNAL_SERVER_ERROR:"SERVER_ERROR",INTERNAL_ERROR:"SERVER_ERROR"},XP=["daily limit","rate limit","budget","suspended","blocked"],JP=["session has expired","session expired","please log in","authentication required","unauthenticated"],kE=e=>JP.some(t=>e.includes(t)),ME=e=>{if(typeof e!="string")return;const t=e.trim().replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/[^A-Za-z0-9]+/g,"_").toUpperCase();return ZP[t]};function e3(e){if(e===401)return"AUTHENTICATION";if(e===403)return"AUTHORIZATION";if(e===404)return"NOT_FOUND";if(e===409)return"CONFLICT";if(e===429)return"RATE_LIMIT";if(e===502||e===503||e===504)return"SERVICE_UNAVAILABLE";if(e>=500)return"SERVER_ERROR"}function t3(e={}){const t={...WP,...e.errorMessages},n=d=>{var S,b;const g=d.message.toLowerCase();if(XP.some(w=>g.includes(w)))return"RATE_LIMIT";const v=ME((S=d.extensions)==null?void 0:S.code)??ME((b=d.extensions)==null?void 0:b.classification);return v?v==="AUTHORIZATION"&&kE(g)?"AUTHENTICATION":v:kE(g)?"AUTHENTICATION":g.includes("temporarily unavailable")||g.includes("service unavailable")?"SERVICE_UNAVAILABLE":g.includes("datafetchingexception")||g.includes("exception while fetching data")||g.includes("internal server error")?"SERVER_ERROR":g.includes("not found")?"NOT_FOUND":g.includes("token expired")||g.includes("invalid token")?"AUTHENTICATION":g.includes("unauthorized")||g.includes("forbidden")||g.includes("permission")||g.includes("don't have permission")||g.includes("access denied")?"AUTHORIZATION":g.includes("validation")||g.includes("invalid")?"VALIDATION":g.includes("conflict")||g.includes("already exists")?"CONFLICT":"UNKNOWN"},a=d=>{if("statusCode"in d){const g=e3(d.statusCode);if(g!==void 0)return g}return d.message==="Failed to fetch"||d.message.includes("NetworkError")?"NETWORK_E
124RROR":"UNKNOWN"},o=(d,g)=>{const v=t[d];return d==="SERVICE_UNAVAILABLE"&&g||d==="RATE_LIMIT"&&e.useOriginalRateLimitMessage&&g?g:d==="VALIDATION"&&g?`${v} ${g}`:v},l=(d,g,v)=>{jl.error(o(d,g),{duration:(v==null?void 0:v.duration)??5e3,action:v==null?void 0:v.action})};return{categorizeGraphQLError:n,categorizeNetworkError:a,getUserFriendlyMessage:o,handleGraphQLErrors:(d,g)=>{const v=[];return d.forEach(S=>{var w;const b=n(S);if(v.push(b),e.logGraphQLErrors&&console.error("[GraphQL Error]",{category:b,message:S.message,path:S.path,extensions:S.extensions}),b==="AUTHENTICATION"){g!=null&&g.onAuthError?g.onAuthError():(w=e.emitSessionExpired)==null||w.call(e);return}b==="AUTHORIZATION"&&(g!=null&&g.onAuthorizationError)&&g.onAuthorizationError(),(g==null?void 0:g.showToast)!==!1&&l(b,S.message)}),v},handleNetworkError:(d,g)=>{var S;const v=a(d);return e.logNetworkErrors!==!1&&console.error("[Network Error]",{category:v,message:d.message,error:d}),v==="AUTHENTICATION"?(g!=null&&g.onAuthError?g.onAuthError():(S=e.emitSessionExpired)==null||S.call(e),v):((g==null?void 0:g.showToast)!==!1&&l(v,d.message),v)},logErrorToMonitoring:(d,g,v)=>{e.logMonitoringInProduction&&console.log("[Error Monitoring]",{category:d,message:g.message,stack:"stack"in g?g.stack:void 0,context:v,timestamp:new Date().toISOString()})},showErrorToast:l}}const jT=6e4,n3=new Set([ea.SERVER_ERROR,ea.SERVICE_UNAVAILABLE,ea.NETWORK_ERROR,ea.UNKNOWN]),r3=["auth","login","logout","mfa","password","token","storecredential","reportclienterror"],a3=new Set(["variables","input","payload","body","headers","authorization","token","secret","password","card","clientsecret","checkoutid","canvasjson"]),i3=["boundaryLevel","causationId","componentHandled","componentStack","consumerGroup","correlationId","errorCode","failureCount","gateway","operation","renderer","requestId","retryCount","sourceEventId","sourceTopic","spanId","statusCode","successCount","traceId","workflow","workflowInstanceId","workflowStep","workflowType"],o3=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,s3=/^(?=.*\d)[A-Za-z0-9_-]{10,}$/,l3=/^(pi|afs|paymob|checkout|payment|ord)[_-][A-Z0-9_-]{6,}$/i,u3=`
125  mutation ReportClientError($input: ClientErrorInput!) {
126    reportClientError(input: $input)
127  }
128`;function c3(e){const t=new Map;return(n,a,o)=>{var c;if((c=e.baseLogError)==null||c.call(e,n,a,o),!f3(n,o,e.shouldReport))return;const l=m3(e.portalName,n,a,o);h3(t,l)||g3(e,n,a,o).catch(T3)}}const f3=(e,t,n)=>!n3.has(e)||d3(t)?!1:n?n(e,t):!0,d3=e=>{const t=String((e==null?void 0:e.operation)??"").toLowerCase();return r3.some(n=>t.includes(n))},h3=(e,t)=>{const n=Date.now(),a=e.get(t);return p3(e,n),a&&n-a<jT?!0:(e.set(t,n),!1)},p3=(e,t)=>{e.forEach((n,a)=>{t-n>jT*2&&e.delete(a)})},m3=(e,t,n,a)=>[e,t,String((a==null?void 0:a.operation)??""),wy(),String((a==null?void 0:a.workflowType)??(a==null?void 0:a.workflow)??""),String((a==null?void 0:a.workflowStep)??""),n.message].join("|"),g3=async(e,t,n,a)=>{const o=await e.getAccessToken();o&&await fetch(e.getGraphQLEndpoint(),{method:"POST",headers:y3(e.portalType,o),body:JSON.stringify({query:u3,variables:{input:{portalName:e.portalName,severity:t===ea.UNKNOWN?"INFO":"WARNING",subject:`${e.subjectPrefix} ${t}`,message:x3(t,n,a),stackTrace:void 0,requestPath:wy(),traceId:Ey(a==null?void 0:a.traceId),body:v3(t,a)}}})})},y3=(e,t)=>({"Content-Type":"application/json",Authorization:`Bearer ${t}`,"X-Portal-Type":e}),v3=(e,t)=>{const n={category:e,route:E3(t==null?void 0:t.route),variablesDropped:b3(t)};return i3.forEach(a=>{const o=S3(t==null?void 0:t[a]);o!==void 0&&(n[a]=o)}),n},b3=e=>e?e.variablesDropped===!0?!0:Object.keys(e).some(t=>a3.has(t.toLowerCase())):!1,S3=e=>{if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e},x3=(e,t,n)=>{const a=Ey(n==null?void 0:n.operation),o="extensions"in t?"GraphQL error":"Client error";return a?`${o} ${e} while running ${a}`:`${o} ${e}`},Ey=e=>typeof e=="string"&&e.trim()?e:void 0,E3=e=>IT(e)??wy(),IT=e=>{const t=Ey(e);if(!t)return null;const n=t.split(/[?#]/)[0];return n.startsWith("/")?n.replace(/\/{2,}/g,"/").split("/").map(w3).join("/")||"/":null},w3=e=>_3(e)?":id":e,_3=e=>o3.test(e)||s3.test(e)||l3.test(e),T3=()=>{},wy=()=>typeof globalThis.window>
128"u"?null:IT(globalThis.window.location.pathname);function C3(){let e=[],t=!1;return{subscribe(n){return e.push(n),()=>{e=e.filter(a=>a!==n)}},emit(){t||e.forEach(n=>n())},setManualLogout(n){t=n},getIsManualLogout(){return t}}}const yg=C3(),jE=e=>{let t;const n=new Set,a=(d,g)=>{const v=typeof d=="function"?d(t):d;if(!Object.is(v,t)){const S=t;t=g??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(b=>b(t,S))}},o=()=>t,f={setState:a,getState:o,getInitialState:()=>h,subscribe:d=>(n.add(d),()=>n.delete(d))},h=t=e(a,o,f);return f},R3=(e=>e?jE(e):jE),O3=e=>e;function A3(e,t=O3){const n=ne.useSyncExternalStore(e.subscribe,ne.useCallback(()=>t(e.getState()),[e,t]),ne.useCallback(()=>t(e.getInitialState()),[e,t]));return ne.useDebugValue(n),n}const N3=e=>{const t=R3(e),n=a=>A3(t,a);return Object.assign(n,t),n},D3=(e=>N3);function k3(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var l;const c=h=>h===null?null:JSON.parse(h,void 0),f=(l=n.getItem(o))!=null?l:null;return f instanceof Promise?f.then(c):c(f)},setItem:(o,l)=>n.setItem(o,JSON.stringify(l,void 0)),removeItem:o=>n.removeItem(o)}}const vg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(a){return vg(a)(n)},catch(a){return this}}}catch(n){return{then(a){return this},catch(a){return vg(a)(n)}}}},M3=(e,t)=>(n,a,o)=>{let l={storage:k3(()=>window.localStorage),partialize:T=>T,version:0,merge:(T,C)=>({...C,...T}),...t},c=!1,f=0;const h=new Set,d=new Set;let g=l.storage;if(!g)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...T)},a,o);const v=()=>{const T=l.partialize({...a()});return g.setItem(l.name,{state:T,version:l.version})},S=o.setState;o.setState=(T,C)=>(S(T,C),v());const b=e((...T)=>(n(...T),v()),a,o);o.getInitialState=()=>b;let w;const _=()=>{var T,C;if(!g)return;const O=++f;c=!1,h.forEach(N=>{var M;return N((M=a())!=null?M:b)});const A=((C=l.onRehydrateStorage)==null?void 0:C.call(l,(T=a())!=null?T:b))||void 0;return vg(g.getItem.bind(g))(l.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==l.version){if(l.migrate){const M=l.migrate(N.state,N.version);return M instanceof Promise?M.then(P=>[!0,P]):[!0,M]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,N.state];return[!1,void 0]}).then(N=>{var M;if(O!==f)return;const[P,U]=N;if(w=l.merge(U,(M=a())!=null?M:b),n(w,!0),P)return v()}).then(()=>{O===f&&(A==null||A(a(),void 0),w=a(),c=!0,d.forEach(N=>N(w)))}).catch(N=>{O===f&&(A==null||A(void 0,N))})};return o.persist={setOptions:T=>{l={...l,...T},T.storage&&(g=T.storage)},clearStorage:()=>{g==null||g.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>_(),hasHydrated:()=>c,onHydrate:T=>(h.add(T),()=>{h.delete(T)}),onFinishHydration:T=>(d.add(T),()=>{d.delete(T)})},l.skipHydration||_(),w||b},j3=M3,Kt=D3()(j3((e,t)=>({user:null,isAuthenticated:!1,isLoading:!1,token:null,refreshToken:null,expires
128In:null,mfaEnabled:!1,setUser:n=>e(()=>({user:n,isAuthenticated:!!n})),setToken:n=>e(()=>({token:n})),setRefreshToken:n=>e(()=>({refreshToken:n})),setLoading:n=>e(()=>({isLoading:n})),setMfaEnabled:n=>e(()=>({mfaEnabled:n})),login:(n,a,o,l)=>{if(a&&localStorage.setItem("customer_token",a),o&&localStorage.setItem("customer_refresh_token",o),l){const c=Date.now()+l;localStorage.setItem("customer_token_expiry",c.toString())}e(()=>({user:n,token:a,refreshToken:o,expiresIn:l,isAuthenticated:!0,isLoading:!1}))},refreshSession:(n,a,o)=>{localStorage.setItem("customer_token",n),localStorage.setItem("customer_refresh_token",a),localStorage.setItem("customer_token_expiry",(Date.now()+o).toString()),e(()=>({token:n,refreshToken:a,expiresIn:o,isAuthenticated:!0,isLoading:!1}))},logout:()=>{localStorage.removeItem("customer_token"),localStorage.removeItem("customer_refresh_token"),localStorage.removeItem("customer_token_expiry"),localStorage.removeItem("customer-auth-storage"),localStorage.removeItem("studio_user_info"),e(()=>
128({user:null,token:null,refreshToken:null,expiresIn:null,isAuthenticated:!1,isLoading:!1,mfaEnabled:!1}))},updateUser:n=>e(a=>({user:a.user?{...a.user,...n}:null})),hasRole:n=>{const{user:a}=t();return a!=null&&a.role?a.role===n:!1},hasSubscription:n=>{var o;const{user:a}=t();return((o=a==null?void 0:a.profile)==null?void 0:o.subscriptionTier)===n},isSubscriptionActive:()=>{var a;const{user:n}=t();return((a=n==null?void 0:n.profile)==null?void 0:a.subscriptionStatus)==="ACTIVE"}}),{name:"customer-auth-storage",partialize:e=>({user:e.user,token:e.token,refreshToken:e.refreshToken,expiresIn:e.expiresIn,isAuthenticated:e.isAuthenticated,mfaEnabled:e.mfaEnabled}),onRehydrateStorage:()=>e=>{e!=null&&e.token&&localStorage.setItem("customer_token",e.token),e!=null&&e.refreshToken&&localStorage.setItem("customer_refresh_token",e.refreshToken)}})),uH=()=>Kt(e=>e.isAuthenticated),cH=()=>Kt(e=>e.user),LT=()=>typeof globalThis.window>"u"?"":globalThis.location.hostname,_y=()=>{const e=LT();return e==="printarex.com"||e==="www.printarex.com"?"https://gateway.printarex.com/graphql":e==="dev.printarex.com"?"https://dev-gateway.printarex.com/graphql":e==="uat.printarex.com"?"https://uat-gateway.printarex.com/graphql":"https://gateway.printarex.com/graphql"},PT=()=>{const e=LT();return e==="printarex.com"||e==="www.printarex.com"?"wss://gateway.printarex.com/graphql/subscriptions":e==="dev.printarex.com"?"wss://dev-gateway.printarex.com/graphql/subscriptions":e==="uat.printarex.com"?"wss://uat-gateway.printarex.com/graphql/subscriptions":"wss://gateway.printarex.com/graphql/subscriptions"},I3=PT,L3=PT,lr="customer_token",$i="customer_refresh_token",UT="customer_token_expiry",P3="customer-auth-storage",U3=300*1e3,z3=1e4,F3=3e4,$3={"Content-Type":"application/json","X-Portal-Type":"CUSTOMER"},V3=`
129  mutation RefreshToken($refreshToken: String!) {
130    refreshToken(refreshToken: $refreshToken) {
131      accessToken
132      refreshToken
133      expiresIn
134    }
135  }
136`,Wf="refreshed",ia="transient-unavailable",ou="denied",B3=new Set(["UNAUTHENTICATED","FORBIDDEN","UNAUTHORIZED","INVALID_CREDENTIALS","ACCOUNT_SECURITY_SUSPENDED"]);let Ic=null,Ty=null;const zT=()=>{try{return globalThis.localStorage}catch{return null}},oa=(e,t)=>{console.warn("[Customer Session] Session operation failed.",e,t)},Ht=e=>{const t=zT();if(!t)return null;try{return t.getItem(e)??null}catch(n){return oa("read customer session storage",n),null}},sf=e=>{const t=zT();if(t)try{t.removeItem(e)}catch(n){oa("clear customer session storage",n)}},FT=e=>{if(!e||typeof globalThis.atob!="function")return null;const t=e.split(".")[1];if(!t)return null;try{const n=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(globalThis.atob(n))}catch{return null}},q3=e=>{const t=FT(e),n=(t==null?void 0:t.session_id)??(t==null?void 0:t.sessionId);return typeof n=="string"&&n?n:null},$T=()=>{const e=Ht(lr);return e?{accessToken:e,refreshToken:Ht($i),sessionId:q3(e)}:null},IE=e=>{const t=FT(e),n=typeof(t==null?void 0:t.exp)=="number"?t.exp:Number.parseInt(String((t==null?void 0:t.exp)??""),10);return Number.isFinite(n)?n*1e3:null},H3=()=>{const e=Ht(UT);if(!e)return IE(Ht(lr));const t=Number.parseInt(e,10);return Number.isFinite(t)?t:IE(Ht(lr))},Di=()=>!!(Ht(lr)&&Ht($i)),Li=(e=0)=>{if(!Ht(lr))return!0;const n=H3();return n?Date.now()+e>=n:!0},G3=()=>{sf(lr),sf($i),sf(UT),Ty=null},Q3=()=>{G3(),sf(P3)},Vi=(e={})=>{try{Kt.getState().logout()}catch(t){oa("log out customer session",t)}if(Q3(),e.redirectToLogin&&typeof globalThis.window<"u"&&!`${globalThis.window.location.pathname}${globalThis.window.location.search}`.startsWith("/login"))try{globalThis.window.location.assign("/login")}catch(n){oa("redirect customer to login",n)}},LE=async()=>await VT()===Wf,VT=async()=>{let e;try{e=await K3()}catch(t){oa("apply customer session refresh",t),e=ia}try{Y3(e)}catch(t){oa("remember customer session refresh outcome",t)}return e},Y3=e=>{const t=Ht(lr),n=Ht($i);Ty=e===ia&&t&&n&&!Li(0)?{accessToken:t,refreshToken:n,retryAfter:Date.now()+F3}:null},K3=()=>(Ic||(Ic=W3().finally(()=>{Ic=null})),Ic),W3=async()=>{const e=Ht(lr),t=Ht($i);if(!t)return Vi(),ou;let n;try{n=await Z3(t)}catch(a){return console.warn("[Customer Session] Unable to refresh session before expiry.",a),ia}try{return n4(n,e,t)}catch(a){return oa("apply customer session refresh response",a),ia}},Z3=async e=>{const t=new AbortController,n=globalThis.setTimeout(()=>{t.abort()},z3);try{const a=await fetch(_y(),{method:"POST",headers:$3,body:u4(e),signal:t.signal});return X3(a)}finally{globalThis.clearTimeout(n)}}
136,X3=async e=>{if(!e.ok)return{kind:"http-error",status:e.status};try{const t=await e.json();return t4(t)?{kind:"payload",payload:t}:{kind:"malformed"}}catch{return{kind:"malformed"}}},J3=(e,t,n)=>e===401||e===403?su(t,n)?(Vi(),ou):Zf():ia,PE=e=>typeof e=="string"&&B3.has(e),e4=e=>(e==null?void 0:e.some(t=>{var n,a;return PE((n=t.extensions)==null?void 0:n.code)||PE((a=t.extensions)==null?void 0:a.classification)}))??!1,t4=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e,n=t.data===void 0||t.data===null||typeof t.data=="object"&&!Array.isArray(t.data),a=t.errors===void 0||Array.isArray(t.errors)&&t.errors.every(o=>o!==null&&typeof o=="object"&&!Array.isArray(o));return n&&a},n4=(e,t,n)=>e.kind==="http-error"?J3(e.status,t,n):e.kind==="malformed"?BT(t,n):r4(e.payload,t,n),r4=(e,t,n)=>{var l;const a=a4(t,n,e.errors);if(a)return a;const o=(l=e.data)==null?void 0:l.refreshToken;return c4(o)?s4(o,t,n):BT(t,n)},a4=(e,t,n)=>n!=null&&n.length?e4(n)?su(e,t)?(Vi(),ou):Zf():ia:null,su=(e,t)=>e===Ht(lr)&&t===Ht($i),Zf=()=>Li(0)?ou:Wf,BT=(e,t)=>su(e,t)?ia:Zf(),i4=(e,t)=>e.sessionId!==null&&t.sessionId!==null?e.sessionId===t.sessionId:su(e.accessToken,e.refreshToken),o4=e=>{const t=$T();t&&i4(e,t)&&Vi()},s4=(e,t,n)=>su(t,n)?l4(e)?Wf:ia:Zf(),l4=e=>{try{return Kt.getState().refreshSession(e.accessToken,e.refreshToken,e.expiresIn),!0}catch(t){return oa("store refreshed customer session",t),!1}},u4=e=>JSON.stringify({query:V3,variables:{refreshToken:e}}),c4=e=>!!(typeof(e==null?void 0:e.accessToken)=="string"&&e.accessToken&&typeof e.refreshToken=="string"&&e.refreshToken&&typeof e.expiresIn=="number"&&Number.isFinite(e.expiresIn)&&e.expiresIn>0),f4=async(e=U3)=>{const t=Ht(lr);if(!t)return!1;const n=Li(0);if(!n&&!Li(e))return!0;if(!Di())return n&&Vi(),!n;if(!n){const a=Ht($i),o=Ty;return o!==null&&t===o.accessToken&&a===o.refreshToken&&Date.now()<o.retryAfter||LE().catch(c=>{oa("proactive customer session refresh",c)}),!0}return LE()},Cy=async()=>await f4()||!Li(0)?Ht(lr):null,lu=t3({emitSessionExpired:()=>{yg.emit(),Vi({redirectToLogin:!yg.getIsManualLogout()})},useOriginalRateLimitMessage:!0}),d4=new Set([ea.SERVICE_UNAVAILABLE,ea.NETWORK_ERROR]),h4=e=>e.suppressGlobalErrorMonitoring!==!0,p4=c3({portalName:"customer-portal",portalType:"CUSTOMER",subjectPrefix:"Customer portal",getAccessToken:Cy,getGraphQLEndpoint:_y,baseLogError:(e,t,n
136)=>{n!=null&&n.componentHandled||lu.logErrorToMonitoring(e,t,n)},shouldReport:(e,t)=>!(t!=null&&t.componentHandled&&d4.has(e))}),m4=lu.categorizeGraphQLError,g4=lu.categorizeNetworkError,UE=lu.handleGraphQLErrors,zE=lu.handleNetworkError,FE=p4;let bg="disconnected";const Sg=new Set;function $E(){return bg}function y4(e){bg!==e&&(bg=e,Sg.forEach(t=>t()))}function v4(e){return Sg.add(e),()=>Sg.delete(e)}function fH(){return x.useSyncExternalStore(v4,$E,$E)}function dH({status:e,isDocumentVisible:t,realtimeAttempted:n=!0,subscriptionFallbackRequired:a=!1}){return t&&(a||n&&e!=="connected")}function hH({previousStatus:e,status:t,isDocumentVisible:n,reconciliationRequired:a}){const l=a||e==="connected"&&t!=="connected",c=l&&t==="connected"&&n;return{reconciliationRequired:l&&!c,shouldReconcile:c}}function b4(e){return typeof document>"u"?()=>{}:(document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e))}function S4(){return typeof document>"u"||document.visibilityState==="visible"}function pH(){return x.useSyncExternalStore(b4,S4,()=>!0)}function x4(){const e=new Uint8Array(24);crypto.getRandomValues(e);const t=Array.from(e.slice(0,16),a=>a.toString(16).padStart(2,"0")).join(""),n=Array.from(e.slice(16,24),a=>a.toString(16).padStart(2,"0")).join("");return`00-${t}-${n}-01`}const E4=new Set([nn.Unauthorized,nn.Forbidden]),w4=e=>typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="number",qT=e=>w4(e)&&E4.has(e.code),_4=e=>!qT(e),T4=_y(),C4=I3(),R4=L3(),O4="X-Customer-Session-State",A4="REFRESH_UNAVAILABLE",N4=async()=>{const e=Di(),t=await Cy();return t?{kind:"authenticated",token:t}:e&&Di()?{kind:"refresh-unavailable"}:{kind:"anonymous"}},xg=e=>typeof e=="object"&&e!==null?e:null,D4=e=>{const t=xg(e);return!t||!("target"in t)?null:xg(t.target)},k4=EP({uri:T4,credentials:"include",headers:{"Apollo-Require-Preflight":"true"}}),HT=(e,t,n)=>{const a=new WeakMap;let o=null;const l=f=>{const h=$T();o&&(h==null?void 0:h.accessToken)===f&&a.set(o,h)},c=f=>{const h=D4(f);if(!h)return;const d=a.get(h);qT(f)&&d&&o4(d),a.delete(h),o===h&&(o=null)};return{url:e,lazy:!0,keepAlive:3e4,connectionParams:async()=>{const f=await N4();return f.kind==="authenticated"?(l(f.token),{Authorization:`Bearer ${f.token}`,"X-Portal-Type":"CUSTOMER"}):{Authorization:"","X-Portal-Type":"CUSTOMER",...f.kind==="refresh-unavailable"?{[O4]:A4}:{}}},retryAttempts:Number.POSITIVE_INFINITY,shouldRetry:_4,retryWait:async f=>{const h=Math.min(1e3*Math.pow(2,f),3e4);await new Promise(d=>setTimeout(d,h))},on:{connecting:()=>n==null?void 0:n("connecting"),opened:f=>{o=xg(f)},connected:()=>n==null?void 0:n("connected"),closed:f=>{c(f),n==null||n("disconnected")},error:f=>{n==null||n("disconnected"),console.error("[GraphQL WS] Error",{serviceName:t,error:f})}}}},M4=new DT(MT(HT(C4,"notification-service",y4))),j4=new DT(MT(HT(R4,"product-service"))),I4=new Set(["onNewNotification","onUnreadCountChanged","onNewCustomerMessage","onCustomerMessageUnreadCountChanged"]),GT=e=>{const t=Fi(e);return t.kind==="OperationDefinition"&&t.operation==="subscription"},L4=e=>{var n;const t=Fi(e);if(t.kind==="OperationDefinition"&&t.operation==="subscription"){const a=(n=t.selectionSet)==null?void 0:n.selections;if((a==null?void 0:a.length)>0){const o=a[0];if("name"in o&&o.name)return o.name.value}}return null},P4=B_(({query:e})=>{const t=L4(e);return t!==null&&I4.has(t)},M4,j4),U4=new kn((e,t)=>(e.setContext(({headers:n={}})=>({headers:{...n,traceparent:x4()}})),t(e))),z4=new Set(["AuthConfig","Login","Register","GoogleAuth","FacebookAuth","RefreshToken","RequestPasswordReset","ResetPassword","VerifyEmail","VerifyMfaChallenge","RequestMfaEmailOtp","RefreshMfaChallenge"]),F4=uP(async(e,{headers:t={}})=>{const n={...t,"X-Portal-Type":"CUSTOMER"};if(e.operationName&&z4.has(e.operationName))return{headers:n};const a=await Cy();return{headers:{...n,...a?{authorization:`Bearer ${a}`}:{}}}}),$4=new Set(["VerifyMfaChallenge","RequestMfaEmailOtp","RefreshMfaChallenge","Login","Register","GoogleAuth","FacebookAuth","GetProviderOrderQuote","GetHubProviderOrderQuote","InitiateCheckout","SearchUnsplashPhotos","GetFeaturedUnsplashPhotos","TrackUnsplashDownload","SearchPexelsPhotos","GetFeaturedPexelsPhotos","SearchPexelsVideos","SearchPixabayImages","ConnectedStores","PublishingJobsForDesign","PublishingJobsForDesigns","MyDesignsPublishedActivity","GetMyUnreadOrdersCount","GetUnreadCount","SearchNotifications","GetUserNotifications","FilteredNotificationCounts","MyCountryPaymentHistory","UpdateDesignDraft"]),V4={ApproveOrder:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_ORDER_APPROVAL"},ApprovePersonalizedOrder:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"PERSONALIZED_
136STORE_ORDER_APPROVAL"},BulkApproveOrders:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_ORDER_BULK_APPROVAL"},CreateCountryPaymentIntent:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"PAYMENT_INTENT"},ConfirmAfsPayment:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"AFS_PAYMENT_CONFIRM"},ConnectedStores:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_DASHBOARD"},GetProviderOrderQuote:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"PROVIDER_QUOTE"},GetHubProviderOrderQuote:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"PROVIDER_QUOTE"},GetStoreOrderById:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_ORDER_REVIEW"},GetStoreOrders:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_ORDER_LIST"},InitiateCheckout:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"ORDER_CREATE"},MaterializePersonalizedDesign:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"PERSONALIZED_DESIGN_MATERIALIZE"},PersonalizationConfig:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"PERSONALIZATION_CONFIG_LOAD"},PublishToMultipleStores:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH"},PublishToStore:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH"},MyDesignsPublishedActivity:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_STATUS"},PublishingJob:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_STATUS"},PublishingJobsForDesign:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_STATUS"},PublishingJobsForDesigns:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_STATUS"},RetryPublishingJob:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_RETRY"},RetryPayment:{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"PAYMENT_RETRY"},SaveCountryPaymentMethod:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"MERCHANT_PAYMENT_METHOD"},SavePersonalizationConfig:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"PERSONALIZATION_CONFIG_SAVE"},SavePersonalizedDesignEdits:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"PERSONALIZED_DESIGN_SAVE"},SaveStoreOrderSettings:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_ORDER_SETTINGS"},StartPublishingJob:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_START"},UpdatePublishedProduct:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_UPDATE"},ValidatePublishBatch:{workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_PUBLISH_VALIDATION"}},B4=[{routePart:"/customization-for-yourself",workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"CUSTOMER_CHECKOUT"},{routePart:"/customization-for-your-stores",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_DESIGN"},{routePart:"/dashboard/stores",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"STORE_DASHBOARD"},{routePart:"/dashboard/billing",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"MERCHANT_PAYMENT_METHOD"},{routePart:"/billing/afs-return",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"MERCHANT_PAYMENT_METHOD_CONFIRM"},{routePart:"/orders/afs-return",workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"AFS_PAYMENT_CONFIRM"},{routePart:"/account/hub/afs-return",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"HUB_STORAGE_PAYMENT_CONFIRM"},{routePart:"/account/hub/afs-outbound-return",workflowType:"CUSTOMIZE_FOR_YOUR_STORE",workflowStep:"HUB_OUTBOUND_PAYMENT_CONFIRM"}],q4=new Set(["ConfirmAfsPayment"]),H4=(e,t)=>{const n=K4(),a=V4[e.operationName??""],o=G4(n),l=q4.has(e.operationName??""),c=l?o:a,f=l?a:o;return{operation:e.operationName??null,componentHandled:t,route:n,variablesDropped:Y4(e.variables),workflowType:(c==null?void 0:c.workflowType)??(f==null?void 0:f.workflowType),workflowStep:(c==null?void 0:c.workflowStep)??(f==null?void 0:f.workflowStep)}},G4=e=>{if(e)return Q4(e)?{workflowType:"CUSTOMIZE_FOR_YOURSELF",workflowStep:"PAYMENT_RETRY"}:B4.find(t=>e.startsWith(t.routePart))},Q4=e=>e.startsWith("/orders/")&&e.endsWith("/retry-payment"),Y4=e=>!!(e&&Object.keys(e).length>0),K4=()=>typeof globalThis.window>"u"?null:globalThis.window.location.pathname,W4=NT(({graphQLErrors:e,networkError:t,operation:n})=>{const a=n.getContext(),o=GT(n.query)||a.suppressGlobalErrorToast===!0||$4.has(n.operationName),l=h4(a),c=H4(n,o);if(e&&Array.isArray(e)){const h=o?UE(e,{showToast:!1}):UE(e,{showToast:!0});l&&e.forEach((d,g)=>{FE(h[g]??m4(d),d,c)})}const f=e&&e.length>0;if(t){const h=g4(t);o&&h===ea.AUTHENTICATION?zE(t,{showToast:!1}):o||zE(t,{showToast:!f}),l&&FE(h,t,c)}}),Z4=B_(({query:e})=>GT(e),P4,V_([F4,k4])),Xf=new ST({link:V_([U4,W4,Z4]),cache:new vT({typePolicies:{Order:{keyFields:["orderId"]},HubStockUnit:{keyFields:["unitId"]},ShippingAddress:{merge:!0},BillingAddress:{merge:!0},Product:{keyFields:["productId"],fields:{subcategory:{merge(e={},t={}){return t===null?null:{...e,...t}}},canvasPrintAreas:{merge(e,t){return t}}}}}}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network"}},devtools:{enabled:!1}}),mH=Xf,gH=Xf,yH=Xf;/**
137 * @license lucide-react v0.468.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const X4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QT=(...e)=>
vendor: 4,958 bytes, lines 141-215
141e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();/**
142 * @license lucide-react v0.468.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */var J4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
147 * @license lucide-react v0.468.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const e5=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:c,...f},h)=>x.createElement("svg",{ref:h,...J4,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:QT("lucide",o),...f},[...c.map(([d,g])=>x.createElement(d,g)),...Array.isArray(l)?l:[l]]));/**
152 * @license lucide-react v0.468.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const We=(e,t)=>{const n=x.forwardRef(({className:a,...o},l)=>x.createElement(e5,{ref:l,iconNode:t,className:QT(`lucide-${X4(e)}`,a),...o}));return n.displayName=`${e}`,n};/**
157 * @license lucide-react v0.468.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const t5=We("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
162 * @license lucide-react v0.468.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const n5=We("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
167 * @license lucide-react v0.468.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const Eg=We("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
172 * @license lucide-react v0.468.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const r5=We("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
177 * @license lucide-react v0.468.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const a5=We("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
182 * @license lucide-react v0.468.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const i5=We("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
187 * @license lucide-react v0.468.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const o5=We("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
192 * @license lucide-react v0.468.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const s5=We("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
197 * @license lucide-react v0.468.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const l5=We("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
202 * @license lucide-react v0.468.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const um=We("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
207 * @license lucide-react v0.468.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const u5=We("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
212 * @license lucide-react v0.468.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const VE=We("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
217 * @license lucide-react v0.468.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const c5=We("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
222 * @license lucide-react v0.468.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const f5=We("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
227 * @license lucide-react v0.468.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const d5=We("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
232 * @license lucide-react v0.468.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const h5=We("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
237 * @license lucide-react v0.468.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const p5=We("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
242 * @license lucide-react v0.468.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const BE=We("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
247 * @license lucide-react v0.468.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const m5=We("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
252 * @license lucide-react v0.468.0 - ISC
253 *
254 * This source code is licensed under the ISC license.
255 * See the LICENSE file in the root directory of this source tree.
256 */const g5=We("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
257 * @license lucide-react v0.468.0 - ISC
258 *
259 * This source code is licensed under the ISC license.
260 * See the LICENSE file in the root directory of this source tree.
261 */const y5=We("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
262 * @license lucide-react v0.468.0 - ISC
263 *
264 * This source code is licensed under the ISC license.
265 * See the LICENSE file in the root directory of this source tree.
266 */const cm=We("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
267 * @license lucide-react v0.468.0 - ISC
268 *
269 * This source code is licensed under the ISC license.
270 * See the LICENSE file in the root directory of this source tree.
271 */const v5=We("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
272 * @license lucide-react v0.468.0 - ISC
273 *
274 * This source code is licensed under the ISC license.
275 * See the LICENSE file in the root directory of this source tree.
276 */const b5=We("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 4,384 bytes, lines 276-301
276y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
277 * @license lucide-react v0.468.0 - ISC
278 *
279 * This source code is licensed under the ISC license.
280 * See the LICENSE file in the root directory of this source tree.
281 */const S5=We("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
282 * @license lucide-react v0.468.0 - ISC
283 *
284 * This source code is licensed under the ISC license.
285 * See the LICENSE file in the root directory of this source tree.
286 */const x5=We("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
287 * @license lucide-react v0.468.0 - ISC
288 *
289 * This source code is licensed under the ISC license.
290 * See the LICENSE file in the root directory of this source tree.
291 */const E5=We("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
292 * @license lucide-react v0.468.0 - ISC
293 *
294 * This source code is licensed under the ISC license.
295 * See the LICENSE file in the root directory of this source tree.
296 */const Jf=We("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
297 * @license lucide-react v0.468.0 - ISC
298 *
299 * This source code is licensed under the ISC license.
300 * See the LICENSE file in the root directory of this source tree.
301 */const w5=We("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);function qE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ri(...e){return t=>{let n=!1;const a=e.map(o=>{const l=qE(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<a.length;o++){const l=a[o];typeof l=="function"?l():qE(e[o],null)}}}}function xt(...e){return x.useCallback(ri(...e),e)}var _5=Symbol.for("react.lazy"),bf=Vg[" use ".trim().toString()];function T5(e){return typeof e=="object"&&e!==null&&"then"in e}function YT(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_5&&"_payload"in e&&T5(e._payload)}function KT(e){const t=R5(e),n=x.forwardRef((a,o)=>{let{children:l,...c}=a;YT(l)&&typeof bf=="function"&&(l=bf(l._payload));const f=x.Children.toArray(l),h=f.find(A5);if(h){const d=h.props.children,g=f.map(v=>v===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:v);return m.jsx(t,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,g):null})}return m.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var C5=KT("Slot");function R5(e){const t=x.forwardRef((n,a)=>{let{children:o,...l}=n;if(YT(o)&&typeof bf=="function"&&(o=bf(o._payload)),x.isValidElement(o)){const c=D5(o),f=N5(l,o.props);return o.type!==x.Fragment&&(f.ref=a?ri(a,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O5=Symbol("radix.slottable");function A5(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O5}function N5(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...f)=>{const h=l(...f);return o(...f),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function D5(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function WT(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;
301t++)e[t]&&(n=WT(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function k5(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=WT(e))&&(a&&(a+=" "),a+=t);return a}const HE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GE=k5,M5=(e,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return GE(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,c=Object.keys(o).map(d=>{const g=n==null?void 0:n[d],v=l==null?void 0:l[d];if(g===null)return null;const S=HE(g)||HE(v);return o[d][S]}),f=n&&Object.entries(n).reduce((d,g)=>{let[v,S]=g;return S===void 0||(d[v]=S),d},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((d,g)=>{let{class:v,className:S,...b}=g;return Object.entries(b).every(w=>{let[_,T]=w;return Array.isArray(T)?T.includes({...l,...f}[_]):{...l,...f}[_]===T})?[...d,v,S]:d},[]);return GE(e,c,h,n==null?void 0:n.class,n==null?void 0:n.className)};function pe(...e){return e.filter(Boolean).join(" ")}function j5(e){if(!e)return"";const t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}const Ry=M5("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-soft hover:opacity-90 hover:-translate-y-0.5 hover:shadow-soft-lg",destructive:"bg-destructive text-destructive-foreground shadow-soft hover:opacity-90",outline:"border border-border bg-transparent text-primary hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-11 px-6 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-lg px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vn=x.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...o},l)=>{const c=a?C5:"button";return m.jsx(c,{className:pe(Ry({variant:t,size:n,className:e})),ref:l,...o})});vn.displayName="Button";const wg=x.forwardRef(({className:e,type:t,...n},a)=>m.jsx("input",{type:t,className:pe("flex h-11 w-full rounded-lg border border-border bg-background px-4 py-2 text-sm r
301ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...n}));wg.displayName="Input";function I5(e,t=[]){let n=[];function a(l,c){const f=x.createContext(c);f.displayName=l+"Context";const h=n.length;n=[...n,c];const d=v=>{var C;const{scope:S,children:b,...w}=v,_=((C=S==null?void 0:S[e])==null?void 0:C[h])||f,T=x.useMemo(()=>w,Object.values(w));return m.jsx(_.Provider,{value:T,children:b})};d.displayName=l+"Provider";function g(v,S){var _;const b=((_=S==null?void 0:S[e])==null?void 0:_[h])||f,w=x.useContext(b);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[d,g]}const o=()=>{const l=n.map(c=>x.createContext(c));return function(f){const h=(f==null?void 0:f[e])||l;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[a,L5(o,...t)]}function L5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const c=a.reduce((f,{useScope:h,scopeName:d})=>{const v=h(l)[`__scope${d}`];return{...f,...v}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Rr(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}var ur=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},P5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oy=P5.reduce((e,t)=>{const n=KT(`Primitive.${t}`),a=x.forwardRef((o,l)=>{const{asChild:c,...f}=o,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(h,{...f,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),fm={exports:{}},dm={};/**
302 * @license React
303 * use-sync-external-store-shim.production.js
304 *
305 * Copyright (c) Meta Platforms, Inc. and affiliates.
306 *
307 * This source code is licensed under the MIT license found in the
308 * LICENSE file in the root directory of this source tree.
309 */var QE;function U5(){if(QE)return dm;QE=1;var e=tu();function t(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,o=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function f(v,S){var b=S(),w=a({inst:{value:b,getSnapshot:S}}),_=w[0].inst,T=w[1];return l(function(){_.value=b,_.getSnapshot=S,h(_)&&T({inst:_})},[v,b,S]),o(function(){return h(_)&&T({inst:_}),v(function(){h(_)&&T({inst:_})})},[v]),c(b),b}function h(v){var S=v.getSnapshot;v=v.value;try{var b=S();return!n(v,b)}catch{return!0}}function d(v,S){return S()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return dm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,dm}var YE;function z5(){return YE||(YE=1,fm.exports=U5()),fm.exports}var F5=z5();function $5(){return F5.useSyncExternalStore(V5,()=>!0,()=>!1)}function V5(){return()=>{}}var Ay="Avatar",[B5]=I5(Ay),[q5,ZT]=B5(Ay),XT=x.forwardRef((e,t)=>{const{__scopeAvatar:n,...a}=e,[o,l]=x.useState("idle");return m.jsx(q5,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:m.jsx(Oy.span,{...a,ref:t})})});XT.displayName=Ay;var JT="AvatarImage",eC=x.forwardRef((e,t)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:o=()=>{},...l}=e,c=ZT(JT,n),f=H5(a,l),h=Rr(d=>{o(d),c.onImageLoadingStatusChange(d)});return ur(()=>{f!=="idle"&&h(f)},[f,h]),f==="loaded"?m.jsx(Oy.img,{...l,ref:t,src:a}):null});eC.displayName=JT;var tC="AvatarFallback",nC=x.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:a,...o}
vendor: 16,147 bytes, line 309
309=e,l=ZT(tC,n),[c,f]=x.useState(a===void 0);return x.useEffect(()=>{if(a!==void 0){const h=window.setTimeout(()=>f(!0),a);return()=>window.clearTimeout(h)}},[a]),c&&l.imageLoadingStatus!=="loaded"?m.jsx(Oy.span,{...o,ref:t}):null});nC.displayName=tC;function KE(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function H5(e,{referrerPolicy:t,crossOrigin:n}){const a=$5(),o=x.useRef(null),l=a?(o.current||(o.current=new window.Image),o.current):null,[c,f]=x.useState(()=>KE(l,e));return ur(()=>{f(KE(l,e))},[l,e]),ur(()=>{const h=v=>()=>{f(v)};if(!l)return;const d=h("loaded"),g=h("error");return l.addEventListener("load",d),l.addEventListener("error",g),t&&(l.referrerPolicy=t),typeof n=="string"&&(l.crossOrigin=n),()=>{l.removeEventListener("load",d),l.removeEventListener("error",g)}},[l,n,t]),c}var rC=XT,aC=eC,iC=nC;const _g=x.forwardRef(({className:e,...t},n)=>m.jsx(rC,{ref:n,className:pe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));_g.displayName=rC.displayName;const Tg=x.forwardRef(({className:e,...t},n)=>m.jsx(aC,{ref:n,className:pe("aspect-square h-full w-full",e),...t}));Tg.displayName=aC.displayName;const Cg=x.forwardRef(({className:e,...t},n)=>m.jsx(iC,{ref:n,className:pe("flex h-full w-full items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground",e),...t}));Cg.displayName=iC.displayName;function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function G5(e,t){const n=x.createContext(t),a=l=>{const{children:c,...f}=l,h=x.useMemo(()=>f,Object.values(f));return m.jsx(n.Provider,{value:h,children:c})};a.displayName=e+"Provider";function o(l){const c=x.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[a,o]}function ai(e,t=[]){let n=[];function a(l,c){const f=x.createContext(c),h=n.length;n=[...n,c];const d=v=>{var C;const{scope:S,children:b,...w}=v,_=((C=S==null?void 0:S[e])==null?void 0:C[h])||f,T=x.useMemo(()=>w,Object.values(w));return m.jsx(_.Provider,{value:T,children:b})};d.displayName=l+"Provider";function g(v,S){var _;const b=((_=S==null?void 0:S[e])==null?void 0:_[h])||f,w=x.useContext(b);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[d,g]}const o=()=>{const l=n.map(c=>x.createContext(c));return function(f){const h=(f==null?void 0:f[e])||l;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[a,Q5(o,...t)]}function Q5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const c=a.reduce((f,{useScope:h,scopeName:d})=>{const v=h(l)[`__scope${d}`];return{...f,...v}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Y5=Vg[" useInsertionEffect ".trim().toString()]||ur;function ed({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[o,l,c]=K5({defaultProp:t,onChange:n}),f=e!==void 0,h=f?e:o;{const g=x.useRef(e!==void 0);x.useEffect(()=>{const v=g.current;v!==f&&console.warn(`${a} is changing from ${v?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,a])}const d=x.useCallback(g=>{var v;if(f){const S=W5(g)?g(e):g;S!==e&&((v=c.current)==null||v.call(c,S))}else l(g)},[f,e,l,c]);return[h,d]}function K5({defaultProp:e,onChange:t}){const[n,a]=x.useState(e),o=x.useRef(n),l=x.useRef(t);return Y5(()=>{l.current=t},[t]),x.useEffect(()=>{var c;o.current!==n&&((c=l.current)==null||c.call(l,n),o.current=n)},[n,o]),[n,a,l]}function W5(e){return typeof e=="function"}function Z5(e){const t=X5(e),n=x.forwardRef((a,o)=>{const{children:l,...c}=a,f=x.Children.toArray(l),h=f.find(eU);if(h){const d=h.props.children,g=f.map(v=>v===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:v);return m.jsx(t,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,g):null})}return m.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function X5(e){const t=x.forwardRef((n,a)=>{const{children:o,...l}=n;if(x.isValidElement(o)){const c=nU(o),f=tU(l,o.props);return o.type!==x.Fragment&&(f.ref=a?ri(a,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J5=Symbol("radix.slottable");function eU(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J5}function tU(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...f)=>{const h=l(...f);return o(...f),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function nU(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=rU.reduce((e,t)=>{const n=Z5(`Primitive.${t}`),a=x.forwardRef((o,l)=>{const{asChild:c,...f}=o,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(h,{...f,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function oC(e,t){e&&Zg.flushSync(()=>e.dispatchEvent(t))}function WE(e){const t=aU(e),n=x.forwardRef((a,o)=>{const{children:l,...c}=a,f=x.Children.toArray(l),h=f.find(oU);if(h){const d=h.props.children,g=f.map(v=>v===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:v);return m.jsx(t,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,g):null})}return m.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function aU(e){const t=x.forwardRef((n,a)=>{const{children:o,...l}=n;if(x.isValidElement(o)){const c=lU(o),f=sU(l,o.props);return o.type!==x.Fragment&&(f.ref=a?ri(a,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iU=Symbol("radix.slottable");function oU(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iU}function sU(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...f)=>{const h=l(...f);return o(...f),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function lU(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function sC(e){const t=e+"CollectionProvider",[n,a]=ai(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=_=>{const{scope:T,children:C}=_,O=ne.useRef(null),A=ne.useRef(new Map).current;return m.jsx(o,{scope:T,itemMap:A,collectionRef:O,children:C})};c.displayName=t;const f=e+"CollectionSlot",h=WE(f),d=ne.forwardRef((_,T)=>{const{scope:C,children:O}=_,A=l(f,C),N=xt(T,A.collectionRef);return m.jsx(h,{ref:N,children:O})});d.displayName=f;const g=e+"CollectionItemSlot",v="data-radix-collection-item",S=WE(g),b=ne.forwardRef((_,T)=>{const{scope:C,children:O,...A}=_,N=ne.useRef(null),M=xt(T,N),P=l(g,C);return ne.useEffect(()=>(P.itemMap.set(N,{ref:N,...A}),()=>void P.itemMap.delete(N))),m.jsx(S,{[v]:"",ref:M,children:O})});b.displayName=g;function w(_){const T=l(e+"CollectionConsumer",_);return ne.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const A=Array.from(O.querySelectorAll(`[${v}]`));return Array.from(T.itemMap.values()).sort((P,U)=>A.indexOf(P.ref.current)-A.indexOf(U.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:d,ItemSlot:b},w,a]}var lC=x.createContext(void 0),uC=e=>{const{dir:t,children:n}=e;return m.jsx(lC.Provider,{value:t,children:n})};function cC(e){const t=x.useContext(lC);return e||t||"ltr"}var vH=uC;function uU(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e);x.useEffect(()=>{const a=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var cU="DismissableLayer",Rg="dismissableLayer.update",fU="dismissableLayer.pointerDownOutside",dU="dismissableLayer.focusOutside",ZE,fC=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ny=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:c,onDismiss:f,...h}=e,d=x.useContext(fC),[g,v]=x.useState(null),S=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=x.useState({}),w=xt(t,U=>v(U)),_=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=_.indexOf(T),O=g?_.indexOf(g):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,N=O>=C,M=mU(U=>{const G=U.target,W=[...d.branches].some(te=>te.contains(G));!N||W||(o==null||o(U),c==null||c(U),U.defaultPrevented||f==null||f())},S),P=gU(U=>{const G=U.target;[...d.branches].some(te=>te.contains(G))||(l==null||l(U),c==null||c(U),U.defaultPrevented||f==null||f())},S);return uU(U=>{O===d.layers.size-1&&(a==null||a(U),!U.defaultPrevented&&f&&(U.preventDefault(),f()))},S),x.useEffect(()=>{if(g)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ZE=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(g)),d.layers.add(g),XE(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=ZE)}},[g,S,n,d]),x.useEffect(()=>()=>{g&&(d.layers.delete(g),d.layersWithOutsidePointerEventsDisabled.delete(g),XE())},[g,d]),x.useEffect(()=>{const U=()=>b({});return document.addEventListener(Rg,U),()=>document.removeEventListener(Rg,U)},[]),m.jsx(gt.div,{...h,ref:w,style:{pointerEvents:A?N?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,M.onPointerDownCapture)})});Ny.displayName=cU;var hU="DismissableLayerBranch",pU=x.forwardRef((e,t)=>{const n=x.useContext(fC),a=x.useRef(null),o=xt(t,a);return x.useEffect(()=>{const l=a.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),m.jsx(gt.div,{...e,ref:o})});pU.displayName=hU;function mU(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),a=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const l=f=>{if(f.target&&!a.current){let h=function(){dC(fU,n,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);a.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function gU(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),a=x.useRef(!1);return x.useEffect(()=>{const o=l=>{l.target&&!a.current&&dC(dU,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function XE(){const e=new CustomEvent(Rg);document.dispatchEvent(e)}function dC(e,t,n,{discrete:a}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),a?oC(o,l):o.dispatchEvent(l)}var hm=0;function hC(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??JE()),document.body.insertAdjacentElement("beforeend",e[1]??JE()),hm++,()=>{hm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hm--}},[])}function JE(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pm="focusScope.autoFocusOnMount",mm="focusScope.autoFocusOnUnmount",ew={bubbles:!1,cancelable:!0},yU="FocusScope",Dy=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...c}=e,[f,h]=x.useState(null),d=Rr(o),g=Rr(l),v=x.useRef(null),S=xt(t,_=>h(_)),b=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(a){let _=function(A){if(b.paused||!f)return;const N=A.target;f.contains(N)?v.current=N:$a(v.current,{select:!0})},T=function(A){if(b.paused||!f)return;const N=A.relatedTarget;N!==null&&(f.contains(N)||$a(v.current,{select:!0}))},C=function(A){if(document.activeElement===document.body)for(const M of A)M.removedNodes.length>0&&$a(f)};document.addEventListener("focusin",_),document.addEventListener("focusout",T);const O=new MutationObserver(C);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",T),O.disconnect()}}},[a,f,b.paused]),x.useEffect(()=>{if(f){nw.add(b);const _=document.activeElement;if(!f.contains(_)){const C=new CustomEvent(pm,ew);f.addEventListener(pm,d),f.dispatchEvent(C),C.defaultPrevented||(vU(wU(pC(f)),{select:!0}),document.activeElement===_&&$a(f))}return()=>{f.removeEventListener(pm,d),setTimeout(()=>{const C=new CustomEvent(mm,ew);f.addEventListener(mm,g),f.dispatchEvent(C),C.defaultPrevented||$a(_??document.body,{select:!0}),f.removeEventListener(mm,g),nw.remove(b)},0)}}},[f,d,g,b]);const w=x.useCallback(_=>{if(!n&&!a||b.paused)return;const T=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,C=document.activeElement;if(T&&C){const O=_.currentTarget,[A,N]=bU(O);A&&N?!_.shiftKey&&C===N?(_.preventDefault(),n&&$a(A,{select:!0})):_.shiftKey&&C===A&&(_.preventDefault(),n&&$a(N,{select:!0})):C===O&&_.preventDefault()}},[n,a,b.paused]);return m.jsx(gt.div,{tabIndex:-1,...c,ref:S,onKeyDown:w})});Dy.displayName=yU;function vU(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if($a(a,{select:t}),document.activeElement!==n)return}function bU(e){const t=pC(e),n=tw(t,e),a=tw(t.reverse(),e);return[n,a]}function pC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tw(e,t){for(const n of e)if(!SU(n,{upTo:t}))return n}function SU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xU(e){return e instanceof HTMLInputElement&&"select"in e}function $a(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&xU(e)&&t&&e.select()}}var nw=EU();function EU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rw(e,t),e.unshift(t)},remove(t){var n;e=rw(e,t),(n=e[0])==null||n.resume()}}}function rw(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function wU(e){return e.filter(t=>t.tagName!=="A")}var _U=Vg[" useId ".trim().toString()]||(()=>{}),TU=0;function Zo(e){const[t,n]=x.useState(_U());return ur(()=>{n(a=>a??String(TU++))},[e]),t?`radix-${t}`:""}const CU=["top","right","bottom","left"],ei=Math.min,An=Math.max,Sf=Math.round,Lc=Math.floor,Tr=e=>({x:e,y:e}
vendor: 10,631 bytes, line 309
309),RU={left:"right",right:"left",bottom:"top",top:"bottom"};function Og(e,t,n){return An(e,ei(t,n))}function sa(e,t){return typeof e=="function"?e(t):e}function la(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function ky(e){return e==="x"?"y":"x"}function My(e){return e==="y"?"height":"width"}function wr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jy(e){return ky(wr(e))}function OU(e,t,n){n===void 0&&(n=!1);const a=gs(e),o=jy(e),l=My(o);let c=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=xf(c)),[c,xf(c)]}function AU(e){const t=xf(e);return[Ag(e),t,Ag(t)]}function Ag(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const aw=["left","right"],iw=["right","left"],NU=["top","bottom"],DU=["bottom","top"];function kU(e,t,n){switch(e){case"top":case"bottom":return n?t?iw:aw:t?aw:iw;case"left":case"right":return t?NU:DU;default:return[]}}function MU(e,t,n,a){const o=gs(e);let l=kU(la(e),n==="start",a);return o&&(l=l.map(c=>c+"-"+o),t&&(l=l.concat(l.map(Ag)))),l}function xf(e){const t=la(e);return RU[t]+e.slice(t.length)}function jU(e){return{top:0,right:0,bottom:0,left:0,...e}}function mC(e){return typeof e!="number"?jU(e):{top:e,right:e,bottom:e,left:e}}function Ef(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function ow(e,t,n){let{reference:a,floating:o}=e;const l=wr(t),c=jy(t),f=My(c),h=la(t),d=l==="y",g=a.x+a.width/2-o.width/2,v=a.y+a.height/2-o.height/2,S=a[f]/2-o[f]/2;let b;switch(h){case"top":b={x:g,y:a.y-o.height};break;case"bottom":b={x:g,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y:v};break;case"left":b={x:a.x-o.width,y:v};break;default:b={x:a.x,y:a.y}}switch(gs(t)){case"start":b[c]-=S*(n&&d?-1:1);break;case"end":b[c]+=S*(n&&d?-1:1);break}return b}async function IU(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:S=!1,padding:b=0}=sa(t,e),w=mC(b),T=f[S?v==="floating"?"reference":"floating":v],C=Ef(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(T)))==null||n?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:d,rootBoundary:g,strategy:h})),O=v==="floating"?{x:a,y:o,width:c.floating.width,height:c.floating.height}:c.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),N=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},M=Ef(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:A,strategy:h}):O);return{top:(C.top-M.top+w.top)/N.y,bottom:(M.bottom-C.bottom+w.bottom)/N.y,left:(C.left-M.left+w.left)/N.x,right:(M.right-C.right+w.right)/N.x}}const LU=50,PU=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:c}=n,f=c.detectOverflow?c:{...c,detectOverflow:IU},h=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:v}=ow(d,a,h),S=a,b=0;const w={};for(let _=0;_<l.length;_++){const T=l[_];if(!T)continue;const{name:C,fn:O}=T,{x:A,y:N,data:M,reset:P}=await O({x:g,y:v,initialPlacement:a,placement:S,strategy:o,middlewareData:w,rects:d,platform:f,elements:{reference:e,floating:t}});g=A??g,v=N??v,w[C]={...w[C],...M},P&&b<LU&&(b++,typeof P=="object"&&(P.placement&&(S=P.placement),P.rects&&(d=P.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:g,y:v}=ow(d,S,h)),_=-1)}return{x:g,y:v,placement:S,strategy:o,middlewareData:w}},UU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:c,elements:f,middlewareData:h}=t,{element:d,padding:g=0}=sa(e,t)||{};if(d==null)return{};const v=mC(g),S={x:n,y:a},b=jy(o),w=My(b),_=await c.getDimensions(d),T=b==="y",C=T?"top":"left",O=T?"bottom":"right",A=T?"clientHeight":"clientWidth",N=l.reference[w]+l.reference[b]-S[b]-l.floating[w],M=S[b]-l.reference[b],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let U=P?P[A]:0;(!U||!await(c.isElement==null?void 0:c.isElement(P)))&&(U=f.floating[A]||l.floating[w]);const G=N/2-M/2,W=U/2-_[w]/2-1,te=ei(v[C],W),se=ei(v[O],W),me=te,re=U-_[w]-se,ce=U/2-_[w]/2+G,oe=Og(me,ce,re),I=!h.arrow&&gs(o)!=null&&ce!==oe&&l.reference[w]/2-(ce<me?te:se)-_[w]/2<0,V=I?ce<me?ce-me:ce-re:0;return{[b]:S[b]+V,data:{[b]:oe,centerOffset:ce-oe-V,...I&&{alignmentOffset:V}},reset:I}}}),zU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:h,elements:d}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:S,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...T}=sa(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const C=la(o),O=wr(f),A=la(f)===f,N=await(h.isRTL==null?void 0:h.isRTL(d.floating)),M=S||(A||!_?[xf(f)]:AU(f)),P=w!=="none";!S&&P&&M.push(...MU(f,_,w,N));const U=[f,...M],G=await h.detectOverflow(t,T),W=[];let te=((a=l.flip)==null?void 0:a.overflows)||[];if(g&&W.push(G[C]),v){const ce=OU(o,c,N);W.push(G[ce[0]],G[ce[1]])}if(te=[...te,{placement:o,overflows:W}],!W.every(ce=>ce<=0)){var se,me;const ce=(((se=l.flip)==null?void 0:se.index)||0)+1,oe=U[ce];if(oe&&(!(v==="alignment"?O!==wr(oe):!1)||te.every(Y=>wr(Y.placement)===O?Y.overflows[0]>0:!0)))return{data:{index:ce,overflows:te},reset:{placement:oe}};let I=(me=te.filter(V=>V.overflows[0]<=0).sort((V,Y)=>V.overflows[1]-Y.overflows[1])[0])==null?void 0:me.placement;if(!I)switch(b){case"bestFit":{var re;const V=(re=te.filter(Y=>{if(P){const $=wr(Y.placement);return $===O||$==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter($=>$>0).reduce(($,le)=>$+le,0)]).sort((Y,$)=>Y[1]-$[1])[0])==null?void 0:re[0];V&&(I=V);break}case"initialPlacement":I=f;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function sw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lw(e){return CU.some(t=>e[t]>=0)}const FU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:o="referenceHidden",...l}=sa(e,t);switch(o){case"referenceHidden":{const c=await a.detectOverflow(t,{...l,elementContext:"reference"}),f=sw(c,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:lw(f)}}}case"escaped":{const c=await a.detectOverflow(t,{...l,altBoundary:!0}),f=sw(c,n.floating);return{data:{escapedOffsets:f,escaped:lw(f)}}}default:return{}}}}},gC=new Set(["left","top"]);async function $U(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),c=la(n),f=gs(n),h=wr(n)==="y",d=gC.has(c)?-1:1,g=l&&h?-1:1,v=sa(t,e);let{mainAxis:S,crossAxis:b,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof w=="number"&&(b=f==="end"?w*-1:w),h?{x:b*g,y:S*d}:{x:S*d,y:b*g}}const VU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:c,middlewareData:f}=t,h=await $U(t,e);return c===((n=f.offset)==null?void 0:n.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:c}}}}},BU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:h={fn:C=>{let{x:O,y:A}=C;return{x:O,y:A}}},...d}=sa(e,t),g={x:n,y:a},v=await l.detectOverflow(t,d),S=wr(la(o)),b=ky(S);let w=g[b],_=g[S];if(c){const C=b==="y"?"top":"left",O=b==="y"?"bottom":"right",A=w+v[C],N=w-v[O];w=Og(A,w,N)}if(f){const C=S==="y"?"top":"left",O=S==="y"?"bottom":"right",A=_+v[C],N=_-v[O];_=Og(A,_,N)}const T=h.fn({...t,[b]:w,[S]:_});return{...T,data:{x:T.x-n,y:T.y-a,enabled:{[b]:c,[S]:f}}}}}},qU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:l,middlewareData:c}=t,{offset:f=0,mainAxis:h=!0,crossAxis:d=!0}=sa(e,t),g={x:n,y:a},v=wr(o),S=ky(v);let b=g[S],w=g[v];const _=sa(f,t),T=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(h){const A=S==="y"?"height":"width",N=l.reference[S]-l.floating[A]+T.mainAxis,M=l.reference[S]+l.reference[A]-T.mainAxis;b<N?b=N:b>M&&(b=M)}if(d){var C,O;const A=S==="y"?"width":"height",N=gC.has(la(o)),M=l.reference[v]-l.floating[A]+(N&&((C=c.offset)==null?void 0:C[v])||0)+(N?0:T.crossAxis),P=l.reference[v]+l.reference[A]+(N?0:((O=c.offset)==null?void 0:O[v])||0)-(N?T.crossAxis:0);w<M?w=M:w>P&&(w=P)}return{[S]:b,[v]:w}}}},HU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:l,platform:c,elements:f}=t,{apply:h=()=>{},...d}=sa(e,t),g=await c.detectOverflow(t,d),v=la(o),S=gs(o),b=wr(o)==="y",{width:w,height:_}=l.floating;let T,C;v==="top"||v==="bottom"?(T=v,C=S===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(C=v,T=S==="end"?"top":"bottom");const O=_-g.top-g.bottom,A=w-g.left-g.right,N=ei(_-g[T],O),M=ei(w-g[C],A),P=!t.middlewareData.shift;let U=N,G=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=A),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(U=O),P&&!S){const te=An(g.left,0),se=An(g.right,0),me=An(g.top,0),re=An(g.bottom,0);b?G=w-2*(te!==0||se!==0?te+se:An(g.left,g.right)):U=_-2*(me!==0||re!==0?me+re:An(g.top,g.bottom))}await h({...t,availableWidth:G,availableHeight:U});const W=await c.getDimensions(f.floating);return w!==W.width||_!==W.height?{reset:{rects:!0}}:{}}}};function td(){return typeof window<"u"}function ys(e){return yC(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ar(e){var t;return(t=(yC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yC(e){return td()?e instanceof Node||e instanceof Nn(e).Node:!1}function cr(e){return td()?e instanceof Element||e instanceof Nn(e).Element:!1}function ca(e){return td()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function uw(e){return!td()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}function uu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function GU(e){return/^(table|td|th)$/.test(ys(e))}
309function nd(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const QU=/transform|translate|scale|rotate|perspective|filter/,YU=/paint|layout|strict|content/,Ci=e=>!!e&&e!=="none";let gm;function Iy(e){const t=cr(e)?fr(e):e;return Ci(t.transform)||Ci(t.translate)||Ci(t.scale)||Ci(t.rotate)||Ci(t.perspective)||!Ly()&&(Ci(t.backdropFilter)||Ci(t.filter))||QU.test(t.willChange||"")||YU.test(t.contain||"")}function KU(e){let t=ti(e);for(;ca(t)&&!ss(t);){if(Iy(t))return t;if(nd(t))return null;t=ti(t)}return null}function Ly(){return gm==null&&(gm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gm}function ss(e){return/^(html|body|#document)$/.test(ys(e))}function fr(e){return Nn(e).getComputedStyle(e)}function rd(e){return cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ti(e){if(ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uw(e)&&e.host||Ar(e);return uw(t)?t.host:t}function vC(e){const t=ti(e);return ss(t)?e.ownerDocument?e.ownerDocument.body:e.body:ca(t)&&uu(t)?t:vC(t)}function Hl(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vC(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),c=Nn(o);if(l){const f=Ng(c);return t.concat(c,c.visualViewport||[],uu(o)?o:[],f&&n?Hl(f):[])}else return t.concat(o,Hl(o,[],n))}function Ng(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bC(e){const t=fr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=ca(e),l=o?e.offsetWidth:n,c=o?e.offsetHeight:a,f=Sf(n)!==l||Sf(a)!==c;return f&&(n=l,a=c),{width:n,height:a,$:f}}function Py(e){return cr(e)?e:e.contextElement}function Xo(e){const t=Py(e);if(!ca(t))return Tr(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=bC(t);let c=(l?Sf(n.width):n.width)/a,f=(l?Sf(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const WU=Tr(0);function SC(e){const t=Nn(e);return!Ly()||!t.visualViewport?WU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function Pi(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Py(e);let c=Tr(1);t&&(a?cr(a)&&(c=Xo(a)):c=Xo(e));const f=ZU(l,n,a)?SC(l):Tr(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,g=o.width/c.x,v=o.height/c.y;if(l){const S=Nn(l),b=a&&cr(a)?Nn(a):a;let w=S,_=Ng(w);for(;_&&a&&b!==w;){const T=Xo(_),C=_.getBoundingClientRect(),O=fr(_),A=C.left+(_.clientLeft+parseFloat(O.paddingLeft))*T.x,N=C.top+(_.clientTop+parseFloat(O.paddingTop))*T.y;h*=T.x,d*=T.y,g*=T.x,v*=T.y,h+=A,d+=N,w=Nn(_),_=Ng(w)}}return Ef({width:g,height:v,x:h,y:d})}function ad(e,t){const n=rd(e).scrollLeft;return t?t.left+n:Pi(Ar(e)).left+n}function xC(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-ad(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function XU(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",c=Ar(a),f=t?nd(t.floating):!1;if(a===c||f&&l)return n;let h={scrollLeft:0,scrollTop:0},d=Tr(1);const g=Tr(0),v=ca(a);if((v||!v&&!l)&&((ys(a)!=="body"||uu(c))&&(h=rd(a)),v)){const b=Pi(a);d=Xo(a),g.x=b.x+a.clientLeft,g.y=b.y+a.clientTop}const S=c&&!v&&!l?xC(c,h):Tr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-h.scrollLeft*d.x+g.x+S.x,y:n.y*d.y-h.scrollTop*d.y+g.y+S.y}}function JU(e){return Array.from(e.getClientRects())}function ez(e){const t=Ar(e),n=rd(e),a=e.ownerDocument.body,o=An(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=An(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let c=-n.scrollLeft+ad(e);const f=-n.scrollTop;return fr(a).direction==="rtl"&&(c+=An(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:c,y:f}}const cw=25;function tz(e,t){const n=Nn(e),a=Ar(e),o=n.visualViewport;let l=a.clientWidth,c=a.clientHeight,f=0,h=0;if(o){l=o.width,c=o.height;const g=Ly();(!g||g&&t==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const d=ad(a);if(d<=0){const g=a.ownerDocument,v=g.body,S=getComputedStyle(v),b=g.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,w=Math.abs(a.clientWidth-v.clientWidth-b);w<=cw&&(l-=w)}else d<=cw&&(l+=d);return{width:l,height:c,x:f,y:h}}function nz(e,t){const n=Pi(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=ca(e)?Xo(e):Tr(1),c=e.clientWidth*l.x,f=e.clientHeight*l.y,h=o*l.x,d=a*l.y;return{width:c,height:f,x:h,y:d}}function fw(e,t,n){let a;if(t==="viewport")a=tz(e,n);else if(t==="document")a=ez(Ar(e));else if(cr(t))a=nz(t,n);else{const o=SC(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ef(a)}function EC(e,t){const n=ti(e);return n===t||!cr(n)||ss(n)?!1:fr(n).position==="fixed"||EC(n,t)}function rz(e,t){const n=t.get(e);if(n)return n;let a=Hl(e,[],!1).filter(f=>cr(f)&&ys(f)!=="body"),o=null;const l=fr(e).position==="fixed";let c=l?ti(e):e;for(;cr(c)&&!ss(c);){const f=fr(c),h=Iy(c);!h&&f.position==="fixed"&&(o=null),(l?!h&&!o:!h&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||uu(c)&&!h&&EC(e,c))?a=a.filter(g=>g!==c):o=f,c=ti(c)}return t.set(e,a),a}function az(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const c=[...n==="clippingAncestors"?nd(t)?[]:rz(t,this._c):[].concat(n),a],f=fw(t,c[0],o);
vendor: 25,089 bytes, lines 309-324
309let h=f.top,d=f.right,g=f.bottom,v=f.left;for(let S=1;S<c.length;S++){const b=fw(t,c[S],o);h=An(b.top,h),d=ei(b.right,d),g=ei(b.bottom,g),v=An(b.left,v)}return{width:d-v,height:g-h,x:v,y:h}}function iz(e){const{width:t,height:n}=bC(e);return{width:t,height:n}}function oz(e,t,n){const a=ca(t),o=Ar(t),l=n==="fixed",c=Pi(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=Tr(0);function d(){h.x=ad(o)}if(a||!a&&!l)if((ys(t)!=="body"||uu(o))&&(f=rd(t)),a){const b=Pi(t,!0,l,t);h.x=b.x+t.clientLeft,h.y=b.y+t.clientTop}else o&&d();l&&!a&&o&&d();const g=o&&!a&&!l?xC(o,f):Tr(0),v=c.left+f.scrollLeft-h.x-g.x,S=c.top+f.scrollTop-h.y-g.y;return{x:v,y:S,width:c.width,height:c.height}}function ym(e){return fr(e).position==="static"}function dw(e,t){if(!ca(e)||fr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ar(e)===n&&(n=n.ownerDocument.body),n}function wC(e,t){const n=Nn(e);if(nd(e))return n;if(!ca(e)){let o=ti(e);for(;o&&!ss(o);){if(cr(o)&&!ym(o))return o;o=ti(o)}return n}let a=dw(e,t);for(;a&&GU(a)&&ym(a);)a=dw(a,t);return a&&ss(a)&&ym(a)&&!Iy(a)?n:a||KU(e)||n}const sz=async function(e){const t=this.getOffsetParent||wC,n=this.getDimensions,a=await n(e.floating);return{reference:oz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function lz(e){return fr(e).direction==="rtl"}const uz={convertOffsetParentRelativeRectToViewportRelativeRect:XU,getDocumentElement:Ar,getClippingRect:az,getOffsetParent:wC,getElementRects:sz,getClientRects:JU,getDimensions:iz,getScale:Xo,isElement:cr,isRTL:lz};function _C(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cz(e,t){let n=null,a;const o=Ar(e);function l(){var f;clearTimeout(a),(f=n)==null||f.disconnect(),n=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const d=e.getBoundingClientRect(),{left:g,top:v,width:S,height:b}=d;if(f||t(),!S||!b)return;const w=Lc(v),_=Lc(o.clientWidth-(g+S)),T=Lc(o.clientHeight-(v+b)),C=Lc(g),A={rootMargin:-w+"px "+-_+"px "+-T+"px "+-C+"px",threshold:An(0,ei(1,h))||1};let N=!0;function M(P){const U=P[0].intersectionRatio;if(U!==h){if(!N)return c();U?c(!1,U):a=setTimeout(()=>{c(!1,1e-7)},1e3)}U===1&&!_C(d,e.getBoundingClientRect())&&c(),N=!1}try{n=new IntersectionObserver(M,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(M,A)}n.observe(e)}return c(!0),l}function fz(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,d=Py(e),g=o||l?[...d?Hl(d):[],...t?Hl(t):[]]:[];g.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),l&&C.addEventListener("resize",n)});const v=d&&f?cz(d,n):null;let S=-1,b=null;c&&(b=new ResizeObserver(C=>{let[O]=C;O&&O.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),n()}),d&&!h&&b.observe(d),t&&b.observe(t));let w,_=h?Pi(e):null;h&&T();function T(){const C=Pi(e);_&&!_C(_,C)&&n(),_=C,w=requestAnimationFrame(T)}return n(),()=>{var C;g.forEach(O=>{o&&O.removeEventListener("scroll",n),l&&O.removeEventListener("resize",n)}),v==null||v(),(C=b)==null||C.disconnect(),b=null,h&&cancelAnimationFrame(w)}}const dz=VU,hz=BU,pz=zU,mz=HU,gz=FU,hw=UU,yz=qU,vz=(e,t,n)=>{const a=new Map,o={platform:uz,...n},l={...o.platform,_c:a};return PU(e,t,{...o,platform:l})};var bz=typeof document<"u",Sz=function(){},lf=bz?x.useLayoutEffect:Sz;function wf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!wf(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=n;a--!==0;){const l=o[a];if(!(l==="_owner"&&e.$$typeof)&&!wf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function TC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pw(e,t){const n=TC(e);return Math.round(t*n)/n}function vm(e){const t=x.useRef(e);return lf(()=>{t.current=e}),t}function xz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:o,elements:{reference:l,floating:c}={},transform:f=!0,whileElementsMounted:h,open:d}=e,[g,v]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,b]=x.useState(a);wf(S,a)||b(a);const[w,_]=x.useState(null),[T,C]=x.useState(null),O=x.useCallback(Y=>{Y!==P.current&&(P.current=Y,_(Y))},[]),A=x.useCallback(Y=>{Y!==U.current&&(U.current=Y,C(Y))},[]),N=l||w,M=c||T,P=x.useRef(null),U=x.useRef(null),G=x.useRef(g),W=h!=null,te=vm(h),se=vm(o),me=vm(d),re=x.useCallback(()=>{if(!P.current||!U.current)return;const Y={placement:t,strategy:n,middleware:S};se.current&&(Y.platform=se.current),vz(P.current,U.current,Y).then($=>{const le={...$,isPositioned:me.current!==!1};ce.current&&!wf(G.current,le)&&(G.current=le,Zg.flushSync(()=>{v(le)}))})},[S,t,n,se,me]);lf(()=>{d===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,v(Y=>({...Y,isPositioned:!1})))},[d]);const ce=x.useRef(!1);lf(()=>(ce.current=!0,()=>{ce.current=!1}),[]),lf(()=>{if(N&&(P.current=N),M&&(U.current=M),N&&M){if(te.current)return te.current(N,M,re);re()}},[N,M,re,te,W]);const oe=x.useMemo(()=>({reference:P,floating:U,setReference:O,setFloating:A}),[O,A]),I=x.useMemo(()=>({reference:N,floating:M}),[N,M]),V=x.useMemo(()=>{const Y={position:n,left:0,top:0};if(!I.floating)return Y;const $=pw(I.floating,g.x),le=pw(I.floating,g.y);return f?{...Y,transform:"translate("+$+"px, "+le+"px)",...TC(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:le}},[n,f,I.floating,g.x,g.y]);return x.useMemo(()=>({...g,update:re,refs:oe,elements:I,floatingStyles:V}),[g,re,oe,I,V])}const Ez=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:o}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?hw({element:a.current,padding:o}).fn(n):{}:a?hw({element:a,padding:o}).fn(n):{}}}},wz=(e,t)=>{const n=dz(e);return{name:n.name,fn:n.fn,options:[e,t]}},_z=(e,t)=>{const n=hz(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tz=(e,t)=>({fn:yz(e).fn,options:[e,t]}),Cz=(e,t)=>{const n=pz(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rz=(e,t)=>{const n=mz(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oz=(e,t)=>{const n=gz(e);return{name:n.name,fn:n.fn,options:[e,t]}},Az=(e,t)=>{const n=Ez(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Nz="Arrow",CC=x.forwardRef((e,t)=>{const{children:n,width:a=10,height:o=5,...l}=e;return m.jsx(gt.svg,{...l,ref:t,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});CC.displayName=Nz;var Dz=CC;function RC(e){const[t,n]=x.useState(void 0);return ur(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,f;if("borderBoxSize"in l){const h=l.borderBoxSize,d=Array.isArray(h)?h[0]:h;c=d.inlineSize,f=d.blockSize}else c=e.offsetWidth,f=e.offsetHeight;n({width:c,height:f})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var Uy="Popper",[OC,AC]=ai(Uy),[kz,NC]=OC(Uy),DC=e=>{const{__scopePopper:t,children:n}=e,[a,o]=x.useState(null);return m.jsx(kz,{scope:t,anchor:a,onAnchorChange:o,children:n})};DC.displayName=Uy;var kC="PopperAnchor",MC=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...o}=e,l=NC(kC,n),c=x.useRef(null),f=xt(t,c),h=x.useRef(null);return x.useEffect(()=>{const d=h.current;h.current=(a==null?void 0:a.current)||c.current,d!==h.current&&l.onAnchorChange(h.current)}),a?null:m.jsx(gt.div,{...o,ref:f})});MC.displayName=kC;var zy="PopperContent",[Mz,jz]=OC(zy),jC=x.forwardRef((e,t)=>{var fe,nt,Ae,Gt,Sn,pr;const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:d=[],collisionPadding:g=0,sticky:v="partial",hideWhenDetached:S=!1,updatePositionStrategy:b="optimized",onPlaced:w,..._}=e,T=NC(zy,n),[C,O]=x.useState(null),A=xt(t,Zn=>O(Zn)),[N,M]=x.useState(null),P=RC(N),U=(P==null?void 0:P.width)??0,G=(P==null?void 0:P.height)??0,W=a+(l!=="center"?"-"+l:""),te=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},se=Array.isArray(d)?d:[d],me=se.length>0,re={padding:te,boundary:se.filter(Lz),altBoundary:me},{refs:ce,floatingStyles:oe,placement:I,isPositioned:V,middlewareData:Y}=xz({strategy:"fixed",placement:W,whileElementsMounted:(...Zn)=>fz(...Zn,{animationFrame:b==="always"}),elements:{reference:T.anchor},middleware:[wz({mainAxis:o+G,alignmentAxis:c}),h&&_z({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Tz():void 0,...re}),h&&Cz({...re}),Rz({...re,apply:({elements:Zn,rects:Mn,availableWidth:oi,availableHeight:da})=>{const{width:vs,height:ha}=Mn.reference,mr=Zn.floating.style;mr.setProperty("--radix-popper-available-width",`${oi}px`),mr.setProperty("--radix-popper-available-height",`${da}px`),mr.setProperty("--radix-popper-anchor-width",`${vs}px`),mr.setProperty("--radix-popper-anchor-height",`${ha}px`)}}),N&&Az({element:N,padding:f}),Pz({arrowWidth:U,arrowHeight:G}),S&&Oz({strategy:"referenceHidden",...re})]}),[$,le]=PC(I),D=Rr(w);ur(()=>{V&&(D==null||D())},[V,D]);const F=(fe=Y.arrow)==null?void 0:fe.x,Z=(nt=Y.arrow)==null?void 0:nt.y,ae=((Ae=Y.arrow)==null?void 0:Ae.centerOffset)!==0,[ge,ye]=x.useState();return ur(()=>{C&&ye(window.getComputedStyle(C).zIndex)},[C]),m.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:V?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Gt=Y.transformOrigin)==null?void 0:Gt.x,(Sn=Y.transformOrigin)==null?void 0:Sn.y].join(" "),...((pr=Y.hide)==null?void 0:pr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Mz,{scope:n,placedSide:$,onArrowChange:M,arrowX:F,arrowY:Z,shouldHideArrow:ae,children:m.jsx(gt.div,{"data-side":$,"data-align":le,..._,ref:A,style:{..._.style,animation:V?void 0:"none"}})})})});jC.displayName=zy;var IC="PopperArrow",Iz={top:"bottom",right:"left",bottom:"top",left:"right"},LC=x.forwardRef(function(t,n){const{__scopePopper:a,...o}=t,l=jz(IC,a),c=Iz[l.placedSide];return m.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:m.jsx(Dz,{...o,ref:n,style:{...o.style,display:"block"}})})});LC.displayName=IC;function Lz(e){return e!==null}var Pz=e=>({name:"transformOrigin",options:e,fn(t){var T,C,O;const{placement:n,rects:a,middlewareData:o}=t,c=((T=o.arrow)==null?void 0:T.centerOffset)!==0,f=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[d,g]=PC(n),v={start:"0%",center:"50%",end:"100%"}[g],S=(((C=o.arrow)==null?void 0:C.x)??0)+f/2,b=(((O=o.arrow)==null?void 0:O.y)??0)+h/2;let w="",_="";return d==="bottom"?(w=c?v:`${S}px`,_=`${-h}px`):d==="top"?(w=c?v:`${S}px`,_=`${a.floating.height+h}px`):d==="right"?(w=`${-h}px`,_=c?v:`${b}px`):d==="left"&&(w=`${a.floating.width+h}px`,_=c?v:`${b}px`),{data:{x:w,y:_}}}});function PC(e){const[t,n="center"]=e.split("-");return[t,n]}var Uz=DC,zz=MC,Fz=jC,$z=LC,Vz="Portal",Fy=x.forwardRef((e,t)=>{var f;const{container:n,...a}=e,[o,l]=x.useState(!1);ur(()=>l(!0),[]);const c=n||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Z1.createPortal(m.jsx(gt.div,{...a,ref:t}),c):null});Fy.displayName=Vz;function Bz(e,t){return x.useReducer((n,a)=>t[n][a]??n,e)}var ii=e=>{const{present:t,children:n}=e,a=qz(t),o=typeof n=="function"?n({present:a.isPresent}):x.Children.only(n),l=xt(a.ref,Hz(o));return typeof n=="function"||a.isPresent?x.cloneElement(o,{ref:l}):null};ii.displayName="Presence";function qz(e){const[t,n]=x.useState(),a=x.useRef(null),o=x.useRef(e),l=x.useRef("none"),c=e?"mounted":"unmounted",[f,h]=Bz(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const d=Pc(a.current);l.current=f==="mounted"?d:"none"},[f]),ur(()=>{const d=a.current,g=o.current;if(g!==e){const S=l.current,b=Pc(d);e?h("MOUNT"):b==="none"||(d==null?void 0:d.display)==="none"?h("UNMOUNT"):h(g&&S!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ur(()=>{if(t){let d;const g=t.ownerDocument.defaultView??window,v=b=>{const _=Pc(a.current).includes(CSS.escape(b.animationName));if(b.target===t&&_&&(h("ANIMATION_END"),!o.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",d=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},S=b=>{b.target===t&&(l.current=Pc(a.current))};return t.addEventListener("animationstart",S),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{g.clearTimeout(d),t.removeEventListener("animationstart",S),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(d=>{a.current=d?getComputedStyle(d):null,n(d)},[])}}function Pc(e){return(e==null?void 0:e.animationName)||"none"}function Hz(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bm="rovingFocusGroup.onEntryFocus",Gz={bubbles:!1,cancelable:!0},cu="RovingFocusGroup",[Dg,UC,Qz]=sC(cu),[Yz,zC]=ai(cu,[Qz]),[Kz,Wz]=Yz(cu),FC=x.forwardRef((e,t)=>m.jsx(Dg.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Dg.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Zz,{...e,ref:t})})}));FC.displayName=cu;var Zz=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:d,preventScrollOnEntryFocus:g=!1,...v}=e,S=x.useRef(null),b=xt(t,S),w=cC(l),[_,T]=ed({prop:c,defaultProp:f??null,onChange:h,caller:cu}),[C,O]=x.useState(!1),A=Rr(d),N=UC(n),M=x.useRef(!1),[P,U]=x.useState(0);return x.useEffect(()=>{const G=S.current;if(G)return G.addEventListener(bm,A),()=>G.removeEventListener(bm,A)},[A]),m.jsx(Kz,{scope:n,orientation:a,dir:w,loop:o,currentTabStopId:_,onItemFocus:x.useCallback(G=>T(G),[T]),onItemShiftTab:x.useCallback(()=>O(!0),[]),onFocusableItemAdd:x.useCallback(()=>U(G=>G+1),[]),onFocusableItemRemove:x.useCallback(()=>U(G=>G-1),[]),children:m.jsx(gt.div,{tabIndex:C||P===0?-1:0,"data-orientation":a,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{M.current=!0}),onFocus:Me(e.onFocus,G=>{const W=!M.current;if(G.target===G.currentTarget&&W&&!C){const te=new CustomEvent(bm,Gz);if(G.currentTarget.dispatchEvent(te),!te.defaultPrevented){const se=N().filter(I=>I.focusable),me=se.find(I=>I.active),re=se.find(I=>I.id===_),oe=[me,re,...se].filter(Boolean).map(I=>I.ref.current);BC(oe,g)}}M.current=!1}),onBlur:Me(e.onBlur,()=>O(!1))})})}),$C="RovingFocusGroupItem",VC=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,children:c,...f}=e,h=Zo(),d=l||h,g=Wz($C,n),v=g.currentTabStopId===d,S=UC(n),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:_}=g;return x.useEffect(()=>{if(a)return b(),()=>w()},[a,b,w]),m.jsx(Dg.ItemSlot,{scope:n,id:d,focusable:a,active:o,children:m.jsx(gt.span,{tabIndex:v?0:-1,"data-orientation":g.orientation,...f,ref:t,onMouseDown:Me(e.onMouseDown,T=>{a?g.onItemFocus(d):T.preventDefault()}),onFocus:Me(e.onFocus,()=>g.onItemFocus(d)),onKeyDown:Me(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){g.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=eF(T,g.orientation,g.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let A=S().filter(N=>N.focusable).map(N=>N.ref.current);if(C==="last")A.reverse();else if(C==="prev"||C==="next"){C==="prev"&&A.reverse();const N=A.indexOf(T.currentTarget);A=g.loop?tF(A,N+1):A.slice(N+1)}setTimeout(()=>BC(A))}}),children:typeof c=="function"?c({isCurrentTabStop:v,hasTabStop:_!=null}):c})})});VC.displayName=$C;var Xz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Jz(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function eF(e,t,n){const a=Jz(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Xz[a]}function BC(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function tF(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var nF=FC,rF=VC;function aF(e){const t=iF(e),n=x.forwardRef((a,o)=>{const{children:l,...c}=a,f=x.Children.toArray(l),h=f.find(sF);if(h){const d=h.props.children,g=f.map(v=>v===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:v);return m.jsx(t,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,g):null})}return m.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function iF(e){const t=x.forwardRef((n,a)=>{const{children:o,...l}=n;if(x.isValidElement(o)){const c=uF(o),f=lF(l,o.props);return o.type!==x.Fragment&&(f.ref=a?ri(a,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oF=Symbol("radix.slottable");function sF(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oF}function lF(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...f)=>{const h=l(...f);return o(...f),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function uF(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Lo=new WeakMap,Uc=new WeakMap,zc={},Sm=0,qC=function(e){return e&&(e.host||qC(e.parentNode))},fF=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=qC(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dF=function(e,t,n,a){var o=fF(t,Array.isArray(e)?e:[e]);zc[n]||(zc[n]=new WeakMap);var l=zc[n],c=[],f=new Set,h=new Set(o),d=function(v){!v||f.has(v)||(f.add(v),d(v.parentNode))};o.forEach(d);var g=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(S){if(f.has(S))g(S);else try{var b=S.getAttribute(a),w=b!==null&&b!=="false",_=(Lo.get(S)||0)+1,T=(l.get(S)||0)+1;Lo.set(S,_),l.set(S,T),c.push(S),_===1&&w&&Uc.set(S,!0),T===1&&S.setAttribute(n,"true"),w||S.setAttribute(a,"true")}catch(C){console.error("aria-hidden: cannot operate on ",S,C)}})};return g(t),f.clear(),Sm++,function(){c.forEach(function(v){var S=Lo.get(v)-1,b=l.get(v)-1;Lo.set(v,S),l.set(v,b),S||(Uc.has(v)||v.removeAttribute(a),Uc.delete(v)),b||v.removeAttribute(n)}),Sm--,Sm||(Lo=new WeakMap,Lo=new WeakMap,Uc=new WeakMap,zc={})}},HC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=cF(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live], script"))),dF(a,o,n,"aria-hidden")):function(){return null}},uf="right-scroll-bar-position",cf="width-before-scroll-bar",hF="with-scroll-bars-hidden",pF="--removed-body-scroll-bar-size";function xm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mF(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var o=n.value;o!==a&&(n.value=a,n.callback(a,o))}}}})[0];return n.callback=t,n.facade}var gF=typeof window<"u"?x.useLayoutEffect:x.useEffect,mw=new WeakMap;function yF(e,t){var n=mF(null,function(a){return e.forEach(function(o){return xm(o,a)})});return gF(function(){var a=mw.get(n);if(a){var o=new Set(a),l=new Set(e),c=n.current;o.forEach(function(f){l.has(f)||xm(f,null)}),l.forEach(function(f){o.has(f)||xm(f,c)})}mw.set(n,e)},[e]),n}function vF(e){return e}function bF(e,t){t===void 0&&(t=vF);var n=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,a);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(l){for(a=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){a=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(l),c=n}var h=function(){var g=c;c=[],g.forEach(l)},d=function(){return Promise.resolve().then(h)};d(),n={push:function(g){c.push(g),d()},filter:function(g){return c=c.filter(g),n}}}};return o}function SF(e){e===void 0&&(e={});var t=bF(null);return t.options=L({async:!0,ssr:!1},e),t}var GC=function(e){var t=e.sideCar,n=bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return x.createElement(a,L({},n))};GC.isSideCarExport=!0;function xF(e,t){return e.useMedium(t),GC}var QC=SF(),Em=function(){},id=x.forwardRef(function(e,t){var n=x.useRef(null),a=x.useState({onScrollCapture:Em,onWheelCapture:Em,onTouchMoveCapture:Em}),o=a[0],l=a[1],c=e.forwardProps,f=e.children,h=e.className,d=e.removeScrollBar,g=e.enabled,v=e.shards,S=e.sideCar,b=e.noRelative,w=e.noIsolation,_=e.inert,T=e.allowPinchZoom,C=e.as,O=C===void 0?"div":C,A=e.gapMode,N=bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=S,P=yF([n,t]),U=L(L({},N),o);return x.createElement(x.Fragment,null,g&&x.createElement(M,{sideCar:QC,removeScrollBar:d,shards:v,noRelative:b,noIsolation:w,inert:_,setCallbacks:l,allowPinchZoom:!!T,lockRef:n,gapMode:A}),c?x.cloneElement(x.Children.only(f),L(L({},U),{ref:P})):x.createElement(O,L({},U,{className:h,ref:P}),f))});id.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};id.classNames={fullWidth:cf,zeroRight:uf};var EF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=EF();return t&&e.setAttribute("nonce",t),e}function _F(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function TF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var CF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wF())&&(_F(t,n),TF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},RF=function(){var e=CF();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},YC=function(){var e=RF(),t=function(n){var a=n.styles,o=n.dynamic;return e(a,o),null};return t},OF={left:0,top:0,right:0,gap:0},wm=function(e){return parseInt(e||"",10)||0},AF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wm(n),wm(a),wm(o)]},NF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return OF;var t=AF(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},DF=YC(),Jo="data-scroll-locked",kF=function(e,t,n,a){var o=e.left,l=e.top,c=e.right,f=e.gap;return n===void 0&&(n="margin"),`
310  .`.concat(hF,` {
311   overflow: hidden `).concat(a,`;
312   padding-right: `).concat(f,"px ").concat(a,`;
313  }
314  body[`).concat(Jo,`] {
315    overflow: hidden `).concat(a,`;
316    overscroll-behavior: contain;
317    `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
318    padding-left: `.concat(o,`px;
319    padding-top: `).concat(l,`px;
320    padding-right: `).concat(c,`px;
321    margin-left:0;
322    margin-top:0;
323    margin-right: `).concat(f,"px ").concat(a,`;
324    `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";
324")].filter(Boolean).join(""),`
325  }
326  
327  .`).concat(uf,` {
328    right: `).concat(f,"px ").concat(a,`;
329  }
330  
331  .`).concat(cf,` {
332    margin-right: `).concat(f,"px ").concat(a,`;
333  }
334  
335  .`).concat(uf," .").concat(uf,` {
336    right: 0 `).concat(a,`;
337  }
338  
339  .`).concat(cf," .").concat(cf,` {
340    margin-right: 0 `).concat(a,`;
341  }
342  
343  body[`).concat(Jo,`] {
344    `).concat(pF,": ").concat(f,`px;
345  }
346`)},gw=function(){var e=parseInt(document.body.getAttribute(Jo)||"0",10);return isFinite(e)?e:0},MF=function(){x.useEffect(function(){return document.body.setAttribute(Jo,(gw()+1).toString()),function(){var e=gw()-1;e<=0?document.body.removeAttribute(Jo):document.body.setAttribute(Jo,e.toString())}},[])},jF=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;MF();var l=x.useMemo(function(){return NF(o)},[o]);return x.createElement(DF,{styles:kF(l,!t,o,n?"":"!important")})},kg=!1;if(typeof window<"u")try{var Fc=Object.defineProperty({},"passive",{get:function(){return kg=!0,!0}});window.addEventListener("test",Fc,Fc),window.removeEventListener("test",Fc,Fc)}catch{kg=!1}var Po=kg?{passive:!1}:!1,IF=function(e){return e.tagName==="TEXTAREA"},KC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!IF(e)&&n[t]==="visible")},LF=function(e){return KC(e,"overflowY")},PF=function(e){return KC(e,"overflowX")},yw=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=WC(e,a);if(o){var l=ZC(e,a),c=l[1],f=l[2];if(c>f)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},UF=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},zF=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},WC=function(e,t){return e==="v"?LF(t):PF(t)},ZC=function(e,t){return e==="v"?UF(t):zF(t)},FF=function(e,t){return e==="h"&&t==="rtl"?-1:1},$F=function(e,t,n,a,o){var l=FF(e,window.getComputedStyle(t).direction),c=l*a,f=n.target,h=t.contains(f),d=!1,g=c>0,v=0,S=0;do{if(!f)break;var b=ZC(e,f),w=b[0],_=b[1],T=b[2],C=_-T-l*w;(w||C)&&WC(e,f)&&(v+=C,S+=w);var O=f.parentNode;
vendor: 4,758 bytes, lines 346-349
346f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(g&&Math.abs(v)<1||!g&&Math.abs(S)<1)&&(d=!0),d},$c=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vw=function(e){return[e.deltaX,e.deltaY]},bw=function(e){return e&&"current"in e?e.current:e},VF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},BF=function(e){return`
347  .block-interactivity-`.concat(e,` {pointer-events: none;}
348  .allow-interactivity-`).concat(e,` {pointer-events: all;}
349`)},qF=0,Uo=[];function HF(e){var t=x.useRef([]),n=x.useRef([0,0]),a=x.useRef(),o=x.useState(qF++)[0],l=x.useState(YC)[0],c=x.useRef(e);x.useEffect(function(){c.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var _=Lt([e.lockRef.current],(e.shards||[]).map(bw),!0).filter(Boolean);return _.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(_,T){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!c.current.allowPinchZoom;var C=$c(_),O=n.current,A="deltaX"in _?_.deltaX:O[0]-C[0],N="deltaY"in _?_.deltaY:O[1]-C[1],M,P=_.target,U=Math.abs(A)>Math.abs(N)?"h":"v";if("touches"in _&&U==="h"&&P.type==="range")return!1;var G=window.getSelection(),W=G&&G.anchorNode,te=W?W===P||W.contains(P):!1;if(te)return!1;var se=yw(U,P);if(!se)return!0;if(se?M=U:(M=U==="v"?"h":"v",se=yw(U,P)),!se)return!1;if(!a.current&&"changedTouches"in _&&(A||N)&&(a.current=M),!M)return!0;var me=a.current||M;return $F(me,T,_,me==="h"?A:N)},[]),h=x.useCallback(function(_){var T=_;if(!(!Uo.length||Uo[Uo.length-1]!==l)){var C="deltaY"in T?vw(T):$c(T),O=t.current.filter(function(M){return M.name===T.type&&(M.target===T.target||T.target===M.shadowParent)&&VF(M.delta,C)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var A=(c.current.shards||[]).map(bw).filter(Boolean).filter(function(M){return M.contains(T.target)}),N=A.length>0?f(T,A[0]):!c.current.noIsolation;N&&T.cancelable&&T.preventDefault()}}},[]),d=x.useCallback(function(_,T,C,O){var A={name:_,delta:T,target:C,should:O,shadowParent:GF(C)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(N){return N!==A})},1)},[]),g=x.useCallback(function(_){n.current=$c(_),a.current=void 0},[]),v=x.useCallback(function(_){d(_.type,vw(_),_.target,f(_,e.lockRef.current))},[]),S=x.useCallback(function(_){d(_.type,$c(_),_.target,f(_,e.lockRef.current))},[]);x.useEffect(function(){return Uo.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Po),document.addEventListener("touchmove",h,Po),document.addEventListener("touchstart",g,Po),function(){Uo=Uo.filter(function(_){return _!==l}),document.removeEventListener("wheel",h,Po),document.removeEventListener("touchmove",h,Po),document.removeEventListener("touchstart",g,Po)}},[]);var b=e.removeScrollBar,w=e.inert;return x.createElement(x.Fragment,null,w?x.createElement(l,{styles:BF(o)}):null,b?x.createElement(jF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QF=xF(QC,HF);var $y=x.forwardRef(function(e,t){return x.createElement(id,L({},e,{ref:t,sideCar:QF}))});$y.classNames=id.classNames;var Mg=["Enter"," "],YF=["ArrowDown","PageUp","Home"],XC=["ArrowUp","PageDown","End"],KF=[...YF,...XC],WF={ltr:[...Mg,"ArrowRight"],rtl:[...Mg,"ArrowLeft"]},ZF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fu="Menu",[Gl,XF,JF]=sC(fu),[Bi,JC]=ai(fu,[JF,AC,zC]),od=AC(),eR=zC(),[e6,qi]=Bi(fu),[t6,du]=Bi(fu),tR=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:l,modal:c=!0}=e,f=od(t),[h,d]=x.useState(null),g=x.useRef(!1),v=Rr(l),S=cC(o);return x.useEffect(()=>{const b=()=>{g.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>g.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),m.jsx(Uz,{...f,children:m.jsx(e6,{scope:t,open:n,onOpenChange:v,content:h,onContentChange:d,children:m.jsx(t6,{scope:t,onClose:x.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:g,dir:S,modal:c,children:a})})})};tR.displayName=fu;var n6="MenuAnchor",Vy=x.forwardRef((e,t)=>
vendor: 12,935 bytes, line 349
349{const{__scopeMenu:n,...a}=e,o=od(n);return m.jsx(zz,{...o,...a,ref:t})});Vy.displayName=n6;var By="MenuPortal",[r6,nR]=Bi(By,{forceMount:void 0}),rR=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,l=qi(By,t);return m.jsx(r6,{scope:t,forceMount:n,children:m.jsx(ii,{present:n||l.open,children:m.jsx(Fy,{asChild:!0,container:o,children:a})})})};rR.displayName=By;var Qn="MenuContent",[a6,qy]=Bi(Qn),aR=x.forwardRef((e,t)=>{const n=nR(Qn,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,l=qi(Qn,e.__scopeMenu),c=du(Qn,e.__scopeMenu);return m.jsx(Gl.Provider,{scope:e.__scopeMenu,children:m.jsx(ii,{present:a||l.open,children:m.jsx(Gl.Slot,{scope:e.__scopeMenu,children:c.modal?m.jsx(i6,{...o,ref:t}):m.jsx(o6,{...o,ref:t})})})})}),i6=x.forwardRef((e,t)=>{const n=qi(Qn,e.__scopeMenu),a=x.useRef(null),o=xt(t,a);return x.useEffect(()=>{const l=a.current;if(l)return HC(l)},[]),m.jsx(Hy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Me(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),o6=x.forwardRef((e,t)=>{const n=qi(Qn,e.__scopeMenu);return m.jsx(Hy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),s6=aF("MenuContent.ScrollLock"),Hy=x.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:h,onEscapeKeyDown:d,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:S,onDismiss:b,disableOutsideScroll:w,..._}=e,T=qi(Qn,n),C=du(Qn,n),O=od(n),A=eR(n),N=XF(n),[M,P]=x.useState(null),U=x.useRef(null),G=xt(t,U,T.onContentChange),W=x.useRef(0),te=x.useRef(""),se=x.useRef(0),me=x.useRef(null),re=x.useRef("right"),ce=x.useRef(0),oe=w?$y:x.Fragment,I=w?{as:s6,allowPinchZoom:!0}:void 0,V=$=>{var fe,nt;const le=te.current+$,D=N().filter(Ae=>!Ae.disabled),F=document.activeElement,Z=(fe=D.find(Ae=>Ae.ref.current===F))==null?void 0:fe.textValue,ae=D.map(Ae=>Ae.textValue),ge=b6(ae,le,Z),ye=(nt=D.find(Ae=>Ae.textValue===ge))==null?void 0:nt.ref.current;(function Ae(Gt){te.current=Gt,window.clearTimeout(W.current),Gt!==""&&(W.current=window.setTimeout(()=>Ae(""),1e3))})(le),ye&&setTimeout(()=>ye.focus())};x.useEffect(()=>()=>window.clearTimeout(W.current),[]),hC();const Y=x.useCallback($=>{var D,F;return re.current===((D=me.current)==null?void 0:D.side)&&x6($,(F=me.current)==null?void 0:F.area)},[]);return m.jsx(a6,{scope:n,searchRef:te,onItemEnter:x.useCallback($=>{Y($)&&$.preventDefault()},[Y]),onItemLeave:x.useCallback($=>{var le;Y($)||((le=U.current)==null||le.focus(),P(null))},[Y]),onTriggerLeave:x.useCallback($=>{Y($)&&$.preventDefault()},[Y]),pointerGraceTimerRef:se,onPointerGraceIntentChange:x.useCallback($=>{me.current=$},[]),children:m.jsx(oe,{...I,children:m.jsx(Dy,{asChild:!0,trapped:o,onMountAutoFocus:Me(l,$=>{var le;$.preventDefault(),(le=U.current)==null||le.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:m.jsx(Ny,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:S,onDismiss:b,children:m.jsx(nF,{asChild:!0,...A,dir:C.dir,orientation:"vertical",loop:a,currentTabStopId:M,onCurrentTabStopIdChange:P,onEntryFocus:Me(h,$=>{C.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Fz,{role:"menu","aria-orientation":"vertical","data-state":SR(T.open),"data-radix-menu-content":"",dir:C.dir,...O,..._,ref:G,style:{outline:"none",..._.style},onKeyDown:Me(_.onKeyDown,$=>{const D=$.target.closest("[data-radix-menu-content]")===$.currentTarget,F=$.ctrlKey||$.altKey||$.metaKey,Z=$.key.length===1;D&&($.key==="Tab"&&$.preventDefault(),!F&&Z&&V($.key));const ae=U.current;if($.target!==ae||!KF.includes($.key))return;$.preventDefault();const ye=N().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);XC.includes($.key)&&ye.reverse(),y6(ye)}),onBlur:Me(e.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(W.current),te.current="")}),onPointerMove:Me(e.onPointerMove,Ql($=>{const le=$.target,D=ce.current!==$.clientX;if($.currentTarget.contains(le)&&D){const F=$.clientX>ce.current?"right":"left";re.current=F,ce.current=$.clientX}}))})})})})})})});aR.displayName=Qn;var l6="MenuGroup",Gy=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return m.jsx(gt.div,{role:"group",...a,ref:t})});Gy.displayName=l6;var u6="MenuLabel",iR=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return m.jsx(gt.div,{...a,ref:t})});iR.displayName=u6;var _f="MenuItem",Sw="menu.itemSelect",sd=x.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...o}=e,l=x.useRef(null),c=du(_f,e.__scopeMenu),f=qy(_f,e.__scopeMenu),h=xt(t,l),d=x.useRef(!1),g=()=>{const v=l.current;if(!n&&v){const S=new CustomEvent(Sw,{bubbles:!0,cancelable:!0});v.addEventListener(Sw,b=>a==null?void 0:a(b),{once:!0}),oC(v,S),S.defaultPrevented?d.current=!1:c.onClose()}};return m.jsx(oR,{...o,ref:h,disabled:n,onClick:Me(e.onClick,g),onPointerDown:v=>{var S;(S=e.onPointerDown)==null||S.call(e,v),d.current=!0},onPointerUp:Me(e.onPointerUp,v=>{var S;d.current||(S=v.currentTarget)==null||S.click()}),onKeyDown:Me(e.onKeyDown,v=>{const S=f.searchRef.current!=="";n||S&&v.key===" "||Mg.includes(v.key)&&(v.currentTarget.click(),v.preventDefault())})})});sd.displayName=_f;var oR=x.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...l}=e,c=qy(_f,n),f=eR(n),h=x.useRef(null),d=xt(t,h),[g,v]=x.useState(!1),[S,b]=x.useState("");return x.useEffect(()=>{const w=h.current;w&&b((w.textContent??"").trim())},[l.children]),m.jsx(Gl.ItemSlot,{scope:n,disabled:a,textValue:o??S,children:m.jsx(rF,{asChild:!0,...f,focusable:!a,children:m.jsx(gt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...l,ref:d,onPointerMove:Me(e.onPointerMove,Ql(w=>{a?c.onItemLeave(w):(c.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Me(e.onPointerLeave,Ql(w=>c.onItemLeave(w))),onFocus:Me(e.onFocus,()=>v(!0)),onBlur:Me(e.onBlur,()=>v(!1))})})})}),c6="MenuCheckboxItem",sR=x.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...o}=e;return m.jsx(dR,{scope:e.__scopeMenu,checked:n,children:m.jsx(sd,{role:"menuitemcheckbox","aria-checked":Tf(n)?"mixed":n,...o,ref:t,"data-state":Yy(n),onSelect:Me(o.onSelect,()=>a==null?void 0:a(Tf(n)?!0:!n),{checkForDefaultPrevented:!1})})})});sR.displayName=c6;var lR="MenuRadioGroup",[f6,d6]=Bi(lR,{value:void 0,onValueChange:()=>{}}),uR=x.forwardRef((e,t)=>{const{value:n,onValueChange:a,...o}=e,l=Rr(a);return m.jsx(f6,{scope:e.__scopeMenu,value:n,onValueChange:l,children:m.jsx(Gy,{...o,ref:t})})});uR.displayName=lR;var cR="MenuRadioItem",fR=x.forwardRef((e,t)=>{const{value:n,...a}=e,o=d6(cR,e.__scopeMenu),l=n===o.value;return m.jsx(dR,{scope:e.__scopeMenu,checked:l,children:m.jsx(sd,{role:"menuitemradio","aria-checked":l,...a,ref:t,"data-state":Yy(l),onSelect:Me(a.onSelect,()=>{var c;return(c=o.onValueChange)==null?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})})});fR.displayName=cR;var Qy="MenuItemIndicator",[dR,h6]=Bi(Qy,{checked:!1}),hR=x.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...o}=e,l=h6(Qy,n);return m.jsx(ii,{present:a||Tf(l.checked)||l.checked===!0,children:m.jsx(gt.span,{...o,ref:t,"data-state":Yy(l.checked)})})});hR.displayName=Qy;var p6="MenuSeparator",pR=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return m.jsx(gt.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});pR.displayName=p6;var m6="MenuArrow",mR=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=od(n);return m.jsx($z,{...o,...a,ref:t})});mR.displayName=m6;var g6="MenuSub",[bH,gR]=Bi(g6),Cl="MenuSubTrigger",yR=x.forwardRef((e,t)=>{const n=qi(Cl,e.__scopeMenu),a=du(Cl,e.__scopeMenu),o=gR(Cl,e.__scopeMenu),l=qy(Cl,e.__scopeMenu),c=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:h}=l,d={__scopeMenu:e.__scopeMenu},g=x.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return x.useEffect(()=>g,[g]),x.useEffect(()=>{const v=f.current;return()=>{window.clearTimeout(v),h(null)}},[f,h]),m.jsx(Vy,{asChild:!0,...d,children:m.jsx(oR,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":SR(n.open),...e,ref:ri(t,o.onTriggerChange),onClick:v=>{var S;(S=e.onClick)==null||S.call(e,v),!(e.disabled||v.defaultPrevented)&&(v.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Me(e.onPointerMove,Ql(v=>{l.onItemEnter(v),!v.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:Me(e.onPointerLeave,Ql(v=>{var b,w;g();const S=(b=n.content)==null?void 0:b.getBoundingClientRect();if(S){const _=(w=n.content)==null?void 0:w.dataset.side,T=_==="right",C=T?-5:5,O=S[T?"left":"right"],A=S[T?"right":"left"];l.onPointerGraceIntentChange({area:[{x:v.clientX+C,y:v.clientY},{x:O,y:S.top},{x:A,y:S.top},{x:A,y:S.bottom},{x:O,y:S.bottom}],side:_}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(v),v.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:Me(e.onKeyDown,v=>{var b;const S=l.searchRef.current!=="";e.disabled||S&&v.key===" "||WF[a.dir].includes(v.key)&&(n.onOpenChange(!0),(b=n.content)==null||b.focus(),v.preventDefault())})})})});yR.displayName=Cl;var vR="MenuSubContent",bR=x.forwardRef((e,t)=>{const n=nR(Qn,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,l=qi(Qn,e.__scopeMenu),c=du(Qn,e.__scopeMenu),f=gR(vR,e.__scopeMenu),h=x.useRef(null),d=xt(t,h);return m.jsx(Gl.Provider,{scope:e.__scopeMenu,children:m.jsx(ii,{present:a||l.open,children:m.jsx(Gl.Slot,{scope:e.__scopeMenu,children:m.jsx(Hy,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{var v;c.isUsingKeyboardRef.current&&((v=h.current)==null||v.focus()),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Me(e.onFocusOutside,g=>{g.target!==f.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:Me(e.onEscapeKeyDown,g=>{c.onClose(),g.preventDefault()}),onKeyDown:Me(e.onKeyDown,g=>{var b;const v=g.currentTarget.contains(g.target),S=ZF[c.dir].includes(g.key);v&&S&&(l.onOpenChange(!1),(b=f.trigger)==null||b.focus(),g.preventDefault())})})})})})});bR.displayName=vR;function SR(e){return e?"open":"closed"}function Tf(e){return e==="indeterminate"}function Yy(e){return Tf(e)?"indeterminate":e?"checked":"unchecked"}function y6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function v6(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function b6(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=v6(e,Math.max(l,0));o.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function S6(e,t){const{x:n,y:a}=e;let o=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const f=t[l],h=t[c],d=f.x,g=f.y,v=h.x,S=h.y;g>a!=S>a&&n<(v-d)*(a-g)/(S-g)+d&&(o=!o)}return o}function x6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return S6(n,t)}function Ql(e){return t=>t.pointerType==="mouse"?e(t):void 0}var E6=tR,w6=Vy,_6=rR,T6=aR,C6=Gy,R6=iR,O6=sd,A6=sR,N6=uR,D6=fR,k6=hR,M6=pR,j6=mR,I6=yR,L6=bR,ld="DropdownMenu",[P6]=ai(ld,[JC]),on=JC(),[U6,xR]=P6(ld),ER=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:o,defaultOpen:l,onOpenChange:c,modal:f=!0}=e,h=on(t),d=x.useRef(null),[g,v]=ed({prop:o,defaultProp:l??!1,onChange:c,caller:ld});return m.jsx(U6,{scope:t,triggerId:Zo(),triggerRef:d,contentId:Zo(),open:g,onOpenChange:v,onOpenToggle:x.useCallback(()=>v(S=>!S),[v]),modal:f,children:m.jsx(E6,{...h,open:g,onOpenChange:v,dir:a,modal:f,children:n})})};ER.displayName=ld;var wR="DropdownMenuTrigger",_R=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,l=xR(wR,n),c=on(n);return m.jsx(w6,{asChild:!0,...c,children:m.jsx(gt.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:ri(t,l.triggerRef),onPointerDown:Me(e.onPointerDown,f=>{!a&&f.button===0&&f.ctrlKey===!1&&(l.onOpenToggle(),l.open||f.preventDefault())}),onKeyDown:Me(e.onKeyDown,f=>{a||(["Enter"," "].includes(f.key)&&l.onOpenToggle(),f.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});_R.displayName=wR;var z6="DropdownMenuPortal",TR=e=>{const{__scopeDropdownMenu:t,...n}=e,a=on(t);return m.jsx(_6,{...a,...n})};TR.displayName=z6;var CR="DropdownMenuContent",RR=x.forwardRef((e,t)=>
349{const{__scopeDropdownMenu:n,...a}=e,o=xR(CR,n),l=on(n),c=x.useRef(!1);return m.jsx(T6,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...a,ref:t,onCloseAutoFocus:Me(e.onCloseAutoFocus,f=>{var h;c.current||(h=o.triggerRef.current)==null||h.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:Me(e.onInteractOutside,f=>{const h=f.detail.originalEvent,d=h.button===0&&h.ctrlKey===!0,g=h.button===2||d;(!o.modal||g)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});RR.displayName=CR;var F6="DropdownMenuGroup",$6=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(C6,{...o,...a,ref:t})});$6.displayName=F6;var V6="DropdownMenuLabel",OR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(R6,{...o,...a,ref:t})});OR.displayName=V6;var B6="DropdownMenuItem",AR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(O6,{...o,...a,ref:t})});AR.displayName=B6;var q6="DropdownMenuCheckboxItem",NR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(A6,{...o,...a,ref:t})});NR.displayName=q6;var H6="DropdownMenuRadioGroup",G6=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(N6,{...o,...a,ref:t})});G6.displayName=H6;var Q6="DropdownMenuRadioItem",DR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(D6,{...o,...a,ref:t})});DR.displayName=Q6;var Y6="DropdownMenuItemIndicator",kR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(k6,{...o,...a,ref:t})});kR.displayName=Y6;var K6="DropdownMenuSeparator",MR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(M6,{...o,...a,ref:t})});MR.displayName=K6;var W6="DropdownMenuArrow",Z6=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(j6,{...o,...a,ref:t})});Z6.displayName=W6;var X6="DropdownMenuSubTrigger",jR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(I6,{...o,...a,ref:t})});jR.displayName=X6;var J6="DropdownMenuSubContent",IR=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,o=on(n);return m.jsx(L6,{...o,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});IR.displayName=J6;var e$=ER,t$=_R,n$=TR,LR=RR,PR=OR,UR=AR,zR=NR,FR=DR,$R=kR,VR=MR,BR=jR,qR=IR;const Ky=e$,Wy=t$,r$=x.forwardRef(({className:e,inset:t,children:n,...a},o)=>m.jsxs(BR,{ref:o,className:pe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...a,children:[n,m.jsx(a5,{className:"ml-auto h-4 w-4"})]}));r$.displayName=BR.displayName;const a$=x.forwardRef(({className:e,...t},n)=>m.jsx(qR,{ref:n,className:pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));a$.displayName=qR.displayName;const ud=x.forwardRef(({className:e,sideOffset:t=4,...n},a)=>m.jsx(n$,{children:m.jsx(LR,{ref:a,sideOffset:t,className:pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
349de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));ud.displayName=LR.displayName;const Jr=x.forwardRef(({className:e,inset:t,...n},a)=>m.jsx(UR,{ref:a,className:pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Jr.displayName=UR.displayName;const i$=x.forwardRef(({className:e,children:t,checked:n,...a},o)=>m.jsxs(zR,{ref:o,className:pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...a,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx($R,{children:m.jsx(Eg,{className:"h-4 w-4"})})}),t]}));i$.displayName=zR.displayName;const o$=x.forwardRef(({className:e,children:t,...n},a)=>m.jsxs(FR,{ref:a,className:pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx($R,{children:m.jsx(i5,{className:"h-2 w-2 fill-current"})})}),t]}));o$.displayName=FR.displayName;const s$=x.forwardRef(({className:e,inset:t,...n},a)=>m.jsx(PR,{ref:a,className:pe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));s$.displayName=PR.displayName;const jg=x.forwardRef(({className:e,...t},n)=>m.jsx(VR,{ref:n,className:pe("-mx-1 my-1 h-px bg-muted",e),...t}));jg.displayName=VR.displayName;const l$=(...e)=>{console!=null&&console.warn&&(ki(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},xw={},Ig=(...e)=>{ki(e[0])&&xw[e[0]]||(ki(e[0])&&(xw[e[0]]=new Date),l$(...e))},HR=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ew=(e,t,n)=>{e.loadNamespaces(t,HR(e,n))},ww=(e,t,n,a)=>{ki(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,HR(e,a))},u$=(e,t,n={})=>!t.languages||!t.languages.length?(Ig("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,o)=>{var l;if(((l=n.bindI18n)==null?void 0:l.indexOf("languageChanging"))>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}),ki=e=>typeof e=="string",c$=e=>typeof e=="object"&&e!==null,f$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d$={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},h$=e=>d$[e],p$=e=>e.replace(f$,h$);let Lg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:p$};const m$=(e={})=>{Lg={...Lg,...e}},g$=()=>Lg;let GR;const y$=e=>{GR=e},v$=()=>GR,b$={type:"3rdParty",init(e){m$(e.options.react),y$(e)}},S$=x.createContext();class x${constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const E$=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},QR=(e,t,n,a)=>e.getFixedT(t,n,a),w$=(e,t,n,a)=>x.useCallback(QR(e,t,n,a),[e,t,n,a]),Hi=(e,t={})=>{var N,M,P,U;const{i18n:n}=t,{i18n:a,defaultNS:o}=x.useContext(S$)||{},l=n||a||v$();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new x$),!l){Ig("You will need to pass in an i18next instance by using initReactI18next");const G=(te,se)=>ki(se)?se:c$(se)&&ki(se.defaultValue)?se.defaultValue:Array.isArray(te)?te[te.length-1]:te,W
vendor: 12,638 bytes, lines 349-945
349=[G,{},!1];return W.t=G,W.i18n={},W.ready=!1,W}(N=l.options.react)!=null&&N.wait&&Ig("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...g$(),...l.options.react,...t},{useSuspense:f,keyPrefix:h}=c;let d=o||((M=l.options)==null?void 0:M.defaultNS);d=ki(d)?[d]:d||["translation"],(U=(P=l.reportNamespaces).addUsedNamespaces)==null||U.call(P,d);const g=(l.isInitialized||l.initializedStoreOnce)&&d.every(G=>u$(G,l,c)),v=w$(l,t.lng||null,c.nsMode==="fallback"?d:d[0],h),S=()=>v,b=()=>QR(l,t.lng||null,c.nsMode==="fallback"?d:d[0],h),[w,_]=x.useState(S);let T=d.join();t.lng&&(T=`${t.lng}${T}`);const C=E$(T),O=x.useRef(!0);x.useEffect(()=>{const{bindI18n:G,bindI18nStore:W}=c;O.current=!0,!g&&!f&&(t.lng?ww(l,t.lng,d,()=>{O.current&&_(b)}):Ew(l,d,()=>{O.current&&_(b)})),g&&C&&C!==T&&O.current&&_(b);const te=()=>{O.current&&_(b)};return G&&(l==null||l.on(G,te)),W&&(l==null||l.store.on(W,te)),()=>{O.current=!1,l&&(G==null||G.split(" ").forEach(se=>l.off(se,te))),W&&l&&W.split(" ").forEach(se=>l.store.off(se,te))}},[l,T]),x.useEffect(()=>{O.current&&g&&_(S)},[l,h,g]);const A=[w,l,g];if(A.t=w,A.i18n=l,A.ready=g,g||!g&&!f)return A;throw new Promise(G=>{t.lng?ww(l,t.lng,d,()=>G()):Ew(l,d,()=>G())})},SH=Ce`
350  mutation Login($input: LoginInput!) {
351    login(input: $input) {
352      user {
353        id
354        email
355        firstName
356        lastName
357        role
358        profile {
359          subscriptionTier
360          subscriptionStatus
361        }
362      }
363      accessToken
364      refreshToken
365      expiresIn
366      accountLockout {
367        lockedUntil
368        supportEmail
369        supportPhone
370        message
371      }
372      mfaChallenge {
373        challengeId
374        mfaRequired
375        availableMethods
376        preferredMethod
377        email
378      }
379    }
380  }
381`,xH=Ce`
382  mutation GoogleAuth($code: String!, $redirectUri: String!) {
383    googleAuth(code: $code, redirectUri: $redirectUri) {
384      accessToken
385      refreshToken
386      expiresIn
387      linkedProvider
388      mfaChallenge {
389        challengeId
390        mfaRequired
391        availableMethods
392        preferredMethod
393        email
394      }
395      user {
396        id
397        email
398        firstName
399        lastName
400        role
401        emailVerified
402        profilePictureUrl
403        registrationMethod
404        profile {
405          subscriptionTier
406          subscriptionStatus
407        }
408      }
409    }
410  }
411`,EH=Ce`
412  mutation FacebookAuth($code: String!, $redirectUri: String!) {
413    facebookAuth(code: $code, redirectUri: $redirectUri) {
414      accessToken
415      refreshToken
416      expiresIn
417      linkedProvider
418      mfaChallenge {
419        challengeId
420        mfaRequired
421        availableMethods
422        preferredMethod
423        email
424      }
425      user {
426        id
427        email
428        firstName
429        lastName
430        role
431        emailVerified
432        profilePictureUrl
433        registrationMethod
434        profile {
435          subscriptionTier
436          subscriptionStatus
437        }
438      }
439    }
440  }
441`,wH=Ce`
442  mutation AppleAuthChallenge {
443    appleAuthChallenge {
444      challengeId
445      nonce
446      state
447      expiresAt
448    }
449  }
450`,_H=Ce`
451  mutation AppleAuth($input: AppleAuthInput!) {
452    appleAuth(input: $input) {
453      accessToken
454      refreshToken
455      expiresIn
456      linkedProvider
457      mfaChallenge {
458        challengeId
459        mfaRequired
460        availableMethods
461        preferredMethod
462        email
463      }
464      user {
465        id
466        email
467        firstName
468        lastName
469        role
470        emailVerified
471        profilePictureUrl
472        registrationMethod
473        profile {
474          subscriptionTier
475          subscriptionStatus
476        }
477      }
478    }
479  }
480`,_$=Ce`
481  query CanAccessFeature($featureKey: String!) {
482    canAccessFeature(featureKey: $featureKey)
483  }
484`,TH=Ce`
485  query SubscriptionCheckoutPrices($marketCode: String!) {
486    subscriptionPrices(marketCode: $marketCode) {
487      priceRevisionId
488      billingCycle
489      currency
490      price
491      isActive
492      plan {
493        tier
494      }
495    }
496  }
497`,CH=Ce`
498  query MySubscription {
499    mySubscription {
500      subscriptionId
501      status
502      authoritySource
503      billingCycle
504      renewalMode
505      cancelAtPeriodEnd
506      nextRenewalAt
507      graceEndsAt
508      priceNoticeRequired
509      currentPeriodStart
510      currentPeriodEnd
511      marketCode
512      plan {
513        planId
514        planName
515        tier
516        features {
517          featureKey
518          featureName
519          description
520          isEnabled
521        }
522        limits {
523          limitKey
524          limitValue
525          limitType
526          description
527        }
528      }
529      currentPriceRevision {
530        priceRevisionId
531        currency
532        price
533      }
534      renewalPriceRevision {
535        priceRevisionId
536        currency
537        price
538      }
539      recurringBillingMethod {
540        billingMethodId
541        cardBrand
542        cardLast4
543        cardExpiryMonth
544        cardExpiryYear
545        consentVersion
546        consentLocale
547        active
548        requiresReauth
549      }
550      usageStats {
551        trackingId
552        usageKey
553        usageValue
554        limit
555        periodStart
556        periodEnd
557      }
558      invoices {
559        invoiceId
560        invoiceNumber
561        amountPaid
562        currency
563        status
564        paidAt
565        createdAt
566      }
567    }
568  }
569`,RH=Ce`
570  query MySubscriptionPaymentAttempts {
571    mySubscriptionPaymentAttempts {
572      paymentAttemptId
573      subscriptionId
574      status
575      amount
576      currency
577      billingCycle
578      paymentRail
579      merchantTransactionId
580      gatewayTransactionId
581      chargeId
582      initiatedAt
583      expiresAt
584      verifiedAt
585      failureCode
586      failureMessage
587      legalConsentVersion
588      legalConsentAt
589      legalConsentLocale
590    }
591  }
592`,OH=Ce`
593  query MySubscriptionPaymentAttempt($paymentAttemptId: ID) {
594    mySubscriptionPaymentAttempt(paymentAttemptId: $paymentAttemptId) {
595      paymentAttemptId
596      subscriptionId
597      status
598      amount
599      currency
600      billingCycle
601      paymentRail
602      merchantTransactionId
603      gatewayTransactionId
604      chargeId
605      initiatedAt
606      expiresAt
607      verifiedAt
608      failureCode
609      failureMessage
610      legalConsentVersion
611      legalConsentAt
612      legalConsentLocale
613    }
614  }
615`,AH=Ce`
616  mutation BeginSubscriptionCheckout($input: SubscriptionCheckoutInput!) {
617    beginSubscriptionCheckout(input: $input) {
618      paymentIntentId
619      merchantTransactionId
620      amount
621      currency
622      gateway
623      afsCheckoutId
624      afsIntegrityHash
625      afsWidgetScriptUrl
626      afsBrands
627    }
628  }
629`,NH=Ce`
630  query SubscriptionInvoiceDocument($invoiceId: ID!) {
631    subscriptionInvoiceDocument(invoiceId: $invoiceId) {
632      invoiceId
633      invoiceNumber
634      storageUrl
635    }
636  }
637`,DH=Ce`
638  mutation RegisterCustomer($input: CustomerRegistrationInput!) {
639    registerCustomer(input: $input) {
640      user {
641        id
642        email
643        firstName
644        lastName
645        role
646        profile {
647          subscriptionTier
648          subscriptionStatus
649        }
650      }
651      accessToken
652      refreshToken
653      expiresIn
654    }
655  }
656`,T$=Ce`
657  query GetCurrentUser {
658    me {
659      id
660      email
661      firstName
662      lastName
663      profilePictureUrl
664      emailVerified
665      lastLoginAt
666      phone
667      role
668      registrationMethod
669      hasPassword
670      profile {
671        subscriptionTier
672        subscriptionStatus
673      }
674      subscription {
675        status
676      }
677    }
678  }
679`;Ce`
680  query GetCatalogHierarchy {
681    getPublishedCatalogs {
682      catalogId
683      catalogName
684      catalogSlug
685      description
686      status
687      categories {
688        categoryId
689        categoryName
690        categorySlug
691        description
692        subcategories {
693          subcategoryId
694          subcategoryName
695          subcategorySlug
696          description
697        }
698      }
699    }
700  }
701`;Ce`
702  query GetSubcategoryProducts(
703    $subcategoryId: ID!
704    $filters: ProductFiltersInput
705    $sortBy: ProductSortInput
706    $pagination: PaginationInput
707  ) {
708    subcategory(id: $subcategoryId) {
709      subcategoryId
710      subcategoryName
711      description
712      products(filters: $filters, sortBy: $sortBy, pagination: $pagination) {
713        nodes {
714          productId
715          productName
716          productDescription
717          basePrice
718          images {
719            imageId
720            largeUrl
721            thumbnailUrl
722            colorName
723            position
724          }
725          variants {
726            variantId
727            size
728            colorName
729            colorHex
730            priceOverride
731            inventory {
732              availableStock
733            }
734          }
735          averageRating
736          reviewCount
737        }
738        pageInfo {
739          hasNextPage
740          hasPreviousPage
741          startCursor
742          endCursor
743        }
744        totalCount
745      }
746    }
747  }
748`;const kH=Ce`
749  query GetProductDetails($productSlug: String!) {
750    getProductBySlug(slug: $productSlug) {
751      productId
752      sku
753      productSlug
754      productName
755      productDescription
756      shortDescription
757      basePrice
758      status
759      isCustomizable
760      isBrandingProduct
761      brandingProductType
762      sizeGuideNotes
763      fileSpecifications
764      productDetails
765      shippingCost
766      deliveryEstimate
767      shippingFrom
768      shippingCurrency
769      averageRating
770      reviewCount
771    }
772  }
773`,MH=Ce`
774  query GetProductDetailsById($productId: ID!) {
775    getProductById(productId: $productId) {
776      productId
777      sku
778      productSlug
779      productName
780      productDescription
781      shortDescription
782      basePrice
783      status
784      isCustomizable
785      isBrandingProduct
786      brandingProductType
787      sizeGuideNotes
788      fileSpecifications
789      productDetails
790      shippingCost
791      deliveryEstimate
792      shippingFrom
793      shippingCurrency
794      averageRating
795      reviewCount
796    }
797  }
798`,jH=Ce`
799  query GetProductColorVariants($productId: ID!) {
800    getProductColors(productId: $productId) {
801      colorName
802      colorHex
803      totalSizes
804      totalImages
805      availableStock
806      sizes {
807        variantId
808        variantSku
809        colorName
810        colorHex
811        size
812        priceOverride
813        isActive
814        inventory {
815          inventoryId
816          availableStock
817          reservedStock
818        }
819      }
820      images {
821        imageId
822        thumbnailUrl
823        mediumUrl
824        largeUrl
825        colorName
826        position
827      }
828    }
829  }
830`,IH=Ce`
831  query GetPrintAreaTemplates($productId: ID!) {
832    getPrintAreaTemplates(productId: $productId) {
833      fileId
834      fileName
835      storageUrl
836      fileSize
837      productPrintTech
838      productPrintArea
839      uploadedAt
840    }
841  }
842`,LH=Ce`
843  query GetSizeGuideImages($productId: ID!) {
844    getSizeGuideImages(productId: $productId) {
845      fileId
846      fileName
847      storageUrl
848      fileSize
849      uploadedAt
850    }
851  }
852`;Ce`
853  query SearchProducts(
854    $query: String!
855    $filters: ProductFiltersInput
856    $sortBy: ProductSortInput
857    $pagination: PaginationInput
858  ) {
859    searchProducts(
860      query: $query
861      filters: $filters
862      sortBy: $sortBy
863      pagination: $pagination
864    ) {
865      nodes {
866        productId
867        productName
868        productDescription
869        productSlug
870        basePrice
871        images {
872          imageId
873          thumbnailUrl
874          colorName
875        }
876        variants {
877          variantId
878          size
879          colorName
880          priceOverride
881          inventory {
882            availableStock
883          }
884        }
885        averageRating
886        reviewCount
887      }
888      pageInfo {
889        hasNextPage
890        hasPreviousPage
891        startCursor
892        endCursor
893      }
894      totalCount
895      facets {
896        categories {
897          value
898          count
899        }
900        priceRanges {
901          min
902          max
903          count
904        }
905        sizes {
906          value
907          count
908        }
909        colors {
910          value
911          count
912        }
913      }
914    }
915  }
916`;Ce`
917  query GetUserDesigns($userId: ID!, $pagination: PaginationInput) {
918    user(id: $userId) {
919      designs(pagination: $pagination) {
920        nodes {
921          id
922          name
923          thumbnailUrl
924          canvasData
925          product {
926            id
927            name
928            images {
929              url
930            }
931          }
932          createdAt
933          updatedAt
934        }
935        pageInfo {
936          hasNextPage
937          hasPreviousPage
938          startCursor
939          endCursor
940        }
941        totalCount
942      }
943    }
944  }
945`;Ce`
946  mutation CreateDesign($input: CreateDesignInput!) {
947    createDesign(input: $input) {
948      id
949      name
950      canvasData
951      thumbnailUrl
952      product {
953        id
954        name
955      }
956      createdAt
957    }
958  }
959`;Ce`
960  mutation SaveDesign($designId: ID!, $input: SaveDesignInput!) {
961    saveDesign(designId: $designId, input: $input) {
962      id
963      name
964      canvasData
965      thumbnailUrl
966      updatedAt
967    }
968  }
969`;Ce`
970  mutation ShareDesign($designId: ID!, $permissions: SharePermissionsInput!) {
971    shareDesign(designId: $designId, permissions: $permissions) {
972      shareLink
973      expiresAt
974      permissions
975    }
976  }
977`;Ce`
978  mutation AddToCart($input: AddToCartInput!) {
979    addToCart(input: $input) {
980      id
981      items {
982        id
983        productVariant {
984          id
985          product {
986            id
987            name
988            images {
989              url
990            }
991          }
992          size
993          color
994          price
995        }
996        design {
997          id
998          name
999          thumbnailUrl
1000        }
1001        quantity
1002        subtotal
1003      }
1004      total
1005      itemCount
1006    }
1007  }
1008`;Ce`
1009  mutation UpdateCartItem($itemId: ID!, $quantity: Int!) {
1010    updateCartItem(itemId: $itemId, quantity: $quantity) {
1011      id
1012      items {
1013        id
1014        quantity
1015        subtotal
1016      }
1017      total
1018      itemCount
1019    }
1020  }
1021`;Ce`
1022  mutation RemoveFromCart($itemId: ID!) {
1023    removeFromCart(itemId: $itemId) {
1024      id
1025      items {
1026        id
1027      }
1028      total
1029      itemCount
1030    }
1031  }
1032`;Ce`
1033  mutation ApplyCoupon($cartId: ID!, $couponCode: String!) {
1034    applyCoupon(cartId: $cartId, couponCode: $couponCode) {
1035      id
1036      total
1037      discount {
1038        code
1039        amount
1040        type
1041      }
1042    }
1043  }
1044`;Ce`
1045  mutation PlaceOrder($input: PlaceOrderInput!) {
1046    placeOrder(input: $input) {
1047      id
1048      orderNumber
1049      status
1050      total
1051      items {
1052        id
1053        productVariant {
1054          product {
1055            name
1056          }
1057          size
1058          color
1059        }
1060        design {
1061          name
1062          thumbnailUrl
1063        }
1064        quantity
1065        price
1066      }
1067      shippingAddress {
1068        firstName
1069        lastName
1070        address1
1071        city
1072        country
1073      }
1074      payment {
1075        method
1076        status
1077        amount
1078      }
1079      createdAt
1080    }
1081  }
1082`;Ce`
1083  query GetOrderDetails($orderId: ID!) {
1084    order(id: $orderId) {
1085      id
1086      orderNumber
1087      status
1088      total
1089      items {
1090        id
1091        productVariant {
1092          product {
1093            id
1094            name
1095            images {
1096              url
1097            }
1098          }
1099          size
1100          color
1101        }
1102        design {
1103          id
1104          name
1105          thumbnailUrl
1106        }
1107        quantity
1108        price
1109        subtotal
1110      }
1111      shippingAddress {
1112        firstName
1113        lastName
1114        address1
1115        address2
1116        city
1117        state
1118        zipCode
1119        country
1120      }
1121      payment {
1122        method
1123        status
1124        amount
1125        transactionId
1126      }
1127      tracking {
1128        number
1129        carrier
1130        status
1131        estimatedDelivery
1132      }
1133      statusHistory {
1134        status
1135        timestamp
1136        note
1137      }
1138      createdAt
1139    }
1140  }
1141`;Ce`
1142  query GetUserOrders($userId: ID!, $pagination: PaginationInput) {
1143    user(id: $userId) {
1144      orders(pagination: $pagination) {
1145        nodes {
1146          id
1147          orderNumber
1148          status
1149          total
1150          itemCount
1151          createdAt
1152          items {
1153            productVariant {
1154              product {
1155                name
1156                images {
1157                  url
1158                }
1159              }
1160            }
1161            design {
1162              thumbnailUrl
1163            }
1164          }
1165        }
1166        pageInfo {
1167          hasNextPage
1168          hasPreviousPage
1169          startCursor
1170          endCursor
1171        }
1172        totalCount
1173      }
1174    }
1175  }
1176`;Ce`
1177  subscription OrderStatusChanged($orderId: ID) {
1178    orderStatusChanged(orderId: $orderId) {
1179      orderId
1180      orderNumber
1181      previousStatus
1182      newStatus
1183      changedByType
1184      changedAt
1185    }
1186  }
1187`;Ce`
1188  subscription CartUpdated($userId: ID!) {
1189    cartUpdated(userId: $userId) {
1190      id
1191      items {
1192        id
1193        quantity
1194        subtotal
1195      }
1196      total
1197      itemCount
1198    }
1199  }
1200`;Ce`
1201  subscription InventoryAlert($productIds: [ID!]!) {
1202    inventoryAlert(productIds: $productIds) {
1203      productId
1204      variantId
1205      stock
1206      lowStockThreshold
1207      isLowStock
1208      isOutOfStock
1209    }
1210  }
1211`;const PH=Ce`
1212  mutation UpdateProfile($input: UpdateProfileInput!) {
1213    updateProfile(input: $input) {
1214      id
1215      firstName
1216      lastName
1217      phone
1218      email
1219    }
1220  }
1221`,UH=Ce`
1222  mutation ChangePassword($oldPassword: String!, $newPassword: String!) {
1223    changePassword(oldPassword: $oldPassword, newPassword: $newPassword)
1224  }
1225`,zH=Ce`
1226  mutation ChangeEmail($newEmail: String!, $currentPassword: String!) {
1227    changeEmail(newEmail: $newEmail, currentPassword: $currentPassword) {
1228      success
1229      message
1230      verificationRequired
1231    }
1232  }
1233`,FH=Ce`
1234  mutation DeleteCustomerAccount($confirmPassword: String) {
1235    deleteCustomerAccount(confirmPassword: $confirmPassword) {
1236      success
1237      message
1238      deletedAt
1239    }
1240  }
1241`,C$={EG:"Egypt",AE:"UAE",SA:"Saudi Arabia"},R$={"Africa/Cairo":"Egypt","Asia/Dubai":"UAE","Asia/Riyadh":"Saudi Arabia"},O$=()=>{try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return R$[e]??null}catch(e){return console.warn("Unable to read browser time zone for country detection:",e),null}},A$=e=>{const t=e.split(`
1242`).find(n=>n.startsWith("loc="));return(t==null?void 0:t.slice(4).trim().toUpperCase())||null},_w=async({allowNetwork:e=!0}={})=>{try{const t=N$();if(t)return console.log("Using cached geolocation:",t),t;const n=O$();if(n)return Tw(n),console.log("Detected country from browser time zone:",n),n;if(!e)return null;console.log("Fetching geolocation from Cloudflare trace...");const a=await fetch("/cdn-cgi/trace",{method:"GET",headers:{Accept:"text/plain"}});if(!a.ok)return console.error("Cloudflare trace error:",a.status,a.statusText),null;const o=await a.text(),l=A$(o),c=l?C$[l]:null;return c?(Tw(c),console.log(`Detected country from Cloudflare trace: ${c} (${l})`),c):(console.warn(`Unsupported country detected from Cloudflare trace: ${l??"unknown"}`),null)}catch(t){return console.error("Error detecting country:",t),null}},Tw=e=>{const t={country:e,timestamp:Date.now()};localStorage.setItem("customer_geolocation_cache",JSON.stringify(t))},N$=()=>{try{const e=localStorage.getItem("customer_geolocation_cache");if(!e)return null;const{country:t,timestamp:n}=JSON.parse(e),a=Date.now()-n,o=1440*60*1e3;return a<o?t:(localStorage.removeItem("customer_geolocation_cache"),null)}catch(e){return console.error("Error reading geolocation cache:",e),null}},_m="Egypt",D$=new Set(["Egypt","UAE","Saudi Arabia"]),k$=12e3,Cw=e=>D$.has(e),YR=x.createContext(void 0),M$=({children:e})=>{const[t,n]=x.useState(_m),[a,o]=x.useState(!0),[l,c]=x.useState(!0),[f,h]=x.useState(null);x.useEffect(()=>{let b=!0,w;const _=O=>{localStorage.setItem("customer_country",O),localStorage.setItem("customer_country_auto","true")},T=async()=>
1242{if(localStorage.getItem("customer_country_auto")==="false")return;const O=await _w({allowNetwork:!0});!b||!O||localStorage.getItem("customer_country_auto")!=="false"&&(n(O),o(!0),_(O),console.log("Background country refresh:",O))};return(async()=>{try{c(!0),h(null);const O=localStorage.getItem("customer_country"),A=localStorage.getItem("customer_country_auto")==="true";if(Cw(O)&&!A){n(O),o(!1),c(!1),console.log("Using stored country:",O);return}const N=await _w({allowNetwork:!1}),M=N??(Cw(O)?O:_m);if(!b)return;n(M),o(!0),_(M),console.log("Using initial country:",M),N||(w=globalThis.setTimeout(T,k$))}catch(O){console.error("Error initializing country:",O),h("Failed to detect country"),n(_m),o(!0)}finally{b&&c(!1)}})(),()=>{b=!1,w&&globalThis.clearTimeout(w)}},[]);const d=x.useCallback(b=>{n(b),o(!1),localStorage.setItem("customer_country",b),localStorage.setItem("customer_country_auto","false"),console.log("Manually changed country to:",b)},[]),g=x.useCallback(()=>{switch(t){case"Egypt":return"EGP";case"UAE":return"AED";case"Saudi Arabia":return"SAR";default:return""}},[t]),v=!0,S=x.useMemo(()=>({country:t,isAutoDetected:a,isLoading:l,error:f,setCountry:d,getCurrency:g,hasProviders:v}),[t,f,g,v,a,l,d]);return m.jsx(YR.Provider,{value:S,children:e})},j$=()=>{const e=x.useContext(YR);if(!e)throw new Error("useCountry must be used within CountryProvider");return e};var I$=["title"],L$=["title"],P$=["title"];function Yl(){return Yl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Yl.apply(this,arguments)}function Zy(e,t){if(e==null)return{};var n=U$(e,t),a,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)a=l[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function U$(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,l;for(l=0;l<a.length;l++)o=a[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Rw=function(t){var n=t.title,a=Zy(t,I$);return ne.createElement("svg",Yl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},a),n&&ne.createElement("title",null,n),ne.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),ne.createElement("path",{fill:"#009e49",d:"M0 0h513v114H0z"}),ne.createElement("path",{d:"M0 228h513v114H0z"}),ne.createElement("path",{fill:"#ce1126",d:"M0 0h171v342H0z"}))},Ow=function(t){var n=t.title,a=Zy(t,L$);return ne.createElement("svg",Yl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},a),n&&ne.createElement("title",null,n),ne.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),ne.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),ne.createElement("path",{d:"M0 228h513v114H0z"}),ne.createElement("path",{fill:"#C09300",d:"M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z"}))},Aw=function(t){var n=t.title,a=Zy(t,P$);return ne.createElement("svg",Yl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},a),n&&ne.createElement("title",null,n),ne.createElement("path",{d:"M0 0h513v342H0z",fill:"#fff"}),ne.createElement("g",{fill:"#055e1c"},ne.createElement("path",{d:"M0 0v342h513V0zm218 76q1 2-2 5-3 2-1 4 3 4 0 6-2 1-5-1-6-6 0-14 6-4 8 0m-102 2 1 6q0 4-2 4-5 1-5-6l2-4zm39 1 1 2q-1 4-5 4-5 0-6-4c0-4 7-6 10-2m47 2q3 4 2 9c-1 2-22 19-24 19q-3 0-4-4l6-6 6-5v-3c-5-10 7-18 14-10m35-3q3 1 0 7-2 8-6 6c-3-1-3 14 0 19q2 4 7-1c2-3 2-5 2-15 0-12 0-13 2-13q5-2 5 13 1 11 3 13 3 6 6 3 3-2-1-12-3-12 1-16h9q2-2 9 1l6 2 1-2q4-4 6-1l3 17c3 16 3 16 7 24l15 30q1 6-4 5l-8-14-6-12 1 20c1 21 1 23-4 23q-4 2-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2 6l2 7q0 4 3 2 6-2 6 3-1 4-8 5l-5 2-5 2q-6 0-10-3-2-3-5 1-5 5-12 2-5-1-7-10l-1-3-1 3q-3 7-9 8-7 0-9-11-3-10 2-10 4-1 5 7l2 6q1 0 4-7 6-17 13-12h1c-1-1 2-10 4-11zm-97 10 2 16 1 9h4q5 2 6-1c2-1 2-2-1-11l-3-12 3-1 11 5V82q4-2 6 1l3 23 1 20h2q5 0 5 5 1 6 3 0 3-9 8-2 1 3 2 0 3-7 4-6c5 0 6 7 1 13q-3 3-7 3l-6 1q-5 4-10 0l-2-2v5c0 21-16 42-33 42q-21-1-23-21 0-5 2-6 4-1 6 6 1 12 12 13 14 2 24-15 6-11 1-5-12 18-28 11-7-5-9-17-2-6 1-7 5-3 6 6 1 12 10 12 7 0 13-8 5-8-1-7-11-1-8-12 8-11 17-5l3 2-1-12-4-22q-3 1 0 7c2 6 2 6 0 10l-5 5q-3 3-7 1h-5l-1 16c-1 19-1 20-4 21-4 1-4-2-4-19l
12421-15-3 1q-3 1-6-2c-2-2-2-2-3-14l-1-12q-2-1-2 10l-1 13q-3 6-8 4c-3-2-4-4-7-15q-4-15 2-14 4-1 5 8l1 5 1-6q0-13 9-12l6 2c2 3 2 4 2 14l1 11 2-1 1-8-2-16q-3-12 2-11 3-1 5 7m163-3q4 10 1 13-4 3-7-7-3-11 2-10zm12-3 3 7q2 6 1 8v16l2 27c2 22 2 21 6 21h3l-1-5-2-23-3-33c-2-16-1-19 3-19 3 0 8 14 6 16v24c5 47 5 48 0 47q-3-2-1 4l2 6q2 1 5-9 7-18 10-16 3 0 7 5 4 7 7 7 4-1 1-33l-1-21-10-12-9-15q0-5 8-1 5 2 6 6l2 6q3 4 1-4 0-10 3-10c4 0 9 10 7 13l-1 8q1 8 4 12l3 3-2-15c-2-16-2-19 1-20q3 0 5 4l4 5h2q6-4 8 9 0 8-4 8-3 0-4-6 1-8-3-5c-1 2-1 3 1 19l2 17 5 7c6 10 12 21 11 22q-2 3-5 2l-5-8-5-8 1 8c0 11 0 11-3 11q-5 3-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1 21 0 25-5 28q-6 5-13-3l-4-5-4 9q-6 14-11 15-9-1-11-16-1-8-5-1c-3 5-12 13-19 17q-8 4-8-2-1-2 6-6c9-5 17-14 17-18l-5-78q2-4 5-1m89 5 4 6q1 1-2 3l-2 2 4 24q4 25 4 35c0 10 0 11-3 17q-7 13-19 14-8 0-7-2-2-4 7-6 15-2 14-23a708 708 0 0 0-8-75c3-2 3-1 8 5m-211 19 1 4q0 3 2 2 5 0 5 4c0 4-9 6-13 2-4-5 0-17 5-12m108 1h2l4-1q4 2 0 7-7 6-11-1v-5q3-2 5 0m55 2q3 4-1 6-2 0-1 5t-1 6q-1 2-10-6-8-7-6-9 3-4 7 0l2 2 2-3q5-3 8-1m-131 13c3 2 6 14 6 17q-1 6 6 1l10-4q5-1 7-4 4-9 10-12 10 0 11 9 0 7-16 13l-2 1 13 1c16 0 16 0 13 9q-2 7-4 7l-10 2q-19 3-17 9 1 2 4 3 6 3 3 7l-7 1q-13-2-21-10l-3-3-2 3q-7 10-19 13-10 2-15-10l-5 2q-18 10-19 8l-2-3c0-2 1-2 15-11l9-6q1-3 5-4c3 1 10-5 12-9q3-6-1-15l-2-8q1-5 6-6c3 0 8 5 8 7q-1 4-4 3v1l1 10c1 9-1 13-10 21l-7 6 2 3q5 9 15-2 10-8 10-23 0-10-6-24v-4q3-4 6 1m17 2q2 3 4 0 11-3 5 5c-4 5-12 5-15-1v-4zm118 5 1 2q1 2-7 8c-8 6-9 7-11 5q-5-4 6-10c8-6 8-6 11-5m-229 3q3 2-10 10-12 8-13 3-5-3 9-10 13-8 14-3m229 10c3 2 4 9 3 11q-3 3-6 1c-2-2-3-11-1-13q1-2 4 1m-172 7q3 3 2 7 1 5-3 5-3 1-3-3l-2-4q-3-3-1-6 4-2 7 1m-79 9 1 8q0 9 3 6 4-1 4 3-1 7-7 7-7-1-7-14-1-9 2-10zm168 12q0 4 3 2t4 3q-2 6-8 8l-4-2q-3-3-4-2-4 0-5-4l5-6q7-6 7-4 3 1 2 5m102 3q4 4 1 9-7 7-7-4t6-5m-42 73c0 2 1 2 12 2q24-1 22 11 0 7-6 10c-4 1-31 2-34 0q-2-1-2-6v-4h-82l-74-1c-16 0-28-10-28-10h92c91 0 92-1 92-2q-1-3 4-5c5-2 4 4 4 5"}),ne.createElement("path",{d:"m195 86 1 1 1-1-1-1q-2 0-1 1m84 5q-2 2 1 5l3 3-1-4-1-5zm-125 45q-3 3-1 4 5-1 6-4zm110-7q-4 5 0 3 6-4 2-4zm-31 30q0 6 4 8l5 4q3 2 2-3 0-3 4-7 4-3 2-4l-13-3h-5zm104 101q-1 3 13 2c11 0 13 0 14-2l-13-1z"})))};const Nw={AE:Rw,EG:Ow,SA:Aw,UAE:Rw,Egypt:Ow,"Saudi Arabia":Aw},$H=(e,t)=>{const n=Reflect.get(Intl,"DisplayNames");return n?new n([t,"en"],{type:"region"}).of(e)??e:e},z$=e=>e.replace(/[A-Z]/g,t=>String.fromCodePoint(127397+t.charCodeAt(0))),Dw=({code:e,className:t="w-5 h-4"})=>{const n=e.trim().toUpperCase(),a=Nw[e]??Nw[n];if(!a){const o=/^[A-Z]{2}$/.test(n)?z$(n):e;return m.jsx("span",{className:`${t} inline-flex items-center justify-center`,role:"img","aria-label":e,children:o})}return m.jsx(a,{className:`${t} rounded-sm`})},Tm=[{code:"Egypt",label:"Egypt",currency:"EGP"},{code:"UAE",label:"UAE",currency:"AED"},{code:"Saudi Arabia",label:"Saudi Arabia",currency:"SAR"}],kw=()=>{const{country:e,setCountry:t,isLoading:n}=j$(),a=Tm.find(l=>l.code===e)||Tm[0],o=l=>{t(l)};return n?m.jsx(vn,{variant:"ghost",className:"gap-2",disabled:!0,children:m.jsx("span",{children:"Loading..."})}):m.jsxs(Ky,{children:[m.jsx(Wy,{asChild:!0,children:m.jsxs(vn,{variant:"ghost",className:"gap-2 hover:bg-transparent hover:text-primary",children:[m.jsx(Dw,{code:a.code,className:"w-6 h-5"}),m.jsx("span",{className:"font-medium",children:a.label}),m.jsx(r5,{className:"w-4 h-4"})]})}),m.jsx(ud,{align:"end",className:"w-48",children:Tm.map(l=>m.jsxs(Jr,{onClick:()=>o(l.code),className:"gap-3 cursor-pointer",children:[m.jsx(Dw,{code:l.code,className:"w-6 h-5"}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"font-medium",children:l.label}),m.jsx("span",{className:"text-xs text-muted-foreground",children:l.currency})]})]},l.code))})]})};function KR(e){return(e==null?void 0:e.toLowerCase().split(/[-_]/)[0])==="ar"?"ar":"en"}function WR(e){return e==="ar"?"rtl":"ltr"}function F$(e,t=document){const n=KR(e);t.documentElement.dir=WR(n),t.documentElement.lang=n}const $$=new Set(["NONE","NULL","UNKNOWN","XXX"]);function Mw(e){const t=e==null?void 0:e.trim().toUpperCase();if(!t||$$.has(t)||!/^[A-Z]{3}$/.test(t))return null;try{return new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(0),t}catch{return null}}function Xy(e,t){return Mw(e)??Mw(t)}function ZR(e){if(e==null||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}function V$(e,t,n={}){const a=n.missingLabel??"—",o=ZR(e);if(o==null)return a;const l=Xy(t,n.fallbackCurrency);return l?new Intl.NumberFormat(n.locale??"en-US",{style:"currency",currency:l,minimumFractionDigits:n.minimumFractionDigits,maximumFractionDigits:n.maximumFractionDigits}
1242).format(o):a}const B$={en:{elapsed:new Intl.RelativeTimeFormat("en-US",{numeric:"always"}),compact:new Intl.RelativeTimeFormat("en-US",{numeric:"auto",style:"short"})},ar:{elapsed:new Intl.RelativeTimeFormat("ar-AE",{numeric:"always"}),compact:new Intl.RelativeTimeFormat("ar-AE",{numeric:"auto",style:"short"})}};function q$(e){return KR(e)}function Kl(e){return e==="ar"?"ar-AE":"en-US"}function H$(e){const t=q$(e);return{locale:t,direction:WR(t),languageTag:Kl(t)}}function Gi(){const{i18n:e}=Hi();return H$(e.resolvedLanguage||e.language)}function VH(e,t,n){return new Intl.DateTimeFormat(Kl(t),n).format(new Date(e))}function G$(e,t,n){return new Intl.NumberFormat(Kl(t),n).format(e)}function Q$(e,t){const n=Xy(e);return n?t==="ar"&&n==="AED"?"درهم":n:(e==null?void 0:e.trim())??""}function BH(e,t,n,a={}){const o=ZR(e),l=Xy(t,a.fallbackCurrency);if(o!=null&&n==="ar"&&l==="AED"){const c=new Intl.NumberFormat(Kl(n),{style:"currency",currency:l}).resolvedOptions();return`${G$(o,n,{minimumFractionDigits:a.minimumFractionDigits??c.minimumFractionDigits,maximumFractionDigits:a.maximumFractionDigits??c.maximumFractionDigits})} ${Q$(l,n)}`}return V$(e,t,{...a,locale:Kl(n)})}function qH(e,t,n,a="elapsed"){return B$[n][a].format(e,t)}const Vc=[{code:"en",nativeName:"English",translationKey:"language.english"},{code:"ar",nativeName:"العربية",translationKey:"language.arabic"}];function jw({className:e,variant:t="desktop"}){const{i18n:n,t:a}=Hi(),{locale:o}=Gi(),[l,c]=x.useState(!1),f=Vc.find(d=>d.code===o)||Vc[0];x.useEffect(()=>{c(!0)},[]);const h=d=>{n.changeLanguage(d)};return l?t==="mobile"?m.jsx("div",{className:pe("space-y-1",e),children:Vc.map(d=>m.jsxs("button",{type:"button",onClick:()=>h(d.code),className:pe("flex w-full items-center gap-3 rounded-xl px-4 py-3 font-medium transition-all",d.code===o?"bg-primary/10 text-primary":"text-slate-700 hover:bg-slate-100"),children:[m.jsx(um,{className:"h-5 w-5 text-slate-500"}),m.jsx("span",{children:a(d.translationKey)}),d.code===o&&m.jsx(Eg,{className:"ms-auto h-4 w-4 text-primary"})]},d.code))}):m.jsxs(Ky,{children:[m.jsx(Wy,{asChild:!0,children:m.jsxs(vn,{variant:"ghost",size:"sm",className:pe("gap-2 text-slate-600 hover:bg-slate-100/80 hover:text-slate-900",e),"aria-label":a("language.select"),children:[m.jsx(um,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden lg:inline",children:f.nativeName})]})}),m.jsx(ud,{align:"end",className:"w-40 rounded-xl bg-white/95 shadow-lg",sideOffset:8,children:Vc.map(d=>m.jsxs(Jr,{onClick:()=>h(d.code),className:pe("mx-1 my-0.5 flex cursor-pointer items-center justify-between gap-2 rounded-lg",d.code===o&&"bg-primary/5"),children:[m.jsx("span",{className:pe("font-medium",d.code===o?"text-primary":"text-slate-700"),children:a(d.translationKey)}),d.code===o&&m.jsx(Eg,{className:"h-4 w-4 text-primary"})]},d.code))})]}):t==="mobile"?null:m.jsxs(vn,{variant:"ghost",size:"sm",className:pe("gap-2 text-slate-600",e),"aria-label":"Language",disabled:!0,children:[m.jsx(um,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden lg:inline",children:"Language"})]})}const rt=()=>{const e=ru(),{t}=Hi(),{direction:n}=Gi(),a=Kt(re=>re.isAuthenticated),o=Kt(re=>re.user),l=Kt(re=>re.logout),c=n==="rtl",[f,h]=x.useState(!1),[d,g]=x.useState(!1),[v,S]=x.useState(!1),[b,w]=x.useState(!1),_=x.useRef(null),T=f&&a;x.useEffect(()=>{h(!0)},[]),x.useEffect(()=>{const re=()=>{g(globalThis.scrollY>20)};return globalThis.addEventListener("scroll",re),()=>globalThis.removeEventListener("scroll",re)},[]),x.useEffect(()=>{const re=ce=>{var oe;ce.key==="Escape"&&((oe=_.current)==null||oe.blur(),w(!1))};return globalThis.addEventListener("keydown",re),()=>globalThis.removeEventListener("keydown",re)},[]);const{data:C,loading:O}=pg(T$,{skip:!T}),A=o||(C==null?void 0:C.me),N=A?`${A.firstName} ${A.lastName}`.trim():"",M=(A==null?void 0:A.email)||"",P=A?j5(N):"",U="public-header-mobile-menu",G=c?{iconClass:"right-3.5",inputClass:"pr-10 pl-4 text-right"}:{iconClass:"left-3.5",inputClass:"pl-10 pr-4 text-left"},W=b?{overlayClass:"opacity-100 pointer-events-auto",panelClass:"translate-y-0"}:{overlayClass:"opacity-0 pointer-events-none",panelClass:"-translate-y-full"},te=re=>{re.preventDefault();const oe=new FormData(re.currentTarget).get("search");oe.trim()&&e(`/search?q=${encodeURIComponent(oe.trim())}`)},se=()=>{l(),e("/login")},me=[...T?[{icon:VE,label:t("header.dashboard"),route:"/dashboard"}]:[],{icon:S5,label:t("header.browseProducts"),route:"/catalog"},{icon:n5,label:t("header.howToUse"),route:"/how-to-use"},{icon:s5,label:t("header.pricing"),route:"/pricing"}];return m.jsxs(m.Fragment,{children:[m.jsxs("header",{className:pe("fixed top-0 left-0 right-0 z-50 transition-all duration-500",d?"bg-white/90 dark:bg-slate-900/90 backdrop-blur-xl shadow-[0_4px_30px_rgba(0,0,0,0.06)] border-b border-slate-200/50 dark:border-slate-700/50":"bg-transparent"),children:[m.jsx("div",{className:pe("absolute top-0 left-0 right-0 h-[2px] transition-opacity duration-500","bg-gradient-to-r from-primary/0 via-primary/60 to-primary/0",d?"opacity-100":"opacity-0")}),m.jsx("div",{className:"container mx-auto px-4 lg:px-6",children:m.jsxs("div",{className:"flex items-center justify-between h-[72px]",children:[m.jsx("button",{type:"button",className:pe("md:hidden p-2.5 rounded-xl transition-all duration-200","hover:bg-slate-100 dar
1242k:hover:bg-slate-800","active:scale-95"),onClick:()=>w(!b),"aria-label":b?t("header.closeMenu",{defaultValue:"Close menu"}):t("header.openMenu",{defaultValue:"Open menu"}),"aria-expanded":b,"aria-controls":U,children:b?m.jsx(Jf,{className:"h-5 w-5 text-slate-600 dark:text-slate-400"}):m.jsx(p5,{className:"h-5 w-5 text-slate-600 dark:text-slate-400"})}),m.jsxs(ta,{to:"/",className:"flex items-center gap-2.5 group",children:[m.jsx("div",{className:pe("relative flex items-center justify-center","w-10 h-10 rounded-xl overflow-hidden","transition-all duration-300","group-hover:scale-105"),children:m.jsx("img",{src:"/printarex-animated.svg",alt:"PrintaRex Logo",className:"w-full h-full object-contain"})}),m.jsx("span",{className:pe("font-bold text-xl tracking-tight hidden sm:block","bg-gradient-to-r from-slate-900 via-slate-800 to-slate-900","dark:from-white dark:via-slate-100 dark:to-white","bg-clip-text text-transparent"),children:"PrintaRex"})]}),m.jsx("nav",{className:"hidden md:flex items-center gap-1 ml-8",children:me.map(re=>{const ce=re.icon;return m.jsx(Bm,{to:re.route,className:({isActive:oe})=>pe("relative flex items-center gap-2 px-4 py-2.5 rounded-xl","text-sm font-medium transition-all duration-200","whitespace-nowrap",oe?"text-primary bg-primary/8":d?pe("hover:bg-slate-100/80 dark:hover:bg-slate-800/80","text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white"):pe("hover:bg-slate-100/80 dark:hover:bg-slate-800/80","text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-white")),children:({isActive:oe})=>m.jsxs(m.Fragment,{children:[m.jsx(ce,{className:pe("h-4 w-4 transition-transform duration-200",oe&&"scale-110")}),m.jsx("span",{children:re.label}),oe&&m.jsx("span",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-primary rounded-full"})]})},re.route)})}),m.jsx("div",{className:pe("hidden lg:block flex-1 max-w-md mx-6 transition-all duration-300",v&&"max-w-lg"),children:m.jsx("form",{onSubmit:te,children:m.jsxs("div",{className:"relative group",children:[m.jsx("div",{className:pe("absolute -inset-1 rounded-2xl opacity-0 transition-opacity duration-300","bg-gradient-to-r from-primary/20 via-emerald-400/20 to-primary/20","blur-lg",v&&"opacity-100")}),m.jsxs("div",{className:pe("relative flex items-center","border-2 border-transparent rounded-xl","transition-all duration-300",v?"bg-white dark:bg-slate-900 border-primary/50 shadow-lg shadow-primary/10":d?"bg-slate-100/80 dark:bg-slate-800/80 hover:bg-slate-100 dark:hover:bg-slate-800":"bg-white/60 dark:bg-slate-800/60 backdrop-blur-sm hover:bg-white/80 dark:hover:bg-slate-800/80"),children:[m.jsx(cm,{className:pe("absolute h-4 w-4 transition-colors duration-200",G.iconClass,v?"text-primary":"text-slate-400")}),m.jsx(wg,{ref:_,name:"search",placeholder:t("header.searchProducts"),onFocus:()=>S(!0),onBlur:()=>S(!1),className:pe("h-11",G.inputClass,"bg-transparent border-none","placeholder:text-slate-400 dark:placeholder:text-slate-500","focus-visible:ring-0 focus-visible:ring-offset-0","text-sm")})]})]})})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"hidden sm:block",children:m.jsx(kw,{})}),m.jsx(jw,{className:"hidden sm:inline-flex"}),m.jsx("button",{type:"button",className:pe("lg:hidden p-2.5 rounded-xl transition-all duration-200","hover:bg-slate-100 dark:hover:bg-slate-800","active:scale-95"),onClick:()=>e("/search"),"aria-label":t("header.searchProducts",{defaultValue:"Search products"}),children:m.jsx(cm,{className:"h-5 w-5 text-slate-600 dark:text-slate-400"})}),m.jsx("button",{type:"button",className:pe("relative p-2.5 rounded-xl transition-all duration-200","hover:bg-slate-100 dark:hover:bg-slate-800","active:scale-95","group"),onClick:()=>e("/dashboard/orders"),"aria-label":t("header.orders",{defaultValue:"Orders"}),children:m.jsx(BE,{className:"h-5 w-5 text-slate-600 dark:text-slate-400 group-hover:text-primary transition-colors"})}),m.jsx("div",{className:pe("hidden sm:block w-px h-8 mx-1 transition-colors duration-300",d?"bg-slate-200 dark:bg-slate-700":"bg-slate-300/50 dark:bg-slate-600/50")}),T&&O?m.jsx("div",{className:"h-9 w-9 rounded-full bg-slate-200 dark:bg-slate-700 animate-pulse"}):T&&A?m.jsxs(Ky,{children:[m.jsx(Wy,{asChild:!0,children:m.jsx("button",{type:"button",className:pe("flex items-center gap-2.5 p-1.5 pr-3 rounded-xl","hover:bg-slate-100 dar
1242k:hover:bg-slate-800","transition-all duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50","group"),"aria-label":t("header.userMenu",{name:N,defaultValue:`${N} account menu`}),children:m.jsxs("div",{className:"relative",children:[m.jsxs(_g,{className:pe("h-9 w-9 ring-2 transition-all duration-200",d?"ring-slate-200 dark:ring-slate-700 group-hover:ring-primary/50":"ring-white/50 dark:ring-slate-600/50 group-hover:ring-primary/50"),children:[m.jsx(Tg,{src:A.profilePictureUrl,alt:A.firstName}),m.jsx(Cg,{className:pe("bg-gradient-to-br from-primary to-emerald-600","text-white text-sm font-semibold"),children:P})]}),m.jsx("span",{className:"absolute bottom-0 right-0 w-2.5 h-2.5 bg-emerald-500 rounded-full ring-2 ring-white dark:ring-slate-900"})]})})}),m.jsxs(ud,{align:"end",className:pe("w-64 p-2","bg-white/95 dark:bg-slate-900/95","backdrop-blur-xl","border border-slate-200 dark:border-slate-700","shadow-xl shadow-slate-200/50 dark:shadow-slate-900/50","rounded-2xl"),sideOffset:8,children:[m.jsx("div",{className:"px-3 py-3 mb-2",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs(_g,{className:"h-11 w-11 ring-2 ring-primary/20",children:[m.jsx(Tg,{src:A.profilePictureUrl,alt:N}),m.jsx(Cg,{className:"bg-gradient-to-br from-primary to-emerald-600 text-white font-semibold",children:P})]}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("p",{className:"text-sm font-semibold text-slate-900 dark:text-white truncate",children:N}),m.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 truncate",children:M})]})]})}),m.jsx(jg,{className:"bg-slate-200 dark:bg-slate-700"}),m.jsxs("div",{className:"py-1",children:[m.jsxs(Jr,{onClick:()=>e("/dashboard"),className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-slate-100 dark:hover:bg-slate-800","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800",children:m.jsx(VE,{className:"h-4 w-4 text-slate-600 dark:text-slate-400"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.dashboard")})]}),m.jsxs(Jr,{onClick:()=>e("/dashboard/my-designs"),className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-slate-100 dark:hover:bg-slate-800","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800",children:m.jsx(m5,{className:"h-4 w-4 text-slate-600 dark:text-slate-400"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.myDesigns")})]}),m.jsxs(Jr,{onClick:()=>e("/dashboard/orders"),className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-slate-100 dark:hover:bg-slate-800","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800",children:m.jsx(BE,{className:"h-4 w-4 text-slate-600 dark:text-slate-400"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.orders")})]}),m.jsxs(Jr,{onClick:()=>e("/account/returns"),className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-slate-100 dark:hover:bg-slate-800","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800",children:m.jsx(y5,{className:"h-4 w-4 text-slate-600 dark:text-slate-400"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.myReturns")})]}),m.jsxs(Jr,{onClick:()=>e("/settings"),className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-slate-100 dark:hover:bg-slate-800","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800",children:m.jsx(v5,{className:"h-4 w-4 text-slate-600 dark:text-slate-400"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.settings")})]})]}),m.jsx(jg,{className:"bg-slate-200 dark:bg-slate-700"}),m.jsx("div",{className:"py-1",children:m.jsxs(Jr,{onClick:se,className:pe("flex items-center gap-3 px-3 py-2.5 rounded-xl cursor-pointer","hover:bg-red-50 dark:hover:bg-red-900/20","text-red-600 dark:text-red-400","transition-colors duration-150"),children:[m.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-red-100 dark:bg-red-900/30",children:m.jsx(f5,{className:"h-4 w-4"})}),m.jsx("span",{className:"text-sm font-medium",children:t("header.signOut")})]})})]})]}):m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(vn,{variant:"ghost",size:"sm",onClick:()=>
1242e("/login"),className:pe("rounded-xl font-medium transition-all duration-200",d?"text-slate-700 hover:text-slate-900 hover:bg-slate-100":"text-slate-700 hover:text-slate-900 hover:bg-white/60"),children:t("header.signIn")}),m.jsxs(vn,{size:"sm",onClick:()=>e("/register"),className:pe("rounded-xl font-medium","bg-gradient-to-r from-primary to-emerald-600","hover:from-primary/90 hover:to-emerald-600/90","shadow-[0_4px_14px_rgba(21,182,127,0.35)]","hover:shadow-[0_6px_20px_rgba(21,182,127,0.45)]","transition-all duration-300","group"),children:[m.jsx("span",{children:t("header.getStarted")}),m.jsx(t5,{className:"ml-1.5 h-4 w-4 transition-transform duration-200 group-hover:translate-x-0.5"})]})]})]})]})}),m.jsx("div",{className:pe("lg:hidden overflow-hidden transition-all duration-300",d?"max-h-16 opacity-100":"max-h-0 opacity-0"),children:m.jsx("div",{className:"px-4 pb-3",children:m.jsx("form",{onSubmit:te,children:m.jsxs("div",{className:"relative",children:[m.jsx(cm,{className:pe("absolute top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400",G.iconClass)}),m.jsx(wg,{name:"search",placeholder:t("header.searchProducts"),className:pe("h-10 rounded-xl",G.inputClass,"bg-slate-100/80 dark:bg-slate-800/80","border-none","placeholder:text-slate-400","focus-visible:ring-2 focus-visible:ring-primary/50")})]})})})})]}),m.jsxs("div",{className:pe("fixed inset-0 z-40 md:hidden transition-all duration-300",W.overlayClass),children:[m.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",role:"presentation",onClick:()=>w(!1),onKeyDown:re=>{re.key==="Escape"&&w(!1)}}),m.jsxs("div",{id:U,className:pe("absolute top-[72px] left-0 right-0 bg-white dark:bg-slate-900","border-b border-slate-200 dark:border-slate-700","shadow-xl","transition-all duration-300 transform",W.panelClass),children:[m.jsxs("nav",{className:"p-4 space-y-1",children:[m.jsx("div",{className:"mb-2 rounded-xl border border-slate-200 px-1 dark:border-slate-700 [&_button]:w-full [&_button]:justify-between",children:m.jsx(kw,{})}),m.jsx(jw,{variant:"mobile",className:"mb-3"}),me.map(re=>{const ce=re.icon;return m.jsxs(Bm,{to:re.route,onClick:()=>w(!1),className:({isActive:oe})=>pe("flex items-center gap-3 px-4 py-3 rounded-xl","text-base font-medium transition-all duration-200",oe?"text-primary bg-primary/8":"text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800"),children:[m.jsx(ce,{className:"h-5 w-5"}),m.jsx("span",{children:re.label})]},re.route)})]}),!T&&m.jsx("div",{className:"p-4 border-t border-slate-200 dark:border-slate-700",children:m.jsxs(vn,{onClick:()=>{w(!1),e("/register")},className:pe("w-full rounded-xl font-medium h-12","bg-gradient-to-r from-primary to-emerald-600","hover:from-primary/90 hover:to-emerald-600/90","shadow-[0_4px_14px_rgba(21,182,127,0.35)]"),children:[m.jsx(x5,{className:"mr-2 h-4 w-4"}),t("header.startSellingFree")]})})]})]}),m.jsx("div",{className:"h-[72px]"})]})},Y$="https://help.printarex.com",at=()=>{const e=new Date().getFullYear(),{t}=Hi(),[n,a]=x.useState(Y$);return x.useEffect(()=>{window.location.hostname.startsWith("uat")&&a("https://uat-help.printarex.com")},[]),m.jsx("footer",{className:"bg-muted/30 border-t border-border mt-12 md:mt-20",children:m.jsxs("div",{className:"container mx-auto px-4 py-8 md:py-12",children:[m.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-6 md:gap-8",children:[m.jsxs("div",{className:"space-y-4 col-span-2 md:col-span-1",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-10 h-10 rounded-lg overflow-hidden",children:m.jsx("img",{src:"/printarex-animated.svg",alt:"PrintaRex Logo",className:"w-full h-full object-contain"})}),m.jsx("span",{className:"font-bold text-xl",children:"PrintaRex"})]}),m.jsx("p",{className:"text-muted-foreground text-sm",children:t("footer.description")}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(vl,{href:"https://www.facebook.com/profile.php?id=61584644604621",icon:m.jsx(l5,{"aria-hidden":"true",className:"h-4 w-4"}),label:"PrintaRex on Facebook"}),m.jsx(vl,{href:"https://www.tiktok.com/@printarex",icon:m.jsx(W$,{className:"h-4 w-4"}),label:"PrintaRex on TikTok"}),m.jsx(vl,{href:"https://x.com/PrintaRex",icon:m.jsx(E5,{"aria-hidden":"true",className:"h-4 w-4"}),label:"PrintaRex on X"}),m.jsx(vl,{href:"https://www.instagram.com/printarex/",icon:m.jsx(u5,{"aria-hidden":"true",className:"h-4 w-4"}),label:"PrintaRex on Instagram"}),m.jsx(vl,{href:"https://www.youtube.com/@PrintaRex",icon:m.jsx(w5,{"aria-hidden":"true",className:"h-4 w-4"}),label:"PrintaRex on YouTube"})]})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold mb-4",children:t("footer.products")}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(mn,{to:"/catalog",children:t("footer.browseCatalog")}),m.jsx(mn,{to:"/pricing",children:t("header.pricing")}),m.jsx(mn,{to:"/apps/shopify",children:t("footer.shopifyIntegration")}),m.jsx(mn,{to:"/apps/woocommerce",children:t("footer.woocommerceIntegration")}),m.jsx(mn,{to:"/apps/amazon",children:t("footer.amazonIntegration")}),m.jsx(mn,{to:"/apps/noon",children:t("footer.noonIntegration")})]})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold mb-4",children:t("footer.company")}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(mn,{to:"/about",children:t("footer.aboutUs")}),m.jsx(mn,{to:"/careers",children:t("footer.careers")})]})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold mb-4",children:t("footer.resources")}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(mn,{to:"/how-to-use",children:t("footer.howToUse")}),m.jsx("a",{href:"/faq",className:"block text-sm text-muted-foreground hover:text-foreground transition-colors",children:t("footer.faq")}),m.jsx(K$,{href:n,children:t("footer.helpCenter")}
1242),m.jsx(mn,{to:"/bulk-orders",children:t("footer.bulkOrders")}),m.jsx(mn,{to:"/policies/return-policy",children:t("footer.returns")}),m.jsx(mn,{to:"/policies",children:t("footer.policies")})]})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold mb-4",children:t("footer.support")}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(mn,{to:"/contact",children:t("footer.contactUs")}),m.jsx(mn,{to:"/support/kb",children:t("kb.title")})]}),m.jsxs("div",{className:"mt-6 space-y-2",children:[m.jsx(Cm,{icon:m.jsx(d5,{className:"h-4 w-4"}),text:"[email protected]"}),m.jsx(Cm,{icon:m.jsx(g5,{className:"h-4 w-4"}),text:"+971 55 417 3397"}),m.jsx(Cm,{icon:m.jsx(h5,{className:"h-4 w-4"}),text:"Dubai, UAE"})]})]})]}),m.jsx("div",{className:"border-t border-border mt-8 md:mt-12 pt-6 md:pt-8",children:m.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-3 md:space-y-0",children:[m.jsx("div",{className:"text-xs md:text-sm text-muted-foreground",children:t("footer.copyright",{year:e})}),m.jsxs("div",{className:"flex flex-wrap justify-center gap-4 md:gap-6 text-xs md:text-sm",children:[m.jsx(ta,{to:"/privacy",className:"text-muted-foreground hover:text-foreground transition-colors",children:t("footer.privacy")}),m.jsx(ta,{to:"/terms",className:"text-muted-foreground hover:text-foreground transition-colors",children:t("footer.terms")}),m.jsx(ta,{to:"/cookies",className:"text-muted-foreground hover:text-foreground transition-colors",children:t("footer.cookies")})]})]})})]})})},mn=({to:e,children:t})=>m.jsx(ta,{to:e,className:"block text-sm text-muted-foreground hover:text-foreground transition-colors",children:t}),K$=({href:e,children:t})=>m.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"block text-sm text-muted-foreground hover:text-foreground transition-colors",children:t}),W$=({className:e})=>m.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:m.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5.8 20.1a6.34 6.34 0 0 0 10.86-4.43V8.2a8.31 8.31 0 0 0 4.86 1.55v-3.4a4.85 4.85 0 0 1-1.93-.16Z"})}),vl=({href:e,icon:t,label:n})=>m.jsx("a",{"aria-label":n,href:e,className:"inline-flex rounded-md text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-600 focus-visible:ring-offset-2",target:"_blank",rel:"noopener noreferrer",children:t}),Cm=({icon:e,text:t})=>m.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e,m.jsx("span",{children:t})]});function Jy({className:e,ref:t,...n}){return m.jsx("div",{ref:t,className:pe("rounded-2xl border border-border bg-card text-card-foreground shadow-soft",e),...n})}Jy.displayName="Card";function Z$({className:e,ref:t,...n}){return m.jsx("div",{ref:t,className:pe("flex flex-col space-y-1.5 p-6",e),...n})}Z$.displayName="CardHeader";function X$({className:e,children:t,ref:n,...a}){return m.jsx("h3",{ref:n,className:pe("text-2xl font-semibold leading-none tracking-tight",e),...a,children:t})}X$.displayName="CardTitle";function J$({className:e,ref:t,...n}){return m.jsx("p",{ref:t,className:pe("text-sm text-muted-foreground",e),...n})}J$.displayName="CardDescription";function ev({className:e,ref:t,...n}){return m.jsx("div",{ref:t,className:pe("p-6 pt-0",e),...n})}ev.displayName="CardContent";function ct({className:e,...t}){return m.jsx("div",{className:pe("animate-pulse rounded-md bg-muted",e),...t})}const e8=(e,t,n=Date.now())=>{if(!e||!t||e.tier!=="PRO"||e.status!=="PAST_DUE")return!1;const a=e.graceEndsAt?Date.parse(e.graceEndsAt):Number.NaN,o=n instanceof Date?n.getTime():n;return!Number.isFinite(a)||!Number.isFinite(o)||o>a?!1:e.features.some(l=>l.featureKey===t&&l.isEnabled)},t8=(e,t,n)=>{if(e.tier!=="PRO"||e.status!=="ACTIVE")return!1;const a=e.currentPeriodEnd?Date.parse(e.currentPeriodEnd):Number.NaN,o=n instanceof Date?n.getTime():n;return!Number.isFinite(a)||!Number.isFinite(o)||o>a?!1:e.features.some(l=>l.featureKey===t&&l.isEnabled)},n8=(e,t,n,a=Date.now())=>!t||!n?e:t.status==="PAST_DUE"?e8(t,n,a):t.status==="ACTIVE"&&t.tier==="PRO"?t8(t,n,a):e,rn=(e,t)=>typeof e=="boolean"?e:typeof e!="string"?t:["true","1","yes","on"].includes(e.trim().toLowerCase()),pt=()=>typeof window>"u"?{}:window.ENV??{},Cf=(e,t)=>
1242{const n=e==null?void 0:e.trim();return!n||!n.startsWith("/")||n.startsWith("//")||n.includes("?")||n.includes("#")||/[\\\s]/.test(n)?t:n},Iw=(e,t)=>{const n=e==null?void 0:e.trim();return n&&/^[A-Za-z0-9._-]+$/.test(n)?n:t},Lw={checkoutEnabled:()=>rn(pt().SUBSCRIPTION_CHECKOUT_ENABLED,rn(void 0,!1)),ctaVisible:()=>rn(pt().SUBSCRIPTION_CTA_VISIBLE,rn(void 0,!1)),renewalsEnabled:()=>rn(pt().SUBSCRIPTION_RENEWALS_ENABLED,rn(void 0,!1)),gateMode:()=>(pt().SUBSCRIPTION_GATE_MODE??void 0)==="LOG_ONLY"?"LOG_ONLY":"ENFORCE",legalVersion:()=>{var e;return((e=pt().SUBSCRIPTION_LEGAL_VERSION)==null?void 0:e.trim())||void 0||"subscription-2026-07-11"},recurringConsentVersion:()=>{var e;return((e=pt().SUBSCRIPTION_RECURRING_CONSENT_VERSION)==null?void 0:e.trim())||void 0||"subscription-recurring-2026-07-11"},recurringConsentArtifact:()=>{var e;return((e=pt().SUBSCRIPTION_RECURRING_CONSENT_ARTIFACT)==null?void 0:e.trim())||void 0||"subscription-recurring-terms-2026-07-11"}},Pw={enabled:()=>rn(pt().VITE_HUB_ENABLED??pt().HUB_ENABLED,!1)},HH={enabled:()=>rn(pt().VITE_DESIGN_SHARE_ENABLED,rn(void 0,!1))},GH={enabled:()=>rn(pt().VITE_BROWSER_MOCKUP_PREVIEW,rn(void 0,!0)),metricsPath:()=>Cf(pt().BROWSER_MOCKUP_METRICS_PATH,Cf(void 0,"/api/visitor-analytics/client-metrics/mockup-preview"))},r8="/api/visitor-analytics/track",a8="visitor-analytics-2026-07-15",Rm={enabled:()=>rn(pt().VISITOR_ANALYTICS_ENABLED,rn(void 0,!1)),ingestPath:()=>Cf(pt().VISITOR_ANALYTICS_INGEST_PATH,Cf(void 0,r8)),consentVersion:()=>Iw(pt().VISITOR_ANALYTICS_CONSENT_VERSION,Iw(void 0,a8))},Uw="https://eu.i.posthog.com",QH={enabled:()=>rn(pt().POSTHOG_ENABLED,rn(void 0,!1)),projectKey:()=>{var e;return((e=pt().VITE_POSTHOG_KEY)==null?void 0:e.trim())||void 0||""},host:()=>{var t;const e=((t=pt().VITE_POSTHOG_HOST)==null?void 0:t.trim())||void 0;return e===Uw?e:Uw}},zw="openobserve.printarex.com",i8=(e,t)=>{const n=e==null?void 0:e.trim().toLowerCase();return n==="production"||n==="uat"?n:t.trim().toLowerCase().startsWith("uat.")?"uat":"production"},o8=e=>{let t=(e==null?void 0:e.trim().toLowerCase())||"";for(t.startsWith("https://")&&(t=t.slice(8)),t.startsWith("http://")&&(t=t.slice(7));t.endsWith("/");)t=t.slice(0,-1);return t===zw?t:zw},YH={token:()=>{var e;return((e=pt().VITE_OPENOBSERVE_RUM_TOKEN)==null?void 0:e.trim())||void 0||""},site:()=>o8(pt().VITE_OPENOBSERVE_RUM_SITE||void 0),version:()=>{var e;return((e=pt().VITE_OPENOBSERVE_RUM_VERSION)==null?void 0:e.trim())||void 0||void 0},environment:()=>i8(pt().VITE_OPENOBSERVE_RUM_ENV||void 0,typeof window>"u"?"":window.location.hostname)},s8=Ce`
1243  query MySubscriptionFeatureAccessContext {
1244    mySubscription {
1245      status
1246      currentPeriodEnd
1247      graceEndsAt
1248      plan {
1249        tier
1250        features {
1251          featureKey
1252          isEnabled
1253        }
1254      }
1255    }
1256  }
1257`,l8=e=>{const{data:t,loading:n,error:a}=pg(_$,{variables:{featureKey:e},skip:!e,fetchPolicy:"cache-first"}),{data:o,loading:l,error:c}=pg(s8,{skip:!e,fetchPolicy:"cache-first"}),f=o==null?void 0:o.mySubscription,h=(f==null?void 0:f.status)??null,d=(f==null?void 0:f.currentPeriodEnd)??null,g=(f==null?void 0:f.graceEndsAt)??null,v=h==="PAST_DUE"?g:d,[S,b]=x.useState(()=>Date.now());x.useEffect(()=>{if(h!=="ACTIVE"&&h!=="PAST_DUE"||!v)return;const T=Date.parse(v);if(!Number.isFinite(T))return;const C=T-Date.now()+1;if(C<=0)return;const O=window.setTimeout(()=>b(Date.now()),C);return()=>window.clearTimeout(O)},[v,h]);const w=f?{tier:f.plan.tier,status:h??"",currentPeriodEnd:d,graceEndsAt:g,features:f.plan.features}:null,_=n8((t==null?void 0:t.canAccessFeature)??!1,w,e,Math.max(S,Date.now()));return{hasAccess:Lw.gateMode()==="LOG_ONLY"||_,loading:n||l,error:a??c,gateMode:Lw.gateMode()}},u8=1e3,c8=3e4,f8={auth:{titleKey:"authGate.preparingTitle",descriptionKey:"authGate.preparingDescription"},feature:{titleKey:"authGate.checkingAccessTitle",descriptionKey:"authGate.checkingAccessDescription"},refreshing:{titleKey:"authGate.refreshingTitle",descriptionKey:"authGate.refreshingDescription"},redirecting:{titleKey:"authGate.expiredTitle",descriptionKey:"authGate.expiredDescription"}}
1257,d8=["orders","stores","designs","subscription"],h8=["recent-order","store-sync","support-ticket"],p8=({featureLoading:e,shouldClearInvalidSession:t,shouldRefreshExpiredToken:n})=>t?"redirecting":n?"refreshing":e?"feature":"auth",m8=e=>Math.min(u8*2**Math.max(0,e-1),c8),g8=()=>Kt.getState().isAuthenticated&&!Li(),y8=()=>m.jsxs("div",{className:"relative mt-1 flex h-12 w-12 shrink-0 items-center justify-center rounded-[14px] bg-primary/10 text-primary",children:[m.jsx(b5,{className:"h-6 w-6","aria-hidden":"true"}),m.jsx("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full bg-primary/50 animate-ping"}),m.jsx("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full bg-primary"})]}),v8=()=>{const{t:e}=Hi();return m.jsx(vn,{asChild:!0,className:"w-full md:w-auto",children:m.jsxs("a",{href:"/login",children:[m.jsx(c5,{className:"h-4 w-4","aria-hidden":"true"}),e("authGate.signInAgain")]})})},b8=({copy:e,accountLabel:t,showSignInAction:n})=>m.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[m.jsxs("div",{className:"flex items-start gap-4",children:[m.jsx(y8,{}),m.jsxs("div",{className:"text-start",children:[m.jsx("p",{className:"text-sm font-medium text-primary",children:t}),m.jsx("h1",{className:"mt-1 text-2xl font-semibold text-slate-950",children:e.title}),m.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground",children:e.description})]})]}),n&&m.jsx(v8,{})]}),S8=()=>m.jsx("div",{className:"rounded-[20px] border border-slate-200/70 bg-white/80 p-5 shadow-sm",children:m.jsxs("div",{className:"flex items-start justify-between gap-3",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx(ct,{className:"h-4 w-24 rounded-[14px]"}),m.jsx(ct,{className:"h-8 w-14 rounded-[14px]"})]}),m.jsx(ct,{className:"h-11 w-11 rounded-[14px]"})]})}),x8=()=>m.jsx("div",{className:"grid gap-4 md:grid-cols-4",children:d8.map(e=>m.jsx(S8,{},`auth-gate-stat-${e}`))}),E8=()=>m.jsxs("div",{className:"flex items-center justify-between gap-4 p-5",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx(ct,{className:"h-12 w-12 rounded-[14px]"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(ct,{className:"h-4 w-32 rounded-[14px]"}),m.jsx(ct,{className:"h-3 w-44 rounded-[14px]"})]})]}),m.jsxs("div",{className:"hidden items-center gap-4 sm:flex",children:[m.jsx(ct,{className:"h-6 w-24 rounded-full"}),m.jsx(ct,{className:"h-4 w-16 rounded-[14px]"})]})]}),w8=()=>m.jsxs("div",{className:"rounded-[20px] border border-slate-200/70 bg-white/80 shadow-sm",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(ct,{className:"h-10 w-10 rounded-[14px]"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(ct,{className:"h-4 w-36 rounded-[14px]"}),m.jsx(ct,{className:"h-3 w-48 rounded-[14px]"})]})]}),m.jsx(ct,{className:"h-8 w-20 rounded-[14px]"})]}),m.jsx("div",{className:"divide-y divide-slate-100",children:h8.map(e=>m.jsx(E8,{},`auth-gate-row-${e}`))})]}),_8=()=>m.jsxs("div",{className:"rounded-[20px] border border-slate-200/70 bg-white/80 p-5 shadow-sm",children:[m.jsxs("div",{className:"mb-5 flex items-center justify-between",children:[m.jsx(ct,{className:"h-5 w-40 rounded-[14px]"}),m.jsx(ct,{className:"h-8 w-8 rounded-full"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx(ct,{className:"h-3 w-full rounded-full"}),m.jsx(ct,{className:"h-3 w-5/6 rounded-full"}),m.jsx(ct,{className:"h-3 w-2/3 rounded-full"})]}),m.jsxs("div",{className:"mt-6 space-y-3",children:[m.jsx(ct,{className:"h-12 w-full rounded-[14px]"}),m.jsx(ct,{className:"h-12 w-full rounded-[14px]"}),m.jsx(ct,{className:"h-12 w-3/4 rounded-[14px]"})]})]}),T8=()=>m.jsxs("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(260px,1fr)]",children:[m.jsx(w8,{}),m.jsx(_8,{})]}),C8=({reason:e})=>{const{t}=Hi(),{direction:n}=Gi(),a=f8[e],o={title:t(a.titleKey),description:t(a.descriptionKey)};return m.jsx("main",{dir:n,className:"min-h-[70vh] bg-gradient-to-br from-slate-50 via-white to-emerald-50/30 text-start",children:m.jsx("div",{className:"container mx-auto px-4 py-8",children:m.jsx(Jy,{
1257className:"overflow-hidden rounded-[28px] border-slate-200/70 bg-white/90 shadow-[0_10px_24px_rgba(15,23,42,0.08)]",children:m.jsx(ev,{className:"p-6 md:p-8","aria-live":"polite","aria-busy":"true",children:m.jsxs("div",{className:"flex flex-col gap-8",children:[m.jsx(b8,{copy:o,accountLabel:t("authGate.accountLabel"),showSignInAction:e==="redirecting"}),m.jsx(x8,{}),m.jsx(T8,{})]})})})})})},xe=({children:e,requireFeature:t})=>{const n=Kt(N=>N.isAuthenticated),a=Kt(N=>N.isLoading),o=Kt(N=>N.setLoading),l=Zt(),{hasAccess:c,loading:f}=l8(t||null),[h,d]=x.useState("idle"),g=x.useRef(!1),v=x.useRef(0),S=x.useRef(!0),b=x.useCallback(()=>{g.current=!1,v.current=0,d("idle")},[]),w=x.useCallback(()=>{S.current&&(g.current=!1,v.current+=1,d("retrying"))},[]),_=x.useCallback(()=>{if(g8()){b();return}if(Kt.getState().isAuthenticated&&Di()){w();return}b()},[b,w]),T=!Li(),C=n&&!T&&Di()&&h==="idle",O=(h==="refreshing"||h==="retrying")&&n&&Di(),A=!T&&(n||Di())&&!C&&!O;if(x.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]),x.useEffect(()=>{!C||g.current||(g.current=!0,d("refreshing"),VT().then(N=>{if(S.current){if(N===Wf){b();return}if(N===ou){d("failed");return}N===ia&&_()}}).catch(N=>{S.current&&(console.warn("[Protected Route] Customer session refresh failed.",N),_())}))},[_,b,C]),x.useEffect(()=>{if(h!=="retrying")return;const N=window.setTimeout(()=>{S.current&&d("idle")},m8(v.current));return()=>window.clearTimeout(N)},[h]),x.useEffect(()=>{A&&Vi()},[A]),x.useEffect(()=>{const N=M=>{M.persisted&&(o(!1),g.current=!1,v.current=0,d("idle"))};return window.addEventListener("pageshow",N),()=>window.removeEventListener("pageshow",N)},[o]),a||C||O||A||t&&f){const N=p8({featureLoading:!!(t&&f),shouldClearInvalidSession:A,shouldRefreshExpiredToken:C||O});return m.jsx(C8,{reason:N})}return!n||!T?m.jsx(Yc,{to:"/login",state:{from:l},replace:!0}):t&&!c?m.jsx("div",{className:"container mx-auto px-4 py-8",children:m.jsx(Jy,{children:m.jsx(ev,{className:"py-12",children:m.jsxs("div",{className:"text-center max-w-md mx-auto",children:[m.jsx("div",{className:"mb-6",children:m.jsx("svg",{className:"w-16 h-16 mx-auto text-yellow-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),m.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Plan access required"}),m.jsx("p",{className:"text-muted-foreground mb-6",children:"Your current plan does not include this feature. Access is also enforced by PrintaRex services."}),m.jsxs("div",{className:"flex gap-4 justify-center",children:[m.jsx(ta,{to:"/dashboard/my-plan",className:"inline-flex items-center px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"View My Plan"}),m.jsx("a",{href:"/",className:"inline-flex items-center px-4 py-2 border border-input bg-background rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",children:"Go Home"})]})]})})})}):m.jsx(m.Fragment,{children:e})},R8=/^\/customization-(for-your-stores|for-yourself)\//,XR=e=>R8.test(e),O8=4e3,A8=3e4;let Qa=null,Wl,N8=1,Fw=0;const Pg=new Set,Rf=()=>{Pg.forEach(e=>e())},Bc=(e,t,n)=>{const a=N8++;return Qa={id:a,tone:e,message:t,description:n},window.clearTimeout(Wl),Wl=window.setTimeout(()=>{Qa=null,Rf()},A8),Rf(),a},KH=()=>{Qa=null,window.clearTimeout(Wl),Rf()},WH=()=>{!Qa||Qa.id===Fw||(Fw=Qa.id,window.clearTimeout(Wl),Wl=window.setTimeout(()=>{Qa=null,Rf()},O8))},ZH=e=>(Pg.add(e),()=>{Pg.delete(e)}),XH=()=>Qa,D8=()=>typeof window<"u"&&window.matchMedia("(min-width: 768px)").matches,$w=()=>typeof window<"u"&&XR(window.location.pathname)&&D8(),Om=(e,t)=>typeof e=="function"?e(t):e;let Vw=!1;const k8=()=>{if(Vw||typeof window>"u")return;Vw=!0;const e=jl,t=(a,o)=>{const l=e[a];typeof l=="function"&&(e[a]=(c,f)=>$w()?Bc(o,c,f==null?void 0:f.description):l(c,f))};t("success","success"),t("error","error"),t("info","info"),t("warning","warning"),t("message","info"),t("loading","loading");const n=e.promise;typeof n=="function"&&(e.promise=(a,o)=>
1257{if(!$w())return n(a,o);Bc("loading",Om(o==null?void 0:o.loading));const l=typeof a=="function"?a():a;return l.then(c=>Bc("success",Om(o==null?void 0:o.success,c)),c=>Bc("error",Om(o==null?void 0:o.error,c))),{unwrap:()=>l}})},M8=64,j8=()=>{const{direction:e}=Gi(),{pathname:t}=Zt(),n=XR(t),o=n?"top-center":e==="rtl"?"top-left":"top-right";return m.jsx(KP,{position:o,offset:n?M8:void 0,richColors:!0,closeButton:!0,expand:!0,duration:4e3})};function I8(e){const t=L8(e),n=x.forwardRef((a,o)=>{const{children:l,...c}=a,f=x.Children.toArray(l),h=f.find(U8);if(h){const d=h.props.children,g=f.map(v=>v===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:v);return m.jsx(t,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,g):null})}return m.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function L8(e){const t=x.forwardRef((n,a)=>{const{children:o,...l}=n;if(x.isValidElement(o)){const c=F8(o),f=z8(l,o.props);return o.type!==x.Fragment&&(f.ref=a?ri(a,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P8=Symbol("radix.slottable");function U8(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P8}function z8(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...f)=>{const h=l(...f);return o(...f),h}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function F8(e){var a,o;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cd="Dialog",[JR,eO]=ai(cd),[$8,hr]=JR(cd),tO=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,f=x.useRef(null),h=x.useRef(null),[d,g]=ed({prop:a,defaultProp:o??!1,onChange:l,caller:cd});return m.jsx($8,{scope:t,triggerRef:f,contentRef:h,contentId:Zo(),titleId:Zo(),descriptionId:Zo(),open:d,onOpenChange:g,onOpenToggle:x.useCallback(()=>g(v=>!v),[g]),modal:c,children:n})};tO.displayName=cd;var nO="DialogTrigger",rO=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=hr(nO,n),l=xt(t,o.triggerRef);return m.jsx(gt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rv(o.open),...a,ref:l,onClick:Me(e.onClick,o.onOpenToggle)})});rO.displayName=nO;var tv="DialogPortal",[V8,aO]=JR(tv,{forceMount:void 0}),iO=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:o}=e,l=hr(tv,t);return m.jsx(V8,{scope:t,forceMount:n,children:x.Children.map(a,c=>m.jsx(ii,{present:n||l.open,children:m.jsx(Fy,{asChild:!0,container:o,children:c})}))})};iO.displayName=tv;var Of="DialogOverlay",oO=x.forwardRef((e,t)=>{const n=aO(Of,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=hr(Of,e.__scopeDialog);return l.modal?m.jsx(ii,{present:a||l.open,children:m.jsx(q8,{...o,ref:t})}):null});oO.displayName=Of;var B8=I8("DialogOverlay.RemoveScroll"),q8=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=hr(Of,n);return m.jsx($y,{as:B8,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(gt.div,{"data-state":rv(o.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),Ui="DialogContent",sO=x.forwardRef((e,t)=>{const n=aO(Ui,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=hr(Ui,e.__scopeDialog);return m.jsx(ii,{present:a||l.open,children:l.modal?m.jsx(H8,{...o,ref:t}):m.jsx(G8,{...o,ref:t})})});sO.displayName=Ui;var H8=x.forwardRef((e,t)=>{const n=hr(Ui,e.__scopeDialog),a=x.useRef(null),o=xt(t,n.contentRef,a);return x.useEffect(()=>{const l=a.current;if(l)return HC(l)},[]),m.jsx(lO,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&l.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,l=>l.preventDefault())})}),G8=x.forwardRef((e,t)=>
1257{const n=hr(Ui,e.__scopeDialog),a=x.useRef(!1),o=x.useRef(!1);return m.jsx(lO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(a.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:l=>{var h,d;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=l.target;((d=n.triggerRef.current)==null?void 0:d.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),lO=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,...c}=e,f=hr(Ui,n),h=x.useRef(null),d=xt(t,h);return hC(),m.jsxs(m.Fragment,{children:[m.jsx(Dy,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:m.jsx(Ny,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":rv(f.open),...c,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Y8,{titleId:f.titleId}),m.jsx(W8,{contentRef:h,descriptionId:f.descriptionId})]})]})}),nv="DialogTitle",uO=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=hr(nv,n);return m.jsx(gt.h2,{id:o.titleId,...a,ref:t})});uO.displayName=nv;var cO="DialogDescription",fO=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=hr(cO,n);return m.jsx(gt.p,{id:o.descriptionId,...a,ref:t})});fO.displayName=cO;var dO="DialogClose",hO=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,o=hr(dO,n);return m.jsx(gt.button,{type:"button",...a,ref:t,onClick:Me(e.onClick,()=>o.onOpenChange(!1))})});hO.displayName=dO;function rv(e){return e?"open":"closed"}var pO="DialogTitleWarning",[Q8,mO]=G5(pO,{contentName:Ui,titleName:nv,docsSlug:"dialog"}),Y8=({titleId:e})=>{const t=mO(pO),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1258
1259If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1260
1261For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},K8="DialogDescriptionWarning",W8=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mO(K8).contentName}}.`;return x.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},gO=tO,yO=rO,vO=iO,av=oO,iv=sO,ov=uO,sv=fO,fd=hO,Z8=Symbol("radix.slottable");function X8(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Z8,t}var bO="AlertDialog",[J8]=ai(bO,[eO]),fa=eO(),SO=e=>{const{__scopeAlertDialog:t,...n}=e,a=fa(t);return m.jsx(gO,{...a,...n,modal:!0})};SO.displayName=bO;var eV="AlertDialogTrigger",tV=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=fa(n);return m.jsx(yO,{...o,...a,ref:t})});tV.displayName=eV;var nV="AlertDialogPortal",xO=e=>{const{__scopeAlertDialog:t,...n}=e,a=fa(t);return m.jsx(vO,{...a,...n})};xO.displayName=nV;var rV="AlertDialogOverlay",EO=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=fa(n);return m.jsx(av,{...o,...a,ref:t})});EO.displayName=rV;var es="AlertDialogContent",[aV,iV]=J8(es),oV=X8("AlertDialogContent"),wO=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:a,...o}=e,l=fa(n),c=x.useRef(null),f=xt(t,c),h=x.useRef(null);return m.jsx(Q8,{contentName:es,titleName:_O,docsSlug:"alert-dialog",children:m.jsx(aV,{scope:n,cancelRef:h,children:m.jsxs(iv,{role:"alertdialog",...l,...o,ref:f,onOpenAutoFocus:Me(o.onOpenAutoFocus,d=>{var g;d.preventDefault(),(g=h.current)==null||g.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[m.jsx(oV,{children:a}),m.jsx(lV,{contentRef:c})]})})})});wO.displayName=es;var _O="AlertDialogTitle",TO=x.forwardRef((e,t)=>
1261{const{__scopeAlertDialog:n,...a}=e,o=fa(n);return m.jsx(ov,{...o,...a,ref:t})});TO.displayName=_O;var CO="AlertDialogDescription",RO=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=fa(n);return m.jsx(sv,{...o,...a,ref:t})});RO.displayName=CO;var sV="AlertDialogAction",OO=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,o=fa(n);return m.jsx(fd,{...o,...a,ref:t})});OO.displayName=sV;var AO="AlertDialogCancel",NO=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=iV(AO,n),l=fa(n),c=xt(t,o);return m.jsx(fd,{...l,...a,ref:c})});NO.displayName=AO;var lV=({contentRef:e})=>{const t=`\`${es}\` requires a description for the component to be accessible for screen reader users.
1262
1263You can add a description to the \`${es}\` by passing a \`${CO}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
1264
1265Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${es}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
1266
1267For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{var a;document.getElementById((a=e.current)==null?void 0:a.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},uV=SO,cV=xO,DO=EO,kO=wO,MO=OO,jO=NO,IO=TO,LO=RO;const fV=uV,dV=cV,PO=x.forwardRef(({className:e,...t},n)=>m.jsx(DO,{className:pe("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));PO.displayName=DO.displayName;const UO=x.forwardRef(({className:e,...t},n)=>m.jsxs(dV,{children:[m.jsx(PO,{}),m.jsx(kO,{ref:n,className:pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));UO.displayName=kO.displayName;const zO=({className:e,...t})=>m.jsx("div",{className:pe("flex flex-col space-y-2 text-center sm:text-left",e),...t});zO.displayName="AlertDialogHeader";const FO=({className:e,...t})=>m.jsx("div",{className:pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});FO.displayName="AlertDialogFooter";const $O=x.forwardRef(({className:e,...t},n)=>m.jsx(IO,{ref:n,className:pe("text-lg font-semibold",e),...t}));$O.displayName=IO.displayName;const VO=x.forwardRef(({className:e,...t},n)=>m.jsx(LO,{ref:n,className:pe("text-sm text-muted-foreground",e),...t}));VO.displayName=LO.displayName;const BO=x.forwardRef(({className:e,...t},n)=>m.jsx(MO,{ref:n,className:pe(Ry(),e),...t}));BO.displayName=MO.displayName;const hV=x.forwardRef(({className:e,...t},n)=>m.jsx(jO,{ref:n,className:pe(Ry({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));hV.displayName=jO.displayName;function pV(){const[e,t]=x.useState(!1),n=ru(),a=Kt(c=>c.logout);x.useEffect(()=>yg.subscribe(()=>{t(!0)}),[]);const o=()=>{t(!1),a(),n("/login",{replace:!0})},l=()=>{t(!1),a()};return m.jsx(fV,{open:e,onOpenChange:t,children:m.jsxs(UO,{className:"sm:max-w-md",children:[m.jsxs(vn,{variant:"ghost",size:"icon",className:"absolute right-4 top-4 h-6 w-6 rounded-sm opacity-70 hover:opacity-100",onClick:l,children:[m.jsx(Jf,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),m.jsxs(zO,{children:[m.jsx($O,{className:"text-xl",children:"You have been signed out"}),m.jsx(VO,{className:"text-base pt-2",children:"You've been signed out of the customer portal. Your session has expired and all tabs have been signed out."})]}),m.jsx(FO,{children:m.jsx(BO,{onClick:o,className:"w-full sm:w-auto",children:"Sign in again"})})]})})}const mV="PrintaRex",qO="https://printarex.com",gV=`${qO}/printarex-animated.svg`,yV=new Set(["printarex.com","www.printarex.com"]),vV="noindex, nofollow",Hn=(e,t,n)=>{let a=document.head.querySelector(`meta[${e}="${t}"]`);a||(a=document.createElement("meta"),a.setAttribute(e,t),document.head.appendChild(a)),a.setAttribute("content",n)},bV=e=>{let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",e)},Bw=e=>{if(e.startsWith("http://")||e.startsWith("https://"))return e;const t=e.startsWith("/")?e:`/${e}`;return`${qO}${t}`},SV=()=>typeof window>"u"?!0:yV.has(window.location.hostname.toLowerCase()),xV=()=>{var e;return typeof document>"u"?"":((e=document.querySelector('meta[name="csp-nonce"]'))==null?void 0:e.content)||""};function EV({title:e,description:t,path:n="/",canonicalUrl:a,robots:o="index, follow",type:l="website",imageUrl:c=gV,jsonLd:f}){const h=a??Bw(n),d=Bw(c),g=f?JSON.stringify(f):"",v=SV()?o:vV;return x.useEffect(()=>{var S;if(document.title=e,Hn("name","description",t),Hn("name","robots",v),bV(h),Hn("property","og:site_name",mV),Hn("property","og:type",l),Hn("property","og:title",e),Hn("property","og:description",t),Hn("property","og:url",h),Hn("property","og:image",d),Hn("name","twitter:card","summary_large_image"),Hn("name","twitter:title",e),Hn("name","twitter:description",t),Hn("name","twitter:image",d),(S=document.getElementById("route-json-ld"))==null||S.remove(),g){const b=document.createElement("script");b.id="route-json-ld",b.type="application/ld+json";const w=xV();w&&(b.nonce=w),b.textContent=g,document.head.appendChild(b)}},[h,d,t,g,v,e,l]),null}const wV=new Set(["http:","https:"]);function HO(e){const t=typeof e=="string"?e.trim():"";if(!t)return null;try{const n=new URL(t);return!wV.has(n.protocol)||!n.hostname||n.username||n.password?null:t}catch{return null}}function JH(e){const t=HO(e);t&&globalThis.open(t,"_blank","noopener,noreferrer")}function _V(e){const t=HO(e);t&&globalThis.location.assign(t)}function TV(e){let t=e.length;for(;t>0&&e[t-1]==="/";)t-=1;return e.slice(0,t)}const Wt="https://printarex.com",On="noindex, nofollow",zo={"@context":"https://schema.org","@type":"Organization","@id":`${Wt}/#organization`,name:"PrintaRex",url:Wt,logo:`${Wt}/printarex-animated.svg`,areaServed:[{"@type":"Country",name:"United Arab Emirates"},{"@type":"City",name:"Dubai"},{"@type":"Country",name:"Saudi Arabia"},{"@type":"Country",name:"Egypt"}]},CV={"@context":"https://schema.org","@type":"WebSite","@id":`${Wt}/#website`,name:"PrintaRex",url:Wt,publisher:{"@id":`${Wt}/#organization`},potentialAction:{"@type":"SearchAction",target:`${Wt}/search?q={search_term_string}`,"query-input":"required name=search_term_string"}},RV={"@context":"https://schema.org","@type":"Service","@id":`${Wt}/#print-on-demand-service`,name:"Print on Demand UAE",serviceType:"Print on demand apparel fulfillment",provider:{"@id":`${Wt}/#organization`},areaServed:[{"@type":"Country",name:"United Arab Emirates"},{"@type":"City",name:"Dubai"}],description:"PrintaRex helps creators and online stores sell custom t-shirts and apparel with regional print-on-demand production, store integrations, and delivery."},OV={"@context":"https://schema.org","@type":"SoftwareApplication","@id":`${Wt}/apps/amazon#application`,name:"PrintaRex Amazon Seller Integration",applicationCategory:"BusinessApplication",operatingSystem:"Web",provider:{"@id":`${Wt}/#organization`},offers:{"@type":"Offer",price:"0",priceCurrency:"AED",description:"The Free PrintaRex plan supports the first two connected stores across Shopify, WooCommerce, and Amazon. Optional Premium adds capacity and subscription benefits."},description:"PrintaRex connects Amazon seller accounts for print-on-demand listing publishing, authorized merchant-fulfilled order import, and fulfillment updates."},AV={"@context":"https://schema.org","@type":"SoftwareApplication","@id":`${Wt}/apps/shopify#application`,name:"PrintaRex Shopify Store Integration",applicationCategory:"BusinessApplication",operatingSystem:"Web",provider:{"@id":`${Wt}/#organization`},offers:{"@type":"Offer",price:"0",priceCurrency:"AED",description:"The Free PrintaRex plan supports the first two connected stores across Shopify, WooCommerce, and Amazon. Optional Premium adds capacity and subscription benefits."},description:"PrintaRex connects Shopify stores for print-on-demand product publishing, order webhook import, inventory, and fulfillment updates."},NV={"@context":"https://schema.org","@type":"SoftwareApplication","@id":`${Wt}/apps/woocommerce#application`,name:"PrintaRex WooCommerce Store Integration",applicationCategory:"BusinessApplication",operatingSystem:"Web",provider:{"@id":`${Wt}/#organization`},offers:{"@type":"Offer",price:"0",priceCurrency:"AED",description:"The Free PrintaRex plan supports the first two connected stores across Shopify, WooCommerce, and Amazon. Optional Premium adds capacity and subscription benefits."},description:"PrintaRex connects WooCommerce stores for print-on-demand product publishing, order webhooks, shipping setup, and fulfillment updates."},DV={"@context":"https://schema.org","@type":"OfferCatalog","@id":`${Wt}/pricing#offer-catalog`,name:"PrintaRex Free and Premium plans",itemListElement:[{"@type":"Offer",name:"PrintaRex Free",price:"0",priceCurrency:"AED",description:"Two connected stores and up to 50 editable saved drafts, with fulfillment charges billed separately."},{"@type":"Offer",name:"PrintaRex Premium monthly — UAE",price:"150",priceCurrency:"AED",description:"Manual monthly Premium term. The live catalogue and checkout confirmation remain the price authority."},{"@type":"Offer",name:"PrintaRex Premium yearly — UAE",price:"1500",priceCurrency:"AED",description:"Manual yearly Premium term. Saudi Arabia and Egypt prices remain display-only until their checkout rails are enabled."}]}
1267,qw={"/":{title:"Print on Demand UAE | PrintaRex Custom Apparel Fulfillment",description:"Create and sell custom apparel with PrintaRex, a UAE print-on-demand platform connecting Shopify, WooCommerce, and Amazon sellers to regional fulfillment.",jsonLd:[zo,CV,RV]},"/apps/amazon":{title:"Amazon Seller Integration | PrintaRex SP-API App",description:"Connect Amazon Seller Central to PrintaRex to publish print-on-demand listings, import authorized merchant-fulfilled orders, and share shipment updates.",jsonLd:[zo,OV]},"/apps/shopify":{title:"Shopify Store Integration | PrintaRex Print-on-Demand App",description:"Connect your Shopify store to PrintaRex to publish print-on-demand products, import authorized orders, and share inventory and fulfillment updates.",jsonLd:[zo,AV]},"/apps/woocommerce":{title:"WooCommerce Print on Demand Integration | PrintaRex",description:"Connect WooCommerce to PrintaRex to publish print-on-demand products, import signed order webhooks, set up shipping zones, and share fulfillment updates.",jsonLd:[zo,NV]},"/apps/noon":{title:"Noon Marketplace Integration (Coming Soon) | PrintaRex",description:"Coming soon: PrintaRex plans Noon product publishing, inventory and approved price sync, order import, and fulfillment updates for UAE sellers.",jsonLd:[zo]},"/pricing":{title:"Free and Premium Pricing | PrintaRex",description:"Compare PrintaRex Free and Premium plans, UAE monthly and yearly AED pricing, store and draft limits, and separate fulfillment charges.",jsonLd:[zo,DV]},"/catalog":{title:"Custom Product Catalog for Print on Demand UAE | PrintaRex",description:"Browse PrintaRex custom apparel and print-on-demand products for UAE creators, online stores, and regional fulfillment."},"/s":{title:"Design preview | PrintaRex",description:"View a shared PrintaRex design preview.",robots:On},"/search":{title:"Search PrintaRex",description:"Search PrintaRex products, help, and print-on-demand workflows inside the customer portal.",robots:On},"/become-provider":{title:"Become a Print Provider | PrintaRex",description:"Join the PrintaRex provider network to receive routed print-on-demand orders, manage production, and grow regional fulfillment capacity."},"/about":{title:"About PrintaRex | Print on Demand in the UAE",description:"PrintaRex connects UAE creators and online stores with regional print providers for custom merchandise, local production, and faster fulfillment."},"/careers":{title:"Careers | PrintaRex",description:"Explore opportunities to help build PrintaRex, a regional print-on-demand platform for creators, stores, and fulfillment providers."},"/how-to-use":{title:"How to Use PrintaRex | Design and Order Custom Products",description:"Learn how to choose products, upload designs, preview mockups, and place print-on-demand orders with PrintaRex."},"/support/kb":{title:"Knowledge Base | PrintaRex Help",description:"Read PrintaRex help articles for design setup, product ordering, payments, shipping, and account support."},"/bulk-orders":{title:"Bulk Custom Orders | PrintaRex",description:"Calculate provider-specific bulk savings for custom products and start high-volume print-on-demand orders with PrintaRex."},"/Proof%20of%20resolution%20For%20Shopify%20App":{title:"Proof of Resolution for Shopify App Review | PrintaRex",description:"Review PrintaRex proof of resolution for the Shopify App Store billing exemption request, including pricing details and merchant billing information.",robots:On},"/Proof of resolution For Shopify App":{title:"Proof of Resolution for Shopify App Review | PrintaRex",description:"Review PrintaRex proof of resolution for the Shopify App Store billing exemption request, including pricing details and merchant billing information.",robots:On},"/shopify-proof-of-resolution":{title:"Proof of Resolution for Shopify App Review | PrintaRex",description:"Review PrintaRex proof of resolution for the Shopify App Store billing exemption request, including pricing details and merchant billing information.",robots:On},"/privacy":{title:"Privacy Policy | PrintaRex",description:"Read how PrintaRex collects, uses, and protects customer, provider, and platform data."},"/terms":{title:"Terms of Service | PrintaRex",description:"Review the terms for using PrintaRex customer, store, and provider services."},"/cookies":{title:"Cookie Policy | PrintaRex",description:"Learn how PrintaRex uses cookies and similar technologies to run and improve the platform."},"/policies":{title:"Policies | PrintaRex",description:"Review PrintaRex policies for returns, intellectual property, privacy, and platform use."},"/policies/return-policy":{title:"Return Policy | PrintaRex",description:"Review the PrintaRex return policy for custom print-on-demand products, damaged items, wrong items, and support steps."},"/policies/ip-policy":{title:"IP Policy | PrintaRex",description:"Review the PrintaRex intellectual property policy for uploaded artwork, product designs, marketplace content, and takedown requests."},"/help":{title:"PrintaRex Help Center",description:"Go to the PrintaRex Help Center for customer support and product guidance.",robots:On},"/contact":{title:"Contact PrintaRex Support",description:"Contact PrintaRex support through the Help Center.",robots:On}},kV=new Set(["/login","/register","/forgot-password","/reset-password","/verify-email","/checkout","/cart","/account","/subscription","/settings","/billing/afs-return","/test-mockup"]),MV=["/auth/","/dashboard","/account/","/orders/","/settings/","/customization-for-yourself/","/customization-for-your-stores","/support/create","/support/tickets","/camera-upload/"],jV=e=>e==="/"?"/":TV(e),qc=e=>
1267e.split("-").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),IV=e=>kV.has(e)||MV.some(t=>e.startsWith(t)),LV=e=>{if(e.startsWith("/products/")){const t=qc(e.split("/").pop()??"Custom Product");return{title:`${t} | Custom Print-on-Demand Product | PrintaRex`,description:`Customize ${t} with PrintaRex and route production through regional print-on-demand providers.`,type:"product",robots:On}}if(e.startsWith("/catalog/")){const t=qc(e.split("/").reverse().find(Boolean)??"Products");return{title:`${t} Custom Products | PrintaRex Catalog`,description:`Browse ${t} products and start custom print-on-demand orders with PrintaRex.`,robots:On}}if(e.startsWith("/support/kb/")){const t=qc(e.split("/").pop()??"Help Article");return{title:`${t} | PrintaRex Knowledge Base`,description:`Read PrintaRex guidance for ${t.toLowerCase()} and related print-on-demand workflows.`,type:"article",robots:On}}if(e.startsWith("/policies/")){const t=qc(e.split("/").pop()??"Policy");return{title:`${t} Policy | PrintaRex`,description:`Review the PrintaRex ${t.toLowerCase()} policy for platform users and providers.`,type:"article",robots:On}}return null};function PV(){const{pathname:e}=Zt(),t=x.useMemo(()=>{const n=jV(e);if(qw[n])return{...qw[n],path:n};const a=LV(n);return a?{...a,path:n}:IV(n)?{title:"PrintaRex Account",description:"Secure PrintaRex account area.",path:n,robots:On}:{title:"Page Not Found | PrintaRex",description:"The requested PrintaRex page could not be found.",path:n,robots:On}},[e]);return m.jsx(EV,{...t})}let ni={},Ug={},Am=null,Hw=0;const Nm=new Map,UV=["/privacy","/terms","/cookies"],zV=["/checkout"],FV=["/dashboard","/account","/settings","/orders","/billing","/subscription","/support"];function za(e,t){return e===t||e.startsWith(`${t}/`)}function $V(e){return za(e,"/customization-for-your-stores")?"customization-stores":za(e,"/customization-for-yourself")?"customization-personal":za(e,"/dashboard/branding/design")||za(e,"/test-mockup")?"branding-studio":UV.some(t=>za(e,t))||za(e,"/policies")?"legal":zV.some(t=>za(e,t))||FV.some(t=>za(e,t))?"dashboard":"public"}function VV(e){const t=++Hw;Am!==e&&(Am=null,ni={},Ug={});let n=Nm.get(e);return n||(n=de(async()=>{const{loadArabicStaticCopyDictionaries:a}=await import("./arabic-static-copy-dictionaries-DXKyjvoF.js");return{loadArabicStaticCopyDictionaries:a}},[]).then(({loadArabicStaticCopyDictionaries:a})=>a(e)).catch(a=>{throw Nm.delete(e),a}),Nm.set(e,n)),n.then(a=>{t===Hw&&(ni=a.exactStaticCopy,Ug=a.bridgeExactStaticCopy,Am=e)})}const BV={black:"Black",blue:"Blue",brown:"Brown",burgundy:"Burgundy",charcoal:"Charcoal",forestgreen:"Forest Green",gold:"Gold",graphiteblack:"Graphite Black",gray:"Gray",grey:"Grey",green:"Green",lightblue:"Light Blue",lightgray:"Light Gray",lightgrey:"Light Gray",limegreen:"Lime Green",maroon:"Maroon",navy:"Navy",navyblue:"Navy Blue",orange:"Orange",pink:"Pink",purple:"Purple",red:"Red",royalblue:"Royal Blue",skyblue:"Sky Blue",white:"White",yellow:"Yellow"},qV={basiccrewneckshortsleevetshirt:"Basic Crewneck Short Sleeve T Shirt",basicopenhemcrewnecklongsleevetshirt:"Basic Open Hem Crew Neck Long Sleeve T Shirt",classickidscrewneckshortsleevetshirt:"Classic Kids Crewneck Short Sleeve T-shirt",classickidscrewnecktshirt:"Classic Kids Crewneck T-Shirt",clothingpackaginghangtag:"Clothing Packaging Hang Tag",cooltexpolomilantshirts:"Cooltex Polo Milan T-Shirts",greetinggiftinsertscard:"Greeting & Gift Inserts Card",oversizedtshirt:"Oversized T-shirt",premiumcrewneckshortsleevetshirt:"Premium Crewneck Short Sleeve T-shirt",womensoversizedtshirt:"Women's Oversized T Shirt"},GO={back:"Back side",front:"Front side",innerneck:"Inner Neck",leftsleeve:"Left Sleeve",outerneck:"Outer Neck",rightsleeve:"Right Sleeve"},HV={...GO,frontlarge:"Front (Large)",frontmedium:"Front (Medium)",frontsmall:"Front (Small)",fullsheet:"Full Sheet",leftchest:"Left Chest",lidlarge:"Lid (Large)",lidmedium:"Lid (Medium)",lidsmall:"Lid (Small)",patterntile:"Pattern Tile",toplarge:"Top (Large)",topmedium:"Top (Medium)",topsmall:"Top (Small)"},GV={brandingproducts:"Branding Products",giftboxes:"Gift Boxes",hangtags:"Hang Tags",hoodies:"Hoodies",kidsclothing:"Kids Clothing",labelsstickers:"Labels & Stickers",longsleeve:"Long Sleeve",mensclothing:"Men's Clothing",oversized:"Oversized",oversizedh
1267oodie:"Oversized Hoodie",packaginginserts:"Packaging Inserts",polo:"Polo",polymailerbags:"Poly Mailer Bags",pulloverhoodie:"Pullover Hoodie",shippingboxes:"Shipping Boxes",shoppingbags:"Shopping Bags",shortsleeve:"Short Sleeve",tissuepaper:"Tissue Paper",tshirts:"T-Shirts",womensclothing:"Women's Clothing"},QV={"100micron":"100 micron","17gsmstandard":"17 GSM (Standard)","1colour":"1 Colour","1sheet":"1 Sheet","20gsmpremium":"20 GSM (Premium)","20x30cm":"20x30 cm","24gsmluxury":"24 GSM (Luxury)","25x35cm":"25x35 cm","2sheets":"2 Sheets","30x40cm":"30x40 cm","34sleeve":"3/4 Sleeve","35x45cm":"35x45 cm","3sheets":"3 Sheets","40x50cm":"40x50 cm","5sheets":"5 Sheets","60micron":"60 micron","80micron":"80 micron",adhesivetype:"Adhesive Type",agerange:"Age Range",alength:"A) Length",allsizes:"All Sizes",bagcolor:"Bag Color",bagsize:"Bag Size",basecolor:"Base Color",bchest:"B) Chest",bhalfchest:"B) Half Chest",biodegradablepla:"Biodegradable (PLA)",black:"Black",boatneck:"Boat Neck",boxsize:"Box Size",boxstyle:"Box Style",brownkraftcorrugated:"Brown Kraft Corrugated",bwidth:"B) Width",capsleeve:"Cap Sleeve",circle:"Circle",clear:"Clear",clearpe:"Clear PE",clearvinyl:"Clear Vinyl",closure:"Closure",closuretype:"Closure Type",collartype:"Collar Type",cornerlogo:"Corner Logo",cornerstyle:"Corner Style",corrugated:"Corrugated",cottoncanvas:"Cotton Canvas",cottonpaper:"Cotton Paper",cottonrope:"Cotton Rope",cottonstringblack:"Cotton String (Black)",cottonstringwhite:"Cotton String (White)",crewneck:"Crew Neck",cropped:"Cropped",cshoulder:"C) Shoulder",csleevelength:"C) Sleeve Length",custom:"Custom",customcolor:"Custom Color",customdiecut:"Custom Die-Cut",diecut:"Die-Cut",doublewallcorrugated:"Double Wall Corrugated",drawerstyle:"Drawer Style",dsleevelength:"D) Sleeve Length",exteriorinterior:"Exterior + Interior",extralarge40x50cm:"Extra Large (40x50 cm)",extrarough:"Extra rough",extrasoft:"Extra soft",extrawide15cm:"Extra Wide (15 cm)",fabricthickness:"Fabric thickness",fabricweight:"Fabric Weight",finish:"Finish",fit:"Fit",fitted:"Fitted",flatknitcollar:"Flat Knit Collar",flatpaper:"Flat Paper",fleece:"Fleece",foaminsert:"Foam Insert",foilstamping:"Foil Stamping",foldable:"Foldable",frontback:"Front + Back",frontonly:"Front Only",frostedpe:"Frosted PE",fullcolour:"Full Colour",fullexterior:"Full Exterior",fullsheetdesign:"Full Sheet Design",fullzip:"Full Zip",glosslamination:"Gloss Lamination",glossvarnish:"Gloss Varnish",glossy:"Glossy",gussetwidth:"Gusset (Width)",halfzip:"Half Zip",handlecolor:"Handle Color",handletype:"Handle Type",heavyweight:"Heavyweight",henley:"Henley",holepunch:"Hole Punch",hoodlining:"Hood Lining",interiorinsert:"Interior Insert",johnnycollar:"Johnny Collar",jutetwine:"Jute Twine",kangaroopocket:"Kangaroo Pocket",kraftbrown:"Kraft Brown",kraftcardboard:"Kraft Cardboard",kraftpaper:"Kraft Paper",labelsize:"Label Size",large:"Large",large20x20x10cm:"Large (20x20x10 cm)",large30x40cm:"Large (30x40 cm)",large40x30x15cm:"Large (40x30x15 cm)",largebag:"Large Bag",largebag40x50cm:"Large Bag (40x50 cm)",largebox:"Large Box",lidinterior:"Lid + Interior",lidonly:"Lid Only",lidsides:"Lid + Sides",liftofflid:"Lift-Off Lid",lightweight:"Lightweight",longsleeve:"Long Sleeve",magneticclosure:"Magnetic Closure",mailerboxtuckfront:"Mailer Box (Tuck Front)",mandarincollar:"Mandarin Collar",matchbagcolor:"Match Bag Color",material:"Material",matte:"Matte",mattelamination:"Matte Lamination",mattevarnish:"Matte Varnish",medium:"Medium",medium15x15x10cm:"Medium (15x15x10 cm)",medium25x30cm:"Medium (25x30 cm)",medium30x20x10cm:"Medium (30x20x10 cm)",mediumbag:"Medium Bag",mediumbag30x40cm:"Medium Bag (30x40 cm)",mediumbox:"Medium Box",natural:"Natural",nodrawstringssafetycompliant:"No drawstrings (safety compliant)",none:"None",nonwovenfabric:"Non-Woven Fabric",nopocket:"No Pocket",noventholes:"No Vent Holes",opentop:"Open Top",oval:"Oval",oversized:"Oversized",paperglossy:"Paper (Glossy)",papermatte:"Paper (Matte)",papertype:"Paper Type",paperweight:"Paper Weight",permanent:"Permanent",pockettype:"Pocket Type",polocollar:"Polo Collar",premiumcardstock:"Premium Cardstock",presszip:"Press Zip",printareas:"Print Areas",printcolours:"Print Colours",printedsides:"Printed Sides",printtype:"Print Type",pullover:"Pullover",rectangle:"Rectangle",recycledkraft:"Recycled Kraft",recycledpaper:"Recycled Paper",recycledpe:"Recycled PE",regular:"Regular",regularslottedcarton:"Regular Slotted Carton",reinforcedeyelet:"Reinforced Eyelet",relaxed:"Relaxed",removable:"Removable",repeating:"Repeating",repeatingpattern:"Repeating Pattern",repositionable:"Repositionable",ribbedcollar:"Ribbed Collar",ribbon:"Ribbon",rigidboard:"Rigid Board",round3mm:"Round (3mm)",round5mm:"Round (5mm)",rounded3mm:"Rounded (3mm)",rounded6mm:"Rounded (6mm)",roundneck:"Round Neck",safetyfeatures:"Safety Features",satinribbon:"Satin Ribbon",scoopneck:"Scoop Neck",selffabriccollar:"Self-Fabric Collar",selflockingbox:"Self-Locking Box",selfsealadhesivestrip:"Self-Seal Adhesive Strip",shape:"Shape",sheetsperorderitem:"Sheets per Order Item",shortsleeve:"Short Sleeve",shreddedpaper:"Shredded Paper",sidepockets:"Side Pockets",sleevetype:"Sleeve Type",slim:"Slim",small:"Small",small10x10x5cm:"Small (10x10x5 cm)",small15x20cm:"Small (15x20 cm)",small20x15x5cm:"Small (20x15x5 cm)",smallbag:"Small Bag",smallbag20x30cm:"Small Bag (20x30 cm)",smallbox:"Small Box",softfleece:"Soft Fleece",softnessscale:"Softness scale",softtouch:"Soft Touch",softtouchlamination:"Soft Touch Lamination",spotuv:"Spot UV",square:"Square",standard:"Standard",standard8cm:"Standard (8 cm)",stringcord:"String/Cord",texturedpaper:"Textured Paper",thickness:"Thickness",tissuepaper:"Tissue Paper",toponly:"Top Only",topsides:"Top + Sides",transparentfrosted:"Transparent Frosted",twistedpaper:"Twisted Paper",uvcoating:"UV Coating",ventholes:"Vent Holes",vinyl:"Vinyl",vneck:"V-Neck",white:"White",whitecardboard:"White Cardboard",whitecorrugated:"White Corrugated",whitepaper:"White Paper",wide12cm:"Wide (12 cm)",withventholes:"With Vent Holes",zipneck:"Zip Neck",zippersliderresealable:"Zipper (Slider, Resealable)"},YV={cotton:"Cotton",elastane:"Elastane",organiccotton:"Organic Cotton",polyester:"Polyester",viscose:"Viscose"},KV=/^(\d{1,3}(?:\.\d{1,2})?)\s?%\s?([A-Za-z][A-Za-z -]{0,40})$/,WV="، ",ZV=new Set(["AED","AI","ALT","ALT+T","AMAZON","API","AES","AFS","AWS","CCPA","CTRL","CTRL+B","CTRL+I","CTRL+U","DPI","DTG","DIFC","DPA","EGP","FACEBOOK","GDPR","GOOGLE","HMAC","ID","IP","MENA","MFA","MFN","OAUTH","OS","PAYMOB","PDF","PRINTAREX","QR","REST","SHOPIFY","SKU","SP-API","SCCS","TIKTOK","TLS","UAE","URL","USD","VAT","WIX","WOOCOMMERCE"]),XV=["Basic Open Hem Crew Neck Long Sleeve T Shirt","Basic Crewneck Short Sleeve T-shirt","Basic Crewneck Short Sleeve T Shirt","Classic Kids Crewneck Short Sleeve T-shirt","Classic Kids Crewneck T Shirt","Women's Oversized T Shirt","Oversized T-shirt","Oversized T Shirt","Short Sleeve T-shirt","Men's Clothing","Women's Clothing","Kids Clothing","Long Sleeve","Short Sleeve","T-Shirts","Oversized","Personal Order","Personalized","Stores","Copy"],JV=/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi,eB=/[A-Za-z][A-Za-z0-9.+-]*/g,tB=[{pattern:/^Order (.+) In Production$/i,translate:e=>`الطلب ${e[1]} قيد الإنتاج`},{pattern:/^Order (.+) Quality Check$/i,translate:e=>`الطلب ${e[1]} قيد فحص الجودة`},{pattern:/^Order Confirmed - (.+)$/i,translate:e=>`تم تأكيد الطلب - ${e[1]}`},{pattern:/^Order Delivered - (.+)$/i,translate:e=>`تم تسليم الطلب - ${e[1]}`},{pattern:/^Order Shipped - (.+)$/i,translate:e=>`تم شحن الطلب - ${e[1]}`},{pattern:/^Invoice and receipt ready - (.+)$/i,translate:e=>`الفاتورة والإيصال جاهزان - ${e[1]}`},{pattern:/^Payment received - (.+)$/i,translate:e=>`تم استلام الدفع - ${e[1]}`},{pattern:/^Payment expired - (.+)$/i,translate:e=>`انتهت مهلة الدفع - ${e[1]}`},{pattern:/^Payment declined - (.+)$/i,translate:e=>`تم رفض الدفع - ${e[1]}`},{pattern:/^Order (.+) is confirmed\.$/i,translate:e=>`تم تأكيد الطلب ${e[1]}.`},{pattern:/^Order (.+) has been (shipped|delivered)\.$/i,translate:e=>`تم ${YO(e[2])} الطلب ${e[1]}.`},{pattern:/^Your order (.+) is now (in transit|out for delivery)\.$/i,translate:e=>`طلبك ${e[1]} الآن ${KO(e[2])}.`},{pattern:/^Payment successful for order (.+)\.$/i,translate:e=>`تم الدفع بنجاح للطلب ${e[1]}.`},{pattern:/^Payment (failed|declined) for order (.+)\.$/i,translate:e=>`${WO(e[1])} للطلب ${e[2]}.`},{pattern:/^Your payment window for order (.+) closed\. Complete payment to restart\.$/i,translate:e=>`انتهت مهلة الدفع للطلب ${e[1]}. أكمل الدفع لإعادة البدء.`},{pattern:/^Great news! Your order (.+) \(([A-Z]{3}) ([\d,.]+)\) has been accepted and is now in production\.$/i,translate:e=>`خبر رائع! تم قبول طلبك ${e[1]} بقيمة ${Dm(e[2],e[3])} وهو الآن قيد الإنتاج.`},{pattern:/^Order (.+) is being inspected for quality before shipping\.$/i,translate:e=>`يتم فحص جودة الطلب ${e[1]} قبل الشحن.`},{pattern:/^Your invoice and receipt are ready for order (.+) \(([A-Z]{3}) ([\d,.]+)\)\.$/i,translate:e=>`الفاتورة والإيصال جاهزان للطلب ${e[1]} بقيمة ${Dm(e[2],e[3])}.`}
1267,{pattern:/^Payment confirmed for order (.+) \(([A-Z]{3}) ([\d,.]+)\)\.$/i,translate:e=>`تم تأكيد الدفع للطلب ${e[1]} بقيمة ${Dm(e[2],e[3])}.`},{pattern:/^Thank you for your order! We're processing it now\.$/i,translate:()=>"شكرا لطلبك! نحن نعالجه الآن."},{pattern:/^Your order has been delivered! Thank you for choosing PrintaRex\.$/i,translate:()=>"تم تسليم طلبك! شكرا لاختيارك PrintaRex."}],nB=[{pattern:/^Notifications \((\d+) unread\)$/i,translate:e=>`الإشعارات (${e[1]} غير مقروء)`},{pattern:/^(\d+) unread$/i,translate:e=>`${e[1]} غير مقروء`},{pattern:/^(\d+) messages$/i,translate:e=>`${e[1]} رسائل`},{pattern:/^(\d+) transactions?$/i,translate:e=>`${e[1]} معاملة`},{pattern:/^(\d+) total$/i,translate:e=>`${e[1]} إجمالا`},{pattern:/^(\d+) notifications deleted$/i,translate:e=>`تم حذف ${e[1]} إشعار`},{pattern:/^(\d+) orders? pending$/i,translate:e=>Gw(Number(e[1]))},{pattern:/^Showing (\d+) pending orders?$/i,translate:e=>`يعرض ${Gw(Number(e[1]))}`},{pattern:/^(\d+) selected$/i,translate:e=>`${e[1]} محدد`},{pattern:/^Approve All \((\d+)\)$/i,translate:e=>`الموافقة على الكل (${e[1]})`},{pattern:/^Payment expired - (.+)$/i,translate:e=>`انتهت مهلة الدفع - ${e[1]}`},{pattern:/^Your payment window for order (.+) closed\. Complete payment to restart\.$/i,translate:e=>`انتهت مهلة الدفع للطلب ${e[1]}. أكمل الدفع لإعادة البدء.`},{pattern:/^Support Ticket Created$/i,translate:()=>"تم إنشاء تذكرة دعم"},{pattern:/^Your ticket #(TKT-\d+) has been submitted(?:: .*)?$/i,translate:e=>`تم إرسال تذكرتك #${e[1]}.`},{pattern:/^(Google|Facebook) authentication failed: (.+)$/i,translate:e=>`فشلت مصادقة ${km(e[1])}: ${e[2]}`},{pattern:/^Your (Google|Facebook) account has been linked to your existing (.+) account\.$/i,translate:e=>`تم ربط حساب ${km(e[1])} بحسابك الحالي (${km(e[2])}).`},{pattern:/^We'll send a code to (.+)$/i,translate:e=>`سنرسل رمزا إلى ${e[1]}`},{pattern:/^Resend in (\d+)s$/i,translate:e=>`إعادة الإرسال خلال ${e[1]} ث`},{pattern:/^Go to image (\d+)$/i,translate:e=>`اذهب إلى الصورة ${e[1]}`},{pattern:/^Page (\d+) of (\d+)$/i,translate:e=>`الصفحة ${e[1]} من ${e[2]}`},{pattern:/^Upgrade to (.+)$/i,translate:e=>`الترقية إلى ${qt(e[1])}`},{pattern:/^\$(\d+)\/month billed annually$/i,translate:e=>`$${e[1]}/شهر يتم دفعها سنويا`},{pattern:/^Search results for "(.+)"$/i,translate:e=>`نتائج البحث عن "${e[1]}"`},{pattern:/^Select (.+)$/i,translate:e=>`اختر ${qt(e[1])}`},{pattern:/^Choose a (.+) product to start designing$/i,translate:e=>`اختر منتج ${qt(e[1])} لبدء التصميم`},{pattern:/^(.+) Products$/i,translate:e=>`منتجات ${qt(e[1])}`},{pattern:/^No (.+) products available$/i,translate:e=>`لا توجد منتجات ${qt(e[1])} متاحة`},{pattern:/^(\d+) results? found$/i,translate:e=>`تم العثور على ${e[1]} نتيجة`},{pattern:/^(\d+) products?$/i,translate:e=>`${e[1]} منتج`},{pattern:/^(\d+) available$/i,translate:e=>`${e[1]} متاح`},{pattern:/^(\d+) (colors available for this product|sizes available with stock information|variant combinations with pricing)\.$/i,translate:e=>`${cB(e[2])}: ${e[1]}`},{pattern:/^(\d+) (color|size|print area|variant)\(s\) configured\.$/i,translate:e=>`${fB(e[2])}: ${e[1]}`},{pattern:/^Based on (\d+) orders$/i,translate:e=>`بناءً على ${e[1]} من الطلبات`},{pattern:/^(\d+(?:\.\d+)?)% (success rate|return rate|rate)$/i,translate:e=>`${dB(e[2])}: ${e[1]}%`},{pattern:/^(AED|USD|EGP) pricing$/i,translate:e=>`تسعير ${e[1].toUpperCase()}`},{pattern:/^Up to (\d+) store connections — Shopify, WooCommerce (?:or|&) Amazon$/i,translate:e=>e[1]==="2"?"ما يصل إلى متجرين متصلين — Shopify وWooCommerce وAmazon":`ما يصل إلى ${e[1]} متاجر متصلة — Shopify وWooCommerce وAmazon`},{pattern:/^(\d+) saved designs$/i,translate:e=>`${e[1]} تصميما محفوظا`},{pattern:/^(\d+) new products published per store each month$/i,translate:e=>`${e[1]} منتجا جديدا منشورا لكل متجر شهريا`},{pattern:/^Up to (\d+) · incl\. Amazon$/i,translate:e=>e[1]==="2"?"حتى متجرين · يشمل Amazon":`حتى ${e[1]} متاجر · يشمل Amazon`},{pattern:/^(\d+) item lines?$/i,translate:e=>`${e[1]} بند طلب`}
1267,{pattern:/^(\d+) files?$/i,translate:e=>`${e[1]} ملف`},{pattern:/^Are you sure you want to reject order #?(.+)\?$/i,translate:e=>`هل أنت متأكد من رغبتك في رفض الطلب #${e[1]}؟`},{pattern:/^One item's design preview is being generated\. This can take a few minutes — your order is not delayed\.$/i,translate:()=>"جار إنشاء معاينة تصميم عنصر واحد. قد يستغرق ذلك بضع دقائق — ولن يؤخر طلبك."},{pattern:/^(\d+) items' design previews are being generated\. This can take a few minutes — your order is not delayed\.$/i,translate:e=>`جار إنشاء معاينات التصميم لـ ${e[1]} عناصر. قد يستغرق ذلك بضع دقائق — ولن يؤخر طلبك.`},{pattern:/^(\d+) (preview|mockup)s?$/i,translate:e=>`${e[1]} ${e[2].toLowerCase()==="preview"?"معاينة":"نموذج"}`},{pattern:/^Qty (.+) ·$/i,translate:e=>`الكمية ${e[1]} ·`},{pattern:/^Issue with Order #(.+)$/i,translate:e=>`مشكلة في الطلب #${e[1]}`},{pattern:/^You're submitting a complaint for Order (.+)\. The order details have been pre-filled\.$/i,translate:e=>`أنت ترسل شكوى للطلب ${e[1]}. تم تعبئة تفاصيل الطلب مسبقا.`},{pattern:/^Linked to Order #(.+)$/i,translate:e=>`مرتبط بالطلب #${e[1]}`},{pattern:/^This ticket is (.+)\. Reopen it to continue the conversation\.$/i,translate:e=>`هذه التذكرة ${pB(e[1])}. أعد فتحها لمتابعة المحادثة.`},{pattern:/^Order (.+) is confirmed\.$/i,translate:e=>`تم تأكيد الطلب ${e[1]}.`},{pattern:/^Order (.+) has been (shipped|delivered)\.$/i,translate:e=>`تم ${YO(e[2])} الطلب ${e[1]}.`},{pattern:/^Your order (.+) is now (in transit|out for delivery)\.$/i,translate:e=>`طلبك ${e[1]} الآن ${KO(e[2])}.`},{pattern:/^Payment successful for order (.+)\.$/i,translate:e=>`تم الدفع بنجاح للطلب ${e[1]}.`},{pattern:/^Payment (failed|declined) for order (.+)\.$/i,translate:e=>`${WO(e[1])} للطلب ${e[2]}.`},{pattern:/^Order (.+) is being reviewed by our team\. You will receive an email once the review completes\.$/i,translate:e=>`تتم مراجعة الطلب ${e[1]} من فريقنا. ستصلك رسالة بريد إلكتروني عند اكتمال المراجعة.`},{pattern:/^Invoice (.*) opened in new tab and downloaded\.$/i,translate:e=>`تم فتح الفاتورة ${e[1]} في تبويب جديد وتنزيلها.`},{pattern:/^Invoice (.*) opened in new tab\.$/i,translate:e=>`تم فتح الفاتورة ${e[1]} في تبويب جديد.`},{pattern:/^Receipt (.*) opened in new tab and downloaded\.$/i,translate:e=>`تم فتح الإيصال ${e[1]} في تبويب جديد وتنزيله.`},{pattern:/^Receipt (.*) opened in new tab\.$/i,translate:e=>`تم فتح الإيصال ${e[1]} في تبويب جديد.`},{pattern:/^Your order has been cancelled\. A refund of (.+) will be processed within (.+)\.$/i,translate:e=>`تم إلغاء طلبك. ستتم معالجة استرداد بقيمة ${e[1]} خلال ${e[2]}.`},{pattern:/^Provider selected — Order assigned to (.+)$/i,translate:e=>`تم اختيار المزود — تم تعيين الطلب إلى ${e[1]}`},{pattern:/^The order #(.+) could not be found or has already been processed\.$/i,translate:e=>`تعذر العثور على الطلب #${e[1]} أو تمت معالجته بالفعل.`},{pattern:/^Payment could not be verified\. Status is uncertain — do not retry, a double charge is possible\. Contact support with order (.+) and our team will verify with the bank before taking further action\.$/i,translate:e=>`تعذر التحقق من الدفع. الحالة غير مؤكدة — لا تعد المحاولة لأن الخصم المزدوج ممكن. تواصل مع الدعم بخصوص الطلب ${e[1]} وسيتحقق فريقنا مع البنك قبل اتخاذ أي إجراء آخر.`},{pattern:/^Your bank is still finalising the transaction\. We'll update order (.+) automatically once it completes\.$/i,translate:e=>`لا يزال بنكك ينهي المعاملة. سنحدث الطلب ${e[1]} تلقائيا عند اكتمالها.`},{pattern:/^Order status is (.+)\. This order can no longer be paid from this page\.$/i,translate:e=>`حالة الطلب هي ${qt(e[1])}. لم يعد يمكن دفع هذا الطلب من هذه الصفحة.`},{pattern:/^Return (.+)$/i,translate:e=>`مرتجع ${e[1]}`},{pattern:/^(\d+)% discount$/i,translate:e=>`خصم ${e[1]}%`},{pattern:/^(\d+)\/200 characters$/i,translate:e=>`${e[1]}/200 حرفا`},{pattern:/^(\d+) UAE providers$/i,translate:e=>`${e[1]} مزود في الإمارات`},{pattern:/^(\d+) print areas?$/i,translate:e=>`${e[1]} منطقة طباعة`},{pattern:/^Provider: (.+)$/i,translate:e=>`المزود: ${qt(e[1])}`},{pattern:/^Order: (.+)$/i,translate:e=>`الطلب: ${e[1]}`}
1267,{pattern:/^Retail: (.+)$/i,translate:e=>`البيع بالتجزئة: ${e[1]}`},{pattern:/^Margin: (.+)$/i,translate:e=>`الهامش: ${e[1]}`},{pattern:/^Last updated (.+)$/i,translate:e=>`آخر تحديث ${e[1]}`},{pattern:/^(.+) > (.+?)(?: > (.+))?$/i,translate:e=>[e[1],e[2],e[3]].filter(Boolean).map(t=>qt(t)).join(" > ")},{pattern:/^Store #(.+)$/i,translate:e=>`المتجر #${e[1]}`},{pattern:/^Qty: ?(.+)$/i,translate:e=>`الكمية: ${e[1]}`},{pattern:/^Size: ?(.+)$/i,translate:e=>`المقاس: ${e[1]}`},{pattern:/^Printing Technology: ?(.+)$/i,translate:e=>`تقنية الطباعة: ${e[1]}`},{pattern:/^Placed on (.+)$/i,translate:e=>`تم الطلب في ${e[1]}`},{pattern:/^Order (.+)$/i,translate:e=>`طلب ${e[1]}`},{pattern:/^Fulfilled by (.+)$/i,translate:e=>`ينفذه ${e[1]}`},{pattern:/^(.+) declined this order: (.+)$/i,translate:e=>`رفض ${e[1]} هذا الطلب: ${e[2]}`},{pattern:/^(.+) declined this order$/i,translate:e=>`رفض ${e[1]} هذا الطلب`},{pattern:/^Assigned to (.+) for fulfillment$/i,translate:e=>`تم تعيينه إلى ${e[1]} للتنفيذ`},{pattern:/^(.+) accepted this order$/i,translate:e=>`قبل ${e[1]} هذا الطلب`},{pattern:/^Shipped via (.+)$/i,translate:e=>`تم الشحن عبر ${e[1]}`},{pattern:/^Action by (admin|provider|customer|system): (.+)$/i,translate:e=>`${qt("Action by "+e[1].toLowerCase())}: ${e[2]}`},{pattern:/^Action by (.+)$/i,translate:e=>`إجراء بواسطة ${e[1]}`},{pattern:/^(\d+) providers$/i,translate:e=>`${e[1]} مزودين`},{pattern:/^(\d+) options$/i,translate:e=>`${e[1]} خيارات`},{pattern:/^Could not load order (.+)\.$/i,translate:e=>`تعذر تحميل الطلب ${e[1]}.`},{pattern:/^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec|January|February|March|April|June|July|August|September|October|November|December) (\d{1,2}), (\d{4})(?:, (\d{1,2}):(\d{2})(?::(\d{2}))? (AM|PM))?$/i,translate:sB},{pattern:/^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{1,2}), (\d{1,2}):(\d{2}) (AM|PM)$/i,translate:e=>`${e[2]} ${zg(e[1])}، ${e[3]}:${e[4]} ${e[5].toUpperCase()==="AM"?"ص":"م"}`},{pattern:/^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{1,2})$/i,translate:e=>`${e[2]} ${zg(e[1])}`},{pattern:/^(\d+) (minute|hour|day|week|month|year)s? ago$/i,translate:e=>`منذ ${e[1]} ${lB(e[2])}`}
1267,{pattern:/^(\d+)(m|h|d|w|mo|y) ago$/i,translate:e=>`منذ ${e[1]} ${uB(e[2])}`},{pattern:/^No results for "(.+)"$/i,translate:e=>`لا توجد نتائج لـ "${e[1]}"`},{pattern:/^No (published|draft|rejected|pending|approved) designs? yet$/i,translate:e=>`لا توجد ${hB(e[1])} بعد`},{pattern:/^(\d+) designs?$/i,translate:e=>`${e[1]} تصميم`},{pattern:/^(\d+) designs? selected$/i,translate:e=>`${e[1]} تصميم محدد`},{pattern:/^(\d+) order\(s\) approved successfully\.$/i,translate:e=>`تمت الموافقة على ${e[1]} طلب بنجاح.`},{pattern:/^(Selected|\d+) order\(s\) rejected\.$/i,translate:e=>`${e[1]==="Selected"?"تم رفض الطلبات المحددة":"تم رفض "+e[1]+" طلب"}.`},{pattern:/^(\d+) failed\.$/i,translate:e=>`فشل ${e[1]}.`},{pattern:/^Successfully duplicated (\d+) designs?(?:\. (\d+) failed\.)?$/i,translate:e=>{const t=`تم تكرار ${e[1]} تصميم بنجاح`;return e[2]?`${t}. فشل ${e[2]}.`:`${t}.`}},{pattern:/^Successfully deleted (\d+) designs?(?:\. (\d+) failed\.)?$/i,translate:e=>{const t=`تم حذف ${e[1]} تصميم بنجاح`;return e[2]?`${t}. فشل ${e[2]}.`:`${t}.`}},{pattern:/^"(.+)" has been created successfully\.$/i,translate:e=>`تم إنشاء "${qt(e[1])}" بنجاح.`},{pattern:/^"(.+)" has been saved\.$/i,translate:e=>`تم حفظ "${qt(e[1])}".`},{pattern:/^"(.+)" has been unpublished successfully\.$/i,translate:e=>`تم إلغاء نشر "${qt(e[1])}" بنجاح.`},{pattern:/^"(.+)" has been deleted successfully\.$/i,translate:e=>`تم حذف "${qt(e[1])}" بنجاح.`},{pattern:/^"(.+)" has been created\. You can now customize and place a new order\.$/i,translate:e=>`تم إنشاء "${qt(e[1])}". يمكنك الآن تخصيصه وتقديم طلب جديد.`},{pattern:/^Retrying (\d+) failed stores?\.$/i,translate:e=>`جار إعادة محاولة ${e[1]} متجر فشل.`},{pattern:/^(\d+) variant\(s\) connected$/i,translate:e=>`${e[1]} متغير مرتبط`},{pattern:/^Removed (.+) variant$/i,translate:e=>`تمت إزالة متغير ${qt(e[1])}`}];function rB(e,t={}){const n=pd(e);if(!n||!/[A-Za-z]/.test(n))return null;if(t.mode==="exact")return Ug[n]??null;const a=ni[n];if(a)return a;const o=QO(n);if(o)return o;if(oB(n))return null;for(const{pattern:l,translate:c}of nB){const f=n.match(l);if(f)return c(f)}return null}function lv(e,t){return t!=="ar"?e:rB(e)??e}function e7(e,t){if(!e||t!=="ar")return e;const n=pd(e);for(const{pattern:a,translate:o}of tB){const l=n.match(a);if(l)return o(l)}return e}function aB(e,t){const n=e.trim().toLowerCase().replace(/[\s_-]+/g,""),a=BV[n];return a?t(a):e}function t7(e,t){const n=qV[hd(e)];return n?t(n):e}function n7(e,t){const n=GO[hd(e)];return n?t(n):e}function r7(e,t){return t!=="ar"?e:aB(e,n=>lv(n,t))}function a7(e,t){return t!=="ar"?e:uv(e,HV,n=>lv(n,t))}function i7(e,t){return uv(e,GV,t)}function o7(e,t){return uv(e,QV,t)}function s7(e,t){let n=!1;const a=e.split(",").map(o=>{const l=KV.exec(o.trim()),c=l?dd(YV,hd(l[2])):void 0;if(!l||!c)return null;const f=t(c);return n||(n=f!==c),`${l[1]}% ${f}`});return!n||a.includes(null)?e:a.join(WV)}function l7(e,t){return t!=="ar"?e:dd(ni,pd(e))??e}function u7(e,t){return t!=="ar"?e:e.split(/(<[^>]*>)/).map(n=>{const a=n.trim();if(!a||n.startsWith("<"))return n;const o=dd(ni,pd(a));return o?n.replace(a,()=>iB(o)):n}).join("")}function dd(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function hd(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function uv(e,t,n){const a=dd(t,hd(e));if(!a)return e;const o=n(a);return o===a?e:o}function iB(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function pd(e){return e.replace(/\s+/g," ").trim()}function oB(e){const n=e.replace(JV,"").match(eB)??[];return n.length===0?!0:n.every(a=>ZV.has(a.toUpperCase()))}function qt(e){return ni[e]??QO(e)??e}function QO(e){let t=e;for(const n of XV){const a=ni[n];a&&(t=t.replaceAll(n,a))}return t=t.replace(/\(نسخ\)/g,`(${ni.Copy??"Copy"})`).replace(/\bV(\d+)\b/g,"الإصدار $1"),t===e?null:t}function sB(e){const t=zg(e[1]),n=e[2],a=e[3],o=e[4],l=e[5],c=e[6],f=e[7];if(!o||!l||!f)return`${n} ${t} ${a}`;const h=c?`${o}:${l}:${c}`:`${o}:${l}`,d=f.toUpperCase()==="AM"?"ص":"م";return`${n} ${t} ${a}، ${h} ${d}`}function zg(e){return{jan:"يناير",january:"يناير",feb:"فبراير",february:"فبراير",mar:"مارس",march:"مارس",apr:"أبريل",april:"أبريل",may:"مايو",jun:"يونيو",june:"يونيو",jul:"يوليو",july:"يوليو",aug:"أغسطس",august:"أغسطس",sep:"سبتمبر",september:"سبتمبر",oct:"أكتوبر",october:"أكتوبر",nov:"نوفمبر",november:"نوفمبر",dec:"ديسمبر",december:"ديسمبر"}[e.toLowerCase()]??e}function lB(e){return{minute:"دقيقة",hour:"ساعة",day:"يوم",week:"أسبوع",month:"شهر",year:"سنة"}[e.toLowerCase()]??e}function uB(e){return{m:"دقيقة",h:"ساعة",d:"يوم",w:"أسبوع",mo:"شهر",y:"سنة"}[e.toLowerCase()]??e}function cB(e){return{"colors available for this product":"الألوان المتاحة لهذا المنتج","sizes available with stock information":"المقاسات المتاحة مع معلومات المخزون","variant combinations with pricing":"تركيبات المتغيرات مع الأسعار"}[e.toLowerCase()]??e}function fB(e){return{color:"الألوان المُعدّة",size:"المقاسات المُعدّة","print area":"مناطق الطباعة المُعدّة",variant:"المتغيرات المُعدّة"}[e.toLowerCase()]??e}function dB(e){return{"success rate":"نسبة النجاح","return rate":"نسبة الإرجاع",rate:"النسبة"}[e.toLowerCase()]??e}function Gw(e){return e===1?"طلب واحد معلق":`${e} طلبات معلقة`}function hB(e){return{published:"تصاميم منشورة",draft:"مسودات تصاميم",rejected:"تصاميم مرفوضة",pending:"تصاميم قيد المراجعة",approved:"تصاميم معتمدة"}[e.toLowerCase()]??e}function pB(e){return{open:"مفتوحة",pending:"معلقة",resolved:"تم حلها",closed:"مغلقة"}[e.toLowerCase()]??qt(e)??e}function YO(e){return e.toLowerCase()==="shipped"?"شحن":"تسليم"}function KO(e){return e.toLowerCase()==="in transit"?"قيد الشحن":"في طريقه للتسليم"}function WO(e){return e.toLowerCase()==="failed"?"فشل الدفع":"تم رفض الدفع"}function Dm(e,t){return e.toUpperCase()==="AED"?`${t} درهم`:`${e.toUpperCase()} ${t}`}function km(e){return{email:"البريد الإلكتروني",facebook:"Facebook",google:"Google"}[e.toLowerCase()]??qt(e)}const Te=e=>typeof e=="string",bl=()=>{let e,t;const n=new Promise((a,o)=>{e=a,t=o});return n.resolve=e,n.reject=t,n}
vendor: 7,067 bytes, line 1267
1267,Qw=e=>e==null?"":String(e),mB=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},gB=/###/g,Yw=e=>e&&e.includes("###")?e.replace(gB,"."):e,Kw=e=>!e||Te(e),Il=(e,t,n)=>{const a=Te(t)?t.split("."):t;let o=0;for(;o<a.length-1;){if(Kw(e))return{};const l=Yw(a[o]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++o}return Kw(e)?{}:{obj:e,k:Yw(a[o])}},Ww=(e,t,n)=>{const{obj:a,k:o}=Il(e,t,Object);if(a!==void 0||t.length===1){a[o]=n;return}let l=t[t.length-1],c=t.slice(0,t.length-1),f=Il(e,c,Object);for(;f.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),f=Il(e,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=n},yB=(e,t,n,a)=>{const{obj:o,k:l}=Il(e,t,Object);o[l]=o[l]||[],o[l].push(n)},Af=(e,t)=>{const{obj:n,k:a}=Il(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},vB=(e,t,n)=>{const a=Af(e,n);return a!==void 0?a:Af(t,n)},ZO=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,a)?Te(e[a])||e[a]instanceof String||Te(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):ZO(e[a],t[a],n):e[a]=t[a]);return e},Xr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),bB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},SB=e=>Te(e)?e.replace(/[&<>"'\/]/g,t=>bB[t]):e;class xB{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const EB=[" ",",","?","!",";"],wB=new xB(20),_B=(e,t,n)=>{t=t||"",n=n||"";const a=EB.filter(c=>!t.includes(c)&&!n.includes(c));if(a.length===0)return!0;const o=wB.getRegExp(`(${a.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!o.test(e);if(!l){const c=e.indexOf(n);c>0&&!o.test(e.substring(0,c))&&(l=!0)}return l},Fg=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let o=e;for(let l=0;l<a.length;){if(!o||typeof o!="object")return;let c,f="";for(let h=l;h<a.length;++h)if(h!==l&&(f+=n),f+=a[h],c=o[f],c!==void 0){if(["string","number","boolean"].includes(typeof c)&&h<a.length-1)continue;l+=h-l+1;break}o=c}return o},Zl=e=>e==null?void 0:e.replace(/_/g,"-"),TB={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class Nf{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||TB,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,o){return o&&!this.debug?null:(t=t.map(l=>Te(l)?l.replace(/[\r\n\x00-\x1F\x7F]/g," "):l),Te(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Nf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Nf(this.logger,t)}}var _r=new Nf;class md{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const o=this.observers[a].get(n)||0;this.observers[a].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const a=(...o)=>{n(...o),this.off(t,a)};return this.on(t,a),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,l])=>{for(let c=0;c<l;c++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,l])=>{for(let c=0;c<l;c++)o(t,...n)})}}class Zw extends md{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,a,o={}){var d,g;const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;t.includes(".")?f=t.split("."):(f=[t,n],a&&(Array.isArray(a)?f.push(...a):Te(a)&&l?f.push(...a.split(l)):f.push(a)));const h=Af(this.data,f);return!h&&!n&&!a&&t.includes(".")&&(t=f[0],n=f[1],a=f.slice(2).join(".")),h||!c||!Te(a)?h:Fg((g=(d=this.data)==null?void 0:d[t])==null?void 0:g[n],a,l)}addResource(t,n,a,o,l={silent:!1}){const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[t,n];a&&(f=f.concat(c?a.split(c):a)),t.includes(".")&&(f=t.split("."),o=n,n=f[1]),this.addNamespaces(n),Ww(this.data,f,o),l.silent||this.emit("added",t,n,a,o)}addResources(t,n,a,o={silent:!1}){for(const l in a)(Te(a[l])||Array.isArray(a[l]))&&this.addResource(t,n,l,a[l],{silent:!0});o.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,o,l,c={silent:!1,skipCopy:!1}){let f=[t,n];t.includes(".")&&(f=t.split("."),o=a,a=n,n=f[1]),this.addNamespaces(n);let h=Af(this.data,f)||{};c.skipCopy||(a=JSON.parse(JSON.stringify(a))),o?ZO(h,a,l):h={...h,...a},Ww(this.data,f,h),c.silent||this.emit("added",t,n,a)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var XO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,o){return e.forEach(l=>{var c;t=((c=this.processors[l])==null?void 0:c.process(t,n,a,o))??t}),t}};const JO=Symbol("i18next/PATH_KEY");function CB(){const e=[],t=Object.create(null);let n;return t.get=(a,o)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),o===JO?e:(e.push(o),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function ts(e,t){const{[JO]:n}=e(CB()),a=(t==null?void 0:t.keySeparator)??".",o=(t==null?void 0:t.nsSeparator)??":",l=(t==null?void 0:t.enableSelector)==="strict";if(n.length>1&&o){const c=t==null?void 0:t.ns,f=l?Array.isArray(c)?c:c?[c]:null:Array.isArray(c)?c:null;if(f&&(l?f:f.length>1?f.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(a)}`}return n.join(a)}const Mm=e=>!Te(e)&&typeof e!="boolean"&&typeof e!="number";class Df extends md{constructor(t,n={}){super(),mB(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1267i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_r.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const o=this.resolve(t,a);if((o==null?void 0:o.res)===void 0)return!1;const l=Mm(o.res);return!(a.returnObjects===!1&&l)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const c=a&&t.includes(a),f=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!_B(t,a,o);if(c&&!f){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:Te(l)?[l]:l};const d=t.split(a);(a!==o||a===o&&this.options.ns.includes(d[0]))&&(l=d.shift()),t=d.join(o)}return{key:t,namespaces:Te(l)?[l]:l}}translate(t,n,a){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ts(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(re=>typeof re=="function"?ts(re,{...this.options,...o}):String(re));const l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:f,namespaces:h}=this.extractFromKey(t[t.length-1],o),d=h[h.length-1];let g=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const v=o.lng||this.language,S=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return S?l?{res:`${d}${g}${f}`,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${g}${f}`:l?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:f;const b=this.resolve(t,o);let w=b==null?void 0:b.res;const _=(b==null?void 0:b.usedKey)||f,T=(b==null?void 0:b.exactUsedKey)||f,C=["[object Number]","[object Function]","[object RegExp]"],O=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,N=o.count!==void 0&&!Te(o.count),M=Df.hasDefaultValue(o),P=N?this.pluralResolver.getSuffix(v,o.count,o):"",U=o.ordinal&&N?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",G=N&&!o.ordinal&&o.count===0,W=G&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${U}`]||o.defaultValue;let te=w;A&&!w&&M&&(te=W);const se=Mm(te),me=Object.prototype.toString.apply(te);if(A&&te&&se&&!C.includes(me)&&!(Te(O)&&Array.isArray(te))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,te,{...o,ns:h}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(b.res=re,b.usedParams=this.getUsedParamsDetails(o),b):re}if(c){const re=Array.isArray(te),ce=re?[]:{},oe=re?T:_;for(const I in te)if(Object.prototype.hasOwnProperty.call(te,I)){const V=`${oe}${c}${I}`;M&&!w?ce[I]=this.translate(V,{...o,defaultValue:Mm(W)?W[I]:void 0,joinArrays:!1,ns:h}):ce[I]=this.translate(V,{...o,joinArrays:!1,ns:h}),ce[I]===V&&(ce[I]=te[I])}w=ce}}else if(A&&Te(O)&&Array.isArray(w))w=w.join(O),w&&(w=this.extendTranslation(w,t,o,a));else{let re=!1,ce=!1;!this.isValidLookup(w)&&M&&(re=!0,w=W),this.isValidLookup(w)||(ce=!0,w=f);const I=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ce?void 0:w,V=M&&W!==w&&this.options.updateMissing;if(ce||re||V){if(this.logger.log(V?"updateKey":"missingKey",v,d,N&&!V?`${f}${this.pluralResolver.getSuffix(v,o.count,o)}`:f,V?W:w),c){const D=this.resolve(f,{...o,keySeparator:!1});D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let D=0;D<$.length;D++)Y.push($[D]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(o.lng||this.language):Y.push(o.lng||this.language);const le=(D,F,Z)=>{var ge;const ae=M&&Z!==w?Z:I;this.options.missingKeyHandler?this.options.missingKeyHandler(D,d,F,ae,V,o):(ge=this.backendConnector)!=null&&ge.saveMissing&&this.backendConnector.saveMissing(D,d,F,ae,V,o),this.emit
vendor: 6,805 bytes, line 1267
1267("missingKey",D,d,F,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?Y.forEach(D=>{const F=this.pluralResolver.getSuffixes(D,o);G&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!F.includes(`${this.options.pluralSeparator}zero`)&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(Z=>{le([D],f+Z,o[`defaultValue${Z}`]||W)})}):le(Y,f,W))}w=this.extendTranslation(w,t,o,b,a),ce&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${d}${g}${f}`),(ce||re)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${g}${f}`:f,re?w:void 0,o))}return l?(b.res=w,b.usedParams=this.getUsedParamsDetails(o),b):w}extendTranslation(t,n,a,o,l){var h,d;if((h=this.i18nFormat)!=null&&h.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const g=Te(t)&&(((d=a==null?void 0:a.interpolation)==null?void 0:d.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(g){const b=t.match(this.interpolator.nestingRegexp);v=b&&b.length}let S=a.replace&&!Te(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),t=this.interpolator.interpolate(t,S,a.lng||this.language||o.usedLng,a),g){const b=t.match(this.interpolator.nestingRegexp),w=b&&b.length;v<w&&(a.nest=!1)}!a.lng&&o&&o.res&&(a.lng=this.language||o.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>(l==null?void 0:l[0])===b[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):this.translate(...b,n),a)),a.interpolation&&this.interpolator.reset()}const c=a.postProcess||this.options.postProcess,f=Te(c)?[c]:c;return t!=null&&(f!=null&&f.length)&&a.applyPostProcessor!==!1&&(t=XO.handle(f,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,o,l,c,f;return Te(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(h=>typeof h=="function"?ts(h,{...this.options,...n}):h)),t.forEach(h=>{if(this.isValidLookup(a))return;const d=this.extractFromKey(h,n),g=d.key;o=g;let v=d.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const S=n.count!==void 0&&!Te(n.count),b=S&&!n.ordinal&&n.count===0,w=n.context!==void 0&&(Te(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);v.forEach(T=>{var C,O;this.isValidLookup(a)||(f=T,!this.checkedLoadedFor[`${_[0]}-${T}`]&&((C=this.utils)!=null&&C.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(f))&&(this.checkedLoadedFor[`${_[0]}-${T}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(A=>{var P;if(this.isValidLookup(a))return;c=A;const N=[g];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(N,g,A,T,n);else{let U;S&&(U=this.pluralResolver.getSuffix(A,n.count,n));const G=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(n.ordinal&&U.startsWith(W)&&N.push(g+U.replace(W,this.options.pluralSeparator)),N.push(g+U),b&&N.push(g+G)),w){const te=`${g}${this.options.contextSeparator||"_"}${n.context}`;N.push(te),S&&(n.ordinal&&U.startsWith(W)&&N.push(te+U.replace(W,this.options.pluralSeparator)),N.push(te+U),b&&N.push(te+G))}}let M;for(;M=N.pop();)this.isValidLookup(a)||(l=M,a=this.getResource(A,T,M,n))}))})}),{res:a,usedKey:o,exactUsedKey:l,usedLng:c,usedNS:f}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,o={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,a,o):this.resourceStore.getResource(t,n,a,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Te(t.replace);let o=a?t.replace:t;if(a&&typeof t.count<"u"&&(o={...o,count:t.count}),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!a){o={...o};for(const l of n)delete o[l]}return o}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a.startsWith(n)&&t[a]!==void 0)return!0;return!1}}class Xw{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_r.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(t){if(t=Zl(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Zl(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Te(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(a=>{if(n)return;const o=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const o=this.getScriptPartFromCode(a);if(this.isSupportedCode(o))return n=o;const l=this.getLanguagePartFromCode(a);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(c=>c===l?!0:!c.includes("-")&&!l.includes("-")?!1:!!(c.includes("-")&&!l.includes("-")&&c.slice(0,c.indexOf("-"))===l||c.startsWith(l)&&l.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Te(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];
1267return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.options.fallbackLng,o=Array.isArray(a)?a.join("|"):a;o!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=o);const l=n===void 0||n===!1||Te(n),c=n===void 0&&typeof this.options.fallbackLng=="function",f=Te(t)&&l&&!c;let h=null;if(f){let S;n===void 0?S="undefined":n===!1?S="boolean:false":S=`string:${n}`,h=`${t.length}:${t}|${S}`}if(h!==null){const S=this.resolveHierarchyCache[h];if(S!==void 0)return S.slice()}const d=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),g=[],v=S=>{S&&(this.isSupportedCode(S)?g.push(S):this.logger.warn(`rejecting language code not found in supportedLngs: ${S}`))};return Te(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&v(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&v(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&v(this.getLanguagePartFromCode(t))):Te(t)&&v(this.formatLanguageCode(t)),d.forEach(S=>{g.includes(S)||v(this.formatLanguageCode(S))}),h!==null?(this.resolveHierarchyCache[h]=g,g.slice()):g}}const Jw={zero:0,one:1,two:2,few:3,many:4,other:5},e1={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class RB{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=_r.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=Zl(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:a,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let c;try{c=new Intl.PluralRules(a,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),e1;if(!t.match(/-|_/))return e1;const h=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(h,n)}return this.pluralRulesCache[l]=c,c}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((o,l)=>Jw[o]-Jw[l]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,a={}){const o=this.getRule(t,a);return o?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const t1=(e,t,n,a=".",o=!0)=>{let l=vB(e,t,n);return!l&&o&&Te(n)&&(l=Fg(e,n,a),l===void 0&&(l=Fg(t,n,a))),l},OB=e=>e.replace(/\$/g,"$$$$");class n1{constructor(t={}){var n;this.logger=_r.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:o,prefix:l,prefixEscaped:c,suffix:f,suffixEscaped:h,formatSeparator:d,unescapeSuffix:g,unescapePrefix:v,nestingPrefix:S,nestingPrefixEscaped:b,nestingSuffix:w,nestingSuffixEscaped:_,nestingOptionsSeparator:T,maxReplaces:C,alwaysFormat:O}=t.interpolation;this.escape=n!==void 0?n:SB,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?Xr(l):c||"{{",this.suffix=f?Xr(f):h||"}}",this.formatSeparator=d||",",this.unescapePrefix=g?"":v?Xr(v):"-",this.unescapeSuffix=this.unescapePrefix?"":g?Xr(g):"",this.nestingPrefix=S?Xr(S):b||Xr("$t("),this.nestingSuffix=w?Xr(w):_||Xr(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=C||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,a,o){var b;let l,c,f;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=w=>
vendor: 22,441 bytes, line 1267
1267{if(!w.includes(this.formatSeparator)){const O=t1(n,h,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,a,{...o,...n,interpolationkey:w}):O}const _=w.split(this.formatSeparator),T=_.shift().trim(),C=_.join(this.formatSeparator).trim();return this.format(t1(n,h,T,this.options.keySeparator,this.options.ignoreJSONStructure),C,a,{...o,...n,interpolationkey:T})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const g=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((b=o==null?void 0:o.interpolation)==null?void 0:b.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>w},{regex:this.regexp,safeValue:w=>this.escapeValue?this.escape(w):w}].forEach(w=>{for(f=0;l=w.regex.exec(t);){const _=l[1].trim();if(c=d(_),c===void 0)if(typeof g=="function"){const C=g(t,l,o);c=Te(C)?C:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))c="";else if(v){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${_} for interpolating ${t}`),c="";else!Te(c)&&!this.useRawValueToEscape&&(c=Qw(c));const T=w.safeValue(c);if(t=t.replace(l[0],OB(T)),v?(w.regex.lastIndex+=T.length,w.regex.lastIndex-=l[0].length):w.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),t}nest(t,n,a={}){let o,l,c;const f=(h,d)=>{const g=this.nestingOptionsSeparator;if(!h.includes(g))return h;const v=h.split(new RegExp(`${Xr(g)}[ ]*{`));let S=`{${v[1]}`;h=v[0],S=this.interpolate(S,c);const b=S.match(/'/g),w=S.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!w||((w==null?void 0:w.length)??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{c=JSON.parse(S),d&&(c={...d,...c})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,_),`${h}${g}${S}`}return c.defaultValue&&c.defaultValue.includes(this.prefix)&&delete c.defaultValue,h};for(;o=this.nestingRegexp.exec(t);){let h=[];c={...a},c=c.replace&&!Te(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const d=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(d!==-1&&(h=o[1].slice(d).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),l=n(f.call(this,o[1].trim(),c),c),l&&o[0]===t&&!Te(l))return l;Te(l)||(l=Qw(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),l=""),h.length&&(l=h.reduce((g,v)=>this.format(g,v,a.lng,{...a,interpolationkey:o[1].trim()}),l.trim())),t=t.replace(o[0],l),this.regexp.lastIndex=0}return t}}const AB=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const a=e.split("(");t=a[0].toLowerCase().trim();const o=a[1].slice(0,-1);t==="currency"&&!o.includes(":")?n.currency||(n.currency=o.trim()):t==="relativetime"&&!o.includes(":")?n.range||(n.range=o.trim()):o.split(";").forEach(c=>{if(c){const[f,...h]=c.split(":"),d=h.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();n[g]||(n[g]=d),d==="false"&&(n[g]=!1),d==="true"&&(n[g]=!0),isNaN(d)||(n[g]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},r1=e=>{const t={};return(n,a,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});const c=a+JSON.stringify(l);let f=t[c];return f||(f=e(Zl(a),o),t[c]=f),f(n)}},NB=e=>(t,n,a)=>e(Zl(n),a)(t);class DB{constructor(t={}){this.logger=_r.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?r1:NB;this.formats={number:a((o,l)=>{const c=new Intl.NumberFormat(o,{...l});return f=>c.format(f)}),currency:a((o,l)=>{const c=new Intl.NumberFormat(o,{...l,style:"currency"});return f=>c.format(f)}),datetime:a((o,l)=>{const c=new Intl.DateTimeFormat(o,{...l});return f=>c.format(f)}),relativetime:a((o,l)=>{const c=new Intl.RelativeTimeFormat(o,{...l});return f=>c.format(f,l.range||"day")}),list:a((o,l)=>{const c=new Intl.ListFormat(o,{...l});return f=>c.format(f)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=r1(n)}format(t,n,a,o={}){if(!n||t==null)return t;const l=n.split(this.formatSeparator),c=[];for(let h=0;h<l.length;h++){let d=l[h];for(;d.indexOf("(")>-1&&!d.includes(")")&&h+1<l.length;)d=`${d}${this.formatSeparator}${l[++h]}`;c.push(d)}return c.reduce((h,d)=>{var S;const{formatName:g,formatOptions:v}=AB(d);if(this.formats[g]){let b=h;try{const w=((S=o==null?void 0:o.formatParams)==null?void 0:S[o.interpolationkey])||{},_=w.locale||w.lng||o.locale||o.lng||a;b=this.formats[g](h,_,{...v,...o,...w})}catch(w){this.logger.warn(w)}return b}else this.logger.warn(`there was no format function for ${g}`);return h},t)}}const kB=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class MB extends md{constructor(t,n,a,o={}){var l,c;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=o,this.logger=_r.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(c=(l=this.backend)==null?void 0:l.init)==null||c.call(l,a,o.backend,o)}queueLoad(t,n,a,o){const l={},c={},f={},h={};return t.forEach(d=>{let g=!0;n.forEach(v=>{const S=`${d}|${v}`;!a.reload&&this.store.hasResourceBundle(d,v)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?c[S]===void 0&&(c[S]=!0):(this.state[S]=1,g=!1,c[S]===void 0&&(c[S]=!0),l[S]===void 0&&(l[S]=!0),h[v]===void 0&&(h[v]=!0)))}),g||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}loaded(t,n,a){const o=t.split("|"),l=o[0],c=o[1];n&&this.emit("failedLoading",l,c,n),!n&&a&&this.store.addResourceBundle(l,c,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const f={};this.queue.forEach(h=>{yB(h.loaded,[l],c),kB(h,t),n&&h.errors.push(n),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(d=>{f[d]||(f[d]={});const g=h.loaded[d];g.length&&g.forEach(v=>{f[d][v]===void 0&&(f[d][v]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(h=>!h.done)}read(t,n,a,o=0,l=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:o,wait:l,callback:c});return}this.readingCalls++;const f=(d,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(d&&g&&o<this.maxRetries){setTimeout(()=>{this.read(t,n,a,o+1,l*2,c)},l);return}c(d,g)},h=this.backend[a].bind(this.backend);if(h.length===2){try{const d=h(t,n);d&&typeof d.then=="function"?d.then(g=>f(null,g)).catch(f):f(null,d)}catch(d){f(d)}return}return h(t,n,f)}prepareLoading(t,n,a={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Te(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Te(n)&&(n=[n]);const l=this.queueLoad(t,n,a,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),o=a[0],l=a[1];this.read(o,l,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${n}loading namespace ${l} for language ${o} failed`,c),!c&&f&&this.logger.log(`${n}loaded namespace ${l} for language ${o}`,f),this.loaded(t,c,f)})}saveMissing(t,n,a,o,l,c={},f=()=>{}){var h,d,g,v,S;if((d=(h=this.services)==null?void 0:h.utils)!=null&&d.hasLoadedNamespace&&!((v=(g=this.services)==null?void 0:g.utils)!=null&&v.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((S=this.backend)!=null&&S.create){const b={...c,isUpdate:l},w=this.backend.create.bind(this.backend);if(w.length<6)try{let _;w.length===5?_=w(t,n,a,o,b):_=w(t,n,a,o),_&&typeof _.then=="function"?_.then(T=>f(null,T)).catch(f):f(null,_)}catch(_){f(_)}else w(t,n,a,o,f,b)}!t||!t[0]||this.store.addResource(t[0],n,a,o)}}}const jm=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Te(e[1])&&(t.defaultValue=e[1]),Te(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),a1=e=>(Te(e.ns)&&(e.ns=[e.ns]),Te(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Te(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Hc=()=>{},jB=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Ll extends md{constructor(t={},n){if(super(),this.options=a1(t),this.services={},this.logger=_r,this.modules={external:[]},jB(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Te(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const a=jm();this.options={...a,...this.options,...a1(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?_r.init(o(this.modules.logger),this.options):_r.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=DB;const g=new Xw(this.options);this.store=new Zw(this.options.resources,this.options);const v=this.services;v.logger=_r,v.resourceStore=this.store,v.languageUtils=g,v.pluralResolver=new RB(g,{prepend:this.options.pluralSeparator}),d&&(v.formatter=o(d),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new n1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new MB(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Df(this.services,this.options),this.translator.on("*",(S,...b)=>{this.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Hc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...g)=>this.store[d](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...g)=>(this.store[d](...g),this)});const f=bl(),h=()=>{const d=(g,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(v),n(g,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),f}loadResources(t,n=Hc){var l,c;let a=n;const o=Te(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const f=[],h=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(v=>{v!=="cimode"&&(f.includes(v)||f.push(v))})};o?h(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>h(g)),(c=(l=this.options.preload)==null?void 0:l.forEach)==null||c.call(l,d=>h(d)),this.services.backendConnector.load(f,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(d)})}else a(null)}reloadResources(t,n,a){const o=bl();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Hc),this.services.backendConnector.reload(t,n,l=>{o.resolve(),a(l)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&XO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const a=this.languages[n];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=bl();this.emit("languageChanging",t);const o=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,h)=>{h?this.isLanguageChangingTo===t&&(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,a.resolve((...d)=>this.t(...d)),n&&n(f,(...d)=>this.t(...d))},c=f=>{var g,v;!t&&!f&&this.services.languageDetector&&(f=[]);const h=Te(f)?f:f&&f[0],d=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(Te(f)?[f]:f);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(v=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||v.call(g,d)),this.loadResources(d,S=>{l(S,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,a,o){const l=o==null?void 0:o.scopeNs,c=(f,h,...d)=>{let g;typeof h!="object"?g=this.options.overloadTranslationOptionHandler([f,h].concat(d)):g={...h},g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs;const v=g.ns!==void 0&&g.ns!==null;g.ns=g.ns||c.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||a||c.keyPrefix);const S={...this.options,...g};Array.isArray(l)&&!v&&(S.ns=l),typeof g.keyPrefix=="function"&&(g.keyPrefix=ts(g.keyPrefix,S));const b=this.options.keySeparator||".";let w;return g.keyPrefix&&Array.isArray(f)?w=f.map(_=>(typeof _=="function"&&(_=ts(_,S)),`${g.keyPrefix}${b}${_}`)):(typeof f=="function"&&(f=ts(f,S)),w=g.keyPrefix?`${g.keyPrefix}${b}${f}`:f),this.t(w,g)};return Te(t)?c.lng=t:c.lngs=t,c.ns=n,c.keyPrefix=a,c}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const c=(f,h)=>{const d=this.services.backendConnector.state[`${f}|${h}`];return d===-1||d===0||d===2};if(n.precheck){const f=n.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,t)&&(!o||c(l,t)))}loadNamespaces(t,n){const a=bl();return this.options.ns?(Te(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{a.resolve(),n&&n(o)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=bl();Te(t)&&(t=[t]);const o=this.options.preload||[],l=t.filter(c=>!o.includes(c)&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=o.concat(l),this.loadResources(c=>{a.resolve(),n&&n(c)}),a):(n&&n(),Promise.resolve())}dir(t){var o,l;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const c=new Intl.Locale(t);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((l=this.services)==null?void 0:l.languageUtils)||new Xw(jm());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(a.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new Ll(t,n);return a.createInstance=Ll.createInstance,a}cloneInstance(t={},n=Hc){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},l=new Ll(o);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},a){const f=Object.keys(this.store.data).reduce((h,d)=>(h[d]={...this.store.data[d]},h[d]=Object.keys(h[d]).reduce((g,v)=>(g[v]={...h[d][v]},g),h[d]),h),{});l.store=new Zw(f,o),l.services.resourceStore=l.store}if(t.interpolation){const h={...jm().interpolation,...this.options.interpolation,...t.interpolation},d={...o,interpolation:h};l.services.interpolator=new n1(d)}return l.translator=new Df(l.services,o),l.translator.on("*",(f,...h)=>{l.emit(f,...h)}),l.init(o,n),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Dt=Ll.createInstance();Dt.createInstance;Dt.dir;Dt.init;Dt.loadResources;Dt.reloadResources;Dt.use;Dt.changeLanguage;Dt.getFixedT;Dt.t;Dt.exists;Dt.setDefaultNamespace;Dt.hasLoadedNamespace;Dt.loadNamespaces;Dt.loadLanguages;const{slice:IB,forEach:LB}=[];function PB(e){return LB.call(IB.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const i1=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,UB=(e,t,n)=>{const a=n||{};a.path=a.path||"/";const o=encodeURIComponent(t);let l=`${e}=${o}`;if(a.maxAge>0){const c=a.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");l+=`; Max-Age=${Math.floor(c)}`}if(a.domain){if(!i1.test(a.domain))throw new TypeError("option domain is invalid");l+=`; Domain=${a.domain}`}if(a.path){if(!i1.test(a.path))throw new TypeError("option path is invalid");l+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invali
1267d");l+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l},o1={create(e,t,n,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),a&&(o.domain=a),document.cookie=UB(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let a=0;a<n.length;a++){let o=n[a];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e){this.create(e,"",-1)}};var zB={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return o1.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:a,cookieDomain:o,cookieOptions:l}=t;n&&typeof document<"u"&&o1.create(n,e,a,o,l)}},FB={name:"querystring",lookup(e){var a;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((a=window.location.hash)==null?void 0:a.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const c=o.substring(1).split("&");for(let f=0;f<c.length;f++){const h=c[f].indexOf("=");h>0&&c[f].substring(0,h)===t&&(n=c[f].substring(h+1))}}return n}};let Sl=null;const s1=()=>{if(Sl!==null)return Sl;try{Sl=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sl=!1}return Sl};var $B={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&s1())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&s1()&&window.localStorage.setItem(n,e)}};let xl=null;const l1=()=>{if(xl!==null)return xl;try{xl=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{xl=!1}return xl};var VB={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&l1())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&l1()&&window.sessionStorage.setItem(n,e)}},BB={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:a,language:o}=navigator;if(n)for(let l=0;l<n.length;l++)t.push(n[l]);a&&t.push(a),o&&t.push(o)}return t.length>0?t:void 0}},qB={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(n=a.getAttribute("lang")),n}},HB={name:"path",lookup(e){var o;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(o=n[typeof t=="number"?t:0])==null?void 0:o.replace("/",""):void 0}},GB={name:"subdomain",lookup(e){var o,l;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,a=typeof window<"u"&&((l=(o=window.location)==null?void 0:o.hostname)==null?void 0:l.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(a)return a[n]}};function QB(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class eA{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=PB(n,this.options||{},QB()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(zB),this.addDetector(FB),this.addDetector($B),this.addDetector(VB),this.addDetector(BB),this.addDetector(qB),this.addDetector(HB),this.addDetector(GB)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(a=>{if(this.detectors[a]){let o=this.detectors[a].lookup(this.options);
1267o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(a=>this.options.convertDetectedLanguage(a)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}}eA.type="languageDetector";const YB={select:"Select language",english:"English",arabic:"Arabic"},KB={back:"Back",clear:"Clear",contactSupport:"Contact Support",loading:"Loading...",search:"Search",views:"{{count}} views"},WB={accountLabel:"PrintaRex Account",preparingTitle:"Preparing your dashboard",preparingDescription:"We are loading your PrintaRex account details.",checkingAccessTitle:"Checking your access",checkingAccessDescription:"We are confirming your subscription before opening this page.",refreshingTitle:"Refreshing your session",refreshingDescription:"Your secure session needs a quick refresh before the dashboard opens.",expiredTitle:"Session expired",expiredDescription:"We are clearing the old session and taking you back to sign in.",signInAgain:"Sign in again"},ZB={dashboard:"Dashboard",browseProducts:"Browse Products",howToUse:"How to Use",pricing:"Pricing",searchProducts:"Search for products...",myDesigns:"My Designs",orders:"Orders",myReturns:"My Returns",settings:"Settings",signOut:"Sign Out",signIn:"Sign In",getStarted:"Get Started",startSellingFree:"Start Selling Free",openMenu:"Open menu",closeMenu:"Close menu",userMenu:"{{name}} account menu"},XB={creativeStudio:"Creative Studio",collapseSidebar:"Collapse Sidebar",expandSidebar:"Expand Sidebar",browseProducts:"Browse Products",help:"Help",searchPlaceholder:"Search products, orders, designs...",openSearch:"Open search",closeSearch:"Close search"},JB={overview:"Overview",createSell:"Create & Sell",commerce:"Commerce",support:"Support",dashboard:"Dashboard",myDesigns:"My Designs",notifications:"Notifications",messages:"Messages",productCatalog:"Product Catalog",browseProducts:"Browse Products",myProducts:"My Products",templates:"Templates",branding:"Branding",orders:"Orders",allOrders:"All Orders",personalOrders:"Personal Orders",returns:"Returns",hubInventory:"Hub Inventory",hubActiveUnits:"Active Units",hubUnitHistory:"Unit History",hubBilling:"Hub Billing",stores:"Stores",billing:"Billing",helpCenter:"Help Center",knowledgeBase:"Knowledge Base",myTickets:"My Tickets",createTicket:"Create Ticket"},e2={description:"Your all-in-one print-on-demand platform for custom product design and fulfillment. From idea to delivery, we've got you covered.",products:"Products",browseCatalog:"Browse Catalog",shopifyIntegration:"Shopify Integration",woocommerceIntegration:"WooCommerce Integration",amazonIntegration:"Amazon Integration",noonIntegration:"Noon Integration",company:"Company",aboutUs:"About Us",careers:"Careers",resources:"Resources",howToUse:"How to Use PrintaRex",helpCenter:"Help Center",bulkOrders:"Bulk order discounts",returns:"Returns",policies:"Policies",support:"Support",contactUs:"Contact Us",copyright:"© {{year}} PrintaRex. All rights reserved.",privacy:"Privacy Policy",terms:"Terms of Service",cookies:"Cookie Policy",faq:"FAQ"},t2={title:"Knowledge Base",subtitle:"Find answers to common questions and learn how to make the most of PrintaRex",searchPlaceholder:"Search articles, FAQs, guides...",browseByCategory:"Browse by Category",allCategories:"All Categories",featuredArticles:"Featured Articles",browseArticles:"Browse Articles",searchResults:"Search Results ({{count}})",selectCategory:"Select category",noArticles:"No articles found",tryDifferentKeywords:"Try different keywords or browse by category",noCategoryArticles:"No articles available in this category",clearSearch:"Clear Search",cantFind:"Can't find what you're looking for?",contactDescription:"Our support team is here to help. Create a support ticket and we'll get back to you as soon as possible.",backToKb:"Back to Knowledge Base",articleNotFound:"Article not found",relatedTopics:"Related Topics",helpfulQuestion:"Was this article helpful?",improveDocs:"Help us improve our documentation",yes:"Yes",no:"No",stillNeedHelp:"Still need help?",stillNeedDescription:"If this article didn't solve your issue, our support team is here to assist you.",browseMore:"Browse More Articles",lastUpdated:"This article was last updated on {{date}}"},n2={badge:"24/7 Support Available",titleStart:"How can we",titleHighlight:"help you",titleEnd:"today?",subtitle:"Search our knowledge base for instant answers, or browse categories to find exactly what you need.",searchPlaceholder:"Search articles, guides, tutorials...",popular:"Popular:",gettingStarted:"Getting Started",connectStore:"Connect Store",orderStatus:"Order Status",refunds:"Refunds",searchResultsFor:'Search Results for "{{query}}"',backToBrowse:"Back to Browse",noResults:'No results found for "{{query}}"',tryDifferentKeywords:"Try different keywords or browse categories below",browseByCategory:"Browse by Category",categorySubtitle:"Find answers organized by topic for quick navigation",knowledgeBase:"Knowledge Base",noCategories:"No categories available yet.",popularArticles:"Popular Articles",popularSubtitle:"The most helpful resources, as voted by our community",trendingNow:"Trending Now",noArticles:"No articles available yet.",stillCantFind:"Still can't find what you're looking for?",contactSubtitle:"Our friendly support team is standing by to help. Get personalized assistance for your specific questions.",averageResponse:"Average response:",responseTime:"2 hours",articleCount_one:"{{count}} article",articleCount_other:"{{count}} articles",explore:"Explore",minRead:"5 min read",articleNotFound:"Article not found.",thanks:"Thank y
1267ou for your feedback!",yesHelpful:"Yes, helpful",notHelpful:"Not helpful"},r2={share:"Share",shareAriaLabel:"Share your mockups",saveMockupsFirst:"Save your mockups first",selectAtLeastOneMockup:"Select at least one saved mockup.",savedMockupsRequired:"Saved mockups are required before you can share.",dialogTitle:"Share your mockups",dialogDescription:"Anyone with the link can view the mockups you selected. They cannot edit your design. Links expire in {{days}} days. Copy and WhatsApp reuse this tab's active link. If that tab session ends or its cached URL is unavailable, creating a replacement safely retires the older link.",dialogLatestChanges:"Viewers always see your latest saved mockups.",shareOnWhatsApp:"Share on WhatsApp",copyLink:"Copy link",linkCopied:"Link copied",copyFailed:"Could not copy the link. Select and copy it manually.",whatsAppFailed:"Could not open WhatsApp. Copy the link and send it manually.",createFailed:"Could not create the share link.",limitReached:"You have reached the share-link limit. Revoke an old link and try again.",oneTimeUrlLabel:"Your share link",oneTimeUrlHint:"This tab can reuse the link while its session remains open. Copy it somewhere safe before closing the tab.",activeLinks:"Active links",noActiveLinks:"No active share links yet.",channelLink:"Link",channelWhatsApp:"WhatsApp",createdOn:"created {{date}}",expiresOn:"expires {{date}}",requestCount:"{{count}} requests",revoke:"Revoke",revokeConfirm:"Revoke this link? Anyone who has it loses access.",revokeCancel:"Keep link",revoked:"Link revoked",revokeFailed:"Could not revoke the link.",sharedMockupSummary:"Selected mockups: {{count}}",colorsSummary:"Colors: {{colors}}",whatsAppMessage:"Here are the mockups for your design:",publicPageTitle:"Your design preview",publicColorLabel:"Color",publicUncoloredGroup:"Other views",publicOpenImage:"Open {{name}} larger",publicCloseImage:"Close image",publicGalleryThumbnails:"Mockup thumbnails",publicViewMockup:"View {{name}}",publicPreviousMockup:"Previous mockup",publicNextMockup:"Next mockup",publicZoomIn:"Zoom in",publicZoomOut:"Zoom out",publicResetZoom:"Reset zoom",publicZoomLevel:"Zoom level {{zoom}}",publicCloseHint:"close",publicNavigateHint:"navigate",publicDoubleClickHint:"double-click to zoom",publicMobileGalleryHint:"Swipe thumbnails to browse · double-click to zoom",publicUnavailableTitle:"This link is no longer available.",publicUnavailableBody:"Ask the person who sent it for a new link.",publicExplore:"Explore PrintaRex",publicPreparingTitle:"The mockups are still being prepared.",publicPreparingBody:"Check back in a minute.",documentTitle:"{{productName}} | Design preview | PrintaRex",documentTitleFallback:"Design preview | PrintaRex",marketingHeadline:"Made with PrintaRex",marketingBody:"Simple designs like this take minutes. Want something more creative? Create your own — free.",marketingCta:"Start Selling Free"},a2={language:YB,common:KB,authGate:WB,header:ZB,dashboardHeader:XB,sidebar:JB,footer:e2,kb:t2,dashboardHelp:n2,designShare:r2},i2={select:"اختر اللغة",english:"English",arabic:"العربية"},o2={back:"رجوع",clear:"مسح",contactSupport:"تواصل مع الدعم",loading:"جاري التحميل...",search:"بحث",views:"{{count}} مشاهدة"},s2={accountLabel:"حساب PrintaRex",preparingTitle:"جارٍ تجهيز لوحة التحكم",preparingDescription:"نحمّل تفاصيل حسابك في PrintaRex.",checkingAccessTitle:"جارٍ التحقق من صلاحية الوصول",checkingAccessDescription:"نتحقق من اشتراكك قبل فتح هذه الصفحة.",refreshingTitle:"جارٍ تحديث جلستك",refreshingDescription:"تحتاج جلستك الآمنة إلى تحديث سريع قبل فتح لوحة التحكم.",expiredTitle:"انتهت صلاحية الجلسة",expiredDescription:"نزيل الجلسة القديمة ونعيدك إلى تسجيل الدخول.",signInAgain:"تسجيل الدخول مرة أخرى"},l2={dashboard:"لوحة التحكم",browseProducts:"تصفح المنتجات",howToUse:"طريقة الاستخدام",pricing:"الأسعار",searchProducts:"ابحث عن المنتجات...",myDesigns:"تصميماتي",orders:"الطلبات",myReturns:"مرتجعاتي",settings:"الإعدادات",signOut:"تسجيل الخروج",signIn:"تسجيل الدخول",getStarted:"ابدأ الآن",startSellingFree:"ابدأ البيع مجانا",openMenu:"افتح القائمة",closeMenu:"أغلق القائمة",userMenu:"قائمة حساب {{name}}"},u2={creativeStudio:"استوديو الإبداع",collapseSidebar:"طي الشريط الجانبي",expandSidebar:"توسيع الشريط الجانبي",browseProducts:"تصفح المنتجات",help:"المساعدة",searchPlaceholder:"ابحث في المنتجات والطلبات والتصميمات...",openSearch:"فتح البحث",closeSearch:"إغلاق البحث"},c2={overview:"نظرة عامة",createSell:"أنشئ وبع",commerce:"التجارة",support:"الدعم",dashboard:"لوحة التحكم",myDesigns:"تصميماتي",notifications:"الإشعارات",messages:"الرسائل",productCatalog:"كتالوج المنتجات",browseProducts:"تصفح المنتجات",myProducts:"منتجاتي",templates:"القوالب",branding:"العلامة التجارية",orders:"الطلبات",allOrders:"كل الطلبات",personalOrders:"الطلبات الشخصية",returns:"المرتجعات",hubInventory:"مخزون المركز",hubActiveUnits:"الوحدات النشطة",hubUnitHistory:"سجل الوحدات",hubBilling:"فوترة المركز",stores:"المتاجر",billing:"الفواتير",helpCenter:"مركز المساعدة",knowledgeBase:"قاعدة المعرفة",myTickets:"تذاكري",createTicket:"إنشاء تذكرة"},f2={description:"منصة طباعة حسب الطلب متكاملة لتصميم المنتجات المخصصة وتنفيذها. من الفكرة إلى التسليم، نحن معك.",products:"المنتجات",browseCatalog:"تصفح الكتالوج",shopifyIntegration:"تكامل Shopify",woocommerceIntegration:"تكامل WooCommerce",amazonIntegration:"تكامل Amazon",noonIntegration:"تكامل Noon",company:"الشركة",aboutUs:"من نحن",careers:"الوظائف",resources:"الموارد",howToUse:"طريقة استخدام PrintaRex",helpCenter:"مركز المساعدة",bulkOrders:"خصومات الطلبات الكبيرة",returns:"المرتجعات",policies:"السياسات",
1267support:"الدعم",contactUs:"تواصل معنا",copyright:"© {{year}} PrintaRex. جميع الحقوق محفوظة.",privacy:"سياسة الخصوصية",terms:"شروط الخدمة",cookies:"سياسة ملفات الارتباط",faq:"الأسئلة الشائعة"},d2={title:"قاعدة المعرفة",subtitle:"اعثر على إجابات للأسئلة الشائعة وتعلم كيف تستفيد من PrintaRex",searchPlaceholder:"ابحث في المقالات والأسئلة والأدلة...",browseByCategory:"تصفح حسب الفئة",allCategories:"كل الفئات",featuredArticles:"المقالات المميزة",browseArticles:"تصفح المقالات",searchResults:"نتائج البحث ({{count}})",selectCategory:"اختر الفئة",noArticles:"لم يتم العثور على مقالات",tryDifferentKeywords:"جرب كلمات مختلفة أو تصفح حسب الفئة",noCategoryArticles:"لا توجد مقالات متاحة في هذه الفئة",clearSearch:"مسح البحث",cantFind:"لم تجد ما تبحث عنه؟",contactDescription:"فريق الدعم جاهز لمساعدتك. أنشئ تذكرة دعم وسنرد عليك في أقرب وقت ممكن.",backToKb:"العودة إلى قاعدة المعرفة",articleNotFound:"المقالة غير موجودة",relatedTopics:"مواضيع ذات صلة",helpfulQuestion:"هل كانت هذه المقالة مفيدة؟",improveDocs:"ساعدنا في تحسين التوثيق",yes:"نعم",no:"لا",stillNeedHelp:"هل لا تزال تحتاج إلى مساعدة؟",stillNeedDescription:"إذا لم تحل هذه المقالة مشكلتك، فريق الدعم هنا لمساعدتك.",browseMore:"تصفح المزيد من المقالات",lastUpdated:"تم تحديث هذه المقالة آخر مرة في {{date}}"},h2={badge:"دعم متاح على مدار الساعة",titleStart:"كيف يمكننا",titleHighlight:"مساعدتك",titleEnd:"اليوم؟",subtitle:"ابحث في قاعدة المعرفة للحصول على إجابات فورية، أو تصفح الفئات للعثور على ما تحتاجه بالضبط.",searchPlaceholder:"ابحث في المقالات والأدلة والدروس...",popular:"الأكثر شيوعا:",gettingStarted:"البدء",connectStore:"ربط المتجر",orderStatus:"حالة الطلب",refunds:"المرتجعات",searchResultsFor:'نتائج البحث عن "{{query}}"',backToBrowse:"العودة للتصفح",noResults:'لا توجد نتائج لـ "{{query}}"',tryDifferentKeywords:"جرب كلمات مختلفة أو تصفح الفئات أدناه",browseByCategory:"تصفح حسب الفئة",categorySubtitle:"اعثر على الإجابات منظمة حسب الموضوع للتنقل السريع",knowledgeBase:"قاعدة المعرفة",noCategories:"لا توجد فئات متاحة حاليا.",popularArticles:"المقالات الشائعة",popularSubtitle:"أكثر المصادر فائدة حسب تصويت مجتمعنا",trendingNow:"الأكثر رواجا",noArticles:"لا توجد مقالات متاحة حاليا.",stillCantFind:"لم تجد ما تبحث عنه؟",contactSubtitle:"فريق الدعم الودود لدينا جاهز للمساعدة. احصل على مساعدة مخصصة لأسئلتك المحددة.",averageResponse:"متوسط الرد:",responseTime:"ساعتان",articleCount_one:"{{count}} مقالة",articleCount_other:"{{count}} مقالات",explore:"استكشف",minRead:"قراءة 5 دقائق",articleNotFound:"المقالة غير موجودة.",thanks:"شكرا لملاحظاتك!",yesHelpful:"نعم، مفيدة",notHelpful:"غير مفيدة"},p2={share:"مشاركة",shareAriaLabel:"شارك النماذج الخاصة بك",saveMockupsFirst:"احفظ النماذج أولاً",selectAtLeastOneMockup:"اختر نموذجاً محفوظاً واحداً على الأقل.",savedMockupsRequired:"يلزم وجود نماذج محفوظة قبل المشاركة.",dialogTitle:"شارك النماذج الخاصة بك",dialogDescription:"يمكن لأي شخص لديه الرابط عرض النماذج التي اخترتها، ولا يمكنه تعديل تصميمك. تنتهي صلاحية الروابط خلال {{days}} يوماً، ويمكنك إلغاء أي رابط في أي وقت. يعيد النسخ والمشاركة عبر واتساب اØ
1267³ØªØ®Ø¯Ø§Ù… الرابط النشط في علامة التبويب هذه. وإذا انتهت جلستها أو لم يعد الرابط المخزن متاحاً، يُنشأ البديل بأمان قبل إلغاء الرابط الأقدم.",dialogLatestChanges:"يرى المشاهدون دائماً أحدث النماذج المحفوظة لديك.",shareOnWhatsApp:"المشاركة عبر واتساب",copyLink:"نسخ الرابط",linkCopied:"تم نسخ الرابط",copyFailed:"تعذّر نسخ الرابط. حدّده وانسخه يدوياً.",whatsAppFailed:"تعذّر فتح واتساب. انسخ الرابط وأرسله يدوياً.",createFailed:"تعذّر إنشاء رابط المشاركة.",limitReached:"لقد وصلت إلى الحد الأقصى لروابط المشاركة. ألغِ رابطاً قديماً وحاول مجدداً.",oneTimeUrlLabel:"رابط المشاركة الخاص بك",oneTimeUrlHint:"يمكن لعلامة التبويب هذه إعادة استخدام الرابط ما دامت جلستها مفتوحة. انسخه في مكان آمن قبل إغلاقها.",activeLinks:"الروابط النشطة",noActiveLinks:"لا توجد روابط مشاركة نشطة بعد.",channelLink:"رابط",channelWhatsApp:"واتساب",createdOn:"أُنشئ في {{date}}",expiresOn:"ينتهي في {{date}}",requestCount:"{{count}} طلب",revoke:"إلغاء",revokeConfirm:"هل تريد إلغاء هذا الرابط؟ سيفقد كل من يملكه إمكانية الوصول.",revokeCancel:"الاحتفاظ بالرابط",revoked:"تم إلغاء الرابط",revokeFailed:"تعذّر إلغاء الرابط.",sharedMockupSummary:"النماذج المختارة: {{count}}",colorsSummary:"الألوان: {{colors}}",whatsAppMessage:"إليك نماذج تصميمك:",publicPageTitle:"معاينة تصميمك",publicColorLabel:"اللون",publicUncoloredGroup:"عروض أخرى",publicOpenImage:"افتح {{name}} بحجم أكبر",publicCloseImage:"إغلاق الصورة",publicGalleryThumbnails:"صور النماذج المصغرة",publicViewMockup:"عرض {{name}}",publicPreviousMockup:"النموذج السابق",publicNextMockup:"النموذج التالي",publicZoomIn:"تكبير",publicZoomOut:"تصغير",publicResetZoom:"إعادة ضبط التكبير",publicZoomLevel:"مستوى التكبير {{zoom}}",publicCloseHint:"إغلاق",publicNavigateHint:"تنقل",publicDoubleClickHint:"انقر مرتين للتكبير",publicMobileGalleryHint:"مرر الصور المصغرة للتصفح · انقر مرتين للتكبير",publicUnavailableTitle:"لم يعد هذا الرابط متاحاً.",publicUnavailableBody:"اطلب رابطاً جديداً ممن أرسله إليك.",publicExplore:"اكتشف PrintaRex",publicPreparingTitle:"ما زال يجري تجÙ
1267‡ÙŠØ² النماذج.",publicPreparingBody:"عد بعد دقيقة.",documentTitle:"{{productName}} | معاينة التصميم | PrintaRex",documentTitleFallback:"معاينة التصميم | PrintaRex",marketingHeadline:"صُنع باستخدام PrintaRex",marketingBody:"تصاميم بسيطة كهذه تستغرق دقائق. تريد شيئاً أكثر إبداعاً؟ أنشئ تصميمك — مجاناً.",marketingCta:"ابدأ البيع مجاناً"},m2={language:i2,common:o2,authGate:s2,header:l2,dashboardHeader:u2,sidebar:c2,footer:f2,kb:d2,dashboardHelp:h2,designShare:p2},tA=typeof window<"u",g2={en:{translation:a2},ar:{translation:m2}},y2=tA?Dt.use(eA):Dt;y2.use(b$).init({resources:g2,fallbackLng:"en",supportedLngs:["en","ar"],load:"languageOnly",defaultNS:"translation",lng:tA?void 0:"en",detection:{order:["localStorage","navigator"],lookupLocalStorage:"i18nextLng",caches:["localStorage"]},interpolation:{escapeValue:!1},react:{useSuspense:!1}});function cv(e){typeof document>"u"||F$(e,document)}cv(Dt.language);Dt.on("languageChanged",e=>{cv(e)});const Im="customer-arabic-static-copy-load-error";let Rl=null,Gc=null;function v2(){return Rl?Promise.resolve(Rl):(Gc||(Gc=de(()=>import("./ArabicStaticCopyBridge-9bGX3jPc.js"),[]).then(e=>(Rl=e.ArabicStaticCopyBridge,Rl)).catch(e=>{throw Gc=null,e})),Gc)}function b2({children:e}){const{direction:t,locale:n}=Gi(),{pathname:a}=Zt(),o=$V(a),[l,c]=ne.useState(()=>Rl),[f,h]=ne.useState(null);return x.useEffect(()=>{cv(n)},[n]),x.useEffect(()=>{if(n!=="ar")return;let d=!0;const g=()=>{Promise.all([VV(o),v2()]).then(([,v])=>{d&&(jl.dismiss(Im),c(()=>v),h(o),Dt.changeLanguage(n))}).catch(v=>{d&&(console.error("[CustomerLocaleProvider] Failed to load Arabic static copy.",v),jl.error("Arabic translations could not be loaded.",{id:Im,description:"English text remains available.",action:{label:"Retry",onClick:g}}))})};return g(),()=>{d=!1,jl.dismiss(Im)}},[n,o]),m.jsxs(uC,{dir:t,children:[l&&f===o&&m.jsx(l,{},f),e]})}const S2=()=>{const{t:e}=Hi(),{direction:t}=Gi();return m.jsxs("div",{dir:t,className:"flex min-h-screen items-center justify-center bg-background px-4",role:"status","aria-live":"polite","aria-busy":"true",children:[m.jsx("span",{className:"sr-only",children:e("common.loading")}),m.jsxs("div",{className:"relative flex h-28 w-28 items-center justify-center",children:[m.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 rounded-full bg-primary/10 blur-2xl"}),m.jsx("span",{"aria-hidden":"true",className:"absolute h-28 w-28 rounded-full border-4 border-primary/15"}),m.jsx("span",{"aria-hidden":"true",className:"absolute h-28 w-28 animate-spin rounded-full border-4 border-transparent border-t-primary [animation-duration:0.9s] motion-reduce:animate-none"}),m.jsx("img",{src:"/printarex-animated.svg",alt:"","aria-hidden":"true",className:"relative h-14 w-14"})]})]})},x2=gO,c7=yO,E2=vO,f7=fd,nA=x.forwardRef(({className:e,...t},n)=>m.jsx(av,{ref:n,className:pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));nA.displayName=av.displayName;const rA=x.forwardRef(({className:e,children:t,...n},a)=>m.jsxs(E2,{children:[m.jsx(nA,{}),m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:m.jsxs(iv,{ref:a,"aria-describedby":void 0,className:pe("relative z-50 grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...n,children:[t,m.jsxs(fd,{className:"absolute right-4 top-4 roun
1267ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(Jf,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})})]}));rA.displayName=iv.displayName;const aA=({className:e,...t})=>m.jsx("div",{className:pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});aA.displayName="DialogHeader";const iA=({className:e,...t})=>m.jsx("div",{className:pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});iA.displayName="DialogFooter";const oA=x.forwardRef(({className:e,...t},n)=>m.jsx(ov,{ref:n,className:pe("text-lg font-semibold leading-none tracking-tight",e),...t}));oA.displayName=ov.displayName;const sA=x.forwardRef(({className:e,...t},n)=>m.jsx(sv,{ref:n,className:pe("text-sm text-muted-foreground",e),...t}));sA.displayName=sv.displayName;function w2(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var gd="Switch",[_2]=ai(gd),[T2,C2]=_2(gd),lA=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:l,required:c,disabled:f,value:h="on",onCheckedChange:d,form:g,...v}=e,[S,b]=x.useState(null),w=xt(t,A=>b(A)),_=x.useRef(!1),T=S?g||!!S.closest("form"):!0,[C,O]=ed({prop:o,defaultProp:l??!1,onChange:d,caller:gd});return m.jsxs(T2,{scope:n,checked:C,disabled:f,children:[m.jsx(gt.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":dA(C),"data-disabled":f?"":void 0,disabled:f,value:h,...v,ref:w,onClick:Me(e.onClick,A=>{O(N=>!N),T&&(_.current=A.isPropagationStopped(),_.current||A.stopPropagation())})}),T&&m.jsx(fA,{control:S,bubbles:!_.current,name:a,value:h,checked:C,required:c,disabled:f,form:g,style:{transform:"translateX(-100%)"}})]})});lA.displayName=gd;var uA="SwitchThumb",cA=x.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,o=C2(uA,n);return m.jsx(gt.span,{"data-state":dA(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})});cA.displayName=uA;var R2="SwitchBubbleInput",fA=x.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...o},l)=>{const c=x.useRef(null),f=xt(c,l),h=w2(n),d=RC(t);return x.useEffect(()=>{const g=c.current;if(!g)return;const v=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(v,"checked").set;if(h!==n&&b){const w=new Event("click",{bubbles:a});b.call(g,n),g.dispatchEvent(w)}},[h,n,a]),m.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:f,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});fA.displayName=R2;function dA(e){return e?"checked":"unchecked"}var hA=lA,O2=cA;const pA=x.forwardRef(({className:e,...t},n)=>m.jsx(hA,{className:pe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:m.jsx(O2,{className:pe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));pA.displayName=hA.displayName;const Or=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,yd=/^[A-Za-z0-9_-]{43}$/,mA=()=>{try{return typeof window>"u"?null:window.localStorage}catch{return null}},A2=()=>{var e,t;try{if(typeof((e=globalThis.crypto)==null?void 0:e.randomUUID)=="function")return globalThis.crypto.randomUUID();if(typeof((t=globalThis.crypto)==null?void 0:t.getRandomValues)!="function")return null;const n=new Uint8Array(16);globalThis.crypto.getRandomValues(n),n[6]=n[6]&15|64,n[8]=n[8]&63|128;const a=Array.from(n,o=>o.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`}catch{return null}},N2=()=>{var e;try{if(typeof((e=globalThis.crypto)==null?void 0:e.getRandomValues)!="function")return null;const t=new Uint8Array(32);globalThis.crypto.getRandomValues(t);const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";let a="";for(let o=0;o<t.length;o+=3){const l=t[o],c=t[o+1],f=t[o+2];a+=n[l>>2],a+=n[(l&3)<<4|(c??0)>>4],c!==void 0&&(a+=n[(c&15)<<2|(f??0)>>6]),f!==void 0&&(a+=n[f&63])}return yd.test(a)?a:null}catch{return null}},D2=()=>({storage:mA(),fetcher:typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):null,now:()=>Date.now(),createId:A2,createProof:N2,getAccessToken:()=>null,isVisible:()=>typeof document>"u"||document.visibilityState==="visible",isOnline:()=>typeof navigator>"u"||navigator.onLine!==!1,getReferrer:()=>typeof document>"u"?"":document.referrer,getOrigin:()=>typeof window>"u"?"":window.location.origin}),hu=(e={})=>({...D2(),...e}),Ka=e=>typeof e=="number"&&Number.isFinite(e)&&e>0,fv="cookie_consent",kf="printarex_analytics_visitor",Mf="printarex_analytics_session",jf="printarex_analytics_pending_erasure",Xl="printarex:analytics-consent-changed",k2=365*24*60*60*1e3,u1=1800*1e3,M2=13;let ns=[];const vd=(e,t)=>{try{const n=e==null?void 0:e.getItem(t);return n?JSON.parse(n):null}catch{return null}}
1267,Jl=(e,t,n)=>{try{return e?(e.setItem(t,JSON.stringify(n)),!0):!1}catch{return!1}},eu=(e,t)=>{try{e==null||e.removeItem(t)}catch{}},j2=e=>{const t=new Date(e);return t.setUTCMonth(t.getUTCMonth()+M2),t.getTime()},ff=(e,t=Date.now(),n=mA())=>{const a=vd(n,fv);return!a||a.status!=="granted"&&a.status!=="denied"||a.policyVersion!==e||!Ka(a.decidedAt)||!Ka(a.expiresAt)||a.expiresAt<=t?null:a},Pl=(e,t)=>{const n=vd(t,kf);return!n||!Or.test(n.id)||!yd.test(n.proof)||!Ka(n.issuedAt)||!Ka(n.expiresAt)||n.expiresAt<=e?(eu(t,kf),null):n},I2=(e=Date.now(),t={})=>{const n=hu(t),a=Pl(e,n.storage);if(a)return a;const o=n.createId(),l=n.createProof();if(!o||!Or.test(o)||!l||!yd.test(l))return null;const c={id:o,proof:l,issuedAt:e,expiresAt:j2(e)};return Jl(n.storage,kf,c)?c:null},Ol=(e,t,n)=>{const a=vd(n,Mf);return!a||!Or.test(a.id)||a.visitorId!==e||!Ka(a.startedAt)||!Ka(a.lastInteractionAt)||!Ka(a.expiresAt)||a.expiresAt<=t?(eu(n,Mf),null):a},c1=(e,t=Date.now(),n={})=>{const a=hu(n),o=Ol(e,t,a.storage),l=o?{...o,lastInteractionAt:t,expiresAt:t+u1}:(()=>{const c=a.createId();return c&&Or.test(c)?{id:c,visitorId:e,startedAt:t,lastInteractionAt:t,expiresAt:t+u1}:null})();return l&&Jl(a.storage,Mf,l)?l:null},L2=e=>{eu(e,kf),eu(e,Mf)},gA=e=>{const t=vd(e,jf);let n=[];return Array.isArray(t)?n=t:t&&(n=[t]),[...new Map([...n,...ns].map(o=>[o.eventId,o])).values()].filter(o=>Or.test(o.eventId)&&Or.test(o.visitorId)&&yd.test(o.visitorProof)&&Ka(o.requestedAt))},P2=()=>{try{window.dispatchEvent(new Event(Xl))}catch{}},$g=async(e,t={})=>{const n=hu(t),a=gA(n.storage);if(a.length===0)return!0;if(!n.fetcher||!n.isOnline())return!1;for(let o=0;o<a.length;o+=1){const l=a[o];try{if(!(await n.fetcher(e.ingestPath,{method:"POST",credentials:"same-origin",cache:"no-store",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({schemaVersion:1,eventType:"visitor_erasure",eventId:l.eventId,visitorId:l.visitorId,visitorProof:l.visitorProof,occurredAt:new Date(l.requestedAt).toISOString()})})).ok)return!1;ns=a.slice(o+1),ns.length>0?Jl(n.storage,jf,ns):eu(n.storage,jf)}catch{return!1}}return!0},U2=(e,t,n={})=>{const a=hu(n),o=a.now(),l={status:e,policyVersion:t.consentVersion,decidedAt:o,expiresAt:o+k2};if(e==="denied"){const c=Pl(o,a.storage);if(c){const f=a.createId();if(f&&Or.test(f)){const h={eventId:f,visitorId:c.id,visitorProof:c.proof,requestedAt:o},d=gA(a.storage);ns=d.some(g=>g.visitorId===c.id)?d:[...d,h],Jl(a.storage,jf,ns)}}L2(a.storage)}return Jl(a.storage,fv,l),P2(),e==="denied"&&$g(t,a),Promise.resolve(l)},z2={consent:fv},yA=512,F2=new Set(["orders","returns","tickets","messages","stores"]),$2=e=>{const t=e.indexOf("@");if(t<=0||t!==e.lastIndexOf("@")||e.includes("/")||Array.from(e).some(o=>o.trim()===""))return!1;const n=e.slice(t+1),a=n.indexOf(".");return a>0&&a<n.length-1},V2=e=>{let t=e;for(let n=0;n<2;n+=1)try{const a=decodeURIComponent(t);if(a===t)break;t=a}catch{break}return t},f1=e=>{const t=e.split(/[?#]/,1)[0]||"/",a=Array.from(`/${t}`.replace(/\/{2,}/g,"/")).filter(l=>{const c=l.codePointAt(0)??0;return c>31&&c!==127}).join("").split("/").filter(Boolean),o=a.map((l,c)=>{var d;const f=V2(l),h=(d=a[c-1])==null?void 0:d.toLowerCase();return h&&F2.has(h)||$2(f)||Or.test(f)||/^\d+$/.test(f)||/^[A-Za-z0-9_-]{24,}$/.test(f)?":id":encodeURIComponent(f).replace(/%3A/gi,":")});return(o.length===0?"/":`/${o.join("/")}`).slice(0,yA)},B2=(e,t)=>{try{if(!e)return;const n=new URL(e);return!["http:","https:"].includes(n.protocol)||n.origin===t?void 0:n.origin.slice(0,yA)}catch{return}},d1="printarex:open-analytics-settings",q2=30*1e3,H2=5*1e3;let Gn=null;const Lm=(e,t)=>{if((Gn==null?void 0:Gn.browsingSessionId)===e)return Gn;const n=t();return!n||!Or.test(n)?null:(Gn={browsingSessionId:e,pagePresenceId:n,lastPath:null,sequence:0},Gn)};class G2{constructor(t,n={}){qn(this,"dependencies");qn(this,"started",!1);qn(this,"currentPath","/");qn(this,"timer",null);qn(this,"lastInteractionHandledAt",0);qn(this,"recordPageView",()=>{if(!this.isDetailedAnalyticsAllowed()||!this.dependencies.isOnline())return;const t=this.dependencies.now(),n=I2(t,this.dependencies);if(!n)return;const a=Ol(n.id,t,this.dependencies.storage);
1267if(a&&(Gn==null?void 0:Gn.browsingSessionId)===a.id&&Gn.lastPath===this.currentPath)return;const o=c1(n.id,t,this.dependencies);if(!o)return;const l=Lm(o.id,this.dependencies.createId);if(!l||l.lastPath===this.currentPath)return;const c=l.sequence===0;l.lastPath=this.currentPath;const f=this.createEvent("page_view",n,o,l,t);if(!f)return;const h=c?B2(this.dependencies.getReferrer(),this.dependencies.getOrigin()):void 0;this.transmit(h?{...f,sanitizedReferrer:h}:f,!0)});qn(this,"sendHeartbeat",()=>{if(!this.isDetailedAnalyticsAllowed()||!this.dependencies.isVisible()||!this.dependencies.isOnline())return;const t=this.dependencies.now(),n=Pl(t,this.dependencies.storage);if(!n)return;const a=Ol(n.id,t,this.dependencies.storage);if(!a)return;const o=Lm(a.id,this.dependencies.createId);if(!o)return;const l=this.createEvent("heartbeat",n,a,o,t);l&&this.transmit(l,!0)});qn(this,"sendPageEnd",()=>{if(!this.isDetailedAnalyticsAllowed()||!this.dependencies.isOnline())return;const t=this.dependencies.now(),n=Pl(t,this.dependencies.storage);if(!n)return;const a=Ol(n.id,t,this.dependencies.storage);if(!a)return;const o=Lm(a.id,this.dependencies.createId);if(!o)return;const l=this.createEvent("page_end",n,a,o,t);l&&this.transmit(l,!1)});qn(this,"handleHumanInteraction",()=>{if(!this.isDetailedAnalyticsAllowed())return;const t=this.dependencies.now();if(t-this.lastInteractionHandledAt<H2)return;this.lastInteractionHandledAt=t;const n=Pl(t,this.dependencies.storage);if(!n)return;const a=Ol(n.id,t,this.dependencies.storage),o=c1(n.id,t,this.dependencies);o&&(a==null?void 0:a.id)!==o.id&&(Gn=null,this.recordPageView())});qn(this,"handleVisibilityOrNetwork",()=>{this.sendHeartbeat(),$g(this.config,this.dependencies)});qn(this,"handleConsentEvent",()=>{this.handleConsentChanged()});this.config=t,this.dependencies=hu(n)}start(t){if(!this.started){this.started=!0,this.currentPath=f1(t),$g(this.config,this.dependencies);try{window.addEventListener("online",this.handleVisibilityOrNetwork)}catch{}this.config.enabled&&(this.addListeners(),this.timer=globalThis.setInterval(this.sendHeartbeat,q2),this.recordPageView())}}stop(){this.started&&(this.started=!1,this.removeListeners(),this.timer!==null&&(globalThis.clearInterval(this.timer),this.timer=null))}updatePath(t){const n=f1(t);n!==this.currentPath&&(this.currentPath=n,this.started&&this.config.enabled&&this.recordPageView())}handleConsentChanged(){!this.started||!this.config.enabled||(this.isDetailedAnalyticsAllowed()?this.recordPageView():Gn=null)}syncAuthentication(){this.started&&this.config.enabled&&this.sendHeartbeat()}isDetailedAnalyticsAllowed(){const t=ff(this.config.consentVersion,this.dependencies.now(),this.dependencies.storage);return this.config.enabled&&(t==null?void 0:t.status)!=="denied"}createEvent(t,n,a,o,l){const c=this.dependencies.createId();if(!c||!Or.test(c))return null;o.sequence+=1;const f={schemaVersion:1,eventType:t,eventId:c,visitorId:n.id,browsingSessionId:a.id,pagePresenceId:o.pagePresenceId,sequence:o.sequence,path:this.currentPath,occurredAt:new Date(l).toISOString()};return t==="page_view"?{...f,visitorProof:n.proof}:f}transmit(t,n){var o;const a=this.dependencies.fetcher;if(a)try{const l={"Content-Type":"application/json"},c=n?(o=this.dependencies.getAccessToken())==null?void 0:o.trim():"";c&&(l.Authorization=`Bearer ${c}`),a(this.config.ingestPath,{method:"POST",credentials:"same-origin",cache:"no-store",keepalive:!0,headers:l,body:JSON.stringify(t)}).catch(()=>{})}catch{}}addListeners(){try{window.addEventListener("pointerdown",this.handleHumanInteraction,{passive:!0}),window.addEventListener("keydown",this.handleHumanInteraction),window.addEventListener("scroll",this.handleHumanInteraction,{passive:!0}),window.addEventListener("touchstart",this.handleHumanInteraction,{passive:!0}),window.addEventListener("online",this.handleVisibilityOrNetwork),window.addEventListener("pageshow",this.handleVisibilityOrNetwork),window.addEventListener("pagehide",this.sendPageEnd),window.addEventListener(Xl,this.handleConsentEvent),document.addEventListener("visibilitychange",this.handleVisibilityOrNetwork)}catch{}}removeListeners(){try{window.removeEventListener("pointerdown",this.handleHumanInteraction),window.removeEventListener("keydown",this.handleHumanInteraction),window.removeEventListener("scroll",this.handleHumanInteraction),window.removeEventListener("touchstart",this.handleHumanInteraction),window.removeEventListener("online",this.handleVisibilityOrNetwork),window.removeEventListener("pageshow",this.handleVisibilityOrNetwork),window.removeEventListener("pagehide",this.sendPageEnd),window.removeEventListener(Xl,this.handleConsentEvent),document.removeEventListener("visibilitychange",this.handleVisibilityOrNetwork)}catch{}}}function Q2(){const e=Zt(),{locale:t}=Gi(),n=_=>lv(_,t),[a,o]=x.useState(!1),l=x.useMemo(()=>({enabled:Rm.enabled(),ingestPath:Rm.ingestPath(),consentVersion:Rm.consentVersion()}
1267),[]),[c,f]=x.useState(()=>ff(l.consentVersion)),[h,d]=x.useState(!1),[g,v]=x.useState((c==null?void 0:c.status)==="granted"),[S]=x.useState(()=>new G2(l,{getAccessToken:()=>Kt.getState().token})),b=x.useRef(e.pathname);x.useEffect(()=>{o(!0)},[]),x.useEffect(()=>(S.start(b.current),()=>S.stop()),[S]),x.useEffect(()=>{S.updatePath(e.pathname)},[S,e.pathname]),x.useEffect(()=>Kt.subscribe((_,T)=>{(_.token!==T.token||_.isAuthenticated!==T.isAuthenticated)&&S.syncAuthentication()}),[S]),x.useEffect(()=>{const _=T=>{if(T instanceof StorageEvent&&T.key!==z2.consent)return;const C=ff(l.consentVersion);f(C),v((C==null?void 0:C.status)==="granted"),S.handleConsentChanged()};return window.addEventListener("storage",_),window.addEventListener(Xl,_),()=>{window.removeEventListener("storage",_),window.removeEventListener(Xl,_)}},[l.consentVersion,S]),x.useEffect(()=>{const _=()=>{const T=ff(l.consentVersion);T&&(v(T.status==="granted"),d(!0))};return window.addEventListener(d1,_),()=>window.removeEventListener(d1,_)},[l.consentVersion]);const w=async _=>{const T=await U2(_?"granted":"denied",l,{getAccessToken:()=>Kt.getState().token});f(T),v(_),d(!1),S.handleConsentChanged()};return!a||!l.enabled?null:m.jsxs(m.Fragment,{children:[!c&&e.pathname==="/"&&m.jsx("section",{"aria-label":n("Cookie consent"),className:"fixed inset-x-0 bottom-0 z-[60] border-t border-white/10 bg-slate-900/75 text-white shadow-[0_-10px_24px_rgba(0,0,0,0.08)] backdrop-blur-xl",children:m.jsxs("div",{className:"mx-auto flex max-w-screen-2xl flex-col gap-1 px-4 py-0.5 sm:flex-row sm:items-center",children:[m.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[m.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-[10px] bg-white/10 text-emerald-300 sm:h-6 sm:w-6",children:m.jsx(o5,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),m.jsxs("p",{className:"text-xs leading-4 text-white/90",children:[m.jsx("strong",{className:"font-semibold text-white",children:n("This website uses cookies to ensure you get the best experience on our site.")})," ",n("First-party analytics starts automatically. Click Got it to continue or close this notice to reject optional analytics.")," ",m.jsx(ta,{className:"font-semibold text-emerald-300 underline underline-offset-4",to:"/cookies",children:n("Read the Cookie Policy")})]})]}),m.jsxs("div",{className:"grid shrink-0 grid-cols-[1fr_auto] gap-0.5",children:[m.jsx(vn,{className:"relative h-11 px-3 text-xs text-slate-950 after:absolute after:inset-x-0 after:inset-y-0 after:content-[''] focus-visible:ring-emerald-300 sm:h-8 sm:after:-top-3",onClick:()=>void w(!0),type:"button",children:n("Got it")}),m.jsx(vn,{"aria-label":n("Close and reject analytics cookies"),className:"relative h-11 w-11 rounded-[14px] text-white/80 after:absolute after:inset-x-0 after:inset-y-0 after:content-[''] hover:bg-white/10 hover:text-white sm:h-8 sm:w-8 sm:rounded-[10px] sm:after:-right-3 sm:after:-top-3",onClick:()=>void w(!1),size:"icon",type:"button",variant:"ghost",children:m.jsx(Jf,{className:"h-4 w-4","aria-hidden":"true"})})]})]})}),m.jsx(x2,{open:h,onOpenChange:d,children:m.jsxs(rA,{className:"rounded-[28px] sm:max-w-lg",children:[m.jsxs(aA,{children:[m.jsx(oA,{children:n("Cookie settings")}),m.jsx(sA,{children:n("Necessary cookies are always on. Analytics cookies are optional and can be changed at any time.")})]}),m.jsx("div",{className:"rounded-[14px] border border-border p-4",children:m.jsxs("div",{className:"flex items-center justify-between gap-4",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-medium text-foreground",children:n("Analytics cookies")}),m.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:n("Page visits, session activity, general country, browser, and device category.")})]}),m.jsx(pA,{"aria-label":n("Allow first-party analytics"),checked:g,dir:"ltr",onCheckedChange:v})]})}),m.jsx("p",{className:"text-xs leading-5 text-muted-foreground",children:n("Necessary storage remains active for core website functions. You can change this choice at any time.")}),m.jsxs(iA,{children:[m.jsx(vn,{type:"button",variant:"outline",onClick:()=>d(!1),children:n("Cancel")}),m.jsx(vn,{type:"button",onClick:()=>void w(g),children:n("Save choices")})]})]})})]})}const Pm="printarex_route_chunk_reload_attempted",Y2=e=>{const t=e instanceof Error?e.message:String(e);return/Failed to fetch dynamically imported module|Importing a module script failed|ChunkLoadError|Loading chunk/i.test(t)},je=e=>x.lazy(async()=>{var t,n,a;try{const o=await e();return(t=globalThis.sessionStorage)==null||t.removeItem(Pm),o}
1267catch(o){if(Y2(o)&&((n=globalThis.sessionStorage)==null?void 0:n.getItem(Pm))!==globalThis.location.pathname)return(a=globalThis.sessionStorage)==null||a.setItem(Pm,globalThis.location.pathname),globalThis.location.reload(),new Promise(()=>{});throw o}}),ke=je(()=>de(()=>import("./DashboardLayout-BM16B6CL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])).then(e=>({default:e.DashboardLayout}))),K2=x.lazy(()=>de(()=>import("./HomePage-CS0sgAxM.js"),__vite__mapDeps([28,29,30,31,32,24])).then(e=>({default:e.HomePage}))),W2=x.lazy(()=>de(()=>import("./LoginPage-BDEUO4Xf.js"),__vite__mapDeps([33,34,3,35,9,8,36,37,38,39,40,41,42,43,44,45,11,46,47,48,49])).then(e=>({default:e.LoginPage}))),Z2=x.lazy(()=>de(()=>import("./RegisterPage-B2jsyvZa.js"),__vite__mapDeps([50,34,3,35,9,8,37,44,43,51,46,47,48,49])).then(e=>({default:e.RegisterPage}))),X2=x.lazy(()=>de(()=>import("./BecomeProviderPage-BIVlUsiq.js"),__vite__mapDeps([52,45,43,49,32,53,54,55,56])).then(e=>({default:e.BecomeProviderPage}))),J2=x.lazy(()=>de(()=>import("./GoogleCallbackPage-CTDvTj-_.js"),__vite__mapDeps([57,35,58,43,59,9,8]))),eq=x.lazy(()=>de(()=>import("./FacebookCallbackPage-4_wc-DWy.js"),__vite__mapDeps([60,37,35,58,43,59,9,8]))),tq=x.lazy(()=>de(()=>import("./EmailVerificationPage-DMLWceqZ.js"),__vite__mapDeps([61,62,36,42,56,63,9,8]))),nq=x.lazy(()=>de(()=>import("./ForgotPasswordPage-Dpel-WGv.js"),__vite__mapDeps([64,65,66,36,44,56,43,9,8]))),rq=x.lazy(()=>de(()=>import("./ResetPasswordPage-C7HuZ_n6.js"),__vite__mapDeps([67,65,66,36,44,56,63,47,48,46,9,8]))),Um=je(()=>de(()=>import("./ProductDetailsPage-CWfqC-g2.js"),__vite__mapDeps([68,69,70,71,72,36,73,74,75,76,77,39,78,79,80,81,82,51,21,24,1,2,83,32,84,85,66,86,38,87,88,89,11,90,53,91,92,93,94,95,96,56,13,42,97,98,63,99,100,7,8,101,102,103,20,104,105])).then(e=>({default:e.ProductDetailsPage}))),h1=je(()=>de(()=>import("./CatalogBrowsePage-Crj08an-.js"),__vite__mapDeps([106,71,107,108,109,83,79,110,42,101])).then(e=>({default:e.CatalogBrowsePage}))),p1=je(()=>de(()=>import("./CategoryBrowsePage-CsqQ0gFB.js"),__vite__mapDeps([111,71,107,108,83,79,110,42,101,17,112,113,114])).then(e=>({default:e.CategoryBrowsePage}))),m1=je(()=>de(()=>import("./SubcategoryBrowsePage-Bk7AhHFa.js"),__vite__mapDeps([115,71,107,108,83,79,110,42,101,112,113,114])).then(e=>({default:e.SubcategoryBrowsePage}))),g1=je(()=>de(()=>import("./ProductsListPage-Bz9TkD6X.js"),__vite__mapDeps([116,71,83,79,117,109,36,82,110,84,59,101,112,113,114,93])).then(e=>({default:e.ProductsListPage}))),aq=x.lazy(()=>de(()=>import("./CartPage-CvcL9BRm.js"),[]).then(e=>({default:e.CartPage}))),iq=x.lazy(()=>de(()=>import("./CheckoutPage-DfdhEqjD.js"),[]).then(e=>({default:e.CheckoutPage}))),oq=x.lazy(()=>de(()=>import("./AccountPage-DzpZT5tU.js"),__vite__mapDeps([118,36,83,79,119,120,9,8])).then(e=>({default:e.AccountPage}))),sq=je(()=>de(()=>import("./OrdersPage-DYx7cElj.js"),__vite__mapDeps([121,122,123,77,83,79,78,66,124,16,125,126,127,86,128,84,82,42,129,130,9,8,56,91,131,132,133,134,76,38,135,136,94,63,24,51,137,48,53,138,3,139,112,11,59,102,140,141,142,21,32,49,14,143,144,20,145,7])).then(e=>({default:e.OrdersPage}))),lq=je(()=>de(()=>import("./OrderDetailsPage-BDIVSdK4.js"),__vite__mapDeps([146,39,16,132,125,126,85,130,36,147,139,127,66,86,83,79,128,84,82,42,129,9,8,56,91,11,74,76,93,148,48,59,149,150,31,151,108,152,99,145,153,154,53,51,92,14,32,155,90,156,95,49,63,30,140,21,157,105,102,158,43,75,15,134])).then(e=>({default:e.OrderDetailsPage}))),uq=je(()=>de(()=>
1267import("./StorePendingApprovalOrderDetailPage-Dekn65lZ.js"),__vite__mapDeps([159,76,86,132,160,9,8,150,130,11,43,24,31,152,99,137,108,42,145,153,151,154,53,51,92,56,63,138])).then(e=>({default:e.StorePendingApprovalOrderDetailPage}))),cq=x.lazy(()=>de(()=>import("./AfsReturnPage-CA40tvqG.js"),__vite__mapDeps([161,162,16,163,164,165,126,42,30,91,11,59,43,26,9,8])).then(e=>({default:e.AfsReturnPage}))),fq=x.lazy(()=>de(()=>import("./RetryPaymentPage-Cqcv5Caz.js"),__vite__mapDeps([166,36,167,11,168,14,16,125,126,162,128,139,147,165,43,169,56,170,9,8,171])).then(e=>({default:e.RetryPaymentPage}))),dq=x.lazy(()=>de(()=>import("./AfsBillingReturnPage-DzMiiQ5z.js"),__vite__mapDeps([172,162,173,30,11,59,9,8])).then(e=>({default:e.AfsBillingReturnPage}))),hq=x.lazy(()=>de(()=>import("./SearchPage-3Vv6UTSd.js"),__vite__mapDeps([174,76,83,79,117,16,112])).then(e=>({default:e.SearchPage}))),pq=x.lazy(()=>de(()=>import("./SubscriptionPage-CZ3_s3wA.js"),__vite__mapDeps([175,167,36,11,176,38,177,25,46,9,8,76,14,59,132,120,178,24,56,20,75,134,171])).then(e=>({default:e.SubscriptionPage}))),mq=x.lazy(()=>de(()=>import("./SubscriptionAfsReturnRoute-CO4Kn5AB.js"),__vite__mapDeps([179,36,76,162,177,173,11,9,8,41])).then(e=>({default:e.SubscriptionAfsReturnRoute}))),gq=x.lazy(()=>de(()=>import("./MobileSubscriptionCheckoutPage-CerzNONX.js"),__vite__mapDeps([180,167,36,11,176,134,8])).then(e=>({default:e.MobileSubscriptionCheckoutPage}))),yq=je(()=>de(()=>import("./DashboardPage-BU6Bpjb_.js"),__vite__mapDeps([181,182,16,119,183,162,9,8,14,24,128,53,94,91,56,184,63,141,142,21,32,140,49,143,11])).then(e=>({default:e.DashboardPage}))),vq=je(()=>de(()=>import("./StoresPage-I80hX_Gf.js"),__vite__mapDeps([185,76,124,66,131,132,133,134,8,9,58,13,31,186,42,46,187,56,151,38,84,24,59,188,82,163,164,11,53,94,189,91,87])).then(e=>({default:e.StoresPage}))),bq=je(()=>de(()=>import("./StoreDetailsPage-ovGXmT5N.js"),__vite__mapDeps([190,69,76,191,39,38,83,79,78,131,132,133,134,8,9,36,84,188,82,42,88,80,66,192,193,194,187,56,151,20,144,96,63,32,75,59,43,11,91,31,24,94,143,22])).then(e=>({default:e.StoreDetailsPage}))),Sq=je(()=>de(()=>import("./BrandingPage-DPYv-RIJ.js"),__vite__mapDeps([195,76,196,96,17,197,99,20,114,87,155,194,92,43,42,9,8])).then(e=>({default:e.BrandingPage}))),xq=je(()=>de(()=>import("./BrandingProductsPage-nOlsSok0.js"),__vite__mapDeps([198,124,76,109,199,196,100,73,43,96,17,197,99,20,102])).then(e=>({default:e.BrandingProductsPage}))),y1=je(()=>de(()=>import("./BrandingDesignPage-Dl-Bc-rH.js"),__vite__mapDeps([200,135,136,201,202,3,9,8,203,79,2,58,78,77,102,157,204,70,90,194,144,178,25,170,130,205,206,15,151,43,199,42,87,108,84,182,126,20,75,207,76,149,86,48,208,46,209,11,69,122,17,56,97,160,137,210,103,105,211,191,212,213,192,32,140,14,214,215,30,196,216,100,73])).then(e=>({default:e.BrandingDesignPage}))),Eq=je(()=>de(()=>import("./BillingPage-9ROiFrmc.js"),__vite__mapDeps([217,36,76,162,183,9,8,14,42,87,93,194,46,66,83,79,119,209,153,155,16,20,11,148,63,145,102,91,30,75,134,24,167,101])).then(e=>({default:e.BillingPage}))),wq=je(()=>de(()=>import("./SupportPage-CA3OV9Ak.js"),__vite__mapDeps([218,219,220,69,221,102,48,91,222,223,94,18,186,15,14,24,32,31,19,9,8])).then(e=>({default:e.SupportPage}))),v1=je(()=>de(()=>import("./SettingsPage-B6qbDf6M.js"),__vite__mapDeps([224,66,76,36,130,3,62,225,40,42,90,75,9,8,84,144,41,13,56,226,227,59,10])).then(e=>({default:e.SettingsPage}))),_q=je(()=>de(()=>import("./HelpPage-BakVTQKm.js"),__vite__mapDeps([219,220,69,221,102,48,91,222,223,94,18,186,15,14,24,32,31,19,9,8])).then(e=>({default:e.HelpPage}))),Tq=je(()=>de(()=>import("./CardFactoryPage-i1pd_Va2.js"),__vite__mapDeps([228,87,14])).then(e=>({default:e.CardFactoryPage}))),El=je(()=>de(()=>import("./MyDesignsPage-BFvtHV0Z.js"),__vite__mapDeps([229,182,16,125,126,132,127,66,86,83,79,128,84,82,42,88,38,3,230,225,231,232,233,76,123,77,191,130,124,43,184,90,194,48,89,210,47,19,151,112,14,144,20,145,63,59,11,24,134,8,9])).then(e=>({default:e.MyDesignsPage}))),Cq=je(()=>de(()=>import("./NotificationsPage-DfMf92O0.js"),__vite__mapDeps([234,38,76,83,79,3,4,5,6,10,59,30,112,12,194,11,91,102,13,14,32,21,49,63,84,9,8])).then(e=>({default:e.NotificationsPage}))),Rq=je(()=>de(()=>import("./MessagesPage-ULkK9JJg.js"),__vite__mapDeps([235,83,79,3,18,30,208,84,12,11,91,102,7,8,9])).then(e=>({default:e.MessagesPage}
1267))),Oq=je(()=>de(()=>import("./MessageDetailPage-RWRrMTOu.js"),__vite__mapDeps([236,69,3,18,43,208,84,91,9,8])).then(e=>({default:e.MessageDetailPage}))),b1=je(()=>de(()=>import("./NotificationSettingsPage-DOZk9Dv9.js"),__vite__mapDeps([237,66,83,79,3,10,11,42,209,41,91,9,8])).then(e=>({default:e.NotificationSettingsPage}))),Aq=x.lazy(()=>de(()=>import("./NotFoundPage-CbCsPPXk.js"),__vite__mapDeps([238,101,43])).then(e=>({default:e.NotFoundPage}))),S1=je(()=>de(()=>import("./MyTicketsPage-B0cUVA41.js"),__vite__mapDeps([239,83,79,74,230,240,87,112,42,11]))),x1=je(()=>de(()=>import("./CreateTicketPage-DeMKcfM-.js"),__vite__mapDeps([241,242,1,2,204,114,243,189,191,9,8,42,30,11,203,108,20,104,83,79,66,230,36,27,244,225,91,56,245,59,163,164,43,246,158,247]))),E1=je(()=>de(()=>import("./TicketDetailsPage-Bm__87ir.js"),__vite__mapDeps([248,76,242,1,2,204,114,243,189,191,9,8,42,30,11,203,108,20,104,69,151,75,230,3,4,5,36,27,244,225,91,56,245,59,240,43,94,63,18,246,158,247,99,51,92,13,55]))),w1=je(()=>de(()=>import("./KnowledgeBasePage-D2QUHPL9.js"),__vite__mapDeps([249,122,76,83,79,230,93,48,222,15,51,14]))),_1=je(()=>de(()=>import("./ArticleDetailsPage-DgIgR0KO.js"),__vite__mapDeps([250,220,69,221,76,149,230,36,11,43,48,92,99,42,222,223,15,9,8]))),Nq=x.lazy(()=>de(()=>import("./CameraUploadPage-quZOu7Nb.js"),__vite__mapDeps([251,3,191,230,252,231,42,11,158,253,56,245,9,8]))),Dq=x.lazy(()=>de(()=>import("./SharedDesignPage-Ca7GEpVJ.js"),__vite__mapDeps([254,255,163,164,252,102,105,215]))),kq=je(()=>de(()=>import("./TemplatesPage-CS69KG1O.js"),__vite__mapDeps([256,76,122,124,42,87,90,194,102,9,8])).then(e=>({default:e.TemplatesPage}))),Mq=je(()=>de(()=>import("./index-DJ-jEBIQ.js"),__vite__mapDeps([257,258,78,79,130,255,163,164,42,201,202,3,9,8,203,136,135,2,58,77,102,157,204,70,90,194,144,178,25,170,205,206,15,151,43,199,87,108,84,182,126,20,75,207,76,149,86,48,208,46,209,11,69,122,17,56,97,160,137,210,103,105,211,191,212,189,133,99,134,259,38,214,59,148,260,91,88,66,215,82,63,192,131,132,193,188,19,94,24,93,83,196,81,96,152,197,114,243,1,80,261,36,140,89])).then(e=>({default:e.CustomizationForYourStores}))),jq=x.lazy(()=>de(()=>import("./CustomizationForYourselfWizard-CGTPDc29.js"),__vite__mapDeps([262,258,78,79,130,255,163,164,42,201,202,3,9,8,203,136,135,2,58,77,102,157,204,70,90,194,144,178,25,170,205,206,15,151,43,199,87,108,84,182,126,20,75,207,76,149,86,48,208,46,209,11,69,122,17,56,97,160,137,210,103,105,211,191,212,189,133,99,134,259,38,214,59,148,260,91,88,66,215,82,63,73,72,36,80,261,125,16,162,263,32,83,264,265,192,167,168,14,119,213,140,89,171])).then(e=>({default:e.CustomizationForYourselfWizard}))),Iq=x.lazy(()=>de(()=>import("./test-mockup-o3iU5Cqj.js"),__vite__mapDeps([266,214])).then(e=>({default:e.TestMockupPage}))),Lq=x.lazy(()=>de(()=>import("./PrivacyPolicyPage-CozM_oCH.js"),__vite__mapDeps([267,20,186,268,156,48,91,207,189,59,43,13,46])).then(e=>({default:e.PrivacyPolicyPage}))),Pq=x.lazy(()=>de(()=>import("./TermsOfServicePage-AT6IbdHW.js"),__vite__mapDeps([269,20,186,24,142,31,14,145,32,59,84,63,43,156,13])).then(e=>({default:e.TermsOfServicePage}))),Uq=x.lazy(()=>de(()=>import("./CookiePolicyPage-BNShB_9E.js"),__vite__mapDeps([270,82,46,54,91,13,194,20,43,48,11,41])).then(e=>({default:e.CookiePolicyPage}))),zq=x.lazy(()=>de(()=>import("./HowToUsePage-hlv_60dn.js"),__vite__mapDeps([271,76,46,24,189,108,31,14,154,92,20,82,91])).then(e=>({default:e.HowToUsePage}))),Fq=x.lazy(()=>de(()=>import("./BulkOrdersPage-Bu_5K8HA.js"),__vite__mapDeps([272,216,85,49,21,103,87,56,93,186,19,84])).then(e=>({default:e.BulkOrdersPage}))),$q=x.lazy(()=>de(()=>import("./PublicPricingPage-Cs7PPP9D.js"),__vite__mapDeps([273,36,29,261,25,82,32,145,14,30,31,93,46])).then(e=>({default:e.PublicPricingPage}))),Vq=x.lazy(()=>de(()=>import("./AmazonIntegrationPage-1yJhUSLi.js"),__vite__mapDeps([274,29,31,24,21,32,227,30,151,46,268])).then(e=>({default:e.AmazonIntegrationPage}))),Bq=x.lazy(()=>de(()=>import("./StorePlatformIntegrationPage-CBcKpdS4.js"),__vite__mapDeps([275,29,46,24,268,21,32,31,91,227,30,151])).then(e=>({default:e.ShopifyIntegrationPage}))),qq=x.lazy(()=>de(()=>import("./StorePlatformIntegrationPage-CBcKpdS4.js"),__vite__mapDeps([275,29,46,24,268,21,32,31,91,227,30,151])).then(e=>({default:e.WooCommerceIntegrationPage}))),Hq=x.lazy(()=>de(()=>import("./StorePlatformIntegrationPage-CBcKpdS4.js"),__vite__mapDeps([275,29,46,24,268,21,32,31,91,227,30,151])).then(e=>({default:e.NoonIntegrationPage}))),Gq=x.lazy(()=>de(()=>import("./CareersPage-Ca2qjrH0.js"),__vite__mapDeps([276,76,83,79,149,66,86,130,56,42,20,203,9,8,43,93])).then(e=>({default:e.CareersPage}
1267))),Qq=x.lazy(()=>de(()=>import("./AboutPage-_IZH2Ce2.js"),__vite__mapDeps([277,260,136])).then(e=>({default:e.AboutPage}))),zm=x.lazy(()=>de(()=>import("./ShopifyProofOfResolutionPage-6l2nrAdt.js"),__vite__mapDeps([278,56,151])).then(e=>({default:e.ShopifyProofOfResolutionPage}))),Yq=je(()=>de(()=>import("./ReturnsListPage-rngxFRVP.js"),__vite__mapDeps([279,83,79,280,231,246,59,97,151,233,5,125,126,136,11,135,42,63,9,8])).then(e=>({default:e.ReturnsListPage}))),Kq=je(()=>de(()=>import("./ReturnDetailPage-DChZNUPN.js"),__vite__mapDeps([281,280,231,246,59,97,151,233,5,125,126,3,4,264,265,9,8,11,63,91,32,56,21,136,43,42,169,20])).then(e=>({default:e.ReturnDetailPage}))),T1=je(()=>de(()=>import("./HubInventoryPage-BbYxSpqJ.js"),__vite__mapDeps([282,36,76,191,265,23,59,21,99,151,226])).then(e=>({default:e.HubInventoryPage}))),Wq=je(()=>de(()=>import("./HubBillingPage-NCHUg_MR.js"),__vite__mapDeps([283,36,76,167,11,265,284,176,14,9,8,23])).then(e=>({default:e.HubBillingPage}))),Zq=je(()=>de(()=>import("./HubStockDetailPage-D-breZqG.js"),__vite__mapDeps([285,36,76,66,167,11,119,264,265,286,176,199,205,263,126,43,21,151,49,84,194,247,9,8,134])).then(e=>({default:e.HubStockDetailPage}))),Xq=je(()=>de(()=>import("./HubAfsReturnPage-C6qCwd8g.js"),__vite__mapDeps([287,36,162,284,176,30,11,9,8])).then(e=>({default:e.HubAfsReturnPage}))),Jq=je(()=>de(()=>import("./HubOutboundAfsReturnPage-DDRJCyVA.js"),__vite__mapDeps([288,36,167,11,162,286,176,284,30,9,8])).then(e=>({default:e.HubOutboundAfsReturnPage}))),eH=x.lazy(()=>de(()=>import("./PoliciesHubPage--oTjxiUu.js"),__vite__mapDeps([289,290,20,46,186,98,156,13])).then(e=>({default:e.PoliciesHubPage}))),tH=x.lazy(()=>de(()=>import("./PolicyDetailPage-DpRbnO-m.js"),__vite__mapDeps([291,220,69,221,238,101,43,290])).then(e=>({default:e.PolicyDetailPage}))),C1=typeof window<"u"&&window.location.hostname.startsWith("uat")?"https://uat-help.printarex.com":"https://help.printarex.com",R1=({url:e})=>(ne.useEffect(()=>{_V(e)},[e]),m.jsxs("div",{className:"flex min-h-screen items-center justify-center px-4","aria-busy":"true","aria-live":"polite",children:[m.jsx("span",{className:"sr-only",children:"Redirecting to Help Center"}
1267),m.jsxs("div",{className:"w-full max-w-md space-y-4",children:[m.jsx(ct,{className:"mx-auto h-12 w-12 rounded-[14px]"}),m.jsx(ct,{className:"mx-auto h-5 w-56 rounded-[14px]"}),m.jsx(ct,{className:"mx-auto h-4 w-40 rounded-[14px]"})]})]})),nH=()=>(ne.useEffect(()=>{k8()},[]),m.jsx(qL,{client:Xf,children:m.jsx(fM,{children:m.jsxs(b2,{children:[m.jsx(Q2,{}),m.jsxs("div",{className:"min-h-screen bg-background flex flex-col customer-portal","data-seo-prerendered-app":"true",children:[m.jsx(PV,{}),m.jsx(x.Suspense,{fallback:m.jsx(S2,{}),children:m.jsx(M$,{children:m.jsxs(Fk,{children:[m.jsx(ie,{path:"/",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(K2,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/login",element:m.jsx(W2,{})}),m.jsx(ie,{path:"/register",element:m.jsx(Z2,{})}),m.jsx(ie,{path:"/become-provider",element:m.jsx(X2,{})}),m.jsx(ie,{path:"/auth/google/callback",element:m.jsx(J2,{})}),m.jsx(ie,{path:"/auth/facebook/callback",element:m.jsx(eq,{})}),m.jsx(ie,{path:"/verify-email",element:m.jsx(tq,{})}),m.jsx(ie,{path:"/forgot-password",element:m.jsx(nq,{})}),m.jsx(ie,{path:"/reset-password",element:m.jsx(rq,{})}),m.jsx(ie,{path:"/products/:productSlug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Um,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/search",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(hq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/cart",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(aq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/catalog",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(h1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/catalog/:catalogSlug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(p1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/catalog/:catalogSlug/:categorySlug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(m1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/catalog/:catalogSlug/:categorySlug/:subcategorySlug/:productSlug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Um,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/catalog/:catalogSlug/:categorySlug/:subcategorySlug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(g1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/customization-for-your-stores/*",element:m.jsx(xe,{children:m.jsx(Mq,{})})}),m.jsx(ie,{path:"/customization-for-yourself/:productSlug/:step",element:m.jsx(xe,{children:m.jsx(jq,{})})}),m.jsx(ie,{path:"/dashboard",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(yq,{})})})}),m.jsx(ie,{path:"/dashboard/catalog",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(h1,{})})})}),m.jsx(ie,{path:"/dashboard/catalog/:catalogSlug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(p1,{})})})}),m.jsx(ie,{path:"/dashboard/catalog/:catalogSlug/:categorySlug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(m1,{})})})}),m.jsx(ie,{path:"/dashboard/catalog/:catalogSlug/:categorySlug/:subcategorySlug/:productSlug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Um,{})})})}),m.jsx(ie,{path:"/dashboard/catalog/:catalogSlug/:categorySlug/:subcategorySlug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(g1,{})})})}),m.jsx(ie,{path:"/dashboard/orders",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(sq,{})})})}),m.jsx(ie,{path:"/dashboard/orders/personal",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(El,{})})})}),m.jsx(ie,{path:"/dashboard/orders/:orderRef",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(lq,{})})})}),m.jsx(ie,{path:"/dashboard/pendingapprovalorders/:storeName/:storeOrderId",element:m.jsx(xe,{children:m.jsx(uq,{})})}),m.jsx(ie,{path:"/orders/afs-return/:orderNumber",element:m.jsx(xe,{children:m.jsx(cq,{})})}),m.jsx(ie,{path:"/orders/:orderNumber/retry-payment",element:m.jsx(xe,{children:m.jsx(fq,{})})}),m.jsx(ie,{path:"/billing/afs-return",element:m.jsx(xe,{children:m.jsx(dq,{})})}),m.jsx(ie,{path:"/subscription/afs-return",element:m.jsx(mq,{})}),m.jsx(ie,{path:"/subscription/mobile-checkout",element:m.jsx(gq,{})}),m.jsx(ie,{path:"/account/returns",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Yq,{})})})}),m.jsx(ie,{path:"/account/returns/:orderId",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Kq,{})})})}),m.jsx(ie,{path:"/account/hub/afs-return",element:m.jsx(xe,{children:Pw.enabled()?m.jsx(Xq,{}):m.jsx(Yc,{to:"/dashboard",replace:!0})})}
1267),m.jsx(ie,{path:"/account/hub/afs-outbound-return",element:m.jsx(xe,{children:Pw.enabled()?m.jsx(Jq,{}):m.jsx(Yc,{to:"/dashboard",replace:!0})})}),m.jsx(ie,{path:"/account/hub",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(T1,{})})})}),m.jsx(ie,{path:"/account/hub/history",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(T1,{inventoryList:"history"})})})}),m.jsx(ie,{path:"/account/hub/billing",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Wq,{})})})}),m.jsx(ie,{path:"/account/hub/:stockKey",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Zq,{})})})}),m.jsx(ie,{path:"/dashboard/templates",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(kq,{})})})}),m.jsx(ie,{path:"/dashboard/stores",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(vq,{})})})}),m.jsx(ie,{path:"/dashboard/stores/:storeIdentifier",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(bq,{})})})}),m.jsx(ie,{path:"/dashboard/branding",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Sq,{})})})}),m.jsx(ie,{path:"/dashboard/branding/products/:brandingProductType",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(xq,{})})})}),m.jsx(ie,{path:"/dashboard/branding/design/:productSlug",element:m.jsx(xe,{children:m.jsx(y1,{})})}),m.jsx(ie,{path:"/dashboard/branding/design/:productSlug/:designId",element:m.jsx(xe,{children:m.jsx(y1,{})})}),m.jsx(ie,{path:"/dashboard/billing",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Eq,{})})})}),m.jsx(ie,{path:"/dashboard/support",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(wq,{})})})}),m.jsx(ie,{path:"/dashboard/support/kb",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(w1,{})})})}),m.jsx(ie,{path:"/dashboard/support/kb/:slug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(_1,{})})})}),m.jsx(ie,{path:"/dashboard/support/tickets",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(S1,{})})})}),m.jsx(ie,{path:"/dashboard/support/create",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(x1,{})})})}),m.jsx(ie,{path:"/dashboard/support/tickets/:ticketNumber",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(E1,{})})})}),m.jsx(ie,{path:"/dashboard/settings",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(v1,{})})})}),m.jsx(ie,{path:"/dashboard/help",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(_q,{})})})}),m.jsx(ie,{path:"/dashboard/card-factory",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Tq,{})})})}),m.jsx(ie,{path:"/dashboard/my-designs",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(El,{})})})}),m.jsx(ie,{path:"/dashboard/catalog/my-products",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(El,{})})})}),m.jsx(ie,{path:"/dashboard/my-designs/published",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(El,{})})})}),m.jsx(ie,{path:"/dashboard/my-designs/ordered",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(El,{})})})}),m.jsx(ie,{path:"/dashboard/notifications",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Cq,{})})})}),m.jsx(ie,{path:"/dashboard/messages",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Rq,{})})})}),m.jsx(ie,{path:"/dashboard/messages/:messageSlug",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(Oq,{})})})}),m.jsx(ie,{path:"/dashboard/settings/notifications",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(b1,{})})})}),m.jsx(ie,{path:"/dashboard/my-plan",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(pq,{})})})}),m.jsx(ie,{path:"/checkout",element:m.jsx(xe,{children:m.jsx(iq,{})})}),m.jsx(ie,{path:"/account",element:m.jsx(xe,{children:m.jsx(oq,{})})}),m.jsx(ie,{path:"/settings",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(v1,{})})})}),m.jsx(ie,{path:"/settings/notifications",element:m.jsx(xe,{children:m.jsx(ke,{children:m.jsx(b1,{})})})}),m.jsx(ie,{path:"/subscription",element:m.jsx(xe,{children:m.jsx(Yc,{to:"/dashboard/my-plan",replace:!0})})}),m.jsx(ie,{path:"/support/tickets",element:m.jsx(xe,{children:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(S1,{})}),m.jsx(at,{})]})})}),m.jsx(ie,{path:"/support/create",element:m.jsx(xe,{children:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(x1,{})}),m.jsx(at,{})]})})}),m.jsx(ie,{path:"/support/tickets/:ticketNumber",element:m.jsx(xe,{children:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(E1,{})}),m.jsx(at,{})]})})}),m.jsx(ie,{path:"/support/kb",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(w1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/support/kb/:slug",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(_1,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/camera-upload/:token",element:m.jsx(Nq,{})}),m.jsx(ie,{caseSensitive:!0,path:"/s",element:m.jsx(Dq,{})}),m.jsx(ie,{path:"/test-mockup",element:m.jsx(Iq,{})}),m.jsx(ie,{path:"/pricing",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx($q,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/apps/amazon",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Vq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/apps/shopify",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Bq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/apps/woocommerce",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(qq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/apps/noon",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Hq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/careers",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Gq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/about",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Qq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/Proof%20of%20resolution%20For%20Shopify%20App",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(zm,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/Proof of resolution For Shopify App",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(zm,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/shopify-proof-of-resolution",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(zm,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/privacy",element:m.jsx(Lq,{})}),m.jsx(ie,{path:"/terms",element:m.jsx(Pq,{})}),m.jsx(ie,{path:"/cookies",element:m.jsx(Uq,{})}),m.jsx(ie,{path:"/policies",element:m.jsx(eH,{})}),m.jsx(ie,{path:"/policies/:slug",element:m.jsx(tH,{})}),m.jsx(ie,{path:"/how-to-use",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(zq,{})}),m.jsx(at,{})]})}
1267),m.jsx(ie,{path:"/bulk-orders",element:m.jsxs(m.Fragment,{children:[m.jsx(rt,{}),m.jsx("main",{className:"flex-1",children:m.jsx(Fq,{})}),m.jsx(at,{})]})}),m.jsx(ie,{path:"/help",element:m.jsx(R1,{url:C1})}),m.jsx(ie,{path:"/contact",element:m.jsx(R1,{url:`${C1}/contact`})}),m.jsx(ie,{path:"*",element:m.jsx(Aq,{})})]})})}),m.jsx(j8,{}),m.jsx(pV,{})]})]})})}));console.log=()=>{},console.info=()=>{},console.debug=()=>{};const Qc=document.getElementById("root"),O1=m.jsx(ne.StrictMode,{children:m.jsx(nH,{})});Qc.querySelector(':scope > [data-seo-prerendered-app="true"]')?(Qc.querySelectorAll(":scope > noscript").forEach(e=>e.remove()),mx.hydrateRoot(Qc,O1)):mx.createRoot(Qc).render(O1);window.requestAnimationFrame(()=>{window.setTimeout(()=>{de(async()=>{const{initializeCustomerTelemetry:e}=await import("./customer-telemetry-CsJnxtdp.js");return{initializeCustomerTelemetry:e}},[]).then(({initializeCustomerTelemetry:e})=>e()).catch(()=>{})},0)});export{t5 as $,_g as A,vn as B,Xl as C,Ky as D,Cg as E,r5 as F,ud as G,jg as H,wg as I,Jr as J,m5 as K,VE as L,d5 as M,Bm as N,v5 as O,BE as P,f5 as Q,Zt as R,ct as S,hH as T,y5 as U,n5 as V,Pw as W,Jf as X,jl as Y,uH as Z,de as _,Gi as a,JH as a$,Jy as a0,ev as a1,g5 as a2,Z$ as a3,X$ as a4,J$ as a5,ne as a6,SH as a7,xH as a8,EH as a9,x2 as aA,c7 as aB,rA as aC,aA as aD,oA as aE,G$ as aF,h5 as aG,aB as aH,Eg as aI,n7 as aJ,x5 as aK,gO as aL,av as aM,iv as aN,ov as aO,aH as aP,j$ as aQ,kH as aR,jH as aS,IH as aT,LH as aU,t7 as aV,a5 as aW,u7 as aX,i7 as aY,s7 as aZ,l7 as a_,DH as aa,T$ as ab,Xf as ac,wH as ad,_H as ae,Ce as af,s5 as ag,um as ah,b5 as ai,TV as aj,iH as ak,mH as al,a7 as am,o7 as an,HO as ao,sC as ap,ed as aq,Zo as ar,gt as as,xt as at,cC as au,Me as av,ai as aw,r7 as ax,$H as ay,Dw as az,x as b,eP as b$,Q$ as b0,V$ as b1,BH as b2,sA as b3,iA as b4,VH as b5,fV as b6,UO as b7,zO as b8,$O as b9,ri as bA,Uz as bB,zz as bC,ii as bD,Fy as bE,$z as bF,AC as bG,HC as bH,$y as bI,hC as bJ,Dy as bK,Ny as bL,Fz as bM,yj as bN,M5 as bO,w2 as bP,RC as bQ,nF as bR,rF as bS,zC as bT,KT as bU,ur as bV,Zg as bW,Rr as bX,i5 as bY,_V as bZ,_l as b_,VO as ba,FO as bb,hV as bc,BO as bd,TH as be,AH as bf,Lw as bg,CH as bh,RH as bi,NH as bj,OH as bk,xe as bl,Ry as bm,qH as bn,St as bo,Ke as bp,YL as bq,na as br,ue as bs,QL as bt,Er as bu,oP as bv,L as bw,qe as bx,gl as by,tf as bz,We as c,RE as c0,ht as c1,aP as c2,CT as c3,RT as c4,yH as c5,Cy as c6,_y as c7,Fe as c8,cH as c9,MH as cA,S2 as cB,f7 as cC,Fk as cD,ie as cE,Yc as cF,HH as cG,FE as cH,ea as cI,ZH as cJ,XH as cK,KH as cL,WH as cM,o5 as cN,d1 as cO,z2 as cP,rt as cQ,at as cR,rB as cS,vO as ca,If as cb,vH as cc,uV as cd,cV as ce,DO as cf,kO as cg,IO as ch,LO as ci,jO as cj,pA as ck,GH as cl,PH as cm,UH as cn,zH as co,FH as cp,e7 as cq,gH as cr,tu as cs,z5 as ct,F5 as cu,Z1 as cv,qL as cw,ST as cx,vT as cy,EP as cz,ru as d,_T as e,fH as f,pH as g,pg as h,pe as i,m as j,Hi as k,j5 as l,S5 as m,ta as n,YH as o,QH as p,cm as q,ff as r,dH as s,lv as t,Kt as u,Rm as v,kw as w,jw as x,Wy as y,Tg as z};

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.