1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-CSPa52NZ.js","assets/grid-chart.module.css-B4DgdMZ7.js","assets/IconX-B50qDTAe.js","assets/IconExternalLink-DcQXcLz7.js","assets/SimpleGrid-DkEuk0DW.js","assets/Select-DebRlW67.js","assets/OptionsDropdown-wonErrz5.js","assets/CheckIcon-DkMc45y2.js","assets/HandleLink-CMsO54nu.js","assets/ConnectAccountModal-CtLwaYHv.js","assets/IconInfoCircle-CQg5L7ni.js","assets/Code-YtMEZkZ5.js","assets/Textarea-BtbUvWWM.js","assets/get-env-uyVen0u2.js","assets/FileButton-CykIGdWi.js","assets/IconUpload-CR5P8PK7.js","assets/IconArrowLeft-cAVPTBNq.js","assets/time-format-A04hRRvf.js","assets/IconMessage-ByV_OeXR.js","assets/IconPhoto-Cq-lzySQ.js","assets/IconChevronRight-Bs3jiBox.js","assets/Image-Ia4YApv6.js","assets/IconTrash-DIXYcrq7.js","assets/OverviewPage-G5uvgcwB.js","assets/ErrorState-gVNyx0--.js","assets/IconCopy-B63sUmw8.js","assets/SegmentedControl-CNEtbfTu.js","assets/IconArrowRight-Ajq43paw.js","assets/IconSend-D-OEBegQ.js","assets/IconMessageReply-B0QqDoCF.js","assets/IconHeart-CFNXoJCy.js","assets/IconRepeat-BAxCrsfr.js","assets/AreaChart-DF3EymE-.js","assets/IconHeartbeat-BJm5Ye4o.js","assets/IconClock-DGXUTa2e.js","assets/ChatPage-DylfVvxn.js","assets/useConfirm-4D74KrCi.js","assets/AiWriteButton-BOd6FUXb.js","assets/WatchAuthorButton-VV-g86IZ.js","assets/IconPlus-B47PY1MC.js","assets/IconRobot-wVbiDQ85.js","assets/IconUserOff-CVzBARaR.js","assets/IconAt-o0rM45xa.js","assets/IconEye-Clupefz6.js","assets/Collapse-BaYf95bQ.js","assets/IconQuote-DAmadQor.js","assets/IconMessageCircle-BIgLQuMG.js","assets/AccountsPage-CjPEJ4-G.js","assets/BannerPicker-BEfKaDj5.js","assets/IconDeviceFloppy-DgEyIcAH.js","assets/EmptyState-BpgfYYCq.js","assets/IconChartBar-BDaV4nnQ.js","assets/Checkbox-CVTqs_Fd.js","assets/InputsGroupFieldset-C0syow2C.js","assets/IconWorld-D3uurcdR.js","assets/CampaignsPage-neXt4pu9.js","assets/RiskBadge-DX_mBJmP.js","assets/draftStorage-BA_l97c0.js","assets/NewCampaignChooser-DBUM3Zax.js","assets/IconCalendar-OaV4qSkS.js","assets/IconUserPlus-zPvIjFMg.js","assets/IconRoute-BmxJMQgj.js","assets/NewDmCampaignPage-D7Z8xiQf.js","assets/IconFlask-Q5Q6JTza.js","assets/AccountPicker-M2R_QSt1.js","assets/useDraftAutosave-BRfAYMIp.js","assets/NumberInput-EbCp_odp.js","assets/Switch-Bm85N10X.js","assets/NewAutoEngagePage-DsF2rIcC.js","assets/MultiSelect-CJSWniGq.js","assets/Pill-yNBbBYnE.js","assets/PillsInput-BO1u7Wrq.js","assets/Slider-BN-TlbvN.js","assets/NewReplyBoostPage-uDwKuxi0.js","assets/NewAutoPostsPage-CiAlIseG.js","assets/HooksLibraryModal-DsEzYq3b.js","assets/IconWand-C0msnEB9.js","assets/ListsPage-D3_5czjL.js","assets/ProspectClaimBadge-2xQ265-n.js","assets/Table-5ftamFSf.js","assets/IconFileSpreadsheet-DH5pdkbt.js","assets/IconEdit-yVOCeDQ1.js","assets/TemplatesPage-DC6yLju8.js","assets/HistoryPage-DHJIy0xV.js","assets/BrandPage-D8Oucp25.js","assets/Radio-BhZSb0du.js","assets/LeadsPage-Tu93FEDs.js","assets/IconDownload-CbNmsJhq.js","assets/AudiencePage-jdiIbR0D.js","assets/IconAlertCircle-CMVlR14T.js","assets/IconTrendingUp-BCwZs3xF.js","assets/DiscoverPage-UBkd-W8R.js","assets/IntentPage-BEY5ZesF.js","assets/IconBookmark-OdqwEN7V.js","assets/IconMinus-BVycA7-_.js","assets/GuardrailsPage-BERpz0VU.js","assets/AccountsPerformancePage-BIeDhj_F.js","assets/OnboardingPage-Dm5w2QJC.js","assets/TermsPage-hFvrUG7g.js","assets/Container-B1Ve5pz3.js","assets/PrivacyPage-BJvocxsG.js","assets/NewFollowUnfollowPage--MguVrzE.js","assets/NewSequencePage-Bn99HeMV.js","assets/IconArrowDown-DMfekS2f.js","assets/CopilotPage-CBpHiwkU.js","assets/TagsInput-BFXHhTYh.js","assets/CampaignDetailPage-BGBOHbbt.js","assets/ThreadEditor-CdQzLMVP.js","assets/AccountDetailPage-DN6WAyp_.js","assets/IconFlame-BMTS6eFH.js","assets/BillingPage-PY68eJ9l.js","assets/ApprovalsPage-cz-PsiGL.js","assets/CalendarPage-B_kG0eVJ.js","assets/BlocklistPage-D0aZ9sV8.js","assets/ContentSourcesPage-CdIc7f7x.js","assets/PostingIntelligencePage-CNXoqCH_.js","assets/TriggersPage-Bbh5o7Gw.js","assets/ProspectPage-DTvvNu1o.js","assets/AuditPage-DwjU2x9p.js","assets/SupportPage-CPqkIJUN.js","assets/McpPage-kcVRiTeO.js","assets/ComposePage-BIeo3EuD.js","assets/InspirationPage-BrQaOGSE.js","assets/PipelinePage-b-zhDTHq.js","assets/CompetitorsPage-CT6gewoD.js","assets/ReplyGuyPage-wAGP4L1v.js","assets/BaitPage-WyrGqjga.js","assets/LoopsPage-CPHEE5hn.js","assets/SettingsPage-V8eVCacq.js","assets/TopEngagersPage-V2ZSNCeb.js"])))=>i.map(i=>d[i]); 2var Qg=e=>{throw TypeError(e)};var Rd=(e,t,n)=>t.has(e)||Qg("Cannot "+n);var C=(e,t,n)=>(Rd(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n
vendor: 4,311 bytes, lines 2-10
2)=>t.has(e)?Qg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),W=(e,t,n,r)=>(Rd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),re=(e,t,n)=>(Rd(e,t,"access private method"),n);var jl=(e,t,n,r)=>({set _(o){W(e,t,o,n)},get _(){return C(e,t,r)}});function cC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[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"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var S5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g1={exports:{}},xu={},v1={exports:{}},oe={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its 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 al=Symbol.for("react.element"),uC=Symbol.for("react.portal"),dC=Symbol.for("react.fragment"),fC=Symbol.for("react.strict_mode"),pC=Symbol.for("react.profiler"),hC=Symbol.for("react.provider"),mC=Symbol.for("react.context"),gC=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),yC=Symbol.for("react.memo"),wC=Symbol.for("react.lazy"),Yg=Symbol.iterator;function SC(e){return e===null||typeof e!="object"?null:(e=Yg&&e[Yg]||e["@@iterator"],typeof e=="function"?e:null)}var y1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w1=Object.assign,S1={};function Ei(e,t,n){this.props=e,this.context=t,this.refs=S1,this.updater=n||y1}Ei.prototype.isReactComponent={};Ei.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ei.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b1(){}b1.prototype=Ei.prototype;function yh(e,t,n){this.props=e,this.context=t,this.refs=S1,this.updater=n||y1}var wh=yh.prototype=new b1;wh.constructor=yh;w1(wh,Ei.prototype);wh.isPureReactComponent=!0;var Jg=Array.isArray,x1=Object.prototype.hasOwnProperty,Sh={current:null},_1={key:!0,ref:!0,__self:!0,__source:!0};function C1(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)x1.call(t,r)&&!_1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:al,type:e,key:s,ref:i,props:o,_owner:Sh.current}}function bC(e,t){return{$$typeof:al,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bh(e){return typeof e=="object"&&e!==null&&e.$$typeof===al}function xC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xg=/\/+/g;function Id(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xC(""+e.key):t.toString(36)}function ac(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case al:case uC:i=!0}}
vendor: 4,575 bytes, lines 10-18
10if(i)return i=e,o=o(i),e=r===""?"."+Id(i,0):r,Jg(o)?(n="",e!=null&&(n=e.replace(Xg,"$&/")+"/"),ac(o,t,n,"",function(c){return c})):o!=null&&(bh(o)&&(o=bC(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Xg,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Jg(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Id(s,a);i+=ac(s,t,n,l,o)}else if(l=SC(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Id(s,a++),i+=ac(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ml(e,t,n){if(e==null)return e;var r=[],o=0;return ac(e,r,"","",function(s){return t.call(n,s,o++)}),r}function _C(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ut={current:null},lc={transition:null},CC={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:lc,ReactCurrentOwner:Sh};function E1(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:Ml,forEach:function(e,t,n){Ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ml(e,function(){t++}),t},toArray:function(e){return Ml(e,function(t){return t})||[]},only:function(e){if(!bh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=Ei;oe.Fragment=dC;oe.Profiler=pC;oe.PureComponent=yh;oe.StrictMode=fC;oe.Suspense=vC;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CC;oe.act=E1;oe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=w1({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Sh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)x1.call(t,l)&&!_1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:al,type:e.type,key:o,ref:s,props:r,_owner:i}};oe.createContext=function(e){return e={$$typeof:mC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hC,_context:e},e.Consumer=e};oe.createElement=C1;oe.createFactory=function(e){var t=C1.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:gC,render:e}};oe.isValidElement=bh;oe.lazy=function(e){return{$$typeof:wC,_payload:{_status:-1,_result:e},_init:_C}};oe.memo=function(e,t){return{$$typeof:yC,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=lc.transition;lc.transition={};try{e()}finally{lc.transition=t}};oe.unstable_act=E1;oe.useCallback=function(e,t){return ut.current.useCallback(e,t)};oe.useContext=function(e){return ut.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};oe.useEffect=function(e,t){return ut.current.useEffect(e,t)};oe.useId=function(){return ut.current.useId()};oe.useImperativeHandle=function(e,t,n){return ut.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return ut.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return ut.current.useReducer(e,t,n)};oe.useRef=function(e){return ut.current.useRef(e)};oe.useState=function(e){return ut.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return ut.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return ut.current.useTransition()};oe.version="18.3.1";v1.exports=oe;var m=v1.exports;const gt=m1(m),P1=cC({__proto__:null,default:gt},[m]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its 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 EC=m,PC=Symbol.for("react.element"),TC=Symbol.for("react.fragment"),kC=Object.prototype.hasOwnProperty,RC=EC.__SECRET_INT
vendor: 5,227 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,IC={key:!0,ref:!0,__self:!0,__source:!0};function T1(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)kC.call(t,r)&&!IC.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:PC,type:e,key:s,ref:i,props:o,_owner:RC.current}}xu.Fragment=TC;xu.jsx=T1;xu.jsxs=T1;g1.exports=xu;var f=g1.exports,Nf={},k1={exports:{}},jt={},R1={exports:{}},I1={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its 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 */(function(e){function t(k,O){var j=k.length;k.push(O);e:for(;0<j;){var F=j-1>>>1,q=k[F];if(0<o(q,O))k[F]=O,k[j]=q,j=F;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var O=k[0],j=k.pop();if(j!==O){k[0]=j;e:for(var F=0,q=k.length,se=q>>>1;F<se;){var me=2*(F+1)-1,ge=k[me],le=me+1,fe=k[le];if(0>o(ge,j))le<q&&0>o(fe,ge)?(k[F]=fe,k[le]=j,F=le):(k[F]=ge,k[me]=j,F=me);else if(le<q&&0>o(fe,j))k[F]=fe,k[le]=j,F=le;else break e}}return O}function o(k,O){var j=k.sortIndex-O.sortIndex;return j!==0?j:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,d=null,p=3,h=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function x(k){if(g=!1,w(k),!v)if(n(l)!==null)v=!0,H(_);else{var O=n(c);O!==null&&z(x,O.startTime-k)}}function _(k,O){v=!1,g&&(g=!1,S(E),E=-1),h=!0;var j=p;try{for(w(O),d=n(l);d!==null&&(!(d.expirationTime>O)||k&&!D());){var F=d.callback;if(typeof F=="function"){d.callback=null,p=d.priorityLevel;var q=F(d.expirationTime<=O);O=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(l)&&r(l),w(O)}else r(l);d=n(l)}if(d!==null)var se=!0;else{var me=n(c);me!==null&&z(x,me.startTime-O),se=!1}return se}finally{d=null,p=j,h=!1}}var P=!1,T=null,E=-1,I=5,N=-1;function D(){return!(e.unstable_now()-N<I)}function L(){if(T!==null){var k=e.unstable_now();N=k;var O=!0;try{O=T(!0,k)}finally{O?G():(P=!1,T=null)}}else P=!1}var G;if(typeof y=="function")G=function(){y(L)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,U=B.port2;B.port1.onmessage=L,G=function(){U.postMessage(null)}}else G=function(){b(L,0)};function H(k){T=k,P||(P=!0,G())}function z(k,O){E=b(function(){k(e.unstable_now())},O)}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(k){k.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,H(_))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var O=3;break;default:O=p}var j=p;p=O;try{return k()}finally{p=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,O){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var j=p;p=k;try{return O()}finally{p=j}},e.unstable_scheduleCallback=function(k,O,j){var F=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?F+j:F):j=F,k){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=j+q,k={id:u++,callback:O,priorityLevel:k,startTime:j,expirationTime:q,sortIndex:-1},j>F?(k.sortIndex=j,t(c,k),n(l)===null&&k===n(c)&&(g?(S(E),E=-1):g=!0,z(x,j-F))):(k.sortIndex=q,t(l,k),v||h||(v=!0,H(_))),k},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(k){var O=p;return function(){var j=p;p=O;try{return k.apply(this,arguments)}finally{p=j}}}})(I1);R1.exports=I1;var NC=R1.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its 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 OC=m,Ot=NC;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var N1=new Set,Ea={};
vendor: 4,996 bytes, line 34
34function cs(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(Ea[e]=t,e=0;e<t.length;e++)N1.add(t[e])}var rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Of=Object.prototype.hasOwnProperty,AC=/^[: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]*$/,Zg={},ev={};function jC(e){return Of.call(ev,e)?!0:Of.call(Zg,e)?!1:AC.test(e)?ev[e]=!0:(Zg[e]=!0,!1)}function MC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LC(e,t,n,r){if(t===null||typeof t>"u"||MC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xh=/[\-:]([a-z])/g;function _h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xh,_h);Qe[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xh,_h);Qe[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xh,_h);Qe[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ch(e,t,n,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LC(t,n,o,r)&&(n=null),r||o===null?jC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 5,027 bytes, lines 34-38
34var hr=OC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ll=Symbol.for("react.element"),Ps=Symbol.for("react.portal"),Ts=Symbol.for("react.fragment"),Eh=Symbol.for("react.strict_mode"),Af=Symbol.for("react.profiler"),O1=Symbol.for("react.provider"),A1=Symbol.for("react.context"),Ph=Symbol.for("react.forward_ref"),jf=Symbol.for("react.suspense"),Mf=Symbol.for("react.suspense_list"),Th=Symbol.for("react.memo"),Ir=Symbol.for("react.lazy"),j1=Symbol.for("react.offscreen"),tv=Symbol.iterator;function Ki(e){return e===null||typeof e!="object"?null:(e=tv&&e[tv]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,Nd;function oa(e){if(Nd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nd=t&&t[1]||""}return` 35`+Nd+e}var Od=!1;function Ad(e,t){if(!e||Od)return"";Od=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(` 36`),s=r.stack.split(` 37`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=` 38`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Od=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oa(e):""}function $C(e){switch(e.tag){case 5:return oa(e.type);case 16:return oa("Lazy");case 13:return oa("Suspense");case 19:return oa("SuspenseList");case 0:case 2:case 15:return e=Ad(e.type,!1),e;case 11:return e=Ad(e.type.render,!1),e;case 1:return e=Ad(e.type,!0),e;default:return""}}function Lf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case Ps:return"Portal";case Af:return"Profiler";case Eh:return"StrictMode";case jf:return"Suspense";case Mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A1:return(e.displayName||"Context")+".Consumer";case O1:return(e._context.displayName||"Context")+".Provider";case Ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Th:return t=e.displayName||null,t!==null?t:Lf(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return Lf(e(t))}catch{}}return null}function DC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lf(t);case 8:return t===Eh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zC(e){var t=M1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $l(e){e._valueTracker||(e._valueTracker=zC(e))}function L1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=M1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ic(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $f(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=uo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 38
38function $1(e,t){t=t.checked,t!=null&&Ch(e,"checked",t,!1)}function Df(e,t){$1(e,t);var n=uo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zf(e,t.type,n):t.hasOwnProperty("defaultValue")&&zf(e,t.type,uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zf(e,t,n){(t!=="number"||Ic(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sa=Array.isArray;function Ds(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+uo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Uf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ov(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(sa(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:uo(n)}}function D1(e,t){var n=uo(t.value),r=uo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function sv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function z1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ff(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dl,U1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dl=Dl||document.createElement("div"),Dl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},UC=["Webkit","ms","Moz","O"];Object.keys(pa).forEach(function(e){UC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pa[t]=pa[e]})});function F1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pa.hasOwnProperty(e)&&pa[e]?(""+t).trim():t+"px"}function B1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=F1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var FC=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bf(e,t){if(t){if(FC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Vf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wf=null;function kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hf=null,zs=null,Us=null;function iv(e){if(e=ul(e)){if(typeof Hf!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Tu(t),Hf(e.stateNode,e.type,t))}}function V1(e){zs?Us?Us.push(e):Us=[e]:zs=e}function W1(){if(zs){var e=zs,t=Us;if(Us=zs=null,iv(e),t)for(e=0;e<t.length;e++)iv(t[e])}}function H1(e,t){return e(t)}function G1(){}var jd=!1;function K1(e,t,n){if(jd)return e(t,n);jd=!0;try{return H1(e,t,n)}finally{jd=!1,(zs!==null||Us!==null)&&(G1(),W1())}}function Ta(e,t){var n=e.stateNode;if(n===null)return null;var r=Tu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var Gf=!1;if(rr)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Gf=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Gf=!1}function BC(e,t,n,r,o,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ha=!1,Nc=null,Oc=!1,Kf=null,VC={onError:function(e){ha=!0,Nc=e}};function WC(e,t,n,r,o,s,i,a,l){ha=!1,Nc=null,BC.apply(VC,arguments)}function HC(e,t,n,r,o,s,i,a,l){if(WC.apply(this,arguments),ha){if(ha){var c=Nc;ha=!1,Nc=null}else throw Error(M(198));Oc||(Oc=!0,Kf=c)}}function us(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function q1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function av(e){if(us(e)!==e)throw Error(M(188))}function GC(e){var t=e.alternate;if(!t){if(t=us(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return av(o),e;if(s===r)return av(o),t;s=s.sibling}throw Error(M(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Q1(e){return e=GC(e),e!==null?Y1(e):null}function Y1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Y1(e);if(t!==null)return t;e=e.sibling}return null}var J1=Ot.unstable_scheduleCallback,lv=Ot.unstable_cancelCallback,KC=Ot.unstable_shouldYield,qC=Ot.unstable_requestPaint,Re=Ot.unstable_now,QC=Ot.unstable_getCurrentPriorityLevel,Rh=Ot.unstable_ImmediatePriority,X1=Ot.unstable_UserBlockingPriority,Ac=Ot.unstable_NormalPriority,YC=Ot.unstable_LowPriority,Z1=Ot.unstable_IdlePriority,_u=null,kn=null;function JC(e){if(kn&&typeof kn.onCommitFiberRoot=="function")try{kn.onCommitFiberRoot(_u,e,void 0,(e.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:eE,XC=Math.log,ZC=Math.LN2;function eE(e){return e>>>=0,e===0?32:31-(XC(e)/ZC|0)|0}var zl=64,Ul=4194304;function ia(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=ia(a):(s&=i,s!==0&&(r=ia(s)))}else i=n&~o,i!==0?r=ia(i):s!==0&&(r=ia(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ln(t),o=1<<n,r|=e[n],t&=~o;return r}function tE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-ln(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=tE(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function qf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ew(){var e=zl;return zl<<=1,!(zl&4194240)&&(zl=64),e}function Md(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function rE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ln(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Ih(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function tw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nw,Nh,rw,ow,sw,Qf=!1,Fl=[],Yr=null,Jr=null,Xr=null,ka=new Map,Ra=new Map,Ar=[],oE="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 submit".split(" ");function cv(e,t){switch(e){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ra.delete(t.pointerId)}}function Qi(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=ul(t),t!==null&&Nh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function sE(e,t,n,r,o){switch(t){case"focusin":return Yr=Qi(Yr,e,t,n,r,o),!0;case"dragenter":return Jr=Qi(Jr,e,t,n,r,o),!0;case"mouseover":return Xr=Qi(Xr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ka.set(s,Qi(ka.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ra.set(s,Qi(Ra.get(s)||null,e,t,n,r,o)),!0}return!1}function iw(e){var t=Ao(e.target);if(t!==null){var n=us(t);if(n!==null){if(t=n.tag,t===13){if(t=q1(n),t!==null){e.blockedOn=t,sw(e.priority,function(){rw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wf=r,n.target.dispatchEvent(r),Wf=null}else return t=ul(n),t!==null&&Nh(t),e.blockedOn=n,!1;t.shift()}return!0}function uv(e,t,n){cc(e)&&n.delete(t)}function iE(){Qf=!1,Yr!==null&&cc(Yr)&&(Yr=null),Jr!==null&&cc(Jr)&&(Jr=null),Xr!==null&&cc(Xr)&&(Xr=null),ka.forEac
vendor: 11,841 bytes, line 38
38h(uv),Ra.forEach(uv)}function Yi(e,t){e.blockedOn===t&&(e.blockedOn=null,Qf||(Qf=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,iE)))}function Ia(e){function t(o){return Yi(o,e)}if(0<Fl.length){Yi(Fl[0],e);for(var n=1;n<Fl.length;n++){var r=Fl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yr!==null&&Yi(Yr,e),Jr!==null&&Yi(Jr,e),Xr!==null&&Yi(Xr,e),ka.forEach(t),Ra.forEach(t),n=0;n<Ar.length;n++)r=Ar[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ar.length&&(n=Ar[0],n.blockedOn===null);)iw(n),n.blockedOn===null&&Ar.shift()}var Fs=hr.ReactCurrentBatchConfig,Mc=!0;function aE(e,t,n,r){var o=de,s=Fs.transition;Fs.transition=null;try{de=1,Oh(e,t,n,r)}finally{de=o,Fs.transition=s}}function lE(e,t,n,r){var o=de,s=Fs.transition;Fs.transition=null;try{de=4,Oh(e,t,n,r)}finally{de=o,Fs.transition=s}}function Oh(e,t,n,r){if(Mc){var o=Yf(e,t,n,r);if(o===null)Hd(e,t,r,Lc,n),cv(e,r);else if(sE(o,e,t,n,r))r.stopPropagation();else if(cv(e,r),t&4&&-1<oE.indexOf(e)){for(;o!==null;){var s=ul(o);if(s!==null&&nw(s),s=Yf(e,t,n,r),s===null&&Hd(e,t,r,Lc,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Hd(e,t,r,null,n)}}var Lc=null;function Yf(e,t,n,r){if(Lc=null,e=kh(r),e=Ao(e),e!==null)if(t=us(e),t===null)e=null;else if(n=t.tag,n===13){if(e=q1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lc=e,null}function aw(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(QC()){case Rh:return 1;case X1:return 4;case Ac:case YC:return 16;case Z1:return 536870912;default:return 16}default:return 16}}var Kr=null,Ah=null,uc=null;function lw(){if(uc)return uc;var e,t=Ah,n=t.length,r,o="value"in Kr?Kr.value:Kr.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return uc=o.slice(e,1<r?1-r:void 0)}function dc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bl(){return!0}function dv(){return!1}function Mt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Bl:dv,this.isPropagationStopped=dv,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),t}var Pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jh=Mt(Pi),cl=Pe({},Pi,{view:0,detail:0}),cE=Mt(cl),Ld,$d,Ji,Cu=Pe({},cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ji&&(Ji&&e.type==="mousemove"?(Ld=e.screenX-Ji.screenX,$d=e.screenY-Ji.screenY):$d=Ld=0,Ji=e),Ld)},movementY:function(e){return"movementY"in e?e.movementY:$d}}),fv=Mt(Cu),uE=Pe({},Cu,{dataTransfer:0}),dE=Mt(uE),fE=Pe({},cl,{relatedTarget:0}),Dd=Mt(fE),pE=Pe({},Pi,{animationName:0,elapsedTime:0,pseudoElement:0}),hE=Mt(pE),mE=Pe({},Pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gE=Mt(mE),vE=Pe({},Pi,{data:0}),pv=Mt(vE),yE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wE={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"},SE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=SE[e])?!!t[e]:!1}function Mh(){return bE}var xE=Pe({},cl,{key:function(e){if(e.key){var t=yE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mh,charCode:function(e){return e.type==="keypress"?dc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_E=Mt(xE),CE=Pe({},Cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hv=Mt(CE),EE=Pe({},cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mh}),PE=Mt(EE),TE=Pe({},Pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),kE=Mt(TE),RE=Pe({},Cu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),IE=Mt(RE),NE=[9,13,27,32],Lh=rr&&"CompositionEvent"in window,ma=null;rr&&"documentMode"in document&&(ma=document.documentMode);var OE=rr&&"TextEvent"in window&&!ma,cw=rr&&(!Lh||ma&&8<ma&&11>=ma),mv=" ",gv=!1;function uw(e,t){switch(e){case"keyup":return NE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ks=!1;function AE(e,t){switch(e){case"compositionend":return dw(t);case"keypress":return t.which!==32?null:(gv=!0,mv);case"textInput":return e=t.data,e===mv&&gv?null:e;default:return null}}function jE(e,t){if(ks)return e==="compositionend"||!Lh&&uw(e,t)?(e=lw(),uc=Ah=Kr=null,ks=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cw&&t.locale!=="ko"?null:t.data;default:return null}}var ME={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 vv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ME[e.type]:t==="textarea"}function fw(e,t,n,r){V1(r),t=$c(t,"onChange"),0<t.length&&(n=new jh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ga=null,Na=null;function LE(e){_w(e,0)}function Eu(e){var t=Ns(e);if(L1(t))return e}function $E(e,t){if(e==="change")return t}var pw=!1;if(rr){var zd;if(rr){var Ud="oninput"in document;if(!Ud){var yv=document.createElement("div");yv.setAttribute("oninput","return;"),Ud=typeof yv.oninput=="function"}zd=Ud}else zd=!1;pw=zd&&(!document.documentMode||9<document.documentMode)}function wv(){ga&&(ga.detachEvent("onpropertychange",hw),Na=ga=null)}function hw(e){if(e.propertyName==="value"&&Eu(Na)){var t=[];fw(t,Na,e,kh(e)),K1(LE,t)}}function DE(e,t,n){e==="focusin"?(wv(),ga=t,Na=n,ga.attachEvent("onpropertychange",hw)):e==="focusout"&&wv()}function zE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Eu(Na)}function UE(e,t){if(e==="click")return Eu(t)}function FE(e,t){if(e==="input"||e==="change")return Eu(t)}function BE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fn=typeof Object.is=="function"?Object.is:BE;function Oa(e,t){if(fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Of.call(t,o)||!fn(e[o],t[o]))return!1}return!0}function Sv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bv(e,t){var n=Sv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sv(n)}}function mw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gw(){for(var e=window,t=Ic();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ic(e.document)}return t}function $h(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function VE(e){var t=gw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mw(n.ownerDocument.documentElement,n)){if(r!==null&&$h(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=bv(n,s);var i=bv(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var WE=rr&&"documentMode"in document&&11>=document.documentMode,Rs=null,Jf=null,va=null,Xf=!1;function xv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xf||Rs==null||Rs!==Ic(r)||(r=Rs,"selectionStart"in r&&$h(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),va&&Oa(va,r)||(va=r,r=$c(Jf,"onSelect"),0<r.length&&(t=new jh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Rs)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Is={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionend:Vl("Transition","TransitionEnd")},Fd={},vw={};rr&&(vw=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function Pu(e){if(Fd[e])return Fd[e];if(!Is[e])return e;var t=Is[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vw)return Fd[e]=t[n];return e}var yw=Pu("animationend"),ww=Pu("animationiteration"),Sw=Pu("animationstart"),bw=Pu("transitionend"),xw=new Map,_v="abort auxClick 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(" ");function mo(e,t){xw.set(e,t),cs(t,[e])}for(var Bd=0;Bd<_v.length;Bd++){var Vd=_v[Bd],HE=Vd.toLowerCase(),GE=Vd[0].toUpperCase()+Vd.slice(1);mo(HE,"on"+GE)}mo(yw,"onAnimationEnd");mo(ww,"onAnimationIteration");mo(Sw,"onAnimationStart");mo("dblclick","onDoubleClick");mo("focusin","onFocus");mo("focusout","onBlur");mo(bw,"onTransitionEnd");ci("onMouseEnter",["mouseout","mouseover"]);ci("onMouseLeave",["mouseout","mouseover"]);ci("onPointerEnter",["pointerout","pointerover"]);ci("onPointerLeave",["pointerout","pointerover"]);cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cs("onBeforeInput",["compositionend","keypress","textInput","paste"]);cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var aa="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(" "),KE=new Set("cancel close invalid load scroll toggle".split(" ").concat(aa));function Cv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,HC(r,t,void 0,e),e.currentTarget=null}function _w(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;Cv(o,a,c),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;Cv(o,a,c),s=l}}}if(Oc)throw e=Kf,Oc=!1,Kf=null,e}function ye(e,t){var n=t[rp];n===void 0&&(n=t[rp]=new Set);var r=e+"__bubble";n.has(r)||(Cw(t,e,2,!1),n.add(r))}function Wd(e,t,n){var r=0;t&&(r|=4),Cw(n,e,r,t)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function Aa(e){if(!e[Wl]){e[Wl]=!0,N1.forEach(function(n){n!=="selectionchange"&&(KE.has(n)||Wd(n,!1,e),Wd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wl]||(t[Wl]=!0,Wd("selectionchange",!1,t))}}function Cw(e,t,n,r){switch(aw(t)){case 1:var o=aE;break;case 4:o=lE;break;default:o=Oh}n=o.bind(null,t,n,e),o=void 0,!Gf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hd(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 2,527 bytes, line 38
38if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=Ao(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}K1(function(){var c=s,u=kh(n),d=[];e:{var p=xw.get(e);if(p!==void 0){var h=jh,v=e;switch(e){case"keypress":if(dc(n)===0)break e;case"keydown":case"keyup":h=_E;break;case"focusin":v="focus",h=Dd;break;case"focusout":v="blur",h=Dd;break;case"beforeblur":case"afterblur":h=Dd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=fv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=dE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=PE;break;case yw:case ww:case Sw:h=hE;break;case bw:h=kE;break;case"scroll":h=cE;break;case"wheel":h=IE;break;case"copy":case"cut":case"paste":h=gE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=hv}var g=(t&4)!==0,b=!g&&e==="scroll",S=g?p!==null?p+"Capture":null:p;g=[];for(var y=c,w;y!==null;){w=y;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,S!==null&&(x=Ta(y,S),x!=null&&g.push(ja(y,x,w)))),b)break;y=y.return}0<g.length&&(p=new h(p,v,null,n,u),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Wf&&(v=n.relatedTarget||n.fromElement)&&(Ao(v)||v[or]))break e;if((h||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=c,v=v?Ao(v):null,v!==null&&(b=us(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(g=fv,x="onMouseLeave",S="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=hv,x="onPointerLeave",S="onPointerEnter",y="pointer"),b=h==null?p:Ns(h),w=v==null?p:Ns(v),p=new g(x,y+"leave",h,n,u),p.target=b,p.relatedTarget=w,x=null,Ao(u)===c&&(g=new g(S,y+"enter",v,n,u),g.target=w,g.relatedTarget=b,x=g),b=x,h&&v)t:{for(g=h,S=v,y=0,w=g;w;w=vs(w))y++;for(w=0,x=S;x;x=vs(x))w++;for(;0<y-w;)g=vs(g),y--;for(;0<w-y;)S=vs(S),w--;for(;y--;){if(g===S||S!==null&&g===S.alternate)break t;g=vs(g),S=vs(S)}g=null}else g=null;h!==null&&Ev(d,p,h,g,!1),v!==null&&b!==null&&Ev(d,b,v,g,!0)}}
vendor: 5,681 bytes, lines 38-39
38e:{if(p=c?Ns(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var _=$E;else if(vv(p))if(pw)_=FE;else{_=zE;var P=DE}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(_=UE);if(_&&(_=_(e,c))){fw(d,_,n,u);break e}P&&P(e,p,c),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&zf(p,"number",p.value)}switch(P=c?Ns(c):window,e){case"focusin":(vv(P)||P.contentEditable==="true")&&(Rs=P,Jf=c,va=null);break;case"focusout":va=Jf=Rs=null;break;case"mousedown":Xf=!0;break;case"contextmenu":case"mouseup":case"dragend":Xf=!1,xv(d,n,u);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":xv(d,n,u)}var T;if(Lh)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ks?uw(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(cw&&n.locale!=="ko"&&(ks||E!=="onCompositionStart"?E==="onCompositionEnd"&&ks&&(T=lw()):(Kr=u,Ah="value"in Kr?Kr.value:Kr.textContent,ks=!0)),P=$c(c,E),0<P.length&&(E=new pv(E,e,null,n,u),d.push({event:E,listeners:P}),T?E.data=T:(T=dw(n),T!==null&&(E.data=T)))),(T=OE?AE(e,n):jE(e,n))&&(c=$c(c,"onBeforeInput"),0<c.length&&(u=new pv("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=T))}_w(d,t)})}function ja(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $c(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ta(e,n),s!=null&&r.unshift(ja(e,s,o)),s=Ta(e,t),s!=null&&r.push(ja(e,s,o))),e=e.return}return r}function vs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ev(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=Ta(n,s),l!=null&&i.unshift(ja(n,l,a))):o||(l=Ta(n,s),l!=null&&i.push(ja(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var qE=/\r\n?/g,QE=/\u0000|\uFFFD/g;function Pv(e){return(typeof e=="string"?e:""+e).replace(qE,` 39`).replace(QE,"")}function Hl(e,t,n){if(t=Pv(t),Pv(e)!==t&&n)throw Error(M(425))}function Dc(){}var Zf=null,ep=null;function tp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var np=typeof setTimeout=="function"?setTimeout:void 0,YE=typeof clearTimeout=="function"?clearTimeout:void 0,Tv=typeof Promise=="function"?Promise:void 0,JE=typeof queueMicrotask=="function"?queueMicrotask:typeof Tv<"u"?function(e){return Tv.resolve(null).then(e).catch(XE)}:np;function XE(e){setTimeout(function(){throw e})}function Gd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ia(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ia(t)}function Zr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ti=Math.random().toString(36).slice(2),En="__reactFiber$"+Ti,Ma="__reactProps$"+Ti,or="__reactContainer$"+Ti,rp="__reactEvents$"+Ti,ZE="__reactListeners$"+Ti,eP="__reactHandles$"+Ti;function Ao(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[or]||n[En]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kv(e);e!==null;){if(n=e[En])return n;e=kv(e)}return t}e=n,n=e.parentNode}return null}function ul(e){return e=e[En]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ns(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Tu(e){return e[Ma]||null}var op=[],Os=-1;function go(e){return{current:e}}function Se(e){0>Os||(e.current=op[Os],op[Os]=null,Os--)}function ve(e,t){Os++,op[Os]=e.current,e.current=t}var fo={},rt=go(fo),yt=go(!1),Xo=fo;function ui(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wt(e){return e=e.childContextTypes,e!=null}function zc(){Se(yt),Se(rt)}function Rv(e,t,n){if(rt.current!==fo)throw Error(M(168));ve(rt,t),ve(yt,n)}function Ew(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,DC(e)||"Unknown",o));return Pe({},n,r)}function Uc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,Xo=rt.current,ve(rt,e),ve(yt,yt.current),!0}function Iv(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Ew(e,t,Xo),r.__reactInternalMemoizedMergedChildContext=e,Se(yt),Se(rt),ve(rt,e)):Se(yt),ve(yt,n)}var Bn=null,ku=!1,Kd=!1;function Pw(e){Bn===null?Bn=[e]:Bn.push(e)}function tP(e){ku=!0,Pw(e)}function vo(){if(!Kd&&Bn!==null){Kd=!0;var e=0,t=de;try{var n=Bn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bn=null,ku=!1}catch(o){throw Bn!==null&&(Bn=Bn.slice(e+1)),J1(Rh,vo),o}finally{de=t,Kd=!1}}return null}var As=[],js=0,Fc=null,Bc=0,Dt=[],zt=0,Zo=null,Qn=1,Yn="";function To(e,t){As[js++]=Bc,As[js++]=Fc,Fc=e,Bc=t}
vendor: 14,483 bytes, line 39
39function Tw(e,t,n){Dt[zt++]=Qn,Dt[zt++]=Yn,Dt[zt++]=Zo,Zo=e;var r=Qn;e=Yn;var o=32-ln(r)-1;r&=~(1<<o),n+=1;var s=32-ln(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qn=1<<32-ln(t)+o|n<<o|r,Yn=s+e}else Qn=1<<s|n<<o|r,Yn=e}function Dh(e){e.return!==null&&(To(e,1),Tw(e,1,0))}function zh(e){for(;e===Fc;)Fc=As[--js],As[js]=null,Bc=As[--js],As[js]=null;for(;e===Zo;)Zo=Dt[--zt],Dt[zt]=null,Yn=Dt[--zt],Dt[zt]=null,Qn=Dt[--zt],Dt[zt]=null}var It=null,Rt=null,_e=!1,rn=null;function kw(e,t){var n=Ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,Rt=Zr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zo!==null?{id:Qn,overflow:Yn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,It=e,Rt=null,!0):!1;default:return!1}}function sp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ip(e){if(_e){var t=Rt;if(t){var n=t;if(!Nv(e,t)){if(sp(e))throw Error(M(418));t=Zr(n.nextSibling);var r=It;t&&Nv(e,t)?kw(r,n):(e.flags=e.flags&-4097|2,_e=!1,It=e)}}else{if(sp(e))throw Error(M(418));e.flags=e.flags&-4097|2,_e=!1,It=e}}}function Ov(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function Gl(e){if(e!==It)return!1;if(!_e)return Ov(e),_e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tp(e.type,e.memoizedProps)),t&&(t=Rt)){if(sp(e))throw Rw(),Error(M(418));for(;t;)kw(e,t),t=Zr(t.nextSibling)}if(Ov(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=Zr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=It?Zr(e.stateNode.nextSibling):null;return!0}function Rw(){for(var e=Rt;e;)e=Zr(e.nextSibling)}function di(){Rt=It=null,_e=!1}function Uh(e){rn===null?rn=[e]:rn.push(e)}var nP=hr.ReactCurrentBatchConfig;function Xi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function Kl(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Av(e){var t=e._init;return t(e._payload)}function Iw(e){function t(S,y){if(e){var w=S.deletions;w===null?(S.deletions=[y],S.flags|=16):w.push(y)}}function n(S,y){if(!e)return null;for(;y!==null;)t(S,y),y=y.sibling;return null}function r(S,y){for(S=new Map;y!==null;)y.key!==null?S.set(y.key,y):S.set(y.index,y),y=y.sibling;return S}function o(S,y){return S=ro(S,y),S.index=0,S.sibling=null,S}function s(S,y,w){return S.index=w,e?(w=S.alternate,w!==null?(w=w.index,w<y?(S.flags|=2,y):w):(S.flags|=2,y)):(S.flags|=1048576,y)}function i(S){return e&&S.alternate===null&&(S.flags|=2),S}function a(S,y,w,x){return y===null||y.tag!==6?(y=ef(w,S.mode,x),y.return=S,y):(y=o(y,w),y.return=S,y)}function l(S,y,w,x){var _=w.type;return _===Ts?u(S,y,w.props.children,x,w.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&Av(_)===y.type)?(x=o(y,w.props),x.ref=Xi(S,y,w),x.return=S,x):(x=yc(w.type,w.key,w.props,null,S.mode,x),x.ref=Xi(S,y,w),x.return=S,x)}function c(S,y,w,x){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=tf(w,S.mode,x),y.return=S,y):(y=o(y,w.children||[]),y.return=S,y)}function u(S,y,w,x,_){return y===null||y.tag!==7?(y=Yo(w,S.mode,x,_),y.return=S,y):(y=o(y,w),y.return=S,y)}function d(S,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ef(""+y,S.mode,w),y.return=S,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ll:return w=yc(y.type,y.key,y.props,null,S.mode,w),w.ref=Xi(S,null,y),w.return=S,w;case Ps:return y=tf(y,S.mode,w),y.return=S,y;case Ir:var x=y._init;return d(S,x(y._payload),w)}if(sa(y)||Ki(y))return y=Yo(y,S.mode,w,null),y.return=S,y;Kl(S,y)}return null}function p(S,y,w,x){var _=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return _!==null?null:a(S,y,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ll:return w.key===_?l(S,y,w,x):null;case Ps:return w.key===_?c(S,y,w,x):null;case Ir:return _=w._init,p(S,y,_(w._payload),x)}if(sa(w)||Ki(w))return _!==null?null:u(S,y,w,x,null);Kl(S,w)}return null}function h(S,y,w,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return S=S.get(w)||null,a(y,S,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ll:return S=S.get(x.key===null?w:x.key)||null,l(y,S,x,_);case Ps:return S=S.get(x.key===null?w:x.key)||null,c(y,S,x,_);case Ir:var P=x._init;return h(S,y,w,P(x._payload),_)}if(sa(x)||Ki(x))return S=S.get(w)||null,u(y,S,x,_,null);Kl(y,x)}return null}function v(S,y,w,x){for(var _=null,P=null,T=y,E=y=0,I=null;T!==null&&E<w.length;E++){T.index>E?(I=T,T=null):I=T.sibling;var N=p(S,T,w[E],x);if(N===null){T===null&&(T=I);break}e&&T&&N.alternate===null&&t(S,T),y=s(N,y,E),P===null?_=N:P.sibling=N,P=N,T=I}if(E===w.length)return n(S,T),_e&&To(S,E),_;if(T===null){for(;E<w.length;E++)T=d(S,w[E],x),T!==null&&(y=s(T,y,E),P===null?_=T:P.sibling=T,P=T);return _e&&To(S,E),_}for(T=r(S,T);E<w.length;E++)I=h(T,S,E,w[E],x),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?E:I.key),y=s(I,y,E),P===null?_=I:P.sibling=I,P=I);return e&&T.forEach(function(D){return t(S,D)}),_e&&To(S,E),_}function g(S,y,w,x){var _=Ki(w);if(typeof _!="function")throw Error(M(150));if(w=_.call(w),w==null)throw Error(M(151));for(var P=_=null,T=y,E=y=0,I=null,N=w.next();T!==null&&!N.done;E++,N=w.next()){T.index>E?(I=T,T=null):I=T.sibling;var D=p(S,T,N.value,x);if(D===null){T===null&&(T=I);break}e&&T&&D.alternate===null&&t(S,T),y=s(D,y,E),P===null?_=D:P.sibling=D,P=D,T=I}if(N.done)return n(S,T),_e&&To(S,E),_;if(T===null){for(;!N.done;E++,N=w.next())N=d(S,N.value,x),N!==null&&(y=s(N,y,E),P===null?_=N:P.sibling=N,P=N);return _e&&To(S,E),_}for(T=r(S,T);!N.done;E++,N=w.next())N=h(T,S,E,N.value,x),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?E:N.key),y=s(N,y,E),P===null?_=N:P.sibling=N,P=N);return e&&T.forEach(function(L){return t(S,L)}),_e&&To(S,E),_}function b(S,y,w,x){if(typeof w=="object"&&w!==null&&w.type===Ts&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ll:e:{for(var _=w.key,P=y;P!==null;){if(P.key===_){if(_=w.type,_===Ts){if(P.tag===7){n(S,P.sibling),y=o(P,w.props.children),y.return=S,S=y;break e}}else if(P.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&Av(_)===P.type){n(S,P.sibling),y=o(P,w.props),y.ref=Xi(S,P,w),y.return=S,S=y;break e}n(S,P);break}else t(S,P);P=P.sibling}w.type===Ts?(y=Yo(w.props.children,S.mode,x,w.key),y.return=S,S=y):(x=yc(w.type,w.key,w.props,null,S.mode,x),x.ref=Xi(S,y,w),x.return=S,S=x)}return i(S);case Ps:e:{for(P=w.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(S,y.sibling),y=o(y,w.children||[]),y.return=S,S=y;break e}else{n(S,y);break}else t(S,y);y=y.sibling}y=tf(w,S.mode,x),y.return=S,S=y}return i(S);case Ir:return P=w._init,b(S,y,P(w._payload),x)}if(sa(w))return v(S,y,w,x);if(Ki(w))return g(S,y,w,x);Kl(S,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(S,y.sibling),y=o(y,w),y.return=S,S=y):(n(S,y),y=ef(w,S.mode,x),y.return=S,S=y),i(S)):n(S,y)}return b}var fi=Iw(!0),Nw=Iw(!1),Vc=go(null),Wc=null,Ms=null,Fh=null;function Bh(){Fh=Ms=Wc=null}function Vh(e){var t=Vc.current;Se(Vc),e._currentValue=t}function ap(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bs(e,t){Wc=e,Fh=Ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Vt(e){var t=e._currentValue;if(Fh!==e)if(e={context:e,memoizedValue:t,next:null},Ms===null){if(Wc===null)throw Error(M(308));Ms=e,Wc.dependencies={lanes:0,firstContext:e}}else Ms=Ms.next=e;return t}var jo=null;function Wh(e){jo===null?jo=[e]:jo.push(e)}function Ow(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wh(t)):(n.next=o.next,o.next=n),t.interleaved=n,sr(e,r)}function sr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nr=!1;function Hh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,sr(e,n)}return o=r.interleaved,o===null?(t.next=t,Wh(r)):(t.next=o.next,o.next=t),r.interleaved=t,sr(e,n)}function fc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ih(e,n)}}function jv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hc(e,t,n,r){var o=e.updateQueue;Nr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,u=c=l=null,a=s;do{var p=a.lane,h=a.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(p=t,h=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){d=v.call(h,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,p=typeof v=="function"?v.call(h,d,p):v,p==null)break e;d=Pe({},d,p);break e;case 2:Nr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,i|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);ts|=i,e.lanes=i,e.memoizedState=d}}function Mv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(M(191,o));o.call(r)}}}var dl={},Rn=go(dl),La=go(dl),$a=go(dl);function Mo(e){if(e===dl)throw Error(M(174));return e}function Gh(e,t){switch(ve($a,t),ve(La,e),ve(Rn,dl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ff(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ff(t,e)}Se(Rn),ve(Rn,t)}function pi(){Se(Rn),Se(La),Se($a)}function jw(e){Mo($a.current);var t=Mo(Rn.current),n=Ff(t,e.type);t!==n&&(ve(La,e),ve(Rn,n))}function Kh(e){La.current===e&&(Se(Rn),Se(La))}var Ce=go(0);function Gc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qd=[];function qh(){for(var e=0;e<qd.length;e++)qd[e]._workInProgressVersionPrimary=null;qd.length=0}var pc=hr.ReactCurrentDispatcher,Qd=hr.ReactCurrentBatchConfig,es=0,Ee=null,Le=null,Ve=null,Kc=!1,ya=!1,Da=0,rP=0;function Je(){throw Error(M(321))}function Qh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fn(e[n],t[n]))return!1;return!0}function Yh(e,t,n,r,o,s){if(es=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pc.current=e===null||e.memoizedState===null?aP:lP,e=n(r,o),ya){s=0;do{if(ya=!1,Da=0,25<=s)throw Error(M(301));s+=1,Ve=Le=null,t.updateQueue=null,pc.current=cP,e=n(r,o)}while(ya)}if(pc.current=qc,t=Le!==null&&Le.next!==null,es=0,Ve=Le=Ee=null,Kc=!1,t)throw Error(M(300));return e}function Jh(){var e=Da!==0;return Da=0,e}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Wt(){if(Le===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Ve===null?Ee.memoizedState:Ve.next;if(t!==null)Ve=t,Le=e;else{if(e===null)throw Error(M(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Ve===null?Ee.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function za(e,t){return typeof t=="function"?t(e):t}function Yd(e){var t=Wt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=Le,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;
vendor: 5,614 bytes, line 39
39o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,c=s;do{var u=c.lane;if((es&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,Ee.lanes|=u,ts|=u}c=c.next}while(c!==null&&c!==s);l===null?i=r:l.next=a,fn(r,t.memoizedState)||(vt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Ee.lanes|=s,ts|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jd(e){var t=Wt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);fn(s,t.memoizedState)||(vt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Mw(){}function Lw(e,t){var n=Ee,r=Wt(),o=t(),s=!fn(r.memoizedState,o);if(s&&(r.memoizedState=o,vt=!0),r=r.queue,Xh(zw.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Ua(9,Dw.bind(null,n,r,o,t),void 0,null),We===null)throw Error(M(349));es&30||$w(n,t,o)}return o}function $w(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dw(e,t,n,r){t.value=n,t.getSnapshot=r,Uw(t)&&Fw(e)}function zw(e,t,n){return n(function(){Uw(t)&&Fw(e)})}function Uw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fn(e,n)}catch{return!0}}function Fw(e){var t=sr(e,1);t!==null&&cn(t,e,1,-1)}function Lv(e){var t=Sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:e},t.queue=e,e=e.dispatch=iP.bind(null,Ee,e),[t.memoizedState,e]}function Ua(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Bw(){return Wt().memoizedState}function hc(e,t,n,r){var o=Sn();Ee.flags|=e,o.memoizedState=Ua(1|t,n,void 0,r===void 0?null:r)}function Ru(e,t,n,r){var o=Wt();r=r===void 0?null:r;var s=void 0;if(Le!==null){var i=Le.memoizedState;if(s=i.destroy,r!==null&&Qh(r,i.deps)){o.memoizedState=Ua(t,n,s,r);return}}Ee.flags|=e,o.memoizedState=Ua(1|t,n,s,r)}function $v(e,t){return hc(8390656,8,e,t)}function Xh(e,t){return Ru(2048,8,e,t)}function Vw(e,t){return Ru(4,2,e,t)}function Ww(e,t){return Ru(4,4,e,t)}function Hw(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gw(e,t,n){return n=n!=null?n.concat([e]):null,Ru(4,4,Hw.bind(null,t,e),n)}function Zh(){}function Kw(e,t){var n=Wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qw(e,t){var n=Wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qw(e,t,n){return es&21?(fn(n,t)||(n=ew(),Ee.lanes|=n,ts|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n)}function oP(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=Qd.transition;Qd.transition={};try{e(!1),t()}finally{de=n,Qd.transition=r}}function Yw(){return Wt().memoizedState}function sP(e,t,n){var r=no(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jw(e))Xw(t,n);else if(n=Ow(e,t,n,r),n!==null){var o=lt();cn(n,e,r,o),Zw(n,t,r)}}function iP(e,t,n){var r=no(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jw(e))Xw(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,fn(a,i)){var l=t.interleaved;l===null?(o.next=o,Wh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ow(e,t,o,r),n!==null&&(o=lt(),cn(n,e,r,o),Zw(n,t,r))}}function Jw(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Xw(e,t){ya=Kc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ih(e,n)}}var qc={readContext:Vt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},aP={readContext:Vt,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:$v,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hc(4194308,4,Hw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hc(4194308,4,e,t)},useInsertionEffect:function(e,t){return hc(4,2,e,t)},useMemo:function(e,t){var n=Sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sP.bind(null,Ee,e),[r.memoizedState,e]}
vendor: 7,431 bytes, lines 39-41
39,useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:Lv,useDebugValue:Zh,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=Lv(!1),t=e[0];return e=oP.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,o=Sn();if(_e){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),We===null)throw Error(M(349));es&30||$w(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,$v(zw.bind(null,r,s,e),[e]),r.flags|=2048,Ua(9,Dw.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Sn(),t=We.identifierPrefix;if(_e){var n=Yn,r=Qn;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Da++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lP={readContext:Vt,useCallback:Kw,useContext:Vt,useEffect:Xh,useImperativeHandle:Gw,useInsertionEffect:Vw,useLayoutEffect:Ww,useMemo:qw,useReducer:Yd,useRef:Bw,useState:function(){return Yd(za)},useDebugValue:Zh,useDeferredValue:function(e){var t=Wt();return Qw(t,Le.memoizedState,e)},useTransition:function(){var e=Yd(za)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:Lw,useId:Yw,unstable_isNewReconciler:!1},cP={readContext:Vt,useCallback:Kw,useContext:Vt,useEffect:Xh,useImperativeHandle:Gw,useInsertionEffect:Vw,useLayoutEffect:Ww,useMemo:qw,useReducer:Jd,useRef:Bw,useState:function(){return Jd(za)},useDebugValue:Zh,useDeferredValue:function(e){var t=Wt();return Le===null?t.memoizedState=e:Qw(t,Le.memoizedState,e)},useTransition:function(){var e=Jd(za)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:Lw,useId:Yw,unstable_isNewReconciler:!1};function en(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function lp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Iu={isMounted:function(e){return(e=e._reactInternals)?us(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),o=no(e),s=Zn(r,o);s.payload=t,n!=null&&(s.callback=n),t=eo(e,s,o),t!==null&&(cn(t,e,o,r),fc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),o=no(e),s=Zn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=eo(e,s,o),t!==null&&(cn(t,e,o,r),fc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=no(e),o=Zn(n,r);o.tag=2,t!=null&&(o.callback=t),t=eo(e,o,r),t!==null&&(cn(t,e,r,n),fc(t,e,r))}};function Dv(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Oa(n,r)||!Oa(o,s):!0}function eS(e,t,n){var r=!1,o=fo,s=t.contextType;return typeof s=="object"&&s!==null?s=Vt(s):(o=wt(t)?Xo:rt.current,r=t.contextTypes,s=(r=r!=null)?ui(e,o):fo),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Iu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function zv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function cp(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Hh(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Vt(s):(s=wt(t)?Xo:rt.current,o.context=ui(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(lp(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Iu.enqueueReplaceState(o,o.state,null),Hc(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function hi(e,t){try{var n="",r=t;do n+=$C(r),r=r.return;while(r);var o=n}catch(s){o=` 40Error generating stack: `+s.message+` 41`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Xd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function up(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uP=typeof WeakMap=="function"?WeakMap:Map;function tS(e,t,n){n=Zn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yc||(Yc=!0,Sp=r),up(e,t)},n}function nS(e,t,n){n=Zn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){up(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){up(e,t),typeof r!="function"&&(to===null?to=new Set([this]):to.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Uv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uP;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=CP.bind(null,e,t,n),t.then(e,e))}function Fv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Zn(-1,1),t.tag=2,eo(n,t,1))),n.lanes|=1),e)}var dP=hr.ReactCurrentOwner,vt=!1;function st(e,t,n,r){t.child=e===null?Nw(t,null,n,r):fi(t,e.child,n,r)}function Vv(e,t,n,r,o){n=n.render;var s=t.ref;return Bs(t,o),r=Yh(e,t,n,r,s,o),n=Jh(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ir(e,t,o)):(_e&&n&&Dh(t),t.flags|=1,st(e,t,r,o),t.child)}function Wv(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!am(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,rS(e,t,s,r,o)):(e=yc(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Oa,n(i,r)&&e.ref===t.ref)return ir(e,t,o)}return t.flags|=1,e=ro(s,r),e.ref=t.ref,e.return=t,t.child=e}function rS(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Oa(s,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,ir(e,t,o)}return dp(e,t,n,r,o)}function oS(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve($s,Pt),Pt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve($s,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ve($s,Pt),Pt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ve($s,Pt),Pt|=r;return st(e,t,o,n),t.child}function sS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,335 bytes, line 41
41function dp(e,t,n,r,o){var s=wt(n)?Xo:rt.current;return s=ui(t,s),Bs(t,o),n=Yh(e,t,n,r,s,o),r=Jh(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ir(e,t,o)):(_e&&r&&Dh(t),t.flags|=1,st(e,t,n,o),t.child)}function Hv(e,t,n,r,o){if(wt(n)){var s=!0;Uc(t)}else s=!1;if(Bs(t,o),t.stateNode===null)mc(e,t),eS(t,n,r),cp(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Vt(c):(c=wt(n)?Xo:rt.current,c=ui(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&zv(t,i,r,c),Nr=!1;var p=t.memoizedState;i.state=p,Hc(t,r,i,o),l=t.memoizedState,a!==r||p!==l||yt.current||Nr?(typeof u=="function"&&(lp(t,n,u,r),l=t.memoizedState),(a=Nr||Dv(t,n,a,r,p,l,c))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Aw(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:en(t.type,a),i.props=c,d=t.pendingProps,p=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Vt(l):(l=wt(n)?Xo:rt.current,l=ui(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||p!==l)&&zv(t,i,r,l),Nr=!1,p=t.memoizedState,i.state=p,Hc(t,r,i,o);var v=t.memoizedState;a!==d||p!==v||yt.current||Nr?(typeof h=="function"&&(lp(t,n,h,r),v=t.memoizedState),(c=Nr||Dv(t,n,c,r,p,v,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return fp(e,t,n,r,s,o)}function fp(e,t,n,r,o,s){sS(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Iv(t,n,!1),ir(e,t,s);r=t.stateNode,dP.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=fi(t,e.child,null,s),t.child=fi(t,null,a,s)):st(e,t,a,s),t.memoizedState=r.state,o&&Iv(t,n,!0),t.child}function iS(e){var t=e.stateNode;t.pendingContext?Rv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rv(e,t.context,!1),Gh(e,t.containerInfo)}function Gv(e,t,n,r,o){return di(),Uh(o),t.flags|=256,st(e,t,n,r),t.child}var pp={dehydrated:null,treeContext:null,retryLane:0};function hp(e){return{baseLanes:e,cachePool:null,transitions:null}}function aS(e,t,n){var r=t.pendingProps,o=Ce.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ve(Ce,o&1),e===null)return ip(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Au(i,r,0,null),e=Yo(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=hp(n),t.memoizedState=pp,e):em(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return fP(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ro(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=ro(a,s):(s=Yo(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?hp(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=pp,r}return s=e.child,e=s.sibling,r=ro(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function em(e,t){return t=Au({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ql(e,t,n,r){return r!==null&&Uh(r),fi(t,e.child,null,n),e=em(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fP(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Xd(Error(M(422))),ql(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Au({mode:"visible",children:r.children},o,0,null),s=Yo(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&fi(t,e.child,null,i),t.child.memoizedState=hp(i),t.memoizedState=pp,s);if(!(t.mode&1))return ql(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(M(419)),r=Xd(s,r,void 0),ql(e,t,i,r)}if(a=(i&e.childLanes)!==0,vt||a){if(r=We,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,sr(e,o),cn(r,e,o,-1))}
vendor: 5,945 bytes, line 41
41return im(),r=Xd(Error(M(421))),ql(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=EP.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Rt=Zr(o.nextSibling),It=t,_e=!0,rn=null,e!==null&&(Dt[zt++]=Qn,Dt[zt++]=Yn,Dt[zt++]=Zo,Qn=e.id,Yn=e.overflow,Zo=t),t=em(t,r.children),t.flags|=4096,t)}function Kv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ap(e.return,t,n)}function Zd(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function lS(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(st(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kv(e,n,t);else if(e.tag===19)Kv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Gc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zd(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zd(t,!0,n,null,s);break;case"together":Zd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ir(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ts|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=ro(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ro(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pP(e,t,n){switch(t.tag){case 3:iS(t),di();break;case 5:jw(t);break;case 1:wt(t.type)&&Uc(t);break;case 4:Gh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ve(Vc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?aS(e,t,n):(ve(Ce,Ce.current&1),e=ir(e,t,n),e!==null?e.sibling:null);ve(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lS(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ve(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,oS(e,t,n)}return ir(e,t,n)}var cS,mp,uS,dS;cS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mp=function(){};uS=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mo(Rn.current);var s=null;switch(n){case"input":o=$f(e,o),r=$f(e,r),s=[];break;case"select":o=Pe({},o,{value:void 0}),r=Pe({},r,{value:void 0}),s=[];break;case"textarea":o=Uf(e,o),r=Uf(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Dc)}Bf(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ea.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ea.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ye("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};dS=function(e,t,n,r){n!==r&&(t.flags|=4)};function Zi(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hP(e,t,n){var r=t.pendingProps;switch(zh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return wt(t.type)&&zc(),Xe(t),null;case 3:return r=t.stateNode,pi(),Se(yt),Se(rt),qh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rn!==null&&(_p(rn),rn=null))),mp(e,t),Xe(t),null;case 5:Kh(t);var o=Mo($a.current);if(n=t.type,e!==null&&t.stateNode!=null)uS(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Xe(t),null}
vendor: 29,540 bytes, line 41
41if(e=Mo(Rn.current),Gl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[En]=t,r[Ma]=s,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<aa.length;o++)ye(aa[o],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":nv(r,s),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ye("invalid",r);break;case"textarea":ov(r,s),ye("invalid",r)}Bf(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Hl(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Hl(r.textContent,a,e),o=["children",""+a]):Ea.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ye("scroll",r)}switch(n){case"input":$l(r),rv(r,s,!0);break;case"textarea":$l(r),sv(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Dc)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=z1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[En]=t,e[Ma]=r,cS(e,t,!1,!1),t.stateNode=e;e:{switch(i=Vf(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;o<aa.length;o++)ye(aa[o],e);o=r;break;case"source":ye("error",e),o=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),o=r;break;case"details":ye("toggle",e),o=r;break;case"input":nv(e,r),o=$f(e,r),ye("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Pe({},r,{value:void 0}),ye("invalid",e);break;case"textarea":ov(e,r),o=Uf(e,r),ye("invalid",e);break;default:o=r}Bf(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?B1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&U1(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Pa(e,l):typeof l=="number"&&Pa(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ea.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ye("scroll",e):l!=null&&Ch(e,s,l,i))}switch(n){case"input":$l(e),rv(e,r,!1);break;case"textarea":$l(e),sv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+uo(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ds(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ds(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Dc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&&t.stateNode!=null)dS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=Mo($a.current),Mo(Rn.current),Gl(t)){if(r=t.stateNode,n=t.memoizedProps,r[En]=t,(s=r.nodeValue!==n)&&(e=It,e!==null))switch(e.tag){case 3:Hl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hl(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[En]=t,t.stateNode=r}return Xe(t),null;case 13:if(Se(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_e&&Rt!==null&&t.mode&1&&!(t.flags&128))Rw(),di(),t.flags|=98560,s=!1;else if(s=Gl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[En]=t}else di(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),s=!1}else rn!==null&&(_p(rn),rn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?ze===0&&(ze=3):im())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return pi(),mp(e,t),e===null&&Aa(t.stateNode.containerInfo),Xe(t),null;case 10:return Vh(t.type._context),Xe(t),null;case 17:return wt(t.type)&&zc(),Xe(t),null;case 19:if(Se(Ce),s=t.memoizedState,s===null)return Xe(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Zi(s,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Gc(e),i!==null){for(t.flags|=128,Zi(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(Ce,Ce.current&1|2),t.child}e=e.sibling}s.tail!==null&&Re()>mi&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304)}else{if(!r)if(e=Gc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!_e)return Xe(t),null}else 2*Re()-s.renderingStartTime>mi&&n!==1073741824&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Re(),t.sibling=null,n=Ce.current,ve(Ce,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return sm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function mP(e,t){switch(zh(t),t.tag){case 1:return wt(t.type)&&zc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(),Se(yt),Se(rt),qh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kh(t),null;case 13:if(Se(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ce),null;case 4:return pi(),null;case 10:return Vh(t.type._context),null;case 22:case 23:return sm(),null;case 24:return null;default:return null}}var Ql=!1,et=!1,gP=typeof WeakSet=="function"?WeakSet:Set,K=null;function Ls(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function gp(e,t,n){try{n()}catch(r){ke(e,t,r)}}var qv=!1;function vP(e,t){if(Zf=Mc,e=gw(),$h(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(a=i),p===s&&++u===r&&(l=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ep={focusedElem:e,selectionRange:n},Mc=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,b=v.memoizedState,S=t.stateNode,y=S.getSnapshotBeforeUpdate(t.elementType===t.type?g:en(t.type,g),b);S.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(x){ke(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return v=qv,qv=!1,v}function wa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&gp(t,n,s)}o=o.next}while(o!==r)}}function Nu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fS(e){var t=e.alternate;t!==null&&(e.alternate=null,fS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[Ma],delete t[rp],delete t[ZE],delete t[eP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pS(e){return e.tag===5||e.tag===3||e.tag===4}function Qv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dc));else if(r!==4&&(e=e.child,e!==null))for(yp(e,t,n),e=e.sibling;e!==null;)yp(e,t,n),e=e.sibling}function wp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wp(e,t,n),e=e.sibling;e!==null;)wp(e,t,n),e=e.sibling}var Ge=null,nn=!1;function Pr(e,t,n){for(n=n.child;n!==null;)hS(e,t,n),n=n.sibling}function hS(e,t,n){if(kn&&typeof kn.onCommitFiberUnmount=="function")try{kn.onCommitFiberUnmount(_u,n)}catch{}switch(n.tag){case 5:et||Ls(n,t);case 6:var r=Ge,o=nn;Ge=null,Pr(e,t,n),Ge=r,nn=o,Ge!==null&&(nn?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(nn?(e=Ge,n=n.stateNode,e.nodeType===8?Gd(e.parentNode,n):e.nodeType===1&&Gd(e,n),Ia(e)):Gd(Ge,n.stateNode));break;case 4:r=Ge,o=nn,Ge=n.stateNode.containerInfo,nn=!0,Pr(e,t,n),Ge=r,nn=o;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&gp(n,t,i),o=o.next}while(o!==r)}Pr(e,t,n);break;case 1:if(!et&&(Ls(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Pr(e,t,n);break;case 21:Pr(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,Pr(e,t,n),et=r):Pr(e,t,n);break;default:Pr(e,t,n)}}function Yv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gP),t.forEach(function(r){var o=PP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Ge=a.stateNode,nn=!1;break e;case 3:Ge=a.stateNode.containerInfo,nn=!0;break e;case 4:Ge=a.stateNode.containerInfo,nn=!0;break e}a=a.return}if(Ge===null)throw Error(M(160));hS(s,i,o),Ge=null,nn=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){ke(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mS(t,e),t=t.sibling}function mS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),wn(e),r&4){try{wa(3,e,e.return),Nu(3,e)}catch(g){ke(e,e.return,g)}try{wa(5,e,e.return)}catch(g){ke(e,e.return,g)}}break;case 1:Zt(t,e),wn(e),r&512&&n!==null&&Ls(n,n.return);break;case 5:if(Zt(t,e),wn(e),r&512&&n!==null&&Ls(n,n.return),e.flags&32){var o=e.stateNode;try{Pa(o,"")}catch(g){ke(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&$1(o,s),Vf(a,i);var c=Vf(a,s);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];u==="style"?B1(o,d):u==="dangerouslySetInnerHTML"?U1(o,d):u==="children"?Pa(o,d):Ch(o,u,d,c)}switch(a){case"input":Df(o,s);break;case"textarea":D1(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Ds(o,!!s.multiple,h,!1):p!==!!s.multiple&&(s.defaultValue!=null?Ds(o,!!s.multiple,s.defaultValue,!0):Ds(o,!!s.multiple,s.multiple?[]:"",!1))}o[Ma]=s}catch(g){ke(e,e.return,g)}}break;case 6:if(Zt(t,e),wn(e),r&4){if(e.stateNode===null)throw Error(M(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){ke(e,e.return,g)}}break;case 3:if(Zt(t,e),wn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ia(t.containerInfo)}catch(g){ke(e,e.return,g)}break;case 4:Zt(t,e),wn(e);break;case 13:Zt(t,e),wn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(rm=Re())),r&4&&Yv(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(et=(c=et)||u,Zt(t,e),et=c):Zt(t,e),wn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(K=e,u=e.child;u!==null;){for(d=K=u;K!==null;){switch(p=K,h=p.child,p.tag){case 0:case 11:case 14:case 15:wa(4,p,p.return);break;case 1:Ls(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){ke(r,n,g)}}break;case 5:Ls(p,p.return);break;case 22:if(p.memoizedState!==null){Xv(d);continue}}h!==null?(h.return=p,K=h):Xv(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=F1("display",i))}catch(g){ke(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){ke(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Zt(t,e),wn(e),r&4&&Yv(e);break;case 21:break;default:Zt(t,e),wn(e)}}function wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pS(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Pa(o,""),r.flags&=-33);var s=Qv(e);wp(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Qv(e);yp(e,a,i);break;default:throw Error(M(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yP(e,t,n){K=e,gS(e)}function gS(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var o=K,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ql;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||et;a=Ql;var c=et;if(Ql=i,(et=l)&&!c)for(K=o;K!==null;)i=K,l=i.child,i.tag===22&&i.memoizedState!==null?Zv(o):l!==null?(l.return=i,K=l):Zv(o);for(;s!==null;)K=s,gS(s),s=s.sibling;K=o,Ql=a,et=c}Jv(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,K=s):Jv(e)}}function Jv(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:et||Nu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!et)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Mv(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mv(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ia(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}et||t.flags&512&&vp(t)}catch(p){ke(t,t.return,p)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function Xv(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function Zv(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Nu(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ke(t,o,l)}}var s=t.return;try{vp(t)}catch(l){ke(t,s,l)}break;case 5:var i=t.return;try{vp(t)}catch(l){ke(t,i,l)}}}catch(l){ke(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var wP=Math.ceil,Qc=hr.ReactCurrentDispatcher,tm=hr.ReactCurrentOwner,Bt=hr.ReactCurrentBatchConfig,ce=0,We=null,Oe=null,Ke=0,Pt=0,$s=go(0),ze=0,Fa=null,ts=0,Ou=0,nm=0,Sa=null,ht=null,rm=0,mi=1/0,Fn=null,Yc=!1,Sp=null,to=null,Yl=!1,qr=null,Jc=0,ba=0,bp=null,gc=-1,vc=0;function lt(){return ce&6?Re():gc!==-1?gc:gc=Re()}function no(e){return e.mode&1?ce&2&&Ke!==0?Ke&-Ke:nP.transition!==null?(vc===0&&(vc=ew()),vc):(e=de,e!==0||(e=window.event,e=e===void 0?16:aw(e.type)),e):1}function cn(e,t,n,r){if(50<ba)throw ba=0,bp=null,Error(M(185));ll(e,n,r),(!(ce&2)||e!==We)&&(e===We&&(!(ce&2)&&(Ou|=n),ze===4&&jr(e,Ke)),St(e,r),n===1&&ce===0&&!(t.mode&1)&&(mi=Re()+500,ku&&vo()))}function St(e,t){var n=e.callbackNode;nE(e,t);var r=jc(e,e===We?Ke:0);if(r===0)n!==null&&lv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lv(n),t===1)e.tag===0?tP(ey.bind(null,e)):Pw(ey.bind(null,e)),JE(function(){!(ce&6)&&vo()}),n=null;else{switch(tw(r)){case 1:n=Rh;break;case 4:n=X1;break;case 16:n=Ac;break;case 536870912:n=Z1;break;default:n=Ac}n=CS(n,vS.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vS(e,t){if(gc=-1,vc=0,ce&6)throw Error(M(327));var n=e.callbackNode;if(Vs()&&e.callbackNode!==n)return null;var r=jc(e,e===We?Ke:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xc(e,r);else{t=r;var o=ce;ce|=2;var s=wS();(We!==e||Ke!==t)&&(Fn=null,mi=Re()+500,Qo(e,t));do try{xP();break}catch(a){yS(e,a)}while(!0);Bh(),Qc.current=s,ce=o,Oe!==null?t=0:(We=null,Ke=0,t=ze)}if(t!==0){if(t===2&&(o=qf(e),o!==0&&(r=o,t=xp(e,o))),t===1)throw n=Fa,Qo(e,0),jr(e,r),St(e,Re()),n;if(t===6)jr(e,r);else{if(o=e.current.alternate,!(r&30)&&!SP(o)&&(t=Xc(e,r),t===2&&(s=qf(e),s!==0&&(r=s,t=xp(e,s))),t===1))throw n=Fa,Qo(e,0),jr(e,r),St(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:ko(e,ht,Fn);break;case 3:if(jr(e,r),(r&130023424)===r&&(t=rm+500-Re(),10<t)){if(jc(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=np(ko.bind(null,e,ht,Fn),t);break}ko(e,ht,Fn);break;case 4:if(jr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ln(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wP(r/1960))-r,10<r){e.timeoutHandle=np(ko.bind(null,e,ht,Fn),r);break}ko(e,ht,Fn);break;case 5:ko(e,ht,Fn);break;default:throw Error(M(329))}}}return St(e,Re()),e.callbackNode===n?vS.bind(null,e):null}function xp(e,t){var n=Sa;return e.current.memoizedState.isDehydrated&&(Qo(e,t).flags|=256),e=Xc(e,t),e!==2&&(t=ht,ht=n,t!==null&&_p(t)),e}function _p(e){ht===null?ht=e:ht.push.apply(ht,e)}function SP(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!fn(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jr(e,t){for(t&=~nm,t&=~Ou,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function ey(e){if(ce&6)throw Error(M(327));Vs();var t=jc(e,0);if(!(t&1))return St(e,Re()),null;var n=Xc(e,t);if(e.tag!==0&&n===2){var r=qf(e);r!==0&&(t=r,n=xp(e,r))}if(n===1)throw n=Fa,Qo(e,0),jr(e,t),St(e,Re()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ko(e,ht,Fn),St(e,Re()),null}function om(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(mi=Re()+500,ku&&vo())}}function ns(e){qr!==null&&qr.tag===0&&!(ce&6)&&Vs();var t=ce;ce|=1;var n=Bt.transition,r=de;try{if(Bt.transition=null,de=1,e)return e()}finally{de=r,Bt.transition=n,ce=t,!(ce&6)&&vo()}}function sm(){Pt=$s.current,Se($s)}function Qo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,YE(n)),Oe!==null)for(n=Oe.return;n!==null;){var r=n;switch(zh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zc();break;case 3:pi(),Se(yt),Se(rt),qh();break;case 5:Kh(r);break;case 4:pi();break;case 13:Se(Ce);break;case 19:Se(Ce);break;case 10:Vh(r.type._context);break;case 22:case 23:sm()}n=n.return}if(We=e,Oe=e=ro(e.current,null),Ke=Pt=t,ze=0,Fa=null,nm=Ou=ts=0,ht=Sa=null,jo!==null){for(t=0;t<jo.length;t++)if(n=jo[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}jo=null}return e}function yS(e,t){do{var n=Oe;try{if(Bh(),pc.current=qc,Kc){for(var r=Ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Kc=!1}if(es=0,Ve=Le=Ee=null,ya=!1,Da=0,tm.current=null,n===null||n.return===null){ze=1,Fa=t,Oe=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Ke,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Fv(i);if(h!==null){h.flags&=-257,Bv(h,i,a,s,t),h.mode&1&&Uv(s,c,t),t=h,l=c;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){Uv(s,c,t),im();break e}l=Error(M(426))}}else if(_e&&a.mode&1){var b=Fv(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Bv(b,i,a,s,t),Uh(hi(l,a));break e}}s=l=hi(l,a),ze!==4&&(ze=2),Sa===null?Sa=[s]:Sa.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var S=tS(s,l,t);jv(s,S);break e;case 1:a=l;var y=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(to===null||!to.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var x=nS(s,a,t);jv(s,x);break e}}s=s.return}while(s!==null)}bS(n)}catch(_){t=_,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function wS(){var e=Qc.current;return Qc.current=qc,e===null?qc:e}function im(){(ze===0||ze===3||ze===2)&&(ze=4),We===null||!(ts&268435455)&&!(Ou&268435455)||jr(We,Ke)}function Xc(e,t){var n=ce;ce|=2;var r=wS();(We!==e||Ke!==t)&&(Fn=null,Qo(e,t));do try{bP();break}catch(o){yS(e,o)}while(!0);if(Bh(),ce=n,Qc.current=r,Oe!==null)throw Error(M(261));return We=null,Ke=0,ze}function bP(){for(;Oe!==null;)SS(Oe)}function xP(){for(;Oe!==null&&!KC();)SS(Oe)}function SS(e){var t=_S(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,t===null?bS(e):Oe=t,tm.current=null}function bS(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=mP(n,t),n!==null){n.flags&=32767,Oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Oe=null;return}}else if(n=hP(n,t,Pt),n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);ze===0&&(ze=5)}function ko(e,t,n){var r=de,o=Bt.transition;try{Bt.transition=null,de=1,_P(e,t,n,r)}finally{Bt.transition=o,de=r}return null}function _P(e,t,n,r){do Vs();while(qr!==null);if(ce&6)throw Error(M(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(rE(e,s),e===We&&(Oe=We=null,Ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yl||(Yl=!0,CS(Ac,function(){return Vs(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Bt.transition,Bt.transition=null;var i=de;de=1;var a=ce;ce|=4,tm.current=null,vP(e,n),mS(n,e),VE(ep),Mc=!!Zf,ep=Zf=null,e.current=n,yP(n),qC(),ce=a,de=i,Bt.transition=s}else e.current=n;if(Yl&&(Yl=!1,qr=e,Jc=o),s=e.pendingLanes,s===0&&(to=null),JC(n.stateNode),St(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Yc)throw Yc=!1,e=Sp,Sp=null,e;return Jc&1&&e.tag!==0&&Vs(),s=e.pendingLanes,s&1?e===bp?ba++:(ba=0,bp=e):ba=0,vo(),null}function Vs(){if(qr!==null){var e=tw(Jc),t=Bt.transition,n=de;try{if(Bt.transition=null,de=16>e?16:e,qr===null)var r=!1;else{if(e=qr,qr=null,Jc=0,ce&6)throw Error(M(331));var o=ce;for(ce|=4,K=e.current;K!==null;){var s=K,i=s.child;if(K.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(K=c;K!==null;){var u=K;switch(u.tag){case 0:case 11:case 15:wa(8,u,s)}var d=u.child;if(d!==null)d.return=u,K=d;else for(;K!==null;){u=K;var p=u.sibling,h=u.return;if(fS(u),u===c){K=null;break}if(p!==null){p.return=h,K=p;break}K=h}}}var v=s.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}K=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,K=i;else e:for(;K!==null;){if(s=K,s.flags&2048)switch(s.tag){case 0:case 11:case 15:wa(9,s,s.return)}var S=s.sibling;if(S!==null){S.return=s.return,K=S;break e}K=s.return}}var y=e.current;for(K=y;K!==null;){i=K;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,K=w;else e:for(i=y;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Nu(9,a)}}catch(_){ke(a,a.return,_)}if(a===i){K=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,K=x;break e}K=a.return}}if(ce=o,vo(),kn&&typeof kn.onPostCommitFiberRoot=="function")try{kn.onPostCommitFiberRoot(_u,e)}catch{}r=!0}return r}finally{de=n,Bt.transition=t}}return!1}function ty(e,t,n){t=hi(n,t),t=tS(e,t,1),e=eo(e,t,1),t=lt(),e!==null&&(ll(e,1,t),St(e,t))}function ke(e,t,n){if(e.tag===3)ty(e,e,n);else for(;t!==null;){if(t.tag===3){ty(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(to===null||!to.has(r))){e=hi(n,e),e=nS(t,e,1),t=eo(t,e,1),e=lt(),t!==null&&(ll(t,1,e),St(t,e));break}}t=t.return}}function CP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(Ke&n)===n&&(ze===4||ze===3&&(Ke&130023424)===Ke&&500>Re()-rm?Qo(e,0):nm|=n),St(e,t)}function xS(e,t){t===0&&(e.mode&1?(t=Ul,Ul<<=1,!(Ul&130023424)&&(Ul=4194304)):t=1);var n=lt();e=sr(e,t),e!==null&&(ll(e,t,n),St(e,n))}function EP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xS(e,n)}function PP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),xS(e,n)}var _S;_S=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,pP(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&Tw(t,Bc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mc(e,t),e=t.pendingProps;var o=ui(t,rt.current);Bs(t,n),o=Yh(null,t,r,e,o,n);var s=Jh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(s=!0,Uc(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hh(t),o.updater=Iu,t.stateNode=o,o._reactInternals=t,cp(t,r,e,n),t=fp(null,t,r,!0,s,n)):(t.tag=0,_e&&s&&Dh(t),st(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=kP(r),e=en(r,e),o){case 0:t=dp(null,t,r,e,n);break e;case 1:t=Hv(null,t,r,e,n);break e;case 11:t=Vv(null,t,r,e,n);break e;case 14:t=Wv(null,t,r,en(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),dp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Hv(e,t,r,o,n);case 3:e:{if(iS(t),e===null)throw Error(M(387));
vendor: 13,553 bytes, lines 41-50
41r=t.pendingProps,s=t.memoizedState,o=s.element,Aw(e,t),Hc(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=hi(Error(M(423)),t),t=Gv(e,t,r,n,o);break e}else if(r!==o){o=hi(Error(M(424)),t),t=Gv(e,t,r,n,o);break e}else for(Rt=Zr(t.stateNode.containerInfo.firstChild),It=t,_e=!0,rn=null,n=Nw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(di(),r===o){t=ir(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return jw(t),e===null&&ip(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,tp(r,o)?i=null:s!==null&&tp(r,s)&&(t.flags|=32),sS(e,t),st(e,t,i,n),t.child;case 6:return e===null&&ip(t),null;case 13:return aS(e,t,n);case 4:return Gh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fi(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Vv(e,t,r,o,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ve(Vc,r._currentValue),r._currentValue=i,s!==null)if(fn(s.value,i)){if(s.children===o.children&&!yt.current){t=ir(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Zn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ap(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(M(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ap(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}st(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bs(t,n),o=Vt(o),r=r(o),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,o=en(r,t.pendingProps),o=en(r.type,o),Wv(e,t,r,o,n);case 15:return rS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),mc(e,t),t.tag=1,wt(r)?(e=!0,Uc(t)):e=!1,Bs(t,n),eS(t,r,o),cp(t,r,o,n),fp(null,t,r,!0,e,n);case 19:return lS(e,t,n);case 22:return oS(e,t,n)}throw Error(M(156,t.tag))};function CS(e,t){return J1(e,t)}function TP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,r){return new TP(e,t,n,r)}function am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kP(e){if(typeof e=="function")return am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ph)return 11;if(e===Th)return 14}return 2}function ro(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function yc(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")am(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ts:return Yo(n.children,o,s,t);case Eh:i=8,o|=8;break;case Af:return e=Ft(12,n,t,o|2),e.elementType=Af,e.lanes=s,e;case jf:return e=Ft(13,n,t,o),e.elementType=jf,e.lanes=s,e;case Mf:return e=Ft(19,n,t,o),e.elementType=Mf,e.lanes=s,e;case j1:return Au(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O1:i=10;break e;case A1:i=9;break e;case Ph:i=11;break e;case Th:i=14;break e;case Ir:i=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Ft(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Yo(e,t,n,r){return e=Ft(7,e,r,t),e.lanes=n,e}function Au(e,t,n,r){return e=Ft(22,e,r,t),e.elementType=j1,e.lanes=n,e.stateNode={isHidden:!1},e}function ef(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function tf(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RP(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Md(0),this.expirationTimes=Md(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Md(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lm(e,t,n,r,o,s,i,a,l){return e=new RP(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ft(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hh(s),e}function IP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ps,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ES(e){if(!e)return fo;e=e._reactInternals;e:{if(us(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(wt(n))return Ew(e,n,t)}return t}function PS(e,t,n,r,o,s,i,a,l){return e=lm(n,r,!0,e,o,s,i,a,l),e.context=ES(null),n=e.current,r=lt(),o=no(n),s=Zn(r,o),s.callback=t??null,eo(n,s,o),e.current.lanes=o,ll(e,o,r),St(e,r),e}function ju(e,t,n,r){var o=t.current,s=lt(),i=no(o);return n=ES(n),t.context===null?t.context=n:t.pendingContext=n,t=Zn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=eo(o,t,i),e!==null&&(cn(e,o,i,s),fc(e,o,i)),i}function Zc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ny(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cm(e,t){ny(e,t),(e=e.alternate)&&ny(e,t)}function NP(){return null}var TS=typeof reportError=="function"?reportError:function(e){console.error(e)};function um(e){this._internalRoot=e}Mu.prototype.render=um.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));ju(e,t,null,null)};Mu.prototype.unmount=um.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ns(function(){ju(null,e,null,null)}),t[or]=null}};function Mu(e){this._internalRoot=e}Mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ow();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ar.length&&t!==0&&t<Ar[n].priority;n++);Ar.splice(n,0,e),n===0&&iw(e)}};function dm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ry(){}function OP(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Zc(i);s.call(c)}}var i=PS(t,r,e,0,null,!1,!1,"",ry);return e._reactRootContainer=i,e[or]=i.current,Aa(e.nodeType===8?e.parentNode:e),ns(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Zc(l);a.call(c)}}var l=lm(e,0,!1,null,null,!1,!1,"",ry);return e._reactRootContainer=l,e[or]=l.current,Aa(e.nodeType===8?e.parentNode:e),ns(function(){ju(t,l,n,r)}),l}function $u(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Zc(i);a.call(l)}}ju(t,i,e,o)}else i=OP(n,t,e,o,r);return Zc(i)}nw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ia(t.pendingLanes);n!==0&&(Ih(t,n|1),St(t,Re()),!(ce&6)&&(mi=Re()+500,vo()))}break;case 13:ns(function(){var r=sr(e,1);if(r!==null){var o=lt();cn(r,e,1,o)}}),cm(e,1)}};Nh=function(e){if(e.tag===13){var t=sr(e,134217728);if(t!==null){var n=lt();cn(t,e,134217728,n)}cm(e,134217728)}};rw=function(e){if(e.tag===13){var t=no(e),n=sr(e,t);if(n!==null){var r=lt();cn(n,e,t,r)}cm(e,t)}};ow=function(){return de};sw=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};Hf=function(e,t,n){switch(t){case"input":if(Df(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Tu(r);if(!o)throw Error(M(90));L1(r),Df(r,o)}}}break;case"textarea":D1(e,n);break;case"select":t=n.value,t!=null&&Ds(e,!!n.multiple,t,!1)}};H1=om;G1=ns;var AP={usingClientEntryPoint:!1,Events:[ul,Ns,Tu,V1,W1,om]},ea={findFiberByHostInstance:Ao,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jP={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:hr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Q1(e),e===null?null:e.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||NP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jl.isDisabled&&Jl.supportsFiber)try{_u=Jl.inject(jP),kn=Jl}catch{}}jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AP;jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dm(t))throw Error(M(200));return IP(e,t,null,n)};jt.createRoot=function(e,t){if(!dm(e))throw Error(M(299));var n=!1,r="",o=TS;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lm(e,1,!1,null,null,n,!1,r,o),e[or]=t.current,Aa(e.nodeType===8?e.parentNode:e),new um(t)};jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Q1(t),e=e===null?null:e.stateNode,e};jt.flushSync=function(e){return ns(e)};jt.hydrate=function(e,t,n){if(!Lu(t))throw Error(M(200));return $u(null,e,t,!0,n)};jt.hydrateRoot=function(e,t,n){if(!dm(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=TS;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=PS(t,null,e,1,n??null,o,!1,s,i),e[or]=t.current,Aa(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Mu(t)};jt.render=function(e,t,n){if(!Lu(t))throw Error(M(200));return $u(null,e,t,!1,n)};jt.unmountComponentAtNode=function(e){if(!Lu(e))throw Error(M(40));return e._reactRootContainer?(ns(function(){$u(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1};jt.unstable_batchedUpdates=om;jt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Lu(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return $u(e,t,n,!1,r)};jt.version="18.3.1-next-f1338f8080-20240426";function kS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kS)}catch(e){console.error(e)}}kS(),k1.exports=jt;var Du=k1.exports;const la=m1(Du);var oy=Du;Nf.createRoot=oy.createRoot,Nf.hydrateRoot=oy.hydrateRoot;/** 42 * @remix-run/router v1.23.2 43 * 44 * Copyright (c) Remix Software Inc. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE.md file in the root directory of this source tree. 48 * 49 * @license MIT 50 */function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ba.apply(this,arguments)}var Qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qr||(Qr={}));const sy="popstate";function MP(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return Cp("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 9,647 bytes, lines 50-59
50function n(r,o){return typeof o=="string"?o:eu(o)}return $P(t,n,null,e)}function Ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LP(){return Math.random().toString(36).substr(2,8)}function iy(e,t){return{usr:e.state,key:e.key,idx:t}}function Cp(e,t,n,r){return n===void 0&&(n=null),Ba({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ki(t):t,{state:n,key:t&&t.key||r||LP()})}function eu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ki(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $P(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Qr.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(Ba({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){a=Qr.Pop;let b=u(),S=b==null?null:b-c;c=b,l&&l({action:a,location:g.location,delta:S})}function p(b,S){a=Qr.Push;let y=Cp(g.location,b,S);c=u()+1;let w=iy(y,c),x=g.createHref(y);try{i.pushState(w,"",x)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(x)}s&&l&&l({action:a,location:g.location,delta:1})}function h(b,S){a=Qr.Replace;let y=Cp(g.location,b,S);c=u();let w=iy(y,c),x=g.createHref(y);i.replaceState(w,"",x),s&&l&&l({action:a,location:g.location,delta:0})}function v(b){let S=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof b=="string"?b:eu(b);return y=y.replace(/ $/,"%20"),Ie(S,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,S)}let g={get action(){return a},get location(){return e(o,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(sy,d),l=b,()=>{o.removeEventListener(sy,d),l=null}},createHref(b){return t(o,b)},createURL:v,encodeLocation(b){let S=v(b);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:h,go(b){return i.go(b)}};return g}var ay;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ay||(ay={}));function DP(e,t,n){return n===void 0&&(n="/"),zP(e,t,n)}function zP(e,t,n,r){let o=typeof t=="string"?ki(t):t,s=pm(o.pathname||"/",n);if(s==null)return null;let i=RS(e);UP(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=XP(s);a=QP(i[l],c)}return a}function RS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Ie(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=oo([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(Ie(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),RS(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:KP(c,s.index),routesMeta:u})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of IS(s.path))o(s,i,l)}),t}function IS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=IS(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function UP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const FP=/^:[\w-]+$/,BP=3,VP=2,WP=1,HP=10,GP=-2,ly=e=>e==="*";function KP(e,t){let n=e.split("/"),r=n.length;return n.some(ly)&&(r+=GP),t&&(r+=VP),n.filter(o=>!ly(o)).reduce((o,s)=>o+(FP.test(s)?BP:s===""?WP:HP),r)}function qP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function QP(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",d=YP({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!d)return null;Object.assign(o,d.params),i.push({params:o,pathname:oo([s,d.pathname]),pathnameBase:rT(oo([s,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(s=oo([s,d.pathnameBase]))}return i}function YP(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=JP(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:p,isOptional:h}=u;if(p==="*"){let g=a[d]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[d];return h&&!v?c[p]=void 0:c[p]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function JP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fm(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function XP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eT=e=>ZP.test(e);function tT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ki(e):e,s;if(n)if(eT(n))s=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),fm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?s=cy(n.substring(1),"/"):s=cy(n,t)}else s=t;return{pathname:s,search:oT(r),hash:sT(o)}}function cy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function nf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hm(e,t){let n=nT(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ki(e):(o=Ba({},e),Ie(!o.pathname||!o.pathname.includes("?"),nf("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),nf("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),nf("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=tT(o,a),c=i&&i!=="/"&&i.endsWith("/"),u=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const oo=e=>e.join("/").replace(/\/\/+/g,"/"),rT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const NS=["post","put","patch","delete"];new Set(NS);const aT=["get",...NS];new Set(aT);/** 51 * React Router v6.30.3 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 */function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}const gm=m.createContext(null),lT=m.createContext(null),yo=m.createContext(null),zu=m.createContext(null),jn=m.createContext({outlet:null,matches:[],isDataRoute:!1}),OS=m.createContext(null);function cT(e,t){let{relative:n}=t===void 0?{}:t;Ri()||Ie(!1);let{basename:r,navigator:o}=m.useContext(yo),{hash:s,pathname:i,search:a}=jS(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:oo([r,i])),o.createHref({pathname:l,search:a,hash:s})}function Ri(){return m.useContext(zu)!=null}function mr(){return Ri()||Ie(!1),m.useContext(zu).location}function AS(e){m.useContext(yo).static||m.useLayoutEffect(e)}function Ii(){let{isDataRoute:e}=m.useContext(jn);return e?CT():uT()}function uT(){Ri()||Ie(!1);
vendor: 4,532 bytes, line 59
59let e=m.useContext(gm),{basename:t,future:n,navigator:r}=m.useContext(yo),{matches:o}=m.useContext(jn),{pathname:s}=mr(),i=JSON.stringify(hm(o,n.v7_relativeSplatPath)),a=m.useRef(!1);return AS(()=>{a.current=!0}),m.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=mm(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:oo([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,s,e])}const dT=m.createContext(null);function fT(e){let t=m.useContext(jn).outlet;return t&&m.createElement(dT.Provider,{value:e},t)}function b5(){let{matches:e}=m.useContext(jn),t=e[e.length-1];return t?t.params:{}}function jS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(yo),{matches:o}=m.useContext(jn),{pathname:s}=mr(),i=JSON.stringify(hm(o,r.v7_relativeSplatPath));return m.useMemo(()=>mm(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function pT(e,t){return hT(e,t)}function hT(e,t,n,r){Ri()||Ie(!1);let{navigator:o}=m.useContext(yo),{matches:s}=m.useContext(jn),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=mr(),u;if(t){var d;let b=typeof t=="string"?ki(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||Ie(!1),u=b}else u=c;let p=u.pathname||"/",h=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=DP(e,{pathname:h}),g=wT(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:oo([l,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:oo([l,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&g?m.createElement(zu.Provider,{value:{location:Va({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},g):g}function mT(){let e=_T(),t=iT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const gT=m.createElement(mT,null);class vT extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(jn.Provider,{value:this.props.routeContext},m.createElement(OS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yT(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(gm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(jn.Provider,{value:t},r)}function wT(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Ie(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,v=d.route.loader&&p[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||v){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,p)=>{let h,v=!1,g=null,b=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||gT,l&&(c<0&&p===0?(ET("route-fallback"),v=!0,b=null):c===p&&(v=!0,b=d.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,p+1)),y=()=>{let w;return h?w=g:v?w=b:d.route.Component?w=m.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,m.createElement(yT,{match:d,routeC
59ontext:{outlet:u,matches:S,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?m.createElement(vT,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:y(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):y()},null)}var MS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(MS||{}),LS=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(LS||{});function ST(e){let t=m.useContext(gm);return t||Ie(!1),t}function bT(e){let t=m.useContext(lT);return t||Ie(!1),t}function xT(e){let t=m.useContext(jn);return t||Ie(!1),t}function $S(e){let t=xT(),n=t.matches[t.matches.length-1];return n.route.id||Ie(!1),n.route.id}function _T(){var e;let t=m.useContext(OS),n=bT(),r=$S();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CT(){let{router:e}=ST(MS.UseNavigateStable),t=$S(LS.UseNavigateStable),n=m.useRef(!1);return AS(()=>{n.current=!0}),m.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Va({fromRouteId:t},s)))},[e,t])}const uy={};function ET(e,t,n){uy[e]||(uy[e]=!0)}function PT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function dy(e){let{to:t,replace:n,state:r,relative:o}=e;Ri()||Ie(!1);let{future:s,static:i}=m.useContext(yo),{matches:a}=m.useContext(jn),{pathname:l}=mr(),c=Ii(),u=mm(t,hm(a,s.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(u);return m.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function TT(e){return fT(e.context)}function J(e){Ie(!1)}function kT(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:s,static:i=!1,future:a}=e;Ri()&&Ie(!1);let l=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:l,navigator:s,static:i,future:Va({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=ki(r));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:v="default"}=r,g=m.useMemo(()=>{let b=pm(u,l);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:v},navigationType:o}},[l,u,d,p,h,v,o]);return g==null?null:m.createElement(yo.Provider,{value:c},m.createElement(zu.Provider,{children:n,value:g}))}function fy(e){let{children:t,location:n}=e;return pT(Ep(t),n)}new Promise(()=>{});function Ep(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let s=[...t,o];if(r.type===m.Fragment){n.push.apply(n,Ep(r.props.children,s));return}r.type!==J&&Ie(!1),!r.props.index||!r.props.children||Ie(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ep(r.props.children,s)),n.push(i)}),n}/** 60 * React Router DOM v6.30.3 61 * 62 * Copyright (c) Remix Software Inc. 63 * 64 * This source code is licensed under the MIT license found in the 65 * LICENSE.md file in the root directory of this source tree. 66 * 67 * @license MIT 68 */function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pp.apply(this,arguments)}function RT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function IT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function NT(e,t){return e.button===0&&(!t||t==="_self")&&!IT(e)}function Tp(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function OT(e,t){let n=Tp(e);return t&&t.forEach((r,o)=>
68{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}const AT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jT="6";try{window.__reactRouterVersion=jT}catch{}const MT="startTransition",py=P1[MT];function LT(e){let{basename:t,children:n,future:r,window:o}=e,s=m.useRef();s.current==null&&(s.current=MP({window:o,v5Compat:!0}));let i=s.current,[a,l]=m.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=m.useCallback(d=>{c&&py?py(()=>l(d)):l(d)},[l,c]);return m.useLayoutEffect(()=>i.listen(u),[i,u]),m.useEffect(()=>PT(r),[r]),m.createElement(kT,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const $T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,so=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,p=RT(t,AT),{basename:h}=m.useContext(yo),v,g=!1;if(typeof c=="string"&&DT.test(c)&&(v=c,$T))try{let w=new URL(window.location.href),x=c.startsWith("//")?new URL(w.protocol+c):new URL(c),_=pm(x.pathname,h);x.origin===w.origin&&_!=null?c=_+x.search+x.hash:g=!0}catch{}let b=cT(c,{relative:o}),S=zT(c,{replace:i,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function y(w){r&&r(w),w.defaultPrevented||S(w)}return m.createElement("a",Pp({},p,{href:v||b,onClick:g||s?r:y,ref:n,target:l}))});var hy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hy||(hy={}));var my;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(my||(my={}));function zT(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,l=Ii(),c=mr(),u=jS(e,{relative:i});return m.useCallback(d=>{if(NT(d,n)){d.preventDefault();let p=r!==void 0?r:eu(c)===eu(u);l(e,{replace:p,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[c,l,u,r,o,n,e,s,i,a])}function x5(e){let t=m.useRef(Tp(e)),n=m.useRef(!1),r=mr(),o=m.useMemo(()=>OT(r.search,n.current?null:t.current),[r.search]),s=Ii(),i=m.useCallback((a,l)=>{const c=Tp(typeof a=="function"?a(o):a);n.current=!0,s("?"+c,l)},[s,o]);return[o,i]}var Pn=function(){return Pn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Pn.apply(this,arguments)};function fl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function UT(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var wc="right-scroll-bar-position",Sc="width-before-scroll-bar",FT="with-scroll-bars-hidden",BT="--removed-body-scroll-bar-size";function rf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VT(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var WT=typeof window<"u"?m.useLayoutEffect:m.useEffect,gy=new WeakMap;function HT(e,t){var n=VT(null,function(r){return e.forEach(function(o){return rf(o,r)})});return WT(function(){var r=gy.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||rf(a,null)}),s.forEach(function(a){o.has(a)||rf(a,i)})}gy.set(n,e)},[e]),n}function GT(e){return e}function KT(e,t){t===void 0&&(t=GT);var n=[],r=!1,o={read:function(){if(r)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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;
vendor: 5,749 bytes, lines 68-105
68n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return o}function qT(e){e===void 0&&(e={});var t=KT(null);return t.options=Pn({async:!0,ssr:!1},e),t}var DS=function(e){var t=e.sideCar,n=fl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Pn({},n))};DS.isSideCarExport=!0;function QT(e,t){return e.useMedium(t),DS}var zS=qT(),of=function(){},Uu=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:of,onWheelCapture:of,onTouchMoveCapture:of}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,S=e.as,y=S===void 0?"div":S,w=e.gapMode,x=fl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=p,P=HT([n,t]),T=Pn(Pn({},x),o);return m.createElement(m.Fragment,null,u&&m.createElement(_,{sideCar:zS,removeScrollBar:c,shards:d,noRelative:h,noIsolation:v,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?m.cloneElement(m.Children.only(a),Pn(Pn({},T),{ref:P})):m.createElement(y,Pn({},T,{className:l,ref:P}),a))});Uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Uu.classNames={fullWidth:Sc,zeroRight:wc};var YT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YT();return t&&e.setAttribute("nonce",t),e}function XT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ek=function(){var e=0,t=null;return{add:function(n){e==0&&(t=JT())&&(XT(t,n),ZT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tk=function(){var e=ek();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},US=function(){var e=tk(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},nk={left:0,top:0,right:0,gap:0},sf=function(e){return parseInt(e||"",10)||0},rk=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[sf(n),sf(r),sf(o)]},ok=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nk;var t=rk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sk=US(),Ws="data-scroll-locked",ik=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 69 .`.concat(FT,` { 70 overflow: hidden `).concat(r,`; 71 padding-right: `).concat(a,"px ").concat(r,`; 72 } 73 body[`).concat(Ws,`] { 74 overflow: hidden `).concat(r,`; 75 overscroll-behavior: contain; 76 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 77 padding-left: `.concat(o,`px; 78 padding-top: `).concat(s,`px; 79 padding-right: `).concat(i,`px; 80 margin-left:0; 81 margin-top:0; 82 margin-right: `).concat(a,"px ").concat(r,`; 83 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 84 } 85 86 .`).concat(wc,` { 87 right: `).concat(a,"px ").concat(r,`; 88 } 89 90 .`).concat(Sc,` { 91 margin-right: `).concat(a,"px ").concat(r,`; 92 } 93 94 .`).concat(wc," .").concat(wc,` { 95 right: 0 `).concat(r,`; 96 } 97 98 .`).concat(Sc," .").concat(Sc,` { 99 margin-right: 0 `).concat(r,`; 100 } 101 102 body[`).concat(Ws,`] { 103 `).concat(BT,": ").concat(a,`px; 104 } 105`)},vy=function(){var e=parseInt(document.body.getAttribute(Ws)||"0",10);return isFinite(e)?e:0},ak=function(){m.useEffect(function(){return document.body.setAttribute(Ws,(vy()+1).toString()),function(){var e=vy()-1;e<=0?document.body.removeAttribute(Ws):document.body.setAttribute(Ws,e.toString())}},[])},lk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ak();var s=m.useMemo(function(){return ok(o)},[o]);return m.createElement(sk,{styles:ik(s,!t,o,n?"":"!important")})},kp=!1;if(typeof window<"u")try{var Xl=Object.defineProperty({},"passive",{get:function(){return kp=!0,!0}});window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{kp=!1}var ys=kp?{passive:!1}:!1,ck=function(e){return e.tagName==="TEXTAREA"},FS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ck(e)&&n[t]==="visible")},uk=function(e){return FS(e,"overflowY")},dk=function(e){return FS(e,"overflowX")},yy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=BS(e,r);if(o){var s=VS(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pk=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},BS=function(e,t){return e==="v"?uk(t):dk(t)},VS=function(e,t){return e==="v"?fk(t):pk(t)},hk=function(e,t){return e==="h"&&t==="rtl"?-1:1},mk=function(e,t,n,r,o){var s=hk(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,d=0,p=0;
105do{if(!a)break;var h=VS(e,a),v=h[0],g=h[1],b=h[2],S=g-b-s*v;(v||S)&&BS(e,a)&&(d+=S,p+=v);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(p)<1)&&(c=!0),c},Zl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wy=function(e){return[e.deltaX,e.deltaY]},Sy=function(e){return e&&"current"in e?e.current:e},gk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vk=function(e){return` 106 .block-interactivity-`.concat(e,` {pointer-events: none;} 107 .allow-interactivity-`).concat(e,` {pointer-events: all;} 108`)},yk=0,ws=[];function wk(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(yk++)[0],s=m.useState(US)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=UT([e.lockRef.current],(e.shards||[]).map(Sy),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var S=Zl(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-S[0],x="deltaY"in g?g.deltaY:y[1]-S[1],_,P=g.target,T=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&T==="h"&&P.type==="range")return!1;var E=window.getSelection(),I=E&&E.anchorNode,N=I?I===P||I.contains(P):!1;if(N)return!1;var D=yy(T,P);if(!D)return!0;if(D?_=T:(_=T==="v"?"h":"v",D=yy(T,P)),!D)return!1;if(!r.current&&"changedTouches"in g&&(w||x)&&(r.current=_),!_)return!0;var L=r.current||_;return mk(L,b,g,L==="h"?w:x)},[]),l=m.useCallback(function(g){var b=g;if(!(!ws.length||ws[ws.length-1]!==s)){var S="deltaY"in b?wy(b):Zl(b),y=t.current.filter(function(_){return _.name===b.type&&(_.target===b.target||b.target===_.shadowParent)&&gk(_.delta,S)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(Sy).filter(Boolean).filter(function(_){return _.contains(b.target)}),x=w.length>0?a(b,w[0]):!i.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),c=m.useCallback(function(g,b,S,y){var w={name:g,delta:b,target:S,should:y,shadowParent:Sk(S)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),u=m.useCallback(function(g){n.current=Zl(g),r.current=void 0},[]),d=m.useCallback(function(g){c(g.type,wy(g),g.target,a(g,e.lockRef.current))},[]),p=m.useCallback(function(g){c(g.type,Zl(g),g.target,a(g,e.lockRef.current))},[]);m.useEffect(function(){return ws.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ys),document.addEventListener("touchmove",l,ys),document.addEventListener("touchstart",u,ys),function(){ws=ws.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,ys),document.removeEventListener("touchmove",l,ys),document.removeEventListener("touchstart",u,ys)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(s,{styles:vk(o)}):null,h?m.createElement(lk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bk=QT(zS,wk);var gi=m.forwardRef(function(e,t){return m.createElement(Uu,Pn({},e,{ref:t,sideCar:bk}))});gi.classNames=Uu.classNames;function qe(e){return Object.keys(e)}function af(e){return e&&typeof e=="object"&&!Array.isArray(e)}function vm(e,t){const n={...e},r=t;return af(e)&&af(t)&&Object.keys(t).forEach(o=>{af(r[o])&&o in e?n[o]=vm(n[o],r[o]):n[o]=r[o]}),n}function xk(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _k(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function Rp(e){const t=_k(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function lf(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function WS(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?lf(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");if(r.includes(e))return t?lf(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const s=`${Number(o)/16}${e}`;return t?lf(s):s}}return r}return n}const A=WS("rem",{shouldScale:!0}),tu=WS("em");function ym(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function HS(e){if(typeof e=="number")return!0;
108if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(r=>t.test(r))}return!1}function pl(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==m.Fragment:!1}function mn(e){const t=m.createContext(null);return[({children:o,value:s})=>f.jsx(t.Provider,{value:s,children:o}),()=>{const o=m.useContext(t);if(o===null)throw new Error(e);return o}]}function wm(e=null){const t=m.createContext(e);return[({children:o,value:s})=>f.jsx(t.Provider,{value:s,children:o}),()=>m.useContext(t)]}function by(e,t){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(t);return`${e}-${n}`}}function nu(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function Ck(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].disabled)return r}return e}function Ek(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].disabled)return r}return e}function Pk(e,t,n){return nu(e,n)===nu(t,n)}function GS({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:o=!1,dir:s="rtl",orientation:i}){return a=>{var v;n==null||n(a);const l=Array.from(((v=nu(a.currentTarget,e))==null?void 0:v.querySelectorAll(t))||[]).filter(g=>Pk(a.currentTarget,g,e)),c=l.findIndex(g=>a.currentTarget===g),u=Ek(c,l,r),d=Ck(c,l,r),p=s==="rtl"?d:u,h=s==="rtl"?u:d;switch(a.key){case"ArrowRight":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),l[p].focus(),o&&l[p].click());break}case"ArrowLeft":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),l[h].focus(),o&&l[h].click());break}case"ArrowUp":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),l[d].focus(),o&&l[d].click());break}case"ArrowDown":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),l[u].focus(),o&&l[u].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!l[0].disabled&&l[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const g=l.length-1;!l[g].disabled&&l[g].focus();break}}}}const Tk={app:100,modal:200,popover:300,overlay:400,max:9999};function gn(e){return Tk[e]}const KS=()=>{};function kk(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||KS:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function be(e,t="size",n=!0){if(e!==void 0)return HS(e)?n?A(e):e:`var(--${t}-${e})`}function wo(e){return be(e,"mantine-spacing")}function Ae(e){return e===void 0?"var(--mantine-radius-default)":be(e,"mantine-radius")}function bt(e){return be(e,"mantine-font-size")}function qS(e){return be(e,"mantine-line-height",!1)}function Sm(e){if(e)return be(e,"mantine-shadow",!1)}function Tn(e,t){return n=>{e==null||e(n),t==null||t(n)}}function bm(e,t){return e in t?Rp(t[e]):Rp(e)}function xy(e,t){const n=e.map(r=>({value:r,px:bm(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function Rk(e,t,n){var r;return n?Array.from(((r=nu(n,t))==null?void 0:r.querySelectorAll(e))||[]).findIndex(o=>o===n):null}function Ik(){const[e,t]=m.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function QS(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Oo(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Fu(e,t){const n=typeof t=="number"?t:t.delay,r=typeof t=="number"?!1:t.flushOnUnmount,o=Oo(e),s=m.useRef(0),i=m.useRef(()=>{}),a=Object.assign(m.useCallback((...l)=>{window.clearTimeout(s.current);const c=()=>{s.current!==0&&(s.current=0,o(...l))};i.current=c,a.flush=c,s.current=window.setTimeout(c,n)},[o,n]),{flush:i.current});return m.useEffect(()=>()=>{window.clearTimeout(s.current),r&&a.flush()},[a,r]),a}const _y=["mousedown","touchstart"];function Nk(e,t,n){const r=m.useRef(null);return m.useEffect(()=>{const o=s=>{const{target:i}=s??{};if(Array.isArray(n)){const a=(i==null?void 0:i.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(i)&&i.tagName!=="HTML";n.every(c=>!!c&&!s.composedPath().includes(c))&&!a&&e()}else r.current&&!r.current.contains(i)&&e()};
108return(t||_y).forEach(s=>document.addEventListener(s,o)),()=>{(t||_y).forEach(s=>document.removeEventListener(s,o))}},[r,e,n]),r}function Ok(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Ak(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function YS(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=m.useState(n?t:Ak(e)),s=m.useRef(null);return m.useEffect(()=>{if("matchMedia"in window)return s.current=window.matchMedia(e),o(s.current.matches),Ok(s.current,i=>o(i.matches))},[e]),r}function JS(e,t){return YS("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}const Ni=typeof document<"u"?m.useLayoutEffect:m.useEffect;function ar(e,t){const n=m.useRef(!1);m.useEffect(()=>()=>{n.current=!1},[]),m.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function XS({opened:e,shouldReturnFocus:t=!0}){const n=m.useRef(null),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return ar(()=>{let o=-1;const s=i=>{i.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",s),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",s)}},[e,t]),r}const jk=/input|select|textarea|button|object/,ZS="a, input, select, textarea, button, object, [tabindex]";function Mk(e){return e.style.display==="none"}function Lk(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(Mk(n))return!1;n=n.parentNode}return!0}function eb(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Ip(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(eb(e));return(jk.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Lk(e)}function tb(e){const t=eb(e);return(Number.isNaN(t)||t>=0)&&Ip(e)}function $k(e){return Array.from(e.querySelectorAll(ZS)).filter(tb)}function Dk(e,t){const n=$k(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let s=r===o.activeElement||e===o.activeElement;const i=o.activeElement;if(i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(s=n.filter(u=>u.getAttribute("type")==="radio"&&u.getAttribute("name")===i.getAttribute("name")).includes(r)),!s)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function zk(e=!0){const t=m.useRef(null),n=o=>{let s=o.querySelector("[data-autofocus]");if(!s){const i=Array.from(o.querySelectorAll(ZS));s=i.find(tb)||i.find(Ip)||null,!s&&Ip(o)&&(s=o)}s&&s.focus({preventScroll:!0})},r=m.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),t.current=o):t.current=null)},[e]);return m.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const o=s=>{s.key==="Tab"&&t.current&&Dk(t.current,s)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),r}const Uk=e=>(e+1)%1e6;function Fk(){const[,e]=m.useReducer(Uk,0);return e}const Bk=gt.useId||(()=>{});function Vk(){const e=Bk();return e?`mantine-${e.replace(/:/g,"")}`:""}function ds(e){const t=Vk(),[n,r]=m.useState(t);return Ni(()=>{r(QS())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function nb(e,t,n){m.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Np(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function Wk(...e){const t=new Map;return n=>{if(e.forEach(r=>{const o=Np(r,n);o&&t.set(r,o)}),t.size>0)return()=>{e.forEach(r=>{const o=t.get(r);o?o():Np(r,null)}),t.clear()}}}function Lt(...e){return m.useCallback(Wk(...e),e)}function Bu({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,s]=m.useState(t!==void 0?t:n),i=(a,...l)=>{s(a),r==null||r(a,...l)};return e!==void 0?[e,r,!0]:[o,i,!1]}function xm(e,t){return YS("(prefers-reduced-motion: reduce)",e,t)}function rb(e=!1,t){const{onOpen:n,onClose:r}={},[o,s]=m.useState(e),i=m.useCallback(()=>{s(c=>c||(n==null||n(),!0))},[n]),a=m.useCallback(()=>{s(c=>c&&(r==null||r(),!1))},[r]),l=m.useCallback(()=>{o?a():i()},[a,i,o]);return[o,{open:i,close:a,toggle:l}]}function _m(e){var n;const t=gt.version;return typeof gt.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function _5(e){return e}function ob(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ob(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ob(e))&&(r&&(r+=" "),r+=t);return r}const Hk={};function Gk(e){const t={};return e.forEach(n=>
108{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=Ue(t[r],o):t[r]=o})}),t}function Vu({theme:e,classNames:t,props:n,stylesCtx:r}){const s=(Array.isArray(t)?t:[t]).map(i=>typeof i=="function"?i(e,n,r):i||Hk);return Gk(s)}function ru({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((s,i)=>typeof i=="function"?{...s,...i(e,n,r)}:{...s,...i},{})}const Cm=m.createContext(null);function gr(){const e=m.useContext(Cm);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function Kk(){return gr().cssVariablesResolver}function qk(){return gr().classNamesPrefix}function Wu(){return gr().getStyleNonce}function Qk(){return gr().withStaticClasses}function Yk(){return gr().headless}function Jk(){var e;return(e=gr().stylesTransform)==null?void 0:e.sx}function Xk(){var e;return(e=gr().stylesTransform)==null?void 0:e.styles}function sb(){return gr().env||"default"}function Zk(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function eR(e){let t=e.replace("#","");if(t.length===3){const i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}if(t.length===8){const i=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:i}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,s=n&255;return{r,g:o,b:s,a:1}}function tR(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o===void 0?1:o}}function nR(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,i=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*s-1))*o,l=r/60,c=a*(1-Math.abs(l%2-1)),u=s-a/2;let d,p,h;return l>=0&&l<1?(d=a,p=c,h=0):l>=1&&l<2?(d=c,p=a,h=0):l>=2&&l<3?(d=0,p=a,h=c):l>=3&&l<4?(d=0,p=c,h=a):l>=4&&l<5?(d=c,p=0,h=a):(d=a,p=0,h=c),{r:Math.round((d+u)*255),g:Math.round((p+u)*255),b:Math.round((h+u)*255),a:i||1}}function Em(e){return Zk(e)?eR(e):e.startsWith("rgb")?tR(e):e.startsWith("hsl")?nR(e):{r:0,g:0,b:0,a:1}}function ec(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:s}=Em(e),i=1-t,a=l=>Math.round(l*i);return`rgba(${a(n)}, ${a(r)}, ${a(o)}, ${s})`}function Wa(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function cf(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function rR(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function oR(e){if(e.startsWith("oklch("))return(rR(e)||0)/100;const{r:t,g:n,b:r}=Em(e),o=t/255,s=n/255,i=r/255,a=cf(o),l=cf(s),c=cf(i);return .2126*a+.7152*l+.0722*c}function ta(e,t=.179){return e.startsWith("var(")?!1:oR(e)>t}function Oi({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ta(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ta(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ta(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),s=o?Number(o):void 0,i=r in t.colors;if(i){const a=s!==void 0?t.colors[r][s]:t.colors[r][Wa(t,n||"light")];return{color:r,value:a,shade:s,isThemeColor:i,isLight:ta(a,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:i,isLight:ta(e,t.luminanceThreshold),shade:s,variable:void 0}}function At(e,t){const n=Oi({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Op(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)??t.defaultGradient.deg??0},r=At(n.from,t),o=At(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function bn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const s=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${s}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=Em(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Ss=bn,sR=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const s=Oi({color:e,theme:t}),i=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const a=i&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:a,border:`${A(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:a,border:`${A(1)} solid transparent`}:{background:e,hover:ec(e,.1),color:a,border:`${A(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${A(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:bn(a,.1),hover:bn(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${A(1)} solid transparent`}}return{background:bn(e,.1),hover:bn(e,.12),color:e,border:`${A(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${A(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:bn(t.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${A(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:bn(e,.05),color:e,border:`${A(1)} solid ${e}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${A(1)} solid transparent`};const a=t.colors[s.color][s.shade];return{background:"transparent",hover:bn(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${A(1)} solid transparent`}}return{background:"transparent",hover:bn(e,.12),color:e,border:`${A(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${A(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${A(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${A(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:ec(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${A(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ec(t.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${A(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ec(t.white,.01),color:e,border:`${A(1)} solid transparent`}:n==="gradient"?{background:Op(r,t),hover:Op(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${A(1)} solid var(--mantine-color-default-border)`}:{}},iR={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Cy="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Pm={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:iR,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:sR,autoContrast:!1,luminanceThreshold:.3,fontFamily:Cy,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Cy,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:A(34),lineHeight:"1.3"},h2:{fontSize:A(26),lineHeight:"1.35"},h3:{fontSize:A(22),lineHeight:"1.4"},h4:{fontSize:A(18),lineHeight:"1.45"},h5:{fontSize:A(16),lineHeight:"1.5"},h6:{fontSize:A(14),lineHeight:"1.5"}}},fontSizes:{xs:A(12),sm:A(14),md:A(16),lg:A(18),xl:A(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:A(2),sm:A(4),md:A(8),lg:A(16),xl:A(32)},spacing:{xs:A(10),sm:A(12),md:A(16),lg:A(20),xl:A(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${A(1)} ${A(3)} rgba(0, 0, 0, 0.05), 0 ${A(1)} ${A(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${A(1)} ${A(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${A(10)} ${A(15)} ${A(-5)}, rgba(0, 0, 0, 0.04) 0 ${A(7)} ${A(7)} ${A(-5)}`,md:`0 ${A(1)} ${A(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${A(20)} ${A(25)} ${A(-5)}, rgba(0, 0, 0, 0.04) 0 ${A(10)} ${A(10)} ${A(-5)}`,lg:`0 ${A(1)} ${A(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${A(28)} ${A(23)} ${A(-7)}, rgba(0, 0, 0, 0.04) 0 ${A(12)} ${A(12)} ${A(-7)}`,xl:`0 ${A(1)} ${A(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${A(36)} ${A(28)} ${A(-7)}, rgba(0, 0, 0, 0.04) 0 ${A(17)} ${A(17)} ${A(-7)}`},other:{},components:{}};function Ey(e){return e==="auto"||e==="dark"||e==="light"}function aR({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return Ey(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&Ey(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const lR="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more â https://mantine.dev/theming/colors/#primary-color",Py="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function uf(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Ty(e){if(!(e.primaryColor in e.colors))throw new Error(lR);if(typeof e.primaryShade=="object"&&(!uf(e.primaryShade.dark)||!uf(e.primaryShade.light)))throw new Error(Py);if(typeof e.primaryShade=="number"&&!uf(e.primaryShade))throw new Error(Py)}function cR(e,t){var r;if(!t)return Ty(e),e;const n=vm(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),Ty(n),n}const Tm=m.createContext(null),uR=()=>m.useContext(Tm)||Pm;function Ct(){const e=m.useContext(Tm);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function ib({theme:e,children:t,inherit:n=!0}){const r=uR(),o=m.useMemo(()=>cR(n?r:Pm,e),[e,r,n]);return f.jsx(Tm.Provider,{value:o,children:t})}ib.displayName="@mantine/core/MantineThemeProvider";function dR(){const e=Ct(),t=Wu(),n=qe(e.breakpoints).reduce((r,o)=>{const s=e.breakpoints[o].includes("px"),i=Rp(e.breakpoints[o]),a=s?`${i-.1}px`:tu(i-.1),l=s?`${i}px`:tu(i);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");
108return f.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function df(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function na(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function fR(e,t){const n=df(e.variables),r=n?na(t,n):"",o=df(e.dark),s=df(e.light),i=o?na(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",a=s?na(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,s):"";return`${r}${i}${a}`}function Hu({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&Oi({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function ky(e,t){return Hu({color:e.colors[e.primaryColor][Wa(e,t)],theme:e,autoContrast:null})}function tc({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const a=Wa(e,"light"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Ss(e.colors[t][a],.1),[`--mantine-color-${r}-light-hover`]:Ss(e.colors[t][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:Ss(e.colors[t][a],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}const s=Wa(e,"dark"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:Ss(e.colors[t][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:Ss(e.colors[t][Math.max(0,s-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(s-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Ss(e.colors[t][Math.max(s-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}function pR(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function bs(e,t,n){qe(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const ab=e=>{const t=Wa(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:A(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":ky(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":ky(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};bs(r.variables,e.breakpoints,"breakpoint"),bs(r.variables,e.spacing,"spacing"),bs(r.variables,e.fontSizes,"font-size"),bs(r.variables,e.lineHeights,"line-height"),bs(r.variables,e.shadows,"shadow"),bs(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((s,i)=>{r.variables[`--mantine-primary-color-${i}`]=`var(--mantine-color-${e.primaryColor}-${i})`}
108),qe(e.colors).forEach(s=>{const i=e.colors[s];if(pR(i)){Object.assign(r.light,tc({theme:e,name:i.name,color:i.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,tc({theme:e,name:i.name,color:i.dark,colorScheme:"dark",withColorValues:!0}));return}i.forEach((a,l)=>{r.variables[`--mantine-color-${s}-${l}`]=a}),Object.assign(r.light,tc({theme:e,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,tc({theme:e,color:s,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return qe(o).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=o[s].fontSize,r.variables[`--mantine-${s}-line-height`]=o[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=o[s].fontWeight||e.headings.fontWeight}),r};function hR({theme:e,generator:t}){const n=ab(e),r=t==null?void 0:t(e);return r?vm(n,r):n}const ff=ab(Pm);function mR(e){const t={variables:{},light:{},dark:{}};return qe(e.variables).forEach(n=>{ff.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),qe(e.light).forEach(n=>{ff.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),qe(e.dark).forEach(n=>{ff.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function gR(e){return` 109 ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } 110 ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } 111`}function lb({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Ct(),r=Wu(),o=Kk(),s=hR({theme:n,generator:o}),i=e===":root"&&t,a=i?mR(s):s,l=fR(a,e);return l?f.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${l}${i?"":gR(e)}`}}):null}lb.displayName="@mantine/CssVariables";function vR(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function xs(e,t){var o,s;const n=typeof window<"u"&&"matchMedia"in window&&((o=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:o.matches),r=e!=="auto"?e:n?"dark":"light";(s=t())==null||s.setAttribute("data-mantine-color-scheme",r)}function yR({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=m.useRef(null),[s,i]=m.useState(()=>e.get(t)),a=r||s,l=m.useCallback(u=>{r||(xs(u,n),i(u),e.set(u))},[e.set,a,r]),c=m.useCallback(()=>{i(t),xs(t,n),e.clear()},[e.clear,t]);return m.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ni(()=>{xs(e.get(t),n)},[]),m.useEffect(()=>{var d;if(r)return xs(r,n),()=>{};r===void 0&&xs(s,n),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=p=>{s==="auto"&&xs(p.matches?"dark":"light",n)};return(d=o.current)==null||d.addEventListener("change",u),()=>{var p;return(p=o.current)==null?void 0:p.removeEventListener("change",u)}},[s,r]),{colorScheme:a,setColorScheme:l,clearColorScheme:c}}function wR({respectReducedMotion:e,getRootElement:t}){Ni(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}vR();function cb({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:s=!0,withCssVariables:i=!0,cssVariablesSelector:a=":root",classNamesPrefix:l="mantine",colorSchemeManager:c=aR(),defaultColorScheme:u="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:h,stylesTransform:v,env:g}){const{colorScheme:b,setColorScheme:S,clearColorScheme:y}=yR({defaultColorScheme:u,forceColorScheme:h,manager:c,getRootElement:d});return wR({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),f.jsx(Cm.Provider,{value:{colorScheme:b,setColorScheme:S,clearColorScheme:y,getRootElement:d,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:a,withStaticClasses:r,stylesTransform:v,env:g},children:f.jsxs(ib,{theme:e,children:[i&&f.jsx(lb,{cssVariablesSelector:a,deduplicateCssVariables:s}),o&&f.jsx(dR,{}),t]})})}cb.displayName="@mantine/core/MantineProvider";function hl({classNames:e,styles:t,props:n,stylesCtx:r}){const o=Ct();return{resolvedClassNames:Vu({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:ru({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const SR={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function bR({theme:e,options:t,unstyled:n}){return Ue((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||SR[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function xR({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Vu({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}
111function Ry({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Vu({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function _R({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function CR({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function ER({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function PR({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(s=>{var i,a;return(a=Vu({theme:t,classNames:(i=t.components[s])==null?void 0:i.classNames,props:r,stylesCtx:o}))==null?void 0:a[n]})}function TR({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function kR({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:s,classes:i,unstyled:a,className:l,rootSelector:c,props:u,stylesCtx:d,withStaticClasses:p,headless:h,transformedStyles:v}){return Ue(bR({theme:e,options:t,unstyled:a||h}),PR({theme:e,themeName:n,selector:r,props:u,stylesCtx:d}),TR({options:t,classes:i,selector:r,unstyled:a}),Ry({selector:r,stylesCtx:d,theme:e,classNames:s,props:u}),Ry({selector:r,stylesCtx:d,theme:e,classNames:v,props:u}),xR({selector:r,stylesCtx:d,options:t,props:u,theme:e}),_R({rootSelector:c,selector:r,className:l}),CR({selector:r,classes:i,unstyled:a||h}),p&&!h&&ER({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function RR({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(s=>{var i;return ru({theme:e,styles:(i=e.components[s])==null?void 0:i.styles,props:n,stylesCtx:r})[o]}).reduce((s,i)=>({...s,...i}),{})}function Ap({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Ap({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function IR(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...ym(n[r])}}),t),{})}function NR({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:s,themeName:i,headless:a}){var l;return(l=IR([a?{}:t==null?void 0:t(n,r,o),...i.map(c=>{var u,d,p;return(p=(d=(u=n.components)==null?void 0:u[c])==null?void 0:d.vars)==null?void 0:p.call(d,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:l[s]}function OR({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:s,rootSelector:i,styles:a,style:l,vars:c,varsResolver:u,headless:d,withStylesTransform:p}){return{...!p&&RR({theme:e,themeName:t,props:o,stylesCtx:s,selector:n}),...!p&&ru({theme:e,styles:a,props:o,stylesCtx:s})[n],...!p&&ru({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:s})[n],...NR({theme:e,props:o,stylesCtx:s,vars:c,varsResolver:u,selector:n,themeName:t,headless:d}),...i===n?Ap({style:l,theme:e}):null,...Ap({style:r==null?void 0:r.style,theme:e})}}function AR({props:e,stylesCtx:t,themeName:n}){var i;const r=Ct(),o=(i=Xk())==null?void 0:i();return{getTransformedStyles:a=>o?[...a.map(c=>o(c,{props:e,theme:r,ctx:t})),...n.map(c=>{var u;return o((u=r.components[c])==null?void 0:u.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function te({name:e,classes:t,props:n,stylesCtx:r,className:o,style:s,rootSelector:i="root",unstyled:a,classNames:l,styles:c,vars:u,varsResolver:d}){const p=Ct(),h=qk(),v=Qk(),g=Yk(),b=(Array.isArray(e)?e:[e]).filter(w=>w),{withStylesTransform:S,getTransformedStyles:y}=AR({props:n,stylesCtx:r,themeName:b});return(w,x)=>({className:kR({theme:p,options:x,themeName:b,selector:w,classNamesPrefix:h,classNames:l,classes:t,unstyled:a,className:o,rootSelector:i,props:n,stylesCtx:r,withStaticClasses:v,headless:g,transformedStyles:y([x==null?void 0:x.styles,c])}),style:OR({theme:p,themeName:b,selector:w,options:x,props:n,stylesCtx:r,rootSelector:i,styles:c,style:s,vars:u,varsResolver:d,headless:g,withStylesTransform:S})})}function km(e,t){return typeof e=="boolean"?e:t.autoContrast}function Iy(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function ub({keepTransitions:e}={}){const t=m.useRef(KS),n=m.useRef(-1),r=m.useContext(Cm),o=Wu(),s=m.useRef(o==null?void 0:o());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=d=>{r.setColorScheme(d),t.current=e?()=>{}:Iy(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var p;(p=t.current)==null||p.call(t)},10)},a=()=>{r.clearColorScheme(),t.current=e?()=>{}:Iy(s.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var d;(d=t.current)==null||d.call(t)},10)},l=JS("light",{getInitialValueInEffect:!1}),c=r.colorScheme==="auto"?l:r.colorScheme,u=m.useCallback(()=>i(c==="light"?"dark":"light"),[i,c]);return m.useEffect(()=>()=>{var d;(d=t.current)==null||d.call(t),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:i,clearColorScheme:a,toggleColorScheme:u}}function jR(e,t={getInitialValueInEffect:!0}){const n=JS(e,t),{colorScheme:r}=ub();return r==="auto"?n:r}function $(e,t,n){var i;
111const r=Ct(),o=(i=r.components[e])==null?void 0:i.defaultProps,s=typeof o=="function"?o(r):o;return{...t,...s,...ym(n)}}function pf(e){return qe(e).reduce((t,n)=>e[n]!==void 0?`${t}${xk(n)}:${e[n]};`:t,"").trim()}function MR({selector:e,styles:t,media:n,container:r}){const o=t?pf(t):"",s=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${pf(a.styles)}}}`):[],i=Array.isArray(r)?r.map(a=>`@container ${a.query}{${e}{${pf(a.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${s.join("")}${i.join("")}`.trim()}function db(e){const t=Wu();return f.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:MR(e)}})}function Gu(e){const{m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:l,ms:c,p:u,px:d,py:p,pt:h,pb:v,pl:g,pr:b,pe:S,ps:y,bd:w,bg:x,c:_,opacity:P,ff:T,fz:E,fw:I,lts:N,ta:D,lh:L,fs:G,tt:B,td:U,w:H,miw:z,maw:k,h:O,mih:j,mah:F,bgsz:q,bgp:se,bgr:me,bga:ge,pos:le,top:fe,left:He,bottom:je,right:Me,inset:Jt,display:Co,flex:vn,hiddenFrom:Cr,visibleFrom:Er,lightHidden:gs,darkHidden:Ol,sx:Al,...Eo}=e;return{styleProps:ym({m:t,mx:n,my:r,mt:o,mb:s,ml:i,mr:a,me:l,ms:c,p:u,px:d,py:p,pt:h,pb:v,pl:g,pr:b,pe:S,ps:y,bd:w,bg:x,c:_,opacity:P,ff:T,fz:E,fw:I,lts:N,ta:D,lh:L,fs:G,tt:B,td:U,w:H,miw:z,maw:k,h:O,mih:j,mah:F,bgsz:q,bgp:se,bgr:me,bga:ge,pos:le,top:fe,left:He,bottom:je,right:Me,inset:Jt,display:Co,flex:vn,hiddenFrom:Cr,visibleFrom:Er,lightHidden:gs,darkHidden:Ol,sx:Al}),rest:Eo}}const LR={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Rm(e,t){const n=Oi({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function $R(e,t){const n=Oi({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Rm(e,t)}function DR(e,t){if(typeof e=="number")return A(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(i=>i.trim()!=="");let s=`${A(n)}`;return r&&(s+=` ${r}`),o.length>0&&(s+=` ${Rm(o.join(" "),t)}`),s.trim()}return e}const Ny={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function zR(e){return typeof e=="string"&&e in Ny?Ny[e]:e}const UR=["h1","h2","h3","h4","h5","h6"];function FR(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&UR.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?A(e):e}function BR(e){return e}const VR=["h1","h2","h3","h4","h5","h6"];function WR(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&VR.includes(e)?`var(--mantine-${e}-line-height)`:e}function HR(e){return typeof e=="number"?A(e):e}function GR(e,t){if(typeof e=="number")return A(e);
111if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return A(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const hf={color:Rm,textColor:$R,fontSize:FR,spacing:GR,identity:BR,size:HR,lineHeight:WR,fontFamily:zR,border:DR};function Oy(e){return e.replace("(min-width: ","").replace("em)","")}function KR({media:e,...t}){const r=Object.keys(e).sort((o,s)=>Number(Oy(o))-Number(Oy(s))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function qR(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function QR(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function YR(e){return typeof e=="object"&&e!==null?qe(e).filter(t=>t!=="base"):[]}function JR(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function XR({styleProps:e,data:t,theme:n}){return KR(qe(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const s=t[o],i=Array.isArray(s.property)?s.property:[s.property],a=QR(e[o]);if(!qR(e[o]))return i.forEach(c=>{r.inlineStyles[c]=hf[s.type](a,n)}),r;r.hasResponsiveStyles=!0;const l=YR(e[o]);return i.forEach(c=>{a&&(r.styles[c]=hf[s.type](a,n)),l.forEach(u=>{const d=`(min-width: ${n.breakpoints[u]})`;r.media[d]={...r.media[d],[c]:hf[s.type](JR(e[o],u),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function ZR(){return`__m__-${m.useId().replace(/:/g,"")}`}function fb(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...fb(r,t)}),{}):typeof e=="function"?e(t):e??{}}function C5(e){return e}function pb(e){return e.startsWith("data-")?e:`data-${e}`}function eI(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[pb(n)]=e[n]),t},{})}function hb(e){return e?typeof e=="string"?{[pb(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...hb(n)}),{}):eI(e):null}function jp(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...jp(r,t)}),{}):typeof e=="function"?e(t):e??{}}function tI({theme:e,style:t,vars:n,styleProps:r}){const o=jp(t,e),s=jp(n,e);return{...o,...s,...r}}const mb=m.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:s,size:i,hiddenFrom:a,visibleFrom:l,lightHidden:c,darkHidden:u,renderRoot:d,__size:p,...h},v)=>{var E;const g=Ct(),b=e||"div",{styleProps:S,rest:y}=Gu(h),w=Jk(),x=(E=w==null?void 0:w())==null?void 0:E(S.sx),_=ZR(),P=XR({styleProps:S,theme:g,data:LR}),T={ref:v,style:tI({theme:g,style:t,vars:n,styleProps:P.inlineStyles}),className:Ue(r,x,{[_]:P.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":u,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":HS(i)?void 0:i||void 0,size:p,...hb(s),...y};return f.jsxs(f.Fragment,{children:[P.hasResponsiveStyles&&f.jsx(db,{selector:`.${_}`,styles:P.styles,media:P.media}),typeof d=="function"?d(T):f.jsx(b,{...T})]})});mb.displayName="@mantine/core/Box";const V=mb;function gb(e){return e}function nI(e){const t=e;return n=>{const r=m.forwardRef((o,s)=>f.jsx(t,{...n,...o,ref:s}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r}}function Q(e){const t=m.forwardRef(e);return t.extend=gb,t.withProps=n=>{const r=m.forwardRef((o,s)=>f.jsx(t,{...n,...o,ref:s}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function Ye(e){const t=m.forwardRef(e);return t.withProps=n=>{const r=m.forwardRef((o,s)=>f.jsx(t,{...n,...o,ref:s}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=gb,t}const rI=m.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ai(){return m.useContext(rI)}function Ku(){return typeof window<"u"}function ji(e){return vb(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(vb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vb(e){return Ku()?e instanceof Node||e instanceof xt(e).Node:!1}function we(e){return Ku()?e instanceof Element||e instanceof xt(e).Element:!1}function Kt(e){return Ku()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function Mp(e){return!Ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function ml(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function oI(e){return/^(table|td|th)$/.test(ji(e))}function qu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const sI=/transform|translate|scale|rotate|perspective|filter/,iI=/paint|layout|strict|content/,Po=e=>!!e&&e!=="none";let mf;function Im(e){const t=we(e)?Ht(e):e;return Po(t.transform)||Po(t.translate)||Po(t.scale)||Po(t.rotate)||Po(t.perspective)||!Qu()&&(Po(t.backdropFilter)||Po(t.filter))||sI.test(t.willChange||"")||iI.test(t.contain||"")}function aI(e){let t=lr(e);for(;Kt(t)&&!po(t);){if(Im(t))return t;if(qu(t))return null;t=lr(t)}return null}function Qu(){return mf==null&&(mf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mf}function po(e){return/^(html|body|#document)$/.test(ji(e))}function Ht(e){return xt(e).getComputedStyle(e)}function Yu(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lr(e){if(ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mp(e)&&e.host||Mn(e);return Mp(t)?t.host:t}function yb(e){const t=lr(e);return po(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kt(t)&&ml(t)?t:yb(t)}function er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=xt(o);if(s){const a=Lp(i);
111return t.concat(i,i.visualViewport||[],ml(o)?o:[],a&&n?er(a):[])}else return t.concat(o,er(o,[],n))}function Lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ay(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ha(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mp(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function wb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Sb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function lI(e){return dI()?!1:!jy()&&e.width===0&&e.height===0||jy()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function cI(){return/apple/i.test(navigator.vendor)}function jy(){const e=/android/i;return e.test(wb())||e.test(Sb())}function uI(){return wb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function dI(){return Sb().includes("jsdom/")}function $p(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function fI(e){return"nativeEvent"in e}function pI(e){return e.matches("html,body")}function Lo(e){return(e==null?void 0:e.ownerDocument)||document}function gf(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Cs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const hI="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function mI(e){return Kt(e)&&e.matches(hI)}const pn=Math.min,tt=Math.max,ou=Math.round,nc=Math.floor,In=e=>({x:e,y:e}),gI={left:"right",right:"left",bottom:"top",top:"bottom"};function Dp(e,t,n){return tt(e,pn(t,n))}function cr(e,t){return typeof e=="function"?e(t):e}function hn(e){return e.split("-")[0]}function Mi(e){return e.split("-")[1]}function Nm(e){return e==="x"?"y":"x"}function Om(e){return e==="y"?"height":"width"}function on(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Am(e){return Nm(on(e))}function vI(e,t,n){n===void 0&&(n=!1);const r=Mi(e),o=Am(e),s=Om(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=su(i)),[i,su(i)]}function yI(e){const t=su(e);return[zp(e),t,zp(t)]}function zp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const My=["left","right"],Ly=["right","left"],wI=["top","bottom"],SI=["bottom","top"];function bI(e,t,n){switch(e){case"top":case"bottom":return n?t?Ly:My:t?My:Ly;case"left":case"right":return t?wI:SI;default:return[]}}function xI(e,t,n,r){const o=Mi(e);let s=bI(hn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(zp)))),s}function su(e){const t=hn(e);return gI[t]+e.slice(t.length)}function _I(e){return{top:0,right:0,bottom:0,left:0,...e}}function jm(e){return typeof e!="number"?_I(e):{top:e,right:e,bottom:e,left:e}}function vi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $y(e,t,n){let{reference:r,floating:o}=e;const s=on(t),i=Am(t),a=Om(i),l=hn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Mi(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1);break}return h}async function CI(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=cr(t,e),v=jm(h),b=a[p?d==="floating"?"reference":"floating":d],S=vi(await s.getClippingRect
111({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},_=vi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(S.top-_.top+v.top)/x.y,bottom:(_.bottom-S.bottom+v.bottom)/x.y,left:(S.left-_.left+v.left)/x.x,right:(_.right-S.right+v.right)/x.x}}const EI=50,PI=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:CI},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=$y(c,r,l),p=r,h=0;const v={};for(let g=0;g<s.length;g++){const b=s[g];if(!b)continue;const{name:S,fn:y}=b,{x:w,y:x,data:_,reset:P}=await y({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=x??d,v[S]={...v[S],..._},P&&h<EI&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:d}=$y(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},TI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=cr(e,t)||{};if(c==null)return{};const d=jm(u),p={x:n,y:r},h=Am(o),v=Om(h),g=await i.getDimensions(c),b=h==="y",S=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",x=s.reference[v]+s.reference[h]-p[h]-s.floating[v],_=p[h]-s.reference[h],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let T=P?P[w]:0;(!T||!await(i.isElement==null?void 0:i.isElement(P)))&&(T=a.floating[w]||s.floating[v]);const E=x/2-_/2,I=T/2-g[v]/2-1,N=pn(d[S],I),D=pn(d[y],I),L=N,G=T-g[v]-D,B=T/2-g[v]/2+E,U=Dp(L,B,G),H=!l.arrow&&Mi(o)!=null&&B!==U&&s.reference[v]/2-(B<L?N:D)-g[v]/2<0,z=H?B<L?B-L:B-G:0;return{[h]:p[h]+z,data:{[h]:U,centerOffset:B-U-z,...H&&{alignmentOffset:z}},reset:H}}}),kI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=cr(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=hn(o),y=on(a),w=hn(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=p||(w||!g?[su(a)]:yI(a)),P=v!=="none";!p&&P&&_.push(...xI(a,g,v,x));const T=[a,..._],E=await l.detectOverflow(t,b),I=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(E[S]),d){const B=vI(o,i,x);I.push(E[B[0]],E[B[1]])}if(N=[...N,{placement:o,overflows:I}],!I.every(B=>B<=0)){var D,L;const B=(((D=s.flip)==null?void 0:D.index)||0)+1,U=T[B];if(U&&(!(d==="alignment"?y!==on(U):!1)||N.every(k=>on(k.placement)===y?k.overflows[0]>0:!0)))return{data:{index:B,overflows:N},reset:{placement:U}};let H=(L=N.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:L.placement;if(!H)switch(h){case"bestFit":{var G;const z=(G=N.filter(k=>{if(P){const O=on(k.placement);return O===y||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,j)=>O+j,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:G[0];z&&(H=z);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function bb(e){const t=pn(...e.map(s=>s.left)),n=pn(...e.map(s=>s.top)),r=tt(...e.map(s=>s.right)),o=tt(...e.map(s=>s.bottom));return{x:t,y:n,width:r-t,height:o-n}}function RI(e){const t=e.slice().sort((o,s)=>o.y-s.y),n=[];let r=null;for(let o=0;o<t.length;o++){const s=t[o];!r||s.y-r.y>r.height/2?n.push([s]):n[n.length-1].push(s),r=s}return n.map(o=>vi(bb(o)))}const II=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:s,strategy:i}=t,{padding:a=2,x:l,y:c}=cr(e,t),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(r.reference))||[]),d=RI(u),p=vi(bb(u)),h=jm(a);function v(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&c!=null)return d.find(b=>l>b.left-h.left&&l<b.right+h.right&&c>b.top-h.top&&c<b.bottom+h.bottom)||p;
111if(d.length>=2){if(on(n)==="y"){const N=d[0],D=d[d.length-1],L=hn(n)==="top",G=N.top,B=D.bottom,U=L?N.left:D.left,H=L?N.right:D.right,z=H-U,k=B-G;return{top:G,bottom:B,left:U,right:H,width:z,height:k,x:U,y:G}}const b=hn(n)==="left",S=tt(...d.map(N=>N.right)),y=pn(...d.map(N=>N.left)),w=d.filter(N=>b?N.left===y:N.right===S),x=w[0].top,_=w[w.length-1].bottom,P=y,T=S,E=T-P,I=_-x;return{top:x,bottom:_,left:P,right:T,width:E,height:I,x:P,y:x}}return p}const g=await s.getElementRects({reference:{getBoundingClientRect:v},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},xb=new Set(["left","top"]);async function NI(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=hn(n),a=Mi(n),l=on(n)==="y",c=xb.has(i)?-1:1,u=s&&l?-1:1,d=cr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const OI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await NI(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},AI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:y,y:w}=S;return{x:y,y:w}}},...c}=cr(e,t),u={x:n,y:r},d=await s.detectOverflow(t,c),p=on(hn(o)),h=Nm(p);let v=u[h],g=u[p];if(i){const S=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=v+d[S],x=v-d[y];v=Dp(w,v,x)}if(a){const S=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=g+d[S],x=g-d[y];g=Dp(w,g,x)}const b=l.fn({...t,[h]:v,[p]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:i,[p]:a}}}}}},jI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=cr(e,t),u={x:n,y:r},d=on(o),p=Nm(d);let h=u[p],v=u[d];const g=cr(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=p==="y"?"height":"width",x=s.reference[p]-s.floating[w]+b.mainAxis,_=s.reference[p]+s.reference[w]-b.mainAxis;h<x?h=x:h>_&&(h=_)}if(c){var S,y;const w=p==="y"?"width":"height",x=xb.has(hn(o)),_=s.reference[d]-s.floating[w]+(x&&((S=i.offset)==null?void 0:S[d])||0)+(x?0:b.crossAxis),P=s.reference[d]+s.reference[w]+(x?0:((y=i.offset)==null?void 0:y[d])||0)-(x?b.crossAxis:0);v<_?v=_:v>P&&(v=P)}return{[p]:h,[d]:v}}}},MI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=cr(e,t),u=await i.detectOverflow(t,c),d=hn(o),p=Mi(o),h=on(o)==="y",{width:v,height:g}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=p==="end"?"top":"bottom");const y=g-u.top-u.bottom,w=v-u.left-u.right,x=pn(g-u[b],y),_=pn(v-u[S],w),P=!t.middlewareData.shift;let T=x,E=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),P&&!p){const N=tt(u.left,0),D=tt(u.right,0),L=tt(u.top,0),G=tt(u.bottom,0);h?E=v-2*(N!==0||D!==0?N+D:tt(u.left,u.right)):T=g-2*(L!==0||G!==0?L+G:tt(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:T});const I=await i.getDimensions(a.floating);return v!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function _b(e){const t=Ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Kt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ou(n)!==s||ou(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Mm(e){return we(e)?e:e.contextElement}function Hs(e){const t=Mm(e);if(!Kt(t))return In(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=_b(t);let i=(s?ou(n.width):n.width)/r,a=(s?ou(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const LI=In(0);function Cb(e){const t=xt(e);
vendor: 8,578 bytes, line 111
111return!Qu()||!t.visualViewport?LI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $I(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Mm(e);let i=In(1);t&&(r?we(r)&&(i=Hs(r)):i=Hs(e));const a=$I(s,n,r)?Cb(s):In(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const p=xt(s),h=r&&we(r)?xt(r):r;let v=p,g=Lp(v);for(;g&&r&&h!==v;){const b=Hs(g),S=g.getBoundingClientRect(),y=Ht(g),w=S.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,x=S.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=x,v=xt(g),g=Lp(v)}}return vi({width:u,height:d,x:l,y:c})}function Ju(e,t){const n=Yu(e).scrollLeft;return t?t.left+n:rs(Mn(e)).left+n}function Eb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ju(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function DI(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Mn(r),a=t?qu(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=In(1);const u=In(0),d=Kt(r);if((d||!d&&!s)&&((ji(r)!=="body"||ml(i))&&(l=Yu(r)),d)){const h=rs(r);c=Hs(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const p=i&&!d&&!s?Eb(i,l):In(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function zI(e){return Array.from(e.getClientRects())}function UI(e){const t=Mn(e),n=Yu(e),r=e.ownerDocument.body,o=tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ju(e);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(i+=tt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Dy=25;function FI(e,t){const n=xt(e),r=Mn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Qu();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ju(r);if(c<=0){const u=r.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-h);v<=Dy&&(s-=v)}else c<=Dy&&(s+=c);return{width:s,height:i,x:a,y:l}}function BI(e,t){const n=rs(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Kt(e)?Hs(e):In(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function zy(e,t,n){let r;if(t==="viewport")r=FI(e,n);else if(t==="document")r=UI(Mn(e));else if(we(t))r=BI(t,n);else{const o=Cb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return vi(r)}function Pb(e,t){const n=lr(e);return n===t||!we(n)||po(n)?!1:Ht(n).position==="fixed"||Pb(n,t)}function VI(e,t){const n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(a=>we(a)&&ji(a)!=="body"),o=null;const s=Ht(e).position==="fixed";let i=s?lr(e):e;for(;we(i)&&!po(i);){const a=Ht(i),l=Im(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ml(i)&&!l&&Pb(e,i))?r=r.filter(u=>u!==i):o=a,i=lr(i)}return t.set(e,r),r}function WI(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?qu(t)?[]:VI(t,this._c):[].concat(n),r],a=zy(t,i[0],o);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<i.length;p++){const h=zy(t,i[p],o);l=tt(h.top,l),c=pn(h.right,c),u=pn(h.bottom,u),d=tt(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function HI(e){const{width:t,height:n}=_b(e);return{width:t,height:n}}function GI(e,t,n){const r=Kt(t),o=Mn(t),s=n==="fixed",i=rs(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=In(0);function c(){l.x=Ju(o)}if(r||!r&&!s)if((ji(t)!=="body"||ml(o))&&(a=Yu(t)),r){const h=rs(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();s&&!r&&o&&c();const u=o&&!r&&!s?Eb(o,a):In(0),d=i.left+a.scrollLeft-l.x-u.x,p=i.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:i.width,height:i.height}}function vf(e){return Ht(e).position==="static"}function Uy(e,t){if(!Kt(e)||Ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mn(e)===n&&(n=n.ownerDocument.body),n}function Tb(e,t){const n=xt(e);if(qu(e))return n;if(!Kt(e)){let o=lr(e);for(;o&&!po(o);){if(we(o)&&!vf(o))return o;o=lr(o)}return n}let r=Uy(e,t);for(;r&&oI(r)&&vf(r);)r=Uy(r,t);return r&&po(r)&&vf(r)&&!Im(r)?n:r||aI(e)||n}const KI=async function(e){const t=this.getOffsetParent||Tb,n=this.getDimensions,r=await n(e.floating);return{reference:GI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qI(e){return Ht(e).direction==="rtl"}const QI={convertOffsetParentRelativeRectToViewportRelativeRect:DI,getDocumentElement:Mn,getClippingRect:WI,getOffsetParent:Tb,getElementRects:KI,getClientRects:zI,getDimensions:HI,getScale:Hs,isElement:we,isRTL:qI};function kb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YI(e,t){let n=null,r;const o=Mn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(a||t(),!p||!h)return;const v=nc(d),g=nc(o.clientWidth-(u+p)),b=nc(o.clientHeight-(d+h)),S=nc(u),w={rootMargin:-v+"px "+-g+"px "+-b+"px "+-S+"px",threshold:tt(0,pn(1,l))||1};let x=!0;function _(P){const T=P[0].intersectionRatio;if(T!==l){if(!x)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!kb(c,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return i(!0),s}function JI(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Mm(e),u=o||s?[...c?er(c):[],...t?er(t):[]]:[];u.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=c&&a?YI(c,n):null;let p=-1,h=null;i&&(h=new ResizeObserver(S=>{let[y]=S;y&&y.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let v,g=l?rs(e):null;l&&b();function b(){const S=rs(e);g&&!kb(g,S)&&n(),g=S,v=requestAnimationFrame(b)}return n(),()=>{var S;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(S=h)==null||S.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const XI=OI,ZI=AI,e2=kI,t2=MI,Fy=TI,n2=II,r2=jI,o2=(e,t,n)=>{const r=new Map,o={platform:QI,...n},s={...o.platform,_c:r};return PI(e,t,{...o,platform:s})};var s2=typeof document<"u",i2=function(){},bc=s2?m.useLayoutEffect:i2;function iu(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!iu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!iu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Rb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function By(e,t){const n=Rb(e);return Math.round(t*n)/n}function yf(e){const t=m.useRef(e);return bc(()=>{t.current=e}),t}function a2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=m.useState(r);iu(p,r)||h(r);const[v,g]=m.useState(null),[b,S]=m.useState(null),y=m.useCallback(k=>{k!==P.current&&(P.current=k,g(k))},[]),w=m.useCallback(k=>{k!==T.current&&(T.current=k,S(k))},[]),x=s||v,_=i||b,P=m.useRef(null),T=m.useRef(null),E=m.useRef(u),I=l!=null,N=yf(l),D=yf(o),L=yf(c),G=m.useCallback(()=>{if(!P.current||!T.current)return;const k={placement:t,strategy:n,middleware:p};D.current&&(k.platform=D.current),o2(P.current,T.current,k).then(O=>{const j={...O,isPositioned:L.current!==!1};B.current&&!iu(E.current,j)&&(E.current=j,Du.flushSync(()=>{d(j)}))})},[p,t,n,D,L]);bc(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const B=m.useRef(!1);bc(()=>(B.current=!0,()=>
111{B.current=!1}),[]),bc(()=>{if(x&&(P.current=x),_&&(T.current=_),x&&_){if(N.current)return N.current(x,_,G);G()}},[x,_,G,N,I]);const U=m.useMemo(()=>({reference:P,floating:T,setReference:y,setFloating:w}),[y,w]),H=m.useMemo(()=>({reference:x,floating:_}),[x,_]),z=m.useMemo(()=>{const k={position:n,left:0,top:0};if(!H.floating)return k;const O=By(H.floating,u.x),j=By(H.floating,u.y);return a?{...k,transform:"translate("+O+"px, "+j+"px)",...Rb(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:j}},[n,a,H.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:G,refs:U,elements:H,floatingStyles:z}),[u,G,U,H,z])}const l2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fy({element:r.current,padding:o}).fn(n):{}:r?Fy({element:r,padding:o}).fn(n):{}}}},Ib=(e,t)=>{const n=XI(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lm=(e,t)=>{const n=ZI(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vy=(e,t)=>({fn:r2(e).fn,options:[e,t]}),au=(e,t)=>{const n=e2(e);return{name:n.name,fn:n.fn,options:[e,t]}},c2=(e,t)=>{const n=t2(e);return{name:n.name,fn:n.fn,options:[e,t]}},xa=(e,t)=>{const n=n2(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nb=(e,t)=>{const n=l2(e);return{name:n.name,fn:n.fn,options:[e,t]}};function u2(e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Ob={...P1},d2=Ob.useInsertionEffect,f2=d2||(e=>e());function Kn(e){const t=m.useRef(()=>{});return f2(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Nn=typeof document<"u"?m.useLayoutEffect:m.useEffect;let Wy=!1,p2=0;const Hy=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+p2++;function h2(){const[e,t]=m.useState(()=>Wy?Hy():void 0);return Nn(()=>{e==null&&t(Hy())},[]),m.useEffect(()=>{Wy=!0},[]),e}const m2=Ob.useId,Ab=m2||h2;function g2(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const v2=m.createContext(null),y2=m.createContext(null),$m=()=>{var e;return((e=m.useContext(v2))==null?void 0:e.id)||null},Dm=()=>m.useContext(y2);function zm(e){return"data-floating-ui-"+e}function wf(e){const t=m.useRef(e);return Nn(()=>{t.current=e}),t}const Gy=zm("safe-polygon");function xc(e,t,n){return n&&!$p(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function w2(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}=t,h=Dm(),v=$m(),g=wf(c),b=wf(l),S=wf(n),y=m.useRef(),w=m.useRef(-1),x=m.useRef(),_=m.useRef(-1),P=m.useRef(!0),T=m.useRef(!1),E=m.useRef(()=>{}),I=m.useRef(!1),N=m.useCallback(()=>{var z;const k=(z=o.current.openEvent)==null?void 0:z.type;return(k==null?void 0:k.includes("mouse"))&&k!=="mousedown"},[o]);m.useEffect(()=>{if(!a)return;function z(k){let{open:O}=k;O||(clearTimeout(w.current),clearTimeout(_.current),P.current=!0,I.current=!1)}return s.on("openchange",z),()=>{s.off("openchange",z)}},[a,s]),m.useEffect(()=>{if(!a||!g.current||!n)return;function z(O){N()&&r(!1,O,"hover")}const k=Lo(i.floating).documentElement;return k.addEventListener("mouseleave",z),()=>{k.removeEventListener("mouseleave",z)}},[i.floating,n,r,a,g,N]);const D=m.useCallback(function(z,k,O){k===void 0&&(k=!0),O===void 0&&(O="hover");const j=xc(b.current,"close",y.current);j&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,z,O),j)):k&&(clearTimeout(w.current),r(!1,z,O))},[b,r]),L=Kn(()=>{E.current(),x.current=void 0}),G=Kn(()=>{if(T.current){const z=Lo(i.floating).body;z.style.pointerEvents="",z.removeAttribute(Gy),T.current=!1}}),B=Kn(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);m.useEffect(()=>{if(!a)return;function z(F){if(clearTimeout(w.current),P.current=!1,u&&!$p(y.current)||d>0&&!xc(b.current,"open"))return;const q=xc(b.current,"open",y.current);q?w.current=window.setTimeout(()=>{S.current||r(!0,F,"hover")},q):n||r(!0,F,"hover")}function k(F){if(B())return;E.current();const q=Lo(i.floating);if(clearTimeout(_.current),I.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=g.current({...o.current.floatingContext,tree:h,x:F.clientX,y:F.clientY,onClose(){G(),L(),B()||D(F,!0,"safe-polygon")}});const me=x.current;q.addEventListener("mousemove",me),E.current=()=>{q.removeEventListener("mousemove",me)};return}(y.current==="touch"?!Ha(i.floating,F.relatedTarget):!0)&&D(F)}function O(F){B()||o.current.floatingContext&&(g.current==null||g.current({...o.current.floatingContext,tree:h,x:F.clientX,y:F.clientY,onClose(){G(),L(),B()||D(F)}})(F))}if(we(i.domReference)){var j;const F=i.domReference;return n&&F.addEventListener("mouseleave",O),(j=i.floating)==null||j.addEventListener("mouseleave",O),p&&F.addEventListener("mousemove",z,{once:!0}),F.addEventListener("mouseenter",z),F.addEventListener("mouseleave",k),()=>{var q;n&&F.removeEventListener("mouseleave",O),(q=i.floating)==null||q.removeEventListener("mouseleave",O),p&&F.removeEventListener("mousemove",z),F.removeEventListener("mouseenter",z),F.removeEventListener("mouseleave",k)}}},[i,a,e,u,d,p,D,L,G,r,n,S,h,b,g,o,B]),Nn(()=>{var z;if(a&&n&&(z=g.current)!=null&&z.__options.blockPointerEvents&&N()){T.current=!0;const O=i.floating;if(we(i.domReference)&&O){var k;const j=Lo(i.floating).body;j.setAttribute(Gy,"");const F=i.domReference,q=h==null||(k=h.nodesRef.current.find(se=>se.id===v))==null||(k=k.context)==null?void 0:k.elements.floating;return q&&(q.style.pointerEvents=""),j.style.pointerEvents="none",F.style.pointerEvents="auto",O.style.pointerEvents="auto",()=>{j.style.pointerEvents="",F.style.pointerEvents="",O.style.pointerEvents=""}}}},[a,n,v,i,h,g,N]),Nn(()=>{n||(y.current=void 0,I.current=!1,L(),G())},[n,L,G]),m.useEffect(()=>()=>{L(),clearTimeout(w.current),clearTimeout(_.current),G()},[a,i.domReference,L,G]);const U=m.useMemo(()=>{function z(k){y.current=k.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(k){const{nativeEvent:O}=k;function j(){!P.current&&!S.current&&r(!0,O,"hover")}u&&!$p(y.current)||n||d===0||I.current&&k.movementX**2+k.movementY**2<2||(clearTimeout(_.current),y.current==="touch"?j():(I.current=!0,_.current=window.setTimeout(j,d)))}}},[u,r,n,S,d]),H=m.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(z){B()||D(z.nativeEvent,!1)}}),[D,B]);return m.useMemo(()=>a?{reference:U,floating:H}:{},[a,U,H])}const Up=()=>{},jb=m.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Up,setState:Up,isInstantPhase:!1}),S2=()=>m.useContext(jb);function b2(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,s]=m.useReducer((l,c)=>({...l,...c}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=m.useRef(null),a=m.useCallback(l=>{s({currentId:l})},[]);return Nn(()=>{o.currentId?i.current===null?i.current=o.currentId:o.isInstantPhase||s({isInstantPhase:!0}):(o.isInstantPhase&&s({isInstantPhase:!1}),i.current=null)},[o.currentId,o.isInstantPhase]),m.createElement(jb.Provider,{value:m.useMemo(()=>({...o,setState:s,setCurrentId:a}),[o,a])},t)}function x2(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:s,enabled:i=!0}=t,a=s??o,l=S2(),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:h}=l;return Nn(()=>
111{i&&c&&(p({delay:{open:1,close:xc(d,"close")}}),c!==a&&r(!1))},[i,a,r,p,c,d]),Nn(()=>{function v(){r(!1),p({delay:d,currentId:null})}if(i&&c&&!n&&c===a){if(h){const g=window.setTimeout(v,h);return()=>{clearTimeout(g)}}v()}},[i,n,p,c,a,r,d,h]),Nn(()=>{i&&(u===Up||!n||u(a))},[i,n,u,a]),l}function Sf(e,t){let n=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=e.filter(o=>{var s;return(s=r)==null?void 0:s.some(i=>{var a;return o.parentId===i.id&&((a=o.context)==null?void 0:a.open)})}),n=n.concat(r);return n}const _2="data-floating-ui-focusable",C2={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},E2={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ky=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function P2(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:v}=t,g=Dm(),b=Kn(typeof l=="function"?l:()=>!1),S=typeof l=="function"?b:l,y=m.useRef(!1),w=m.useRef(!1),{escapeKey:x,outsidePress:_}=Ky(h),{escapeKey:P,outsidePress:T}=Ky(v),E=m.useRef(!1),I=Kn(U=>{var H;if(!n||!i||!a||U.key!=="Escape"||E.current)return;const z=(H=s.current.floatingContext)==null?void 0:H.nodeId,k=g?Sf(g.nodesRef.current,z):[];if(!x&&(U.stopPropagation(),k.length>0)){let O=!0;
111if(k.forEach(j=>{var F;if((F=j.context)!=null&&F.open&&!j.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}r(!1,fI(U)?U.nativeEvent:U,"escape-key")}),N=Kn(U=>{var H;const z=()=>{var k;I(U),(k=Cs(U))==null||k.removeEventListener("keydown",z)};(H=Cs(U))==null||H.addEventListener("keydown",z)}),D=Kn(U=>{var H;const z=y.current;y.current=!1;const k=w.current;if(w.current=!1,c==="click"&&k||z||typeof S=="function"&&!S(U))return;const O=Cs(U),j="["+zm("inert")+"]",F=Lo(o.floating).querySelectorAll(j);let q=we(O)?O:null;for(;q&&!po(q);){const le=lr(q);if(po(le)||!we(le))break;q=le}if(F.length&&we(O)&&!pI(O)&&!Ha(O,o.floating)&&Array.from(F).every(le=>!Ha(q,le)))return;if(Kt(O)&&B){const le=O.clientWidth>0&&O.scrollWidth>O.clientWidth,fe=O.clientHeight>0&&O.scrollHeight>O.clientHeight;let He=fe&&U.offsetX>O.clientWidth;if(fe&&Ht(O).direction==="rtl"&&(He=U.offsetX<=O.offsetWidth-O.clientWidth),He||le&&U.offsetY>O.clientHeight)return}const se=(H=s.current.floatingContext)==null?void 0:H.nodeId,me=g&&Sf(g.nodesRef.current,se).some(le=>{var fe;return gf(U,(fe=le.context)==null?void 0:fe.elements.floating)});if(gf(U,o.floating)||gf(U,o.domReference)||me)return;const ge=g?Sf(g.nodesRef.current,se):[];if(ge.length>0){let le=!0;if(ge.forEach(fe=>{var He;if((He=fe.context)!=null&&He.open&&!fe.context.dataRef.current.__outsidePressBubbles){le=!1;return}}),!le)return}r(!1,U,"outside-press")}),L=Kn(U=>{var H;const z=()=>{var k;D(U),(k=Cs(U))==null||k.removeEventListener(c,z)};(H=Cs(U))==null||H.addEventListener(c,z)});m.useEffect(()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=_;let U=-1;function H(F){r(!1,F,"ancestor-scroll")}function z(){window.clearTimeout(U),E.current=!0}function k(){U=window.setTimeout(()=>{E.current=!1},Qu()?5:0)}const O=Lo(o.floating);a&&(O.addEventListener("keydown",P?N:I,P),O.addEventListener("compositionstart",z),O.addEventListener("compositionend",k)),S&&O.addEventListener(c,T?L:D,T);let j=[];return p&&(we(o.domReference)&&(j=er(o.domReference)),we(o.floating)&&(j=j.concat(er(o.floating))),!we(o.reference)&&o.reference&&o.reference.contextElement&&(j=j.concat(er(o.reference.contextElement)))),j=j.filter(F=>{var q;return F!==((q=O.defaultView)==null?void 0:q.visualViewport)}),j.forEach(F=>{F.addEventListener("scroll",H,{passive:!0})}),()=>{a&&(O.removeEventListener("keydown",P?N:I,P),O.removeEventListener("compositionstart",z),O.removeEventListener("compositionend",k)),S&&O.removeEventListener(c,T?L:D,T),j.forEach(F=>{F.removeEventListener("scroll",H)}),window.clearTimeout(U)}},[s,o,a,S,c,n,r,p,i,x,_,I,P,N,D,T,L]),m.useEffect(()=>{y.current=!1},[S,c]);const G=m.useMemo(()=>({onKeyDown:I,[C2[d]]:U=>{u&&r(!1,U.nativeEvent,"reference-press")}}),[I,r,u,d]),B=m.useMemo(()=>({onKeyDown:I,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[E2[c]]:()=>{y.current=!0}}),[I,c]);return m.useMemo(()=>i?{reference:G,floating:B}:{},[i,G,B])}function T2(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ab(),s=m.useRef({}),[i]=m.useState(()=>g2()),a=$m()!=null,[l,c]=m.useState(r.reference),u=Kn((h,v,g)=>{s.current.openEvent=h?v:void 0,i.emit("openchange",{open:h,event:v,reason:g,nested:a}),n==null||n(h,v,g)}),d=m.useMemo(()=>({setPositionReference:c}),[]),p=m.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return m.useMemo(()=>({dataRef:s,open:t,onOpenChange:u,elements:p,events:i,floatingId:o,refs:d}),[t,u,p,i,o,d])}function Um(e){e===void 0&&(e={});const{nodeId:t}=e,n=T2({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=m.useState(null),[a,l]=m.useState(null),u=(o==null?void 0:o.domReference)||s,d=m.useRef(null),p=Dm();Nn(()=>{u&&(d.current=u)},[u]);const h=a2({...e,elements:{...o,...a&&{reference:a}}}),v=m.useCallback(w=>{const x=we(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(x),h.refs.setReference(x)},[h.refs]),g=m.useCallback(w=>{(we(w)||w===null)&&(d.current=w,i(w)),(we(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!we(w))&&h.refs.setReference(w)},[h.refs]),b=m.useMemo(()=>({...h.refs,setReference:g,setPositionReference:v,domReference:d}),[h.refs,g,v]),S=m.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),y=m.useMemo(()=>({...h,...r,refs:b,elements:S,nodeId:t}
111),[h,b,S,t,r]);return Nn(()=>{r.dataRef.current.floatingContext=y;const w=p==null?void 0:p.nodesRef.current.find(x=>x.id===t);w&&(w.context=y)}),m.useMemo(()=>({...h,context:y,refs:b,elements:S}),[h,b,S,y])}function k2(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:i}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=m.useRef(!1),u=m.useRef(),d=m.useRef(!0);m.useEffect(()=>{if(!a)return;const h=xt(i.domReference);function v(){!n&&Kt(i.domReference)&&i.domReference===Ay(Lo(i.domReference))&&(c.current=!0)}function g(){d.current=!0}return h.addEventListener("blur",v),h.addEventListener("keydown",g,!0),()=>{h.removeEventListener("blur",v),h.removeEventListener("keydown",g,!0)}},[i.domReference,n,a]),m.useEffect(()=>{if(!a)return;function h(v){let{reason:g}=v;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,a]),m.useEffect(()=>()=>{clearTimeout(u.current)},[]);const p=m.useMemo(()=>({onPointerDown(h){lI(h.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const v=Cs(h.nativeEvent);if(l&&we(v))try{if(cI()&&uI())throw Error();if(!v.matches(":focus-visible"))return}catch{if(!d.current&&!mI(v))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const v=h.relatedTarget,g=h.nativeEvent,b=we(v)&&v.hasAttribute(zm("focus-guard"))&&v.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var S;const y=Ay(i.domReference?i.domReference.ownerDocument:document);!v&&y===i.domReference||Ha((S=s.current.floatingContext)==null?void 0:S.refs.floating.current,y)||Ha(i.domReference,y)||b||r(!1,g,"focus")})}}),[s,i.domReference,r,l]);return m.useMemo(()=>a?{reference:p}:{},[a,p])}const qy="active",Qy="selected";function bf(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[qy]:i,[Qy]:a,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[_2]:""},...s,...t.map(i=>{const a=i?i[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(o&&[qy,Qy].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var d;(d=r.get(c))==null||d.push(u),i[c]=function(){for(var p,h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return(p=r.get(c))==null?void 0:p.map(b=>b(...v)).find(b=>b!==void 0)}}}else i[c]=u}),i),{})}}function R2(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=m.useCallback(a=>bf(a,e,"reference"),t),s=m.useCallback(a=>bf(a,e,"floating"),n),i=m.useCallback(a=>bf(a,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}const I2=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function N2(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,a=(n=I2.get(i))!=null?n:i,l=Ab(),u=$m()!=null,d=m.useMemo(()=>a==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&u&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[a,o,u,r,l,i]),p=m.useMemo(()=>{const v={id:o,...a&&{role:a}};return a==="tooltip"||i==="label"?v:{...v,...a==="menu"&&{"aria-labelledby":l}}},[a,o,l,i]),h=m.useCallback(v=>{let{active:g,selected:b}=v;const S={role:"option",...g&&{id:o+"-option"}};switch(i){case"select":return{...S,"aria-selected":g&&b};case"combobox":return{...S,...g&&{"aria-selected":!0}}}return{}},[o,i]);return m.useMemo(()=>s?{reference:d,floating:p,item:h}:{},[s,d,p,h])}const[O2,qt]=mn("ScrollArea.Root component was not found in tree");function yi(e,t){const n=Oo(t);Ni(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const A2=m.forwardRef((e,t)=>
111{const{style:n,...r}=e,o=qt(),[s,i]=m.useState(0),[a,l]=m.useState(0),c=!!(s&&a);return yi(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),yi(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),i(u)}),c?f.jsx("div",{...r,ref:t,style:{...n,width:s,height:a}}):null}),j2=m.forwardRef((e,t)=>{const n=qt(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?f.jsx(A2,{...e,ref:t}):null}),M2={scrollHideDelay:1e3,type:"hover"},Mb=m.forwardRef((e,t)=>{const n=$("ScrollAreaRoot",M2,e),{type:r,scrollHideDelay:o,scrollbars:s,...i}=n,[a,l]=m.useState(null),[c,u]=m.useState(null),[d,p]=m.useState(null),[h,v]=m.useState(null),[g,b]=m.useState(null),[S,y]=m.useState(0),[w,x]=m.useState(0),[_,P]=m.useState(!1),[T,E]=m.useState(!1),I=Lt(t,N=>l(N));return f.jsx(O2,{value:{type:r,scrollHideDelay:o,scrollArea:a,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:_,onScrollbarXEnabledChange:P,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:T,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x},children:f.jsx(V,{...i,ref:I,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${S}px`,"--sa-corner-height":s!=="xy"?"0px":`${w}px`}})})});Mb.displayName="@mantine/core/ScrollAreaRoot";function Lb(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Xu(e){const t=Lb(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function $b(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function L2(e,[t,n]){return Math.min(n,Math.max(t,e))}function Yy(e,t,n="ltr"){const r=Xu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=L2(e,l);return $b([0,i],[0,a])(c)}function $2(e,t,n,r="ltr"){const o=Xu(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return $b([l,c],d)(e)}function Db(e,t){return e>0&&e<t}function lu(e){return e?parseInt(e,10):0}function Jo(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[D2,zb]=mn("ScrollAreaScrollbar was not found in tree"),Ub=m.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:l,onWheelScroll:c,onResize:u,...d}=e,p=qt(),[h,v]=m.useState(null),g=Lt(t,E=>v(E)),b=m.useRef(null),S=m.useRef(""),{viewport:y}=p,w=n.content-n.viewport,x=Oo(c),_=Oo(a),P=Fu(u,10),T=E=>{if(b.current){const I=E.clientX-b.current.left,N=E.clientY-b.current.top;l({x:I,y:N})}};return m.useEffect(()=>{const E=I=>{const N=I.target;(h==null?void 0:h.contains(N))&&x(I,w)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[y,h,w,x]),m.useEffect(_,[n,_]),yi(h,P),yi(p.content,P),f.jsx(D2,{value:{scrollbar:h,hasThumb:r,onThumbChange:Oo(o),onThumbPointerUp:Oo(s),onThumbPositionChange:_,onThumbPointerDown:Oo(i)},children:f.jsx("div",{...d,ref:g,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Jo(e.onPointerDown,E=>{E.preventDefault(),E.button===0&&(E.target.setPointerCapture(E.pointerId),b.current=h.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T(E))}),onPointerMove:Jo(e.onPointerMove,T),onPointerUp:Jo(e.onPointerUp,E=>{const I=E.target;I.hasPointerCapture(E.pointerId)&&(E.preventDefault(),I.releasePointerCapture(E.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=S.current,b.current=null}})})}),Fb=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=qt(),[a,l]=m.useState(),c=m.useRef(null),u=Lt(t,c,i.onScrollbarXChange);return m.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),f.jsx(Ub,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{...o,"--sa-thumb-width":`${Xu(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(i.viewport){const h=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),Db(h,p)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:lu(a.paddingLeft),paddingEnd:lu(a.paddingRight)}})}})});Fb.displayName="@mantine/core/ScrollAreaScrollbarX";const Bb=m.forwardRef((e,t)=>
111{const{sizes:n,onSizesChange:r,style:o,...s}=e,i=qt(),[a,l]=m.useState(),c=m.useRef(null),u=Lt(t,c,i.onScrollbarYChange);return m.useEffect(()=>{c.current&&l(window.getComputedStyle(c.current))},[]),f.jsx(Ub,{...s,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${Xu(n)}px`,...o},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(i.viewport){const h=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),Db(h,p)&&d.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:lu(a.paddingTop),paddingEnd:lu(a.paddingBottom)}})}})});Bb.displayName="@mantine/core/ScrollAreaScrollbarY";const Zu=m.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=Ai(),s=qt(),i=m.useRef(null),a=m.useRef(0),[l,c]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Lb(l.viewport,l.content),d={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:h=>{i.current=h},onThumbPointerUp:()=>{a.current=0},onThumbPointerDown:h=>{a.current=h}},p=(h,v)=>$2(h,a.current,l,v);return n==="horizontal"?f.jsx(Fb,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollLeft,v=Yy(h,l,o);i.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollLeft=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollLeft=p(h,o))}}):n==="vertical"?f.jsx(Bb,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollTop,v=Yy(h,l);l.scrollbar.size===0?i.current.style.setProperty("--thumb-opacity","0"):i.current.style.setProperty("--thumb-opacity","1"),i.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollTop=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollTop=p(h))}}):null});Zu.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Fm=m.forwardRef((e,t)=>{const n=qt(),{forceMount:r,...o}=e,[s,i]=m.useState(!1),a=e.orientation==="horizontal",l=Fu(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?c:u)}},10);return yi(n.viewport,l),yi(n.content,l),r||s?f.jsx(Zu,{"data-state":s?"visible":"hidden",...o,ref:t}):null});Fm.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Vb=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(),[s,i]=m.useState(!1);return m.useEffect(()=>{const{scrollArea:a}=o;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},u=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),n||s?f.jsx(Fm,{"data-state":s?"visible":"hidden",...r,ref:t}):null});Vb.displayName="@mantine/core/ScrollAreaScrollbarHover";const z2=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(),s=e.orientation==="horizontal",[i,a]=m.useState("hidden"),l=Fu(()=>a("idle"),100);return m.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>a("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay]),m.useEffect(()=>{const{viewport:c}=o,u=s?"scrollLeft":"scrollTop";if(c){let d=c[u];const p=()=>{const h=c[u];d!==h&&(a("scrolling"),l()),d=h};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[o.viewport,s,l]),n||i!=="hidden"?f.jsx(Zu,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Jo(e.onPointerEnter,()=>a("interacting")),onPointerLeave:Jo(e.onPointerLeave,()=>a("idle"))}):null}),Fp=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=qt(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return m.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?f.jsx(Vb,{...r,ref:t,forceMount:n}):o.type==="scroll"?f.jsx(z2,{...r,ref:t,forceMount:n}):o.type==="auto"?f.jsx(Fm,{...r,ref:t,forceMount:n}):o.type==="always"?f.jsx(Zu,{...r,ref:t}):null});Fp.displayName="@mantine/core/ScrollAreaScrollbar";function U2(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}const Wb=m.forwardRef((e,t)=>
111{const{style:n,...r}=e,o=qt(),s=zb(),{onThumbPositionChange:i}=s,a=Lt(t,u=>s.onThumbChange(u)),l=m.useRef(void 0),c=Fu(()=>{l.current&&(l.current(),l.current=void 0)},100);return m.useEffect(()=>{const{viewport:u}=o;if(u){const d=()=>{if(c(),!l.current){const p=U2(u,i);l.current=p,i()}};return i(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,c,i]),f.jsx("div",{"data-state":s.hasThumb?"visible":"hidden",...r,ref:a,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Jo(e.onPointerDownCapture,u=>{const p=u.target.getBoundingClientRect(),h=u.clientX-p.left,v=u.clientY-p.top;s.onThumbPointerDown({x:h,y:v})}),onPointerUp:Jo(e.onPointerUp,s.onThumbPointerUp)})});Wb.displayName="@mantine/core/ScrollAreaThumb";const Bp=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=zb();return n||o.hasThumb?f.jsx(Wb,{ref:t,...r}):null});Bp.displayName="@mantine/core/ScrollAreaThumb";const Hb=m.forwardRef(({children:e,style:t,...n},r)=>{const o=qt(),s=Lt(r,o.onViewportChange);return f.jsx(V,{...n,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:f.jsx("div",{style:{minWidth:"100%"},ref:o.onContentChange,children:e})})});Hb.displayName="@mantine/core/ScrollAreaViewport";var Bm={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Gb={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},F2=(e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":A(t),"--scrollarea-over-scroll-behavior":n}}),Li=Q((e,t)=>{const n=$("ScrollArea",Gb,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,scrollbarSize:l,vars:c,type:u,scrollHideDelay:d,viewportProps:p,viewportRef:h,onScrollPositionChange:v,children:g,offsetScrollbars:b,scrollbars:S,onBottomReached:y,onTopReached:w,overscrollBehavior:x,..._}=n,[P,T]=m.useState(!1),[E,I]=m.useState(!1),[N,D]=m.useState(!1),L=te({name:"ScrollArea",props:n,classes:Bm,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:F2}),G=m.useRef(null),B=u2([h,G]);return m.useEffect(()=>{if(!G.current||b!=="present")return;const U=G.current,H=new ResizeObserver(()=>{const{scrollHeight:z,clientHeight:k,scrollWidth:O,clientWidth:j}=U;I(z>k),D(O>j)});return H.observe(U),()=>H.disconnect()},[G,b]),f.jsxs(Mb,{type:u==="never"?"always":u,scrollHideDelay:d,ref:t,scrollbars:S,...L("root"),..._,children:[f.jsx(Hb,{...p,...L("viewport",{style:p==null?void 0:p.style}),ref:B,"data-offset-scrollbars":b===!0?"xy":b||void 0,"data-scrollbars":S||void 0,"data-horizontal-hidden":b==="present"&&!N?"true":void 0,"data-vertical-hidden":b==="present"&&!E?"true":void 0,onScroll:U=>{var O;(O=p==null?void 0:p.onScroll)==null||O.call(p,U),v==null||v({x:U.currentTarget.scrollLeft,y:U.currentTarget.scrollTop});const{scrollTop:H,scrollHeight:z,clientHeight:k}=U.currentTarget;H-(z-k)>=-.6&&(y==null||y()),H===0&&(w==null||w())},children:g}),(S==="xy"||S==="x")&&f.jsx(Fp,{...L("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||b==="present"&&!N?!0:void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:f.jsx(Bp,{...L("thumb")})}),(S==="xy"||S==="y")&&f.jsx(Fp,{...L("scrollbar"),orientation:"vertical","data-hidden":u==="never"||b==="present"&&!E?!0:void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:f.jsx(Bp,{...L("thumb")})}),f.jsx(j2,{...L("corner"),"data-hovered":P||void 0,"data-hidden":u==="never"||void 0})]})});Li.displayName="@mantine/core/ScrollArea";const Vm=Q((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:s,scrollHideDelay:i,type:a,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:p,variant:h,viewportProps:v,scrollbars:g,style:b,vars:S,onBottomReached:y,onTopReached:w,...x}=$("ScrollAreaAutosize",Gb,e);return f.jsx(V,{...x,ref:t,style:[{display:"flex",overflow:"auto"},b],children:f.jsx(V,{style:{display:"flex",flexDirection:"column",flex:1},children:f.jsx(Li,{classNames:r,styles:o,scrollHideDelay:i,scrollbarSize:s,type:a,dir:l,offsetScrollbars:c,viewportRef:u,onScrollPositionChange:d,unstyled:p,variant:h,viewportProps:v,vars:S,scrollbars:g,onBottomReached:y,onTopReached:w,children:n})})})});Li.classes=Bm;Vm.displayName="@mantine/core/ScrollAreaAutosize";Vm.classes=Bm;Li.Autosize=Vm;var Kb={root:"m_87cf2631"};const B2={__staticSelector:"UnstyledButton"},fs=Ye((e,t)=>{const n=$("UnstyledButton",B2,e),{className:r,component:o="button",__staticSelector:s,unstyled:i,classNames:a,styles:l,style:c,...u}=n,d=te({name:s,props:n,classes:Kb,className:r,style:c,classNames:a,styles:l,unstyled:i});return f.jsx(V,{...d("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...u})});fs.classes=Kb;fs.displayName="@mantine/core/UnstyledButton";var qb={root:"m_515a97f8"};const V2={},Wm=Q((e,t)=>{const n=$("VisuallyHidden",V2,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,...c}=n,u=te({name:"VisuallyHidden",classes:qb,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a});return f.jsx(V,{component:"span",ref:t,...u("root"),...c})});Wm.classes=qb;Wm.displayName="@mantine/core/VisuallyHidden";var Qb={root:"m_1b7284a3"};const W2={},H2=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Ae(t),"--paper-shadow":Sm(n)}}),ed=Ye((e,t)=>{const n=$("Paper",W2,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,withBorder:l,vars:c,radius:u,shadow:d,variant:p,mod:h,...v}=n,g=te({name:"Paper",props:n,classes:Qb,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:H2});return f.jsx(V,{ref:t,mod:[{"data-with-border":l},h],...g("root"),variant:p,...v})});ed.classes=Qb;ed.displayName="@mantine/core/Paper";function Yb(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left"
111:"right";return r===void 0?o:`${o}-${r}`}return t}function Jy(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Xy(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const G2={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function K2({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:s,arrowY:i,dir:a}){const[l,c="center"]=e.split("-"),u={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[G2[l]]:r},d=-t/2;return l==="left"?{...u,...Jy(c,i,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:l==="right"?{...u,...Jy(c,i,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:l==="top"?{...u,...Xy(c,s,n,o,a),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:l==="bottom"?{...u,...Xy(c,s,n,o,a),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Hm=m.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:s,arrowX:i,arrowY:a,style:l,...c},u)=>{const{dir:d}=Ai();return s?f.jsx("div",{...c,ref:u,style:{...l,...K2({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:i,arrowY:a})}}):null});Hm.displayName="@mantine/core/FloatingArrow";var Jb={root:"m_9814e45f"};const q2={zIndex:gn("modal")},Q2=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:s,zIndex:i})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&bn(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${A(o)})`:void 0,"--overlay-radius":s===void 0?void 0:Ae(s),"--overlay-z-index":i==null?void 0:i.toString()}}),td=Ye((e,t)=>{const n=$("Overlay",q2,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,fixed:c,center:u,children:d,radius:p,zIndex:h,gradient:v,blur:g,color:b,backgroundOpacity:S,mod:y,...w}=n,x=te({name:"Overlay",props:n,classes:Jb,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:Q2});return f.jsx(V,{ref:t,...x("root"),mod:[{center:u,fixed:c},y],...w,children:d})});td.classes=Jb;td.displayName="@mantine/core/Overlay";function xf(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function Y2({target:e,reuseTargetNode:t,...n}){if(e)return typeof e=="string"?document.querySelector(e)||xf(n):e;if(t){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const o=xf(n);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return xf(n)}const J2={},Xb=Q((e,t)=>{const{children:n,target:r,reuseTargetNode:o,...s}=$("Portal",J2,e),[i,a]=m.useState(!1),l=m.useRef(null);return Ni(()=>(a(!0),l.current=Y2({target:r,reuseTargetNode:o,...s}),Np(t,l.current),!r&&!o&&l.current&&document.body.appendChild(l.current),()=>{!r&&!o&&l.current&&document.body.removeChild(l.current)}),[r]),!i||!l.current?null:Du.createPortal(f.jsx(f.Fragment,{children:n}),l.current)});Xb.displayName="@mantine/core/Portal";const ps=Q(({withinPortal:e=!0,children:t,...n},r)=>sb()==="test"||!e?f.jsx(f.Fragment,{children:t}):f.jsx(Xb,{ref:r,...n,children:t}));ps.displayName="@mantine/core/OptionalPortal";const ra=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),rc={fade:{in:{opacity:1},out:{opacity:0}
111,transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...ra("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ra("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ra("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ra("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ra("top"),common:{transformOrigin:"top right"}}},Zy={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function X2({transition:e,state:t,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in rc?{transitionProperty:rc[e].transitionProperty,...o,...rc[e].common,...rc[e][Zy[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[Zy[t]]}}function Z2({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:s,onEntered:i,onExited:a,enterDelay:l,exitDelay:c}){const u=Ct(),d=xm(),p=u.respectReducedMotion?d:!1,[h,v]=m.useState(p?0:e),[g,b]=m.useState(r?"entered":"exited"),S=m.useRef(-1),y=m.useRef(-1),w=m.useRef(-1);function x(){window.clearTimeout(S.current),window.clearTimeout(y.current),cancelAnimationFrame(w.current)}const _=T=>{x();const E=T?o:s,I=T?i:a,N=p?0:T?e:t;v(N),N===0?(typeof E=="function"&&E(),typeof I=="function"&&I(),b(T?"entered":"exited")):w.current=requestAnimationFrame(()=>{la.flushSync(()=>{b(T?"pre-entering":"pre-exiting")}),w.current=requestAnimationFrame(()=>{typeof E=="function"&&E(),b(T?"entering":"exiting"),S.current=window.setTimeout(()=>{typeof I=="function"&&I(),b(T?"entered":"exited")},N)})})},P=T=>{if(x(),typeof(T?l:c)!="number"){_(T);return}y.current=window.setTimeout(()=>{_(T)},T?l:c)};return ar(()=>{P(r)},[r]),m.useEffect(()=>()=>{x()},[]),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:n||"ease"}}function So({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:s,timingFunction:i="ease",onExit:a,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:p}){const h=sb(),{transitionDuration:v,transitionStatus:g,transitionTimingFunction:b}=Z2({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:a,onEntered:l,onEnter:c,onExited:u,enterDelay:d,exitDelay:p});return v===0||h==="test"?o?f.jsx(f.Fragment,{children:s({})}):e?s({display:"none"}):null:g==="exited"?e?s({display:"none"}):null:f.jsx(f.Fragment,{children:s(X2({transition:t,duration:v,state:g,timingFunction:b}))})}So.displayName="@mantine/core/Transition";const[eN,Zb]=mn("Popover component was not found in the tree");
111function nd({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=zk(t),s=Lt(o,r);return pl(e)?m.cloneElement(e,{[n]:s}):e}function ex(e){return f.jsx(Wm,{tabIndex:-1,"data-autofocus":!0,...e})}nd.displayName="@mantine/core/FocusTrap";ex.displayName="@mantine/core/FocusTrapInitialFocus";nd.InitialFocus=ex;var tx={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const tN={},Gm=Q((e,t)=>{var b,S,y,w;const n=$("PopoverDropdown",tN,e),{className:r,style:o,vars:s,children:i,onKeyDownCapture:a,variant:l,classNames:c,styles:u,...d}=n,p=Zb(),h=XS({opened:p.opened,shouldReturnFocus:p.returnFocus}),v=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},g=Lt(t,p.floating);return p.disabled?null:f.jsx(ps,{...p.portalProps,withinPortal:p.withinPortal,children:f.jsx(So,{mounted:p.opened,...p.transitionProps,transition:((b=p.transitionProps)==null?void 0:b.transition)||"fade",duration:((S=p.transitionProps)==null?void 0:S.duration)??150,keepMounted:p.keepMounted,exitDuration:typeof((y=p.transitionProps)==null?void 0:y.exitDuration)=="number"?p.transitionProps.exitDuration:(w=p.transitionProps)==null?void 0:w.duration,children:x=>f.jsx(nd,{active:p.trapFocus&&p.opened,innerRef:g,children:f.jsxs(V,{...v,...d,variant:l,onKeyDownCapture:kk(()=>{var _,P;(_=p.onClose)==null||_.call(p),(P=p.onDismiss)==null||P.call(p)},{active:p.closeOnEscape,onTrigger:h,onKeyDown:a}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:c,styles:u,style:[{...x,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:A(p.width)},p.resolvedStyles.dropdown,u==null?void 0:u.dropdown,o]}),children:[i,f.jsx(Hm,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:c,styles:u})})]})})})})});Gm.classes=tx;Gm.displayName="@mantine/core/PopoverDropdown";const nN={refProp:"ref",popupType:"dialog"},nx=Q((e,t)=>{const{children:n,refProp:r,popupType:o,...s}=$("PopoverTarget",nN,e);if(!pl(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=s,a=Zb(),l=Lt(a.reference,_m(n),t),c=a.withRoles?{"aria-haspopup":o,"aria-expanded":a.opened,"aria-controls":a.getDropdownId(),id:a.getTargetId()}:{};return m.cloneElement(n,{...i,...c,...a.targetProps,className:Ue(a.targetProps.className,i.className,n.props.className),[r]:l,...a.controlled?null:{onClick:a.onToggle}})});nx.displayName="@mantine/core/PopoverTarget";function rx({opened:e,floating:t,position:n,positionDependencies:r}){const[o,s]=m.useState(0);m.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return JI(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),ar(()=>
111{t.update()},r),ar(()=>{s(i=>i+1)},[e])}function rN(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function oN(e,t){const n=rN(e.middlewares),r=[Ib(e.offset)];return n.shift&&r.push(Lm(typeof n.shift=="boolean"?{limiter:Vy(),padding:5}:{limiter:Vy(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?au():au(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?xa():xa(n.inline)),r.push(Nb({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(c2({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:s,availableHeight:i,...a}){var u;const c=((u=t().refs.floating.current)==null?void 0:u.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:o,availableWidth:s,availableHeight:i,...a}):Object.assign(c,{maxWidth:`${s}px`,maxHeight:`${i}px`})),e.width==="target"&&Object.assign(c,{width:`${o.reference.width}px`})}})),r}function sN(e){const[t,n]=Bu({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=m.useRef(t),o=()=>{t&&!e.disabled&&n(!1)},s=()=>!e.disabled&&n(!t),i=Um({strategy:e.strategy,placement:e.position,middleware:oN(e,()=>i)});return rx({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:i}),ar(()=>{var a;(a=e.onPositionChange)==null||a.call(e,i.placement)},[i.placement]),ar(()=>{var a,l;t!==r.current&&(t?(l=e.onOpen)==null||l.call(e):(a=e.onClose)==null||a.call(e)),r.current=t},[t,e.onClose,e.onOpen]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:o,onToggle:s}}const iN={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:gn("popover"),__staticSelector:"Popover",width:"max-content"},aN=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Ae(t),"--popover-shadow":Sm(n)}});function Nt(e){var Vg,Wg,Hg,Gg,Kg,qg;const t=$("Popover",iN,e),{children:n,position:r,offset:o,onPositionChange:s,positionDependencies:i,opened:a,transitionProps:l,onExitTransitionEnd:c,onEnterTransitionEnd:u,width:d,middlewares:p,withArrow:h,arrowSize:v,arrowOffset:g,arrowRadius:b,arrowPosition:S,unstyled:y,classNames:w,styles:x,closeOnClickOutside:_,withinPortal:P,portalProps:T,closeOnEscape:E,clickOutsideEvents:I,trapFocus:N,onClose:D,onDismiss:L,onOpen:G,onChange:B,zIndex:U,radius:H,shadow:z,id:k,defaultOpened:O,__staticSelector:j,withRoles:F,disabled:q,returnFocus:se,variant:me,keepMounted:ge,vars:le,floatingStrategy:fe,withOverlay:He,overlayProps:je,...Me}=t,Jt=te({name:j,props:t,classes:tx,classNames:w,styles:x,unstyled:y,rootSelector:"dropdown",vars:le,varsResolver:aN}),{resolvedStyles:Co}=hl({classNames:w,styles:x,props:t}),vn=m.useRef(null),[Cr,Er]=m.useState(null),[gs,Ol]=m.useState(null),{dir:Al}=Ai(),Eo=ds(k),Fe=sN({middlewares:p,width:d,position:Yb(Al,r),offset:typeof o=="number"?o+(h?v/2:0):o,arrowRef:vn,arrowOffset:g,onPositionChange:s,positionDependencies:i,opened:a,defaultOpened:O,onChange:B,onOpen:G,onClose:D,onDismiss:L,strategy:fe,disabled:q});Nk(()=>{_&&(Fe.onClose(),L==null||L())},I,[Cr,gs]);const kd=m.useCallback(Et=>{Er(Et),Fe.floating.refs.setReference(Et)},[Fe.floating.refs.setReference]),Xt=m.useCallback(Et=>{Ol(Et),Fe.floating.refs.setFloating(Et)},[Fe.floating.refs.setFloating]),yn=m.useCallback(()=>{var Et;(Et=l==null?void 0:l.onExited)==null||Et.call(l),c==null||c()},[l==null?void 0:l.onExited,c]),lC=m.useCallback(()=>{var Et;(Et=l==null?void 0:l.onEntered)==null||Et.call(l),u==null||u()},[l==null?void 0:l.onEntered,u]);return f.jsxs(eN,{value:{returnFocus:se,disabled:q,controlled:Fe.controlled,reference:kd,floating:Xt,x:Fe.floating.x,y:Fe.floating.y,arrowX:(Hg=(Wg=(Vg=Fe.floating)==null?void 0:Vg.middlewareData)==null?void 0:Wg.arrow)==null?void 0:Hg.x,arrowY:(qg=(Kg=(Gg=Fe.floating)==null?void 0:Gg.middlewareData)==null?void 0:Kg.arrow)==null?void 0:qg.y,opened:Fe.opened,arrowRef:vn,transitionProps:{...l,onExited:yn,onEntered:lC},width:d,withArrow:h,arrowSize:v,arrowOffset:g,arrowRadius:b,arrowPosition:S,placement:Fe.floating.placement,trapFocus:N,withinPortal:P,portalProps:T,zIndex:U,radius:H,shadow:z,closeOnEscape:E,onDismiss:L,onClose:Fe.onClose,onToggle:Fe.onToggle,getTargetId:()=>`${Eo}-target`,getDropdownId:()=>`${Eo}-dropdown`,withRoles:F,targetProps:Me,__staticSelector:j,classNames:w,styles:x,unstyled:y,variant:me,keepMounted:ge,getStyles:Jt,resolvedStyles:Co,floatingStrategy:fe},children:[n,He&&f.jsx(So,{transition:"fade",mounted:Fe.opened,duration:(l==null?void 0:l.duration)||250,exitDuration:(l==null?void 0:l.exitDuration)||250,children:Et=>f.jsx(ps,{withinPortal:P,children:f.jsx(td,{...je,...Jt("overlay",{className:je==null?void 0:je.className,style:[Et,je==null?void 0:je.style]})})})})]})}Nt.Target=nx;Nt.Dropdown=Gm;Nt.displayName="@mantine/core/Popover";Nt.extend=e=>e;var sn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",oval
111Loader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const ox=m.forwardRef(({className:e,...t},n)=>f.jsxs(V,{component:"span",className:Ue(sn.barsLoader,e),...t,ref:n,children:[f.jsx("span",{className:sn.bar}),f.jsx("span",{className:sn.bar}),f.jsx("span",{className:sn.bar})]}));ox.displayName="@mantine/core/Bars";const sx=m.forwardRef(({className:e,...t},n)=>f.jsxs(V,{component:"span",className:Ue(sn.dotsLoader,e),...t,ref:n,children:[f.jsx("span",{className:sn.dot}),f.jsx("span",{className:sn.dot}),f.jsx("span",{className:sn.dot})]}));sx.displayName="@mantine/core/Dots";const ix=m.forwardRef(({className:e,...t},n)=>f.jsx(V,{component:"span",className:Ue(sn.ovalLoader,e),...t,ref:n}));ix.displayName="@mantine/core/Oval";const ax={bars:ox,oval:ix,dots:sx},lN={loaders:ax,type:"oval"},cN=(e,{size:t,color:n})=>({root:{"--loader-size":be(t,"loader-size"),"--loader-color":n?At(n,e):void 0}}),$i=Q((e,t)=>{const n=$("Loader",lN,e),{size:r,color:o,type:s,vars:i,className:a,style:l,classNames:c,styles:u,unstyled:d,loaders:p,variant:h,children:v,...g}=n,b=te({name:"Loader",props:n,classes:sn,className:a,style:l,classNames:c,styles:u,unstyled:d,vars:i,varsResolver:cN});return v?f.jsx(V,{...b("root"),ref:t,...g,children:v}):f.jsx(V,{...b("root"),ref:t,component:p[s],variant:h,size:r,...g})});$i.defaultLoaders=ax;$i.classes=sn;$i.displayName="@mantine/core/Loader";var Di={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const e0={orientation:"horizontal"},uN=(e,{borderWidth:t})=>({group:{"--ai-border-width":A(t)}}),Km=Q((e,t)=>{const n=$("ActionIconGroup",e0,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,orientation:l,vars:c,borderWidth:u,variant:d,mod:p,...h}=$("ActionIconGroup",e0,e),v=te({name:"ActionIconGroup",props:n,classes:Di,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:c,varsResolver:uN,rootSelector:"group"});return f.jsx(V,{...v("group"),ref:t,variant:d,mod:[{"data-orientation":l},p],role:"group",...h})});Km.classes=Di;Km.displayName="@mantine/core/ActionIconGroup";const t0={},dN=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":be(i,"section-height"),"--section-padding-x":be(i,"section-padding-x"),"--section-fz":bt(i),"--section-radius":t===void 0?void 0:Ae(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},qm=Q((e,t)=>{const n=$("ActionIconGroupSection",t0,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,vars:l,variant:c,gradient:u,radius:d,autoContrast:p,...h}=$("ActionIconGroupSection",t0,e),v=te({name:"ActionIconGroupSection",props:n,classes:Di,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:l,varsResolver:dN,rootSelector:"groupSection"});return f.jsx(V,{...v("groupSection"),ref:t,variant:c,...h})});qm.classes=Di;qm.displayName="@mantine/core/ActionIconGroupSection";const fN={},pN=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i})=>{const a=e.variantColorResolver({color:s||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:i});return{root:{"--ai-size":be(t,"ai-size"),"--ai-radius":n===void 0?void 0:Ae(n),"--ai-bg":s||r?a.background:void 0,"--ai-hover":s||r?a.hover:void 0,"--ai-hover-color":s||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":s||r?a.border:void 0}}},bo=Ye((e,t)=>{const n=$("ActionIcon",fN,e),{className:r,unstyled:o,variant:s,classNames:i,styles:a,style:l,loading:c,loaderProps:u,size:d,color:p,radius:h,__staticSelector:v,gradient:g,vars:b,children:S,disabled:y,"data-disabled":w,autoContrast:x,mod:_,...P}=n,T=te({name:["ActionIcon",v],props:n,className:r,style:l,classes:Di,classNames:i,styles:a,unstyled:o,vars:b,varsResolver:pN});return f.jsxs(fs,{...T("root",{active:!y&&!c&&!w}),...P,unstyled:o,variant:s,size:d,disabled:y||c,ref:t,mod:[{loading:c,disabled:y||w},_],children:[f.jsx(So,{mounted:!!c,transition:"slide-down",duration:150,children:E=>f.jsx(V,{component:"span",...T("loader",{style:E}
111),"aria-hidden":!0,children:f.jsx($i,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),f.jsx(V,{component:"span",mod:{loading:c},...T("icon"),children:S})]})});bo.classes=Di;bo.displayName="@mantine/core/ActionIcon";bo.Group=Km;bo.GroupSection=qm;const lx=m.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>f.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:f.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));lx.displayName="@mantine/core/CloseIcon";var cx={root:"m_86a44da5","root--subtle":"m_220c80f2"};const hN={variant:"subtle"},mN=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":be(t,"cb-size"),"--cb-radius":n===void 0?void 0:Ae(n),"--cb-icon-size":A(r)}}),zi=Ye((e,t)=>{const n=$("CloseButton",hN,e),{iconSize:r,children:o,vars:s,radius:i,className:a,classNames:l,style:c,styles:u,unstyled:d,"data-disabled":p,disabled:h,variant:v,icon:g,mod:b,__staticSelector:S,...y}=n,w=te({name:S||"CloseButton",props:n,className:a,style:c,classes:cx,classNames:l,styles:u,unstyled:d,vars:s,varsResolver:mN});return f.jsxs(fs,{ref:t,...y,unstyled:d,variant:v,disabled:h,mod:[{disabled:h||p},b],...w("root",{variant:v,active:!h&&!p}),children:[g||f.jsx(lx,{}),o]})});zi.classes=cx;zi.displayName="@mantine/core/CloseButton";function gN(e){return m.Children.toArray(e).filter(Boolean)}var ux={root:"m_4081bf90"};const vN={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},yN=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:s,wrap:i},{childWidth:a})=>({root:{"--group-child-width":t&&n?a:void 0,"--group-gap":wo(r),"--group-align":o,"--group-justify":s,"--group-wrap":i}}),he=Q((e,t)=>{const n=$("Group",vN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,children:l,gap:c,align:u,justify:d,wrap:p,grow:h,preventGrowOverflow:v,vars:g,variant:b,__size:S,mod:y,...w}=n,x=gN(l),_=x.length,P=wo(c??"md"),E={childWidth:`calc(${100/_}% - (${P} - ${P} / ${_}))`},I=te({name:"Group",props:n,stylesCtx:E,className:o,style:s,classes:ux,classNames:r,styles:i,unstyled:a,vars:g,varsResolver:yN});return f.jsx(V,{...I("root"),ref:t,variant:b,mod:[{grow:h},y],size:S,...w,children:x})});he.classes=ux;he.displayName="@mantine/core/Group";const[wN,vr]=mn("ModalBase component was not found in tree");function SN({opened:e,transitionDuration:t}){const[n,r]=m.useState(e),o=m.useRef(-1),i=xm()?0:t;return m.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):i===0?r(!1):o.current=window.setTimeout(()=>r(!1),i),()=>window.clearTimeout(o.current)),[e,i]),n}function bN({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:s,returnFocus:i}){const a=ds(e),[l,c]=m.useState(!1),[u,d]=m.useState(!1),p=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,h=SN({opened:n,transitionDuration:p});return nb("keydown",v=>{var g;v.key==="Escape"&&o&&!v.isComposing&&n&&((g=v.target)==null?void 0:g.getAttribute("data-mantine-stop-propagation"))!=="true"&&s()},{capture:!0}),XS({opened:n,shouldReturnFocus:r&&i}),{_id:a,titleMounted:l,bodyMounted:u,shouldLockScroll:h,setTitleMounted:c,setBodyMounted:d}}const dx=m.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:o,onExitTransitionEnd:s,onEnterTransitionEnd:i,trapFocus:a,closeOnEscape:l,returnFocus:c,closeOnClickOutside:u,withinPortal:d,portalProps:p,lockScroll:h,children:v,zIndex:g,shadow:b,padding:S,__vars:y,unstyled:w,removeScrollProps:x,..._},P)=>{const{_id:T,titleMounted:E,bodyMounted:I,shouldLockScroll:N,setTitleMounted:D,setBodyMounted:L}=bN({id:r,transitionProps:o,opened:t,trapFocus:a,closeOnEscape:l,onClose:n,returnFocus:c}),{key:G,...B}=x||{};return f.jsx(ps,{...p,withinPortal:d,children:f.jsx(wN,{value:{opened:t,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:s,onEnterTransitionEnd:i,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${T}-title`,getBodyId:()=>`${T}-body`,titleMounted:E,bodyMounted:I,setTitleMounted:D,setBodyMounted:L,trapFocus:a,closeOnEscape:l,zIndex:g,unstyled:w},children:f.jsx(gi,{enabled:N&&h,...B,children:f.jsx(V,{ref:P,..._,__vars:{...y,"--mb-z-index":(g||gn("modal")).toString(),"--mb-shadow":Sm(b),"--mb-padding":wo(S)},children:v})},G)})})});dx.displayName="@mantine/core/ModalBase";function xN(){const e=vr();return m.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var wi={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const fx=m.forwardRef(({className:e,...t},n)=>{const r=xN(),o=vr();return f.jsx(V,{ref:n,...t,id:r,className:Ue({[wi.body]:!o.unstyled},e)})});fx.displayName="@mantine/core/ModalBaseBody";const px=m.forwardRef(({className:e,onClick:t,...n},r)=>{const o=vr();return f.jsx(zi,{ref:r,...n,onClick:s=>{o.onClose(),t==null||t(s)},className:Ue({[wi.close]:!o.unstyled},e),unstyled:o.unstyled})});px.displayName="@mantine/core/ModalBaseCloseButton";const hx=m.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,...s},i)=>{const a=vr();return f.jsx(So,{mounted:a.opened,transition:"pop",...a.transitionProps,onExited:()=>{var l,c,u;(l=a.onExitTransitionEnd)==null||l.call(a),(u=(c=a.transitionProps)==null?void 0:c.onExited)==null||u.call(c)},onEntered:()=>{var l,c,u;(l=a.onEnterTransitionEnd)==null||l.call(a),(u=(c=a.transitionProps)==null?void 0:c.onEntered)==null||u.call(c)},...e,children:l=>f.jsx("div",{...n,className:Ue({[wi.inner]:!a.unstyled},n.className),children:f.jsx(nd,{active:a.opened&&a.trapFocus,innerRef:i,children:f.jsx(ed,{...s,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":a.bodyMounted?a.getBodyId():void 0,"aria-labelledby":a.titleMounted?a.getTitleId():void 0,style:[o,l],className:Ue({[wi.content]:!a.unstyled},t),unstyled:a.unstyled,children:s.children})})})})});hx.displayName="@mantine/core/ModalBaseContent";const mx=m.forwardRef(({className:e,...t},n)=>{const r=vr();return f.jsx(V,{component:"header",ref:n,className:Ue({[wi.header]:!r.unstyled},e),...t})});mx.displayName="@mantine/core/ModalBaseHeader";const _N={duration:200,timingFunction:"ease",transition:"fade"};function CN(e){const t=vr();return{..._N,...t.transitionProps,...e}}const gx=m.forwardRef(({onClick:e,transitionProps:t,style:n,visible:r,...o},s)=>{const i=vr(),a=CN(t);return f.jsx(So,{mounted:r!==void 0?r:i.opened,...a,transition:"fade",children:l=>f.jsx(td,{ref:s,fixed:!0,style:[n,l],zIndex:i.zIndex,unstyled:i.unstyled,onClick:c=>{e==null||e(c),i.closeOnClickOutside&&i.onClose()},...o})})});gx.displayName="@mantine/core/ModalBaseOverlay";function EN(){const e=vr();return m.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const vx=m.forwardRef(({className:e,...t},n)=>{const r=EN(),o=vr();return f.jsx(V,{component:"h2",ref:n,className:Ue({[wi.title]:!o.unstyled},e),...t,id:r})});vx.displayName="@mantine/core/ModalBaseTitle";function PN({children:e}){return f.jsx(f.Fragment,{children:e})}const[TN,kN]=wm({size:"sm"}),RN={},yx=Q((e,t)=>{const n=$("InputClearButton",RN,e),{size:r,variant:o,vars:s,classNames:i,styles:a,...l}=n,c=kN(),{resolvedClassNames:u,resolvedStyles:d}=hl({classNames:i,styles:a,props:n});return f.jsx(zi,{variant:o||"transparent",ref:t,size:r||(c==null?void 0:c.size)||"sm",classNames:u,styles:d,__staticSelector:"InputClearButton",...l})});yx.displayName="@mantine/core/InputClearButton";const[IN,rd]=wm({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Qt={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const n0={},NN=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${bt(t)} - ${A(2)})`}}),od=Q((e,t)=>{const n=$("InputDescription",n0,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:p,...h}=$("InputDescription",n0,n),v=rd(),g=te({name:["InputWrapper",u],props:n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"description",vars:l,varsResolver:NN}),b=d&&(v==null?void 0:v.getStyles)||g;return f.jsx(V,{component:"p",ref:t,variant:p,size:c,...b("description",v!=null&&v.getStyles?{className:o,style:s}:void 0),...h})});od.classes=Qt;od.displayName="@mantine/core/InputDescription";const ON={},AN=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${bt(t)} - ${A(2)})`}}),sd=Q((e,t)=>{const n=$("InputError",ON,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,__staticSelector:u,__inheritStyles:d=!0,variant:p,...h}=n,v=te({name:["InputWrapper",u],props:n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"error",vars:l,varsResolver:AN}),g=rd(),b=d&&(g==null?void 0:g.getStyles)||v;return f.jsx(V,{component:"p",ref:t,variant:p,size:c,...b("error",g!=null&&g.getStyles?{className:o,style:s}:void 0),...h})});sd.classes=Qt;sd.displayName="@mantine/core/InputError";const r0={labelElement:"label"},jN=(e,{size:t})=>({label:{"--input-label-size":bt(t),"--input-asterisk-color":void 0}}),id=Q((e,t)=>{const n=$("InputLabel",r0,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,labelElement:c,size:u,required:d,htmlFor:p,onMouseDown:h,children:v,__staticSelector:g,variant:b,mod:S,...y}=$("InputLabel",r0,n),w=te({name:["InputWrapper",g],props:n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"label",vars:l,varsResolver:jN}),x=rd(),_=(x==null?void 0:x.getStyles)||w;return f.jsxs(V,{..._("label",x!=null&&x.getStyles?{className:o,style:s}:void 0),component:c,variant:b,size:u,ref:t,htmlFor:c==="label"?p:void 0,mod:[{required:d},S],onMouseDown:P=>{h==null||h(P),!P.defaultPrevented&&P.detail>1&&P.preventDefault()},...y,children:[v,d&&f.jsx("span",{..._("required"),"aria-hidden":!0,
111children:" *"})]})});id.classes=Qt;id.displayName="@mantine/core/InputLabel";const o0={},Qm=Q((e,t)=>{const n=$("InputPlaceholder",o0,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,__staticSelector:c,variant:u,error:d,mod:p,...h}=$("InputPlaceholder",o0,n),v=te({name:["InputPlaceholder",c],props:n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,rootSelector:"placeholder"});return f.jsx(V,{...v("placeholder"),mod:[{error:!!d},p],component:"span",variant:u,ref:t,...h})});Qm.classes=Qt;Qm.displayName="@mantine/core/InputPlaceholder";function MN(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),o=e.slice(0,r),s=e.slice(r+1),i=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&s.includes("description")||n&&s.includes("error"),offsetTop:i}}const LN={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},$N=(e,{size:t})=>({label:{"--input-label-size":bt(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${bt(t)} - ${A(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${bt(t)} - ${A(2)})`}}),Ym=Q((e,t)=>{const n=$("InputWrapper",LN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,size:c,variant:u,__staticSelector:d,inputContainer:p,inputWrapperOrder:h,label:v,error:g,description:b,labelProps:S,descriptionProps:y,errorProps:w,labelElement:x,children:_,withAsterisk:P,id:T,required:E,__stylesApiProps:I,mod:N,...D}=n,L=te({name:["InputWrapper",d],props:I||n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:$N}),G={size:c,variant:u,__staticSelector:d},B=ds(T),U=typeof P=="boolean"?P:E,H=(w==null?void 0:w.id)||`${B}-error`,z=(y==null?void 0:y.id)||`${B}-description`,k=B,O=!!g&&typeof g!="boolean",j=!!b,F=`${O?H:""} ${j?z:""}`,q=F.trim().length>0?F.trim():void 0,se=(S==null?void 0:S.id)||`${B}-label`,me=v&&f.jsx(id,{labelElement:x,id:se,htmlFor:k,required:U,...G,...S,children:v},"label"),ge=j&&f.jsx(od,{...y,...G,size:(y==null?void 0:y.size)||G.size,id:(y==null?void 0:y.id)||z,children:b},"description"),le=f.jsx(m.Fragment,{children:p(_)},"input"),fe=O&&m.createElement(sd,{...w,...G,size:(w==null?void 0:w.size)||G.size,key:"error",id:(w==null?void 0:w.id)||H},g),He=h.map(je=>{switch(je){case"label":return me;case"input":return le;case"description":return ge;case"error":return fe;default:return null}});return f.jsx(IN,{value:{getStyles:L,describedBy:q,inputId:k,labelId:se,...MN(h,{hasDescription:j,hasError:O})},children:f.jsx(V,{ref:t,variant:u,size:c,mod:[{error:!!g},N],...L("root"),...D,children:He})})});Ym.classes=Qt;Ym.displayName="@mantine/core/InputWrapper";const DN={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},zN=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":be(t.size,"input-height"),"--input-fz":bt(t.size),"--input-radius":t.radius===void 0?void 0:Ae(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?A(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?A(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?be(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),_t=Ye((e,t)=>{const n=$("Input",DN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,required:l,__staticSelector:c,__stylesApiProps:u,size:d,wrapperProps:p,error:h,disabled:v,leftSection:g,leftSectionProps:b,leftSectionWidth:S,rightSection:y,rightSectionProps:w,rightSectionWidth:x,rightSectionPointerEvents:_,leftSectionPointerEvents:P,variant:T,vars:E,pointer:I,multiline:N,radius:D,id:L,withAria:G,withErrorStyles:B,mod:U,inputSize:H,__clearSection:z,__clearable:k,__defaultRightSection:O,...j}=n,{styleProps:F,rest:q}=Gu(j),se=rd(),me={offsetBottom:se==null?void 0:se.offsetBottom,offsetTop:se==null?void 0:se.offsetTop},ge=te({name:["Input",c],props:u||n,classes:Qt,className:o,style:s,classNames:r,styles:i,unstyled:a,stylesCtx:me,rootSelector:"wrapper",vars:E,varsResolver:zN}),le=G?{required:l,disabled:v,"aria-invalid":!!h,"aria-describedby":se==null?void 0:se.describedBy,id:(se==null?void 0:se.inputId)||L}:{},fe=y||k&&z||O;return f.jsx(TN,{value:{size:d||"sm"},children:f.jsxs(V,{...ge("wrapper"),...F,...p,mod:[{error:!!h&&B,pointer:I,disabled:v,multiline:N,"data-with-right-section":!!fe,"data-with-left-section":!!g},U],variant:T,size:d,children:[g&&f.jsx("div",{...b,"data-position":"left",...ge("section",{className:b==null?void 0:b.className,style:b==null?void 0:b.style}),children:g}),f.jsx(V,{component:"input",...q,...le,ref:t,required:l,mod:{disabled:v,error:!!h&&B},variant:T,__size:H,...ge("input")}),fe&&f.jsx("div",{...w,"data-position":"right",...ge("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:fe})]})})});_t.classes=Qt;_t.Wrapper=Ym;_t.Label=id;_t.Error=sd;_t.Description=od;_t.Placeholder=Qm;_t.ClearButton=yx;_t.displayName="@mantine/core/Input";function UN(e,t,n){const r=$(e,t,n),{label:o,description:s,error:i,required:a,classNames:l,styles:c,className:u,unstyled:d,__staticSelector:p,__stylesApiProps:h,errorProps:v,labelProps:g,descriptionProps:b,wrapperProps:S,id:y,size:w,style:x,inputContainer:_,inputWrapperOrder:P,withAsterisk:T,variant:E,vars:I,mod:N,...D}=r,{styleProps:L,rest:G}=Gu(D),B={label:o,description:s,error:i,required:a,classNames:l,className:u,__staticSelector:p,__stylesApiProps:h||r,errorProps:v,labelProps:g,descriptionProps:b,unstyled:d,styles:c,size:w,style:x,inputContainer:_,inputWrapperOrder:P,withAsterisk:T,variant:E,id:y,mod:N,...S};return{...G,classNames:l,styles:c,unstyled:d,wrapperProps:{...B,...L},inputProps:{required:a,classNames:l,styles:c,unstyled:d,size:w,__staticSelector:p,__stylesApiProps:h||r,error:i,variant:E,id:y}}}const FN={__staticSelector:"InputBase",withAria:!0}
111,gl=Ye((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=UN("InputBase",FN,e);return f.jsx(_t.Wrapper,{...r,children:f.jsx(_t,{...n,...o,ref:t})})});gl.classes={..._t.classes,..._t.Wrapper.classes};gl.displayName="@mantine/core/InputBase";var wx={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const BN={},VN=(e,{radius:t,color:n,variant:r,autoContrast:o})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:o});return{root:{"--alert-radius":t===void 0?void 0:Ae(t),"--alert-bg":n||r?s.background:void 0,"--alert-color":s.color,"--alert-bd":n||r?s.border:void 0}}},hs=Q((e,t)=>{const n=$("Alert",BN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,radius:c,color:u,title:d,children:p,id:h,icon:v,withCloseButton:g,onClose:b,closeButtonLabel:S,variant:y,autoContrast:w,...x}=n,_=te({name:"Alert",classes:wx,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:VN}),P=ds(h),T=d&&`${P}-title`||void 0,E=`${P}-body`;return f.jsx(V,{id:P,..._("root",{variant:y}),variant:y,ref:t,...x,role:"alert","aria-describedby":E,"aria-labelledby":T,children:f.jsxs("div",{..._("wrapper"),children:[v&&f.jsx("div",{..._("icon"),children:v}),f.jsxs("div",{..._("body"),children:[d&&f.jsx("div",{..._("title"),"data-with-close-button":g||void 0,children:f.jsx("span",{id:T,..._("label"),children:d})}),p&&f.jsx("div",{id:E,..._("message"),"data-variant":y,children:p})]}),g&&f.jsx(zi,{..._("closeButton"),onClick:b,variant:"transparent",size:16,iconSize:16,"aria-label":S,unstyled:a})]})})});hs.classes=wx;hs.displayName="@mantine/core/Alert";var Sx={root:"m_b6d8b162"};function WN(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const HN={inherit:!1},GN=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:s})=>({root:{"--text-fz":bt(o),"--text-lh":qS(o),"--text-gradient":t==="gradient"?Op(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?At(s,e):void 0}}),ie=Ye((e,t)=>{const n=$("Text",HN,e),{lineClamp:r,truncate:o,inline:s,inherit:i,gradient:a,span:l,__staticSelector:c,vars:u,className:d,style:p,classNames:h,styles:v,unstyled:g,variant:b,mod:S,size:y,...w}=n,x=te({name:["Text",c],props:n,classes:Sx,className:d,style:p,classNames:h,styles:v,unstyled:g,vars:u,varsResolver:GN});return f.jsx(V,{...x("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:b,mod:[{"data-truncate":WN(o),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":i},S],size:y,...w})});ie.classes=Sx;ie.displayName="@mantine/core/Text";var bx={root:"m_849cf0da"};const KN={underline:"hover"},io=Ye((e,t)=>{const{underline:n,className:r,unstyled:o,mod:s,...i}=$("Anchor",KN,e);return f.jsx(ie,{component:"a",ref:t,className:Ue({[bx.root]:!o},r),...i,mod:[{underline:n},s],__staticSelector:"Anchor",unstyled:o})});io.classes=bx;io.displayName="@mantine/core/Anchor";const[qN,Ui]=mn("AppShell was not found in tree");var xo={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const QN={},Jm=Q((e,t)=>{const n=$("AppShellAside",QN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:u,mod:d,...p}=n,h=Ui();return h.disabled?null:f.jsx(V,{component:"aside",ref:t,mod:[{"with-border":c??h.withBorder},d],...h.getStyles("aside",{className:o,classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-aside-z-index":`calc(${u??h.zIndex} + 1)`}})});Jm.classes=xo;Jm.displayName="@mantine/core/AppShellAside";const YN={},Xm=Q((e,t)=>{var v;const n=$("AppShellFooter",YN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:u,mod:d,...p}=n,h=Ui();return h.disabled?null:f.jsx(V,{component:"footer",ref:t,mod:[{"with-border":c??h.withBorder},d],...h.getStyles("footer",{className:Ue({[gi.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-footer-z-index":(v=u??h.zIndex)==null?void 0:v.toString()}})});Xm.classes=xo;Xm.displayName="@mantine/core/AppShellFooter";const JN={},Zm=Q((e,t)=>{var v;const n=$("AppShellHeader",JN,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:u,mod:d,...p}=n,h=Ui();return h.disabled?null:f.jsx(V,{component:"header",ref:t,mod:[{"with-border":c??h.withBorder},d],...h.getStyles("header",{className:Ue({[gi.classNames.zeroRight]:h.offsetScrollbars},o),classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-header-z-index":(v=u??h.zIndex)==null?void 0:v.toString()}})});Zm.classes=xo;Zm.displayName="@mantine/core/AppShellHeader";const XN={},eg=Q((e,t)=>{const n=$("AppShellMain",XN,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Ui();return f.jsx(V,{component:"main",ref:t,...c.getStyles("main",{className:o,style:s,classNames:r,styles:i}),...l})});eg.classes=xo;
111eg.displayName="@mantine/core/AppShellMain";function vl(e){return typeof e=="object"?e.base:e}function yl(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function wl(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function ZN({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:o}){var l,c,u;const s=r==null?void 0:r.width,i="translateX(var(--app-shell-aside-width))",a="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),yl(s)){const d=A(vl(s));e["--app-shell-aside-width"]=d,e["--app-shell-aside-offset"]=d}if(wl(s)&&(typeof s.base<"u"&&(e["--app-shell-aside-width"]=A(s.base),e["--app-shell-aside-offset"]=A(s.base)),qe(s).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-aside-width"]=A(s[d]),t[d]["--app-shell-aside-offset"]=A(s[d]))})),(c=r==null?void 0:r.collapsed)!=null&&c.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-aside-transform"]=i,t[d]["--app-shell-aside-transform-rtl"]=a,t[d]["--app-shell-aside-offset"]="0px !important"}if((u=r==null?void 0:r.collapsed)!=null&&u.mobile){const d=bm(r.breakpoint,o.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-aside-width"]="100%",n[d]["--app-shell-aside-offset"]="0px",n[d]["--app-shell-aside-transform"]=i,n[d]["--app-shell-aside-transform-rtl"]=a}}
111function eO({baseStyles:e,minMediaStyles:t,footer:n}){const r=n==null?void 0:n.height,o="translateY(var(--app-shell-footer-height))",s=(n==null?void 0:n.offset)??!0;if(yl(r)){const i=A(vl(r));e["--app-shell-footer-height"]=i,s&&(e["--app-shell-footer-offset"]=i)}wl(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=A(r.base),s&&(e["--app-shell-footer-offset"]=A(r.base))),qe(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=A(r[i]),s&&(t[i]["--app-shell-footer-offset"]=A(r[i])))})),n!=null&&n.collapsed&&(e["--app-shell-footer-transform"]=o,e["--app-shell-footer-offset"]="0px !important")}function tO({baseStyles:e,minMediaStyles:t,header:n}){const r=n==null?void 0:n.height,o="translateY(calc(var(--app-shell-header-height) * -1))",s=(n==null?void 0:n.offset)??!0;if(yl(r)){const i=A(vl(r));e["--app-shell-header-height"]=i,s&&(e["--app-shell-header-offset"]=i)}wl(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=A(r.base),s&&(e["--app-shell-header-offset"]=A(r.base))),qe(r).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=A(r[i]),s&&(t[i]["--app-shell-header-offset"]=A(r[i])))})),n!=null&&n.collapsed&&(e["--app-shell-header-transform"]=o,e["--app-shell-header-offset"]="0px !important")}function nO({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:o}){var l,c,u;const s=r==null?void 0:r.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",a="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),yl(s)){const d=A(vl(s));e["--app-shell-navbar-width"]=d,e["--app-shell-navbar-offset"]=d}if(wl(s)&&(typeof s.base<"u"&&(e["--app-shell-navbar-width"]=A(s.base),e["--app-shell-navbar-offset"]=A(s.base)),qe(s).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-navbar-width"]=A(s[d]),t[d]["--app-shell-navbar-offset"]=A(s[d]))})),(c=r==null?void 0:r.collapsed)!=null&&c.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-navbar-transform"]=i,t[d]["--app-shell-navbar-transform-rtl"]=a,t[d]["--app-shell-navbar-offset"]="0px !important"}if((u=r==null?void 0:r.collapsed)!=null&&u.mobile){const d=bm(r.breakpoint,o.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-navbar-width"]="100%",n[d]["--app-shell-navbar-offset"]="0px",n[d]["--app-shell-navbar-transform"]=i,n[d]["--app-shell-navbar-transform-rtl"]=a}}function _f(e){return Number(e)===0?"0px":wo(e)}function rO({padding:e,baseStyles:t,minMediaStyles:n}){yl(e)&&(t["--app-shell-padding"]=_f(vl(e))),wl(e)&&(e.base&&(t["--app-shell-padding"]=_f(e.base)),qe(e).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=_f(e[r]))}))}function oO({navbar:e,header:t,footer:n,aside:r,padding:o,theme:s}){const i={},a={},l={};nO({baseStyles:l,minMediaStyles:i,maxMediaStyles:a,navbar:e,theme:s}),ZN({baseStyles:l,minMediaStyles:i,maxMediaStyles:a,aside:r,theme:s}),tO({baseStyles:l,minMediaStyles:i,header:t}),eO({baseStyles:l,minMediaStyles:i,footer:n}),rO({baseStyles:l,minMediaStyles:i,padding:o});const c=xy(qe(i),s.breakpoints).map(p=>({query:`(min-width: ${tu(p.px)})`,styles:i[p.value]})),u=xy(qe(a),s.breakpoints).map(p=>({query:`(max-width: ${tu(p.px)})`,styles:a[p.value]})),d=[...c,...u];return{baseStyles:l,media:d}}function sO({navbar:e,header:t,aside:n,footer:r,padding:o}){const s=Ct(),i=gr(),{media:a,baseStyles:l}=oO({navbar:e,header:t,footer:r,aside:n,padding:o,theme:s});return f.jsx(db,{media:a,styles:l,selector:i.cssVariablesSelector})}const iO={},tg=Q((e,t)=>{const n=$("AppShellNavbar",iO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,withBorder:c,zIndex:u,mod:d,...p}=n,h=Ui();return h.disabled?null:f.jsx(V,{component:"nav",ref:t,mod:[{"with-border":c??h.withBorder},d],...h.getStyles("navbar",{className:o,classNames:r,styles:i,style:s}),...p,__vars:{"--app-shell-navbar-z-index":`calc(${u??h.zIndex} + 1)`}})});tg.classes=xo;tg.displayName="@mantine/core/AppShellNavbar";const aO={},ng=Ye((e,t)=>{const n=$("AppShellSection",aO,e),{classNames:r,className:o,style:s,styles:i,vars:a,grow:l,mod:c,...u}=n,d=Ui();return f.jsx(V,{ref:t,mod:[{grow:l},c],...d.getStyles("section",{className:o,style:s,classNames:r,styles:i}),...u})});ng.classes=xo;ng.displayName="@mantine/core/AppShellSection";function lO({transitionDuration:e,disabled:t}){const[n,r]=m.useState(!0),o=m.useRef(-1),s=m.useRef(-1);return nb("resize",()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),200)}),Ni(()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),e||0)},[t,e]),n}const cO={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:gn("app")},uO=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),un=Q((e,t)=>{const n=$("AppShell",cO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,navbar:c,withBorder:u,padding:d,transitionDuration:p,transitionTimingFunction:h,header:v,zIndex:g,layout:b,disabled:S,aside:y,footer:w,offsetScrollbars:x=b!=="alt",mod:_,...P}=n,T=te({name:"AppShell",classes:xo,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:uO}),E=lO({disabled:S,transitionDuration:p});return f.jsxs(qN,{value:{getStyles:T,withBorder:u,zIndex:g,disabled:S,offsetScrollbars:x},children:[f.jsx(sO,{navbar:c,header:v,aside:y,footer:w,padding:d}),f.jsx(V,{ref:t,...T("root"),mod:[{resizing:E,layout:b,disabled:S},_],...P})]})});un.classes=xo;un.displayName="@mantine/core/AppShell";un.Navbar=tg;un.Header=Zm;un.Main=eg;un.Aside=Jm;un.Footer=Xm;un.Section=ng;const xx=m.createContext(null),dO=xx.Provider;function fO(){return{withinGroup:!!m.useContext(xx)}}var ad={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const pO={},hO=(e,{spacing:t})=>({group:{"--ag-spacing":wo(t)}}),rg=Q((e,t)=>{const n=$("AvatarGroup",pO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,spacing:c,...u}=n,d=te({name:"AvatarGroup",classes:ad,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:hO,rootSelector:"group"});return f.jsx(dO,{value:!0,children:f.jsx(V,{ref:t,...d("group"),...u})})});rg.classes=ad;rg.displayName="@mantine/core/AvatarGroup";function mO(e){return f.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.
1111575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function gO(e){let t=0;for(let n=0;n<e.length;n+=1){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}const vO=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function yO(e,t=vO){const n=gO(e),r=Math.abs(n)%t.length;return t[r]}function wO(e,t=2){const n=e.split(" ");return n.length===1?e.slice(0,t).toUpperCase():n.map(r=>r[0]).slice(0,t).join("").toUpperCase()}const SO={},bO=(e,{size:t,radius:n,variant:r,gradient:o,color:s,autoContrast:i,name:a,allowedInitialsColors:l})=>{const c=s==="initials"&&typeof a=="string"?yO(a,l):s,u=e.variantColorResolver({color:c||"gray",theme:e,gradient:o,variant:r||"light",autoContrast:i});return{root:{"--avatar-size":be(t,"avatar-size"),"--avatar-radius":n===void 0?void 0:Ae(n),"--avatar-bg":c||r?u.background:void 0,"--avatar-color":c||r?u.color:void 0,"--avatar-bd":c||r?u.border:void 0}}},ld=Ye((e,t)=>{const n=$("Avatar",SO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,src:c,alt:u,radius:d,color:p,gradient:h,imageProps:v,children:g,autoContrast:b,mod:S,name:y,allowedInitialsColors:w,...x}=n,_=fO(),[P,T]=m.useState(!c),E=te({name:"Avatar",props:n,classes:ad,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:bO});return m.useEffect(()=>T(!c),[c]),f.jsx(V,{...E("root"),mod:[{"within-group":_.withinGroup},S],ref:t,...x,children:P?f.jsx("span",{...E("placeholder"),title:u,children:g||typeof y=="string"&&wO(y)||f.jsx(mO,{})}):f.jsx("img",{...v,...E("image"),src:c,alt:u,onError:I=>{var N;T(!0),(N=v==null?void 0:v.onError)==null||N.call(v,I)}})})});ld.classes=ad;ld.displayName="@mantine/core/Avatar";ld.Group=rg;var _x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const xO={},_O=(e,{radius:t,color:n,gradient:r,variant:o,size:s,autoContrast:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{root:{"--badge-height":be(s,"badge-height"),"--badge-padding-x":be(s,"badge-padding-x"),"--badge-fz":be(s,"badge-fz"),"--badge-radius":t===void 0?void 0:Ae(t),"--badge-bg":n||o?a.background:void 0,"--badge-color":n||o?a.color:void 0,"--badge-bd":n||o?a.border:void 0,"--badge-dot-color":o==="dot"?At(n,e):void 0}}},cd=Ye((e,t)=>{const n=$("Badge",xO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,radius:c,color:u,gradient:d,leftSection:p,rightSection:h,children:v,variant:g,fullWidth:b,autoContrast:S,circle:y,mod:w,...x}=n,_=te({name:"Badge",props:n,classes:_x,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:_O});return f.jsxs(V,{variant:g,mod:[{block:b,circle:y,"with-right-section":!!h,"with-left-section":!!p},w],..._("root",{variant:g}),ref:t,...x,children:[p&&f.jsx("span",{..._("section"),"data-position":"left",children:p}),f.jsx("span",{..._("label"),children:v}),h&&f.jsx("span",{..._("section"),"data-position":"right",children:h})]})});cd.classes=_x;cd.displayName="@mantine/core/Badge";var Fi={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const s0={orientation:"horizontal"},CO=(e,{borderWidth:t})=>({group:{"--button-border-width":A(t)}}),og=Q((e,t)=>{const n=$("ButtonGroup",s0,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,orientation:l,vars:c,borderWidth:u,variant:d,mod:p,...h}=$("ButtonGroup",s0,e),v=te({name:"ButtonGroup",props:n,classes:Fi,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:c,varsResolver:CO,rootSelector:"group"});return f.jsx(V,{...v("group"),ref:t,variant:d,mod:[{"data-orientation":l},p],role:"group",...h})});og.classes=Fi;og.displayName="@mantine/core/ButtonGroup";const i0={},EO=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:s,size:i})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{groupSection:{"--section-height":be(i,"section-height"),"--section-padding-x":be(i,"section-padding-x"),"--section-fz":i!=null&&i.includes("compact")?bt(i.replace("compact-","")):bt(i),"--section-radius":t===void 0?void 0:Ae(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},sg=Q((e,t)=>{const n=$("ButtonGroupSection",i0,e),{className:r,style:o,classNames:s,styles:i,unstyled:a,vars:l,variant:c,gradient:u,radius:d,autoContrast:p,...h}=$("ButtonGroupSection",i0,e),v=te({name:"ButtonGroupSection",props:n,classes:Fi,className:r,style:o,classNames:s,styles:i,unstyled:a,vars:l,varsResolver:EO,rootSelector:"groupSection"});return f.jsx(V,{...v("groupSection"),ref:t,variant:c,...h})});sg.classes=Fi;sg.displayName="@mantine/core/ButtonGroupSection";const PO={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${A(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},TO={},kO=(e,{radius:t,color:n,gradient:r,variant:o,size:s,justify:i,autoContrast:a})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--button-justify":i,"--button-height":be(s,"button-height"),"--button-padding-x":be(s,"button-padding-x"),"--button-fz":s!=null&&s.includes("compact")?bt(s.replace("compact-","")):bt(s),"--button-radius":t===void 0?void 0:Ae(t),"--button-bg":n||o?l.background:void 0,"--button-hover":n||o?l.hover:void 0,"--button-color":l.color,"--button-bd":n||o?l.border:void 0,"--button-hover-color":n||o?l.hoverColor:void 0}}},xe=Ye((e,t)=>{const n=$("Button",TO,e),{style:r,vars:o,className:s,color:i,disabled:a,children:l,leftSection:c,rightSection:u,fullWidth:d,variant:p,radius:h,loading:v,loaderProps:g,gradient:b,classNames:S,styles:y,unstyled:w,"data-disabled":x,autoContrast:_,mod:P,...T}=n,E=te({name:"Button",props:n,classes:Fi,className:s,style:r,classNames:S,styles:y,unstyled:w,vars:o,varsResolver:kO}),I=!!c,N=!!u;return f.jsxs(fs,{ref:t,...E("root",{active:!a&&!v&&!x}),unstyled:w,variant:p,disabled:a||v,mod:[{disabled:a||x,loading:v,block:d,"with-left-section":I,"with-right-section":N},P],...T,children:[f.jsx(So,{mounted:!!v,transition:PO,duration:150,children:D=>f.jsx(V,{component:"span",...E("loader",{style:D}
111),"aria-hidden":!0,children:f.jsx($i,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...g})})}),f.jsxs("span",{...E("inner"),children:[c&&f.jsx(V,{component:"span",...E("section"),mod:{position:"left"},children:c}),f.jsx(V,{component:"span",mod:{loading:v},...E("label"),children:l}),u&&f.jsx(V,{component:"span",...E("section"),mod:{position:"right"},children:u})]})]})});xe.classes=Fi;xe.displayName="@mantine/core/Button";xe.Group=og;xe.GroupSection=sg;const[RO,IO]=mn("Card component was not found in tree");var ig={root:"m_e615b15f",section:"m_599a2148"};const NO={},ud=Ye((e,t)=>{const n=$("CardSection",NO,e),{classNames:r,className:o,style:s,styles:i,vars:a,withBorder:l,inheritPadding:c,mod:u,...d}=n,p=IO();return f.jsx(V,{ref:t,mod:[{"with-border":l,"inherit-padding":c},u],...p.getStyles("section",{className:o,style:s,styles:i,classNames:r}),...d})});ud.classes=ig;ud.displayName="@mantine/core/CardSection";const OO={},AO=(e,{padding:t})=>({root:{"--card-padding":wo(t)}}),os=Ye((e,t)=>{const n=$("Card",OO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,children:c,padding:u,...d}=n,p=te({name:"Card",props:n,classes:ig,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:AO}),h=m.Children.toArray(c),v=h.map((g,b)=>typeof g=="object"&&g&&"type"in g&&g.type===ud?m.cloneElement(g,{"data-first-section":b===0||void 0,"data-last-section":b===h.length-1||void 0}):g);return f.jsx(RO,{value:{getStyles:p},children:f.jsx(ed,{ref:t,unstyled:a,...p("root"),...d,children:v})})});os.classes=ig;os.displayName="@mantine/core/Card";os.Section=ud;var Cx={root:"m_4451eb3a"};const jO={},Ga=Ye((e,t)=>{const n=$("Center",jO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,inline:c,mod:u,...d}=n,p=te({name:"Center",props:n,classes:Cx,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l});return f.jsx(V,{ref:t,mod:[{inline:c},u],...p("root"),...d})});Ga.classes=Cx;Ga.displayName="@mantine/core/Center";var Ex={root:"m_3eebeb36",label:"m_9e365f20"};const MO={orientation:"horizontal"},LO=(e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?At(t,e):void 0,"--divider-border-style":n,"--divider-size":be(r,"divider-size")}}),ag=Q((e,t)=>{const n=$("Divider",MO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,color:c,orientation:u,label:d,labelPosition:p,mod:h,...v}=n,g=te({name:"Divider",classes:Ex,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:LO});return f.jsx(V,{ref:t,mod:[{orientation:u,"with-label":!!d},h],...g("root"),...v,role:"separator",children:d&&f.jsx(V,{component:"span",mod:{position:p},...g("label"),children:d})})});ag.classes=Ex;ag.displayName="@mantine/core/Divider";function $O({open:e,close:t,openDelay:n,closeDelay:r}){const o=m.useRef(-1),s=m.useRef(-1),i=()=>{window.clearTimeout(o.current),window.clearTimeout(s.current)},a=()=>{i(),n===0||n===void 0?e():o.current=window.setTimeout(e,n)},l=()=>{i(),r===0||r===void 0?t():s.current=window.setTimeout(t,r)};return m.useEffect(()=>i,[]),{openDropdown:a,closeDropdown:l}}function DO(e="top-end",t=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=A(t),[o,s]=e.split("-");return o==="top"&&(n["--indicator-top"]=r,n["--indicator-translate-y"]="-50%"),o==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),o==="bottom"&&(n["--indicator-bottom"]=r,n["--indicator-translate-y"]="50%"),s==="start"&&(n["--indicator-left"]=r,n["--indicator-translate-x"]="-50%"),s==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),s==="end"&&(n["--indicator-right"]=r,n["--indicator-translate-x"]="50%"),n}var Px={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const zO={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},UO=(e,{color:t,position:n,offset:r,size:o,radius:s,zIndex:i,autoContrast:a})=>({root:{"--indicator-color":t?At(t,e):void 0,"--indicator-text-color":km(a,e)?Hu({color:t,theme:e,autoContrast:a}):void 0,"--indicator-size":A(o),"--indicator-radius":s===void 0?void 0:Ae(s),"--indicator-z-index":i==null?void 0:i.toString(),...DO(n,r)}}),lg=Q((e,t)=>{const n=$("Indicator",zO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,children:c,position:u,offset:d,inline:p,label:h,radius:v,color:g,withBorder:b,disabled:S,processing:y,zIndex:w,autoContrast:x,mod:_,...P}=n,T=te({name:"Indicator",classes:Px,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:UO});return f.jsxs(V,{ref:t,...T("root"),mod:[{inline:p},_],...P,children:[!S&&f.jsx(V,{mod:{"with-label":!!h,"with-border":b,processing:y},...T("indicator"),children:h}),c]})});lg.classes=Px;lg.displayName="@mantine/core/Indicator";function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(null,arguments)}function Tx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const[FO,BO]=mn("List component was not found in tree");
111var cg={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const VO={},ug=Q((e,t)=>{const n=$("ListItem",VO,e),{classNames:r,className:o,style:s,styles:i,vars:a,icon:l,children:c,mod:u,...d}=n,p=BO(),h=l||p.icon,v={classNames:r,styles:i};return f.jsx(V,{...p.getStyles("item",{...v,className:o,style:s}),component:"li",mod:[{"with-icon":!!h,centered:p.center},u],ref:t,...d,children:f.jsxs("div",{...p.getStyles("itemWrapper",v),children:[h&&f.jsx("span",{...p.getStyles("itemIcon",v),children:h}),f.jsx("span",{...p.getStyles("itemLabel",v),children:c})]})})});ug.classes=cg;ug.displayName="@mantine/core/ListItem";const WO={type:"unordered"},HO=(e,{size:t,spacing:n})=>({root:{"--list-fz":bt(t),"--list-lh":qS(t),"--list-spacing":wo(n)}}),Ka=Q((e,t)=>{const n=$("List",WO,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,children:c,type:u,withPadding:d,icon:p,spacing:h,center:v,listStyleType:g,mod:b,...S}=n,y=te({name:"List",classes:cg,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:HO});return f.jsx(FO,{value:{center:v,icon:p,getStyles:y},children:f.jsx(V,{...y("root",{style:{listStyleType:g}}),component:u==="unordered"?"ul":"ol",mod:[{"with-padding":d},b],ref:t,...S,children:c})})});Ka.classes=cg;Ka.displayName="@mantine/core/List";Ka.Item=ug;const[GO,Sl]=mn("Menu component was not found in the tree");var Bi={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const KO={},dg=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=$("MenuDivider",KO,e),l=Sl();return f.jsx(V,{ref:t,...l.getStyles("divider",{className:r,style:o,styles:s,classNames:n}),...a}
111)});dg.classes=Bi;dg.displayName="@mantine/core/MenuDivider";const qO={},fg=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,onMouseEnter:a,onMouseLeave:l,onKeyDown:c,children:u,...d}=$("MenuDropdown",qO,e),p=m.useRef(null),h=Sl(),v=Tn(c,S=>{var y,w;(S.key==="ArrowUp"||S.key==="ArrowDown")&&(S.preventDefault(),(w=(y=p.current)==null?void 0:y.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||w.focus())}),g=Tn(a,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.openDropdown()),b=Tn(l,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.closeDropdown());return f.jsxs(Nt.Dropdown,{...d,onMouseEnter:g,onMouseLeave:b,role:"menu","aria-orientation":"vertical",ref:Lt(t,p),...h.getStyles("dropdown",{className:r,style:o,styles:s,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:[h.withInitialFocusPlaceholder&&f.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});fg.classes=Bi;fg.displayName="@mantine/core/MenuDropdown";const QO={},pg=Ye((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,color:a,closeMenuOnClick:l,leftSection:c,rightSection:u,children:d,disabled:p,"data-disabled":h,...v}=$("MenuItem",QO,e),g=Sl(),b=Ct(),{dir:S}=Ai(),y=m.useRef(null),w=g.getItemIndex(y.current),x=v,_=Tn(x.onMouseLeave,()=>g.setHovered(-1)),P=Tn(x.onMouseEnter,()=>g.setHovered(g.getItemIndex(y.current))),T=Tn(x.onClick,()=>{h||(typeof l=="boolean"?l&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),E=Tn(x.onFocus,()=>g.setHovered(g.getItemIndex(y.current))),I=a?b.variantColorResolver({color:a,theme:b,variant:"light"}):void 0,N=a?Oi({color:a,theme:b}):null;return f.jsxs(fs,{...v,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,onFocus:E,...g.getStyles("item",{className:r,style:o,styles:s,classNames:n}),ref:Lt(y,t),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||h||void 0,"data-hovered":g.hovered===w?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:P,onMouseLeave:_,onClick:T,onKeyDown:GS({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:g.loop,dir:S,orientation:"vertical",onKeyDown:x.onKeyDown}),__vars:{"--menu-item-color":N!=null&&N.isThemeColor&&(N==null?void 0:N.shade)===void 0?`var(--mantine-color-${N.color}-6)`:I==null?void 0:I.color,"--menu-item-hover":I==null?void 0:I.hover},children:[c&&f.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"left",children:c}),d&&f.jsx("div",{...g.getStyles("itemLabel",{styles:s,classNames:n}),children:d}),u&&f.jsx("div",{...g.getStyles("itemSection",{styles:s,classNames:n}),"data-position":"right",children:u})]})});pg.classes=Bi;pg.displayName="@mantine/core/MenuItem";const YO={},hg=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=$("MenuLabel",YO,e),l=Sl();return f.jsx(V,{ref:t,...l.getStyles("label",{className:r,style:o,styles:s,classNames:n}),...a}
111)});hg.classes=Bi;hg.displayName="@mantine/core/MenuLabel";const JO={refProp:"ref"},kx=m.forwardRef((e,t)=>{const{children:n,refProp:r,...o}=$("MenuTarget",JO,e);if(!pl(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=Sl(),i=n.props,a=Tn(i.onClick,()=>{s.trigger==="click"?s.toggleDropdown():s.trigger==="click-hover"&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),l=Tn(i.onMouseEnter,()=>(s.trigger==="hover"||s.trigger==="click-hover")&&s.openDropdown()),c=Tn(i.onMouseLeave,()=>{(s.trigger==="hover"||s.trigger==="click-hover"&&!s.openedViaClick)&&s.closeDropdown()});return f.jsx(Nt.Target,{refProp:r,popupType:"menu",ref:t,...o,children:m.cloneElement(n,{onClick:a,onMouseEnter:l,onMouseLeave:c,"data-expanded":s.opened?!0:void 0})})});kx.displayName="@mantine/core/MenuTarget";const XO={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function De(e){const t=$("Menu",XO,e),{children:n,onOpen:r,onClose:o,opened:s,defaultOpened:i,trapFocus:a,onChange:l,closeOnItemClick:c,loop:u,closeOnEscape:d,trigger:p,openDelay:h,closeDelay:v,classNames:g,styles:b,unstyled:S,variant:y,vars:w,menuItemTabIndex:x,keepMounted:_,withInitialFocusPlaceholder:P,...T}=t,E=te({name:"Menu",classes:Bi,props:t,classNames:g,styles:b,unstyled:S}),[I,{setHovered:N,resetHovered:D}]=Ik(),[L,G]=Bu({value:s,defaultValue:i,finalValue:!1,onChange:l}),[B,U]=m.useState(!1),H=()=>{G(!1),U(!1),L&&(o==null||o())},z=()=>{G(!0),!L&&(r==null||r())},k=()=>{L?H():z()},{openDropdown:O,closeDropdown:j}=$O({open:z,close:H,closeDelay:v,openDelay:h}),F=me=>Rk("[data-menu-item]","[data-menu-dropdown]",me),{resolvedClassNames:q,resolvedStyles:se}=hl({classNames:g,styles:b,props:t});return ar(()=>{D()},[L]),f.jsx(GO,{value:{getStyles:E,opened:L,toggleDropdown:k,getItemIndex:F,hovered:I,setHovered:N,openedViaClick:B,setOpenedViaClick:U,closeOnItemClick:c,closeDropdown:p==="click"?H:j,openDropdown:p==="click"?z:O,closeDropdownImmediately:H,loop:u,trigger:p,unstyled:S,menuItemTabIndex:x,withInitialFocusPlaceholder:P},children:f.jsx(Nt,{...T,opened:L,onChange:k,defaultOpened:i,trapFocus:_?!1:a,closeOnEscape:d,__staticSelector:"Menu",classNames:q,styles:se,unstyled:S,variant:y,keepMounted:_,children:n})})}De.extend=e=>e;De.withProps=nI(De);De.classes=Bi;De.displayName="@mantine/core/Menu";De.Item=pg;De.Label=hg;De.Dropdown=fg;De.Target=kx;De.Divider=dg;const[ZO,Vi]=mn("Modal component was not found in tree");var yr={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const eA={},dd=Q((e,t)=>{const n=$("ModalBody",eA,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Vi();return f.jsx(fx,{ref:t,...c.getStyles("body",{classNames:r,style:s,styles:i,className:o}),...l})});dd.classes=yr;dd.displayName="@mantine/core/ModalBody";const tA={},fd=Q((e,t)=>{const n=$("ModalCloseButton",tA,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Vi();return f.jsx(px,{ref:t,...c.getStyles("close",{classNames:r,style:s,styles:i,className:o}),...l})});fd.classes=yr;fd.displayName="@mantine/core/ModalCloseButton";const nA={},pd=Q((e,t)=>{const n=$("ModalContent",nA,e),{classNames:r,className:o,style:s,styles:i,vars:a,children:l,__hidden:c,...u}=n,d=Vi(),p=d.scrollAreaComponent||PN;return f.jsx(hx,{...d.getStyles("content",{className:o,style:s,styles:i,classNames:r}),innerProps:d.getStyles("inner",{className:o,style:s,styles:i,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":c||void 0,ref:t,...u,children:f.jsx(p,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${A(d.yOffset)} * 2))`},children:l})})});pd.classes=yr;pd.displayName="@mantine/core/ModalContent";const rA={},hd=Q((e,t)=>{const n=$("ModalHeader",rA,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Vi();return f.jsx(mx,{ref:t,...c.getStyles("header",{classNames:r,style:s,styles:i,className:o}),...l})});hd.classes=yr;hd.displayName="@mantine/core/ModalHeader";
111const oA={},md=Q((e,t)=>{const n=$("ModalOverlay",oA,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Vi();return f.jsx(gx,{ref:t,...c.getStyles("overlay",{classNames:r,style:s,styles:i,className:o}),...l})});md.classes=yr;md.displayName="@mantine/core/ModalOverlay";const sA={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:gn("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},iA=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:Ae(t),"--modal-size":be(n,"modal-size"),"--modal-y-offset":A(r),"--modal-x-offset":A(o)}}),gd=Q((e,t)=>{const n=$("ModalRoot",sA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,yOffset:c,scrollAreaComponent:u,radius:d,fullScreen:p,centered:h,xOffset:v,__staticSelector:g,...b}=n,S=te({name:g,classes:yr,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:iA});return f.jsx(ZO,{value:{yOffset:c,scrollAreaComponent:u,getStyles:S,fullScreen:p},children:f.jsx(dx,{ref:t,...S("root"),"data-full-screen":p||void 0,"data-centered":h||void 0,"data-offset-scrollbars":u===Li.Autosize||void 0,unstyled:a,...b})})});gd.classes=yr;gd.displayName="@mantine/core/ModalRoot";const[aA,lA]=wm();function Rx({children:e}){const[t,n]=m.useState([]),[r,o]=m.useState(gn("modal"));return f.jsx(aA,{value:{stack:t,addModal:(s,i)=>{n(a=>[...new Set([...a,s])]),o(a=>typeof i=="number"&&typeof a=="number"?Math.max(a,i):a)},removeModal:s=>n(i=>i.filter(a=>a!==s)),getZIndex:s=>`calc(${r} + ${t.indexOf(s)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}Rx.displayName="@mantine/core/ModalStack";const cA={},vd=Q((e,t)=>{const n=$("ModalTitle",cA,e),{classNames:r,className:o,style:s,styles:i,vars:a,...l}=n,c=Vi();return f.jsx(vx,{ref:t,...c.getStyles("title",{classNames:r,style:s,styles:i,className:o}),...l})});vd.classes=yr;vd.displayName="@mantine/core/ModalTitle";const uA={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:gn("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Yt=Q((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:s,closeButtonProps:i,children:a,radius:l,opened:c,stackId:u,zIndex:d,...p}=$("Modal",uA,e),h=lA(),v=!!n||s,g=h&&u?{closeOnEscape:h.currentId===u,trapFocus:h.currentId===u,zIndex:h.getZIndex(u)}:{},b=r===!1?!1:u&&h?h.currentId===u:c;return m.useEffect(()=>{h&&u&&(c?h.addModal(u,d||gn("modal")):h.removeModal(u))},[c,u,d]),f.jsxs(gd,{ref:t,radius:l,opened:c,zIndex:h&&u?h.getZIndex(u):d,...p,...g,children:[r&&f.jsx(md,{visible:b,transitionProps:h&&u?{duration:0}:void 0,...o}),f.jsxs(pd,{radius:l,__hidden:h&&u&&c?u!==h.currentId:!1,children:[v&&f.jsxs(hd,{children:[n&&f.jsx(vd,{children:n}),s&&f.jsx(fd,{...i})]}),f.jsx(dd,{children:a})]})]})});Yt.classes=yr;Yt.displayName="@mantine/core/Modal";Yt.Root=gd;Yt.Overlay=md;Yt.Content=pd;Yt.Body=dd;Yt.Header=hd;Yt.Title=vd;Yt.CloseButton=fd;Yt.Stack=Rx;var Ix={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const dA={withCloseButton:!0},fA=(e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:Ae(t),"--notification-color":n?At(n,e):void 0}}),mg=Q((e,t)=>{const n=$("Notification",dA,e),{className:r,color:o,radius:s,loading:i,withCloseButton:a,withBorder:l,title:c,icon:u,children:d,onClose:p,closeButtonProps:h,classNames:v,style:g,styles:b,unstyled:S,variant:y,vars:w,mod:x,loaderProps:_,role:P,...T}=n,E=te({name:"Notification",classes:Ix,props:n,className:r,style:g,classNames:v,styles:b,unstyled:S,vars:w,varsResolver:fA});return f.jsxs(V,{...E("root"),mod:[{"data-with-icon":!!u||i,"data-with-border":l},x],ref:t,variant:y,role:P||"alert",...T,children:[u&&!i&&f.jsx("div",{...E("icon"),children:u}),i&&f.jsx($i,{size:28,color:o,..._,...E("loader")}),f.jsxs("div",{...E("body"),children:[c&&f.jsx("div",{...E("title"),children:c}),f.jsx(V,{...E("description"),mod:{"data-with-title":!!c}
111,children:d})]}),a&&f.jsx(zi,{iconSize:16,color:"gray",...h,unstyled:S,onClick:p,...E("closeButton")})]})});mg.classes=Ix;mg.displayName="@mantine/core/Notification";const pA=({reveal:e})=>f.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:f.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var Wp={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const hA={visibilityToggleIcon:pA},mA=(e,{size:t})=>({root:{"--psi-icon-size":be(t,"psi-icon-size"),"--psi-button-size":be(t,"psi-button-size")}}),yd=Q((e,t)=>{const n=$("PasswordInput",hA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,required:c,error:u,leftSection:d,disabled:p,id:h,variant:v,inputContainer:g,description:b,label:S,size:y,errorProps:w,descriptionProps:x,labelProps:_,withAsterisk:P,inputWrapperOrder:T,wrapperProps:E,radius:I,rightSection:N,rightSectionWidth:D,rightSectionPointerEvents:L,leftSectionWidth:G,visible:B,defaultVisible:U,onVisibilityChange:H,visibilityToggleIcon:z,visibilityToggleButtonProps:k,rightSectionProps:O,leftSectionProps:j,leftSectionPointerEvents:F,withErrorStyles:q,mod:se,...me}=n,ge=ds(h),[le,fe]=Bu({value:B,defaultValue:U,finalValue:!1,onChange:H}),He=()=>fe(!le),je=te({name:"PasswordInput",classes:Wp,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:mA}),{resolvedClassNames:Me,resolvedStyles:Jt}=hl({classNames:r,styles:i,props:n}),{styleProps:Co,rest:vn}=Gu(me),Cr=z,Er=(w==null?void 0:w.id)||`${ge}-error`,gs=(x==null?void 0:x.id)||`${ge}-description`,Eo=`${!!u&&typeof u!="boolean"?Er:""} ${!!b?gs:""}`,Fe=Eo.trim().length>0?Eo.trim():void 0,kd=f.jsx(bo,{...je("visibilityToggle"),disabled:p,radius:I,"aria-hidden":!k,tabIndex:-1,...k,variant:(k==null?void 0:k.variant)??"subtle",color:"gray",unstyled:a,onTouchEnd:Xt=>{var yn;Xt.preventDefault(),(yn=k==null?void 0:k.onTouchEnd)==null||yn.call(k,Xt),He()},onMouseDown:Xt=>{var yn;Xt.preventDefault(),(yn=k==null?void 0:k.onMouseDown)==null||yn.call(k,Xt),He()},onKeyDown:Xt=>{var yn;(yn=k==null?void 0:k.onKeyDown)==null||yn.call(k,Xt),Xt.key===" "&&(Xt.preventDefault(),He())},children:f.jsx(Cr,{reveal:le})});return f.jsx(_t.Wrapper,{required:c,id:ge,label:S,error:u,description:b,size:y,classNames:Me,styles:Jt,__staticSelector:"PasswordInput",unstyled:a,withAsterisk:P,inputWrapperOrder:T,inputContainer:g,variant:v,labelProps:{..._,htmlFor:ge},descriptionProps:{...x,id:gs},errorProps:{...w,id:Er},mod:se,...je("root"),...Co,...E,children:f.jsx(_t,{component:"div",error:u,leftSection:d,size:y,classNames:{...Me,input:Ue(Wp.input,Me.input)}
111,styles:Jt,radius:I,disabled:p,__staticSelector:"PasswordInput",rightSectionWidth:D,rightSection:N??kd,variant:v,unstyled:a,leftSectionWidth:G,rightSectionPointerEvents:L||"all",rightSectionProps:O,leftSectionProps:j,leftSectionPointerEvents:F,withAria:!1,withErrorStyles:q,children:f.jsx("input",{required:c,"data-invalid":!!u||void 0,"data-with-left-section":!!d||void 0,...je("innerInput"),disabled:p,id:ge,ref:t,...vn,"aria-describedby":Fe,autoComplete:vn.autoComplete||"off",type:le?"text":"password"})})})});yd.classes={...gl.classes,...Wp};yd.displayName="@mantine/core/PasswordInput";const[gA,Nx]=mn("Progress.Root component was not found in tree");var bl={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const vA={},gg=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,...a}=$("ProgressLabel",vA,e),l=Nx();return f.jsx(V,{ref:t,...l.getStyles("label",{className:r,style:o,classNames:n,styles:s}),...a})});gg.classes=bl;gg.displayName="@mantine/core/ProgressLabel";const yA={},wA=(e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":be(t,"progress-size"),"--progress-radius":n===void 0?void 0:Ae(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),wd=Q((e,t)=>{const n=$("ProgressRoot",yA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,autoContrast:c,transitionDuration:u,...d}=n,p=te({name:"Progress",classes:bl,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:wA});return f.jsx(gA,{value:{getStyles:p,autoContrast:c},children:f.jsx(V,{ref:t,...p("root"),...d})})});wd.classes=bl;wd.displayName="@mantine/core/ProgressRoot";const SA={withAria:!0},Sd=Q((e,t)=>{const{classNames:n,className:r,style:o,styles:s,vars:i,value:a,withAria:l,color:c,striped:u,animated:d,mod:p,...h}=$("ProgressSection",SA,e),v=Nx(),g=Ct(),b=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,"aria-valuetext":`${a}%`}:{};return f.jsx(V,{ref:t,...v.getStyles("section",{className:r,classNames:n,styles:s,style:o}),...h,...b,mod:[{striped:u||d,animated:d},p],__vars:{"--progress-section-width":`${a}%`,"--progress-section-color":At(c,g),"--progress-label-color":km(v.autoContrast,g)?Hu({color:c,theme:g,autoContrast:v.autoContrast}):void 0}})});Sd.classes=bl;Sd.displayName="@mantine/core/ProgressSection";const bA={},ss=Q((e,t)=>{const n=$("Progress",bA,e),{value:r,classNames:o,styles:s,vars:i,color:a,striped:l,animated:c,"aria-label":u,...d}=n,{resolvedClassNames:p,resolvedStyles:h}=hl({classNames:o,styles:s,props:n});return f.jsx(wd,{ref:t,classNames:p,styles:h,vars:i,...d,children:f.jsx(Sd,{value:r,color:a,striped:l,animated:c,"aria-label":u})})});ss.classes=bl;ss.displayName="@mantine/core/Progress";ss.Section=Sd;ss.Root=wd;ss.Label=gg;const xA={duration:100,transition:"fade"};function _A(e,t){return{...xA,...t,...e}}function CA({offset:e,position:t,defaultOpened:n}){const[r,o]=m.useState(n),s=m.useRef(null),{x:i,y:a,elements:l,refs:c,update:u,placement:d}=Um({placement:t,middleware:[Lm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=d.includes("right")?e:t.includes("left")?e*-1:0,h=d.includes("bottom")?e:t.includes("top")?e*-1:0,v=m.useCallback(({clientX:g,clientY:b})=>{c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:g,y:b,left:g+p,top:b+h,right:g,bottom:b}}})},[l.reference]);return m.useEffect(()=>{if(c.floating.current){const g=s.current;g.addEventListener("mousemove",v);const b=er(c.floating.current);return b.forEach(S=>{S.addEventListener("scroll",u)}),()=>{g.removeEventListener("mousemove",v),b.forEach(S=>{S.removeEventListener("scroll",u)})}}},[l.reference,c.floating.current,u,v,r]),{handleMouseMove:v,x:i,y:a,opened:r,setOpened:o,boundaryRef:s,floating:c.setFloating}}var bd={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const EA={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:gn("popover")},PA=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ae(t),"--tooltip-bg":n?At(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),vg=Q((e,t)=>{const n=$("TooltipFloating",EA,e),{children:r,refProp:o,withinPortal:s,style:i,className:a,classNames:l,styles:c,unstyled:u,radiu
111s:d,color:p,label:h,offset:v,position:g,multiline:b,zIndex:S,disabled:y,defaultOpened:w,variant:x,vars:_,portalProps:P,...T}=n,E=Ct(),I=te({name:"TooltipFloating",props:n,classes:bd,className:a,style:i,classNames:l,styles:c,unstyled:u,rootSelector:"tooltip",vars:_,varsResolver:PA}),{handleMouseMove:N,x:D,y:L,opened:G,boundaryRef:B,floating:U,setOpened:H}=CA({offset:v,position:g,defaultOpened:w});if(!pl(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const z=Lt(B,_m(r),t),k=r.props,O=F=>{var q;(q=k.onMouseEnter)==null||q.call(k,F),N(F),H(!0)},j=F=>{var q;(q=k.onMouseLeave)==null||q.call(k,F),H(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(ps,{...P,withinPortal:s,children:f.jsx(V,{...T,...I("tooltip",{style:{...fb(i,E),zIndex:S,display:!y&&G?"block":"none",top:(L&&Math.round(L))??"",left:(D&&Math.round(D))??""}}),variant:x,ref:U,mod:{multiline:b},children:h})}),m.cloneElement(r,{...k,[o]:z,onMouseEnter:O,onMouseLeave:j})]})});vg.classes=bd;vg.displayName="@mantine/core/TooltipFloating";const Ox=m.createContext(!1),TA=Ox.Provider,kA=()=>m.useContext(Ox),RA={openDelay:0,closeDelay:0};function yg(e){const{openDelay:t,closeDelay:n,children:r}=$("TooltipGroup",RA,e);return f.jsx(TA,{value:!0,children:f.jsx(b2,{delay:{open:t,close:n},children:r})})}yg.displayName="@mantine/core/TooltipGroup";yg.extend=e=>e;function IA(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function NA(e){const t=IA(e.middlewares),n=[Ib(e.offset)];return t.shift&&n.push(Lm(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip=="boolean"?au():au(t.flip)),n.push(Nb({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline=="boolean"?xa():xa(t.inline)):e.inline&&n.push(xa()),n}function OA(e){var P,T,E;const[t,n]=m.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:t,s=kA(),i=ds(),a=m.useCallback(I=>{n(I),I&&y(i)},[i]),{x:l,y:c,context:u,refs:d,update:p,placement:h,middlewareData:{arrow:{x:v,y:g}={}}}=Um({strategy:e.strategy,placement:e.position,open:o,onOpenChange:a,middleware:NA(e)}),{delay:b,currentId:S,setCurrentId:y}=x2(u,{id:i}),{getReferenceProps:w,getFloatingProps:x}=R2([w2(u,{enabled:(P=e.events)==null?void 0:P.hover,delay:s?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((T=e.events)!=null&&T.touch)}),k2(u,{enabled:(E=e.events)==null?void 0:E.focus,visibleOnly:!0}),N2(u,{role:"tooltip"}),P2(u,{enabled:typeof e.opened>"u"})]);rx({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:d,update:p}}),ar(()=>{var I;(I=e.onPositionChange)==null||I.call(e,h)},[h]);const _=o&&S&&S!==i;return{x:l,y:c,arrowX:v,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:x,getReferenceProps:w,isGroupPhase:_,opened:o,placement:h}}const a0={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:gn("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},AA=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ae(t),"--tooltip-bg":n?At(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),ho=Q((e,t)=>{const n=$("Tooltip",a0,e),{children:r,position:o,refProp:s,label:i,openDelay:a,closeDelay:l,onPositionChange:c,opened:u,defaultOpened:d,withinPortal:p,radius:h,color:v,classNames:g,styles:b,unstyled:S,style:y,className:w,withArrow:x,arrowSize:_,arrowOffset:P,arrowRadius:T,arrowPosition:E,offset:I,transitionProps:N,multiline:D,events:L,zIndex:G,disabled:B,positionDependencies:U,onClick:H,onMouseEnter:z,onMouseLeave:k,inline:O,variant:j,keepMounted:F,vars:q,portalProps:se,mod:me,floatingStrategy:ge,middlewares:le,...fe}=$("Tooltip",a0,n),{dir:He}=Ai(),je=m.useRef(null),Me=OA({position:Yb(He,o),closeDelay:l,openDelay:a,onPositionChange:c,opened:u,defaultOpened:d,events:L,arrowRef:je,arrowOffset:P,offset:typeof I=="number"?I+(x?_/2:0):I,positionDependencies:[...U,r],inl
111ine:O,strategy:ge,middlewares:le}),Jt=te({name:"Tooltip",props:n,classes:bd,className:w,style:y,classNames:g,styles:b,unstyled:S,rootSelector:"tooltip",vars:q,varsResolver:AA});if(!pl(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Co=Lt(Me.reference,_m(r),t),vn=_A(N,{duration:100,transition:"fade"}),Cr=r.props;return f.jsxs(f.Fragment,{children:[f.jsx(ps,{...se,withinPortal:p,children:f.jsx(So,{...vn,keepMounted:F,mounted:!B&&!!Me.opened,duration:Me.isGroupPhase?10:vn.duration,children:Er=>f.jsxs(V,{...fe,"data-fixed":ge==="fixed"||void 0,variant:j,mod:[{multiline:D},me],...Me.getFloatingProps({ref:Me.floating,className:Jt("tooltip").className,style:{...Jt("tooltip").style,...Er,zIndex:G,top:Me.y??0,left:Me.x??0}}),children:[i,f.jsx(Hm,{ref:je,arrowX:Me.arrowX,arrowY:Me.arrowY,visible:x,position:Me.placement,arrowSize:_,arrowOffset:P,arrowRadius:T,arrowPosition:E,...Jt("arrow")})]})})}),m.cloneElement(r,Me.getReferenceProps({onClick:H,onMouseEnter:z,onMouseLeave:k,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Ue(w,Cr.className),...Cr,[s]:Co}))]})});ho.classes=bd;ho.displayName="@mantine/core/Tooltip";ho.Floating=vg;ho.Group=yg;var Ax={root:"m_18320242","skeleton-fade":"m_299c329c"};const jA={visible:!0,animate:!0},MA=(e,{width:t,height:n,radius:r,circle:o})=>({root:{"--skeleton-height":A(n),"--skeleton-width":A(o?n:t),"--skeleton-radius":o?"1000px":r===void 0?void 0:Ae(r)}}),wg=Q((e,t)=>{const n=$("Skeleton",jA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,width:c,height:u,circle:d,visible:p,radius:h,animate:v,mod:g,...b}=n,S=te({name:"Skeleton",classes:Ax,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:MA});return f.jsx(V,{ref:t,...S("root"),mod:[{visible:p,animate:v},g],...b})});wg.classes=Ax;wg.displayName="@mantine/core/Skeleton";var jx={root:"m_6d731127"};const LA={gap:"md",align:"stretch",justify:"flex-start"},$A=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":wo(t),"--stack-align":n,"--stack-justify":r}}),Ne=Q((e,t)=>{const n=$("Stack",LA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,align:c,justify:u,gap:d,variant:p,...h}=n,v=te({name:"Stack",props:n,classes:jx,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:$A});return f.jsx(V,{ref:t,...v("root"),variant:p,...h})});Ne.classes=jx;Ne.displayName="@mantine/core/Stack";const[DA,Sg]=mn("Tabs component was not found in the tree");var xl={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const zA={},bg=Q((e,t)=>{const n=$("TabsList",zA,e),{children:r,className:o,grow:s,justify:i,classNames:a,styles:l,style:c,mod:u,...d}=n,p=Sg();return f.jsx(V,{...d,...p.getStyles("list",{className:o,style:c,classNames:a,styles:l,props:n,variant:p.variant}),ref:t,role:"tablist",variant:p.variant,mod:[{grow:s,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},u],"aria-orientation":p.orientation,__vars:{"--tabs-justify":i},children:r})});bg.classes=xl;bg.displayName="@mantine/core/TabsList";const UA={},xg=Q((e,t)=>{const n=$("TabsPanel",UA,e),{children:r,className:o,value:s,classNames:i,styles:a,style:l,mod:c,keepMounted:u,...d}=n,p=Sg(),h=p.value===s,v=p.keepMounted||u||h?r:null;return f.jsx(V,{...d,...p.getStyles("panel",{className:o,classNames:i,styles:a,style:[l,h?void 0:{display:"none"}],props:n}),ref:t,mod:[{orientation:p.orientation},c],role:"tabpanel",id:p.getPanelId(s),"aria-labelledby":p.getTabId(s),children:v})});xg.classes=xl;xg.displayName="@mantine/core/TabsPanel";const FA={},_g=Q((e,t)=>{const n=$("TabsTab",FA,e),{className:r,children:o,rightSection:s,leftSection:i,value:a,onClick:l,onKeyDown:c,disabled:u,color:d,style:p,classNames:h,styles:v,vars:g,mod:b,tabIndex:S,...y}=n,w=Ct(),{dir:x}=Ai(),_=Sg(),P=a===_.value,T=I=>{_.onChange(_.allowTabDeactivation&&a===_.value?null:a),l==null||l(I)},E={classNames:h,styles:v,props:n};return f.jsxs(fs,{...y,..._.getStyles("tab",{className:r,style:p,variant:_.variant,...E}),disabled:u,unstyled:_.unstyled,variant:_.variant,mod:[{active:P,disabled:u,orientation:_.orientation,inverted:_.inverted,placement:_.orientation==="vertical"&&_.placement},b],ref:t,role:"tab",id:_.getTabId(a),"aria-selected":P,tabIndex:S!==void 0?S:P||_.value===null?0:-1,"aria-controls":_.getPanelId(a),onClick:T,__vars:{"--tabs-color":d?At(d,w):void 0},onKeyDown:GS({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:_.activateTabWithKeyboard,loop:_.loop,orientation:_.orientation||"horizontal",dir:x,onKeyDown:c}),children:[i&&f.jsx("span",{..._.getStyles("tabSection",E),"data-position":"left",children:i}),o&&f.jsx("span",{..._.getStyles("tabLabel",E),children:o}),s&&f.jsx("span",{..._.getStyles("tabSection",E),"data-position":"right",children:s})]})});_g.classes=xl;_g.displayName="@mantine/core/TabsTab";const l0="Tabs.Tab or Tabs.Panel component was rendered with invali
111d value or without value",BA={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},VA=(e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":Ae(t),"--tabs-color":At(n,e),"--tabs-text-color":km(r,e)?Hu({color:n,theme:e,autoContrast:r}):void 0}}),mt=Q((e,t)=>{const n=$("Tabs",BA,e),{defaultValue:r,value:o,onChange:s,orientation:i,children:a,loop:l,id:c,activateTabWithKeyboard:u,allowTabDeactivation:d,variant:p,color:h,radius:v,inverted:g,placement:b,keepMounted:S,classNames:y,styles:w,unstyled:x,className:_,style:P,vars:T,autoContrast:E,mod:I,...N}=n,D=ds(c),[L,G]=Bu({value:o,defaultValue:r,finalValue:null,onChange:s}),B=te({name:"Tabs",props:n,classes:xl,className:_,style:P,classNames:y,styles:w,unstyled:x,vars:T,varsResolver:VA});return f.jsx(DA,{value:{placement:b,value:L,orientation:i,id:D,loop:l,activateTabWithKeyboard:u,getTabId:by(`${D}-tab`,l0),getPanelId:by(`${D}-panel`,l0),onChange:G,allowTabDeactivation:d,variant:p,color:h,radius:v,inverted:g,keepMounted:S,unstyled:x,getStyles:B},children:f.jsx(V,{ref:t,id:D,variant:p,mod:[{orientation:i,inverted:i==="horizontal"&&g,placement:i==="vertical"&&b},I],...B("root"),...N,children:a})})});mt.classes=xl;mt.displayName="@mantine/core/Tabs";mt.Tab=_g;mt.Panel=xg;mt.List=bg;const WA={},Si=Q((e,t)=>{const n=$("TextInput",WA,e);return f.jsx(gl,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Si.classes=gl.classes;Si.displayName="@mantine/core/TextInput";const HA=["h1","h2","h3","h4","h5","h6"],GA=["xs","sm","md","lg","xl"];function KA(e,t){const n=t!==void 0?t:`h${e}`;return HA.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:GA.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:A(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Mx={root:"m_8a5d1357"};const qA={order:1},QA=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const s=KA(t,n);return{root:{"--title-fw":s.fontWeight,"--title-lh":s.lineHeight,"--title-fz":s.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},On=Q((e,t)=>{const n=$("Title",qA,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,order:l,vars:c,size:u,variant:d,lineClamp:p,textWrap:h,mod:v,...g}=n,b=te({name:"Title",props:n,classes:Mx,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:c,varsResolver:QA});return[1,2,3,4,5,6].includes(l)?f.jsx(V,{...b("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":typeof p=="number"},v],size:u,...g}):null});On.classes=Mx;On.displayName="@mantine/core/Title";function YA(e){let t=e,n=!1;const r=new Set;return{getState(){return t},updateState(o){t=typeof o=="function"?o(t):o},setState(o){this.updateState(o),r.forEach(s=>s(t))},initialize(o){n||(t=o,n=!0)},subscribe(o){return r.add(o),()=>r.delete(o)}}}function JA(e){return m.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function XA(e,t,n){const r=[],o=[],s={};for(const i of e){const a=i.position||t;s[a]=s[a]||0,s[a]+=1,s[a]<=n?o.push(i):r.push(i)}return{notifications:o,queue:r}}const ZA=()=>YA({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),ms=ZA(),e4=(e=ms)=>JA(e);function Wi(e,t){const n=e.getState(),r=t([...n.notifications,...n.queue]),o=XA(r,n.defaultPosition,n.limit);e.setState({notifications:o.notifications,queue:o.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function t4(e,t=ms){const n=e.id||QS();return Wi(t,r=>e.id&&r.some(o=>o.id===e.id)?r:[...r,{...e,id:n}]),n}function Lx(e,t=ms){return Wi(t,n=>n.filter(r=>{var o;return r.id===e?((o=r.onClose)==null||o.call(r,r),!1):!0})),e}function n4(e,t=ms){return Wi(t,n=>n.map(r=>r.id===e.id?{...r,...e}:r)),e.id}function r4(e=ms){Wi(e,()=>[])}function o4(e=ms){Wi(e,t=>t.slice(0,e.getState().limit))}const Ln={show:t4,hide:Lx,update:n4,clean:r4,cleanQueue:o4,updateState:Wi};
vendor: 4,378 bytes, line 111
111function Hp(e,t){return Hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hp(e,t)}function $x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hp(e,t)}const c0={disabled:!1},cu=gt.createContext(null);var s4=function(t){return t.scrollTop},ca="unmounted",Ro="exited",Io="entering",Es="entered",Gp="exiting",wr=function(e){$x(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Ro,s.appearStatus=Io):l=Es:r.unmountOnExit||r.mountOnEnter?l=ca:l=Ro,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===ca?{status:Ro}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Io&&i!==Es&&(s=Io):(i===Io||i===Es)&&(s=Gp)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Io){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this);i&&s4(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ro&&this.setState({status:ca})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[la.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!i||c0.disabled){this.safeSetState({status:Es},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Io},function(){s.props.onEntering(c,u),s.onTransitionEnd(p,function(){s.safeSetState({status:Es},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:la.findDOMNode(this);if(!s||c0.disabled){this.safeSetState({status:Ro},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Gp},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ro},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ca)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Tx(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(cu.Provider,{value:null},typeof i=="function"?i(o,a):gt.cloneElement(gt.Children.only(i),a))},t}(gt.Component);wr.contextType=cu;wr.propTypes={};function _s(){}wr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_s,onEntering:_s,onEntered:_s,onExit:_s,onExiting:_s,onExited:_s};wr.UNMOUNTED=ca;wr.EXITED=Ro;wr.ENTERING=Io;wr.ENTERED=Es;wr.EXITING=Gp;function i4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cg(e,t){var n=function(s){return t&&m.isValidElement(s)?t(s):s},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}
111).forEach(function(o){r[o.key]=n(o)}),r}function a4(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function $o(e,t,n){return n[t]!=null?n[t]:e.props[t]}function l4(e,t){return Cg(e.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:$o(n,"appear",e),enter:$o(n,"enter",e),exit:$o(n,"exit",e)})})}function c4(e,t,n){var r=Cg(e.children),o=a4(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(m.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=m.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:$o(i,"exit",e),enter:$o(i,"enter",e)}):!l&&a&&!u?o[s]=m.cloneElement(i,{in:!1}):l&&a&&m.isValidElement(c)&&(o[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:$o(i,"exit",e),enter:$o(i,"enter",e)}))}}),o}var u4=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d4={component:"div",childFactory:function(t){return t}},Or=function(e){$x(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(i4(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?l4(o,a):c4(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=Cg(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=Vp({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=Tx(o,["component","childFactory"]),l=this.state.contextValue,c=u4(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?gt.createElement(cu.Provider,{value:l},c):gt.createElement(cu.Provider,{value:l},gt.createElement(s,a,c))},t}(gt.Component);Or.propTypes={};Or.defaultProps=d4;const Dx=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function f4(e,t){return e.reduce((n,r)=>(n[r.position||t].push(r),n),Dx.reduce((n,r)=>(n[r]=[],n),{}))}const u0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},p4={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function h4({state:e,maxHeight:t,position:n,transitionDuration:r}){const[o,s]=n.split("-"),i=s==="center"?`${o}-center`:s,a={opacity:0,maxHeight:t,transform:u0[i],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:p4[i]},c={opacity:0,maxHeight:0,transform:u0[i]};return{...a,...{entering:l,entered:l,exiting:c,exited:c}[e]}}function m4(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const zx=m.forwardRef(({data:e,onHide:t,autoClose:n,...r},o)=>{const{autoClose:s,message:i,...a}=e,l=m4(n,e.autoClose),c=m.useRef(-1),u=()=>window.clearTimeout(c.current),d=()=>{t(e.id),u()},p=()=>{typeof l=="number"&&(c.current=window.setTimeout(d,l))};return m.useEffect(()=>{var h;(h=e.onOpen)==null||h.call(e,e)},[]),m.useEffect(()=>(p(),u),[l]),f.jsx(mg,{...r,...a,onClose:d,ref:o,onMouseEnter:u,onMouseLeave:p,children:i})});zx.displayName="@mantine/notifications/NotificationContainer";var Ux={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const g4=wr,v4={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:gn("overlay"),store:ms,withinPortal:!0},y4=(e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t==null?void 0:t.toString(),"--notifications-container-width":A(n)}}),Sr=Q((e,t)=>{const n=$("Notifications",v4,e),{classNames:r,className:o,style:s,styles:i,unstyled:a,vars:l,position:c,autoClose:u,transitionDuration:d,containerWidth:p,notificationMaxHeight:h,limit:v,zIndex:g,store:b,portalProps:S,withinPortal:y,...w}=n,x=Ct(),_=e4(b),P=Fk(),T=xm(),E=m.useRef({}),I=m.useRef(0),D=(x.respectReducedMotion?T:!1)?1:d,L=te({name:"Notifications",classes:Ux,props:n,className:o,style:s,classNames:r,styles:i,unstyled:a,vars:l,varsResolver:y4});m.useEffect(()=>{b==null||b.updateState(U=>({...U,limit:v||5,defaultPosition:c}))},[v,c]),ar(()=>{_.notifications.length>I.current&&setTimeout(()=>P(),0),I.current=_.notifications.length},[_.notifications]);const G=f4(_.notifications,c),B=Dx.reduce((U,H)=>(U[H]=G[H].map(({style:z,...k})=>f.jsx(g4,{timeout:D,onEnter:()=>E.current[k.id].offsetHeight,nodeRef:{current:E.current[k.id]},children:O=>f.jsx(zx,{ref:j=>{E.current[k.id]=j},data:k,onHide:j=>
111Lx(j,b),autoClose:u,...L("notification",{style:{...h4({state:O,position:H,transitionDuration:D,maxHeight:h}),...z}})})},k.id)),U),{});return f.jsxs(ps,{withinPortal:y,...S,children:[f.jsx(V,{...L("root"),"data-position":"top-center",ref:t,...w,children:f.jsx(Or,{children:B["top-center"]})}),f.jsx(V,{...L("root"),"data-position":"top-left",...w,children:f.jsx(Or,{children:B["top-left"]})}),f.jsx(V,{...L("root",{className:gi.classNames.fullWidth}),"data-position":"top-right",...w,children:f.jsx(Or,{children:B["top-right"]})}),f.jsx(V,{...L("root",{className:gi.classNames.fullWidth}),"data-position":"bottom-right",...w,children:f.jsx(Or,{children:B["bottom-right"]})}),f.jsx(V,{...L("root"),"data-position":"bottom-left",...w,children:f.jsx(Or,{children:B["bottom-left"]})}),f.jsx(V,{...L("root"),"data-position":"bottom-center",...w,children:f.jsx(Or,{children:B["bottom-center"]})})]})});Sr.classes=Ux;Sr.displayName="@mantine/notifications/Notifications";Sr.show=Ln.show;Sr.hide=Ln.hide;Sr.update=Ln.update;Sr.clean=Ln.clean;Sr.cleanQueue=Ln.cleanQueue;Sr.updateState=Ln.updateState;var Hi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Uo,Dr,Ys,o1,w4=(o1=class extends Hi{constructor(){super();Y(this,Uo);Y(this,Dr);Y(this,Ys);W(this,Ys,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Dr)||this.setEventListener(C(this,Ys))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Dr))==null||t.call(this),W(this,Dr,void 0))}setEventListener(t){var n;W(this,Ys,t),(n=C(this,Dr))==null||n.call(this),W(this,Dr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Uo)!==t&&(W(this,Uo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Uo)=="boolean"?C(this,Uo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Uo=new WeakMap,Dr=new WeakMap,Ys=new WeakMap,o1),Eg=new w4,S4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},zr,vh,s1,b4=(s1=class{constructor(){Y(this,zr,S4);Y(this,vh,!1)}setTimeoutProvider(e){W(this,zr,e)}setTimeout(e,t){return C(this,zr).setTimeout(e,t)}clearTimeout(e){C(this,zr).clearTimeout(e)}setInterval(e,t){return C(this,zr).setInterval(e,t)}clearInterval(e){C(this,zr).clearInterval(e)}},zr=new WeakMap,vh=new WeakMap,s1),Do=new b4;function x4(e){setTimeout(e,0)}var _4=typeof window>"u"||"Deno"in globalThis;function it(){}function C4(e,t){return typeof e=="function"?e(t):e}function Kp(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ao(e,t){return typeof e=="function"?e(t):e}function kt(e,t){return typeof e=="function"?e(t):e}function d0(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Pg(i,t.options))return!1}else if(!qa(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function f0(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(is(t.options.mutationKey)!==is(s))return!1}else if(!qa(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Pg(e,t){return((t==null?void 0:t.queryKeyHashFn)||is)(e)}function is(e){return JSON.stringify(e,(t,n)=>qp(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qa(e[n],t[n])):!1}var E4=Object.prototype.hasOwnProperty;function Bx(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=p0(e)&&p0(t);if(!r&&!(qp(e)&&qp(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let c=0;for(let u=0;u<a;u++){const d=r?u:i[u],p=e[d],h=t[d];if(p===h){l[d]=p,(r?u<s:E4.call(e,d))&&c++;continue}if(p===null||h===null||typeof p!="object"||typeof h!="object"){l[d]=h;continue}const v=Bx(p,h,n+1);
111l[d]=v,v===p&&c++}return s===a&&c===s?e:l}function uu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function p0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qp(e){if(!h0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!h0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function h0(e){return Object.prototype.toString.call(e)==="[object Object]"}function P4(e){return new Promise(t=>{Do.setTimeout(t,e)})}function Qp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Bx(e,t):t}function T4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function k4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tg=Symbol();function Vx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Tg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kg(e,t){return typeof e=="function"?e(...t):!!e}function R4(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Qa=(()=>{let e=()=>_4;return{isServer(){return e()},setIsServer(t){e=t}}})();function Yp(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var I4=x4;function N4(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=I4;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var $e=N4(),Js,Ur,Xs,i1,O4=(i1=class extends Hi{constructor(){super();Y(this,Js,!0);Y(this,Ur);Y(this,Xs);W(this,Xs,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Ur)||this.setEventListener(C(this,Xs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Ur))==null||t.call(this),W(this,Ur,void 0))}setEventListener(t){var n;W(this,Xs,t),(n=C(this,Ur))==null||n.call(this),W(this,Ur,t(this.setOnline.bind(this)))}setOnline(t){C(this,Js)!==t&&(W(this,Js,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,Js)}},Js=new WeakMap,Ur=new WeakMap,Xs=new WeakMap,i1),du=new O4;function A4(e){return Math.min(1e3*2**e,3e4)}function Wx(e){return(e??"online")==="online"?du.isOnline():!0}var Jp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Hx(e){let t=!1,n=0,r;const o=Yp(),s=()=>o.status!=="pending",i=g=>{var b;if(!s()){const S=new Jp(g);p(S),(b=e.onCancel)==null||b.call(e,S)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Eg.isFocused()&&(e.networkMode==="always"||du.isOnline())&&e.canRun(),u=()=>Wx(e.networkMode)&&e.canRun(),d=g=>{s()||(r==null||r(),o.resolve(g))},p=g=>{s()||(r==null||r(),o.reject(g))},h=()=>new Promise(g=>{var b;r=S=>{(s()||c())&&g(S)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;r=void 0,s()||(g=e.onContinue)==null||g.call(e)}),v=()=>{if(s())return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(S){g=Promise.reject(S)}Promise.resolve(g).then(d).catch(S=>{var P;if(s())return;const y=e.retry??(Qa.isServer()?0:3),w=e.retryDelay??A4,x=typeof w=="function"?w(n,S):w,_=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,S);if(t||!_){p(S);return}n++,(P=e.onFail)==null||P.call(e,n,S),P4(x).then(()=>c()?void 0:h()).then(()=>{t?p(S):v()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?v():h().then(v),o)}}var Fo,a1,Gx=(a1=class{constructor(){Y(this,Fo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Kp(this.gcTime)&&W(this,Fo,Do.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qa.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,Fo)!==void 0&&(Do.clearTimeout(C(this,Fo)),W(this,Fo,void 0))}},Fo=new WeakMap,a1);function j4(e){return{onFetch:(t,n)=>{var u,d,p,h,v;const r=t.options,o=(p=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],i=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const b=w=>{R4(w,()=>t.signal,()=>g=!0)},S=Vx(t.options,t.fetchOptions),y=async(w,x,_)=>{if(g)return Promise.reject(t.signal.reason);if(x==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:x,direction:_?"backward":"forward",meta:t.options.meta};return b(D),D})(),E=await S(T),{maxPages:I}=t.options,N=_?k4:T4;return{pages:N(w.pages,E,I),pageParams:N(w.pageParams,x,I)}};if(o&&s.length){const w=o==="backward",x=w?Kx:Xp,_={pages:s,pageParams:i},P=x(r,_);a=await y(_,P,w)}else{const w=e??s.length;do{const x=l===0?i[0]??r.initialPageParam:Xp(r,a);if(l>0&&x==null)break;a=await y(a,x),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Xp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Kx(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function E5(e,t){return t?Xp(e,t)!=null:!1}function P5(e,t){return!t||!e.getPreviousPageParam?!1:Kx(e,t)!=null}var Zs,Bo,ei,$t,Vo,Be,nl,Wo,Tt,qx,Un,l1,M4=(l1=class extends Gx{constructor(t){super();Y(this,Tt);Y(this,Zs);Y(this,Bo);Y(this,ei);Y(this,$t);Y(this,Vo);Y(this,Be);Y(this,nl);Y(this,Wo);W(this,Wo,!1),W(this,nl,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,Vo,t.client),W(this,$t,C(this,Vo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,Bo,g0(this.options)),this.state=t.state??C(this,Bo),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,Zs)}get promise(){var t;return(t=C(this,Be))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,nl),...t},t!=null&&t._type&&W(this,Zs,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=g0(this.options);n.data!==void 0&&(this.setState(m0(n.data,n.dataUpdatedAt)),W(this,Bo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$t).remove(this)}setData(t,n){const r=Qp(this.state.data,t,this.options);return re(this,Tt,Un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){re(this,Tt,Un).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=C(this,Be))==null?void 0:r.promise;
111return(o=C(this,Be))==null||o.cancel(t),n?n.then(it).catch(it):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,Bo)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>kt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tg||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ao(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Fx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Be)&&(C(this,Wo)||re(this,Tt,qx).call(this)?C(this,Be).cancel({revert:!0}):C(this,Be).cancelRetry()),this.scheduleGc()),C(this,$t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||re(this,Tt,Un).call(this,{type:"invalidate"})}async fetch(t,n){var c,u,d,p,h,v,g,b,S,y,w;if(this.state.fetchStatus!=="idle"&&((c=C(this,Be))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Be))return C(this,Be).continueRetry(),C(this,Be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(_=>_.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(W(this,Wo,!0),r.signal)})},s=()=>{const x=Vx(this.options,n),P=(()=>{const T={client:C(this,Vo),queryKey:this.queryKey,meta:this.meta};return o(T),T})();return W(this,Wo,!1),this.options.persister?this.options.persister(x,P,this):x(P)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,Vo),state:this.state,fetchFn:s};return o(x),x})(),l=C(this,Zs)==="infinite"?j4(this.options.pages):this.options.behavior;l==null||l.onFetch(a,this),W(this,ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&re(this,Tt,Un).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),W(this,Be,Hx({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof Jp&&x.revert&&this.setState({...C(this,ei),fetchStatus:"idle"}),r.abort()},onFail:(x,_)=>{re(this,Tt,Un).call(this,{type:"failed",failureCount:x,error:_})},onPause:()=>{re(this,Tt,Un).call(this,{type:"pause"})},onContinue:()=>{re(this,Tt,Un).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await C(this,Be).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(h=(p=C(this,$t).config).onSuccess)==null||h.call(p,x,this),(g=(v=C(this,$t).config).onSettled)==null||g.call(v,x,this.state.error,this),x}catch(x){if(x instanceof Jp){if(x.silent)return C(this,Be).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw re(this,Tt,Un).call(this,{type:"error",error:x}),(S=(b=C(this,$t).config).onError)==null||S.call(b,x,this),(w=(y=C(this,$t).config).onSettled)==null||w.call(y,this.state.data,x,this),x}finally{this.scheduleGc()}}},Zs=new WeakMap,Bo=new WeakMap,ei=new WeakMap,$t=new WeakMap,Vo=new WeakMap,Be=new WeakMap,nl=new WeakMap,Wo=new WeakMap,Tt=new WeakSet,qx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Un=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Qx(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...m0(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,ei,t.manual?o:void 0),o;case"error":const s=t.error;
vendor: 4,214 bytes, line 111
111return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),$e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$t).notify({query:this,type:"updated",action:t})})},l1);function Qx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Wx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function m0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function g0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ft,ae,rl,ot,Ho,ti,Vn,Fr,ol,ni,ri,Go,Ko,Br,oi,ue,ua,Zp,eh,th,nh,rh,oh,sh,Yx,c1,L4=(c1=class extends Hi{constructor(t,n){super();Y(this,ue);Y(this,ft);Y(this,ae);Y(this,rl);Y(this,ot);Y(this,Ho);Y(this,ti);Y(this,Vn);Y(this,Fr);Y(this,ol);Y(this,ni);Y(this,ri);Y(this,Go);Y(this,Ko);Y(this,Br);Y(this,oi,new Set);this.options=n,W(this,ft,t),W(this,Fr,null),W(this,Vn,Yp()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),v0(C(this,ae),this.options)?re(this,ue,ua).call(this):this.updateResult(),re(this,ue,nh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ih(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ih(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,re(this,ue,rh).call(this),re(this,ue,oh).call(this),C(this,ae).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,ae);if(this.options=C(this,ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kt(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");re(this,ue,sh).call(this),C(this,ae).setOptions(this.options),n._defaulted&&!uu(this.options,n)&&C(this,ft).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const o=this.hasListeners();o&&y0(C(this,ae),r,this.options,n)&&re(this,ue,ua).call(this),this.updateResult(),o&&(C(this,ae)!==r||kt(this.options.enabled,C(this,ae))!==kt(n.enabled,C(this,ae))||ao(this.options.staleTime,C(this,ae))!==ao(n.staleTime,C(this,ae)))&&re(this,ue,Zp).call(this);const s=re(this,ue,eh).call(this);o&&(C(this,ae)!==r||kt(this.options.enabled,C(this,ae))!==kt(n.enabled,C(this,ae))||s!==C(this,Br))&&re(this,ue,th).call(this,s)}getOptimisticResult(t){const n=C(this,ft).getQueryCache().build(C(this,ft),t),r=this.createResult(n,t);return D4(this,r)&&(W(this,ot,r),W(this,ti,this.options),W(this,Ho,C(this,ae).state)),r}getCurrentResult(){return C(this,ot)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Vn).status==="pending"&&C(this,Vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,oi).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ft).defaultQueryOptions(t),r=C(this,ft).getQueryCache().build(C(this,ft),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return re(this,ue,ua).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,ot)))}createResult(t,n){var I;const r=C(this,ae),o=this.options,s=C(this,ot),i=C(this,Ho),a=C(this,ti),c=t!==r?t.state:C(this,rl),{state:u}=t;let d={...u},p=!1,h;
111if(n._optimisticResults){const N=this.hasListeners(),D=!N&&v0(t,n),L=N&&y0(t,r,n,o);(D||L)&&(d={...d,...Qx(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:b}=d;h=d.data;let S=!1;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=s.data,S=!0):N=typeof n.placeholderData=="function"?n.placeholderData((I=C(this,ri))==null?void 0:I.state.data,C(this,ri)):n.placeholderData,N!==void 0&&(b="success",h=Qp(s==null?void 0:s.data,N,n),p=!0)}if(n.select&&h!==void 0&&!S)if(s&&h===(i==null?void 0:i.data)&&n.select===C(this,ol))h=C(this,ni);else try{W(this,ol,n.select),h=n.select(h),h=Qp(s==null?void 0:s.data,h,n),W(this,ni,h),W(this,Fr,null)}catch(N){W(this,Fr,N)}C(this,Fr)&&(v=C(this,Fr),h=C(this,ni),g=Date.now(),b="error");const y=d.fetchStatus==="fetching",w=b==="pending",x=b==="error",_=w&&y,P=h!==void 0,E={status:b,fetchStatus:d.fetchStatus,isPending:w,isSuccess:b==="success",isError:x,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:x&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:x&&P,isStale:Rg(t,n),refetch:this.refetch,promise:C(this,Vn),isEnabled:kt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=E.data!==void 0,D=E.status==="error"&&!N,L=U=>{D?U.reject(E.error):N&&U.resolve(E.data)},G=()=>{const U=W(this,Vn,E.promise=Yp());L(U)},B=C(this,Vn);switch(B.status){case"pending":t.queryHash===r.queryHash&&L(B);break;case"fulfilled":(D||E.data!==B.value)&&G();break;case"rejected":(!D||E.error!==B.reason)&&G();break}}return E}updateResult(){const t=C(this,ot),n=this.createResult(C(this,ae),this.options);if(W(this,Ho,C(this,ae).state),W(this,ti,this.options),C(this,Ho).data!==void 0&&W(this,ri,C(this,ae)),uu(n,t))return;W(this,ot,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,oi).size)return!0;const i=new Set(s??C(this,oi));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,ot)).some(a=>{const l=a;return C(this,ot)[l]!==t[l]&&i.has(l)})};re(this,ue,Yx).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&re(this,ue,nh).call(this)}},ft=new WeakMap,ae=new WeakMap,rl=new WeakMap,ot=new WeakMap,Ho=new WeakMap,ti=new WeakMap,Vn=new WeakMap,Fr=new WeakMap,ol=new WeakMap,ni=new WeakMap,ri=new WeakMap,Go=new WeakMap,Ko=new WeakMap,Br=new WeakMap,oi=new WeakMap,ue=new WeakSet,ua=function(t){re(this,ue,sh).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(it)),n},Zp=function(){re(this,ue,rh).call(this);const t=ao(this.options.staleTime,C(this,ae));if(Qa.isServer()||C(this,ot).isStale||!Kp(t))return;const r=Fx(C(this,ot).dataUpdatedAt,t)+1;W(this,Go,Do.setTimeout(()=>{C(this,ot).isStale||this.updateResult()},r))},eh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},th=function(t){re(this,ue,oh).call(this),W(this,Br,t),!(Qa.isServer()||kt(this.options.enabled,C(this,ae))===!1||!Kp(C(this,Br))||C(this,Br)===0)&&W(this,Ko,Do.setInterval(()=>{(this.options.refetchIntervalInBackground||Eg.isFocused())&&re(this,ue,ua).call(this)},C(this,Br)))},nh=function(){re(this,ue,Zp).call(this),re(this,ue,th).call(this,re(this,ue,eh).call(this))},rh=function(){C(this,Go)!==void 0&&(Do.clearTimeout(C(this,Go)),W(this,Go,void 0))},oh=function(){C(this,Ko)!==void 0&&(Do.clearInterval(C(this,Ko)),W(this,Ko,void 0))},sh=function(){const t=C(this,ft).getQueryCache().build(C(this,ft),this.options);if(t===C(this,ae))return;const n=C(this,ae);W(this,ae,t),W(this,rl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Yx=function(t){$e.batch(()=>
111{t.listeners&&this.listeners.forEach(n=>{n(C(this,ot))}),C(this,ft).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},c1);function $4(e,t){return kt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&kt(t.retryOnMount,e)===!1)}function v0(e,t){return $4(e,t)||e.state.data!==void 0&&ih(e,t,t.refetchOnMount)}function ih(e,t,n){if(kt(t.enabled,e)!==!1&&ao(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Rg(e,t)}return!1}function y0(e,t,n,r){return(e!==t||kt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Rg(e,n)}function Rg(e,t){return kt(t.enabled,e)!==!1&&e.isStaleByTime(ao(t.staleTime,e))}function D4(e,t){return!uu(e.getCurrentResult(),t)}var sl,xn,Ze,qo,_n,Rr,u1,z4=(u1=class extends Gx{constructor(t){super();Y(this,_n);Y(this,sl);Y(this,xn);Y(this,Ze);Y(this,qo);W(this,sl,t.client),this.mutationId=t.mutationId,W(this,Ze,t.mutationCache),W(this,xn,[]),this.state=t.state||Jx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,xn).includes(t)||(C(this,xn).push(t),this.clearGcTimeout(),C(this,Ze).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,xn,C(this,xn).filter(n=>n!==t)),this.scheduleGc(),C(this,Ze).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,xn).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ze).remove(this))}continue(){var t;return((t=C(this,qo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,c,u,d,p,h,v,g,b,S,y,w,x,_,P,T;const n=()=>{re(this,_n,Rr).call(this,{type:"continue"})},r={client:C(this,sl),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,qo,Hx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,I)=>{re(this,_n,Rr).call(this,{type:"failed",failureCount:E,error:I})},onPause:()=>{re(this,_n,Rr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ze).canRun(this)}));const o=this.state.status==="pending",s=!C(this,qo).canStart();try{if(o)n();else{re(this,_n,Rr).call(this,{type:"pending",variables:t,isPaused:s}),C(this,Ze).config.onMutate&&await C(this,Ze).config.onMutate(t,this,r);const I=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));I!==this.state.context&&re(this,_n,Rr).call(this,{type:"pending",context:I,variables:t,isPaused:s})}const E=await C(this,qo).start();return await((c=(l=C(this,Ze).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,E,t,this.state.context,r)),await((h=(p=C(this,Ze).config).onSettled)==null?void 0:h.call(p,E,null,this.state.variables,this.state.context,this,r)),await((g=(v=this.options).onSettled)==null?void 0:g.call(v,E,null,t,this.state.context,r)),re(this,_n,Rr).call(this,{type:"success",data:E}),E}catch(E){try{await((S=(b=C(this,Ze).config).onError)==null?void 0:S.call(b,E,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((w=(y=this.options).onError)==null?void 0:w.call(y,E,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((_=(x=C(this,Ze).config).onSettled)==null?void 0:_.call(x,void 0,E,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((T=(P=this.options).onSettled)==null?void 0:T.call(P,void 0,E,t,this.state.context,r))}catch(I){Promise.reject(I)}throw re(this,_n,Rr).call(this,{type:"error",error:E}),E}finally{C(this,Ze).runNext(this)}}},sl=new WeakMap,xn=new WeakMap,Ze=new WeakMap,qo=new WeakMap,_n=new WeakSet,Rr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPau
111sed,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),$e.batch(()=>{C(this,xn).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ze).notify({mutation:this,type:"updated",action:t})})},u1);function Jx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wn,tn,il,d1,U4=(d1=class extends Hi{constructor(t={}){super();Y(this,Wn);Y(this,tn);Y(this,il);this.config=t,W(this,Wn,new Set),W(this,tn,new Map),W(this,il,0)}build(t,n,r){const o=new z4({client:t,mutationCache:this,mutationId:++jl(this,il)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Wn).add(t);const n=oc(t);if(typeof n=="string"){const r=C(this,tn).get(n);r?r.push(t):C(this,tn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Wn).delete(t)){const n=oc(t);if(typeof n=="string"){const r=C(this,tn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,tn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=oc(t);if(typeof n=="string"){const r=C(this,tn).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=oc(t);if(typeof n=="string"){const o=(r=C(this,tn).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{C(this,Wn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Wn).clear(),C(this,tn).clear()})}getAll(){return Array.from(C(this,Wn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>f0(n,r))}findAll(t={}){return this.getAll().filter(n=>f0(t,n))}notify(t){$e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return $e.batch(()=>Promise.all(t.map(n=>n.continue().catch(it))))}},Wn=new WeakMap,tn=new WeakMap,il=new WeakMap,d1);function oc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Hn,Vr,pt,Gn,nr,_c,ah,f1,F4=(f1=class extends Hi{constructor(n,r){super();Y(this,nr);Y(this,Hn);Y(this,Vr);Y(this,pt);Y(this,Gn);W(this,Hn,n),this.setOptions(r),this.bindMethods(),re(this,nr,_c).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Hn).defaultMutationOptions(n),uu(this.options,r)||C(this,Hn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,pt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&is(r.mutationKey)!==is(this.options.mutationKey)?this.reset():((o=C(this,pt))==null?void 0:o.state.status)==="pending"&&C(this,pt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,pt))==null||n.removeObserver(this)}onMutationUpdate(n){re(this,nr,_c).call(this),re(this,nr,ah).call(this,n)}getCurrentResult(){return C(this,Vr)}reset(){var n;(n=C(this,pt))==null||n.removeObserver(this),W(this,pt,void 0),re(this,nr,_c).call(this),re(this,nr,ah).call(this)}mutate(n,r){var o;return W(this,Gn,r),(o=C(this,pt))==null||o.removeObserver(this),W(this,pt,C(this,Hn).getMutationCache().build(C(this,Hn),this.options)),C(this,pt).addObserver(this),C(this,pt).execute(n)}},Hn=new WeakMap,Vr=new WeakMap,pt=new WeakMap,Gn=new WeakMap,nr=new WeakSet,_c=function(){var r;const n=((r=C(this,pt))==null?void 0:r.state)??Jx();W(this,Vr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},ah=function(n){$e.batch(()=>{var r,o,s,i,a,l,c,u;if(C(this,Gn)&&this.hasListeners()){const d=C(this,Vr).variables,p=C(this,Vr).context,h={client:C(this,Hn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=C(this,Gn)).onSuccess)==null||o.call(r,n.data,d,p,h)}catch(v){Promise.reject(v)}try{(i=(s=C(this,Gn)).onSettled)==null||i.call(s,n.data,null,d,p,h)}catch(v){Promise.reject(v)}}else if((n==null?void 0:n.type)==="error"){try{(l=(a=C(this,Gn)).onError)==null||l.call(a,n.error,d,p,h)}catch(v){Promise.reject(v)}try{(u=(c=C(this,Gn)).onSettled)==null||u.call(c,void 0,n.error,d,p,h)}catch(v){Promise.reject(v)}}}
111this.listeners.forEach(d=>{d(C(this,Vr))})})},f1),Cn,p1,B4=(p1=class extends Hi{constructor(t={}){super();Y(this,Cn);this.config=t,W(this,Cn,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Pg(o,n);let i=this.get(s);return i||(i=new M4({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,Cn).has(t.queryHash)||(C(this,Cn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Cn).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Cn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Cn).get(t)}getAll(){return[...C(this,Cn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>d0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>d0(t,r)):n}notify(t){$e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Cn=new WeakMap,p1),Te,Wr,Hr,si,ii,Gr,ai,li,h1,V4=(h1=class{constructor(e={}){Y(this,Te);Y(this,Wr);Y(this,Hr);Y(this,si);Y(this,ii);Y(this,Gr);Y(this,ai);Y(this,li);W(this,Te,e.queryCache||new B4),W(this,Wr,e.mutationCache||new U4),W(this,Hr,e.defaultOptions||{}),W(this,si,new Map),W(this,ii,new Map),W(this,Gr,0)}mount(){jl(this,Gr)._++,C(this,Gr)===1&&(W(this,ai,Eg.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Te).onFocus())})),W(this,li,du.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Te).onOnline())})))}unmount(){var e,t;jl(this,Gr)._--,C(this,Gr)===0&&((e=C(this,ai))==null||e.call(this),W(this,ai,void 0),(t=C(this,li))==null||t.call(this),W(this,li,void 0))}isFetching(e){return C(this,Te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Wr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Te).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ao(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,Te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,Te).get(r.queryHash),s=o==null?void 0:o.state.data,i=C4(t,s);if(i!==void 0)return C(this,Te).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return $e.batch(()=>C(this,Te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Te);$e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Te);return $e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=$e.batch(()=>C(this,Te).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(it).catch(it)}invalidateQueries(e,t={}){return $e.batch(()=>(C(this,Te).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=$e.batch(()=>C(this,Te).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(it)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(it)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Te).build(this,t);return n.isStaleByTime(ao(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(it).catch(it)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(it).cat
111ch(it)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return du.isOnline()?C(this,Wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Te)}getMutationCache(){return C(this,Wr)}getDefaultOptions(){return C(this,Hr)}setDefaultOptions(e){W(this,Hr,e)}setQueryDefaults(e,t){C(this,si).set(is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,si).values()],n={};return t.forEach(r=>{qa(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ii).set(is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ii).values()],n={};return t.forEach(r=>{qa(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Hr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Tg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Hr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Te).clear(),C(this,Wr).clear()}},Te=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,si=new WeakMap,ii=new WeakMap,Gr=new WeakMap,ai=new WeakMap,li=new WeakMap,h1),Xx=m.createContext(void 0),_l=e=>{const t=m.useContext(Xx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},W4=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Xx.Provider,{value:e,children:t})),Zx=m.createContext(!1),H4=()=>m.useContext(Zx);Zx.Provider;function G4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var K4=m.createContext(G4()),q4=()=>m.useContext(K4),Q4=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?kg(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Y4=e=>{m.useEffect(()=>{e.clearReset()},[e])},J4=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||kg(n,[e.error,r])),X4=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Z4=(e,t)=>e.isLoading&&e.isFetching&&!t,ej=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,w0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tj(e,t,n){var p,h,v,g;const r=H4(),o=q4(),s=_l(),i=s.defaultQueryOptions(e);(h=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||h.call(p,i);const a=s.getQueryCache().get(i.queryHash);i._optimisticResults=r?"isRestoring":"optimistic",X4(i),Q4(i,o,a),Y4(o);const l=!s.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(s,i)),u=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(b=>{const S=d?c.subscribe($e.batchCalls(b)):it;return c.updateResult(),S},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),ej(i,u))throw w0(i,c,o);if(J4({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a,suspense:i.suspense}))throw u.error;if((g=(v=s.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||g.call(v,i,u),i.experimental_prefetchInRender&&!Qa.isServer()&&Z4(u,r)){const b=l?w0(i,c,o):a==null?void 0:a.promise;b==null||b.catch(it).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function $n(e,t){return tj(e,L4)}function bi(e,t){const n=_l(),[r]=m.useState(()=>new F4(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(i=>r.subscribe($e.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=m.useCallback((i,a)=>{r.mutate(i,a).catch(it)},[r]);if(o.error&&kg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const nj="modulepreload",rj=function(e){return"/"+e},S0={}
111,Z=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=rj(l),l in S0)return;S0[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":nj,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},oj=()=>{};var b0={};/** 112 * @license 113 * Copyright 2017 Google LLC 114 * 115 * Licensed under the Apache License, Version 2.0 (the "License"); 116 * you may not use this file except in compliance with the License. 117 * You may obtain a copy of the License at 118 * 119 * http://www.apache.org/licenses/LICENSE-2.0 120 * 121 * Unless required by applicable law or agreed to in writing, software 122 * distributed under the License is distributed on an "AS IS" BASIS, 123 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 124 * See the License for the specific language governing permissions and 125 * limitations under the License. 126 */const e_=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=o&63|128):(o&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},sj=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const s=e[n++];t[r++]=String.fromCharCode((o&31)<<6|s&63)}else if(o>239&&o<365){const s=e[n++],i=e[n++],a=e[n++],l=((o&7)<<18|(s&63)<<12|(i&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const s=e[n++],i=e[n++];t[r++]=String.fromCharCode((o&15)<<12|(s&63)<<6|i&63)}}return t.join("")},t_={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o<e.length;o+=3){const s=e[o],i=o+1<e.length,a=i?e[o+1]:0,l=o+2<e.length,c=l?e[o+2]:0,u=s>>2,d=(s&3)<<4|a>>4;let p=(a&15)<<2|c>>6,h=c&63;l||(h=64,i||(p=64)),r.push(n[u],n[d],n[p],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(e_(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):sj(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<e.length;){const s=n[e.charAt(o++)],a=o<e.length?n[e.charAt(o)]:0;++o;const c=o<e.length?n[e.charAt(o)]:64;++o;const d=o<e.length?n[e.charAt(o)]:64;if(++o,s==null||a==null||c==null||d==null)throw new ij;const p=s<<2|a>>4;if(r.push(p),c!==64){const h=a<<4&240|c>>2;if(r.push(h),d!==64){const v=c<<6&192|d;r.push(v)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
126class ij extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const aj=function(e){const t=e_(e);return t_.encodeByteArray(t,!0)},n_=function(e){return aj(e).replace(/\./g,"")},r_=function(e){try{return t_.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 127 * @license 128 * Copyright 2022 Google LLC 129 * 130 * Licensed under the Apache License, Version 2.0 (the "License"); 131 * you may not use this file except in compliance with the License. 132 * You may obtain a copy of the License at 133 * 134 * http://www.apache.org/licenses/LICENSE-2.0 135 * 136 * Unless required by applicable law or agreed to in writing, software 137 * distributed under the License is distributed on an "AS IS" BASIS, 138 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139 * See the License for the specific language governing permissions and 140 * limitations under the License. 141 */function lj(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 142 * @license 143 * Copyright 2022 Google LLC 144 * 145 * Licensed under the Apache License, Version 2.0 (the "License"); 146 * you may not use this file except in compliance with the License. 147 * You may obtain a copy of the License at 148 * 149 * http://www.apache.org/licenses/LICENSE-2.0 150 * 151 * Unless required by applicable law or agreed to in writing, software 152 * distributed under the License is distributed on an "AS IS" BASIS, 153 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 154 * See the License for the specific language governing permissions and 155 * limitations under the License. 156 */const cj=()=>lj().__FIREBASE_DEFAULTS__,uj=()=>{if(typeof process>"u"||typeof b0>"u")return;const e=b0.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},dj=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&r_(e[1]);return t&&JSON.parse(t)},Ig=()=>{try{return oj()||cj()||uj()||dj()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},fj=e=>{var t,n;return(n=(t=Ig())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},o_=()=>{var e;return(e=Ig())===null||e===void 0?void 0:e.config},s_=e=>{var t;return(t=Ig())===null||t===void 0?void 0:t[`_${e}`]};/** 157 * @license 158 * Copyright 2017 Google LLC 159 * 160 * Licensed under the Apache License, Version 2.0 (the "License"); 161 * you may not use this file except in compliance with the License. 162 * You may obtain a copy of the License at 163 * 164 * http://www.apache.org/licenses/LICENSE-2.0 165 * 166 * Unless required by applicable law or agreed to in writing, software 167 * distributed under the License is distributed on an "AS IS" BASIS, 168 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 169 * See the License for the specific language governing permissions and 170 * limitations under the License. 171 */class pj{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** 172 * @license 173 * Copyright 2025 Google LLC 174 * 175 * Licensed under the Apache License, Version 2.0 (the "License"); 176 * you may not use this file except in compliance with the License. 177 * You may obtain a copy of the License at 178 * 179 * http://www.apache.org/licenses/LICENSE-2.0 180 * 181 * Unless required by applicable law or agreed to in writing, software 182 * distributed under the License is distributed on an "AS IS" BASIS, 183 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 184 * See the License for the specific language governing permissions and 185 * limitations under the License. 186 */function xd(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function hj(e){return(await fetch(e,{credentials:"include"})).ok}const _a={};function mj(){const e={prod:[],emulator:[]};for(const t of Object.keys(_a))_a[t]?e.emulator.push(t):e.prod.push(t);return e}function gj(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}let x0=!1;function vj(e,t){if(typeof window>"u"||typeof document>"u"||!xd(window.location.host)||_a[e]===t||_a[e]||x0)return;_a[e]=t;function n(p){return`__firebase__banner__${p}`}const r="__firebase__banner",s=mj().prod.length>0;function i(){const p=document.getElementById(r);p&&p.remove()}function a(p){p.style.display="flex",p.style.background="#7faaf0",p.style.position="fixed",p.style.bottom="5px",p.style.left="5px",p.style.padding=".5em",p.style.borderRadius="5px",p.style.alignItems="center"}function l(p,h){p.setAttribute("width","24"),p.setAttribute("id",h),p.setAttribute("height","24"),p.setAttribute("viewBox","0 0 24 24"),p.setAttribute("fill","none"),p.style.marginLeft="-6px"}function c(){const p=document.createElement("span");
186return p.style.cursor="pointer",p.style.marginLeft="16px",p.style.fontSize="24px",p.innerHTML=" ×",p.onclick=()=>{x0=!0,i()},p}function u(p,h){p.setAttribute("id",h),p.innerText="Learn more",p.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",p.setAttribute("target","__blank"),p.style.paddingLeft="5px",p.style.textDecoration="underline"}function d(){const p=gj(r),h=n("text"),v=document.getElementById(h)||document.createElement("span"),g=n("learnmore"),b=document.getElementById(g)||document.createElement("a"),S=n("preprendIcon"),y=document.getElementById(S)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(p.created){const w=p.element;a(w),u(b,g);const x=c();l(y,S),w.append(y,v,b,x),document.body.appendChild(w)}s?(v.innerText="Preview backend disconnected.",y.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 187<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 188</g> 189<defs> 190<clipPath id="clip0_6013_33858"> 191<rect width="24" height="24" fill="white"/> 192</clipPath> 193</defs>`):(y.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 194<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 195</g> 196<defs> 197<clipPath id="clip0_6083_34804"> 198<rect width="24" height="24" fill="white"/> 199</clipPath> 200</defs>`,v.innerText="Preview backend running in this workspace."),v.setAttribute("id",h)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",d):d()}/** 201 * @license 202 * Copyright 2017 Google LLC 203 * 204 * Licensed under the Apache License, Version 2.0 (the "License"); 205 * you may not use this file except in compliance with the License. 206 * You may obtain a copy of the License at 207 * 208 * http://www.apache.org/licenses/LICENSE-2.0 209 * 210 * Unless required by applicable law or agreed to in writing, software 211 * distributed under the License is distributed on an "AS IS" BASIS, 212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 213 * See the License for the specific language governing permissions and 214 * limitations under the License. 215 */function ct(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function yj(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ct())}function wj(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Sj(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function bj(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function xj(){const e=ct();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function _j(){try{return typeof indexedDB=="object"}catch{return!1}}function Cj(){return new Promise((e,t)=>
215{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var s;t(((s=o.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){t(n)}})}/** 216 * @license 217 * Copyright 2017 Google LLC 218 * 219 * Licensed under the Apache License, Version 2.0 (the "License"); 220 * you may not use this file except in compliance with the License. 221 * You may obtain a copy of the License at 222 * 223 * http://www.apache.org/licenses/LICENSE-2.0 224 * 225 * Unless required by applicable law or agreed to in writing, software 226 * distributed under the License is distributed on an "AS IS" BASIS, 227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 228 * See the License for the specific language governing permissions and 229 * limitations under the License. 230 */const Ej="FirebaseError";class _o extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Ej,Object.setPrototypeOf(this,_o.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Cl.prototype.create)}}class Cl{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},o=`${this.service}/${t}`,s=this.errors[t],i=s?Pj(s,r):"Error",a=`${this.serviceName}: ${i} (${o}).`;return new _o(o,a,r)}}function Pj(e,t){return e.replace(Tj,(n,r)=>{const o=t[r];return o!=null?String(o):`<${r}?>`})}const Tj=/\{\$([^}]+)}/g;function kj(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function xi(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const s=e[o],i=t[o];if(_0(s)&&_0(i)){if(!xi(s,i))return!1}else if(s!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function _0(e){return e!==null&&typeof e=="object"}/** 231 * @license 232 * Copyright 2017 Google LLC 233 * 234 * Licensed under the Apache License, Version 2.0 (the "License"); 235 * you may not use this file except in compliance with the License. 236 * You may obtain a copy of the License at 237 * 238 * http://www.apache.org/licenses/LICENSE-2.0 239 * 240 * Unless required by applicable law or agreed to in writing, software 241 * distributed under the License is distributed on an "AS IS" BASIS, 242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 243 * See the License for the specific language governing permissions and 244 * limitations under the License. 245 */function El(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(o=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function da(e){const t={};return e.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[o,s]=r.split("=");
245t[decodeURIComponent(o)]=decodeURIComponent(s)}}),t}function fa(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function Rj(e,t){const n=new Ij(e,t);return n.subscribe.bind(n)}class Ij{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let o;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Nj(t,["next","error","complete"])?o=t:o={next:t,error:n,complete:r},o.next===void 0&&(o.next=Cf),o.error===void 0&&(o.error=Cf),o.complete===void 0&&(o.complete=Cf);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),s}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nj(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Cf(){}/** 246 * @license 247 * Copyright 2021 Google LLC 248 * 249 * Licensed under the Apache License, Version 2.0 (the "License"); 250 * you may not use this file except in compliance with the License. 251 * You may obtain a copy of the License at 252 * 253 * http://www.apache.org/licenses/LICENSE-2.0 254 * 255 * Unless required by applicable law or agreed to in writing, software 256 * distributed under the License is distributed on an "AS IS" BASIS, 257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 258 * See the License for the specific language governing permissions and 259 * limitations under the License. 260 */function Dn(e){return e&&e._delegate?e._delegate:e}class _i{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 261 * @license 262 * Copyright 2019 Google LLC 263 * 264 * Licensed under the Apache License, Version 2.0 (the "License"); 265 * you may not use this file except in compliance with the License. 266 * You may obtain a copy of the License at 267 * 268 * http://www.apache.org/licenses/LICENSE-2.0 269 * 270 * Unless required by applicable law or agreed to in writing, software 271 * distributed under the License is distributed on an "AS IS" BASIS, 272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 273 * See the License for the specific language governing permissions and 274 * limitations under the License. 275 */const No="[DEFAULT]";/** 276 * @license 277 * Copyright 2019 Google LLC 278 * 279 * Licensed under the Apache License, Version 2.0 (the "License"); 280 * you may not use this file except in compliance with the License. 281 * You may obtain a copy of the License at 282 * 283 * http://www.apache.org/licenses/LICENSE-2.0 284 * 285 * Unless required by applicable law or agreed to in writing, software 286 * distributed under the License is distributed on an "AS IS" BASIS, 287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 288 * See the License for the specific language governing permissions and 289 * limitations under the License. 290 */class Oj{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new pj;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&r.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(o)return null;throw s}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(jj(t))try{this.getOrInitializeService({instanceIdentifier:No})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:o});r.resolve(s)}catch{}}}}clearInstance(t=No){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=No){return this.instances.has(t)}getOptions(t=No){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,i]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(s);r===a&&i.resolve(o)}return o}onInit(t,n){var r;const o=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(o))!==null&&r!==void 0?r:new Set;s.add(t),this.onInitCallbacks.set(o,s);const i=this.instances.get(o);return i&&t(i,o),()=>{s.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const o of r)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Aj(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=No){return this.component?this.component.multipleInstances?t:No:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Aj(e){return e===No?void 0:e}function jj(e){return e.instantiationMode==="EAGER"}/** 291 * @license 292 * Copyright 2019 Google LLC 293 * 294 * Licensed under the Apache License, Version 2.0 (the "License");
295 * you may not use this file except in compliance with the License. 296 * You may obtain a copy of the License at 297 * 298 * http://www.apache.org/licenses/LICENSE-2.0 299 * 300 * Unless required by applicable law or agreed to in writing, software 301 * distributed under the License is distributed on an "AS IS" BASIS, 302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 303 * See the License for the specific language governing permissions and 304 * limitations under the License. 305 */class Mj{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Oj(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 306 * @license 307 * Copyright 2017 Google LLC 308 * 309 * Licensed under the Apache License, Version 2.0 (the "License"); 310 * you may not use this file except in compliance with the License. 311 * You may obtain a copy of the License at 312 * 313 * http://www.apache.org/licenses/LICENSE-2.0 314 * 315 * Unless required by applicable law or agreed to in writing, software 316 * distributed under the License is distributed on an "AS IS" BASIS, 317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 318 * See the License for the specific language governing permissions and 319 * limitations under the License. 320 */var pe;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(pe||(pe={}));const Lj={debug:pe.DEBUG,verbose:pe.VERBOSE,info:pe.INFO,warn:pe.WARN,error:pe.ERROR,silent:pe.SILENT},$j=pe.INFO,Dj={[pe.DEBUG]:"log",[pe.VERBOSE]:"log",[pe.INFO]:"info",[pe.WARN]:"warn",[pe.ERROR]:"error"},zj=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),o=Dj[t];if(o)console[o](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class i_{constructor(t){this.name=t,this._logLevel=$j,this._logHandler=zj,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in pe))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Lj[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,pe.DEBUG,...t),this._logHandler(this,pe.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,pe.VERBOSE,...t),this._logHandler(this,pe.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,pe.INFO,...t),this._logHandler(this,pe.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,pe.WARN,...t),this._logHandler(this,pe.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,pe.ERROR,...t),this._logHandler(this,pe.ERROR,...t)}}const Uj=(e,t)=>t.some(n=>e instanceof n);let C0,E0;function Fj(){return C0||(C0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Bj(){return E0||(E0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const a_=new WeakMap,lh=new WeakMap,l_=new WeakMap,Ef=new WeakMap,Ng=new WeakMap;function Vj(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",s),e.removeEventListener("error",i)},s=()=>{n(lo(e.result)),o()},i=()=>{r(e.error),o()};e.addEventListener("success",s),e.addEventListener("error",i)});return t.then(n=>{n instanceof IDBCursor&&a_.set(n,e)}).catch(()=>{}),Ng.set(t,e),t}function Wj(e){if(lh.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",i),e.removeEventListener("abort",i)},s=()=>{n(),o()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",s),e.addEventListener("error",i),e.addEventListener("abort",i)});lh.set(e,t)}let ch={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return lh.get(e);if(t==="objectStoreNames")return e.objectStoreNames||l_.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return lo(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Hj(e){ch=e(ch)}function Gj(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Pf(this),t,...n);return l_.set(r,t.sort?t.sort():[t]),lo(r)}:Bj().includes(e)?function(...t){return e.apply(Pf(this),t),lo(a_.get(this))}:function(...t){return lo(e.apply(Pf(this),t))}}function Kj(e){return typeof e=="function"?Gj(e):(e instanceof IDBTransaction&&Wj(e),Uj(e,Fj())?new Proxy(e,ch):e)}function lo(e){if(e instanceof IDBRequest)return Vj(e);if(Ef.has(e))return Ef.get(e);const t=Kj(e);return t!==e&&(Ef.set(e,t),Ng.set(t,e)),t}const Pf=e=>Ng.get(e);function qj(e,t,{blocked:n,upgrade:r,blocking:o,terminated:s}={}){const i=indexedDB.open(e,t),a=lo(i);return r&&i.addEventListener("upgradeneeded",l=>{r(lo(i.result),l.oldVersion,l.newVersion,lo(i.transaction),l)}),n&&i.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const Qj=["get","getKey","getAll","getAllKeys","count"],Yj=["put","add","delete","clear"],Tf=new Map;function P0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Tf.get(t))return Tf.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Yj.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||Qj.includes(n)))return;const s=async function(i,...a){const l=this.transaction(i,o?"readwrite":"readonly");let c=l.store;
320return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Tf.set(t,s),s}Hj(e=>({...e,get:(t,n,r)=>P0(t,n)||e.get(t,n,r),has:(t,n)=>!!P0(t,n)||e.has(t,n)}));/** 321 * @license 322 * Copyright 2019 Google LLC 323 * 324 * Licensed under the Apache License, Version 2.0 (the "License"); 325 * you may not use this file except in compliance with the License. 326 * You may obtain a copy of the License at 327 * 328 * http://www.apache.org/licenses/LICENSE-2.0 329 * 330 * Unless required by applicable law or agreed to in writing, software 331 * distributed under the License is distributed on an "AS IS" BASIS, 332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 333 * See the License for the specific language governing permissions and 334 * limitations under the License. 335 */class Jj{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Xj(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Xj(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const uh="@firebase/app",T0="0.13.2";/** 336 * @license 337 * Copyright 2019 Google LLC 338 * 339 * Licensed under the Apache License, Version 2.0 (the "License"); 340 * you may not use this file except in compliance with the License. 341 * You may obtain a copy of the License at 342 * 343 * http://www.apache.org/licenses/LICENSE-2.0 344 * 345 * Unless required by applicable law or agreed to in writing, software 346 * distributed under the License is distributed on an "AS IS" BASIS, 347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 348 * See the License for the specific language governing permissions and 349 * limitations under the License. 350 */const ur=new i_("@firebase/app"),Zj="@firebase/app-compat",eM="@firebase/analytics-compat",tM="@firebase/analytics",nM="@firebase/app-check-compat",rM="@firebase/app-check",oM="@firebase/auth",sM="@firebase/auth-compat",iM="@firebase/database",aM="@firebase/data-connect",lM="@firebase/database-compat",cM="@firebase/functions",uM="@firebase/functions-compat",dM="@firebase/installations",fM="@firebase/installations-compat",pM="@firebase/messaging",hM="@firebase/messaging-compat",mM="@firebase/performance",gM="@firebase/performance-compat",vM="@firebase/remote-config",yM="@firebase/remote-config-compat",wM="@firebase/storage",SM="@firebase/storage-compat",bM="@firebase/firestore",xM="@firebase/ai",_M="@firebase/firestore-compat",CM="firebase",EM="11.10.0";/** 351 * @license 352 * Copyright 2019 Google LLC 353 * 354 * Licensed under the Apache License, Version 2.0 (the "License"); 355 * you may not use this file except in compliance with the License. 356 * You may obtain a copy of the License at 357 * 358 * http://www.apache.org/licenses/LICENSE-2.0 359 * 360 * Unless required by applicable law or agreed to in writing, software 361 * distributed under the License is distributed on an "AS IS" BASIS, 362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 363 * See the License for the specific language governing permissions and 364 * limitations under the License. 365 */const dh="[DEFAULT]",PM={[uh]:"fire-core",[Zj]:"fire-core-compat",[tM]:"fire-analytics",[eM]:"fire-analytics-compat",[rM]:"fire-app-check",[nM]:"fire-app-check-compat",[oM]:"fire-auth",[sM]:"fire-auth-compat",[iM]:"fire-rtdb",[aM]:"fire-data-connect",[lM]:"fire-rtdb-compat",[cM]:"fire-fn",[uM]:"fire-fn-compat",[dM]:"fire-iid",[fM]:"fire-iid-compat",[pM]:"fire-fcm",[hM]:"fire-fcm-compat",[mM]:"fire-perf",[gM]:"fire-perf-compat",[vM]:"fire-rc",[yM]:"fire-rc-compat",[wM]:"fire-gcs",[SM]:"fire-gcs-compat",[bM]:"fire-fst",[_M]:"fire-fst-compat",[xM]:"fire-vertex","fire-js":"fire-js",[CM]:"fire-js-all"};/** 366 * @license 367 * Copyright 2019 Google LLC 368 * 369 * Licensed under the Apache License, Version 2.0 (the "License"); 370 * you may not use this file except in compliance with the License. 371 * You may obtain a copy of the License at 372 * 373 * http://www.apache.org/licenses/LICENSE-2.0 374 * 375 * Unless required by applicable law or agreed to in writing, software 376 * distributed under the License is distributed on an "AS IS" BASIS, 377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 378 * See the License for the specific language governing permissions and 379 * limitations under the License. 380 */const fu=new Map,TM=new Map,fh=new Map;function k0(e,t){try{e.container.addComponent(t)}catch(n){ur.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Ya(e){const t=e.name;if(fh.has(t))return ur.debug(`There were multiple attempts to register component ${t}.`),!1;fh.set(t,e);for(const n of fu.values())k0(n,e);for(const n of TM.values())k0(n,e);return!0}function c_(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Ut(e){return e==null?!1:e.settings!==void 0}/** 381 * @license 382 * Copyright 2019 Google LLC 383 * 384 * Licensed under the Apache License, Version 2.0 (the "License");
385 * you may not use this file except in compliance with the License. 386 * You may obtain a copy of the License at 387 * 388 * http://www.apache.org/licenses/LICENSE-2.0 389 * 390 * Unless required by applicable law or agreed to in writing, software 391 * distributed under the License is distributed on an "AS IS" BASIS, 392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 393 * See the License for the specific language governing permissions and 394 * limitations under the License. 395 */const kM={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
395d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},co=new Cl("app","Firebase",kM);/** 396 * @license 397 * Copyright 2019 Google LLC 398 * 399 * Licensed under the Apache License, Version 2.0 (the "License"); 400 * you may not use this file except in compliance with the License. 401 * You may obtain a copy of the License at 402 * 403 * http://www.apache.org/licenses/LICENSE-2.0 404 * 405 * Unless required by applicable law or agreed to in writing, software 406 * distributed under the License is distributed on an "AS IS" BASIS, 407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 408 * See the License for the specific language governing permissions and 409 * limitations under the License. 410 */class RM{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new _i("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw co.create("app-deleted",{appName:this._name})}}/** 411 * @license 412 * Copyright 2019 Google LLC 413 * 414 * Licensed under the Apache License, Version 2.0 (the "License"); 415 * you may not use this file except in compliance with the License. 416 * You may obtain a copy of the License at 417 * 418 * http://www.apache.org/licenses/LICENSE-2.0 419 * 420 * Unless required by applicable law or agreed to in writing, software 421 * distributed under the License is distributed on an "AS IS" BASIS, 422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 423 * See the License for the specific language governing permissions and 424 * limitations under the License. 425 */const Pl=EM;function u_(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:dh,automaticDataCollectionEnabled:!0},t),o=r.name;if(typeof o!="string"||!o)throw co.create("bad-app-name",{appName:String(o)});if(n||(n=o_()),!n)throw co.create("no-options");const s=fu.get(o);if(s){if(xi(n,s.options)&&xi(r,s.config))return s;throw co.create("duplicate-app",{appName:o})}const i=new Mj(o);for(const l of fh.values())i.addComponent(l);const a=new RM(n,r,i);return fu.set(o,a),a}function IM(e=dh){const t=fu.get(e);if(!t&&e===dh&&o_())return u_();if(!t)throw co.create("no-app",{appName:e});return t}function Gs(e,t,n){var r;let o=(r=PM[e])!==null&&r!==void 0?r:e;n&&(o+=`-${n}`);const s=o.match(/\s|\//),i=t.match(/\s|\//);if(s||i){const a=[`Unable to register library "${o}" with version "${t}":`];s&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),s&&i&&a.push("and"),i&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ur.warn(a.join(" "));return}Ya(new _i(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/** 426 * @license 427 * Copyright 2021 Google LLC 428 * 429 * Licensed under the Apache License, Version 2.0 (the "License"); 430 * you may not use this file except in compliance with the License. 431 * You may obtain a copy of the License at 432 * 433 * http://www.apache.org/licenses/LICENSE-2.0 434 * 435 * Unless required by applicable law or agreed to in writing, softw
435are 436 * distributed under the License is distributed on an "AS IS" BASIS, 437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 438 * See the License for the specific language governing permissions and 439 * limitations under the License. 440 */const NM="firebase-heartbeat-database",OM=1,Ja="firebase-heartbeat-store";let kf=null;function d_(){return kf||(kf=qj(NM,OM,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ja)}catch(n){console.warn(n)}}}}).catch(e=>{throw co.create("idb-open",{originalErrorMessage:e.message})})),kf}async function AM(e){try{const n=(await d_()).transaction(Ja),r=await n.objectStore(Ja).get(f_(e));return await n.done,r}catch(t){if(t instanceof _o)ur.warn(t.message);else{const n=co.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});ur.warn(n.message)}}}async function R0(e,t){try{const r=(await d_()).transaction(Ja,"readwrite");await r.objectStore(Ja).put(t,f_(e)),await r.done}catch(n){if(n instanceof _o)ur.warn(n.message);else{const r=co.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});ur.warn(r.message)}}}function f_(e){return`${e.name}!${e.options.appId}`}/** 441 * @license 442 * Copyright 2021 Google LLC 443 * 444 * Licensed under the Apache License, Version 2.0 (the "License"); 445 * you may not use this file except in compliance with the License. 446 * You may obtain a copy of the License at 447 * 448 * http://www.apache.org/licenses/LICENSE-2.0 449 * 450 * Unless required by applicable law or agreed to in writing, software 451 * distributed under the License is distributed on an "AS IS" BASIS, 452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 453 * See the License for the specific language governing permissions and 454 * limitations under the License. 455 */const jM=1024,MM=30;class LM{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new DM(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=I0();if(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(i=>i.date===s))return;if(this._heartbeatsCache.heartbeats.push({date:s,agent:o}),this._heartbeatsCache.heartbeats.length>MM){const i=zM(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){ur.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=I0(),{heartbeatsToSend:r,unsentEntries:o}=$M(this._heartbeatsCache.heartbeats),s=n_(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return ur.warn(n),""}}}function I0(){return new Date().toISOString().substring(0,10)}function $M(e,t=jM){const n=[];let r=e.slice();for(const o of e){const s=n.find(i=>i.agent===o.agent);if(s){if(s.dates.push(o.date),N0(n)>t){s.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),N0(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class DM{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return _j()?Cj().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await AM(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return R0(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return R0(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function N0(e){return n_(JSON.stringify({version:2,heartbeats:e})).length}function zM(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}/** 456 * @license 457 * Copyright 2019 Google LLC 458 * 459 * Licensed under the Apache License, Version 2.0 (the "License");
460 * you may not use this file except in compliance with the License. 461 * You may obtain a copy of the License at 462 * 463 * http://www.apache.org/licenses/LICENSE-2.0 464 * 465 * Unless required by applicable law or agreed to in writing, software 466 * distributed under the License is distributed on an "AS IS" BASIS, 467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 468 * See the License for the specific language governing permissions and 469 * limitations under the License. 470 */function UM(e){Ya(new _i("platform-logger",t=>new Jj(t),"PRIVATE")),Ya(new _i("heartbeat",t=>new LM(t),"PRIVATE")),Gs(uh,T0,e),Gs(uh,T0,"esm2017"),Gs("fire-js","")}UM("");var FM="firebase",BM="11.10.0";/** 471 * @license 472 * Copyright 2020 Google LLC 473 * 474 * Licensed under the Apache License, Version 2.0 (the "License"); 475 * you may not use this file except in compliance with the License. 476 * You may obtain a copy of the License at 477 * 478 * http://www.apache.org/licenses/LICENSE-2.0 479 * 480 * Unless required by applicable law or agreed to in writing, software 481 * distributed under the License is distributed on an "AS IS" BASIS, 482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 483 * See the License for the specific language governing permissions and 484 * limitations under the License. 485 */Gs(FM,BM,"app");function p_(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const VM=p_,h_=new Cl("auth","Firebase",p_());/** 486 * @license 487 * Copyright 2020 Google LLC 488 * 489 * Licensed under the Apache License, Version 2.0 (the "License"); 490 * you may not use this file except in compliance with the License. 491 * You may obtain a copy of the License at 492 * 493 * http://www.apache.org/licenses/LICENSE-2.0 494 * 495 * Unless required by applicable law or agreed to in writing, software 496 * distributed under the License is distributed on an "AS IS" BASIS, 497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 498 * See the License for the specific language governing permissions and 499 * limitations under the License. 500 */const pu=new i_("@firebase/auth");function WM(e,...t){pu.logLevel<=pe.WARN&&pu.warn(`Auth (${Pl}): ${e}`,...t)}function Cc(e,...t){pu.logLevel<=pe.ERROR&&pu.error(`Auth (${Pl}): ${e}`,...t)}/** 501 * @license 502 * Copyright 2020 Google LLC 503 * 504 * Licensed under the Apache License, Version 2.0 (the "License"); 505 * you may not use this file except in compliance with the License. 506 * You may obtain a copy of the License at 507 * 508 * http://www.apache.org/licenses/LICENSE-2.0 509 * 510 * Unless required by applicable law or agreed to in writing, software 511 * distributed under the License is distributed on an "AS IS" BASIS, 512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 513 * See the License for the specific language governing permissions and 514 * limitations under the License. 515 */function Gt(e,...t){throw Ag(e,...t)}function dn(e,...t){return Ag(e,...t)}function Og(e,t,n){const r=Object.assign(Object.assign({},VM()),{[t]:n});return new Cl("auth","Firebase",r).create(t,{appName:e.name})}function tr(e){return Og(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function HM(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&Gt(e,"argument-error"),Og(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Ag(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return h_.create(e,...t)}function X(e,t,...n){if(!e)throw Ag(t,...n)}function Jn(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Cc(t),new Error(t)}function dr(e,t){e||Jn(t)}/** 516 * @license 517 * Copyright 2020 Google LLC 518 * 519 * Licensed under the Apache License, Version 2.0 (the "License"); 520 * you may not use this file except in compliance with the License. 521 * You may obtain a copy of the License at 522 * 523 * http://www.apache.org/licenses/LICENSE-2.0 524 * 525 * Unless required by applicable law or agreed to in writing, softw
525are 526 * distributed under the License is distributed on an "AS IS" BASIS, 527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 528 * See the License for the specific language governing permissions and 529 * limitations under the License. 530 */function ph(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function GM(){return O0()==="http:"||O0()==="https:"}function O0(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/** 531 * @license 532 * Copyright 2020 Google LLC 533 * 534 * Licensed under the Apache License, Version 2.0 (the "License"); 535 * you may not use this file except in compliance with the License. 536 * You may obtain a copy of the License at 537 * 538 * http://www.apache.org/licenses/LICENSE-2.0 539 * 540 * Unless required by applicable law or agreed to in writing, software 541 * distributed under the License is distributed on an "AS IS" BASIS, 542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 543 * See the License for the specific language governing permissions and 544 * limitations under the License. 545 */function KM(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(GM()||Sj()||"connection"in navigator)?navigator.onLine:!0}function qM(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** 546 * @license 547 * Copyright 2020 Google LLC 548 * 549 * Licensed under the Apache License, Version 2.0 (the "License"); 550 * you may not use this file except in compliance with the License. 551 * You may obtain a copy of the License at 552 * 553 * http://www.apache.org/licenses/LICENSE-2.0 554 * 555 * Unless required by applicable law or agreed to in writing, software 556 * distributed under the License is distributed on an "AS IS" BASIS, 557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 558 * See the License for the specific language governing permissions and 559 * limitations under the License. 560 */class Tl{constructor(t,n){this.shortDelay=t,this.longDelay=n,dr(n>t,"Short delay should be less than long delay!"),this.isMobile=yj()||bj()}get(){return KM()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 561 * @license 562 * Copyright 2020 Google LLC 563 * 564 * Licensed under the Apache License, Version 2.0 (the "License"); 565 * you may not use this file except in compliance with the License. 566 * You may obtain a copy of the License at 567 * 568 * http://www.apache.org/licenses/LICENSE-2.0 569 * 570 * Unless required by applicable law or agreed to in writing, software 571 * distributed under the License is distributed on an "AS IS" BASIS, 572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 573 * See the License for the specific language governing permissions and 574 * limitations under the License. 575 */function jg(e,t){dr(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/** 576 * @license 577 * Copyright 2020 Google LLC 578 * 579 * Licensed under the Apache License, Version 2.0 (the "License"); 580 * you may not use this file except in compliance with the License. 581 * You may obtain a copy of the License at 582 * 583 * http://www.apache.org/licenses/LICENSE-2.0 584 * 585 * Unless required by applicable law or agreed to in writing, software 586 * distributed under the License is distributed on an "AS IS" BASIS, 587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 588 * See the License for the specific language governing permissions and 589 * limitations under the License. 590 */class m_{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Jn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Jn("Could not find Headers implementation, make sure you call FetchProvi
590der.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Jn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 591 * @license 592 * Copyright 2020 Google LLC 593 * 594 * Licensed under the Apache License, Version 2.0 (the "License"); 595 * you may not use this file except in compliance with the License. 596 * You may obtain a copy of the License at 597 * 598 * http://www.apache.org/licenses/LICENSE-2.0 599 * 600 * Unless required by applicable law or agreed to in writing, software 601 * distributed under the License is distributed on an "AS IS" BASIS, 602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 603 * See the License for the specific language governing permissions and 604 * limitations under the License. 605 */const QM={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 606 * @license 607 * Copyright 2020 Google LLC 608 * 609 * Licensed under the Apache License, Version 2.0 (the "License"); 610 * you may not use this file except in compliance with the License. 611 * You may obtain a copy of the License at 612 * 613 * http://www.apache.org/licenses/LICENSE-2.0 614 * 615 * Unless required by applicable law or agreed to in writing, software 616 * distributed under the License is distributed on an "AS IS" BASIS, 617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 618 * See the License for the specific language governing permissions and 619 * limitations under the License. 620 */const YM=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],JM=new Tl(3e4,6e4);function br(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function zn(e,t,n,r,o={}){return g_(e,o,async()=>{let s={},i={};r&&(t==="GET"?i=r:s={body:JSON.stringify(r)});const a=El(Object.assign({key:e.config.apiKey},i)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const c=Object.assign({method:t,headers:l},s);return wj()||(c.referrerPolicy="no-referrer"),e.emulatorConfig&&xd(e.emulatorConfig.host)&&(c.credentials="include"),m_.fetch()(await v_(e,e.config.apiHost,n,a),c)})}async function g_(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},QM),t);try{const o=new ZM(e),s=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const i=await s.json();if("needConfirmation"in i)throw sc(e,"account-exists-with-different-credential",i);if(s.ok&&!("errorMessage"in i))return i;{const a=s.ok?i.errorMessage:i.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw sc(e,"credential-already-in-use",i);if(l==="EMAIL_EXISTS")throw sc(e,"email-already-in-use",i);if(l==="USER_DISABLED")throw sc(e,"user-disabled",i);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw Og(e,u,c);Gt(e,u)}}catch(o){if(o instanceof _o)throw o;Gt(e,"network-request-failed",{message:String(o)})}}async function kl(e,t,n,r,o={}){const s=await zn(e,t,n,r,o);return"mfaPendingCredential"in s&&Gt(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function v_(e,t,n,r){const o=`${t}${n}?${r}`,s=e,i=s.config.emulator?jg(e.config,o):`${e.config.apiScheme}://${o}`;return YM.includes(n)&&(await s._persistenceManagerAvailable,s._getPersistenceType()==="COOKIE")?s._getPersistence()._getFinalTarget(i).toString():i}function XM(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class ZM{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(dn(this.auth,"network-request-failed")),JM.get())})}}
620function sc(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=dn(e,t,r);return o.customData._tokenResponse=n,o}function A0(e){return e!==void 0&&e.enterprise!==void 0}class e3{constructor(t){if(this.siteKey="",this.recaptchaEnforcementState=[],t.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=t.recaptchaEnforcementState}getProviderEnforcementState(t){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===t)return XM(n.enforcementState);return null}isProviderEnabled(t){return this.getProviderEnforcementState(t)==="ENFORCE"||this.getProviderEnforcementState(t)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function t3(e,t){return zn(e,"GET","/v2/recaptchaConfig",br(e,t))}/** 621 * @license 622 * Copyright 2020 Google LLC 623 * 624 * Licensed under the Apache License, Version 2.0 (the "License"); 625 * you may not use this file except in compliance with the License. 626 * You may obtain a copy of the License at 627 * 628 * http://www.apache.org/licenses/LICENSE-2.0 629 * 630 * Unless required by applicable law or agreed to in writing, software 631 * distributed under the License is distributed on an "AS IS" BASIS, 632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 633 * See the License for the specific language governing permissions and 634 * limitations under the License. 635 */async function n3(e,t){return zn(e,"POST","/v1/accounts:delete",t)}async function hu(e,t){return zn(e,"POST","/v1/accounts:lookup",t)}/** 636 * @license 637 * Copyright 2020 Google LLC 638 * 639 * Licensed under the Apache License, Version 2.0 (the "License"); 640 * you may not use this file except in compliance with the License. 641 * You may obtain a copy of the License at 642 * 643 * http://www.apache.org/licenses/LICENSE-2.0 644 * 645 * Unless required by applicable law or agreed to in writing, software 646 * distributed under the License is distributed on an "AS IS" BASIS, 647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 648 * See the License for the specific language governing permissions and 649 * limitations under the License. 650 */function Ca(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function r3(e,t=!1){const n=Dn(e),r=await n.getIdToken(t),o=Mg(r);X(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const s=typeof o.firebase=="object"?o.firebase:void 0,i=s==null?void 0:s.sign_in_provider;return{claims:o,token:r,authTime:Ca(Rf(o.auth_time)),issuedAtTime:Ca(Rf(o.iat)),expirationTime:Ca(Rf(o.exp)),signInProvider:i||null,signInSecondFactor:(s==null?void 0:s.sign_in_second_factor)||null}}function Rf(e){return Number(e)*1e3}function Mg(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Cc("JWT malformed, contained fewer than 3 sections"),null;try{const o=r_(n);return o?JSON.parse(o):(Cc("Failed to decode base64 JWT payload"),null)}catch(o){return Cc("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function j0(e){const t=Mg(e);return X(t,"internal-error"),X(typeof t.exp<"u","internal-error"),X(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** 651 * @license 652 * Copyright 2020 Google LLC 653 * 654 * Licensed under the Apache License, Version 2.0 (the "License"); 655 * you may not use this file except in compliance with the License. 656 * You may obtain a copy of the License at 657 * 658 * http://www.apache.org/licenses/LICENSE-2.0 659 * 660 * Unless required by applicable law or agreed to in writing, software 661 * distributed under the License is distributed on an "AS IS" BASIS, 662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 663 * See the License for the specific language governing permissions and 664 * limitations under the License. 665 */async function Ci(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof _o&&o3(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function o3({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** 666 * @license 667 * Copyright 2020 Google LLC 668 * 669 * Licensed under the Apache License, Version 2.0 (the "License");
670 * you may not use this file except in compliance with the License. 671 * You may obtain a copy of the License at 672 * 673 * http://www.apache.org/licenses/LICENSE-2.0 674 * 675 * Unless required by applicable law or agreed to in writing, software 676 * distributed under the License is distributed on an "AS IS" BASIS, 677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 678 * See the License for the specific language governing permissions and 679 * limitations under the License. 680 */class s3{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const o=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,o)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 681 * @license 682 * Copyright 2020 Google LLC 683 * 684 * Licensed under the Apache License, Version 2.0 (the "License"); 685 * you may not use this file except in compliance with the License. 686 * You may obtain a copy of the License at 687 * 688 * http://www.apache.org/licenses/LICENSE-2.0 689 * 690 * Unless required by applicable law or agreed to in writing, software 691 * distributed under the License is distributed on an "AS IS" BASIS, 692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 693 * See the License for the specific language governing permissions and 694 * limitations under the License. 695 */class hh{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ca(this.lastLoginAt),this.creationTime=Ca(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 696 * @license 697 * Copyright 2019 Google LLC 698 * 699 * Licensed under the Apache License, Version 2.0 (the "License"); 700 * you may not use this file except in compliance with the License. 701 * You may obtain a copy of the License at 702 * 703 * http://www.apache.org/licenses/LICENSE-2.0 704 * 705 * Unless required by applicable law or agreed to in writing, software 706 * distributed under the License is distributed on an "AS IS" BASIS, 707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 708 * See the License for the specific language governing permissions and 709 * limitations under the License. 710 */async function mu(e){var t;const n=e.auth,r=await e.getIdToken(),o=await Ci(e,hu(n,{idToken:r}));X(o==null?void 0:o.users.length,n,"internal-error");const s=o.users[0];e._notifyReloadListener(s);const i=!((t=s.providerUserInfo)===null||t===void 0)&&t.length?y_(s.providerUserInfo):[],a=a3(e.providerData,i),l=e.isAnonymous,c=!(e.email&&s.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new hh(s.createdAt,s.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function i3(e){const t=Dn(e);await mu(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function a3(e,t){return[...e.filter(r=>!t.some(o=>o.providerId===r.providerId)),...t]}function y_(e){return e.map(t=>{var{providerId:n}=t,r=fl(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** 711 * @license 712 * Copyright 2020 Google LLC 713 * 714 * Licensed under the Apache License, Version 2.0 (the "License"); 715 * you may not use this file except in compliance with the License. 716 * You may obtain a copy of the License at 717 * 718 * http://www.apache.org/licenses/LICENSE-2.0 719 * 720 * Unless required by applicable law or agreed to in writing, softw
720are 721 * distributed under the License is distributed on an "AS IS" BASIS, 722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 723 * See the License for the specific language governing permissions and 724 * limitations under the License. 725 */async function l3(e,t){const n=await g_(e,{},async()=>{const r=El({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:s}=e.config,i=await v_(e,o,"/v1/token",`key=${s}`),a=await e._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:a,body:r};return e.emulatorConfig&&xd(e.emulatorConfig.host)&&(l.credentials="include"),m_.fetch()(i,l)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function c3(e,t){return zn(e,"POST","/v2/accounts:revokeToken",br(e,t))}/** 726 * @license 727 * Copyright 2020 Google LLC 728 * 729 * Licensed under the Apache License, Version 2.0 (the "License"); 730 * you may not use this file except in compliance with the License. 731 * You may obtain a copy of the License at 732 * 733 * http://www.apache.org/licenses/LICENSE-2.0 734 * 735 * Unless required by applicable law or agreed to in writing, software 736 * distributed under the License is distributed on an "AS IS" BASIS, 737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 738 * See the License for the specific language governing permissions and 739 * limitations under the License. 740 */class Ks{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){X(t.idToken,"internal-error"),X(typeof t.idToken<"u","internal-error"),X(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):j0(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){X(t.length!==0,"internal-error");const n=j0(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(X(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:o,expiresIn:s}=await l3(t,n);this.updateTokensAndExpiration(r,o,Number(s))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:o,expirationTime:s}=n,i=new Ks;return r&&(X(typeof r=="string","internal-error",{appName:t}),i.refreshToken=r),o&&(X(typeof o=="string","internal-error",{appName:t}),i.accessToken=o),s&&(X(typeof s=="number","internal-error",{appName:t}),i.expirationTime=s),i}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Ks,this.toJSON())}_performRefresh(){return Jn("not implemented")}}/** 741 * @license 742 * Copyright 2020 Google LLC 743 * 744 * Licensed under the Apache License, Version 2.0 (the "License"); 745 * you may not use this file except in compliance with the License. 746 * You may obtain a copy of the License at 747 * 748 * http://www.apache.org/licenses/LICENSE-2.0 749 * 750 * Unless required by applicable law or agreed to in writing, software 751 * distributed under the License is distributed on an "AS IS" BASIS, 752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 753 * See the License for the specific language governing permissions and 754 * limitations under the License. 755 */function Tr(e,t){X(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class an{constructor(t){var{uid:n,auth:r,stsTokenManager:o}=t,s=fl(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new s3(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=o,this.accessToken=o.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new hh(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(t){const n=await Ci(this,this.stsTokenManager.getToken(this.auth,t));return X(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return r3(this,t)}reload(){return i3(this)}_assign(t){this!==t&&(X(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new an(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){X(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await mu(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Ut(this.auth.app))return Promise.reject(tr(this.auth));const t=await this.getIdToken();return await Ci(this,n3(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
755nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,o,s,i,a,l,c,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,p=(o=n.email)!==null&&o!==void 0?o:void 0,h=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,v=(i=n.photoURL)!==null&&i!==void 0?i:void 0,g=(a=n.tenantId)!==null&&a!==void 0?a:void 0,b=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,S=(c=n.createdAt)!==null&&c!==void 0?c:void 0,y=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:w,emailVerified:x,isAnonymous:_,providerData:P,stsTokenManager:T}=n;X(w&&T,t,"internal-error");const E=Ks.fromJSON(this.name,T);X(typeof w=="string",t,"internal-error"),Tr(d,t.name),Tr(p,t.name),X(typeof x=="boolean",t,"internal-error"),X(typeof _=="boolean",t,"internal-error"),Tr(h,t.name),Tr(v,t.name),Tr(g,t.name),Tr(b,t.name),Tr(S,t.name),Tr(y,t.name);const I=new an({uid:w,auth:t,email:p,emailVerified:x,displayName:d,isAnonymous:_,photoURL:v,phoneNumber:h,tenantId:g,stsTokenManager:E,createdAt:S,lastLoginAt:y});return P&&Array.isArray(P)&&(I.providerData=P.map(N=>Object.assign({},N))),b&&(I._redirectEventId=b),I}static async _fromIdTokenResponse(t,n,r=!1){const o=new Ks;o.updateFromServerResponse(n);const s=new an({uid:n.localId,auth:t,stsTokenManager:o,isAnonymous:r});return await mu(s),s}static async _fromGetAccountInfoResponse(t,n,r){const o=n.users[0];X(o.localId!==void 0,"internal-error");const s=o.providerUserInfo!==void 0?y_(o.providerUserInfo):[],i=!(o.email&&o.passwordHash)&&!(s!=null&&s.length),a=new Ks;a.updateFromIdToken(r);const l=new an({uid:o.localId,auth:t,stsTokenManager:a,isAnonymous:i}),c={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new hh(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(s!=null&&s.length)};return Object.assign(l,c),l}}/** 756 * @license 757 * Copyright 2020 Google LLC 758 * 759 * Licensed under the Apache License, Version 2.0 (the "License"); 760 * you may not use this file except in compliance with the License. 761 * You may obtain a copy of the License at 762 * 763 * http://www.apache.org/licenses/LICENSE-2.0 764 * 765 * Unless required by applicable law or agreed to in writing, software 766 * distributed under the License is distributed on an "AS IS" BASIS, 767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 768 * See the License for the specific language governing permissions and 769 * limitations under the License. 770 */const M0=new Map;function Xn(e){dr(e instanceof Function,"Expected a class definition");let t=M0.get(e);return t?(dr(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,M0.set(e,t),t)}/** 771 * @license 772 * Copyright 2019 Google LLC 773 * 774 * Licensed under the Apache License, Version 2.0 (the "License"); 775 * you may not use this file except in compliance with the License. 776 * You may obtain a copy of the License at 777 * 778 * http://www.apache.org/licenses/LICENSE-2.0 779 * 780 * Unless required by applicable law or agreed to in writing, software 781 * distributed under the License is distributed on an "AS IS" BASIS, 782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 783 * See the License for the specific language governing permissions and 784 * limitations under the License. 785 */class w_{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}w_.type="NONE";const L0=w_;/** 786 * @license 787 * Copyright 2019 Google LLC 788 * 789 * Licensed under the Apache License, Version 2.0 (the "License");
790 * you may not use this file except in compliance with the License. 791 * You may obtain a copy of the License at 792 * 793 * http://www.apache.org/licenses/LICENSE-2.0 794 * 795 * Unless required by applicable law or agreed to in writing, software 796 * distributed under the License is distributed on an "AS IS" BASIS, 797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 798 * See the License for the specific language governing permissions and 799 * limitations under the License. 800 */function Ec(e,t,n){return`firebase:${e}:${t}:${n}`}class qs{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:o,name:s}=this.auth;this.fullUserKey=Ec(this.userKey,o.apiKey,s),this.fullPersistenceKey=Ec("persistence",o.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const n=await hu(this.auth,{idToken:t}).catch(()=>{});return n?an._fromGetAccountInfoResponse(this.auth,n,t):null}return an._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new qs(Xn(L0),t,r);const o=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let s=o[0]||Xn(L0);const i=Ec(r,t.config.apiKey,t.name);let a=null;for(const c of n)try{const u=await c._get(i);if(u){let d;if(typeof u=="string"){const p=await hu(t,{idToken:u}).catch(()=>{});if(!p)break;d=await an._fromGetAccountInfoResponse(t,p,u)}else d=an._fromJSON(t,u);c!==s&&(a=d),s=c;break}}catch{}const l=o.filter(c=>c._shouldAllowMigration);return!s._shouldAllowMigration||!l.length?new qs(s,t,r):(s=l[0],a&&await s._set(i,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==s)try{await c._remove(i)}catch{}})),new qs(s,t,r))}}/** 801 * @license 802 * Copyright 2020 Google LLC 803 * 804 * Licensed under the Apache License, Version 2.0 (the "License"); 805 * you may not use this file except in compliance with the License. 806 * You may obtain a copy of the License at 807 * 808 * http://www.apache.org/licenses/LICENSE-2.0 809 * 810 * Unless required by applicable law or agreed to in writing, software 811 * distributed under the License is distributed on an "AS IS" BASIS, 812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 813 * See the License for the specific language governing permissions and 814 * limitations under the License. 815 */function $0(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(__(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(S_(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(E_(t))return"Blackberry";if(P_(t))return"Webos";if(b_(t))return"Safari";if((t.includes("chrome/")||x_(t))&&!t.includes("edge/"))return"Chrome";if(C_(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function S_(e=ct()){return/firefox\//i.test(e)}function b_(e=ct()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function x_(e=ct()){return/crios\//i.test(e)}function __(e=ct()){return/iemobile/i.test(e)}function C_(e=ct()){return/android/i.test(e)}function E_(e=ct()){return/blackberry/i.test(e)}function P_(e=ct()){return/webos/i.test(e)}function Lg(e=ct()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function u3(e=ct()){var t;return Lg(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function d3(){return xj()&&document.documentMode===10}function T_(e=ct()){return Lg(e)||C_(e)||P_(e)||E_(e)||/windows phone/i.test(e)||__(e)}/** 816 * @license 817 * Copyright 2020 Google LLC 818 * 819 * Licensed under the Apache License, Version 2.0 (the "License");
820 * you may not use this file except in compliance with the License. 821 * You may obtain a copy of the License at 822 * 823 * http://www.apache.org/licenses/LICENSE-2.0 824 * 825 * Unless required by applicable law or agreed to in writing, software 826 * distributed under the License is distributed on an "AS IS" BASIS, 827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 828 * See the License for the specific language governing permissions and 829 * limitations under the License. 830 */function k_(e,t=[]){let n;switch(e){case"Browser":n=$0(ct());break;case"Worker":n=`${$0(ct())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Pl}/${r}`}/** 831 * @license 832 * Copyright 2022 Google LLC 833 * 834 * Licensed under the Apache License, Version 2.0 (the "License"); 835 * you may not use this file except in compliance with the License. 836 * You may obtain a copy of the License at 837 * 838 * http://www.apache.org/licenses/LICENSE-2.0 839 * 840 * Unless required by applicable law or agreed to in writing, software 841 * distributed under the License is distributed on an "AS IS" BASIS, 842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 843 * See the License for the specific language governing permissions and 844 * limitations under the License. 845 */class f3{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=s=>new Promise((i,a)=>{try{const l=t(s);i(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const o of n)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** 846 * @license 847 * Copyright 2023 Google LLC 848 * 849 * Licensed under the Apache License, Version 2.0 (the "License"); 850 * you may not use this file except in compliance with the License. 851 * You may obtain a copy of the License at 852 * 853 * http://www.apache.org/licenses/LICENSE-2.0 854 * 855 * Unless required by applicable law or agreed to in writing, software 856 * distributed under the License is distributed on an "AS IS" BASIS, 857 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 858 * See the License for the specific language governing permissions and 859 * limitations under the License. 860 */async function p3(e,t={}){return zn(e,"GET","/v2/passwordPolicy",br(e,t))}/** 861 * @license 862 * Copyright 2023 Google LLC 863 * 864 * Licensed under the Apache License, Version 2.0 (the "License"); 865 * you may not use this file except in compliance with the License. 866 * You may obtain a copy of the License at 867 * 868 * http://www.apache.org/licenses/LICENSE-2.0 869 * 870 * Unless required by applicable law or agreed to in writing, software 871 * distributed under the License is distributed on an "AS IS" BASIS, 872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 873 * See the License for the specific language governing permissions and 874 * limitations under the License. 875 */const h3=6;class m3{constructor(t){var n,r,o,s;const i=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=i.minPasswordLength)!==null&&n!==void 0?n:h3,i.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=i.maxPasswordLength),i.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=i.containsLowercaseCharacter),i.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=i.containsUppercaseCharacter),i.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=i.containsNumericCharacter),i.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=i.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(s=t.forceUpgradeOnSignin)!==null&&s!==void 0?s:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,o,s,i,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&
875(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(o=l.containsLowercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(s=l.containsUppercaseLetter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(i=l.containsNumericCharacter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),o&&(n.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let o=0;o<t.length;o++)r=t.charAt(o),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,o,s){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=s))}}/** 876 * @license 877 * Copyright 2020 Google LLC 878 * 879 * Licensed under the Apache License, Version 2.0 (the "License"); 880 * you may not use this file except in compliance with the License. 881 * You may obtain a copy of the License at 882 * 883 * http://www.apache.org/licenses/LICENSE-2.0 884 * 885 * Unless required by applicable law or agreed to in writing, software 886 * distributed under the License is distributed on an "AS IS" BASIS, 887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 888 * See the License for the specific language governing permissions and 889 * limitations under the License. 890 */class g3{constructor(t,n,r,o){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new D0(this),this.idTokenSubscription=new D0(this),this.beforeStateQueue=new f3(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=h_,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s)}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=Xn(n)),this._initializationPromise=this.queue(async()=>{var r,o,s;if(!this._deleted&&(this.persistenceManager=await qs.create(this,t),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((o=this._popupRedirectResolver)===null||o===void 0)&&o._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((s=this.currentUser)===null||s===void 0?void 0:s.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await hu(this,{idToken:t}),r=await an._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Ut(this.app)){const i=this.app.settings.authIdToken;return i?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(i).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let o=r,s=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const i=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=o==null?void 0:o._redirectEventId,l=await this.tryRedirectSignIn(t);(!i||i===a)&&(l!=null&&l.user)&&(o=l.user,s=!0)}if(!o)return this.directlySetCurrentUser(null);
890if(!o._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(o)}catch(i){o=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(i))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return X(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await mu(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=qM()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Ut(this.app))return Promise.reject(tr(this));const n=t?Dn(t):null;return n&&X(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&X(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Ut(this.app)?Promise.reject(tr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Ut(this.app)?Promise.reject(tr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Xn(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await p3(this),n=new m3(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new Cl("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await c3(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&Xn(t)||this._popupRedirectResolver;X(n,this,"argument-error"),this.redirectPersistenceManager=await qs.create(this,[Xn(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,o){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n);let i=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(X(a,this,"internal-error"),a.then(()=>{i||s(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,o);return()=>{i=!0,l()}}else{const l=t.addObserver(n);return()=>{i=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return X(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=k_(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const o=await this._getAppCheckToken();return o&&(n["X-Firebase-AppCheck"]=o),n}async _getAppCheckToken(){var t;if(Ut(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&WM(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function xr(e){return Dn(e)}class D0{constructor(t){this.auth=t,this.observer=null,this.addObserver=Rj(n=>this.observer=n)}get next(){return X(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 891 * @license 892 * Copyright 2020 Google LLC 893 * 894 * Licensed under the Apache License, Version 2.0 (the "License");
895 * you may not use this file except in compliance with the License. 896 * You may obtain a copy of the License at 897 * 898 * http://www.apache.org/licenses/LICENSE-2.0 899 * 900 * Unless required by applicable law or agreed to in writing, software 901 * distributed under the License is distributed on an "AS IS" BASIS, 902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 903 * See the License for the specific language governing permissions and 904 * limitations under the License. 905 */let _d={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function v3(e){_d=e}function R_(e){return _d.loadJS(e)}function y3(){return _d.recaptchaEnterpriseScript}function w3(){return _d.gapiScript}function S3(e){return`__${e}${Math.floor(Math.random()*1e6)}`}class b3{constructor(){this.enterprise=new x3}ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}class x3{ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}const _3="recaptcha-enterprise",I_="NO_RECAPTCHA";class C3{constructor(t){this.type=_3,this.auth=xr(t)}async verify(t="verify",n=!1){async function r(s){if(!n){if(s.tenantId==null&&s._agentRecaptchaConfig!=null)return s._agentRecaptchaConfig.siteKey;if(s.tenantId!=null&&s._tenantRecaptchaConfigs[s.tenantId]!==void 0)return s._tenantRecaptchaConfigs[s.tenantId].siteKey}return new Promise(async(i,a)=>{t3(s,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const c=new e3(l);return s.tenantId==null?s._agentRecaptchaConfig=c:s._tenantRecaptchaConfigs[s.tenantId]=c,i(c.siteKey)}}).catch(l=>{a(l)})})}function o(s,i,a){const l=window.grecaptcha;A0(l)?l.enterprise.ready(()=>{l.enterprise.execute(s,{action:t}).then(c=>{i(c)}).catch(()=>{i(I_)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new b3().execute("siteKey",{action:"verify"}):new Promise((s,i)=>{r(this.auth).then(a=>{if(!n&&A0(window.grecaptcha))o(a,s,i);else{if(typeof window>"u"){i(new Error("RecaptchaVerifier is only supported in browser"));return}let l=y3();l.length!==0&&(l+=a),R_(l).then(()=>{o(a,s,i)}).catch(c=>{i(c)})}}).catch(a=>{i(a)})})}}async function z0(e,t,n,r=!1,o=!1){const s=new C3(e);let i;if(o)i=I_;else try{i=await s.verify(n)}catch{i=await s.verify(n,!0)}const a=Object.assign({},t);if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){const l=a.phoneEnrollmentInfo.phoneNumber,c=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:c,captchaResponse:i,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const l=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:i,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:i}):Object.assign(a,{captchaResponse:i}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function gu(e,t,n,r,o){var s;if(!((s=e._getRecaptchaConfig())===null||s===void 0)&&s.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await z0(e,t,n,n==="getOobCode");return r(e,i)}else return r(e,t).catch(async i=>{if(i.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const a=await z0(e,t,n,n==="getOobCode");return r(e,a)}else return Promise.reject(i)})}/** 906 * @license 907 * Copyright 2020 Google LLC 908 * 909 * Licensed under the Apache License, Version 2.0 (the "License"); 910 * you may not use this file except in compliance with the License. 911 * You may obtain a copy of the License at 912 * 913 * http://www.apache.org/licenses/LICENSE-2.0 914 * 915 * Unless required by applicable law or agreed to in writing, software 916 * distributed under the License is distributed on an "AS IS" BASIS, 917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 918 * See the License for the specific language governing permissions and 919 * limitations under the License. 920 */function E3(e,t){const n=c_(e,"auth");if(n.isInitialized()){const o=n.getImmediate(),s=n.getOptions();if(xi(s,t??{}))return o;Gt(o,"already-initialized")}return n.initialize({options:t})}function P3(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Xn);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function T3(e,t,n){const r=xr(e);
920X(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!1,s=N_(t),{host:i,port:a}=k3(t),l=a===null?"":`:${a}`,c={url:`${s}//${i}${l}/`},u=Object.freeze({host:i,port:a,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:o})});if(!r._canInitEmulator){X(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),X(xi(c,r.config.emulator)&&xi(u,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=c,r.emulatorConfig=u,r.settings.appVerificationDisabledForTesting=!0,xd(i)?(hj(`${s}//${i}${l}`),vj("Auth",!0)):R3()}function N_(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function k3(e){const t=N_(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const s=o[1];return{host:s,port:U0(r.substr(s.length+1))}}else{const[s,i]=r.split(":");return{host:s,port:U0(i)}}}function U0(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function R3(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** 921 * @license 922 * Copyright 2020 Google LLC 923 * 924 * Licensed under the Apache License, Version 2.0 (the "License"); 925 * you may not use this file except in compliance with the License. 926 * You may obtain a copy of the License at 927 * 928 * http://www.apache.org/licenses/LICENSE-2.0 929 * 930 * Unless required by applicable law or agreed to in writing, software 931 * distributed under the License is distributed on an "AS IS" BASIS, 932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 933 * See the License for the specific language governing permissions and 934 * limitations under the License. 935 */class $g{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Jn("not implemented")}_getIdTokenResponse(t){return Jn("not implemented")}_linkToIdToken(t,n){return Jn("not implemented")}_getReauthenticationResolver(t){return Jn("not implemented")}}async function I3(e,t){return zn(e,"POST","/v1/accounts:signUp",t)}/** 936 * @license 937 * Copyright 2020 Google LLC 938 * 939 * Licensed under the Apache License, Version 2.0 (the "License"); 940 * you may not use this file except in compliance with the License. 941 * You may obtain a copy of the License at 942 * 943 * http://www.apache.org/licenses/LICENSE-2.0 944 * 945 * Unless required by applicable law or agreed to in writing, software 946 * distributed under the License is distributed on an "AS IS" BASIS, 947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 948 * See the License for the specific language governing permissions and 949 * limitations under the License. 950 */async function N3(e,t){return kl(e,"POST","/v1/accounts:signInWithPassword",br(e,t))}async function O3(e,t){return zn(e,"POST","/v1/accounts:sendOobCode",br(e,t))}async function A3(e,t){return O3(e,t)}/** 951 * @license 952 * Copyright 2020 Google LLC 953 * 954 * Licensed under the Apache License, Version 2.0 (the "License"); 955 * you may not use this file except in compliance with the License. 956 * You may obtain a copy of the License at 957 * 958 * http://www.apache.org/licenses/LICENSE-2.0 959 * 960 * Unless required by applicable law or agreed to in writing, software 961 * distributed under the License is distributed on an "AS IS" BASIS, 962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 963 * See the License for the specific language governing permissions and 964 * limitations under the License. 965 */async function j3(e,t){return kl(e,"POST","/v1/accounts:signInWithEmailLink",br(e,t))}async function M3(e,t){return kl(e,"POST","/v1/accounts:signInWithEmailLink",br(e,t))}/** 966 * @license 967 * Copyright 2020 Google LLC 968 * 969 * Licensed under the Apache License, Version 2.0 (the "License");
970 * you may not use this file except in compliance with the License. 971 * You may obtain a copy of the License at 972 * 973 * http://www.apache.org/licenses/LICENSE-2.0 974 * 975 * Unless required by applicable law or agreed to in writing, software 976 * distributed under the License is distributed on an "AS IS" BASIS, 977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 978 * See the License for the specific language governing permissions and 979 * limitations under the License. 980 */class Xa extends $g{constructor(t,n,r,o=null){super("password",r),this._email=t,this._password=n,this._tenantId=o}static _fromEmailAndPassword(t,n){return new Xa(t,n,"password")}static _fromEmailAndCode(t,n,r=null){return new Xa(t,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(t){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return gu(t,n,"signInWithPassword",N3);case"emailLink":return j3(t,{email:this._email,oobCode:this._password});default:Gt(t,"internal-error")}}async _linkToIdToken(t,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return gu(t,r,"signUpPassword",I3);case"emailLink":return M3(t,{idToken:n,email:this._email,oobCode:this._password});default:Gt(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}/** 981 * @license 982 * Copyright 2020 Google LLC 983 * 984 * Licensed under the Apache License, Version 2.0 (the "License"); 985 * you may not use this file except in compliance with the License. 986 * You may obtain a copy of the License at 987 * 988 * http://www.apache.org/licenses/LICENSE-2.0 989 * 990 * Unless required by applicable law or agreed to in writing, software 991 * distributed under the License is distributed on an "AS IS" BASIS, 992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 993 * See the License for the specific language governing permissions and 994 * limitations under the License. 995 */async function Qs(e,t){return kl(e,"POST","/v1/accounts:signInWithIdp",br(e,t))}/** 996 * @license 997 * Copyright 2020 Google LLC 998 * 999 * Licensed under the Apache License, Version 2.0 (the "License"); 1000 * you may not use this file except in compliance with the License. 1001 * You may obtain a copy of the License at 1002 * 1003 * http://www.apache.org/licenses/LICENSE-2.0 1004 * 1005 * Unless required by applicable law or agreed to in writing, software 1006 * distributed under the License is distributed on an "AS IS" BASIS, 1007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1008 * See the License for the specific language governing permissions and 1009 * limitations under the License. 1010 */const L3="http://localhost";class as extends $g{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new as(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):Gt("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1010once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:o}=n,s=fl(n,["providerId","signInMethod"]);if(!r||!o)return null;const i=new as(r,o);return i.idToken=s.idToken||void 0,i.accessToken=s.accessToken||void 0,i.secret=s.secret,i.nonce=s.nonce,i.pendingToken=s.pendingToken||null,i}_getIdTokenResponse(t){const n=this.buildRequest();return Qs(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Qs(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Qs(t,n)}buildRequest(){const t={requestUri:L3,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=El(n)}return t}}/** 1011 * @license 1012 * Copyright 2020 Google LLC 1013 * 1014 * Licensed under the Apache License, Version 2.0 (the "License"); 1015 * you may not use this file except in compliance with the License. 1016 * You may obtain a copy of the License at 1017 * 1018 * http://www.apache.org/licenses/LICENSE-2.0 1019 * 1020 * Unless required by applicable law or agreed to in writing, software 1021 * distributed under the License is distributed on an "AS IS" BASIS, 1022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1023 * See the License for the specific language governing permissions and 1024 * limitations under the License. 1025 */function $3(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function D3(e){const t=da(fa(e)).link,n=t?da(fa(t)).deep_link_id:null,r=da(fa(e)).deep_link_id;return(r?da(fa(r)).link:null)||r||n||t||e}class Dg{constructor(t){var n,r,o,s,i,a;const l=da(fa(t)),c=(n=l.apiKey)!==null&&n!==void 0?n:null,u=(r=l.oobCode)!==null&&r!==void 0?r:null,d=$3((o=l.mode)!==null&&o!==void 0?o:null);X(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=(s=l.continueUrl)!==null&&s!==void 0?s:null,this.languageCode=(i=l.lang)!==null&&i!==void 0?i:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(t){const n=D3(t);try{return new Dg(n)}catch{return null}}}/** 1026 * @license 1027 * Copyright 2020 Google LLC 1028 * 1029 * Licensed under the Apache License, Version 2.0 (the "License"); 1030 * you may not use this file except in compliance with the License. 1031 * You may obtain a copy of the License at 1032 * 1033 * http://www.apache.org/licenses/LICENSE-2.0 1034 * 1035 * Unless required by applicable law or agreed to in writing, software 1036 * distributed under the License is distributed on an "AS IS" BASIS, 1037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1038 * See the License for the specific language governing permissions and 1039 * limitations under the License. 1040 */class Gi{constructor(){this.providerId=Gi.PROVIDER_ID}static credential(t,n){return Xa._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){const r=Dg.parseLink(n);return X(r,"argument-error"),Xa._fromEmailAndCode(t,r.code,r.tenantId)}}Gi.PROVIDER_ID="password";Gi.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Gi.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 1041 * @license 1042 * Copyright 2020 Google LLC 1043 * 1044 * Licensed under the Apache License, Version 2.0 (the "License"); 1045 * you may not use this file except in compliance with the License. 1046 * You may obtain a copy of the License at 1047 * 1048 * http://www.apache.org/licenses/LICENSE-2.0 1049 * 1050 * Unless required by applicable law or agreed to in writing, software 1051 * distributed under the License is distributed on an "AS IS" BASIS, 1052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1053 * See the License for the specific language governing permissions and 1054 * limitations under the License. 1055 */class zg{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** 1056 * @license 1057 * Copyright 2019 Google LLC 1058 * 1059 * Licensed under the Apache License, Version 2.0 (the "License");
1060 * you may not use this file except in compliance with the License. 1061 * You may obtain a copy of the License at 1062 * 1063 * http://www.apache.org/licenses/LICENSE-2.0 1064 * 1065 * Unless required by applicable law or agreed to in writing, software 1066 * distributed under the License is distributed on an "AS IS" BASIS, 1067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1068 * See the License for the specific language governing permissions and 1069 * limitations under the License. 1070 */class Rl extends zg{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** 1071 * @license 1072 * Copyright 2020 Google LLC 1073 * 1074 * Licensed under the Apache License, Version 2.0 (the "License"); 1075 * you may not use this file except in compliance with the License. 1076 * You may obtain a copy of the License at 1077 * 1078 * http://www.apache.org/licenses/LICENSE-2.0 1079 * 1080 * Unless required by applicable law or agreed to in writing, software 1081 * distributed under the License is distributed on an "AS IS" BASIS, 1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1083 * See the License for the specific language governing permissions and 1084 * limitations under the License. 1085 */class Mr extends Rl{constructor(){super("facebook.com")}static credential(t){return as._fromParams({providerId:Mr.PROVIDER_ID,signInMethod:Mr.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Mr.credentialFromTaggedObject(t)}static credentialFromError(t){return Mr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Mr.credential(t.oauthAccessToken)}catch{return null}}}Mr.FACEBOOK_SIGN_IN_METHOD="facebook.com";Mr.PROVIDER_ID="facebook.com";/** 1086 * @license 1087 * Copyright 2020 Google LLC 1088 * 1089 * Licensed under the Apache License, Version 2.0 (the "License"); 1090 * you may not use this file except in compliance with the License. 1091 * You may obtain a copy of the License at 1092 * 1093 * http://www.apache.org/licenses/LICENSE-2.0 1094 * 1095 * Unless required by applicable law or agreed to in writing, software 1096 * distributed under the License is distributed on an "AS IS" BASIS, 1097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1098 * See the License for the specific language governing permissions and 1099 * limitations under the License. 1100 */class qn extends Rl{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return as._fromParams({providerId:qn.PROVIDER_ID,signInMethod:qn.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return qn.credentialFromTaggedObject(t)}static credentialFromError(t){return qn.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return qn.credential(n,r)}catch{return null}}}qn.GOOGLE_SIGN_IN_METHOD="google.com";qn.PROVIDER_ID="google.com";/** 1101 * @license 1102 * Copyright 2020 Google LLC 1103 * 1104 * Licensed under the Apache License, Version 2.0 (the "License"); 1105 * you may not use this file except in compliance with the License. 1106 * You may obtain a copy of the License at 1107 * 1108 * http://www.apache.org/licenses/LICENSE-2.0 1109 * 1110 * Unless required by applicable law or agreed to in writing, software 1111 * distributed under the License is distributed on an "AS IS" BASIS, 1112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1113 * See the License for the specific language governing permissions and 1114 * limitations under the License. 1115 */class Lr extends Rl{constructor(){super("github.com")}static credential(t){return as._fromParams({providerId:Lr.PROVIDER_ID,signInMethod:Lr.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Lr.credentialFromTaggedObject(t)}static credentialFromError(t){return Lr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Lr.credential(t.oauthAccessToken)}catch{return null}}}Lr.GITHUB_SIGN_IN_METHOD="github.com";
1115Lr.PROVIDER_ID="github.com";/** 1116 * @license 1117 * Copyright 2020 Google LLC 1118 * 1119 * Licensed under the Apache License, Version 2.0 (the "License"); 1120 * you may not use this file except in compliance with the License. 1121 * You may obtain a copy of the License at 1122 * 1123 * http://www.apache.org/licenses/LICENSE-2.0 1124 * 1125 * Unless required by applicable law or agreed to in writing, software 1126 * distributed under the License is distributed on an "AS IS" BASIS, 1127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1128 * See the License for the specific language governing permissions and 1129 * limitations under the License. 1130 */class $r extends Rl{constructor(){super("twitter.com")}static credential(t,n){return as._fromParams({providerId:$r.PROVIDER_ID,signInMethod:$r.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return $r.credentialFromTaggedObject(t)}static credentialFromError(t){return $r.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return $r.credential(n,r)}catch{return null}}}$r.TWITTER_SIGN_IN_METHOD="twitter.com";$r.PROVIDER_ID="twitter.com";/** 1131 * @license 1132 * Copyright 2020 Google LLC 1133 * 1134 * Licensed under the Apache License, Version 2.0 (the "License"); 1135 * you may not use this file except in compliance with the License. 1136 * You may obtain a copy of the License at 1137 * 1138 * http://www.apache.org/licenses/LICENSE-2.0 1139 * 1140 * Unless required by applicable law or agreed to in writing, software 1141 * distributed under the License is distributed on an "AS IS" BASIS, 1142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1143 * See the License for the specific language governing permissions and 1144 * limitations under the License. 1145 */async function z3(e,t){return kl(e,"POST","/v1/accounts:signUp",br(e,t))}/** 1146 * @license 1147 * Copyright 2020 Google LLC 1148 * 1149 * Licensed under the Apache License, Version 2.0 (the "License"); 1150 * you may not use this file except in compliance with the License. 1151 * You may obtain a copy of the License at 1152 * 1153 * http://www.apache.org/licenses/LICENSE-2.0 1154 * 1155 * Unless required by applicable law or agreed to in writing, software 1156 * distributed under the License is distributed on an "AS IS" BASIS, 1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1158 * See the License for the specific language governing permissions and 1159 * limitations under the License. 1160 */class ls{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,o=!1){const s=await an._fromIdTokenResponse(t,r,o),i=F0(r);return new ls({user:s,providerId:i,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const o=F0(r);return new ls({user:t,providerId:o,_tokenResponse:r,operationType:n})}}function F0(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** 1161 * @license 1162 * Copyright 2020 Google LLC 1163 * 1164 * Licensed under the Apache License, Version 2.0 (the "License"); 1165 * you may not use this file except in compliance with the License. 1166 * You may obtain a copy of the License at 1167 * 1168 * http://www.apache.org/licenses/LICENSE-2.0 1169 * 1170 * Unless required by applicable law or agreed to in writing, software 1171 * distributed under the License is distributed on an "AS IS" BASIS, 1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1173 * See the License for the specific language governing permissions and 1174 * limitations under the License. 1175 */class vu extends _o{constructor(t,n,r,o){var s;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,vu.prototype),this.customData={appName:t.name,tenantId:(s=t.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,o){return new vu(t,n,r,o)}}function O_(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?vu._fromErrorAndOperation(e,s,t,r):s})}async function U3(e,t,n=!1){const r=await Ci(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return ls._forOperation(e,"link",r)}/** 1176 * @license 1177 * Copyright 2019 Google LLC 1178 * 1179 * Licensed under the Apache License, Version 2.0 (the "License");
1180 * you may not use this file except in compliance with the License. 1181 * You may obtain a copy of the License at 1182 * 1183 * http://www.apache.org/licenses/LICENSE-2.0 1184 * 1185 * Unless required by applicable law or agreed to in writing, software 1186 * distributed under the License is distributed on an "AS IS" BASIS, 1187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1188 * See the License for the specific language governing permissions and 1189 * limitations under the License. 1190 */async function F3(e,t,n=!1){const{auth:r}=e;if(Ut(r.app))return Promise.reject(tr(r));const o="reauthenticate";try{const s=await Ci(e,O_(r,o,t,e),n);X(s.idToken,r,"internal-error");const i=Mg(s.idToken);X(i,r,"internal-error");const{sub:a}=i;return X(e.uid===a,r,"user-mismatch"),ls._forOperation(e,o,s)}catch(s){throw(s==null?void 0:s.code)==="auth/user-not-found"&&Gt(r,"user-mismatch"),s}}/** 1191 * @license 1192 * Copyright 2020 Google LLC 1193 * 1194 * Licensed under the Apache License, Version 2.0 (the "License"); 1195 * you may not use this file except in compliance with the License. 1196 * You may obtain a copy of the License at 1197 * 1198 * http://www.apache.org/licenses/LICENSE-2.0 1199 * 1200 * Unless required by applicable law or agreed to in writing, software 1201 * distributed under the License is distributed on an "AS IS" BASIS, 1202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1203 * See the License for the specific language governing permissions and 1204 * limitations under the License. 1205 */async function A_(e,t,n=!1){if(Ut(e.app))return Promise.reject(tr(e));const r="signIn",o=await O_(e,r,t),s=await ls._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(s.user),s}async function B3(e,t){return A_(xr(e),t)}/** 1206 * @license 1207 * Copyright 2020 Google LLC 1208 * 1209 * Licensed under the Apache License, Version 2.0 (the "License"); 1210 * you may not use this file except in compliance with the License. 1211 * You may obtain a copy of the License at 1212 * 1213 * http://www.apache.org/licenses/LICENSE-2.0 1214 * 1215 * Unless required by applicable law or agreed to in writing, software 1216 * distributed under the License is distributed on an "AS IS" BASIS, 1217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1218 * See the License for the specific language governing permissions and 1219 * limitations under the License. 1220 */async function j_(e){const t=xr(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function V3(e,t,n){const r=xr(e);await gu(r,{requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"},"getOobCode",A3)}async function W3(e,t,n){if(Ut(e.app))return Promise.reject(tr(e));const r=xr(e),i=await gu(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",z3).catch(l=>{throw l.code==="auth/password-does-not-meet-requirements"&&j_(e),l}),a=await ls._fromIdTokenResponse(r,"signIn",i);return await r._updateCurrentUser(a.user),a}function H3(e,t,n){return Ut(e.app)?Promise.reject(tr(e)):B3(Dn(e),Gi.credential(t,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&j_(e),r})}/** 1221 * @license 1222 * Copyright 2020 Google LLC 1223 * 1224 * Licensed under the Apache License, Version 2.0 (the "License"); 1225 * you may not use this file except in compliance with the License. 1226 * You may obtain a copy of the License at 1227 * 1228 * http://www.apache.org/licenses/LICENSE-2.0 1229 * 1230 * Unless required by applicable law or agreed to in writing, software 1231 * distributed under the License is distributed on an "AS IS" BASIS, 1232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1233 * See the License for the specific language governing permissions and 1234 * limitations under the License. 1235 */async function G3(e,t){return zn(e,"POST","/v1/accounts:update",t)}/** 1236 * @license 1237 * Copyright 2020 Google LLC 1238 * 1239 * Licensed under the Apache License, Version 2.0 (the "License"); 1240 * you may not use this file except in compliance with the License. 1241 * You may obtain a copy of the License at 1242 * 1243 * http://www.apache.org/licenses/LICENSE-2.0 1244 * 1245 * Unless required by applicable law or agreed to in writing, softw
1245are 1246 * distributed under the License is distributed on an "AS IS" BASIS, 1247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1248 * See the License for the specific language governing permissions and 1249 * limitations under the License. 1250 */async function K3(e,{displayName:t,photoURL:n}){if(t===void 0&&n===void 0)return;const r=Dn(e),s={idToken:await r.getIdToken(),displayName:t,photoUrl:n,returnSecureToken:!0},i=await Ci(r,G3(r.auth,s));r.displayName=i.displayName||null,r.photoURL=i.photoUrl||null;const a=r.providerData.find(({providerId:l})=>l==="password");a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(i)}function q3(e,t,n,r){return Dn(e).onIdTokenChanged(t,n,r)}function Q3(e,t,n){return Dn(e).beforeAuthStateChanged(t,n)}function Y3(e,t,n,r){return Dn(e).onAuthStateChanged(t,n,r)}function J3(e){return Dn(e).signOut()}const yu="__sak";/** 1251 * @license 1252 * Copyright 2019 Google LLC 1253 * 1254 * Licensed under the Apache License, Version 2.0 (the "License"); 1255 * you may not use this file except in compliance with the License. 1256 * You may obtain a copy of the License at 1257 * 1258 * http://www.apache.org/licenses/LICENSE-2.0 1259 * 1260 * Unless required by applicable law or agreed to in writing, software 1261 * distributed under the License is distributed on an "AS IS" BASIS, 1262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1263 * See the License for the specific language governing permissions and 1264 * limitations under the License. 1265 */class M_{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(yu,"1"),this.storage.removeItem(yu),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1266 * @license 1267 * Copyright 2020 Google LLC 1268 * 1269 * Licensed under the Apache License, Version 2.0 (the "License"); 1270 * you may not use this file except in compliance with the License. 1271 * You may obtain a copy of the License at 1272 * 1273 * http://www.apache.org/licenses/LICENSE-2.0 1274 * 1275 * Unless required by applicable law or agreed to in writing, software 1276 * distributed under the License is distributed on an "AS IS" BASIS, 1277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1278 * See the License for the specific language governing permissions and 1279 * limitations under the License. 1280 */const X3=1e3,Z3=10;class L_ extends M_{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=T_(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),o=this.localCache[n];r!==o&&t(n,o,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((i,a,l)=>{this.notifyListeners(i,l)});return}const r=t.key;n?this.detachListener():this.stopPolling();const o=()=>{const i=this.storage.getItem(r);!n&&this.localCache[r]===i||this.notifyListeners(r,i)},s=this.storage.getItem(r);d3()&&s!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,Z3):o()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},X3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}L_.type="LOCAL";const eL=L_;/** 1281 * @license 1282 * Copyright 2020 Google LLC 1283 * 1284 * Licensed under the Apache License, Version 2.0 (the "License");
1285 * you may not use this file except in compliance with the License. 1286 * You may obtain a copy of the License at 1287 * 1288 * http://www.apache.org/licenses/LICENSE-2.0 1289 * 1290 * Unless required by applicable law or agreed to in writing, software 1291 * distributed under the License is distributed on an "AS IS" BASIS, 1292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1293 * See the License for the specific language governing permissions and 1294 * limitations under the License. 1295 */class $_ extends M_{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}$_.type="SESSION";const D_=$_;/** 1296 * @license 1297 * Copyright 2019 Google LLC 1298 * 1299 * Licensed under the Apache License, Version 2.0 (the "License"); 1300 * you may not use this file except in compliance with the License. 1301 * You may obtain a copy of the License at 1302 * 1303 * http://www.apache.org/licenses/LICENSE-2.0 1304 * 1305 * Unless required by applicable law or agreed to in writing, software 1306 * distributed under the License is distributed on an "AS IS" BASIS, 1307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1308 * See the License for the specific language governing permissions and 1309 * limitations under the License. 1310 */function tL(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 1311 * @license 1312 * Copyright 2019 Google LLC 1313 * 1314 * Licensed under the Apache License, Version 2.0 (the "License"); 1315 * you may not use this file except in compliance with the License. 1316 * You may obtain a copy of the License at 1317 * 1318 * http://www.apache.org/licenses/LICENSE-2.0 1319 * 1320 * Unless required by applicable law or agreed to in writing, software 1321 * distributed under the License is distributed on an "AS IS" BASIS, 1322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1323 * See the License for the specific language governing permissions and 1324 * limitations under the License. 1325 */class Cd{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(o=>o.isListeningto(t));if(n)return n;const r=new Cd(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:o,data:s}=n.data,i=this.handlersMap[o];if(!(i!=null&&i.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:o});const a=Array.from(i).map(async c=>c(n.origin,s)),l=await tL(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Cd.receivers=[];/** 1326 * @license 1327 * Copyright 2020 Google LLC 1328 * 1329 * Licensed under the Apache License, Version 2.0 (the "License"); 1330 * you may not use this file except in compliance with the License. 1331 * You may obtain a copy of the License at 1332 * 1333 * http://www.apache.org/licenses/LICENSE-2.0 1334 * 1335 * Unless required by applicable law or agreed to in writing, software 1336 * distributed under the License is distributed on an "AS IS" BASIS, 1337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1338 * See the License for the specific language governing permissions and 1339 * limitations under the License. 1340 */function Ug(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/** 1341 * @license 1342 * Copyright 2019 Google LLC 1343 * 1344 * Licensed under the Apache License, Version 2.0 (the "License"); 1345 * you may not use this file except in compliance with the License. 1346 * You may obtain a copy of the License at 1347 * 1348 * http://www.apache.org/licenses/LICENSE-2.0 1349 * 1350 * Unless required by applicable law or agreed to in writing, softw
1350are 1351 * distributed under the License is distributed on an "AS IS" BASIS, 1352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1353 * See the License for the specific language governing permissions and 1354 * limitations under the License. 1355 */class nL{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let s,i;return new Promise((a,l)=>{const c=Ug("",20);o.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);i={messageChannel:o,onMessage(d){const p=d;if(p.data.eventId===c)switch(p.data.status){case"ack":clearTimeout(u),s=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),a(p.data.response);break;default:clearTimeout(u),clearTimeout(s),l(new Error("invalid_response"));break}}},this.handlers.add(i),o.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:t,eventId:c,data:n},[o.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}/** 1356 * @license 1357 * Copyright 2020 Google LLC 1358 * 1359 * Licensed under the Apache License, Version 2.0 (the "License"); 1360 * you may not use this file except in compliance with the License. 1361 * You may obtain a copy of the License at 1362 * 1363 * http://www.apache.org/licenses/LICENSE-2.0 1364 * 1365 * Unless required by applicable law or agreed to in writing, software 1366 * distributed under the License is distributed on an "AS IS" BASIS, 1367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1368 * See the License for the specific language governing permissions and 1369 * limitations under the License. 1370 */function An(){return window}function rL(e){An().location.href=e}/** 1371 * @license 1372 * Copyright 2020 Google LLC. 1373 * 1374 * Licensed under the Apache License, Version 2.0 (the "License"); 1375 * you may not use this file except in compliance with the License. 1376 * You may obtain a copy of the License at 1377 * 1378 * http://www.apache.org/licenses/LICENSE-2.0 1379 * 1380 * Unless required by applicable law or agreed to in writing, software 1381 * distributed under the License is distributed on an "AS IS" BASIS, 1382 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1383 * See the License for the specific language governing permissions and 1384 * limitations under the License. 1385 */function z_(){return typeof An().WorkerGlobalScope<"u"&&typeof An().importScripts=="function"}async function oL(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function sL(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function iL(){return z_()?self:null}/** 1386 * @license 1387 * Copyright 2019 Google LLC 1388 * 1389 * Licensed under the Apache License, Version 2.0 (the "License"); 1390 * you may not use this file except in compliance with the License. 1391 * You may obtain a copy of the License at 1392 * 1393 * http://www.apache.org/licenses/LICENSE-2.0 1394 * 1395 * Unless required by applicable law or agreed to in writing, software 1396 * distributed under the License is distributed on an "AS IS" BASIS, 1397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1398 * See the License for the specific language governing permissions and 1399 * limitations under the License. 1400 */const U_="firebaseLocalStorageDb",aL=1,wu="firebaseLocalStorage",F_="fbase_key";class Il{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Ed(e,t){return e.transaction([wu],t?"readwrite":"readonly").objectStore(wu)}function lL(){const e=indexedDB.deleteDatabase(U_);return new Il(e).toPromise()}function mh(){const e=indexedDB.open(U_,aL);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(wu,{keyPath:F_})}catch(o){n(o)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(wu)?t(r):(r.close(),await lL(),t(await mh()))})})}async function B0(e,t,n){const r=Ed(e,!0).put({[F_]:t,value:n});
1400return new Il(r).toPromise()}async function cL(e,t){const n=Ed(e,!1).get(t),r=await new Il(n).toPromise();return r===void 0?null:r.value}function V0(e,t){const n=Ed(e,!0).delete(t);return new Il(n).toPromise()}const uL=800,dL=3;class B_{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await mh(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>dL)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return z_()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Cd._getInstance(iL()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1400)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await oL(),!this.activeServiceWorker)return;this.sender=new nL(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||sL()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await mh();return await B0(t,yu,"1"),await V0(t,yu),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>B0(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>cL(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>V0(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const s=Ed(o,!1).getAll();return new Il(s).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:o,value:s}of t)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(s)&&(this.notifyListeners(o,s),n.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),n.push(o));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),uL)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}B_.type="LOCAL";const fL=B_;new Tl(3e4,6e4);/** 1401 * @license 1402 * Copyright 2021 Google LLC 1403 * 1404 * Licensed under the Apache License, Version 2.0 (the "License"); 1405 * you may not use this file except in compliance with the License. 1406 * You may obtain a copy of the License at 1407 * 1408 * http://www.apache.org/licenses/LICENSE-2.0 1409 * 1410 * Unless required by applicable law or agreed to in writing, software 1411 * distributed under the License is distributed on an "AS IS" BASIS, 1412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1413 * See the License for the specific language governing permissions and 1414 * limitations under the License. 1415 */function V_(e,t){return t?Xn(t):(X(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** 1416 * @license 1417 * Copyright 2019 Google LLC 1418 * 1419 * Licensed under the Apache License, Version 2.0 (the "License"); 1420 * you may not use this file except in compliance with the License. 1421 * You may obtain a copy of the License at 1422 * 1423 * http://www.apache.org/licenses/LICENSE-2.0 1424 * 1425 * Unless required by applicable law or agreed to in writing, software 1426 * distributed under the License is distributed on an "AS IS" BASIS, 1427 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1428 * See the License for the specific language governing permissions and 1429 * limitations under the License. 1430 */class Fg extends $g{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Qs(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Qs(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Qs(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function pL(e){return A_(e.auth,new Fg(e),e.bypassAuthState)}function hL(e){const{auth:t,user:n}=e;return X(n,t,"internal-error"),F3(n,new Fg(e),e.bypassAuthState)}async function mL(e){const{auth:t,user:n}=e;return X(n,t,"internal-error"),U3(n,new Fg(e),e.bypassAuthState)}/** 1431 * @license 1432 * Copyright 2020 Google LLC 1433 * 1434 * Licensed under the Apache License, Version 2.0 (the "License");
1435 * you may not use this file except in compliance with the License. 1436 * You may obtain a copy of the License at 1437 * 1438 * http://www.apache.org/licenses/LICENSE-2.0 1439 * 1440 * Unless required by applicable law or agreed to in writing, software 1441 * distributed under the License is distributed on an "AS IS" BASIS, 1442 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1443 * See the License for the specific language governing permissions and 1444 * limitations under the License. 1445 */class W_{constructor(t,n,r,o,s=!1){this.auth=t,this.resolver=r,this.user=o,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:o,tenantId:s,error:i,type:a}=t;if(i){this.reject(i);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return pL;case"linkViaPopup":case"linkViaRedirect":return mL;case"reauthViaPopup":case"reauthViaRedirect":return hL;default:Gt(this.auth,"internal-error")}}resolve(t){dr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){dr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1446 * @license 1447 * Copyright 2020 Google LLC 1448 * 1449 * Licensed under the Apache License, Version 2.0 (the "License"); 1450 * you may not use this file except in compliance with the License. 1451 * You may obtain a copy of the License at 1452 * 1453 * http://www.apache.org/licenses/LICENSE-2.0 1454 * 1455 * Unless required by applicable law or agreed to in writing, software 1456 * distributed under the License is distributed on an "AS IS" BASIS, 1457 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1458 * See the License for the specific language governing permissions and 1459 * limitations under the License. 1460 */const gL=new Tl(2e3,1e4);async function vL(e,t,n){if(Ut(e.app))return Promise.reject(dn(e,"operation-not-supported-in-this-environment"));const r=xr(e);HM(e,t,zg);const o=V_(r,n);return new zo(r,"signInViaPopup",t,o).executeNotNull()}class zo extends W_{constructor(t,n,r,o,s){super(t,n,o,s),this.provider=r,this.authWindow=null,this.pollId=null,zo.currentPopupAction&&zo.currentPopupAction.cancel(),zo.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return X(t,this.auth,"internal-error"),t}async onExecution(){dr(this.filter.length===1,"Popup operations only handle one event");const t=Ug();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(dn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(dn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,zo.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(dn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,gL.get())};t()}}zo.currentPopupAction=null;/** 1461 * @license 1462 * Copyright 2020 Google LLC 1463 * 1464 * Licensed under the Apache License, Version 2.0 (the "License");
1465 * you may not use this file except in compliance with the License. 1466 * You may obtain a copy of the License at 1467 * 1468 * http://www.apache.org/licenses/LICENSE-2.0 1469 * 1470 * Unless required by applicable law or agreed to in writing, software 1471 * distributed under the License is distributed on an "AS IS" BASIS, 1472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1473 * See the License for the specific language governing permissions and 1474 * limitations under the License. 1475 */const yL="pendingRedirect",Pc=new Map;class wL extends W_{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Pc.get(this.auth._key());if(!t){try{const r=await SL(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Pc.set(this.auth._key(),t)}return this.bypassAuthState||Pc.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function SL(e,t){const n=_L(t),r=xL(e);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function bL(e,t){Pc.set(e._key(),t)}function xL(e){return Xn(e._redirectPersistence)}function _L(e){return Ec(yL,e.config.apiKey,e.name)}async function CL(e,t,n=!1){if(Ut(e.app))return Promise.reject(tr(e));const r=xr(e),o=V_(r,t),i=await new wL(r,o,n).execute();return i&&!n&&(delete i.user._redirectEventId,await r._persistUserIfCurrent(i.user),await r._setRedirectUser(null,t)),i}/** 1476 * @license 1477 * Copyright 2020 Google LLC 1478 * 1479 * Licensed under the Apache License, Version 2.0 (the "License"); 1480 * you may not use this file except in compliance with the License. 1481 * You may obtain a copy of the License at 1482 * 1483 * http://www.apache.org/licenses/LICENSE-2.0 1484 * 1485 * Unless required by applicable law or agreed to in writing, software 1486 * distributed under the License is distributed on an "AS IS" BASIS, 1487 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1488 * See the License for the specific language governing permissions and 1489 * limitations under the License. 1490 */const EL=10*60*1e3;class PL{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!TL(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!H_(t)){const o=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(dn(this.auth,o))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=EL&&this.cachedEventUids.clear(),this.cachedEventUids.has(W0(t))}saveEventToCache(t){this.cachedEventUids.add(W0(t)),this.lastProcessedEventTime=Date.now()}}function W0(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function H_({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function TL(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return H_(e);default:return!1}}/** 1491 * @license 1492 * Copyright 2020 Google LLC 1493 * 1494 * Licensed under the Apache License, Version 2.0 (the "License");
1495 * you may not use this file except in compliance with the License. 1496 * You may obtain a copy of the License at 1497 * 1498 * http://www.apache.org/licenses/LICENSE-2.0 1499 * 1500 * Unless required by applicable law or agreed to in writing, software 1501 * distributed under the License is distributed on an "AS IS" BASIS, 1502 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1503 * See the License for the specific language governing permissions and 1504 * limitations under the License. 1505 */async function kL(e,t={}){return zn(e,"GET","/v1/projects",t)}/** 1506 * @license 1507 * Copyright 2020 Google LLC 1508 * 1509 * Licensed under the Apache License, Version 2.0 (the "License"); 1510 * you may not use this file except in compliance with the License. 1511 * You may obtain a copy of the License at 1512 * 1513 * http://www.apache.org/licenses/LICENSE-2.0 1514 * 1515 * Unless required by applicable law or agreed to in writing, software 1516 * distributed under the License is distributed on an "AS IS" BASIS, 1517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1518 * See the License for the specific language governing permissions and 1519 * limitations under the License. 1520 */const RL=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,IL=/^https?/;async function NL(e){if(e.config.emulator)return;const{authorizedDomains:t}=await kL(e);for(const n of t)try{if(OL(n))return}catch{}Gt(e,"unauthorized-domain")}function OL(e){const t=ph(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return i.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&i.hostname===r}if(!IL.test(n))return!1;if(RL.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/** 1521 * @license 1522 * Copyright 2020 Google LLC. 1523 * 1524 * Licensed under the Apache License, Version 2.0 (the "License"); 1525 * you may not use this file except in compliance with the License. 1526 * You may obtain a copy of the License at 1527 * 1528 * http://www.apache.org/licenses/LICENSE-2.0 1529 * 1530 * Unless required by applicable law or agreed to in writing, software 1531 * distributed under the License is distributed on an "AS IS" BASIS, 1532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1533 * See the License for the specific language governing permissions and 1534 * limitations under the License. 1535 */const AL=new Tl(3e4,6e4);function H0(){const e=An().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function jL(e){return new Promise((t,n)=>{var r,o,s;function i(){H0(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{H0(),n(dn(e,"network-request-failed"))},timeout:AL.get()})}if(!((o=(r=An().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((s=An().gapi)===null||s===void 0)&&s.load)i();else{const a=S3("iframefcb");return An()[a]=()=>{gapi.load?i():n(dn(e,"network-request-failed"))},R_(`${w3()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw Tc=null,t})}let Tc=null;function ML(e){return Tc=Tc||jL(e),Tc}/** 1536 * @license 1537 * Copyright 2020 Google LLC. 1538 * 1539 * Licensed under the Apache License, Version 2.0 (the "License"); 1540 * you may not use this file except in compliance with the License. 1541 * You may obtain a copy of the License at 1542 * 1543 * http://www.apache.org/licenses/LICENSE-2.0 1544 * 1545 * Unless required by applicable law or agreed to in writing, software 1546 * distributed under the License is distributed on an "AS IS" BASIS, 1547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1548 * See the License for the specific language governing permissions and 1549 * limitations under the License. 1550 */const LL=new Tl(5e3,15e3),$L="__/auth/iframe",DL="emulator/auth/iframe",zL={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},UL=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function FL(e){const t=e.config;X(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?jg(t,DL):`https://${e.config.authDomain}/${$L}
1550`,r={apiKey:t.apiKey,appName:e.name,v:Pl},o=UL.get(e.config.apiHost);o&&(r.eid=o);const s=e._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${El(r).slice(1)}`}async function BL(e){const t=await ML(e),n=An().gapi;return X(n,e,"internal-error"),t.open({where:document.body,url:FL(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:zL,dontclear:!0},r=>new Promise(async(o,s)=>{await r.restyle({setHideOnLeave:!1});const i=dn(e,"network-request-failed"),a=An().setTimeout(()=>{s(i)},LL.get());function l(){An().clearTimeout(a),o(r)}r.ping(l).then(l,()=>{s(i)})}))}/** 1551 * @license 1552 * Copyright 2020 Google LLC. 1553 * 1554 * Licensed under the Apache License, Version 2.0 (the "License"); 1555 * you may not use this file except in compliance with the License. 1556 * You may obtain a copy of the License at 1557 * 1558 * http://www.apache.org/licenses/LICENSE-2.0 1559 * 1560 * Unless required by applicable law or agreed to in writing, software 1561 * distributed under the License is distributed on an "AS IS" BASIS, 1562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1563 * See the License for the specific language governing permissions and 1564 * limitations under the License. 1565 */const VL={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},WL=500,HL=600,GL="_blank",KL="http://localhost";class G0{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function qL(e,t,n,r=WL,o=HL){const s=Math.max((window.screen.availHeight-o)/2,0).toString(),i=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},VL),{width:r.toString(),height:o.toString(),top:s,left:i}),c=ct().toLowerCase();n&&(a=x_(c)?GL:n),S_(c)&&(t=t||KL,l.scrollbars="yes");const u=Object.entries(l).reduce((p,[h,v])=>`${p}${h}=${v},`,"");if(u3(c)&&a!=="_self")return QL(t||"",a),new G0(null);const d=window.open(t||"",a,u);X(d,e,"popup-blocked");try{d.focus()}catch{}return new G0(d)}function QL(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 1566 * @license 1567 * Copyright 2021 Google LLC 1568 * 1569 * Licensed under the Apache License, Version 2.0 (the "License"); 1570 * you may not use this file except in compliance with the License. 1571 * You may obtain a copy of the License at 1572 * 1573 * http://www.apache.org/licenses/LICENSE-2.0 1574 * 1575 * Unless required by applicable law or agreed to in writing, software 1576 * distributed under the License is distributed on an "AS IS" BASIS, 1577 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1578 * See the License for the specific language governing permissions and 1579 * limitations under the License. 1580 */const YL="__/auth/handler",JL="emulator/auth/handler",XL=encodeURIComponent("fac");async function K0(e,t,n,r,o,s){X(e.config.authDomain,e,"auth-domain-config-required"),X(e.config.apiKey,e,"invalid-api-key");const i={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Pl,eventId:o};if(t instanceof zg){t.setDefaultLanguage(e.languageCode),i.providerId=t.providerId||"",kj(t.getCustomParameters())||(i.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))i[u]=d}if(t instanceof Rl){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(i.scopes=u.join(","))}e.tenantId&&(i.tid=e.tenantId);const a=i;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${XL}=${encodeURIComponent(l)}`:"";return`${ZL(e)}?${El(a).slice(1)}${c}`}function ZL({config:e}){return e.emulator?jg(e,JL):`https://${e.authDomain}/${YL}`}/** 1581 * @license 1582 * Copyright 2020 Google LLC 1583 * 1584 * Licensed under the Apache License, Version 2.0 (the "License"); 1585 * you may not use this file except in compliance with the License. 1586 * You may obtain a copy of the License at 1587 * 1588 * http://www.apache.org/licenses/LICENSE-2.0 1589 * 1590 * Unless required by applicable law or agreed to in writing, software 1591 * distributed under the License is distributed on an "AS IS" BASIS, 1592 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1593 * See the License for the specific language governing permissions and 1594 * limitations under the License. 1595 */const If="webStorageSupport";class e${constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=D_,this._completeRedirectFn=CL,this._overrideRedirectResult=bL}async _openPopup(t,n,r,o){var s;dr((s=this.eventManagers[t._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const i=await K0(t,n,r,ph(),o);return qL(t,i,Ug())}async _openRedirect(t,n,r,o){await this._originValidation(t);const s=await K0(t,n,r,ph(),o);return rL(s),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:o,promise:s}=this.eventManagers[n];return o?Promise.resolve(o):(dr(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await BL(t),r=new PL(t);return n.register("authEvent",o=>
1595(X(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:r.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(If,{type:If},o=>{var s;const i=(s=o==null?void 0:o[0])===null||s===void 0?void 0:s[If];i!==void 0&&n(!!i),Gt(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=NL(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return T_()||b_()||Lg()}}const t$=e$;var q0="@firebase/auth",Q0="1.10.8";/** 1596 * @license 1597 * Copyright 2020 Google LLC 1598 * 1599 * Licensed under the Apache License, Version 2.0 (the "License"); 1600 * you may not use this file except in compliance with the License. 1601 * You may obtain a copy of the License at 1602 * 1603 * http://www.apache.org/licenses/LICENSE-2.0 1604 * 1605 * Unless required by applicable law or agreed to in writing, software 1606 * distributed under the License is distributed on an "AS IS" BASIS, 1607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1608 * See the License for the specific language governing permissions and 1609 * limitations under the License. 1610 */class n${constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){X(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1611 * @license 1612 * Copyright 2020 Google LLC 1613 * 1614 * Licensed under the Apache License, Version 2.0 (the "License"); 1615 * you may not use this file except in compliance with the License. 1616 * You may obtain a copy of the License at 1617 * 1618 * http://www.apache.org/licenses/LICENSE-2.0 1619 * 1620 * Unless required by applicable law or agreed to in writing, software 1621 * distributed under the License is distributed on an "AS IS" BASIS, 1622 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1623 * See the License for the specific language governing permissions and 1624 * limitations under the License. 1625 */function r$(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function o$(e){Ya(new _i("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:i,authDomain:a}=r.options;X(i&&!i.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:i,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:k_(e)},c=new g3(r,o,s,l);return P3(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),Ya(new _i("auth-internal",t=>{const n=xr(t.getProvider("auth").getImmediate());return(r=>new n$(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Gs(q0,Q0,r$(e)),Gs(q0,Q0,"esm2017")}/** 1626 * @license 1627 * Copyright 2021 Google LLC 1628 * 1629 * Licensed under the Apache License, Version 2.0 (the "License"); 1630 * you may not use this file except in compliance with the License. 1631 * You may obtain a copy of the License at 1632 * 1633 * http://www.apache.org/licenses/LICENSE-2.0 1634 * 1635 * Unless required by applicable law or agreed to in writing, softw
1635are 1636 * distributed under the License is distributed on an "AS IS" BASIS, 1637 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1638 * See the License for the specific language governing permissions and 1639 * limitations under the License. 1640 */const s$=5*60,i$=s_("authIdTokenMaxAge")||s$;let Y0=null;const a$=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>i$)return;const o=n==null?void 0:n.token;Y0!==o&&(Y0=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function l$(e=IM()){const t=c_(e,"auth");if(t.isInitialized())return t.getImmediate();const n=E3(e,{popupRedirectResolver:t$,persistence:[fL,eL,D_]}),r=s_("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const s=new URL(r,location.origin);if(location.origin===s.origin){const i=a$(s.toString());Q3(n,i,()=>i(n.currentUser)),q3(n,a=>i(a))}}const o=fj("auth");return o&&T3(n,`http://${o}`),n}function c$(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}v3({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=o=>{const s=dn("internal-error");s.customData=o,n(s)},r.type="text/javascript",r.charset="UTF-8",c$().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});o$("Browser");const kc={apiKey:"AIzaSyBIJqUTq5ox2buMe4GEpwntZwJSM5RWIS0",authDomain:"x-automation-da81d.firebaseapp.com",projectId:"x-automation-da81d",appId:"1:685469811392:web:7128f00a54e4c67c2aa325"},_r=!!(kc.apiKey&&kc.authDomain&&kc.projectId);let J0=null,fr=null,G_=null;_r&&(J0=u_(kc),fr=l$(J0),G_=new qn);async function u$(){if(!_r)throw new Error("Firebase is not configured");return(await vL(fr,G_)).user}async function d$(e,t){if(!_r)throw new Error("Firebase is not configured");return(await H3(fr,e.trim(),t)).user}async function f$(e,t,n){if(!_r)throw new Error("Firebase is not configured");const r=await W3(fr,e.trim(),t);if(n&&r.user)try{await K3(r.user,{displayName:n})}catch{}return r.user}async function p$(e){if(!_r)throw new Error("Firebase is not configured");return V3(fr,e.trim())}function h$(){return _r?J3(fr):Promise.resolve()}function m$(e){return _r?Y3(fr,e):(setTimeout(()=>e(null),0),()=>{})}async function Za(){return!_r||!fr.currentUser?null:fr.currentUser.getIdToken()}class at extends Error{constructor({status:t,code:n,message:r,hint:o,retryable:s,traceId:i}){super(r||n||`${t}`),this.name="ApiError",this.status=t,this.code=n,this.hint=o,this.retryable=!!s,this.traceId=i}}function K_(e){if(!e||e instanceof at)return!1;const t=(e.message||"").toLowerCase();return e.name==="TypeError"||t.includes("failed to fetch")||t.includes("network")||t.includes("load failed")}function g$(e){return e?!!(e instanceof at&&(e.retryable||[408,429,502,503,504].includes(e.status))||K_(e)):!1}const v$={unauthorized:{message:"You're signed out â sign in again to continue."},forbidden:{message:"You don't have access to this resource.",hint:"If this looks wrong, you may be signed in as a different user."},not_found:{message:"That item doesn't exist anymore.",hint:"It may have been deleted or archived."},rate_limit:{message:"Too many requests â wait a moment and try again."},quota_exceeded:{message:"The service is temporarily throttled.",hint:"Quota resets daily. If it keeps happening, check the Firebase project usage."},card_error:{message:"Your card was declined.",hint:"Update your payment method in Settings â Billing."},upstream_stripe:{message:"Billing service hiccup â please retry."},upstream:{message:"An upstream service failed â please retry."},timeout:{message:"The request timed out â please retry."},bad_request:{}};function y$(e){if(!e)return{message:"Unknown error"};if(K_(e))return{message:"Connection lost.",hint:navigator.onLine?"The server may be restarting. Wait a few seconds and retry.":"You're offline. Reconnect and the page will pick back up automatically.",retryable:!0};if(e instanceof at){const t=v$[e.code]||{};return{message:t.message||e.message||"Something went wrong",hint:t.hint||e.hint||null,retryable:e.retryable||g$(e),traceId:e.traceId,status:e.status,code:e.code}}return{message:e.message||"Something went wrong",retryable:!1}}async function w$(e,t){const n=new TextDecoder;let r="";
1640const o=s=>{if(!s.trim())return;let i;try{i=JSON.parse(s)}catch{return}t(i)};for(;;){const{done:s,value:i}=await e.read();if(s)break;r+=n.decode(i,{stream:!0});const a=r.split(` 1641`);r=a.pop();for(const l of a)o(l)}o(r)}function S$(e,t){let n;for(;(n=e.indexOf(` 1642 1643`))!==-1;){const r=e.slice(0,n);e=e.slice(n+2);let o="message";const s=[];for(const a of r.split(` 1644`))a.startsWith("event:")?o=a.slice(6).trim():a.startsWith("data:")&&s.push(a.slice(5).trim());if(!s.length)continue;let i;try{i=JSON.parse(s.join(` 1645`))}catch{continue}try{t(o,i)}catch{}}return e}const el="https://api.xlift.ai",b$=2,x$=new Set([408,429,500,502,503,504]);async function R(e,t={}){const n=(t.method||"GET").toUpperCase(),o=n!=="GET"&&n!=="HEAD"?0:b$;let s;try{s=await Za()}catch{throw new at({status:401,code:"unauthorized",message:"Sign in to continue"})}if(!s)throw new at({status:401,code:"unauthorized",message:"Sign in to continue"});let i;for(let a=0;a<=o;a++){let l;try{l=await fetch(`${el}${e}`,{...t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`,...t.headers||{}}})}catch(u){if(i=u,a<o){await new Promise(d=>setTimeout(d,300*Math.pow(2,a)));continue}throw u}if(l.ok)return l.status===204?null:l.json();let c={};try{c=await l.json()}catch{}if(x$.has(l.status)&&a<o){await new Promise(u=>setTimeout(u,400*Math.pow(2,a)));continue}if(l.status===402&&(c.code==="plan-gate"||c.code==="plan-cap"||c.code==="credits-empty"))try{const{openPlanRequiredModal:u}=await Z(async()=>{const{openPlanRequiredModal:d}=await Promise.resolve().then(()=>n6);return{openPlanRequiredModal:d}},void 0);u({code:c.code,reason:c.error})}catch{}throw new at({status:l.status,code:c.code||`http_${l.status}`,message:c.error||l.statusText||`Request failed (${l.status})`,hint:c.hint,retryable:c.retryable,traceId:c.traceId||l.headers.get("x-trace-id")})}throw i||new at({status:0,code:"unknown",message:"Request failed"})}async function _$(e,t,n){const r=await Za();if(!r)throw new at({status:401,code:"unauthorized",message:"Sign in to continue"});const o=await fetch(`${el}/api/agent/chat`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(e),signal:n});if(!o.ok){let u={};try{u=await o.json()}catch{}throw new at({status:o.status,code:u.code||"agent-failed",message:u.error||`Copilot request failed (${o.status})`})}const s=o.body.getReader(),i=new TextDecoder;let a="",l=!1;const c=(u,d)=>{u==="done"?l=!0:t(u,d)};try{for(;;){const{done:u,value:d}=await s.read();if(u)break;a=S$(a+i.decode(d,{stream:!0}),c)}}catch(u){throw(u==null?void 0:u.name)==="AbortError"?u:new at({status:0,code:"stream-dropped",message:"The connection dropped mid-answer."})}if(!l)throw new at({status:0,code:"stream-dropped",message:"The connection dropped mid-answer."})}async function C$(e,t){const n=await Za();if(!n)throw new at({status:401,code:"unauthorized",message:"Sign in to continue"});const r=await fetch(`${el}/api/accounts/profile-batch?stream=1`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(e)});if(!r.ok){let s={};try{s=await r.json()}catch{}throw new at({status:r.status,code:s.code||`http_${r.status}`,message:s.error||`Batch profile update failed (${r.status})`})}let o=null;if(await w$(r.body.getReader(),s=>{s.progress?t==null||t(s.progress):o=s}),o!=null&&o.error)throw new at({status:500,code:"batch-failed",message:o.error});if(!o)throw new at({status:0,code:"batch-truncated",message:"The connection dropped part-way through. Some accounts were updated â check them before running this again."});return o}const nt={agentChat:_$,agentReset:e=>R("/api/agent/reset",{method:"POST",body:JSON.stringify({conversationId:e})}),agentConversations:()=>R("/api/agent/conversations"),agentConversation:e=>R(`/api/agent/conversations/${encodeURIComponent(e)}`),agentDeleteConversation:e=>R(`/api/agent/conversations/${encodeURIComponent(e)}`,{method:"DELETE"}),operatorRestart:()=>R("/api/agent/operator/restart",{method:"POST"}),listAccounts:()=>R("/api/accounts"),connectCookie:e=>R("/api/x-accounts/connect-cookie",{method:"POST",body:JSON.stringify(e)}),reauth:(e,t)=>R(`/api/x-accounts/${encodeURIComponent(e)}/reauth`,{method:"POST",body:JSON.stringify(t)}),testAccount:e=>R(`/api/x-accounts/${encodeURIComponent(e)}/test`,{method:"POST"}),patchAccount:(e,t)=>
1645R(`/api/accounts/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),removeAccount:e=>R(`/api/accounts/${encodeURIComponent(e)}`,{method:"DELETE"}),updateAccountProfile:(e,t)=>R(`/api/accounts/${encodeURIComponent(e)}/profile`,{method:"POST",body:JSON.stringify(t)}),batchProfileUpdate:C$,listCampaigns:()=>R("/api/campaigns"),getCampaign:e=>R(`/api/campaigns/${encodeURIComponent(e)}`),getCampaignSchedule:e=>R(`/api/campaigns/${encodeURIComponent(e)}/schedule`),createCampaign:e=>R("/api/campaigns",{method:"POST",body:JSON.stringify(e)}),updateCampaign:(e,t)=>R(`/api/campaigns/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),deleteCampaign:e=>R(`/api/campaigns/${encodeURIComponent(e)}`,{method:"DELETE"}),startCampaign:e=>R(`/api/campaigns/${encodeURIComponent(e)}/start`,{method:"POST"}),sequenceProgress:e=>R(`/api/campaigns/${encodeURIComponent(e)}/sequence-progress`),pauseCampaign:e=>R(`/api/campaigns/${encodeURIComponent(e)}/pause`,{method:"POST"}),listActions:(e={})=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!=null&&r!==""&&t.set(n,String(r));return R(`/api/actions${t.toString()?`?${t}`:""}`)},patchAction:(e,t)=>R(`/api/actions/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),createOneOffAction:e=>R("/api/actions",{method:"POST",body:JSON.stringify(e)}),calendarEvents:(e,t)=>R(`/api/actions/calendar?from=${e}&to=${t}`),bulkRescheduleActions:e=>R("/api/actions/bulk-reschedule",{method:"POST",body:JSON.stringify(e)}),previewAutoPosts:e=>R("/api/campaigns/auto-posts/preview",{method:"POST",body:JSON.stringify(e)}),cloneCampaign:(e,t)=>R(`/api/campaigns/${encodeURIComponent(e)}/clone`,{method:"POST",body:JSON.stringify({name:t})}),cloneTemplate:(e,t)=>
1645R(`/api/templates/${encodeURIComponent(e)}/clone`,{method:"POST",body:JSON.stringify({name:t})}),approveAction:e=>R(`/api/actions/${encodeURIComponent(e)}/approve`,{method:"POST"}),rejectAction:(e,t)=>R(`/api/actions/${encodeURIComponent(e)}/reject`,{method:"POST",body:JSON.stringify({reason:t})}),approveActionsBulk:e=>R("/api/actions/approve-bulk",{method:"POST",body:JSON.stringify({ids:e})}),rejectActionsBulk:(e,t)=>R("/api/actions/reject-bulk",{method:"POST",body:JSON.stringify({ids:e,reason:t})}),listLists:()=>R("/api/lists"),createList:e=>R("/api/lists",{method:"POST",body:JSON.stringify(e)}),getList:e=>R(`/api/lists/${encodeURIComponent(e)}`),removeList:e=>R(`/api/lists/${encodeURIComponent(e)}`,{method:"DELETE"}),addHandles:(e,t)=>R(`/api/lists/${encodeURIComponent(e)}/handles`,{method:"POST",body:JSON.stringify(t)}),createSmartList:e=>R("/api/lists/smart",{method:"POST",body:JSON.stringify(e)}),refreshSmartList:e=>R(`/api/lists/${encodeURIComponent(e)}/refresh`,{method:"POST"}),listAnalytics:e=>R(`/api/lists/${encodeURIComponent(e)}/analytics`),listCompetitors:()=>R("/api/competitors"),addCompetitor:e=>R("/api/competitors",{method:"POST",body:JSON.stringify(e)}),removeCompetitor:e=>R(`/api/competitors/${encodeURIComponent(e)}`,{method:"DELETE"}
1645),refreshCompetitor:e=>R(`/api/competitors/${encodeURIComponent(e)}/refresh`,{method:"POST"}),updateCompetitor:(e,t)=>R(`/api/competitors/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),pipeCompetitorLatest:e=>R(`/api/competitors/${encodeURIComponent(e)}/pipe-latest`,{method:"POST"}),listReplyGuyConfigs:()=>R("/api/reply-guy/configs"),getReplyGuyConfig:e=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}`),saveReplyGuyConfig:(e,t)=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(t)}),removeReplyGuyConfig:e=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}`,{method:"DELETE"}),refreshReplyGuy:e=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}/refresh-now`,{method:"POST"}),addReplyGuyTarget:(e,t)=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}/add-target`,{method:"POST",body:JSON.stringify({handle:t})}),snoozeReplyGuyTarget:(e,t,n)=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}/snooze`,{method:"POST",body:JSON.stringify({handle:t,days:n})}),replyGuyStats:(e,t=30)=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}/stats?days=${t}`),replyGuySuggestedTargets:(e,t=10)=>R(`/api/reply-guy/configs/${encodeURIComponent(e)}/suggested-targets?limit=${t}`),listBaits:()=>R("/api/bait"),createBait:e=>R("/api/bait",{method:"POST",body:JSON.stringify(e)}),updateBait:(e,t)=>R(`/api/bait/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),removeBait:e=>R(`/api/bait/${encodeURIComponent(e)}`,{method:"DELETE"}),refreshBait:e=>R(`/api/bait/${encodeURIComponent(e)}/refresh`,{method:"POST"}),exportBait:async e=>{const t=await Za(),n=await fetch(`${el}/api/bait/${encodeURIComponent(e)}/export`,{headers:{Authorization:`Bearer ${t}`}});if(!n.ok)throw new Error(`Export failed: ${n.status}`);return n.text()},baitRecentTweets:e=>R(`/api/bait/recent-tweets?accountId=${encodeURIComponent(e)}`),baitAiWrite:e=>R("/api/bait/ai-write",{method:"POST",body:JSON.stringify(e)}),listLoops:()=>R("/api/loops"),topEngagers:({days:e=30,limit:t=50}={})=>R(`/api/engagers/top?days=${e}&limit=${t}`),competitorDeltas:(e,t=14)=>R(`/api/competitors/${encodeURIComponent(e)}/deltas?days=${t}`),removeHandle:(e,t)=>R(`/api/lists/${encodeURIComponent(e)}/handles/${encodeURIComponent(t)}`,{method:"DELETE"}),listsContainingHandle:e=>R(`/api/lists/containing/${encodeURIComponent(e)}`),importXList:(e,t)=>R(`/api/lists/${encodeURIComponent(e)}/import-x-list`,{method:"POST",body:JSON.stringify(t)}),lookupHandle:(e,t)=>R(`/api/lists/lookup-handle?handle=${encodeURIComponent(e)}${t?`&accountId=${encodeURIComponent(t)}`:""}`),listTemplates:e=>R(`/api/templates${e?`?type=${e}`:""}`),getTemplate:e=>R(`/api/templates/${encodeURIComponent(e)}`),createTemplate:e=>R("/api/templates",{method:"POST",body:JSON.stringify(e)}),patchTemplate:(e,t)=>
1645R(`/api/templates/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),removeTemplate:e=>R(`/api/templates/${encodeURIComponent(e)}`,{method:"DELETE"}),previewTemplate:e=>R("/api/templates/preview",{method:"POST",body:JSON.stringify(e)}),recentActions:(e=50)=>R(`/api/actions?limit=${e}`),faceLibrary:(e=1,t=60)=>R(`/api/face-library?page=${e}&limit=${t}`),backgroundLibrary:(e=1,t=60)=>R(`/api/background-library?page=${e}&limit=${t}`),getBrand:()=>R("/api/brand"),saveBrand:e=>R("/api/brand",{method:"PUT",body:JSON.stringify(e)}),generateBrand:e=>R("/api/brand/generate",{method:"POST",body:JSON.stringify({url:e})}),getAccountBrand:e=>R(`/api/brand/account/${encodeURIComponent(e)}`),saveAccountBrand:(e,t)=>R(`/api/brand/account/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(t)}),clearAccountBrand:e=>R(`/api/brand/account/${encodeURIComponent(e)}`,{method:"DELETE"}),uploadMedia:e=>R("/api/media/upload",{method:"POST",body:JSON.stringify(e)}),mediaAssetUrl:e=>R("/api/media/asset",{method:"POST",body:JSON.stringify(e)}),uploadToStorage:async(e,t)=>{const n=await fetch(e,{method:"PUT",headers:{"Content-Type":t.type},body:t});if(!n.ok)throw new Error(`Storage upload failed (${n.status})`)},repurpose:e=>R("/api/ai/repurpose",{method:"POST",body:JSON.stringify(e)}),inspirationFeed:(e={})=>{const t=new URLSearchParams;return e.q&&t.set("q",e.q),e.count&&t.set("count",e.count),e.minLikes&&t.set("minLikes",e.minLikes),R(`/api/inspiration${t.toString()?`?${t}`:""}`)},bestTimeToPost:(e={})=>{const t=new URLSearchParams;return e.accountId&&t.set("accountId",e.accountId),e.range&&t.set("range",e.range),R(`/api/analytics/best-time${t.toString()?`?${t}`:""}`)},createOneOff:e=>R("/api/actions",{method:"POST",body:JSON.stringify(e)}),listHooks:(e={})=>{const t=new URLSearchParams;return e.category&&t.set("category",e.category),e.tag&&t.set("tag",e.tag),R(`/api/hooks${t.toString()?`?${t}`:""}`)},expandToThread:e=>R("/api/ai/expand-to-thread",{method:"POST",body:JSON.stringify(e)}),extendThread:e=>R("/api/ai/extend-thread",{method:"POST",body:JSON.stringify(e)}),aiWrite:e=>R("/api/ai/write",{method:"POST",body:JSON.stringify(e)}),scrapeLeads:e=>R("/api/scraper/search",{method:"POST",body:JSON.stringify(e)}),scoreLeads:e=>R("/api/scraper/score",{method:"POST",body:JSON.stringify(e)}),scrapedListMembership:e=>R(`/api/scraper/list-membership?handles=${encodeURIComponent(e.join(","))}`),scrapeLeadsStream:async e=>{const t=await Za();if(!t)throw new Error("Not signed in");const n=new URLSearchParams({token:t});for(const[r,o]of Object.entries(e))o==null||o===""||n.set(r,typeof o=="object"?JSON.stringify(o):String(o));return new EventSource(`${el}/api/scraper/search-stream?${n.toString()}`)},analyticsOverview:(e="7d",t=null)=>{const n=new URLSearchParams({range:e});return t&&n.set("accountId",t),R(`/api/analytics/overview?${n}`)},analyticsCampaign:(e,t="30d")=>R(`/api/analytics/campaigns/${encodeURIComponent(e)}?range=${encodeURIComponent(t)}`),analyticsPool:(e="30d")=>R(`/api/analytics/pool?range=${e}`),analyticsAccount:(e,t="30d")=>R(`/api/analytics/accounts/${encodeURIComponent(e)}?range=${encodeURIComponent(t)}`),analyticsActivityToday:()=>R("/api/analytics/activity-today"),analyticsTweetStats:(e={})=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{r!=null&&t.set(n,String(r))}),R(`/api/analytics/tweet-stats?${t}`)},copilotConfigs:()=>R("/api/copilot/configs"),copilotConfig:e=>R(`/api/copilot/configs/${encodeURIComponent(e)}`),saveCopilotConfig:(e,t)=>R(`/api/copilot/configs/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(t)}),copilotDraft:e=>R("/api/copilot/draft",{method:"POST",body:JSON.stringify(e)}),copilotThreads:()=>R("/api/copilot/threads"),copilotTakeOver:e=>R("/api/copilot/threads/take-over",{method:"POST",body:JSON.stringify(e)}),copilotPatchThread:e=>R("/api/copilot/threads",{method:"PATCH",body:JSON.stringify(e)}),getPipelineStages:()=>R("/api/pipeline/stages"),savePipelineStages:e=>R("/api/pipeline/stages",{method:"PUT",body:JSON.stringify({stages:e})}),listAudit:()=>R("/api/audit"),listNotifications:(e=!1)=>R(`/api/notifications${e?"?unreadOnly=1":""}`),markNotificationRead:e=>R(`/api/notifications/${encodeURIComponent(e)}/read`,{method:"POST"}),markAllNotificationsRead:()=>R("/api/notifications/mark-all",{method:"POST"}),listProspects:()=>R("/api/prospects"),getProspect:e=>R(`/api/prospects/${encodeURIComponent(e)}`),listTriggers:()=>R("/api/triggers"),getTrigger:e=>R(`/api/triggers/${encodeURIComponent(e)}`),createTrigger:e=>R("/api/triggers",{method:"POST",body:JSON.stringify(e)}),updateTrigger:(e,t)=>R(`/api/triggers/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(t)}),deleteTrigger:e=>R(`/api/triggers/${encodeURIComponent(e)}`,{method:"DELETE"}),toggleTrigger:e=>R(`/api/triggers/${encodeURIComponent(e)}/toggle`,{method:"POST"}),dryRunTrigger:e=>R("/api/triggers/dry-run",{method:"POST",body:JSON.stringify(e)}),listTriggerFires:(e,t=50)=>R(e?`/api/triggers/${encodeURIComponent(e)}/fires?limit=${t}`:`/api/triggers/fires?limit=${t}`),getUser:()=>R("/api/user"),updateUser:e=>R("/api/user",{method:"PATCH",body:JSON.stringify(e)}),completeOnboarding:(e={})=>R("/api/user/complete-onboarding",{method:"POST",body:JSON.stringify(e)}),sendSupportTicket:e=>R("/api/user/support-ticket",{method:"POST",body:JSON.stringify(e)}),setKillSwitch:e=>R("/api/user/kill-switch",{method:"POST",body:JSON.stringify({on:e})}),listContentSources:()=>R("/api/content-sources"),previewContentSource:e=>R("/api/content-sources/preview",{method:"POST",body:JSON.stringify(e)}),createContentSource:e=>R("/api/content-sources",{method:"POST",body:JSON.stringify(e)}),updateContentSource:(e,t)=>R(`/api/content-sources/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteContentSource:e=>R(`/api/content-sources/${e}`,{method:"DELETE"}),pollContentSource:e=>R(`/api/content-sources/${e}/poll`,{method:"POST"}),getPostingIntelligence:e=>R(`/api/posting-intelligence/${e}`),computeFingerprint:e=>R(`/api/posting-intelligence/${e}/fingerprint`,{method:"POST"}),recycleEvergreen:(e,t)=>R(`/api/posting-intelligence/${e}/evergreen`,{method:"POST",body:JSON.stringify(t||{})}),setAutoEvergreen:(e,t)=>R(`/api/posting-intelligence/${e}/evergreen`,{method:"PATCH",body:JSON.stringify(t)}),listBlocklist:()=>R("/api/blocklist"),addBlocklist:e=>R("/api/blocklist",{method:"POST",body:JSON.stringify(e)}),removeBlocklist:e=>R(`/api/blocklist/${encodeURIComponent(e)}`,{method:"DELETE"}),getBilling:()=>R("/api/billing"),billingCheckout:e=>R("/api/billing/checkout",{method:"POST",body:JSON.stringify(e)}),billingPortal:e=>R("/api/billing/portal",{method:"POST",body:JSON.stringify(e)}),billingSetAccountSlots:e=>R("/api/billing/addons/account-slots",{method:"POST",body:JSON.stringify({qty:e})}),billingBuyAiCredits:e=>R("/api/billing/addons/ai-credits",{method:"POST",body:JSON.stringify(e)}),listInboxEvents:(e={})=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!=null&&r!==""&&t.set(n,String(r));return R(`/api/inbox/events${t.toString()?`?${t}`:""}`)},getInboxThread:e=>R(`/api/inbox/thread?tweetId=${encodeURIComponent(e)}`),audienceSnapshot:e=>R(`/api/audience/snapshot?accountId=${encodeURIComponent(e)}`),audienceDeltas:(e,t=14)=>R(`/api/audience/deltas?accountId=${encodeURIComponent(e)}&days=${t}`),audienceCheckFollow:(e,t)=>R(`/api/audience/check-follow?accountId=${encodeURIComponent(e)}&handle=${encodeURIComponent(t)}`),audienceRefreshNow:e=>R("/api/audience/refresh-now",{method:"POST",body:JSON.stringify({accountId:e})}),runSeedDiscovery:e=>R("/api/discover/seed",{method:"POST",body:JSON.stringify(e)}),runListLookalike:e=>R("/api/discover/list",{method:"POST",body:JSON.stringify(e)}),listDiscoveryRuns:()=>R("/api/discover/runs"),getDiscoveryRun:e=>R(`/api/discover/runs/${encodeURIComponent(e)}`),saveDiscoveryToList:e=>R("/api/discover/save-to-list",{method:"POST",body:JSON.stringify(e)}),listIntentPresets:()=>R("/api/intent/presets"),fetchIntentFeed:(e={})=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!=null&&r!==""&&t.set(n,String(r));return R(`/api/intent${t.toString()?`?${t}`:""}`)},dismissIntentTweet:e=>R("/api/intent/dismiss",{method:"POST",body:JSON.stringify({tweetId:e})}),undismissIntentTweet:e=>R("/api/intent/undismiss",{method:"POST",body:JSON.stringify({tweetId:e})}),bulkDismissIntent:e=>R("/api/intent/bulk-dismiss",{method:"POST",body:JSON.stringify({tweetIds:e})}),bulkDmFromIntent:e=>R("/api/intent/bulk-dm",{method:"POST",body:JSON.stringify(e)}),getGuardrails:()=>R("/api/guardrails"),putGuardrails:e=>R("/api/guardrails",{method:"PUT",body:JSON.stringify(e)}),getProspectClaims:e=>{const t=Array.isArray(e)?`handles=${encodeURIComponent(e.join(","))}`:`handle=${encodeURIComponent(e)}`;return R(`/api/guardrails/claims?${t}`)},releaseClaim:e=>R("/api/guardrails/release",{method:"POST",body:JSON.stringify(e)}),listAccountGroups:()=>R("/api/accounts/groups"),bulkTagAccounts:e=>R("/api/accounts/bulk-tag",{method:"POST",body:JSON.stringify(e)}),bulkUpdateAccounts:e=>R("/api/accounts/bulk-update",{method:"POST",body:JSON.stringify(e)}),enrollHandleInSequence:(e,t)=>R(`/api/campaigns/${encodeURIComponent(e)}/enroll-handle`,{method:"POST",body:JSON.stringify(t)}),listWatches:()=>R("/api/inbox/watches"),watchTweet:e=>R("/api/inbox/watches",{method:"POST",body:JSON.stringify(e)}),unwatchTweet:e=>R(`/api/inbox/watches/${encodeURIComponent(e)}`,{method:"DELETE"}),engageLike:(e,t,n=null)=>R(`/api/x-accounts/${encodeURIComponent(e)}/engage/like`,{method:"POST",body:JSON.stringify({tweetId:t,authorHandle:n})}),engageRetweet:(e,t,n=null)=>R(`/api/x-accounts/${encodeURIComponent(e)}/engage/retweet`,{method:"POST",body:JSON.stringify({tweetId:t,authorHandle:n})}),engageReply:(e,t,n,r=null)=>R(`/api/x-accounts/${encodeURIComponent(e)}/engage/reply`,{method:"POST",body:JSON.stringify({tweetId:t,text:n,authorHandle:r})}),engageQuote:(e,t,n,r=null)=>R(`/api/x-accounts/${encodeURIComponent(e)}/engage/quote`,{method:"POST",body:JSON.stringify({tweetUrl:t,text:n,authorHandle:r})}),engageBookmark:(e,t,n=null)=>R(`/api/x-accounts/${encodeURIComponent(e)}/engage/bookmark`,{method:"POST",body:JSON.stringify({tweetId:t,authorHandle:n})}),sendTestDm:(e,t)=>R(`/api/x-accounts/${encodeURIComponent(e)}
1645/send-test`,{method:"POST",body:JSON.stringify(t)}),listAllConversations:()=>R("/api/conversations"),listAccountConversations:e=>R(`/api/x-accounts/${encodeURIComponent(e)}/conversations`),getConversation:(e,t)=>R(`/api/x-accounts/${encodeURIComponent(e)}/conversations/${encodeURIComponent(t)}`),sendInConversation:(e,t,n)=>R(`/api/x-accounts/${encodeURIComponent(e)}/conversations/${encodeURIComponent(t)}/send`,{method:"POST",body:JSON.stringify({text:n})})};/** 1646 * @license @tabler/icons-react v3.43.0 - MIT 1647 * 1648 * This source code is licensed under the MIT license. 1649 * See the LICENSE file in the root directory of this source tree. 1650 */var E$={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** 1651 * @license @tabler/icons-react v3.43.0 - MIT 1652 * 1653 * This source code is licensed under the MIT license. 1654 * See the LICENSE file in the root directory of this source tree. 1655 */const ne=(e,t,n,r)=>{const o=m.forwardRef(({color:s="currentColor",size:i=24,stroke:a=2,title:l,className:c,children:u,...d},p)=>m.createElement("svg",{ref:p,...E$[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),...e==="filled"?{fill:s}:{strokeWidth:a,stroke:s},...d},[l&&m.createElement("title",{key:"svg-title"},l),...r.map(([h,v])=>m.createElement(h,v)),...Array.isArray(u)?u:[u]]));return o.displayName=`${n}`,o};/** 1656 * @license @tabler/icons-react v3.43.0 - MIT 1657 * 1658 * This source code is licensed under the MIT license. 1659 * See the LICENSE file in the root directory of this source tree. 1660 */const P$=[["path",{d:"M3 12h4l3 8l4 -16l3 8h4",key:"svg-0"}]],X0=ne("outline","activity","Activity",P$);/** 1661 * @license @tabler/icons-react v3.43.0 - MIT 1662 * 1663 * This source code is licensed under the MIT license. 1664 * See the LICENSE file in the root directory of this source tree. 1665 */const T$=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Nl=ne("outline","alert-triangle","AlertTriangle",T$);/** 1666 * @license @tabler/icons-react v3.43.0 - MIT 1667 * 1668 * This source code is licensed under the MIT license. 1669 * See the LICENSE file in the root directory of this source tree. 1670 */const k$=[["path",{d:"M6 18l0 -3",key:"svg-0"}],["path",{d:"M10 18l0 -6",key:"svg-1"}],["path",{d:"M14 18l0 -9",key:"svg-2"}],["path",{d:"M18 18l0 -12",key:"svg-3"}]],R$=ne("outline","antenna-bars-5","AntennaBars5",k$);/** 1671 * @license @tabler/icons-react v3.43.0 - MIT 1672 * 1673 * This source code is licensed under the MIT license. 1674 * See the LICENSE file in the root directory of this source tree. 1675 */const I$=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],N$=ne("outline","arrow-up","ArrowUp",I$);/** 1676 * @license @tabler/icons-react v3.43.0 - MIT 1677 * 1678 * This source code is licensed under the MIT license. 1679 * See the LICENSE file in the root directory of this source tree. 1680 */const O$=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],Z0=ne("outline","bell","Bell",O$);/** 1681 * @license @tabler/icons-react v3.43.0 - MIT 1682 * 1683 * This source code is licensed under the MIT license. 1684 * See the LICENSE file in the root directory of this source tree. 1685 */const A$=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],j$=ne("outline","bolt","Bolt",A$);/** 1686 * @license @tabler/icons-react v3.43.0 - MIT 1687 * 1688 * This source code is licensed under the MIT license. 1689 * See the LICENSE file in the root directory of this source tree. 1690 */const M$=[["path",{d:"M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945",key:"svg-0"}]],L$=ne("outline","brand-google","BrandGoogle",M$);/** 1691 * @license @tabler/icons-react v3.43.0 - MIT 1692 * 1693 * This source code is licensed under the MIT license. 1694 * See the LICENSE file in the root directory of this source tree. 1695 */const $$=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M8 14v4",key:"svg-4"}],["path",{d:"M12 14v4",key:"svg-5"}],["path",{d:"M16 14v4",key:"svg-6"}]],D$=ne("outline","calendar-month","CalendarMonth",$$);/** 1696 * @license @tabler/icons-react v3.43.0 - MIT 1697 * 1698 * This source code is licensed under the MIT license. 1699 * See the LICENSE file in the root directory of this source tree. 1700 */const z$=[["path",{d:"M3 3v18h18",key:"svg-0"}],["path",{d:"M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M17 7a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M12 15a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M10.16 10.62l2.34 2.88",key:"svg-4"}],["path",{d:"M15.088 13.328l2.837 -4.586",key:"svg-5"}
1700]],U$=ne("outline","chart-dots","ChartDots",z$);/** 1701 * @license @tabler/icons-react v3.43.0 - MIT 1702 * 1703 * This source code is licensed under the MIT license. 1704 * See the LICENSE file in the root directory of this source tree. 1705 */const F$=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],q_=ne("outline","check","Check",F$);/** 1706 * @license @tabler/icons-react v3.43.0 - MIT 1707 * 1708 * This source code is licensed under the MIT license. 1709 * See the LICENSE file in the root directory of this source tree. 1710 */const B$=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],V$=ne("outline","chevron-down","ChevronDown",B$);/** 1711 * @license @tabler/icons-react v3.43.0 - MIT 1712 * 1713 * This source code is licensed under the MIT license. 1714 * See the LICENSE file in the root directory of this source tree. 1715 */const W$=[["path",{d:"M8 16l2 -6l6 -2l-2 6l-6 2",key:"svg-0"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-1"}],["path",{d:"M12 3l0 2",key:"svg-2"}],["path",{d:"M12 19l0 2",key:"svg-3"}],["path",{d:"M3 12l2 0",key:"svg-4"}],["path",{d:"M19 12l2 0",key:"svg-5"}]],H$=ne("outline","compass","Compass",W$);/** 1716 * @license @tabler/icons-react v3.43.0 - MIT 1717 * 1718 * This source code is licensed under the MIT license. 1719 * See the LICENSE file in the root directory of this source tree. 1720 */const G$=[["path",{d:"M12 6l4 6l5 -4l-2 10h-14l-2 -10l5 4l4 -6",key:"svg-0"}]],Su=ne("outline","crown","Crown",G$);/** 1721 * @license @tabler/icons-react v3.43.0 - MIT 1722 * 1723 * This source code is licensed under the MIT license. 1724 * See the LICENSE file in the root directory of this source tree. 1725 */const K$=[["path",{d:"M4 20l10 -10m0 -5v5h5m-9 -1v5h5m-9 -1v5h5m-5 -5l4 -4l4 -4",key:"svg-0"}],["path",{d:"M19 10c.638 -.636 1 -1.515 1 -2.486a3.515 3.515 0 0 0 -3.517 -3.514c-.97 0 -1.847 .367 -2.483 1m-3 13l4 -4l4 -4",key:"svg-1"}]],q$=ne("outline","feather","Feather",K$);/** 1726 * @license @tabler/icons-react v3.43.0 - MIT 1727 * 1728 * This source code is licensed under the MIT license. 1729 * See the LICENSE file in the root directory of this source tree. 1730 */const Q$=[["path",{d:"M16 9v6a5 5 0 0 1 -10 0v-4l3 3",key:"svg-0"}],["path",{d:"M14 7a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M16 5v-2",key:"svg-2"}]],Y$=ne("outline","fish-hook","FishHook",Q$);/** 1731 * @license @tabler/icons-react v3.43.0 - MIT 1732 * 1733 * This source code is licensed under the MIT license. 1734 * See the LICENSE file in the root directory of this source tree. 1735 */const J$=[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]],X$=ne("outline","history","History",J$);/** 1736 * @license @tabler/icons-react v3.43.0 - MIT 1737 * 1738 * This source code is licensed under the MIT license. 1739 * See the LICENSE file in the root directory of this source tree. 1740 */const Z$=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]],eD=ne("outline","home","Home",Z$);/** 1741 * @license @tabler/icons-react v3.43.0 - MIT 1742 * 1743 * This source code is licensed under the MIT license. 1744 * See the LICENSE file in the root directory of this source tree. 1745 */const tD=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],nD=ne("outline","layout-dashboard","LayoutDashboard",tD);/** 1746 * @license @tabler/icons-react v3.43.0 - MIT 1747 * 1748 * This source code is licensed under the MIT license. 1749 * See the LICENSE file in the root directory of this source tree. 1750 */const rD=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-1"}],["path",{d:"M15 15l3.35 3.35",key:"svg-2"}],["path",{d:"M9 15l-3.35 3.35",key:"svg-3"}],["path",{d:"M5.65 5.65l3.35 3.35",key:"svg-4"}],["path",{d:"M18.35 5.65l-3.35 3.35",key:"svg-5"}]],oD=ne("outline","lifebuoy","Lifebuoy",rD);/** 1751 * @license @tabler/icons-react v3.43.0 - MIT 1752 * 1753 * This source code is licensed under the MIT license. 1754 * See the LICENSE file in the root directory of this source tree. 1755 */const sD=[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]],iD=ne("outline","list","List",sD);/** 1756 * @license @tabler/icons-react v3.43.0 - MIT 1757 * 1758 * This source code is licensed under the MIT license. 1759 * See the LICENSE file in the root directory of this source tree. 1760 */const aD=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],tl=ne("outline","lock","Lock",aD);/** 1761 * @license @tabler/icons-react v3.43.0 - MIT 1762 * 1763 * This source code is licensed under the MIT license. 1764 * See the LICENSE file in the root directory of this source tree. 1765 */const lD=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],cD=ne("outline","logout","Logout",lD);/** 1766 * @license @tabler/icons-react v3.43.0 - MIT 1767 * 1768 * This source code is licensed under the MIT license. 1769 * See the LICENSE file in the root directory of this source tree. 1770 */const uD=[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]],Bg=ne("outline","mail","Mail",uD);/** 1771 * @license @tabler/icons-react v3.43.0 - MIT 1772 * 1773 * This source code is licensed under the MIT license. 1774 * See the LICENSE file in the root directory of this source tree. 1775 */const dD=[["path",{d:"M12 11v.01",key:"svg-0"}],["path",{d:"M8 11v.01",key:"svg-1"}],["path",{d:"M16 11v.01",key:"svg-2"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3l12 0",key:"svg-3"}]],fD=ne("outline","message-dots","MessageDots",dD);/** 1776 * @license @tabler/icons-react v3.43.0 - MIT 1777 * 1778 * This source code is licensed under the MIT license. 1779 * See the LICENSE file in the root directory of this source tree. 1780 */const pD=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],hD=ne("outline","moon","Moon",pD);/** 1781 * @license @tabler/icons-react v3.43.0 - MIT 1782 * 1783 * This source code is licensed under the MIT license. 1784 * See the LICENSE file in the root directory of this source tree. 1785 */const mD=[["path",{d:"M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12",key:"svg-0"}],["path",{d:"M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12",key:"svg-1"}]],Q_=ne("outline","player-pause","PlayerPause",mD);/** 1786 * @license @tabler/icons-react v3.43.0 - MIT 1787 * 1788 * This source code is licensed under the MIT license. 1789 * See the LICENSE file in the root directory of this source tree. 1790 */const gD=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],Y_=ne("outline","player-play","PlayerPlay",gD);/** 1791 * @license @tabler/icons-react v3.43.0 - MIT 1792 * 1793 * This source code is licensed under the MIT license. 1794 * See the LICENSE file in the root directory of this source tree. 1795 */const vD=[["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5",key:"svg-0"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5",key:"svg-1"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-2"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-3"}],["path",{d:"M10 11l-2 2",key:"svg-4"}],["path",{d:"M13 14l-2 2",key:"svg-5"}]],yD=ne("outline","plug-connected","PlugConnected",vD);/** 1796 * @license @tabler/icons-react v3.43.0 - MIT 1797 * 1798 * This source code is licensed under the MIT license. 1799 * See the LICENSE file in the root directory of this source tree. 1800 */const wD=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],SD=ne("outline","refresh","Refresh",wD);/** 1801 * @license @tabler/icons-react v3.43.0 - MIT 1802 * 1803 * This source code is licensed under the MIT license. 1804 * See the LICENSE file in the root directory of this source tree. 1805 */const bD=[["path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3",key:"svg-0"}],["path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3",key:"svg-1"}],["path",{d:"M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],Pd=ne("outline","rocket","Rocket",bD);/** 1806 * @license @tabler/icons-react v3.43.0 - MIT 1807 * 1808 * This source code is licensed under the MIT license. 1809 * See the LICENSE file in the root directory of this source tree. 1810 */const xD=[["path",{d:"M4 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"svg-1"}],["path",{d:"M4 11a9 9 0 0 1 9 9",key:"svg-2"}]],_D=ne("outline","rss","Rss",xD);/** 1811 * @license @tabler/icons-react v3.43.0 - MIT 1812 * 1813 * This source code is licensed under the MIT license. 1814 * See the LICENSE file in the root directory of this source tree. 1815 */const CD=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],ED=ne("outline","search","Search",CD);/** 1816 * @license @tabler/icons-react v3.43.0 - MIT 1817 * 1818 * This source code is licensed under the MIT license. 1819 * See the LICENSE file in the root directory of this source tree. 1820 */const PD=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],TD=ne("outline","settings","Settings",PD);/** 1821 * @license @tabler/icons-react v3.43.0 - MIT 1822 * 1823 * This source code is licensed under the MIT license. 1824 * See the LICENSE file in the root directory of this source tree. 1825 */const kD=[["path",{d:"M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06",key:"svg-0"}],["path",{d:"M15 19l2 2l4 -4",key:"svg-1"}]],J_=ne("outline","shield-check","ShieldCheck",kD);/** 1826 * @license @tabler/icons-react v3.43.0 - MIT 1827 * 1828 * This source code is licensed under the MIT license. 1829 * See the LICENSE file in the root directory of this source tree. 1830 */const RD=[["path",{d:"M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3",key:"svg-0"}],["path",{d:"M11 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 12l0 2.5",key:"svg-2"}]],ID=ne("outline","shield-lock","ShieldLock",RD);/** 1831 * @license @tabler/icons-react v3.43.0 - MIT 1832 * 1833 * This source code is licensed under the MIT license. 1834 * See the LICENSE file in the root directory of this source tree. 1835 */const ND=[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]],X_=ne("outline","sparkles","Sparkles",ND);/** 1836 * @license @tabler/icons-react v3.43.0 - MIT 1837 * 1838 * This source code is licensed under the MIT license. 1839 * See the LICENSE file in the root directory of this source tree. 1840 */const OD=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],AD=ne("outline","sun","Sun",OD);/** 1841 * @license @tabler/icons-react v3.43.0 - MIT 1842 * 1843 * This source code is licensed under the MIT license. 1844 * See the LICENSE file in the root directory of this source tree. 1845 */const jD=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 12a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],MD=ne("outline","target","Target",jD);/** 1846 * @license @tabler/icons-react v3.43.0 - MIT 1847 * 1848 * This source code is licensed under the MIT license. 1849 * See the LICENSE file in the root directory of this source tree. 1850 */const LD=[["path",{d:"M4 5a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1l0 -2",key:"svg-0"}],["path",{d:"M4 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-1"}],["path",{d:"M14 12l6 0",key:"svg-2"}],["path",{d:"M14 16l6 0",key:"svg-3"}],["path",{d:"M14 20l6 0",key:"svg-4"}]],$D=ne("outline","template","Template",LD);/** 1851 * @license @tabler/icons-react v3.43.0 - MIT 1852 * 1853 * This source code is licensed under the MIT license. 1854 * See the LICENSE file in the root directory of this source tree. 1855 */const DD=[["path",{d:"M8 21l8 0",key:"svg-0"}],["path",{d:"M12 17l0 4",key:"svg-1"}],["path",{d:"M7 4l10 0",key:"svg-2"}],["path",{d:"M17 4v8a5 5 0 0 1 -10 0v-8",key:"svg-3"}],["path",{d:"M3 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-4"}],["path",{d:"M17 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-5"}]],zD=ne("outline","trophy","Trophy",DD);/** 1856 * @license @tabler/icons-react v3.43.0 - MIT 1857 * 1858 * This source code is licensed under the MIT license. 1859 * See the LICENSE file in the root directory of this source tree. 1860 */const UD=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h1.5",key:"svg-1"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-2"}],["path",{d:"M20.2 20.2l1.8 1.8",key:"svg-3"}]],Z_=ne("outline","user-search","UserSearch",UD);/** 1861 * @license @tabler/icons-react v3.43.0 - MIT 1862 * 1863 * This source code is licensed under the MIT license. 1864 * See the LICENSE file in the root directory of this source tree. 1865 */const FD=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],BD=ne("outline","user","User",FD);/** 1866 * @license @tabler/icons-react v3.43.0 - MIT 1867 * 1868 * This source code is licensed under the MIT license. 1869 * See the LICENSE file in the root directory of this source tree. 1870 */const VD=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],gh=ne("outline","users","Users",VD);/** 1871 * @license @tabler/icons-react v3.43.0 - MIT 1872 * 1873 * This source code is licensed under the MIT license. 1874 * See the LICENSE file in the root directory of this source tree. 1875 */const WD=[["path",{d:"M12 18l.01 0",key:"svg-0"}],["path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0",key:"svg-1"}],["path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2",key:"svg-2"}],["path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]],HD=ne("outline","wifi-off","WifiOff",WD);function pr(e,t){const n=y$(e);Ln.show({color:"red",title:t||void 0,message:n.hint?`${n.message} ${n.hint}`:n.message,autoClose:n.retryable?4e3:6e3})}function eC(e,t={}){Ln.show({color:"green",message:e,autoClose:3e3,...t})}function k5(e,t={}){Ln.show({color:"yellow",message:e,autoClose:5e3,...t})}function GD(){return _r?f.jsx("div",{className:"xb-grid-bg",style:{minHeight:"100vh",display:"grid",placeItems:"center",padding:24},children:f.jsxs(Ne,{align:"center",gap:"lg",style:{maxWidth:460,width:"100%",textAlign:"center"},children:[f.jsx("img",{src:"/logo.svg",alt:"",className:"xb-float",style:{width:80,height:80}}),f.jsxs(Ne,{gap:6,align:"center",children:[f.jsxs(On,{order:1,style:{letterSpacing:"-0.02em"},children:["Grow your brand on"," ",f.jsx("span",{style:{display:"inline-block",background:"var(--mantine-color-text)",color:"var(--mantine-color-body)",padding:"0 12px",borderRadius:8,transform:"translateY(-2px)"},children:"X"})]}),f.jsx(ie,{c:"dimmed",size:"
1875md",children:"Cloud-based automation for X. Sign in to connect accounts and run campaigns."})]}),f.jsx(KD,{}),f.jsxs(ie,{size:"xs",c:"dimmed",children:["Free during beta · ",f.jsx(io,{href:"https://www.xlift.ai",target:"_blank",rel:"noreferrer",inherit:!0,children:"Learn more at xlift.ai"})]}),f.jsxs(he,{gap:"xs",justify:"center",children:[f.jsx(io,{href:"/terms",size:"xs",c:"dimmed",children:"Terms"}),f.jsx(ie,{size:"xs",c:"dimmed",children:"·"}),f.jsx(io,{href:"/privacy",size:"xs",c:"dimmed",children:"Privacy"})]})]})}):f.jsx(XD,{})}function KD(){const[e,t]=m.useState("signin");return f.jsxs(Ne,{gap:"md",style:{width:"100%"},children:[f.jsxs(mt,{value:e,onChange:t,variant:"default",children:[f.jsxs(mt.List,{grow:!0,children:[f.jsx(mt.Tab,{value:"signin",children:"Sign in"}),f.jsx(mt.Tab,{value:"signup",children:"Create account"})]}),f.jsx(mt.Panel,{value:"signin",pt:"md",children:f.jsx(qD,{})}),f.jsx(mt.Panel,{value:"signup",pt:"md",children:f.jsx(QD,{})})]}),f.jsx(ag,{label:"or",labelPosition:"center"}),f.jsx(YD,{})]})}function qD(){const[e,t]=m.useState(""),[n,r]=m.useState(""),[o,s]=m.useState(!1),[i,a]=m.useState(!1);async function l(c){if(c.preventDefault(),!(!e.trim()||!n)){s(!0);try{await d$(e,n)}catch(u){pr(Td(u))}finally{s(!1)}}}return f.jsxs("form",{onSubmit:l,children:[f.jsxs(Ne,{gap:"sm",children:[f.jsx(Si,{type:"email",placeholder:"[email protected]",value:e,onChange:c=>t(c.currentTarget.value),leftSection:f.jsx(Bg,{size:16}),autoComplete:"email",required:!0}),f.jsx(yd,{placeholder:"Password",value:n,onChange:c=>r(c.currentTarget.value),leftSection:f.jsx(tl,{size:16}),autoComplete:"current-password",required:!0}),f.jsx(xe,{type:"submit",color:"dark",size:"md",loading:o,disabled:!e.trim()||!n,fullWidth:!0,children:"Sign in"}),f.jsx(he,{justify:"flex-end",children:f.jsx(io,{size:"xs",c:"dimmed",onClick:()=>a(!0),style:{cursor:"pointer"},children:"Forgot password?"})})]}),f.jsx(JD,{opened:i,onClose:()=>a(!1),initialEmail:e})]})}function QD(){const[e,t]=m.useState(""),[n,r]=m.useState(""),[o,s]=m.useState(""),[i,a]=m.useState(!1);async function l(c){if(c.preventDefault(),!(!n.trim()||!o)){if(o.length<6){pr("Password must be at least 6 characters");return}a(!0);try{await f$(n,o,e.trim()||void 0)}catch(u){pr(Td(u))}finally{a(!1)}}}return f.jsx("form",{onSubmit:l,children:f.jsxs(Ne,{gap:"sm",children:[f.jsx(Si,{placeholder:"Your name (optional)",value:e,onChange:c=>t(c.currentTarget.value),leftSection:f.jsx(BD,{size:16}),autoComplete:"name"}),f.jsx(Si,{type:"email",placeholder:"[email protected]",value:n,onChange:c=>r(c.currentTarget.value),leftSection:f.jsx(Bg,{size:16}),autoComplete:"email",required:!0}),f.jsx(yd,{placeholder:"Password (min 6 chars)",value:o,onChange:c=>s(c.currentTarget.value),leftSection:f.jsx(tl,{size:16}),autoComplete:"new-password",required:!0}),f.jsx(xe,{type:"submit",color:"dark",size:"md",loading:i,disabled:!n.trim()||o.length<6,fullWidth:!0,children:"Create account"})]})})}function YD(){const[e,t]=m.useState(!1);async function n(){t(!0);try{await u$()}catch(r){pr(Td(r))}finally{t(!1)}}return f.jsx(xe,{variant:"default",size:"md",leftSection:f.jsx(L$,{size:16}),onClick:n,loading:e,fullWidth:!0,children:"Continue with Google"})}function JD({opened:e,onClose:t,initialEmail:n}){const[r,o]=m.useState(n||""),[s,i]=m.useState(!1);async function a(){if(r.trim()){i(!0);try{await p$(r),eC("Reset link sent â check your inbox"),t()}catch(l){pr(Td(l))}finally{i(!1)}}}return f.jsx(Yt,{opened:e,onClose:t,title:"Reset password",size:"sm",children:f.jsxs(Ne,{gap:"sm",children:[f.jsx(ie,{size:"sm",c:"dimmed",children:"Enter your account email â we'll send a reset link."}),f.jsx(Si,{type:"email",placeholder:"[email protected]",value:r,onChange:l=>o(l.currentTarget.value),leftSection:f.jsx(Bg,{size:16}),autoFocus:!0}),f.jsxs(he,{justify:"flex-end",children:[f.jsx(xe,{variant:"subtle",onClick:t,children:"Cancel"}),f.jsx(xe,{onClick:a,loading:s,disabled:!r.trim(),children:"Send reset link"})]})]})})}function Td(e){const t=(e==null?void 0:e.code)||"";
1875return{"auth/invalid-email":"That email address looks invalid.","auth/user-not-found":"No account with that email â try Create account.","auth/wrong-password":"Wrong password. Try again or reset it.","auth/invalid-credential":"Incorrect email or password.","auth/email-already-in-use":"An account with that email already exists â try Sign in.","auth/weak-password":"Password must be at least 6 characters.","auth/too-many-requests":"Too many attempts â wait a few minutes and try again.","auth/network-request-failed":"Network error â check your connection.","auth/operation-not-allowed":"Email/password sign-in is disabled in Firebase. Enable it in the console.","auth/popup-closed-by-user":"Sign-in cancelled."}[t]||(e==null?void 0:e.message)||"Sign-in failed"}function XD(){return f.jsx("div",{className:"xb-grid-bg",style:{minHeight:"100vh",display:"grid",placeItems:"center",padding:24},children:f.jsxs(Ne,{align:"center",gap:"md",children:[f.jsx(On,{order:3,children:"Firebase isn't configured"}),f.jsxs(ie,{c:"dimmed",size:"sm",children:["Set ",f.jsx("code",{children:"VITE_FIREBASE_API_KEY"})," and friends in ",f.jsx("code",{children:".env"}),", then reload."]})]})})}function tC(){const e=$n({queryKey:["billing"],queryFn:()=>nt.getBilling(),staleTime:3e5}),t=e.data,n=(t==null?void 0:t.features)||{},r=i=>{const a=n[i];return typeof a=="boolean"?a:typeof a=="number"?a>0:a===null},o=i=>{const a=n[i];return a===null?null:typeof a=="number"?a:0},s=(i,a)=>{const l=o(i);return l===null?!1:Number(a||0)>=l};return{loading:e.isLoading,error:e.error,features:n,hasFeature:r,capFor:o,atCap:s,planId:(t==null?void 0:t.plan)||"free",planLabel:(t==null?void 0:t.planLabel)||"Free",priceUsdMonthly:(t==null?void 0:t.priceUsdMonthly)??0,raw:t}}const ZD=3*60*6e4;function e6(e,t=Date.now()){return!!(e&&e.executionMode==="cookie"&&e.status==="active"&&e.heartbeatStatus&&e.heartbeatStatus!=="ok"&&e.lastHeartbeatOkAt&&t-e.lastHeartbeatOkAt>=ZD)}const t6=[{id:"starter",label:"Starter",price:"$39",blurb:"Solo operators getting consistent.",bullets:["1 X account","Assisted DM Co-pilot","Auto-Posts · DM Outreach · Follow/Unfollow","3 triggers · 1 smart list · 1 competitor watch","5,000 credits / month"]},{id:"pro",label:"Pro",price:"$99",blurb:"Daily outreach across a few accounts.",popular:!0,bullets:["5 X accounts","Full-auto DM Co-pilot","Auto-Engage · Bait · Sequence campaigns","10 triggers · 5 smart lists · 3 watches","25,000 credits / month"]},{id:"agency",label:"Agency",price:"$249",blurb:"Agencies + volume operators.",bullets:["15 X accounts","Unlimited triggers, lists, competitors","Unlimited Discover","Dedicated success manager","150,000 credits / month"]}];let bu=null;function nC(e={}){bu&&bu(e)}function rC(){const e=Ii(),[t,n]=m.useState(!1),[r,o]=m.useState(""),[s,i]=m.useState("");m.useEffect(()=>(bu=u=>{o((u==null?void 0:u.reason)||""),i((u==null?void 0:u.code)||"manual"),n(!0)},()=>{bu=null}),[]);const a=bi({mutationFn:u=>nt.billingCheckout({planId:u,successUrl:`${window.location.origin}${window.location.pathname}?upgraded=1`,cancelUrl:`${window.location.origin}${window.location.pathname}?canceled=1`}),onSuccess:u=>{u!=null&&u.url&&(window.location.href=u.url)},onError:u=>pr(u)}),l=s==="credits-empty"?"You're out of credits":"Pick a plan to continue",c=s==="credits-empty"?"You've used your monthly credits. Top up below or upgrade for a bigger budget.":r||"You can keep browsing, but this action needs an active plan.";return f.jsx(Yt,{opened:t,onClose:()=>n(!1),size:880,padding:32,radius:"lg",centered:!0,overlayProps:{backgroundOpacity:.55,blur:6},title:f.jsxs(he,{gap:6,children:[f.jsx(tl,{size:16}),f.jsx(On,{order:4,children:l})]}),children:f.jsxs(Ne,{align:"center",gap:"md",children:[f.jsx(ie,{c:"dimmed",size:"sm",maw:560,ta:"center",children:c}),f.jsx(he,{align:"stretch",gap:"md",wrap:"wrap",justify:"center",mt:"xs",children:t6.map(u=>f.jsx(os,{withBorder:!0,radius:"md",padding:"md",style:{width:240,borderColor:u.popular?"var(--mantine-color-dark-5)":void 0,borderWidth:u.popular?2:1},children:f.jsxs(Ne,{gap:"xs",h:"100%",children:[f.jsxs(he,{justify:"space-between",align:"flex-start",wrap:"nowrap",children:[f.jsx(On,{order:4,children:u.label}),u.popular&&f.jsx(cd,{variant:"filled",color:"dark",children:"most popular"})]}),f.jsxs(he,{gap:4,align:"baseline",children:[f.jsx(On,{order:2,children:u.price}),f.jsx(ie,{size:"xs",c:"dimmed",children:"/month"})]}),f.jsx(ie,{size:"xs",c:"dimmed",children:u.blurb}),f.jsx(Ka,{spacing:2,size:"xs",icon:f.jsx(q_,{size:12,color:"var(--mantine-color-green-6)"}),mt:4,children:u.bullets.map((d,p)=>f.jsx(Ka.Item,{children:d},p))}),f.jsx("div",{style:{flex:1}}),f.jsxs(xe,{size:"xs",leftSection:f.jsx(Pd,{size:14}),onClick:()=>a.mutate(u.id),loading:a.isPending&&a.variables===u.id,mt:"sm",fullWidth:!0,children:["Pick ",u.label]})]})},u.id))}),f.jsxs(he,{gap:"md",mt:"xs",children:[f.jsx(io,{component:"button",size:"sm",c:"dimmed",onClick:()=>{n(!1),e("/billing")},children:"See all plans + top-ups â"}),f.jsx(io,{component:"button",size:"sm",c:"dimmed",onClick:()=>n(!1),children:"Not right now"})]})]})})}const n6=Object.freeze(Object.defineProperty({__proto__:null,default:rC,openPlanRequiredModal:nC},Symbol.toStringTag,{value:"Module"})),oC=[{to:"/leads",label:"Lead scraper",icon:f.jsx(Z_,{size:14})},{to:"/lists",label:"Lists",icon:f.jsx(iD,{size:14})},{to:"/audience",label:"Audience",icon:f.jsx(gh,{size:14})},{to:"/competitors",label:"Competitors",icon:f.jsx(MD,{size:14})},{to:"/discover",label:"Discover",icon:f.jsx(H$,{size:14})},{to:"/audience/top-engagers",label:"Top engagers",icon:f.jsx(zD,{size:14})}],sC=[{to:"/campaigns",label:"Campaigns",icon:f.jsx(Pd,{size:14})},{to:"/approvals",label:"Approvals",icon:f.jsx(J_,{size:14})},{to:"/calendar",label:"Calendar",icon:f.jsx(D$,{size:14})},{to:"/reply-guy",label:"Reply Guy",icon:f.jsx(q$,{size:14})},{to:"/bait",label:"Bait",icon:f.jsx(Y$,{size:14})}],iC=[{to:"/brand",label:"Brand",icon:f.jsx(X_,{size:14})},{to:"/templates",label:"Templates",icon:f.jsx($D,{size:14})},{to:"/inspiration",label:"Inspiration",icon:f.jsx(ED,{size:14})},{to:"/content-sources",label:"Sources",icon:f.jsx(_D,{size:14})},{to:"/posting-intelligence",label:"Intelligence",icon:f.jsx(U$,{size:14})}],aC=[{to:"/settings",label:"Profile",icon:f.jsx(TD,{size:14})},{to:"/billing",label:"Billing",icon:f.jsx(Su,{size:14})},{to:"/mcp",label:"MCP",icon:f.jsx(yD,{size:14})},{to:"/guardrails",label:"Guardrails",icon:f.jsx(ID,{size:14})},{to:"/audit",label:"Audit log",icon:f.jsx(J_,{size:14})},{to:"/support",label:"Support",icon:f.jsx(oD,{size:14})}],r6=52;function o6({user:e,children:t}){const{pathname:n}=mr(),[r,{toggle:o,close:s}]=rb(!1),i=[{to:"/",label:"Home",icon:f.jsx("img",{src:"/logo.svg",alt:"",style:{width:18,height:18}}),prefixes:["/"],exact:!0},{to:"/chat",label:"Inbox",icon:f.jsx(fD,{size:18}),prefixes:["/chat","/copilot","/blocklist","/pipeline"]},{label:"Campaigns",icon:f.jsx(Pd,{size:18}),prefixes:["/campaigns","/approvals","/calendar","/reply-guy","/bait"],children:sC},{label:"Audience",icon:f.jsx(Z_,{size:18}),prefixes:["/leads","/lists","/prospects","/audience","/discover","/competitors","/intent"],
1875children:[...oC,{to:"/intent",label:"Intent feed",icon:f.jsx(R$,{size:14})}]},{label:"Content",icon:f.jsx(X_,{size:18}),prefixes:["/brand","/templates","/inspiration","/content-sources","/posting-intelligence"],children:iC},{label:"Automation",icon:f.jsx(X0,{size:18}),prefixes:["/overview","/loops","/triggers","/history"],children:[{to:"/overview",label:"Overview",icon:f.jsx(nD,{size:14})},{to:"/loops",label:"Loops",icon:f.jsx(X0,{size:14})},{to:"/triggers",label:"Triggers",icon:f.jsx(j$,{size:14})},{to:"/history",label:"Actions",icon:f.jsx(X$,{size:14})}]},{label:"Accounts",icon:f.jsx(gh,{size:18}),prefixes:["/accounts","/settings","/billing","/audit","/guardrails","/support","/mcp"],children:[{to:"/accounts",label:"Accounts",icon:f.jsx(gh,{size:14})},...aC]}];return f.jsxs(un,{header:{height:r6},padding:"md",children:[f.jsx(un.Header,{style:{borderBottom:"1px solid var(--xb-line-soft)",background:"var(--xb-bg)",backdropFilter:"saturate(180%) blur(12px)"},children:f.jsxs(he,{h:52,px:"md",gap:"md",wrap:"nowrap",children:[f.jsxs(he,{gap:10,align:"center",wrap:"nowrap",style:{flex:"0 0 auto"},children:[f.jsx("img",{src:"/logo.svg",alt:"",style:{width:26,height:26}}),f.jsx(On,{order:4,style:{letterSpacing:"-0.01em",fontWeight:700},children:"Xlift"})]}),f.jsx(s6,{groups:i,pathname:n}),f.jsxs(he,{gap:8,wrap:"nowrap",style:{flex:"0 0 auto"},children:[f.jsx(f6,{}),f.jsx(h6,{}),f.jsx(p6,{}),f.jsxs(Nt,{opened:r,onChange:a=>a?o():s(),position:"bottom-end",withArrow:!0,width:280,children:[f.jsx(Nt.Target,{children:f.jsx(bo,{variant:"subtle",size:"lg",onClick:o,"aria-label":"Plan",children:f.jsx(Su,{size:18})})}),f.jsx(Nt.Dropdown,{p:6,children:f.jsx(m6,{close:s})})]}),f.jsxs(De,{position:"bottom-end",withArrow:!0,children:[f.jsx(De.Target,{children:f.jsx(ld,{src:e.photoURL,radius:"xl",size:"sm",style:{cursor:"pointer"},children:(e.email||"?").slice(0,1).toUpperCase()})}),f.jsxs(De.Dropdown,{children:[f.jsx(De.Label,{children:e.email||e.uid}),f.jsx(De.Item,{leftSection:f.jsx(cD,{size:14}),onClick:h$,children:"Sign out"})]})]})]})]})}),f.jsxs(un.Main,{children:[f.jsx(c6,{}),f.jsx(u6,{}),f.jsx(l6,{}),f.jsx(a6,{}),f.jsx(i6,{}),t]}),f.jsx(rC,{})]})}function s6({groups:e,pathname:t}){const{data:n}=$n({queryKey:["actions-awaiting-approval-count"],queryFn:()=>nt.listActions({status:"awaiting-approval",limit:500}),refetchInterval:12e4}),r=((n==null?void 0:n.actions)||[]).length,o=l=>t===l||t.startsWith(`${l}/`),s=l=>l.exact?t===l.to:l.prefixes.some(o),i=l=>l==="/approvals"&&r>0?f.jsx(cd,{size:"xs",color:"red",variant:"filled",circle:!0,children:r>99?"99+":r}):null,a=l=>{var c;return(c=l.children)!=null&&c.some(u=>u.to==="/approvals")?i("/approvals"):null};return f.jsx(he,{gap:4,wrap:"nowrap",style:{flex:1,minWidth:0,overflowX:"auto"},children:e.map(l=>{const c=s(l);return l.children?f.jsxs(De,{position:"bottom-start",withArrow:!0,width:210,trigger:"click-hover",openDelay:0,children:[f.jsx(De.Target,{children:f.jsx(xe,{size:"compact-sm",variant:c?"light":"subtle",color:c?void 0:"gray",leftSection:l.icon,rightSection:a(l)||f.jsx(V$,{size:14}),style:{flex:"0 0 auto"},children:l.label})}),f.jsx(De.Dropdown,{children:l.children.map(u=>f.jsx(De.Item,{component:so,to:u.to,leftSection:u.icon,rightSection:i(u.to),fw:o(u.to)?700:void 0,children:u.label},u.to))})]},l.label):f.jsx(xe,{component:so,to:l.to,size:"compact-sm",variant:c?"light":"subtle",color:c?void 0:"gray",leftSection:l.icon,style:{flex:"0 0 auto"},children:l.label},l.label)})})}function i6(){const{data:e}=$n({queryKey:["billing"],queryFn:()=>nt.getBilling(),refetchInterval:3e5}),t=e==null?void 0:e.credits;if(!e||e.plan==="free"||!t||!t.monthly)return null;const n=(t.monthlyRemaining||0)+(t.bonus||0),r=t.monthly>0?n/t.monthly:0;if(r>.1)return null;const o=n<=0;return f.jsx(hs,{color:o?"red":"orange",icon:f.jsx(Nl,{size:16}),mb:"md",withCloseButton:!1,children:f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:"sm",children:[f.jsxs("div",{style:{flex:1},children:[f.jsx(ie,{size:"sm",fw:600,children:o?"You're out of AI credits this month":`Only ${n.toLocaleString()} credits left (${Math.round(r*100)}% of plan)`}),f.jsx(ie,{size:"xs",c:"dimmed",children:"Credits power post drafting, DM replies, AI lead scoring, and X reads. Top up or upgrade so campaigns don't stall."})]}),f.jsx(xe,{size:"xs",component:so,to:"/billing",color:o?"red":"orange",children:o?"Top up":"View plan"})]})})}const e1="xb.heartbeatLost.dismissed";function a6(){const{data:e}=$n({queryKey:["accounts"],queryFn:()=>nt.listAccounts(),refetchInterval:3e5}),[t,n]=m.useState(()=>{try{return localStorage.getItem(e1)||""}catch{return""}}),r=Date.now(),o=((e==null?void 0:e.accounts)||[]).filter(l=>e6(l,r));if(o.length===0)return null;const s=o.reduce((l,c)=>!l||c.lastHeartbeatOkAt<l.lastHeartbeatOkAt?c:l,null),i=Math.floor((r-s.lastHeartbeatOkAt)/36e5),a=`${o.map(l=>l.id).sort().join(",")}|${Math.floor(i/12)}`;return t===a?null:f.jsx(hs,{color:"yellow",icon:f.jsx(Nl,{size:16}),mb:"md",withCloseButton:!0,closeButtonLabel:"Hide until this changes",onClose:()=>{try{localStorage.setItem(e1,a)}catch{}n(a)},children:f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:"sm",children:[f.jsxs("div",{style:{flex:1},children:[f.jsx(ie,{size:"sm",fw:600,children:o.length===1?`@${s.handle}'s session has not answered in ${i}h`:`${o.length} accounts have lost their heartbeat (longest: @${s.handle}, ${i}h)`}),f.jsx(ie,{size:"xs",c:"dimmed",children:"The 30-minute probe c
1875an no longer confirm the session, so campaigns may start failing mid-dispatch. Re-paste auth_token and ct0 from Cookie-Editor to restore it."})]}),f.jsx(xe,{size:"xs",component:so,to:"/accounts",variant:"light",color:"yellow",children:"Refresh cookies"})]})})}function l6(){const{data:e}=$n({queryKey:["accounts"],queryFn:()=>nt.listAccounts(),refetchInterval:12e4}),t=((e==null?void 0:e.accounts)||[]).filter(n=>n.status==="needs_reauth");return t.length===0?null:f.jsx(hs,{color:"red",icon:f.jsx(Nl,{size:16}),mb:"md",withCloseButton:!1,children:f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:"sm",children:[f.jsxs(ie,{size:"sm",style:{flex:1},children:[f.jsx("b",{children:t.length})," account",t.length===1?"":"s"," need re-authentication",t.length<=3&&f.jsxs(ie,{component:"span",c:"dimmed",size:"sm",children:[" ","â ",t.map(n=>`@${n.handle}`).join(", ")]})]}),f.jsx(xe,{size:"xs",component:so,to:"/accounts",children:"Re-authenticate"})]})})}function c6(){const{data:e}=$n({queryKey:["billing"],queryFn:()=>nt.getBilling(),refetchInterval:3e5}),t=bi({mutationFn:()=>nt.billingPortal({returnUrl:window.location.href}),onSuccess:s=>{s!=null&&s.url&&(window.location.href=s.url)},onError:s=>pr(s)}),n=e==null?void 0:e.subscriptionStatus,r=["past_due","unpaid","incomplete","incomplete_expired","canceled"];if(!e||e.plan==="free"||!r.includes(n))return null;const o={past_due:"Your last payment failed.",unpaid:"Your subscription is unpaid.",incomplete:"Payment hasn't completed.",incomplete_expired:"Payment confirmation expired.",canceled:"Your subscription was canceled."}[n]||"Billing issue";return f.jsx(hs,{color:"red",icon:f.jsx(Nl,{size:16}),mb:"md",withCloseButton:!1,children:f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:"sm",children:[f.jsxs("div",{style:{flex:1},children:[f.jsx(ie,{size:"sm",fw:600,children:o}),f.jsx(ie,{size:"xs",c:"dimmed",children:"Update payment in the Stripe portal â you'll be redirected and back here when done."})]}),f.jsx(xe,{size:"xs",color:"red",onClick:()=>t.mutate(),loading:t.isPending,children:"Fix billing"})]})})}function u6(){const e=_l(),{data:t}=$n({queryKey:["user-settings"],queryFn:()=>nt.getUser()}),n=bi({mutationFn:()=>nt.setKillSwitch(!1),onSuccess:()=>
1875{eC("Resumed"),e.invalidateQueries({queryKey:["user-settings"]})},onError:r=>pr(r)});return t!=null&&t.killSwitch?f.jsx(hs,{color:"red",icon:f.jsx(Q_,{size:16}),mb:"md",withCloseButton:!1,children:f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:"sm",children:[f.jsxs("div",{style:{flex:1},children:[f.jsx(ie,{size:"sm",fw:600,children:"All outbound is paused"}),f.jsx(ie,{size:"xs",c:"dimmed",children:"No campaign, trigger, or co-pilot will dispatch until you resume."})]}),f.jsx(xe,{size:"xs",color:"red",leftSection:f.jsx(Y_,{size:14}),onClick:()=>n.mutate(),loading:n.isPending,children:"Resume"})]})}):null}function d6(e){if(!e)return"";const t=Date.now()-e;return t<6e4?"just now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:`${Math.floor(t/864e5)}d`}function f6(){const{colorScheme:e,setColorScheme:t}=ub(),r=jR("light",{getInitialValueInEffect:!0})==="dark",o=e==="auto"?r?"light":"dark":e==="dark"?"light":"dark",s=e==="auto"?`Auto (currently ${r?"dark":"light"}) â click to override`:`${e} â click to switch to ${o}`;return f.jsx(ho,{label:s,withArrow:!0,children:f.jsx(bo,{variant:"subtle",size:"md",radius:"xl",onClick:()=>t(o),"aria-label":"Toggle color scheme",children:r?f.jsx(AD,{size:16}):f.jsx(hD,{size:16})})})}function p6(){const e=_l(),t=Ii(),[n,{toggle:r,close:o}]=rb(!1),{data:s}=$n({queryKey:["notifications"],queryFn:()=>nt.listNotifications(),refetchInterval:9e4}),i=bi({mutationFn:d=>nt.markNotificationRead(d),onMutate:async d=>{await e.cancelQueries({queryKey:["notifications"]});const p=e.getQueryData(["notifications"]);return e.setQueryData(["notifications"],h=>{if(!(h!=null&&h.items))return h;const v=h.items.map(g=>g.id===d?{...g,read:!0}:g);return{...h,items:v,unread:v.filter(g=>!g.read).length}}),{previous:p}},onError:(d,p,h)=>{h!=null&&h.previous&&e.setQueryData(["notifications"],h.previous)},onSettled:()=>e.invalidateQueries({queryKey:["notifications"]})}),a=bi({mutationFn:()=>nt.markAllNotificationsRead(),onMutate:async()=>{await e.cancelQueries({queryKey:["notifications"]});const d=e.getQueryData(["notifications"]);return e.setQueryData(["notifications"],p=>p!=null&&p.items?{...p,items:p.items.map(h=>({...h,read:!0})),unread:0}:p),{previous:d}},onError:(d,p,h)=>{h!=null&&h.previous&&e.setQueryData(["notifications"],h.previous)},onSettled:()=>e.invalidateQueries({queryKey:["notifications"]})}),l=(s==null?void 0:s.items)||[],c=(s==null?void 0:s.unread)||0,u=d=>{d.read||i.mutate(d.id),d.link&&t(d.link),o()};return f.jsxs(Nt,{opened:n,onChange:d=>d?r():o(),position:"bottom-end",withArrow:!0,shadow:"md",width:360,children:[f.jsx(Nt.Target,{children:f.jsx(lg,{size:c?16:0,color:"red",offset:4,label:c>9?"9+":c,disabled:!c,children:f.jsx(bo,{variant:"subtle",size:"lg",onClick:r,"aria-label":"Notifications",children:f.jsx(Z0,{size:18})})})}),f.jsxs(Nt.Dropdown,{p:0,children:[f.jsxs(he,{justify:"space-between",p:"xs",style:{borderBottom:"1px solid var(--xb-line-soft)"},children:[f.jsx(ie,{size:"sm",fw:600,children:"Notifications"}),c>0&&f.jsx(xe,{size:"compact-xs",variant:"subtle",leftSection:f.jsx(q_,{size:12}),onClick:()=>a.mutate(),loading:a.isPending,children:"Mark all read"})]}),l.length===0?f.jsxs(Ne,{p:"md",align:"center",gap:4,children:[f.jsx(Z0,{size:28,stroke:1.5,color:"var(--mantine-color-gray-5)"}),f.jsx(ie,{size:"sm",c:"dimmed",children:"You're all caught up."})]}):f.jsx(Li.Autosize,{mah:420,children:f.jsx(Ne,{gap:0,children:l.map(d=>f.jsxs("button",{onClick:()=>u(d),style:{border:"none",background:d.read?"transparent":"var(--xb-bg-soft)",borderBottom:"1px solid var(--xb-line-soft)",textAlign:"left",padding:10,cursor:"pointer",font:"inherit",color:"inherit"},children:[f.jsxs(he,{justify:"space-between",gap:6,wrap:"nowrap",children:[f.jsx(ie,{size:"sm",fw:d.read?400:600,style:{flex:1},lineClamp:1,children:d.title}),f.jsx(ie,{size:"xs",c:"dimmed",children:d6(d.ts)})]}),d.body&&f.jsx(ie,{size:"xs",c:"dimmed",lineClamp:2,mt:2,children:d.body})]},d.id))})})]})]})}function h6(){const e=_l(),{data:t}=$n({queryKey:["user-settings"],queryFn:()=>nt.getUser(),refetchInterval:18e4}),n=!!(t!=null&&t.killSwitch),r=bi({mutationFn:()=>nt.setKillSwitch(!n),onSuccess:()=>{Ln.show({color:n?"green":"red",message:n?"Resumed â actions will dispatch again":"Paused everything across all accounts"}
1875),e.invalidateQueries({queryKey:["user-settings"]})},onError:o=>pr(o)});return f.jsx(ho,{label:n?"Paused â click to resume all outbound":"Pause all outbound across every account",withArrow:!0,children:f.jsx(xe,{size:"compact-sm",color:n?"red":"gray",variant:n?"filled":"subtle",leftSection:n?f.jsx(Y_,{size:14}):f.jsx(Q_,{size:14}),onClick:()=>r.mutate(),loading:r.isPending,children:n?"Paused":"Pause all"})})}function m6({close:e}){var g,b;const{planId:t,planLabel:n,priceUsdMonthly:r,raw:o,loading:s}=tC();if(s||!o)return null;const i=((g=o.usage)==null?void 0:g.accounts)??0,a=((b=o.caps)==null?void 0:b.accountLimit)??0,l=o.credits||null,c=t==="free",u=t==="starter"?"Pro":t==="pro"?"Agency":null,d="dark";if(c)return f.jsx(os,{withBorder:!0,p:"xs",radius:"md",mt:4,children:f.jsxs(Ne,{gap:6,children:[f.jsxs(he,{gap:6,wrap:"nowrap",children:[f.jsx(Su,{size:14}),f.jsx(ie,{size:"sm",fw:600,children:"No active plan"})]}),f.jsx(ie,{size:"xs",c:"dimmed",children:"Pick a plan to unlock campaigns, the DM Co-pilot, and AI features."}),f.jsx(xe,{size:"xs",color:"dark",component:so,to:"/billing",onClick:e,leftSection:f.jsx(Pd,{size:12}),fullWidth:!0,children:"Pick a plan"})]})});const p=a>0?Math.min(100,Math.round(i/a*100)):0,h=l&&l.monthly>0?Math.min(100,Math.round(l.used/l.monthly*100)):0,v=l&&l.monthly>0&&l.monthlyRemaining+l.bonus<l.monthly*.1;return f.jsx(os,{withBorder:!0,p:"xs",radius:"md",mt:4,children:f.jsxs(Ne,{gap:6,children:[f.jsxs(he,{justify:"space-between",wrap:"nowrap",gap:6,children:[f.jsxs(he,{gap:6,wrap:"nowrap",style:{minWidth:0},children:[f.jsx(Su,{size:14}),f.jsx(ie,{size:"sm",fw:600,truncate:!0,children:n})]}),r>0&&f.jsxs(ie,{size:"xs",c:"dimmed",children:["$",r,"/mo"]})]}),l&&l.monthly>0&&f.jsx(ho,{label:`${l.used.toLocaleString()} of ${l.monthly.toLocaleString()} credits used this month${l.bonus?` · ${l.bonus.toLocaleString()} top-up credits`:""}`,withArrow:!0,children:f.jsxs("div",{children:[f.jsx(ss,{value:h,size:"xs",color:v?"orange":d,radius:"xl"}),f.jsxs(ie,{size:"xs",c:"dimmed",mt:2,children:[(l.monthlyRemaining+l.bonus).toLocaleString()," credits left",l.bonus>0?` · ${l.bonus.toLocaleString()} top-up`:""]})]})}),a>0&&f.jsx(ho,{label:`${i} of ${a} X account${a===1?"":"s"} connected`,withArrow:!0,children:f.jsxs("div",{children:[f.jsx(ss,{value:p,size:"xs",color:p>=100?"orange":d,radius:"xl"}),f.jsxs(ie,{size:"xs",c:"dimmed",mt:2,children:[i,"/",a," accounts"]})]})}),u?f.jsxs(xe,{size:"xs",variant:"light",color:d,component:so,to:"/billing",onClick:e,leftSection:f.jsx(N$,{size:12}),fullWidth:!0,children:["Upgrade to ",u]}):f.jsx(xe,{size:"xs",variant:"default",component:so,to:"/billing",onClick:e,fullWidth:!0,children:"Manage plan"})]})})}const t1="xlift-jumping-logo-styles";function g6(){if(typeof document>"u"||document.getElementById(t1))return;const e=document.createElement("style");e.id=t1,e.textContent=` 1876 @keyframes xliftLogoJump { 1877 0%, 100% { transform: translateY(0); } 1878 50% { transform: translateY(-10px); } 1879 } 1880 .xlift-jumping-logo { 1881 animation: xliftLogoJump 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite; 1882 transform-origin: 50% 100%; 1883 display: block; 1884 } 1885 @media (prefers-reduced-motion: reduce) { 1886 .xlift-jumping-logo { animation: none; } 1887 } 1888 `,document.head.appendChild(e)}function Rc({size:e=40,fullScreen:t=!1,padding:n="xl"}){g6();
1888const r=f.jsx("img",{src:"/logo.svg",alt:"","aria-hidden":"true",className:"xlift-jumping-logo",style:{width:e,height:e}});return t?f.jsx(Ga,{h:"100vh",children:r}):f.jsx(Ga,{p:n,children:r})}function v6({inline:e=!1,size:t=40,label:n=null}){return f.jsx(Ga,{mih:e?void 0:"40vh",py:e?"md":"xl",children:f.jsxs(Ne,{align:"center",gap:8,children:[f.jsx(Rc,{size:t}),n&&f.jsx("div",{style:{fontSize:12,color:"var(--mantine-color-dimmed)"},children:n})]})})}function R5({count:e=5,h:t=56}){return f.jsx(Ne,{gap:"sm",children:Array.from({length:e}).map((n,r)=>f.jsx(wg,{h:t,radius:"sm"},r))})}function kr({feature:e,minPlan:t,title:n,description:r,children:o}){const{hasFeature:s,planLabel:i,loading:a}=tC();return a?f.jsx(v6,{}):s(e)?o:f.jsx(Ne,{gap:"md",children:f.jsx(os,{withBorder:!0,p:"lg",children:f.jsxs(Ne,{gap:"md",align:"center",ta:"center",py:"md",children:[f.jsx(tl,{size:28,color:"var(--mantine-color-dark-6)"}),f.jsxs(On,{order:3,children:[n," is in ",t," and above"]}),r&&f.jsx(ie,{c:"dimmed",size:"sm",maw:520,children:r}),f.jsxs(ie,{size:"xs",c:"dimmed",children:["Your current plan: ",i]}),f.jsx(he,{gap:"xs",children:f.jsx(xe,{color:"dark",leftSection:f.jsx(tl,{size:14}),onClick:()=>nC({reason:`${n} is in the ${t} plan and above.`,code:"plan-gate"}),children:"Upgrade to unlock"})})]})})})}class y6 extends m.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidUpdate(t){this.state.error&&t.resetKey!==this.props.resetKey&&this.setState({error:null})}componentDidCatch(t,n){console.error("[ErrorBoundary]",t,n==null?void 0:n.componentStack)}render(){return this.state.error?(this.state.error,f.jsxs(Ne,{align:"center",justify:"center",gap:"md",p:"xl",style:{minHeight:"60vh",textAlign:"center",maxWidth:560,margin:"0 auto"},children:[f.jsx(Nl,{size:40,color:"var(--mantine-color-red-6)"}),f.jsx(On,{order:3,children:"Something broke on this page"}),f.jsx(ie,{c:"dimmed",size:"sm",children:"The rest of the app is still healthy â try reloading this view, or jump back to Overview. If it keeps happening, copy the technical details below and ping support."}),f.jsxs(he,{children:[f.jsx(xe,{leftSection:f.jsx(SD,{size:14}),onClick:()=>window.location.reload(),children:"Reload"}),f.jsx(xe,{variant:"default",leftSection:f.jsx(eD,{size:14}),onClick:()=>{window.location.href="/overview"},children:"Go to Overview"})]}),!1]})):this.props.children}}function w6(){const[e,t]=m.useState(typeof navigator>"u"?!0:navigator.onLine);return m.useEffect(()=>{function n(){t(!0)}function r(){t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e?null:f.jsx("div",{style:{position:"sticky",top:0,zIndex:1e3,background:"var(--mantine-color-orange-1)",borderBottom:"1px solid var(--mantine-color-orange-3)",color:"var(--mantine-color-orange-9)",padding:"6px 14px"},children:f.jsxs(he,{gap:8,justify:"center",wrap:"nowrap",children:[f.jsx(HD,{size:14}),f.jsx(ie,{size:"xs",fw:600,children:"You're offline â Xlift will reconnect automatically when you're back."})]})})}function S6({items:e}){var o;const t=Ii(),{pathname:n}=mr(),r=((o=e.filter(s=>n===s.to||n.startsWith(`${s.to}/`)).sort((s,i)=>i.to.length-s.to.length)[0])==null?void 0:o.to)||e[0].to;return f.jsx(mt,{value:r,onChange:s=>s&&s!==n&&t(s),variant:"default",mb:"md",children:f.jsx(mt.List,{children:e.map(s=>f.jsx(mt.Tab,{value:s.to,leftSection:s.icon,children:s.label},s.to))})})}function ic({tabs:e}){return f.jsxs(Ne,{gap:"md",children:[f.jsx(S6,{items:e}),f.jsx(TT,{})]})}function ee(e){return m.lazy(()=>e().catch(t=>{const n=(t==null?void 0:t.message)||"";if((/Failed to fetch dynamically imported module/i.test(n)||/Loading chunk \d+ failed/i.test(n)||/MIME type of .?text\/html/i.test(n)||/Importing a module script failed/i.test(n))&&!sessionStorage.getItem("xlift:chunk-reloaded"))return sessionStorage.setItem("xlift:chunk-reloaded",String(Date.now())),window.location.reload(),new Promise(()=>{});throw t}))}const b6=ee(()=>Z(()=>import("./HomePage-CSPa52NZ.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]))),x6=ee(()=>Z(()=>import("./OverviewPage-G5uvgcwB.js"),__vite__mapDeps([23,8,3,24,25,11,17,5,6,7,26,13,27,4,28,29,30,31,32,1,33,34]))),_6=ee(()=>Z(()=>import("./ChatPage-DylfVvxn.js"),__vite__mapDeps([35,36,37,38,39,40,41,5,6,7,42,26,13,18,16,43,44,12,28,30,31,29,45,46,3,34]))),C6=ee(()=>Z(()=>import("./AccountsPage-CjPEJ4-G.js"),__vite__mapDeps([47,9,10,11,12,13,14,15,3,16,48,2,26,4,21,49,50,24,25,36,51,39,52,53,7,33,5,6,54,22]))),E6=ee(()=>Z(()=>import("./CampaignsPage-neXt4pu9.js"),__vite__mapDeps([55,50,24,25,11,56,57,39,49,22,20]))),P6=ee(()=>Z(()=>import("./NewCampaignChooser-DBUM3Zax.js"),__vite__mapDeps([58,56,4,27,30,59,60,61]))),T6=ee(()=>Z(()=>import("./NewDmCampaignPage-D7Z8xiQf.js"),__vite__mapDeps([62,63,12,13,64,52,53,7,57,65,16,49,5,6,39,22,66,67]))),k6=ee(()=>Z(()=>import("./NewAutoEngagePage-DsF2rIcC.js"),__vite__mapDeps([68,57,65,16,49,69,6,7,70,71,66,67,53,72]))),R6=ee(()=>Z(()=>import("./NewReplyBoostPage-uDwKuxi0.js"),__vite__mapDeps([73,57,65,16,49,69,6,7,70,71,66,52,53,67]))),I6=ee(()=>Z(()=>import("./NewAutoPostsPage-CiAlIseG.js"),__vite__mapDeps([74,75,24,25,11,26,13,57,65,16,49,69,6,7,70,71,67,53,12,66,44,72,4,76,34,22]))),N6=ee
1888(()=>Z(()=>import("./ListsPage-D3_5czjL.js"),__vite__mapDeps([77,78,2,50,24,25,11,36,39,40,5,6,7,66,12,13,14,15,26,79,80,81,22,4]))),O6=ee(()=>Z(()=>import("./TemplatesPage-DC6yLju8.js"),__vite__mapDeps([82,50,24,25,11,37,36,39,81,22,5,6,7,12,13,76]))),A6=ee(()=>Z(()=>import("./HistoryPage-DHJIy0xV.js"),__vite__mapDeps([83,8,3,24,25,11,26,13,5,6,7,2,79]))),j6=ee(()=>Z(()=>import("./BrandPage-D8Oucp25.js"),__vite__mapDeps([84,24,25,11,76,12,13,70,49,85,53]))),M6=ee(()=>Z(()=>import("./LeadsPage-Tu93FEDs.js"),__vite__mapDeps([86,26,13,5,6,7,66,67,53,80,87,79,52,3,31,39]))),L6=ee(()=>Z(()=>import("./AudiencePage-jdiIbR0D.js"),__vite__mapDeps([88,24,25,11,50,5,6,7,89,4,32,1,90]))),$6=ee(()=>Z(()=>import("./DiscoverPage-UBkd-W8R.js"),__vite__mapDeps([91,78,2,38,39,5,6,7,26,13,42,12,66,76,79,52,53,3,27]))),D6=ee(()=>Z(()=>import("./IntentPage-BEY5ZesF.js"),__vite__mapDeps([92,37,78,2,38,39,61,28,52,53,7,34,30,31,93,29,45,94,3,5,6,66,12,13,79]))),z6=ee(()=>Z(()=>import("./GuardrailsPage-BERpz0VU.js"),__vite__mapDeps([95,24,25,11,67,53,66,5,6,7]))),U6=ee
1888(()=>Z(()=>import("./AccountsPerformancePage-BIeDhj_F.js"),__vite__mapDeps([96,24,25,11,16,51,26,13,4,5,6,7,79,90]))),F6=ee(()=>Z(()=>import("./OnboardingPage-Dm5w2QJC.js"),__vite__mapDeps([97,5,6,7,27]))),n1=ee(()=>Z(()=>import("./TermsPage-hFvrUG7g.js"),__vite__mapDeps([98,99]))),r1=ee(()=>Z(()=>import("./PrivacyPage-BJvocxsG.js"),__vite__mapDeps([100,99,79]))),B6=ee(()=>Z(()=>import("./NewFollowUnfollowPage--MguVrzE.js"),__vite__mapDeps([101,64,52,53,7,57,65,16,49,5,6,66,67]))),V6=ee(()=>Z(()=>import("./NewSequencePage-Bn99HeMV.js"),__vite__mapDeps([102,64,52,53,7,57,65,16,49,5,6,67,60,30,29,42,39,103,22,66,12,13,14,21]))),W6=ee(()=>Z(()=>import("./CopilotPage-CBpHiwkU.js"),__vite__mapDeps([104,5,6,7,27,67,53,26,13,12,66,105,70,71]))),H6=ee(()=>Z(()=>import("./CampaignDetailPage-BGBOHbbt.js"),__vite__mapDeps([106,24,25,11,36,8,3,12,13,2,81,107,39,103,22,56,16,34,26,4,32,1,79,69,6,7,70,71,67,53]))),G6=ee(()=>Z(()=>import("./AccountDetailPage-DN6WAyp_.js"),__vite__mapDeps([108,24,25,11,36,89,12,13,70,22,49,85,53,48,2,26,14,15,4,21,16,3,32,1,33,109,66,79,67]))),K6=ee(()=>Z(()=>import("./BillingPage-PY68eJ9l.js"),__vite__mapDeps([110,24,25,11,3,4,60,94,39]))),q6=ee(()=>Z(()=>import("./ApprovalsPage-cz-PsiGL.js"),__vite__mapDeps([111,8,3,24,25,11,2,79,52,53,7,12,13]))),Q6=ee(()=>Z(()=>import("./CalendarPage-B_kG0eVJ.js"),__vite__mapDeps([112,36,8,3,5,6,7,20,12,13,34,22,49]))),Y6=ee(()=>Z(()=>import("./BlocklistPage-D0aZ9sV8.js"),__vite__mapDeps([113,39,109,41,79,22,12,13,67,53]))),J6=ee(()=>Z(()=>import("./ContentSourcesPage-CdIc7f7x.js"),__vite__mapDeps([114,39,44,79,67,53,22,10,5,6,7,43,66]))),X6=ee(()=>Z(()=>import("./PostingIntelligencePage-CNXoqCH_.js"),__vite__mapDeps([115,5,6,7,10,34,79,67,53,66]))),Z6=ee(()=>Z(()=>import("./TriggersPage-Bbh5o7Gw.js"),__vite__mapDeps([116,36,8,3,50,37,39,67,53,22,5,6,7,2,43,105,70,71,12,13,66,63]))),e5=ee(()=>Z(()=>import("./ProspectPage-DTvvNu1o.js"),__vite__mapDeps([117,24,25,11,36,16,3,41,42,18,28]))),t5=ee(()=>Z(()=>import("./AuditPage-DwjU2x9p.js"),__vite__mapDeps([118,50,79]))),n5=ee(()=>Z(()=>import("./SupportPage-CPqkIJUN.js"),__vite__mapDeps([119,12,13]))),r5=ee(()=>Z(()=>import("./McpPage-kcVRiTeO.js"),__vite__mapDeps([120,11,25]))),o5=ee(()=>Z(()=>import("./ComposePage-BIeo3EuD.js"),__vite__mapDeps([121,21,2,19,107,39,12,13,103,22,75,24,25,11,26,37,50,46,16,5,6,7,59,28,45]))),s5=ee(()=>Z(()=>import("./InspirationPage-BrQaOGSE.js"),__vite__mapDeps([122,24,25,11,50,66,3,30,31,93,45]))),i5=ee(()=>Z(()=>import("./PipelinePage-b-zhDTHq.js"),__vite__mapDeps([123,24,25,11,50,5,6,7,22,39]))),a5=ee(()=>Z(()=>import("./CompetitorsPage-CT6gewoD.js"),__vite__mapDeps([124,24,25,11,50,4,27,22,5,6,7,39,3,90]))),l5=ee(()=>Z(()=>import("./ReplyGuyPage-wAGP4L1v.js"),__vite__mapDeps([125,24,25,11,50,39,16,67,53,12,13,66,5,6,7,27,22,2]))),c5=ee(()=>Z(()=>import("./BaitPage-WyrGqjga.js"),__vite__mapDeps([126,24,25,11,50,39,26,13,3,27,89,67,53,87,22,5,6,7,12,66]))),u5=ee(()=>Z(()=>import("./LoopsPage-CPHEE5hn.js"),__vite__mapDeps([127,24,25,11,50,26,13,79,27,61,40]))),d5=ee(()=>Z(()=>import("./SettingsPage-V8eVCacq.js"),__vite__mapDeps([128,54,5,6,7]))),f5=ee(()=>Z(()=>import("./TopEngagersPage-V2ZSNCeb.js"),__vite__mapDeps([129,24,25,11,50,38,39,26,13,79,3])));function p5(){const e=$n({queryKey:["user-me"],queryFn:()=>nt.getUser()});return e.isLoading||!e.data||e.data.onboardedAt?null:f.jsx(m.Suspense,{fallback:null,children:f.jsx(F6,{})})}function h5(){const[e,t]=m.useState(void 0);return m.useEffect(()=>m$(t),[]),e===void 0?f.jsx(Rc,{fullScreen:!0,size:56}):e?f.jsxs(f.Fragment,{children:[f.jsx(w6,{}),f.jsx(o6,{user:e,children:f.jsx(m5,{children:f.jsx(m.Suspense,{fallback:f.jsx(Rc,{fullScreen:!0,size:40}),children:f.jsxs(fy,{children:[f.jsx(J,{path:"/",element:f.jsx(b6,{})}),f.jsx(J,{path:"/overview",element:f.jsx(x6,{})}),f.jsx(J,{path:"/chat",element:f.jsx(_6,{})}),f.jsx(J,{path:"/accounts",element:f.jsx(C6,{})}),f.jsx(J,{path:"/accounts/performance",element:f.jsx(U6,{})}),f.jsx(J,{path:"/playground",element:f.jsx(dy,{to:"/",replace:!0})}),f.jsx(J,{path:"/accounts/:id",element:f.jsx(G6,{})}),f.jsx(J,{path:"/campaigns/new",element:f.jsx(P6,{})}),f.jsx(J,{path:"/campaigns/:id",element:f.jsx(H6,{})}),f.jsx(J,{path:"/campaigns/new/dm",element:f.jsx(kr,{feature:"dmOutreachCampaign",minPlan:"Starter",title:"DM Outreach",description:"Send personalized DMs to a list of prospects with multi-step follow-ups.",children:f.jsx(T6,{})})}),f.jsx(J,{path:"/campaigns/new/auto-engage",element:f.jsx(kr,{feature:"autoEngageCampaign",minPlan:"Pro",title:"Auto-Engage",description:"Continuously discover tweets matching keywords and engage based on a tunable action mix.",children:f.jsx(k6,{})})}),f.jsx(J,{path:"/campaigns/new/reply-boost",element:f.jsx(kr,{feature:"autoEngageCampaign",minPlan:"Pro",title:"Reply Boost",description:"Engage the people commenting on your posts while the post is still climbing.",children:f.jsx(R6,{})})}),f.jsx(J,{path:"/campaigns/new/posts",element:f.jsx(kr,{feature:"autoPostsCampaign",minPlan:"Starter",title:"Automated Posts",description:"AI-generated tweets scheduled within working hours.",children:f.jsx(I6,{})})}),f.jsx(J,{path:"/campaigns/new/follow-unfollow",element:f.jsx(kr,{feature:"followUnfollowCampaign",minPlan:"Starter",title:"Follow/Unfollow",de
1888scription:"Follow a list of prospects, wait N days, unfollow non-followers.",children:f.jsx(B6,{})})}),f.jsx(J,{path:"/campaigns/new/sequence",element:f.jsx(kr,{feature:"sequenceCampaign",minPlan:"Pro",title:"Sequence campaigns",description:"Multi-step drip across days: follow â reply â @-post â DM â follow-up.",children:f.jsx(V6,{})})}),f.jsx(J,{path:"/loops",element:f.jsx(u5,{})}),f.jsx(J,{path:"/intent",element:f.jsx(D6,{})}),f.jsx(J,{path:"/copilot",element:f.jsx(W6,{})}),f.jsx(J,{path:"/blocklist",element:f.jsx(Y6,{})}),f.jsx(J,{path:"/triggers",element:f.jsx(Z6,{})}),f.jsx(J,{path:"/prospects/:handle",element:f.jsx(e5,{})}),f.jsx(J,{path:"/compose",element:f.jsx(o5,{})}),f.jsx(J,{path:"/pipeline",element:f.jsx(i5,{})}),f.jsx(J,{path:"/history",element:f.jsx(A6,{})}),f.jsx(J,{path:"/terms",element:f.jsx(n1,{})}),f.jsx(J,{path:"/privacy",element:f.jsx(r1,{})}),f.jsxs(J,{element:f.jsx(ic,{tabs:oC}),children:[f.jsx(J,{path:"/leads",element:f.jsx(M6,{})}),f.jsx(J,{path:"/lists",element:f.jsx(N6,{})}),f.jsx(J,{path:"/audience",element:f.jsx(L6,{})}),f.jsx(J,{path:"/competitors",element:f.jsx(a5,{})}),f.jsx(J,{path:"/discover",element:f.jsx($6,{})}),f.jsx(J,{path:"/audience/top-engagers",element:f.jsx(f5,{})})]}),f.jsxs(J,{element:f.jsx(ic,{tabs:sC}),children:[f.jsx(J,{path:"/campaigns",element:f.jsx(E6,{})}),f.jsx(J,{path:"/approvals",element:f.jsx(q6,{})}),f.jsx(J,{path:"/calendar",element:f.jsx(Q6,{})}),f.jsx(J,{path:"/reply-guy",element:f.jsx(kr,{feature:"replyGuy",minPlan:"Pro",title:"Reply Guy",description:"Watch up to 20 influencer accounts. The moment any of them tweet, AI drafts a high-quality reply within ~90 seconds.",children:f.jsx(l5,{})})}),f.jsx(J,{path:"/bait",element:f.jsx(kr,{feature:"baitCampaign",minPlan:"Pro",title:"Bait campaigns",description:"Attach a tweet of yours; the worker pipes everyone who replies into a list.",children:f.jsx(c5,{})})})]}),f.jsxs(J,{element:f.jsx(ic,{tabs:iC}),children:[f.jsx(J,{path:"/brand",element:f.jsx(j6,{})}),f.jsx(J,{path:"/templates",element:f.jsx(O6,{})}),f.jsx(J,{path:"/inspiration",element:f.jsx(s5,{})}),f.jsx(J,{path:"/content-sources",element:f.jsx(J6,{})}),f.jsx(J,{path:"/posting-intelligence",element:f.jsx(X6,{})})]}),f.jsxs(J,{element:f.jsx(ic,{tabs:aC}),children:[f.jsx(J,{path:"/settings",element:f.jsx(d5,{})}),f.jsx(J,{path:"/billing",element:f.jsx(K6,{})}),f.jsx(J,{path:"/mcp",element:f.jsx(r5,{})}),f.jsx(J,{path:"/guardrails",element:f.jsx(z6,{})}),f.jsx(J,{path:"/audit",element:f.jsx(t5,{})}),f.jsx(J,{path:"/support",element:f.jsx(n5,{})})]}),f.jsx(J,{path:"*",element:f.jsx(dy,{to:"/overview",replace:!0})})]})})})}),f.jsx(p5,{})]}):f.jsx(m.Suspense,{fallback:f.jsx(Rc,{fullScreen:!0,size:40}),children:f.jsxs(fy,{children:[f.jsx(J,{path:"/terms",element:f.jsx(n1,{})}),f.jsx(J,{path:"/privacy",element:f.jsx(r1,{})}),f.jsx(J,{path:"*",element:f.jsx(GD,{})})]})})}function m5({children:e}){const{pathname:t}=mr();return f.jsx(y6,{resetKey:t,children:e})}const g5={line:"#e8e8e8"},v5={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',primaryColor:"dark",primaryShade:9,defaultRadius:"md",white:"#ffffff",black:"#000000",headings:{fontWeight:"700",sizes:{h1:{fontSize:"32px",lineHeight:"1.15",fontWeight:"800"},h2:{fontSize:"24px",lineHeight:"1.2",fontWeight:"800"},h3:{fontSize:"18px",lineHeight:"1.3",fontWeight:"700"},h4:{fontSize:"16px",lineHeight:"1.3",fontWeight:"700"}}},colors:{dark:["#fafafa","#f2f2f2","#e8e8e8","#d4d4d4","#a3a3a3","#6b6b6b","#4a4a4a","#2a2a2a","#1a1a1a","#000000"],gray:["#fafafa","#f5f5f5","#f0f0f0","#e8e8e8","#d4d4d4","#a3a3a3","#6b6b6b","#4a4a4a","#2a2a2a","#1a1a1a"]},components:{Button:{defaultProps:{radius:"xl"},styles:{root:{borderRadius:"999px",fontWeight:600}}},Card:{defaultProps:{withBorder:!0,radius:"lg",shadow:"none"},styles:{root:{borderColor:g5.line}}},Paper:{defaultProps:{radius:"lg"}},Input:{defaultProps:{radius:"md"}},TextInput:{defaultProps:{radius:"md"}},PasswordInput:{defaultProps:{radius:"md"}},Textarea:{defaultProps:{radius:"md"}},Select:{defaultProps:{radius:"md"}},Modal:{defaultProps:{radius:"lg"}},Badge:{defaultProps:{radius:"sm",variant:"light"}},NavLink:{styles:{root:{borderRadius:8,fontWeight:500}}}}},y5=new V4({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1,placeholderData:e=>e}}});Nf.createRoot(document.getElementById("root")).render(f.jsx(gt.StrictMode,{children:f.jsxs(cb,{theme:v5,defaultColorScheme:"auto",children:[f.jsx(Sr,{position:"bottom-right",limit:5}),f.jsx(W4,{client:y5,children:f.jsx(LT,{children:f.jsx(h5,{})})})]})}));export{On as $,$n as A,V as B,Ne as C,os as D,cd as E,bo as F,he as G,ld as H,io as I,ss as J,ag as K,Si as L,fx as M,PN as N,ED as O,ed as P,L4 as Q,gt as R,Li as S,ie as T,nt as U,mr as V,ho as W,xe as X,X$ as Y,Yt as Z,Ka as _,px as a,Np as a$,hs as a0,$i as a1,N$ as a2,r6 as a3,pr as a4,eC as a5,fs as a6,so as a7,q_ as a8,K_ as a9,q$ as aA,Y$ as aB,Bu as aC,ds as aD,Gu as aE,Ae as aF,bt as aG,V$ as aH,TD as aI,So as aJ,Lt as aK,$D as aL,v6 as aM,H$ as aN,R$ as aO,Bg as aP,ID as aQ,MD as aR,BD as aS,b5 as aT,gl as aU,C5 as aV,Tn as aW,km as aX,Hu as aY,_t as aZ,Oi as a_,Nl as aa,gh as ab,X_ as ac,iD as ad,Pd as ae,J_ as af,Rc as ag,X0 as ah,_l as ai,YS as aj,x5 as ak,bi as al,Ln as am,k5 as an,SD as ao,Ga as ap,fD as aq,De as ar,Ii as as,R5 as at,tC as au,nC as av,tl as aw,Q_ as ax,Y_ as ay,j$ as az,hx as b,Ye as b0,m1 as b1,S5 as b2,Su as b3,D$ as b4,Tx as b5,Vp as b6,ym as b7,wo as b8,db as b9,qe as ba,xy as bb,Rp as bc,ZR as bd,Nt as be,pl as bf,_m as bg,lu as bh,QS as bi,ar as bj,Wk as bk,Du as bl,xm as bm,fb as bn,rd as bo,KS as bp,zi as bq,_D as br,mt as bs,oD as bt,yD as bu,zD as bv,mn as c,mx as d,gx as e,Q as f,Ai as g,te as h,dx as i,f as j,gn as k,_5 as l,be as m,wm as n,m as o,vx as p,P5 as q,A as r,E5 as s,tj as t,$ as u,ne as v,Ue as w,Ct as x,hl as y,At 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.