vendor: 33,806 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-CmbaT-M7.js","assets/useStore-B9WcefOa.js","assets/createLucideIcon-DkWbMhVc.js","assets/sections-CnHFnxEl.js","assets/utils-CZHmo-qH.js","assets/arrow-up-right-DtmsyUwX.js","assets/circle-check-Bz9W5bA8.js","assets/credit-card-dvUeqdRd.js","assets/shield-check-D-8S3cms.js","assets/BrowserView-J7fWfUvj.js","assets/BrowserView-CYLUDwX9.css","assets/route-xUONBAmj.js","assets/about-K2qi8GO6.js","assets/antivirus-CUf_jHOt.js","assets/clipboard-list-T7vBQCOc.js","assets/phone-BWkWKFNm.js","assets/refresh-cw-BDPviros.js","assets/settings-FJU9l4fU.js","assets/EditorialBlock-D4CUuuKX.js","assets/BundledPricingNote-DqbOSnSl.js","assets/auth-DdMZI3Uv.js","assets/createServerFn-7a4nvoEl.js","assets/redirect-DCb_aIiF.js","assets/qss-CuvTgpZA.js","assets/backoffice-DRe-j16N.js","assets/useQuery-BpBaA6A3.js","assets/backoffice.functions-CnTuJO2-.js","assets/backoffice-ui-D9iiL7rn.js","assets/backoffice-labels-CvRepp5j.js","assets/billing-help-C_YB5wUU.js","assets/SupportDetailPage-2Cg9hssX.js","assets/ContentPage-46YNDqeg.js","assets/browser-K2qi8GO6.js","assets/compare-wkGKT1Ez.js","assets/contact-GKAX1Huq.js","assets/download-K2qi8GO6.js","assets/legal-K2qi8GO6.js","assets/newsroom-C5fkozCL.js","assets/partners-CzAwDvp3.js","assets/press-8xyxeHQn.js","assets/pricing-Dfyq67BZ.js","assets/pricing-DkyF0MGY.js","assets/privacy-hywNgV2x.js","assets/privacy-choices-BtnRKNXl.js","assets/product-activation-hn30osgV.js","assets/products-DNHnC7S9.js","assets/renewal-help-BMSA2E9N.js","assets/reset-password-B5vo_nzo.js","assets/resources-K2qi8GO6.js","assets/safety-BmB8ixvS.js","assets/search-CZiNYd7b.js","assets/security-C0AFCsg8.js","assets/security-center-Bzkb8TA0.js","assets/subscription-help-CyIrTIN-.js","assets/support-WEtMnp9I.js","assets/team-invite-CL-KUrl1.js","assets/team-sign-in-DLPFLGAZ.js","assets/technology-CE36tW2P.js","assets/transparency-D2F0PLt1.js","assets/trust-CSSkrQuK.js","assets/vpn-K2qi8GO6.js","assets/welcome-BtKfFV5p.js","assets/use-purchase-conversion-BJirc442.js","assets/why-ai-era-needs-a-smart-browser-BtIOnoRk.js","assets/portal-D2qgZJfh.js","assets/about.index-Cq_W2Nz6.js","assets/about.careers-N14m2A1y.js","assets/about.company-DDmejspv.js","assets/about.mission-BYbRM-0A.js","assets/app-store.index-CeqwWnlC.js","assets/StorefrontView-7GvihxHG.js","assets/store-ui-DOjNJ-fE.js","assets/backoffice.index-B2oevHQZ.js","assets/backoffice.bookings-DeQ2qsID.js","assets/useMutation-BwC1xSqt.js","assets/backoffice.signups-CQ0a8ifs.js","assets/backoffice.subscribers-Cl1YlS9m.js","assets/backoffice.team-Wf3XBTaF.js","assets/browser.index-lx1kMPKd.js","assets/browser.safety-BFVCILEC.js","assets/download.index-CjP8o4D3.js","assets/download.android-BCx43oH8.js","assets/download.ios-l59Amv0q.js","assets/download.linux-DGLKXhiH.js","assets/download.mac-DMxW5tq3.js","assets/download.windows-BCJ4n5S7.js","assets/legal.index-BFc6gi-p.js","assets/legal.acceptable-use-KoPipM05.js","assets/legal.accessibility-D4B7w6RH.js","assets/legal.cookie-policy-Cu2I6779.js","assets/legal.privacy-policy-B5t2M4tJ.js","assets/legal.refund-policy-a2_jp9uo.js","assets/legal.responsible-disclosure-DmhQd1-r.js","assets/legal.terms-Crie55jO.js","assets/resources.index-oVDur4WB.js","assets/resources.help-DzIAMCOn.js","assets/vpn.index-D3eukxgT.js","assets/vpn.how-it-works-Ble1ifTM.js","assets/portal.index-BPfXW-ru.js","assets/portal-ui-QKqVyb6M.js","assets/portal.account-D6TS2Qld.js","assets/portal.services-C_tF-auW.js","assets/portal.subscriptions-D5vqq-_d.js","assets/app-store.agents.index-Sk_7fzaP.js","assets/app-store.agents._category-Dk0rmsDQ.js","assets/CategoryView-LbOk4ISd.js","assets/app-store.apps._category-PYMX8G06.js","assets/app-store.skills.index-DsngXxdE.js","assets/app-store.skills._category-m9og5FTl.js","assets/app-store.tools.index-XSvIcWN2.js","assets/app-store.tools._category-tpkHTexG.js","assets/backoffice.customers._customerId-DermTzR5.js","assets/backoffice.tickets.index-DcjkrR2Q.js","assets/backoffice.tickets._ticketId-BMoF1gnf.js","assets/resources.blog.index-D-SslFf2.js","assets/resources.blog._slug-DNxZmqeR.js","assets/resources.blog._slug-bMzZUCih.js","assets/ArticleView-BlbDiYGr.js","assets/resources.guides.index-DNnkzJsK.js","assets/resources.guides._slug-aq5_W_xG.js","assets/resources.guides._slug-Dtdb1NAg.js","assets/portal.tickets.index-CQrkwQ7s.js","assets/portal.tickets._ticketId-DLK6fsZP.js"])))=>i.map(i=>d[i]); 2import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,a as x,b as S,d as C,f as ee,g as te,h as ne,i as w,j as re,k as ie,n as T,o as ae,p as oe,q as se,r as E,s as D,t as O,u as ce,v as le,w as ue,x as de,y as fe,z as pe}from"./useStore-B9WcefOa.js";import{n as me,r as he,t as k}from"./utils-CZHmo-qH.js";import{i as ge,n as _e,r as ve,t as A}from"./createServerFn-7a4nvoEl.js";import{a as ye,i as be,r as xe,t as Se}from"./redirect-DCb_aIiF.js";import{n as Ce,t as we}from"./qss-CuvTgpZA.js";import{n as Te,r as Ee,t as De}from"./matchContext-DcmkPtE7.js";import{t as Oe}from"./createLucideIcon-DkWbMhVc.js";var ke=l((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function w(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(w)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,T=ie.port2;ie.port1.onmessage=w,re=function(){T.postMessage(null)}}else re=function(){_(w,0)};function ae(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ae=l(((e,t)=>{t.exports=ke()})),je=l((e=>{var t=Ae(),n=o(),r=he();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(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 c(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 l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),w=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function T(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case ee:return`SuspenseList`;case w:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function ue(e){return{current:e}}function de(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function fe(e,t){le++,ce[le]=e.current,e.current=t}var pe=ue(null),me=ue(null),k=ue(null),ge=ue(null);function _e(e,t){switch(fe(k,t),fe(me,e),fe(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kd(t),e=qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}de(pe),fe(pe,e)}function ve(){de(pe),de(me),de(k)}function A(e){e.memoizedState!==null&&fe(ge,e);var t=pe.current,n=qd(t,e.type);t!==n&&(fe(me,e),fe(pe,n))}function ye(e){me.current===e&&(de(pe),de(me)),ge.current===e&&(de(ge),rp._currentValue=O)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+be+e+xe}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ge(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=D.p;return e===0?(e=window.event,e===void 0?32:yp(e.type)):e}function ft(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,bt=`__reactResources$`+pt,xt=`__reactMarker$`+pt;function St(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function Ct(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gf(e);e!==null;){if(n=e[mt])return n;e=gf(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Et(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Dt(e){e[xt]=!0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Nt={},Pt={};function Ft(e){return De.call(Pt,e)?!0:De.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}function It(e,t,n){if(Ft(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Lt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Rt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function zt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Vt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=Bt(e)?`checked`:`value`;e._valueTracker=Vt(e,t,``+e[t])}}function Ut(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Bt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Gt=/[\n"\\]/g;function Kt(e){return e.replace(Gt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+zt(t)):e.value!==``+zt(t)&&(e.value=``+zt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Yt(e,o,zt(n)):Yt(e,o,zt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+zt(s):e.removeAttribute(`name`)}function Jt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ht(e);return}n=n==null?``:``+zt(n),t=t==null?n:``+zt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ht(e)}function Yt(e,t,n){t===`number`&&Wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Xt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Zt(e,t,n){if(t!=null&&(t=``+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+zt(n)}function Qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=zt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ht(e)}function $t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var en=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function tn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||en.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function nn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&tn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&tn(e,o,t[o])}function rn(e){if(e.indexOf(`-`)===-1)return!1;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 an=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),on=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sn(e){return on.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function j(){}var M=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;a:switch(e=t.stateNode,t.type){case`input`:if(qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Kt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ht]||null;if(!a)throw Error(i(90));qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ut(r)}break a;case`textarea`:Zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Xt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(Tu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ht]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var hn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return bn=i.slice(e,1<r?1-r:void 0)}function Sn(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 Cn(){return!0}function wn(){return!1}function Tn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Cn:wn,this.isPropagationStopped=wn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=Tn(En),On=p({},En,{view:0,detail:0}),kn=Tn(On),An,jn,Mn,Nn=p({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wn,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!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),Pn=Tn(Nn),Fn=Tn(p({},Nn,{dataTransfer:0})),In=Tn(p({},On,{relatedTarget:0})),Ln=Tn(p({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Rn=Tn(p({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),zn=Tn(p({},En,{data:0})),Bn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Vn={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:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Hn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hn[e])?!!t[e]:!1}function Wn(){return Un}var Gn=Tn(p({},On,{key:function(e){if(e.key){var t=Bn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Vn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wn,charCode:function(e){return e.type===`keypress`?Sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Kn=Tn(p({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),N=Tn(p({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wn})),qn=Tn(p({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),P=Tn(p({},Nn,{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})),Jn=Tn(p({},En,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=hn&&`CompositionEvent`in window,Zn=null;hn&&`documentMode`in document&&(Zn=document.documentMode);var Qn=hn&&`TextEvent`in window&&!Zn,$n=hn&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=xn(),bn=yn=vn=null,ir=!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 $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={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 cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=jd(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){wd(e,0)}function pr(e){if(Ut(Tt(e)))return e}function mr(e,t){if(e===`change`)return t}var hr=!1;if(hn){var gr;if(hn){var _r=`oninput`in document;if(!_r){var vr=document.createElement(`div`);vr.setAttribute(`oninput`,`return;`),_r=typeof vr.oninput==`function`}gr=_r}else gr=!1;hr=gr&&(!document.documentMode||9<document.documentMode)}function yr(){ur&&(ur.detachEvent(`onpropertychange`,br),dr=ur=null)}function br(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,cn(e)),pn(fr,t)}}function xr(e,t,n){e===`focusin`?(yr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,br)):e===`focusout`&&yr()}function Sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Cr(e,t){if(e===`click`)return pr(t)}function wr(e,t){if(e===`input`||e===`change`)return pr(t)}function Tr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Er=typeof Object.is==`function`?Object.is:Tr;function Dr(e,t){if(Er(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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 i=n[r];if(!De.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var n=Or(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Or(n)}}function Ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ar(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wt(e.document)}return t}function Mr(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`)}var Nr=hn&&`documentMode`in document&&11>=document.documentMode,Pr=null,Fr=null,Ir=null,Lr=!1;function Rr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lr||Pr==null||Pr!==Wt(r)||(r=Pr,`selectionStart`in r&&Mr(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: 76,603 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Dr(Ir,r)||(Ir=r,r=jd(Fr,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Pr)))}function zr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Br={animationend:zr(`Animation`,`AnimationEnd`),animationiteration:zr(`Animation`,`AnimationIteration`),animationstart:zr(`Animation`,`AnimationStart`),transitionrun:zr(`Transition`,`TransitionRun`),transitionstart:zr(`Transition`,`TransitionStart`),transitioncancel:zr(`Transition`,`TransitionCancel`),transitionend:zr(`Transition`,`TransitionEnd`)},Vr={},Hr={};hn&&(Hr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),`TransitionEvent`in window||delete Br.transitionend.transition);function Ur(e){if(Vr[e])return Vr[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hr)return Vr[e]=t[n];return e}var Wr=Ur(`animationend`),Gr=Ur(`animationiteration`),Kr=Ur(`animationstart`),qr=Ur(`transitionrun`),Jr=Ur(`transitionstart`),Yr=Ur(`transitioncancel`),Xr=Ur(`transitionend`),Zr=new Map,Qr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Qr.push(`scrollEnd`);function $r(e,t){Zr.set(e,t),At(t,[e])}var ei=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ti=[],ni=0,ri=0;function ii(){for(var e=ni,t=ri=ni=0;t<e;){var n=ti[t];ti[t++]=null;var r=ti[t];ti[t++]=null;var i=ti[t];ti[t++]=null;var a=ti[t];if(ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ci(n,i,a)}}function ai(e,t,n,r){ti[ni++]=e,ti[ni++]=t,ti[ni++]=n,ti[ni++]=r,ri|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function oi(e,t,n,r){return ai(e,t,n,r),li(e)}function si(e,t){return ai(e,null,null,t),li(e)}function ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ge(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(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.refCleanup=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 fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(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&65011712,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.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=Jf(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case w:return e=fi(31,n,t,a),e.elementType=w,e.lanes=o,e;case _:return _i(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=fi(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=fi(13,n,t,a),e.elementType=C,e.lanes=o,e;case ee:return e=fi(19,n,t,a),e.elementType=ee,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:Ee(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:Ee(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-Ge(r)-1;r&=~(1<<i),n+=1;var a=32-Ge(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-Ge(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,F=!1,zi=null,Bi=!1,Vi=Error(i(519));function Hi(e){throw Ji(Si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[mt]=e,t[ht]=r,n){case`dialog`:q(`cancel`,t),q(`close`,t);break;case`iframe`:case`object`:case`embed`:q(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)q(Cd[n],t);break;case`source`:q(`error`,t);break;case`img`:case`image`:case`link`:q(`error`,t),q(`load`,t);break;case`details`:q(`toggle`,t);break;case`input`:q(`invalid`,t),Jt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:q(`invalid`,t);break;case`textarea`:q(`invalid`,t),Qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Id(t.textContent,n)?(r.popover!=null&&(q(`beforetoggle`,t),q(`toggle`,t)),r.onScroll!=null&&q(`scroll`,t),r.onScrollEnd!=null&&q(`scrollend`,t),r.onClick!=null&&(t.onclick=j),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Li=Li.return}}function Gi(e){if(e!==Li)return!1;if(!F)return Wi(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Jd(e.type,e.memoizedProps)),n=!n),n&&Ri&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=hf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=hf(e)}else t===27?(t=Ri,nf(e.type)?(e=mf,mf=null,Ri=e):Ri=t):Ri=Li?pf(e.stateNode.nextSibling):null;return!0}function Ki(){Ri=Li=null,F=!1}function qi(){var e=zi;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=ue(null),Xi=null,Zi=null;function Qi(e,t,n){fe(Yi,t._currentValue),t._currentValue=n}function $i(e){e._currentValue=Yi.current,de(Yi)}function ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ta(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ea(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ea(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function na(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Er(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ge.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[rp]:e.push(rp))}a=a.return}e!==null&&ta(t,e,n,r),t.flags|=262144}function ra(e){for(e=e.firstContext;e!==null;){if(!Er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){Xi=e,Zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function aa(e){return sa(Xi,e)}function oa(e,t){return Xi===null&&ia(e),sa(e,t)}function sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zi===null){if(e===null)throw Error(i(308));Zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zi=Zi.next=t;return n}var ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},la=t.unstable_scheduleCallback,ua=t.unstable_NormalPriority,da={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fa(){return{controller:new ca,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&la(ua,function(){e.controller.abort()})}var ma=null,ha=0,ga=0,_a=null;function va(e,t){if(ma===null){var n=ma=[];ha=0,ga=_d(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ha++,t.then(ya,ya),t}function ya(){if(--ha===0&&ma!==null){_a!==null&&(_a.status=`fulfilled`);var e=ma;ma=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=E.S;E.S=function(e,t){au=Ne(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=ue(null);function Ca(){var e=Sa.current;return e===null?Ul.pooledCache:e}function wa(e,t){t===null?fe(Sa,Sa.current):fe(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:da._currentValue,pool:e}}var Ea=Error(i(460)),Da=Error(i(474)),Oa=Error(i(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(j,j),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,I(e),e;default:if(typeof t.status==`string`)t.then(j,j);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,I(e),e}throw Na=t,Ea}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(i(459));var e=Na;return Na=null,e}function I(e){if(e===Ea||e===Oa)throw Error(i(483))}var Fa=null,Ia=0;function La(e){var t=Ia;return Ia+=1,Fa===null&&(Fa=[]),ja(Fa,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function za(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ba(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ne&&Ma(i)===t.type)?(t=a(t,n.props),Ra(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),Ra(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=_i(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=gi(t.type,t.key,t.props,null,e.mode,n),Ra(n,t),n.return=e,n;case g:return t=bi(t,e.mode,n),t.return=e,t;case ne:return t=Ma(t),f(e,t,n)}if(se(t)||T(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,La(t),n);if(t.$$typeof===x)return f(e,oa(e,t),n);za(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case ne:return n=Ma(n),p(e,t,n,r)}if(se(n)||T(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,La(n),r);if(n.$$typeof===x)return p(e,t,oa(e,n),r);za(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=Ma(r),m(e,t,n,r,i)}if(se(r)||T(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,La(r),i);if(r.$$typeof===x)return m(e,t,n,oa(t,r),i);za(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return F&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&Mi(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),F&&Mi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return F&&Mi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),F&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Ma(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ra(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),Ra(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=Ma(o),b(e,r,o,c)}if(se(o))return v(e,r,o,c);if(T(o)){if(l=T(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,La(o),c);if(o.$$typeof===x)return b(e,r,oa(e,o),c);za(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ia=0;var i=b(e,t,n,r);return Fa=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Va=Ba(!0),Ha=Ba(!1),Ua=!1;function Wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return ai(e,r,t,n),li(e)}function Ja(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xa=!1;function Za(){if(Xa){var e=_a;if(e!==null)throw e}}function Qa(e,t,n,r){Xa=!1;var i=e.updateQueue;Ua=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(W&f)===f:(r&f)===f){f!==0&&f===ga&&(Xa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ua=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function $a(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function eo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$a(n[e],t)}var to=ue(null),no=ue(0);function ro(e,t){e=Jl,fe(no,e),fe(to,t),Jl=e|t.baseLanes}function io(){fe(no,Jl),fe(to,to.current)}function ao(){Jl=no.current,de(to),de(no)}var oo=ue(null),so=null;function co(e){var t=e.alternate;fe(mo,mo.current&1),fe(oo,e),so===null&&(t===null||to.current!==null||t.memoizedState!==null)&&(so=e)}function lo(e){fe(mo,mo.current),fe(oo,e),so===null&&(so=e)}function uo(e){e.tag===22?(fe(mo,mo.current),fe(oo,e),so===null&&(so=e)):fo(e)}function fo(){fe(mo,mo.current),fe(oo,oo.current)}function po(e){de(oo),so===e&&(so=null),de(mo)}var mo=ue(0);function ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uf(n)||df(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 go=0,L=null,_o=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(i(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return go=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Us:Ws,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){E.H=Hs;var t=_o!==null&&_o.next!==null;if(go=0,vo=_o=L=null,yo=!1,Co=0,wo=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&ra(e)&&(oc=!0))}function Ao(e,t,n,r){L=e;var a=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=a)throw Error(i(301));if(a+=1,vo=_o=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}E.H=Gs,o=t(n,r)}while(bo);return o}function jo(){var e=E.H,t=e.useState()[0];return t=typeof t.then==`function`?Io(t):t,e=e.useState()[0],(_o===null?null:_o.memoizedState)!==e&&(L.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function R(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function No(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}go=0,vo=_o=L=null,bo=!1,Co=So=0,wo=null}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?L.memoizedState=vo=e:vo=vo.next=e,vo}function z(){if(_o===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=_o.next;var t=vo===null?L.memoizedState:vo.next;if(t!==null)vo=t,_o=e;else{if(e===null)throw L.alternate===null?Error(i(467)):Error(i(310));_o=e,e={memoizedState:_o.memoizedState,baseState:_o.baseState,baseQueue:_o.baseQueue,queue:_o.queue,next:null},vo===null?L.memoizedState=vo=e:vo=vo.next=e}return vo}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Io(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=ja(wo,e,t),t=L,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Us:Ws),e}function Lo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Io(e);if(e.$$typeof===x)return aa(e)}throw Error(i(438,String(e)))}function Ro(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Fo(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function zo(e,t){return typeof t==`function`?t(e):t}function Bo(e){return Vo(z(),_o,e)}function Vo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(go&f)===f:(W&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((go&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,Xl|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Er(o,e.memoizedState)&&(oc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ho(e){var t=z(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Er(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uo(e,t,n){var r=L,a=z(),o=F;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Er((_o||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,ms(Ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||go&127||Wo(r,t,n)}return n}function Wo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Fo(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Go(e,t,n,r){t.value=n,t.getSnapshot=r,qo(t)&&Jo(e)}function Ko(e,t,n){return n(function(){qo(t)&&Jo(e)})}function qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function Jo(e){var t=si(e,2);t!==null&&bu(t,e,2)}function Yo(e){var t=Po();if(typeof e==`function`){var n=e;if(e=n(),xo){We(!0);try{n()}finally{We(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t}function Xo(e,t,n,r){return e.baseState=n,Vo(e,_o,typeof r==`function`?r:zo)}function Zo(e,t,n,r,a){if(zs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};E.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=E.T,o={};E.T=o;try{var s=n(i,r),c=E.S;c!==null&&c(o,s),$o(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),E.T=a}}else try{a=n(i,r),$o(e,t,a)}catch(n){ts(e,t,n)}}function $o(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function is(e,t){if(F){var n=Ul.formState;if(n!==null){a:{var r=L;if(F){if(Ri){b:{for(var i=Ri,a=Bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=pf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=pf(i.nextSibling),r=i.data===`F!`;break a}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Po(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Is.bind(null,L,r),r.dispatch=n,r=Yo(!1),a=Rs.bind(null,L,!1,r.queue),r=Po(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Zo.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function as(e){return os(z(),_o,e)}function os(e,t,n){if(t=Vo(e,t,rs)[0],e=Bo(zo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Io(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=z();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,ls(9,{destroy:void 0},ss.bind(null,i,n),null)),[r,a,e]}function ss(e,t){e.action=t}function cs(e){var t=z(),n=_o;if(n!==null)return os(t,n,e);z(),t=t.memoizedState,n=z();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Fo(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function us(){return z().memoizedState}function ds(e,t,n,r){var i=Po();L.flags|=e,i.memoizedState=ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function fs(e,t,n,r){var i=z();r=r===void 0?null:r;var a=i.memoizedState.inst;_o!==null&&r!==null&&Do(r,_o.memoizedState.deps)?i.memoizedState=ls(t,a,n,r):(L.flags|=e,i.memoizedState=ls(1|t,a,n,r))}function ps(e,t){ds(8390656,8,e,t)}function ms(e,t){fs(2048,8,e,t)}function hs(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Fo(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function gs(e){var t=z().memoizedState;return hs({ref:t,nextImpl:e}),function(){if(H&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function _s(e,t){return fs(4,2,e,t)}function vs(e,t){return fs(4,4,e,t)}function ys(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bs(e,t,n){n=n==null?null:n.concat([e]),fs(4,4,ys.bind(null,t,e),n)}function xs(){}function Ss(e,t){var n=z();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cs(e,t){var n=z();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r}function ws(e,t,n){return n===void 0||go&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),L.lanes|=e,Xl|=e,n)}function Ts(e,t,n,r){return Er(n,t)?n:to.current===null?!(go&42)||go&1073741824&&!(W&261930)?(oc=!0,e.memoizedState=n):(e=yu(),L.lanes|=e,Xl|=e,t):(e=ws(e,n,r),Er(e,t)||(oc=!0),e)}function Es(e,t,n,r,i){var a=D.p;D.p=a!==0&&8>a?a:8;var o=E.T,s={};E.T=s,Rs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,ba(c,r),vu(e)):Ls(e,t,r,vu(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Ds(){}function Os(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ks(e).queue;Es(e,a,t,O,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:O},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function As(e){var t=ks(e);t.next===null&&(t=e.alternate.memoizedState),Ls(e,t.next.queue,{},vu())}function js(){return aa(rp)}function Ms(){return z().memoizedState}function Ns(){return z().memoizedState}function Ps(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ka(n);var r=qa(t,e,n);r!==null&&(bu(r,t,n),Ja(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Bs(t,n):(n=oi(e,t,n,r),n!==null&&(bu(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,vu())}function Ls(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Bs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Er(s,o))return ai(e,t,i,0),Ul===null&&ii(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return bu(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(i(479))}else t=oi(e,n,r,2),t!==null&&bu(t,e,2)}function zs(e){var t=e.alternate;return e===L||t!==null&&t===L}function Bs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Hs={readContext:aa,use:Lo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Hs.useEffectEvent=Eo;var Us={readContext:aa,use:Lo,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(xo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(xo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,n=Is.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xs,useDeferredValue:function(e,t){return ws(Po(),e,t)},useTransition:function(){var e=Yo(!1);return e=Es.bind(null,L,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=Po();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));W&127||Wo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ps(Ko.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=Ul.identifierPrefix;if(F){var n=ji,r=Ai;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:js,useFormState:is,useActionState:is,useOptimistic:function(e){var t=Po();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Rs.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return Po().memoizedState=Ps.bind(null,L)},useEffectEvent:function(e){var t=Po(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ws={readContext:aa,use:Lo,useCallback:Ss,useContext:aa,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Bo,useRef:us,useState:function(){return Bo(zo)},useDebugValue:xs,useDeferredValue:function(e,t){return Ts(z(),_o.memoizedState,e,t)},useTransition:function(){var e=Bo(zo)[0],t=z().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:as,useActionState:as,useOptimistic:function(e,t){return Xo(z(),_o,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Ws.useEffectEvent=gs;var Gs={readContext:aa,use:Lo,useCallback:Ss,useContext:aa,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Ho,useRef:us,useState:function(){return Ho(zo)},useDebugValue:xs,useDeferredValue:function(e,t){var n=z();return _o===null?ws(n,e,t):Ts(n,_o.memoizedState,e,t)},useTransition:function(){var e=Ho(zo)[0],t=z().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){var n=z();return _o===null?(n.baseState=e,[e,n.queue.dispatch]):Xo(n,_o,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Gs.useEffectEvent=gs;function Ks(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var qs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ka(r);i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(bu(t,e,r),Ja(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ka(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(bu(t,e,r),Ja(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ka(n);r.tag=2,t!=null&&(r.callback=t),t=qa(e,r,n),t!==null&&(bu(t,e,n),Ja(t,e,n))}};function Js(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Dr(n,r)||!Dr(i,a):!0}function Ys(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&&qs.enqueueReplaceState(t,t.state,null)}function Xs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Zs(e){ei(e)}function Qs(e){console.error(e)}function B(e){ei(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=Ka(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ka(e),e.tag=3,e}function rc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&na(t,n,a,!0),n=oo.current,n!==null){switch(n.tag){case 31:case 13:return so===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(F)return t=oo.current,t===null?(r!==Vi&&(t=Error(i(423),{cause:r}),Ji(Si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Si(r,n),a=tc(e.stateNode,r,a),Ya(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Vi&&(e=Error(i(422),{cause:r}),Ji(Si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Si(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ya(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ya(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?Ha(t,null,n,r):Va(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ia(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!oc?(R(e,t,i),Mc(e,t,i)):(F&&s&&Pi(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Dr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Dr(a,r)&&e.ref===t.ref)if(oc=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?io():ro(t,a),uo(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),io(),fo(t)):(wa(t,a.cachePool),ro(t,a),fo(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),io(),uo(t),e!==null&&na(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Va(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,po(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(lo(t),(e=Ri)?(e=lf(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(lo(t),a)if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(oc||na(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=Ul,r!==null&&(s=ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,si(e,s),bu(r,e,s),ac;Mu(),t=hc(e,t,n)}else e=o.treeContext,Ri=pf(s.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=mc(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return ia(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!oc?(R(e,t,i),Mc(e,t,i)):(F&&r&&Pi(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return ia(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!oc?(R(e,t,a),Mc(e,t,a)):(F&&r&&Pi(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(ia(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=qs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Wa(t),o=n.contextType,a.context=typeof o==`object`&&o?aa(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ks(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&qs.enqueueReplaceState(a,a.state,null),Qa(t,r,a,i),Za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Xs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ys(t,a,r,o),Ua=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,i),Za(),l=t.memoizedState,s||f!==l||Ua?(typeof d==`function`&&(Ks(t,n,d,r),l=t.memoizedState),(c=Ua||Js(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ga(e,t),o=t.memoizedProps,u=Xs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ys(t,a,r,c),Ua=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,i),Za();var p=t.memoizedState;o!==d||f!==p||Ua||e!==null&&e.dependencies!==null&&ra(e.dependencies)?(typeof s==`function`&&(Ks(t,n,s,r),p=t.memoizedState),(u=Ua||Js(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ra(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Va(t,e.child,null,i),t.child=Va(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Ki(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:Ta()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(mo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(F){if(a?co(t):fo(t),(e=Ri)?(e=lf(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return df(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(fo(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=_i(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(co(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(co(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(fo(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=_i(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Va(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(fo(t),t.child=e.child,t.flags|=128,t=null);else if(co(t),df(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||na(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=Ul,s!==null&&(r=ct(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,si(e,r),bu(s,e,r),ac;uf(c)||Mu(),t=Oc(e,t,n)}else uf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=pf(c.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(fo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,a,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=Ta():(l=da._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(co(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Va(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=mo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,fe(mo,o),sc(e,t,r,n),r=F?Ei:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ra(e)))}function Pc(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),Qi(t,da,e.memoizedState.cache),Ki();break;case 27:case 5:A(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:Qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(co(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(co(t),t.flags|=128,null);co(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(na(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(mo,mo.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:Qi(t,da,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!Nc(e,n)&&!(t.flags&128))return oc=!1,Pc(e,t,n);oc=!!(e.flags&131072)}else oc=!1,F&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=Xs(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=cc(null,t,e,r,n);break a}if(a===te){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Xs(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ga(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Qi(t,da,r),r!==o.cache&&ta(t,[da],n,!0),Za(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}else if(r!==a){a=Si(Error(i(424)),t),Ji(a),t=xc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ri=pf(e.firstChild),Li=t,F=!0,zi=null,Bi=!0,n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=Pf(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(n=t.type,e=t.pendingProps,r=Gd(k.current).createElement(n),r[mt]=t,r[ht]=e,zd(r,n,e),Dt(r),t.stateNode=r):t.memoizedState=Pf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return A(t),e===null&&F&&(r=t.stateNode=_f(t.type,t.pendingProps,k.current),Li=t,Bi=!0,a=Ri,nf(t.type)?(mf=a,Ri=pf(r.firstChild)):Ri=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((a=r=Ri)&&(r=sf(r,t.type,t.pendingProps,Bi),r===null?a=!1:(t.stateNode=r,Li=t,Ri=pf(r.firstChild),Bi=!1,a=!0)),a||Hi(t)),A(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Jd(a,o)?r=null:s!==null&&Jd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Oo(e,t,jo,null,null,n),rp._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=Ri)&&(n=cf(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Hi(t)),null;case 13:return Tc(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qi(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ia(t),a=aa(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return ia(t),r=aa(da),e===null?(a=Ca(),a===null&&(a=Ul,o=fa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Wa(t),Qi(t,da,a)):((e.lanes&n)!==0&&(Ga(e,t),Qa(t,null,null,n),Za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Qi(t,da,r),r!==a.cache&&ta(t,[da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Qi(t,da,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Na=ka,Da}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Yf(t))if(ku())e.flags|=8192;else throw Na=ka,Da}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:nt(),e.lanes|=t,eu|=t)}function Bc(e,t){if(!F)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 Vc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hc(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vc(t),null;case 1:return Vc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$i(da),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),Vc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(Vc(t),Lc(t,a,null,r,n)):(Vc(t),Rc(t,o))):o?o===e.memoizedState?(Vc(t),t.flags&=-16777217):(Ic(t),Vc(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),Vc(t),Lc(t,a,e,r,n)),null;case 27:if(ye(t),n=k.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}e=pe.current,Gi(t)?Ui(t,e):(e=_f(a,r,n),t.stateNode=e,Ic(t))}return Vc(t),null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}if(o=pe.current,Gi(t))Ui(t,o);else{var s=Gd(k.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[mt]=t,o[ht]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(zd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return Vc(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=k.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Id(e.nodeValue,n)),e||Hi(t,!0)}else e=Gd(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Vc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[mt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(i(558))}return Vc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[mt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),a=!1}else a=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(po(t),t):(po(t),null)}return po(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),Vc(t),null);case 4:return ve(),e===null&&Dd(t.stateNode.containerInfo),Vc(t),null;case 10:return $i(t.type),Vc(t),null;case 19:if(de(mo),r=t.memoizedState,r===null)return Vc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Bc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ho(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return fe(mo,mo.current&1|2),F&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ne()>ou&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ho(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!F)return Vc(t),null}else 2*Ne()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Vc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ne(),e.sibling=null,n=mo.current,fe(mo,a?n&1|2:n&1),F&&Mi(t,r.treeForkCount),e);case 22:case 23:return po(t),ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vc(t),t.subtreeFlags&6&&(t.flags|=8192)):Vc(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&de(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Vc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(po(t),t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(mo),null;case 4:return ve(),null;case 10:return $i(t.type),null;case 22:case 23:return po(t),ao(),e!==null&&de(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Wc(e,t){switch(Fi(t),t.tag){case 3:$i(da),ve();break;case 26:case 27:case 5:ye(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:de(mo);break;case 10:$i(t.type);break;case 22:case 23:po(t),ao(),e!==null&&de(Sa);break;case 24:$i(da)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eo(t,n)}catch(t){Xu(e,e.return,t)}}}function Jc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Bd(r,e.type,n,t),r[ht]=t}catch(t){Xu(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nf(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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.tag===27&&nf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=j));else if(r!==4&&(r===27&&nf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(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&&(r===27&&nf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);zd(t,r,n),t[mt]=e,t[ht]=n}catch(t){Xu(e,e.return,t)}}var il=!1,V=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,sl=null;function cl(e,t){if(e=e.containerInfo,Ud=fp,e=jr(e),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Wd={focusedElem:e,selectionRange:n},fp=!1,sl=t;sl!==null;)if(t=sl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,sl=e;else for(;sl!==null;){switch(t=sl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Xs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)of(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:of(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,sl=e;break}sl=t.return}}function ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wl(e,n),r&4&&Gc(5,n);break;case 1:if(wl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&qc(n),r&512&&Yc(n,n.return);break;case 3:if(wl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{eo(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&rl(n);case 26:case 5:wl(e,n),t===null&&r&4&&Zc(n),r&512&&Yc(n,n.return);break;case 12:wl(e,n);break;case 31:wl(e,n),r&4&&hl(e,n);break;case 13:wl(e,n),r&4&&gl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),ff(e,n))));break;case 22:if(r=n.memoizedState!==null||il,!r){t=t!==null&&t.memoizedState!==null||V,i=il;var a=V;il=r,(V=t)&&!a?El(e,n,!!(n.subtreeFlags&8772)):wl(e,n),il=i,V=a}break;case 30:break;default:wl(e,n)}}function ul(e){var t=e.alternate;t!==null&&(e.alternate=null,ul(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;n!==null;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount==`function`)try{Ue.onCommitFiberUnmount(He,n)}catch{}switch(n.tag){case 26:V||Xc(n,t),pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:V||Xc(n,t);var r=dl,i=fl;nf(n.type)&&(dl=n.stateNode,fl=!1),pl(e,t,n),vf(n.stateNode),dl=r,fl=i;break;case 5:V||Xc(n,t);case 6:if(r=dl,i=fl,dl=null,pl(e,t,n),dl=r,fl=i,dl!==null)if(fl)try{(dl.nodeType===9?dl.body:dl.nodeName===`HTML`?dl.ownerDocument.body:dl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{dl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:dl!==null&&(fl?(e=dl,rf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Y(e)):rf(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:Kc(2,n,t),V||Kc(4,n,t),pl(e,t,n);break;case 1:V||(Xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Jc(n,t,r)),pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:V=(r=V)||n.memoizedState!==null,pl(e,t,n),V=r;break;default:pl(e,t,n)}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Y(e)}catch(e){Xu(t,t.return,e)}}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Y(e)}catch(e){Xu(t,t.return,e)}}function _l(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ol),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ol),t;default:throw Error(i(435,e.tag))}}function vl(e,t){var n=_l(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function yl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(nf(c.type)){dl=c.stateNode,fl=!1;break a}break;case 5:dl=c.stateNode,fl=!1;break a;case 3:case 4:dl=c.stateNode.containerInfo,fl=!0;break a}c=c.return}if(dl===null)throw Error(i(160));ml(o,s,a),dl=null,fl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xl(t,e),t=t.sibling}var bl=null;function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yl(t,e),Sl(e),r&4&&(Kc(3,e,e.return),Gc(3,e),Kc(5,e,e.return));break;case 1:yl(t,e),Sl(e),r&512&&(V||n===null||Xc(n,n.return)),r&64&&il&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=bl;if(yl(t,e),Sl(e),r&512&&(V||n===null||Xc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[xt]||o[mt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head >
9 title`))),zd(o,r,n),o[mt]=e,Dt(o),r=o;break a;case`link`:var s=Kf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),zd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Kf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),zd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[mt]=e,Dt(o),r=o}e.stateNode=r}else qf(a,e.type,e.stateNode);else e.stateNode=Vf(a,r,e.memoizedProps);
vendor: 65,845 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?qf(a,e.type,e.stateNode):Vf(a,r,e.memoizedProps))}break;case 27:yl(t,e),Sl(e),r&512&&(V||n===null||Xc(n,n.return)),n!==null&&r&4&&Qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yl(t,e),Sl(e),r&512&&(V||n===null||Xc(n,n.return)),e.flags&32){a=e.stateNode;try{$t(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(yl(t,e),Sl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(Gf=null,a=bl,bl=xf(t.containerInfo),yl(t,e),bl=a,Sl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Y(t.containerInfo)}catch(t){Xu(e,e.return,t)}al&&(al=!1,Cl(e));break;case 4:r=bl,bl=xf(e.stateNode.containerInfo),yl(t,e),Sl(e),bl=r;break;case 12:yl(t,e),Sl(e);break;case 31:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 13:yl(t,e),Sl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=Ne()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=il,d=V;if(il=u||a,V=d||l,yl(t,e),V=d,il=u,Sl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||il||V||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?af(m,!0):af(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vl(e,n))));break;case 19:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 30:break;case 21:break;default:yl(t,e),Sl(e)}}function Sl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if($c(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;nl(e,el(e),a);break;case 5:var o=n.stateNode;n.flags&32&&($t(o,``),n.flags&=-33),nl(e,el(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;tl(e,el(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ll(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kc(4,t,t.return),Tl(t);break;case 1:Xc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Jc(t,t.return,n),Tl(t);break;case 27:vf(t.stateNode);case 26:case 5:Xc(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function El(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:El(i,a,n),Gc(4,a);break;case 1:if(El(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)$a(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&qc(a),Yc(a,a.return);break;case 27:rl(a);case 26:case 5:El(i,a,n),n&&r===null&&o&4&&Zc(a),Yc(a,a.return);break;case 12:El(i,a,n);break;case 31:El(i,a,n),n&&o&4&&hl(i,a);break;case 13:El(i,a,n),n&&o&4&&gl(i,a);break;case 22:a.memoizedState===null&&El(i,a,n),Yc(a,a.return);break;case 30:break;default:El(i,a,n)}t=t.sibling}}function Dl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function Ol(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function kl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Al(e,t,n,r),t=t.sibling}function Al(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),i&2048&&Gc(9,t);break;case 1:kl(e,t,n,r);break;case 3:kl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(i&2048){kl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else kl(e,t,n,r);break;case 31:kl(e,t,n,r);break;case 13:kl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?kl(e,t,n,r):(a._visibility|=2,jl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?kl(e,t,n,r):Ml(e,t),i&2048&&Dl(o,t);break;case 24:kl(e,t,n,r),i&2048&&Ol(t.alternate,t);break;default:kl(e,t,n,r)}}function jl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:jl(a,o,s,c,i),Gc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,jl(a,o,s,c,i)):u._visibility&2?jl(a,o,s,c,i):Ml(a,o),i&&l&2048&&Dl(o.alternate,o);break;case 24:jl(a,o,s,c,i),i&&l&2048&&Ol(o.alternate,o);break;default:jl(a,o,s,c,i)}t=t.sibling}}function Ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ml(n,r),i&2048&&Dl(r.alternate,r);break;case 24:Ml(n,r),i&2048&&Ol(r.alternate,r);break;default:Ml(n,r)}t=t.sibling}}var Nl=8192;function Pl(e,t,n){if(e.subtreeFlags&Nl)for(e=e.child;e!==null;)Fl(e,t,n),e=e.sibling}function Fl(e,t,n){switch(e.tag){case 26:Pl(e,t,n),e.flags&Nl&&e.memoizedState!==null&&Xf(n,bl,e.memoizedState,e.memoizedProps);break;case 5:Pl(e,t,n);break;case 3:case 4:var r=bl;bl=xf(e.stateNode.containerInfo),Pl(e,t,n),bl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nl,Nl=16777216,Pl(e,t,n),Nl=r):Pl(e,t,n));break;default:Pl(e,t,n)}}function Il(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Kc(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):Ll(e);break;default:Ll(e)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kc(8,t,t.return),zl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function Bl(e,t){for(;sl!==null;){var n=sl;switch(n.tag){case 0:case 11:case 15:Kc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,sl=r;else a:for(n=e;sl!==null;){r=sl;var i=r.sibling,a=r.return;if(ul(r),r===n){sl=null;break a}if(i!==null){i.return=a,sl=i;break a}sl=a}}}var Vl={getCacheForType:function(e){var t=aa(da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return aa(da).controller.signal}},Hl=typeof WeakMap==`function`?WeakMap:Map,H=0,Ul=null,U=null,W=0,G=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return H&2&&W!==0?W&-W:E.T===null?dt():_d()}function yu(){if($l===0)if(!(W&536870912)||F){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),$l=e}else $l=536870912;return e=oo.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Ul&&(G===2||G===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,W,$l,!1)),it(e,n),(!(H&2)||e!==Ul)&&(e===Ul&&(!(H&2)&&(Zl|=n),Yl===4&&wu(e,W,$l,!1)),ld(e))}function xu(e,t,n){if(H&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||et(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Cu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-Ne(),10<a)){if(wu(r,t,$l,!Gl),$e(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=Zd(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:j},Fl(t,a,d);var m=(a&62914560)===a?iu-Ne():(a&4194048)===a?au-Ne():0;if(m=Qf(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Er(a(),i))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 wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ge(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ot(e,n,t)}function Tu(){return H&6?!0:(ud(0,!1),!1)}function Eu(){if(U!==null){if(G===0)var e=U.return;else e=U,Zi=Xi=null,No(e),Fa=null,Ia=0,e=U;for(;e!==null;)Wc(e.alternate,e),e=e.return;U=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Ul=e,U=n=mi(e.current,null),W=t,G=0,Wl=null,Gl=!1,Kl=et(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ge(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,ii(),n}function Ou(e,t){L=null,E.H=Hs,t===Ea||t===Oa?(t=Pa(),G=3):t===Da?(t=Pa(),G=4):G=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,U===null&&(Yl=1,$s(e,Si(t,e.current)))}function ku(){var e=oo.current;return e===null?!0:(W&4194048)===W?so===null:(W&62914560)===W||W&536870912?e===so:!1}function Au(){var e=E.H;return E.H=Hs,e===null?Hs:e}function ju(){var e=E.A;return E.A=Vl,e}function Mu(){Yl=4,Gl||(W&4194048)!==W&&oo.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Ul===null||wu(Ul,W,$l,!1)}function Nu(e,t,n){var r=H;H|=2;var i=Au(),a=ju();(Ul!==e||W!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(G!==0&&U!==null){var s=U,c=Wl;switch(G){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:oo.current===null&&(t=!0);var l=G;if(G=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=G,G=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Zi=Xi=null,H=r,E.H=i,E.A=a,U===null&&(Ul=null,W=0,ii()),o}function Pu(){for(;U!==null;)Lu(U)}function Fu(e,t){var n=H;H|=2;var r=Au(),a=ju();Ul!==e||W!==t?(su=null,ou=Ne()+500,Du(e,t)):Kl=et(e,t);a:do try{if(G!==0&&U!==null){t=U;var o=Wl;b:switch(G){case 1:G=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(Aa(o)){G=0,Wl=null,Ru(t);break}t=function(){G!==2&&G!==9||Ul!==e||(G=7),ld(e)},o.then(t,t);break a;case 3:G=7;break a;case 4:G=5;break a;case 7:Aa(o)?(G=0,Wl=null,Ru(t)):(G=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Yf(s):c.stateNode.complete){G=0,Wl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,Bu(u))}break b}}G=0,Wl=null,zu(e,t,o,5);break;case 6:G=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Zi=Xi=null,E.H=r,E.A=a,H=n,U===null?(Ul=null,W=0,ii(),Yl):0}function Iu(){for(;U!==null&&!je();)Lu(U)}function Lu(e){var t=Fc(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):U=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:No(t);default:Wc(n,t),t=U=hi(t,Jl),t=Fc(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):U=t}function zu(e,t,n,r){Zi=Xi=null,No(t),Fa=null,Ia=0;var i=t.return;try{if(ic(e,i,t,n,W)){Yl=1,$s(e,Si(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Yl=1,$s(e,Si(n,e.current)),U=null;return}t.flags&32768?(F||r===1?e=!0:Kl||W&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Hc(t.alternate,t,Jl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Uc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Yl=6,U=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(H&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ri,at(e,n,o,s,c,l),e===Ul&&(U=Ul=null,W=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Le,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=E.T,E.T=null,a=D.p,D.p=2,s=H,H|=4;try{cl(e,t,n)}finally{H=s,D.p=a,E.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=H;H|=4;try{xl(t,e);var a=Wd,o=jr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ar(s.ownerDocument.documentElement,s)){if(c!==null&&Mr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=kr(s,h),v=kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}fp=!!Ud,Wd=Ud=null}finally{H=i,D.p=r,E.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=H;H|=4;try{ll(e,t.alternate,t)}finally{H=i,D.p=r,E.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,Me();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),ut(n),t=t.stateNode,Ue&&typeof Ue.onCommitFiberRoot==`function`)try{Ue.onCommitFiberRoot(He,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=E.T,i=D.p,D.p=2,E.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{E.T=t,D.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=ut(fu),r=E.T,a=D.p;try{D.p=32>n?32:n,E.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,H&6)throw Error(i(331));var c=H;if(H|=4,Rl(o.current),Al(o,o.current,s,n),H=c,ud(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,o)}catch{}return!0}finally{D.p=a,E.T=r,Ku(e,t)}}function Yu(e,t,n){t=Si(n,t),t=tc(e.stateNode,t,2),e=qa(e,t,2),e!==null&&(it(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=Si(n,e),n=nc(2),r=qa(t,n,2),r!==null&&(rc(n,r,t,e),it(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(W&n)===n&&(Yl===4||Yl===3&&(W&62914560)===W&&300>Ne()-iu?!(H&2)&&Du(e,0):Ql|=n,eu===W&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=nt()),e=si(e,t),e!==null&&(it(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return Oe(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=W,a=$e(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&Xd()&&(e=cd);for(var t=Ne(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ge(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=tt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=W,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(G===2||G===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ke(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ke(r),ut(n)){case 2:case 8:n=Ie;break;case 32:n=Le;break;case 268435456:n=ze;break;default:n=Le}return r=md.bind(null,e),n=Oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ke(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=W;return r=$e(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,Ne()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){ef(function(){H&6?Oe(Fe,dd):fd()})}function _d(){if(cd===0){var e=ga;e===0&&(e=Ye,Ye<<=1,!(Ye&261888)&&(Ye=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:sn(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[ht]||null).action),o=r.submitter;o&&(t=(t=o[ht]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Os(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Qr.length;xd++){var Sd=Qr[xd];$r(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}$r(Wr,`onAnimationEnd`),$r(Gr,`onAnimationIteration`),$r(Kr,`onAnimationStart`),$r(`dblclick`,`onDoubleClick`),$r(`focusin`,`onFocus`),$r(`focusout`,`onBlur`),$r(qr,`onTransitionRun`),$r(Jr,`onTransitionStart`),$r(Yr,`onTransitionCancel`),$r(Xr,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),K=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function wd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}}}}function q(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(K.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(e,t,n,r){switch(yp(t)){case 2:var i=pp;break;case 8:i=mp;break;default:i=hp}n=i.bind(null,t,n,e),i=void 0,!gn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function kd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=Ct(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),o=[];a:{var c=Zr.get(e);if(c!==void 0){var l=Dn,u=e;switch(e){case`keypress`:if(Sn(n)===0)break a;case`keydown`:case`keyup`:l=Gn;break;case`focusin`:u=`focus`,l=In;break;case`focusout`:u=`blur`,l=In;break;case`beforeblur`:case`afterblur`:l=In;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Pn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Fn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=N;break;case Wr:case Gr:case Kr:l=Ln;break;case Xr:l=qn;break;case`scroll`:case`scrollend`:l=kn;break;case`wheel`:l=P;break;case`copy`:case`cut`:case`paste`:l=Rn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Kn;break;case`toggle`:case`beforetoggle`:l=Jn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Ad(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==M&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[gt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Ct(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Pn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Tt(l),h=u==null?c:Tt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Md,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&J(o,c,l,d,!1),u!==null&&f!==null&&J(o,f,u,d,!0)}}a:{if(c=r?Tt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=mr;else if(cr(c))if(hr)v=wr;else{v=Sr;var y=xr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&rn(r.elementType)&&(v=mr):v=Cr;if(v&&=v(e,r)){lr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Yt(c,`number`,c.value)}switch(y=r?Tt(r):window,e){case`focusin`:(cr(y)||y.contentEditable===`true`)&&(Pr=y,Fr=r,Ir=null);break;case`focusout`:Ir=Fr=Pr=null;break;case`mousedown`:Lr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Lr=!1,Rr(o,n,i);break;case`selectionchange`:if(Nr)break;case`keydown`:case`keyup`:Rr(o,n,i)}var b;if(Xn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ir?nr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&($n&&n.locale!==`ko`&&(ir||x!==`onCompositionStart`?x===`onCompositionEnd`&&ir&&(b=xn()):(vn=i,yn=`value`in vn?vn.value:vn.textContent,ir=!0)),y=jd(r,x),0<y.length&&(x=new zn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=rr(n),b!==null&&(x.data=b)))),(b=Qn?ar(e,n):or(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new zn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),bd(o,e,r,n,i)}wd(o,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=mn(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function J(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Nd=/\r\n?/g,Pd=/\u0000|\uFFFD/g;function Fd(e){return(typeof e==`string`?e:``+e).replace(Nd,` 10`).replace(Pd,``)}function Id(e,t){return t=Fd(t),Fd(e)===t}function Ld(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&$t(e,``+r);break;case`className`:Lt(e,`class`,r);break;case`tabIndex`:Lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Lt(e,n,r);break;case`style`:nn(e,r,o);break;case`data`:if(t!==`object`){Lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Ld(e,t,`name`,a.name,a,null),Ld(e,t,`formEncType`,a.formEncType,a,null),Ld(e,t,`formMethod`,a.formMethod,a,null),Ld(e,t,`formTarget`,a.formTarget,a,null)):(Ld(e,t,`encType`,a.encType,a,null),Ld(e,t,`method`,a.method,a,null),Ld(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=j);break;case`onScroll`:r!=null&&q(`scroll`,e);break;case`onScrollEnd`:r!=null&&q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=sn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:q(`beforetoggle`,e),q(`toggle`,e),It(e,`popover`,r);break;case`xlinkActuate`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:It(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=an.get(n)||n,It(e,n,r))}}function Rd(e,t,n,r,a,o){switch(n){case`style`:nn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&$t(e,``+r);break;case`onScroll`:r!=null&&q(`scroll`,e);break;case`onScrollEnd`:r!=null&&q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=j);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ht]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):It(e,n,r)}}}function zd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:q(`error`,e),q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ld(e,t,o,s,n,null)}}a&&Ld(e,t,`srcSet`,n.srcSet,n,null),r&&Ld(e,t,`src`,n.src,n,null);return;case`input`:q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Ld(e,t,r,d,n,null)}}Jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Ld(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Xt(e,!!r,n,!0):Xt(e,!!r,t,!1);return;case`textarea`:for(s in q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Ld(e,t,s,c,n,null)}Qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Ld(e,t,l,r,n,null)}return;case`dialog`:q(`beforetoggle`,e),q(`toggle`,e),q(`cancel`,e),q(`close`,e);break;case`iframe`:case`object`:q(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)q(Cd[r],e);break;case`image`:q(`error`,e),q(`load`,e);break;case`details`:q(`toggle`,e);break;case`embed`:case`source`:case`link`:q(`error`,e),q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ld(e,t,u,r,n,null)}return;default:if(rn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Rd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ld(e,t,c,r,n,null))}function Bd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Ld(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Ld(e,t,p,m,r,f)}}qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Ld(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Ld(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Xt(e,!!n,n?[]:``,!1):Xt(e,!!n,t,!0)):Xt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Ld(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Ld(e,t,s,a,r,o)}Zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Ld(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Ld(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Ld(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Ld(e,t,u,p,r,m)}return;default:if(rn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Rd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Rd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ld(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Ld(e,t,f,p,r,m)}function Vd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Hd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Vd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Vd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Ud=null,Wd=null;function Gd(e){return e.nodeType===9?e:e.ownerDocument}function Kd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function qd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Jd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yd=null;function Xd(){var e=window.event;return e&&e.type===`popstate`?e!==Yd&&(Yd=e,!0):(Yd=null,!1)}var Zd=typeof setTimeout==`function`?setTimeout:void 0,Qd=typeof clearTimeout==`function`?clearTimeout:void 0,$d=typeof Promise==`function`?Promise:void 0,ef=typeof queueMicrotask==`function`?queueMicrotask:$d===void 0?Zd:function(e){return $d.resolve(null).then(e).catch(tf)};function tf(e){setTimeout(function(){throw e})}function nf(e){return e===`head`}function rf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Y(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vf(e.ownerDocument.body);n=i}while(n);Y(t)}function af(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function of(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:of(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pf(e.nextSibling),e===null)break}return null}function cf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pf(e.nextSibling),e===null))return null;return e}function lf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pf(e.nextSibling),e===null))return null;return e}function uf(e){return e.data===`$?`||e.data===`$~`}function df(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function ff(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mf=null;function hf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function _f(e,t,n){switch(t=Gd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var yf=new Map,bf=new Set;function xf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sf=D.d;D.d={f:Cf,r:wf,D:Df,C:Of,L:kf,m:Af,X:Mf,S:jf,M:Nf};function Cf(){var e=Sf.f(),t=Tu();return e||t}function wf(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?As(t):Sf.r(e)}var Tf=typeof document>`u`?null:document;function Ef(e,t,n){var r=Tf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bf.has(i)||(bf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),zd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Df(e){Sf.D(e),Ef(`dns-prefetch`,e,null)}function Of(e,t){Sf.C(e,t),Ef(`preconnect`,e,t)}function kf(e,t,n){Sf.L(e,t,n);var r=Tf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=Ff(e);break;case`script`:a=zf(e)}yf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),yf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(If(a))||t===`script`&&r.querySelector(Bf(a))||(t=r.createElement(`link`),zd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Af(e,t){Sf.m(e,t);var n=Tf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zf(e)}if(!yf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),yf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bf(a)))return}r=n.createElement(`link`),zd(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function jf(e,t,n){Sf.S(e,t,n);var r=Tf;if(r&&e){var i=Et(r).hoistableStyles,a=Ff(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(If(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=yf.get(a))&&Uf(e,n);var c=o=r.createElement(`link`);Dt(c),zd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Hf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mf(e,t){Sf.X(e,t);var n=Tf;if(n&&e){var r=Et(n).hoistableScripts,i=zf(e),a=r.get(i);a||(a=n.querySelector(Bf(i)),a||(e=p({src:e,async:!0},t),(t=yf.get(i))&&Wf(e,t),a=n.createElement(`script`),Dt(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t){Sf.M(e,t);var n=Tf;if(n&&e){var r=Et(n).hoistableScripts,i=zf(e),a=r.get(i);a||(a=n.querySelector(Bf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=yf.get(i))&&Wf(e,t),a=n.createElement(`script`),Dt(a),zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t,n,r){var a=(a=k.current)?xf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Ff(n.href),n=Et(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Ff(n.href);var o=Et(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(If(e)))&&!o._p&&(s.instance=o,s.state.loading=5),yf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},yf.set(e,n),o||Rf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=zf(n),n=Et(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Ff(e){return`href="`+Kt(e)+`"`}function If(e){return`link[rel="stylesheet"][`+e+`]`}function Lf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Rf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),zd(t,`link`,n),Dt(t),e.head.appendChild(t))}function zf(e){return`[src="`+Kt(e)+`"]`}function Bf(e){return`script[async]`+e}function Vf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,Dt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),zd(r,`style`,a),Hf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Ff(n.href);var o=e.querySelector(If(a));if(o)return t.state.loading|=4,t.instance=o,Dt(o),o;r=Lf(n),(a=yf.get(a))&&Uf(r,a),o=(e.ownerDocument||e).createElement(`link`),Dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),zd(o,`link`,r),t.state.loading|=4,Hf(o,n.precedence,e),t.instance=o;case`script`:return o=zf(n.src),(a=e.querySelector(Bf(o)))?(t.instance=a,Dt(a),a):(r=n,(a=yf.get(o))&&(r=p({},n),Wf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Dt(a),zd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hf(r,n.precedence,e));return t.instance}function Hf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gf=null;function Kf(e,t,n){if(Gf===null){var r=new Map,i=Gf=new Map;i.set(n,r)}else i=Gf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[mt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function qf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Yf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Ff(r.href),a=t.querySelector(If(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=$f.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Lf(r),(i=yf.get(i))&&Uf(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),zd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=$f.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Zf=0;function Qf(e,t){return e.stylesheets&&e.count===0&&tp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Zf===0&&(Zf=62500*Hd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Zf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function $f(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ep=null;function tp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ep=new Map,t.forEach(np,e),ep=null,$f.call(e))}function np(e,t){if(!(t.state.loading&4)){var n=ep.get(e);if(n)var r=n.get(null);else{n=new Map,ep.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=$f.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var rp={$$typeof:x,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_threadCount:0};function ip(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ap(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ip(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Wa(a),e}function op(e){return e?(e=ui,e):ui}function sp(e,t,n,r,i,a){i=op(i),r.context===null?r.context=i:r.pendingContext=i,r=Ka(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=qa(e,r,t),n!==null&&(bu(n,e,t),Ja(n,e,t))}function cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lp(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}function up(e){if(e.tag===13||e.tag===31){var t=si(e,67108864);t!==null&&bu(t,e,67108864),lp(e,67108864)}}function dp(e){if(e.tag===13||e.tag===31){var t=vu();t=lt(t);var n=si(e,t);n!==null&&bu(n,e,t),lp(e,t)}}var fp=!0;function pp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=2,hp(e,t,n,r)}finally{D.p=a,E.T=i}}function mp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=8,hp(e,t,n,r)}finally{D.p=a,E.T=i}}function hp(e,t,n,r){if(fp){var i=gp(r);if(i===null)kd(e,t,r,_p,n),Op(e,r);else if(Ap(i,e,t,n,r))r.stopPropagation();else if(Op(e,r),t&4&&-1<Dp.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ge(o);s.entanglements[1]|=c,o&=~c}ld(a),!(H&6)&&(ou=Ne()+500,ud(0,!1))}}break;case 31:case 13:s=si(a,2),s!==null&&bu(s,a,2),Tu(),lp(a,2)}if(a=gp(r),a===null&&kd(e,t,r,_p,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function gp(e){return e=cn(e),vp(e)}var _p=null;function vp(e){if(_p=null,e=Ct(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(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 _p=e,null}function yp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Pe()){case Fe:return 2;case Ie:return 8;case Le:case Re:return 32;case ze:return 268435456;default:return 32}default:return 32}}var bp=!1,xp=null,Sp=null,Cp=null,wp=new Map,Tp=new Map,Ep=[],Dp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Op(e,t){switch(e){case`focusin`:case`focusout`:xp=null;break;case`dragenter`:case`dragleave`:Sp=null;break;case`mouseover`:case`mouseout`:Cp=null;break;case`pointerover`:case`pointerout`:wp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Tp.delete(t.pointerId)}}function kp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&up(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ap(e,t,n,r,i){switch(t){case`focusin`:return xp=kp(xp,e,t,n,r,i),!0;case`dragenter`:return Sp=kp(Sp,e,t,n,r,i),!0;case`mouseover`:return Cp=kp(Cp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return wp.set(a,kp(wp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Tp.set(a,kp(Tp.get(a)||null,e,t,n,r,i)),!0}return!1}function jp(e){var t=Ct(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,ft(e.priority,function(){dp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,ft(e.priority,function(){dp(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 Mp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);M=r,n.target.dispatchEvent(r),M=null}else return t=wt(n),t!==null&&up(t),e.blockedOn=n,!1;t.shift()}return!0}function Np(e,t,n){Mp(e)&&n.delete(t)}function Pp(){bp=!1,xp!==null&&Mp(xp)&&(xp=null),Sp!==null&&Mp(Sp)&&(Sp=null),Cp!==null&&Mp(Cp)&&(Cp=null),wp.forEach(Np),Tp.forEach(Np)}function Fp(e,n){e.blockedOn===n&&(e.blockedOn=null,bp||(bp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Pp)))}var Ip=null;function Lp(e){Ip!==e&&(Ip=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ip===e&&(Ip=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(vp(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,Os(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Y(e){function t(t){return Fp(t,e)}xp!==null&&Fp(xp,e),Sp!==null&&Fp(Sp,e),Cp!==null&&Fp(Cp,e),wp.forEach(t),Tp.forEach(t);for(var n=0;n<Ep.length;n++){var r=Ep[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ep.length&&(n=Ep[0],n.blockedOn===null);)jp(n),n.blockedOn===null&&Ep.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ht]||null;if(typeof a==`function`)o||Lp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ht]||null)s=o.formAction;else if(vp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Lp(n)}}}function Rp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;sp(n,vu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),Tu(),t[gt]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ep.length&&t!==0&&t<Ep[n].priority;n++);Ep.splice(n,0,e),n===0&&jp(e)}};var Vp=n.version;if(Vp!==`19.2.8`)throw Error(i(527,Vp,`19.2.8`));D.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:E,reconcilerVersion:`19.2.8`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{He=Up.inject(Hp),Ue=Up}catch{}}e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Zs,c=Qs,l=B,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ap(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=op(null),n=t.current,r=vu(),r=lt(r),o=Ka(r),o.callback=null,qa(n,o,r),n=r,t.current.lanes=n,it(t,n),ld(t),e[gt]=t.current,Dd(e),new Bp(t)}})),Me=l(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=je()}));function Ne(){try{return sessionStorage}catch{return}}var Pe=`tsr-scroll-restoration-v1_3`,Fe=Ne();function Ie(){try{return JSON.parse(Fe?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Le(){try{Fe?.setItem(Pe,JSON.stringify(Re))}catch{}}var Re=Ie(),ze=`data-scroll-restoration-id`,Be=e=>e.state.__TSR_key||e.href;function Ve(e){let t=e.getAttribute(ze);if(t)return`[${ze}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var He=!1,Ue=`window`;function We(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ge(e){let t=new Set;for(let n of e){if(n===Ue)continue;let e=We(n);e&&t.add(e)}return t}function Ke(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Be,a=new Set,o=e=>{let t=Re[e]||={};for(let e of a)e===document?t[Ue]={scrollX,scrollY}:e.isConnected&&(t[Ve(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,He=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{He||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Le()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=Re[d];if(e){let t=Re[u];for(let n in e){if(n===Ue){if(s)continue}else{let e=We(n);if(!e||s&&o&&(l??=Ge(o),l.has(e)))continue}t||=Re[u]={},t[n]??=e[n]}}}He=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ge(o));let t=e&&i&&c,s=r.restoring?Re[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Ue){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=We(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{He=!1}}))}var qe=Ye(JSON.parse),Je=Xe(JSON.stringify,JSON.parse);function Ye(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=we(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Xe(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Ce(e,r);return t?`?${t}`:``}}function Ze(e){return{input:({url:t})=>{for(let n of e)t=$e(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=et(e[n],t);return t}}}function Qe(e){let t=fe(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=te([`/`,t,e.pathname]),e)}}function $e(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function et(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function tt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),m=n(e.location),h=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r
10(()=>nt(o,v.get())),S=r(()=>nt(s,y.get())),C=r(()=>nt(c,b.get())),ee=r(()=>v.get()[0]),te=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),ne=r(()=>({locationHref:m.get().href,resolvedLocationHref:h.get()?.href,status:l.get()})),w=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:m.get(),resolvedLocation:h.get(),statusCode:g.get(),redirect:_.get()})),re=p(64);function ie(e){let t=re.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),re.set(e,t)),t}let T={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:m,resolvedLocation:h,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:ee,hasPending:te,matchRouteDeps:ne,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:w,getRouteMatchStore:ie,setMatches:ae,setPending:oe,setCached:se};ae(e.matches),a?.(T);function ae(e){rt(e,o,v,n,i)}function oe(e){rt(e,s,y,n,i)}function se(e){rt(e,c,b,n,i)}return T}function nt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function rt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}re(n.get(),a)||n.set(a)})}var it=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},at=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),ot=(e,t)=>
10!!(e.preload&&!e.router.stores.matchStores.has(t)),st=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ct=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},lt=(e,t,n)=>{if(!(!Se(n)&&!be(n)))throw Se(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Se(n)?`redirected`:be(n)?`notFound`:r.status===`pending`?`success`:r.status,context:st(e,t.index),isFetching:!1,error:n})),be(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Se(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ut=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},dt=(e,t,n)=>{let r=st(e,n);e.updateMatch(t,e=>({...e,context:r}))},ft=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,lt(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,lt(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Se(n)&&!be(n)&&(e.serialError??=n)},pt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!ot(e,t)&&(n.options.loader||n.options.beforeLoad||wt(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{it(e)},i);r._nonReactive.pendingTimeout=t}},mt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;pt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&<(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ht=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=d(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&ft(e,n,o),s&&ft(e,n,s),pt(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),f()});return}i._nonReactive.beforeLoadPromise=d();let p={...st(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=ot(e,t),v={search:m,abortController:c,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),f()});return}(Se(r)||be(r))&&(u(),ft(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(v),y(x))return u(),x.catch(t=>{ft(e,n,t)}).then(b)}catch(t){u(),ft(e,n,t)}b(x)},gt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>ht(e,n,t,i),s=()=>{if(ut(e,n))return;let t=mt(e,n,i);return y(t)?t.then(o):o()};return a()},_t=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},vt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=st(e,r),d=ot(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},yt=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Ct(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(vt(e,t,n,r,i)),l=!!s&&y(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;lt(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:st(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:st(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,be(t)&&await i.options.notFoundComponent?.preload?.(),lt(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,lt(e,e.router.getMatch(n),t)}!Se(o)&&!be(o)&&await Ct(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:st(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),lt(e,r,t)}},bt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(vt(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await yt(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Se(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await yt(e,t,i,n,d):dt(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(ut(e,i)){if(!e.router.getMatch(i))return e.matches[n];dt(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=ot(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&<(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=d(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let f=e.router.getMatch(i);s||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,s||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=s?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function xt(e){let t=e,n=[];at(t.router)&&it(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=gt(t,e);y(n)&&await n}catch(e){if(Se(e))throw e;if(be(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?ct(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(bt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Se(e))throw e;be(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=ct(t,l);e===void 0&&ie();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Ct(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ct(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=_t(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=it(t);if(y(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function St(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ct(e,t=Tt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Tt?(()=>{if(e._componentsPromise===void 0){let t=St(e,Tt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():St(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function wt(e){for(let t of Tt)if(e.options[t]?.preload)return!0;return!1}var Tt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Et=`__TSR_index`,Dt=`popstate`,Ot=`beforeunload`;function kt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Nt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Et];i=At(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Et];i=At(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Et]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function At(e,t){t||={};let n=Pt();return{...t,key:n,__TSR_key:n,[Et]:e}}function jt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Nt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Pt();t.history.replaceState({[Et]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Nt(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Et]-l.state[Et],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=kt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ot,S,{capture:!0}
10),t.removeEventListener(Dt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ot,S,{capture:!0}),t.addEventListener(Dt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Mt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Nt(e,t){let n=Mt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Pt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Et]:0,key:a,__TSR_key:a}}}function Pt(){return(Math.random()+1).toString(36).substring(7)}function Ft(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function It(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Lt=class{constructor(t,o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=oe(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:jt()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=p(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=tt(Bt(this.latestLocation),e),Ke(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=fe(o);t&&t!==`/`&&e.push(Qe({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Ze(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=r(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&i(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:f(e).path,external:!1,searchStr:o,search:v(t?.search,i),hash:f(r.slice(1)).path,state:b(t?.state,a)}}let o=new URL(i,this.origin),s=$e(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:f(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:v(t?.search,c),hash:f(s.hash.slice(1)).path,state:b(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>le({base:e,to:t.includes(`//`)?ee(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Ht({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);
10t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,o=t.to?`${t.to}`:void 0,s=r.search,c=Object.assign(Object.create(null),r.params),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),d=o?this.resolvePathWithBase(l,o):l,p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,u(t.params,c)),m=this.routesByPath[de(d)],g;if(m)g=this.getRouteBranch(m);else if(d.includes(`$`))g=[];else{let e=this.getMatchedRoutes(d);g=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&h(p))for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?d:f(ne({path:d,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Vt(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=Ut({search:y,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),y=v(s,y);let x=this.options.stringifySearch(y),S=t.hash===!0?n.hash:t.hash?u(t.hash,n.hash):void 0,C=S?`#${S}`:``,ee=t.state===!0?n.state:t.state?u(t.state,n.state):{};ee=b(n.state,ee);let te=`${_}${x}${C}`,w,re,ie=!1;if(this.rewrite){let e=new URL(te,this.origin),t=et(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?re=t.pathname+t.search+t.hash:(re=t.href,ie=!0)}else w=a(te),re=w;return{publicHref:re,href:w,pathname:_,search:y,searchStr:x,state:ee,hash:S??``,external:ie,unmaskOnReload:t.unmaskOnReload}},r=(r={},i)=>{let a=t(r),o=i?t(i):void 0;if(!o){let r=Object.create(null);if(this.options.routeMasks){let s=n(a.pathname,this.processedTree);if(s){Object.assign(r,s.rawParams);let{from:n,params:a,...c}=s.route,l=a===!1||a===null?Object.create(null):(a??!0)===!0?r:Object.assign(r,u(a,r));i={from:e.from,...c,params:l},o=t(i)}}}return o&&(a.maskedLocation=o),a};return e.mask?r(e,{from:e.from,...e.mask}):r(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=m(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=de(this.latestLocation.href)===de(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=d(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Nt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=$e(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}
10catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(pe(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=It(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await xt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Se(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):be(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(It(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pe
10ndingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&pe(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??3e5;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=Ct,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await xt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Se(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});be(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=_(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!m(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?m(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=o,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??`fuzzy`,stringifySearch:t.stringifySearch??Je,parseSearch:t.parseSearch??qe,protocolAllowlist:t.protocolAllowlist??e}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=g(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:de(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Gt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,f,p;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Vt(r.options.validateSearch,{...n})??void 0;u={...n,...e},f={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof Rt||(r=new Rt(e.message,{cause:e})),t?.throwOnError)throw r;u=n,f={},p=r}}let m=r.options.loaderDeps?.({search:u})??``,h=m?JSON.stringify(m):``,{interpolatedPath:g,usedParams:_}=ne({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),y=r.id+g+h,x=this.getMatch(y),S=l.get(r.id),C=x?._strictParams??_,ee;if(!x)try{Kt(r,C)}catch(e){if(ee=be(e)||Se(e)?e:new zt(e.message,{cause:e}),t?.throwOnError)throw ee}Object.assign(i,C);let te=S?`stay`:`enter`,w;if(x)w={...x,cause:te,params:S?.params??i,_strictParams:C,search:v(S?S.search:x.search,u),_strictSearch:f};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||wt(r)?`pending`:`success`;w={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:S?.params??i,_strictParams:C,pathname:g,updatedAt:Date.now(),search:S?v(S.search,u):u,_strictSearch:f,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:ee,__routeC
10ontext:void 0,_nonReactive:{loadPromise:d()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:te,loaderDeps:S?b(S.loaderDeps,m):m,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(w.globalNotFound=s===r.id),w.searchError=p;let re=this.getParentContext(o);w.context={...re,...w.__routeContext,...w.__beforeLoadContext},c[n]=w}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?v(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=s(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=s(r),o={...e.search};for(let e of r)try{Object.assign(o,Vt(e.options.validateSearch,o))}catch{}let c=t&&this.stores.matchStores.get(t)?.get(),l=c&&c.routeId===a.id&&c.pathname===e.pathname,u;if(l)u=c.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Kt(t,e)}catch{}u=e}let d={matchedRoutes:r,fullPath:a.fullPath,search:o,params:u};return this.lightweightCache.set(e,[t,d]),d}},Rt=class extends Error{},zt=class extends Error{};function Bt(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Vt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Rt(`Async validation not supported`);if(n.issues)throw new Rt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Ht({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=de(e),a,o=ue(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Ut({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Wt(n)(e,t,r??!1)}function Wt(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Vt(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=u(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Gt(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ee}function Kt(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var qt=Symbol.for(`TSR_DEFERRED_PROMISE`);function Jt(e,t){let n=e;return n[qt]?n:(n[qt]={status:`pending`},n.then(e=>{n[qt].status=`success`,n[qt].data=e}).catch(e=>{n[qt].status=`error`,n[qt].error={data:(t?.serializeError??Ft)(e),__isServerError:!0}}),n)}function Yt(e,t){if(e)return typeof e==`string`?e:e[t]}function Xt(e){return e?.scriptFormat??`module`}function Zt(e,t,n){let r=Qt(t),i=Yt(n,`script`)??r.crossOrigin;return{...Xt(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Qt(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function $t(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function en(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var tn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Ee:this.parentRoute||ie();let r=n?Ee:t?.path;r&&r!==`/`&&(r=S(r));let i=t?.id||r,a=n?Ee:te([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=te([`/`,a]));let o=a===`__root__`?`/`:te([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=de(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>xe({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},nn=class extends tn{constructor(e){super(e)}},rn=ve({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(ge in e)?!1:!!e[ge],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>_e(e)});function an(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function on(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.
10status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function sn(e){window.$_TSR||ie();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||ie();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=an(e.i)}),n.lastMatchId&&=an(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=d();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let f;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}on(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&f===void 0&&(f=e.index,l(e))}),e.stores.setMatches(s);let p=e.stores.matches.get(),m=e.stores.location.get();await Promise.all(p.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=p[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:m,navigate:t=>e.navigate({...t,_fromLocation:m}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:p,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(be(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let h=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!h)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let g=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(h){let t=s[1];t||ie(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=g,g.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var j=se(o(),1),M=ae();function cn({promise:e}){if(D)return D(e);let t=Jt(e);if(t[qt].status===`pending`)throw t;if(t[qt].status===`error`)throw t[qt].error;return t[qt].data}function ln(e){let t=(0,M.jsx)(un,{...e});return e.fallback?(0,M.jsx)(j.Suspense,{fallback:e.fallback,children:t}):t}function un(e){let t=cn(e);return e.children(t)}function dn(e){let t=e.errorComponent??pn;return(0,M.jsx)(fn,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?j.createElement(t,{error:n,reset:r}):e.children})}var fn=class extends j.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function pn({error:e}){let[t,n]=j.useState(!1);return(0,M.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,M.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,M.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,M.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,M.jsx)(`div`,{children:(0,M.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`}
10,children:e.message?(0,M.jsx)(`code`,{children:e.message}):null})}):null]})}var mn=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(mn||{});function hn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function gn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var _n=[],vn=0,{link:yn,unlink:bn,propagate:xn,checkDirty:Sn,shallowPropagate:Cn}=hn({update(e){return e._update()},notify(e){_n[Tn++]=e,e.flags&=~mn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=mn.Mutable|mn.Dirty,kn(e))}}),wn=0,Tn=0,En,Dn=0;function On(e){try{++Dn,e()}finally{--Dn||An()}}function kn(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=bn(n,e)}function An(){if(!(Dn>0)){for(;wn<Tn;){let e=_n[wn];_n[wn++]=void 0,e.notify()}wn=0,Tn=0}}function jn(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?mn.None:mn.Mutable,get(){return En!==void 0&&yn(i,En,vn),i._snapshot},subscribe(e){let t=gn(e),n={current:!1},r=Mn(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=En,o=t?.compare??Object.is;if(n)En=i,++vn,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=mn.Mutable|mn.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{En=a,n&&(i.flags&=~mn.RecursedCheck),kn(i)}}};return n?(i.flags=mn.Mutable|mn.Dirty,i.get=function(){let e=i.flags;if(e&mn.Dirty||e&mn.Pending&&Sn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Cn(e)}}else e&mn.Pending&&(i.flags=e&~mn.Pending);return En!==void 0&&yn(i,En,vn),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(xn(e),Cn(e),An())}},i}function Mn(e){let t=()=>{let t=En;En=n,++vn,n.depsTail=void 0,n.flags=mn.Watching|mn.RecursedCheck;try{return e()}finally{En=t,n.flags&=~mn.RecursedCheck,kn(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:mn.Watching|mn.RecursedCheck,notify(){let e=this.flags;e&mn.Dirty||e&mn.Pending&&Sn(this.deps,this)?t():this.flags=mn.Watching},stop(){this.flags=mn.None,this.depsTail=void 0,kn(this)}};return t(),n}var Nn={get(){},subscribe(){return{unsubscribe(){}}}};function Pn(e,t){let n=j.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=b(n.current,i):i}}function Fn(e){let t=T(),n=j.useContext(e.from?De:Te),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=Pn(e,t),a=O(r??Nn,e=>e?i(e):Nn);if(a!==Nn)return a;(e.shouldThrow??!0)&&ie()}function In(e){return Fn({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ln(e){let{select:t,...n}=e;return Fn({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Rn(e){return Fn({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function zn(e){return Fn({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Bn(e){let t=T();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Vn(e){return Fn({...e,select:t=>e.select?e.select(t.context):t.context})}var Hn=class extends tn{constructor(e){super(e),this.useMatch=e=>Fn({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vn({...e,from:this.id}),this.useSearch=e=>zn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Rn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ln({...e,from:this.id}),this.useLoaderData=e=>In({...e,from:this.id}),this.useNavigate=()=>Bn({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>
10(0,M.jsx)(me,{ref:t,from:this.fullPath,...e}))}};function Un(e){return new Hn(e)}function Wn(){return e=>Kn(e)}var Gn=class extends nn{constructor(e){super(e),this.useMatch=e=>Fn({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vn({...e,from:this.id}),this.useSearch=e=>zn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Rn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ln({...e,from:this.id}),this.useLoaderData=e=>In({...e,from:this.id}),this.useNavigate=()=>Bn({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(me,{ref:t,from:this.fullPath,...e}))}};function Kn(e){return new Gn(e)}function N(e){return new qn(e,{silent:!0}).createRoute}var qn=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Un(e);return t.isRoot=!1,t},this.silent=t?.silent}};function P(e,n){let r,i,a,o,s=()=>(r||=e().then(e=>{r=void 0,i=e[n??`default`]}).catch(e=>{if(a=e,t(a)&&a instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),o=!0)}}),r),c=function(e){if(o)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!i)if(D)D(s());else throw s();return j.createElement(i,e)};return c.preload=s,c}function Jn(e){let t=T(),n=`not-found-${O(t.stores.location,e=>e.pathname)}-${O(t.stores.status,e=>e)}`;return(0,M.jsx)(dn,{getResetKey:()=>n,onCatch:(t,n)=>{if(be(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(be(t))return e.fallback?.(t);throw t},children:e.children})}function Yn(){return(0,M.jsx)(`p`,{children:`Not Found`})}function Xn(e){return(0,M.jsx)(M.Fragment,{children:e.children})}function Zn(e,t,n){return t.options.notFoundComponent?(0,M.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,M.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,M.jsx)(Yn,{})}var Qn=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,$n=(e,t)=>e[0]===t[0]&&e[1]===t[1],er=j.memo(function({matchId:e}){let t=T(),n=t.stores.matchStores.get(e);n||ie();let r=O(t.stores.loadedAt,e=>e),i=O(n,e=>e,Qn);return(0,M.jsx)(tr,{router:t,matchId:e,resetKey:r,matchState:j.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function tr({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,M.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?j.Suspense:Xn,f=s?dn:Xn,p=l?Jn:Xn;return(0,M.jsxs)(i.isRoot?i.options.shellComponent??Xn:Xn,{children:[(0,M.jsx)(Te.Provider,{value:t,children:(0,M.jsx)(d,{fallback:o,children:(0,M.jsx)(f,{getResetKey:()=>n,errorComponent:s||pn,onCatch:(e,t)=>{if(be(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,M.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return j.createElement(l,e)},children:u||r._displayPending?(0,M.jsx)(w,{fallback:o,children:(0,M.jsx)(rr,{matchId:t})}):(0,M.jsx)(rr,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(nr,{}),(e.options.scrollRestoration,null)]}):null]})}function nr(){let e=T(),t=j.useRef();return ce(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...It(e.stores.location.get(),r??n)}),t.current=n},[O(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var rr=j.memo(function({matchId:e}){let t=T(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||ie();let i=O(r,e=>e),a=i.routeId,o=t.routesById[a],s=j.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=j.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,M.jsx)(e,{},s):(0,M.jsx)(ir,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);
10if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=d();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return be(i.error)||ie(),Zn(t,o,i.error);if(i.status===`redirected`)throw Se(i.error)||ie(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),ir=j.memo(function(){let e=T(),t=j.useContext(Te),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=O(a,e=>[e?.routeId,e?.globalNotFound??!1],$n),i=O(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,M.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||ie(),Zn(e,a,void 0);if(!i)return null;let s=(0,M.jsx)(er,{matchId:i});return n===`__root__`?(0,M.jsx)(j.Suspense,{fallback:o,children:s}):s});function ar(){let e=T(),t=j.useRef({router:e,mounted:!1}),[n,r]=j.useState(!1),i=O(e.stores.isLoading,e=>e),a=O(e.stores.hasPending,e=>e),o=C(i),s=i||n||a,c=C(s),l=i||a,u=C(l);return e.startTransition=e=>{r(!0),j.startTransition(()=>{e(),r(!1)})},j.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return de(e.latestLocation.publicHref)!==de(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),ce(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),ce(()=>{o&&!i&&e.emit({type:`onLoad`,...It(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),ce(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...It(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),ce(()=>{if(c&&!s){let t=It(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),On(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function or(){let e=T(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,M.jsx)(t,{}):null,r=(0,M.jsxs)(typeof document<`u`&&e.ssr?Xn:j.Suspense,{fallback:n,children:[(0,M.jsx)(ar,{}),(0,M.jsx)(sr,{})]});return e.options.InnerWrap?(0,M.jsx)(e.options.InnerWrap,{children:r}):r}function sr(){let e=T(),t=O(e.stores.firstId,e=>e),n=O(e.stores.loadedAt,e=>e),r=t?(0,M.jsx)(er,{matchId:t}):null;return(0,M.jsx)(Te.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,M.jsx)(dn,{getResetKey:()=>n,errorComponent:pn,onCatch:void 0,children:r})})}var cr=e=>({createMutableStore:jn,createReadonlyStore:jn,batch:On}),lr=e=>new ur(e),ur=class extends Lt{constructor(e){super(e,cr)}};function dr({router:e,children:t,...n}
10){h(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,M.jsx)(E.Provider,{value:e,children:t});return e.options.Wrap?(0,M.jsx)(e.options.Wrap,{children:r}):r}function fr({router:e,...t}){return(0,M.jsx)(dr,{router:e,...t,children:(0,M.jsx)(or,{})})}function pr(e){let t=T({warn:e?.router===void 0}),n=e?.router||t;return O(n.stores.__store,Pn(e,n))}function mr(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function hr(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,M.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,M.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,M.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,M.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,M.jsx)(gr,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function gr({attrs:e,children:t,preventScriptHoist:n}){T();let r=x(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(j.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return mr(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,mr(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,M.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var _r=e=>{let t=T(),n=t.options.ssr?.nonce,r=O(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),m),i=j.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:c(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=O(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),m),o=O(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=en(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Yt(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},m),s=O(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...Zt(a,t,e),nonce:n}})})}),i},m),l=O(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),m),u=O(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),m),d=[];return $t(d,i),d.push(...s),$t(d,a),d.push(...o),$t(d,l),$t(d,u),d};function vr(e){let t=_r(e.assetCrossOrigin),n=T().options.ssr?.nonce;return(0,M.jsx)(M.Fragment,{children:t.map(e=>(0,j.createElement)(hr,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var yr=()=>{let e=T(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>
10e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=O(e.stores.matches,n,m);return br(e,O(e.stores.matches,r,m),i)};function br(e,t,n){let r=[...t,...n];return(0,M.jsx)(M.Fragment,{children:r.map((e,t)=>(0,j.createElement)(hr,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function xr(e){let t=T();return j.useCallback(async(...n)=>{try{let t=await e(...n);if(Se(t))throw t;return t}catch(e){if(Se(e))return e.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(e).options);throw e}},[t,e])}var Sr=(e,t)=>{let n={type:`request`,...t||e},r=e=>Sr({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>Sr({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>Sr({},Object.assign(n,{client:e})),server:e=>Sr({},Object.assign(n,{server:e}))}};function Cr(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Cr(e,r.extends))}}var wr=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;Cr(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:Sr}),Tr=Symbol.for(`@supabase/supabase-js.traceContextExtractor`);function Er(){return globalThis[Tr]}var Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dr.apply(this,arguments)};function Or(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function kr(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Ar(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var jr=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Mr=class extends Error{constructor(e,t=`FunctionsError`,n){super(e),this.name=t,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}},Nr=class extends Mr{constructor(e){super(`Failed to send a request to the Edge Function`,`FunctionsFetchError`,e)}},Pr=class extends Mr{constructor(e){super(`Relay Error invoking the Edge Function`,`FunctionsRelayError`,e)}},Fr=class extends Mr{constructor(e){super(`Edge Function returned a non-2xx status code`,`FunctionsHttpError`,e)}},Ir;(function(e){e.Any=`any`,e.ApNortheast1=`ap-northeast-1`,e.ApNortheast2=`ap-northeast-2`,e.ApSouth1=`ap-south-1`,e.ApSoutheast1=`ap-southeast-1`,e.ApSoutheast2=`ap-southeast-2`,e.CaCentral1=`ca-central-1`,e.EuCentral1=`eu-central-1`,e.EuWest1=`eu-west-1`,e.EuWest2=`eu-west-2`,e.EuWest3=`eu-west-3`,e.SaEast1=`sa-east-1`,e.UsEast1=`us-east-1`,e.UsWest1=`us-west-1`,e.UsWest2=`us-west-2`})(Ir||={});var Lr=class{constructor(e,{headers:t={},customFetch:n,region:r=Ir.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=jr(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return kr(this,arguments,void 0,function*(e,t={}){var n;let r,i,a;try{let{headers:n,method:o,body:s,signal:c,timeout:l}=t,u={},{region:d}=t;d||=this.region;let f=new URL(`${this.url}/${e}`);d&&d!==`any`&&(u[`x-region`]=d,f.searchParams.set(`forceFunctionRegion`,d));let p,m=!!n&&Object.keys(n).some(e=>e.toLowerCase()===`content-type`);s&&!m?typeof Blob<`u`&&s instanceof Blob||s instanceof ArrayBuffer?(u[`Content-Type`]=`application/octet-stream`,p=s):typeof s==`string`?(u[`Content-Type`]=`text/plain`,p=s):typeof FormData<`u`&&s instanceof FormData?p=s:(u[`Content-Type`]=`application/json`,p=JSON.stringify(s)):p=s&&typeof s!=`string`&&!(typeof Blob<`u`&&s instanceof Blob)&&!(s instanceof ArrayBuffer)&&!(typeof FormData<`u`&&s instanceof FormData)?JSON.stringify(s):s;let h=c;l&&(i=new AbortController,r=setTimeout(()=>i.abort(),l),c?(h=i.signal,a=()=>i.abort(),c.addEventListener(`abort`,a)):h=i.signal);let g=yield this.fetch(f.toString(),{method:o||`POST`,headers:Object.assign(Object.assign(Object.assign({},u),this.headers),n),body:p,signal:h}).catch(e=>{throw new Nr(e)}),_=g.headers.get(`x-relay-error`);if(_&&_===`true`)throw new Pr(g);if(!g.ok)throw new Fr(g);let v=(g.headers.get(`Content-Type`)??`text/plain`).split(`;`)[0].trim().toLowerCase(),y;return y=v===`application/json`?yield g.json():v===`application/octet-stream`||v===`application/pdf`?yield g.blob():v===`text/event-stream`?g:v===`multipart/form-data`?yield g.formData():yield g.text(),{data:y,error:null,response:g}}catch(e){return{data:null,error:e,response:e instanceof Fr||e instanceof Pr?e.context:void 0}}finally{r&&clearTimeout(r),a&&((n=t.signal)==null||n.removeEventListener(`abort`,a))}})}},Rr=3,zr=e=>Math.min(1e3*2**e,3e4),Br=[520,503],Vr=[`GET`,`HEAD`,`OPTIONS`],Hr=class extends
10Error{constructor(e){super(e.message),this.name=`PostgrestError`,this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ur(e)}function Wr(e,t){if(Ur(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ur(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gr(e){var t=Wr(e,`string`);return Ur(t)==`symbol`?t:t+``}function Kr(e,t,n){return(t=Gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qr(Object(n),!0).forEach(function(t){Kr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yr(e,t){return new Promise(n=>{if(t?.aborted){n();return}let r=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e);function i(){clearTimeout(r),n()}t?.addEventListener(`abort`,i)})}function Xr(e,t,n,r){return!(!r||n>=Rr||!Vr.includes(e)||!Br.includes(t))}var Zr=class{constructor(e){this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError??!1,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle??!1,this.shouldStripNulls=e.shouldStripNulls??!1,this.urlLengthLimit=e.urlLengthLimit??8e3,this.retryEnabled=e.retry??!0,this.fetch=e.fetch?e.fetch:fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get(`Accept`)===`text/csv`)throw Error(`stripNulls() cannot be used with csv()`);return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||([`GET`,`HEAD`].includes(this.method)?this.headers.set(`Accept-Profile`,this.schema):this.headers.set(`Content-Profile`,this.schema)),this.method!==`GET`&&this.method!==`HEAD`&&this.headers.set(`Content-Type`,`application/json`),this.shouldStripNulls){let e=this.headers.get(`Accept`);e===`application/vnd.pgrst.object+json`?this.headers.set(`Accept`,`application/vnd.pgrst.object+json;nulls=stripped`):(!e||e===`application/json`)&&this.headers.set(`Accept`,`application/vnd.pgrst.array+json;nulls=stripped`)}let r=this.fetch,i=(async()=>{let e=0;for(;;){let t={};n.headers.forEach((e,n)=>{t[n]=e}),e>0&&(t[`X-Retry-Count`]=String(e));let i;try{i=await r(n.url.toString(),{method:n.method,headers:t,body:JSON.stringify(n.body,(e,t)=>typeof t==`bigint`?t.toString():t),signal:n.signal})}catch(t){if(t?.name===`AbortError`||t?.code===`ABORT_ERR`||!Vr.includes(n.method))throw t;if(n.retryEnabled&&e<Rr){let t=zr(e);e++,await Yr(t,n.signal);continue}throw t}if(Xr(n.method,i.status,e,n.retryEnabled)){let t=i.headers?.get(`Retry-After`)??null,r=t===null?zr(e):Math.max(0,parseInt(t,10)||0)*1e3;await i.text(),e++,await Yr(r,n.signal);continue}return await n.processResponse(i)}})();return this.shouldThrowOnError||(i=i.catch(e=>{let t=``,n=``,r=``,i=e?.cause;if(i){let n=i?.message??``,r=i?.code??``;t=`${e?.name??`FetchError`}: ${e?.message}`,t+=`\n\nCaused by: ${i?.name??`Error`}: ${n}`,r&&(t+=` (${r})`),i?.stack&&(t+=`\n${i.stack}`)}else t=e?.stack??``;let a=this.url.toString().length;return e?.name===`AbortError`||e?.code===`ABORT_ERR`?(r=``,n=`Request was aborted (timeout or manual cancellation)`,a>this.urlLengthLimit&&(n+=`. Note: Your request URL is ${a} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(i?.name===`HeadersOverflowError`||i?.code===`UND_ERR_HEADERS_OVERFLOW`)&&(r=``,n=`HTTP headers exceeded server limits (typically 16KB)`,a>this.urlLengthLimit&&(n+=`. Your request URL is ${a} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${e?.name??`FetchError`}: ${e?.message}`,details:t,hint:n,code:r},data:null,count:null,status:0,statusText:``}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,i=null,a=e.status,o=e.statusText;if(e.ok){if(t.method!==`HEAD`){let i=await e.text();if(i!==``)if(t.headers.get(`Accept`)===`text/csv`)r=i;else if(t.headers.get(`Accept`)&&t.headers.get(`Accept`)?.includes(`application/vnd.pgrst.plan+text`))r=i;else try{r=JSON.parse(i)}catch{if(n={message:i},r=null,t.shouldThrowOnError)throw new Hr({message:i,details:``,hint:``,code:``})}}let s=t.headers.get(`Prefer`)?.match(/count=(exact|planned|estimated)/),c=e.headers.get(`content-range`)?.split(`/`);if(s&&c&&c.length>1&&(i=parseInt(c[1])),t.isMaybeSingle&&Array.isArray(r))if(r.length>1){if(n={code:`PGRST116`,details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:`JSON object requested, multiple (or no) rows returned`},r=null,i=null,a=406,o=`Not Acceptable`,t.shouldThrowOnError)throw new Hr(Jr(Jr({},n),{},{hint:n.hint??``}))}else r=r.length===1?r[0]:null}else{let i=await e.text();try{n=JSON.parse(i),Array.isArray(n)&&e.status===404&&(r=[],n=null,a=200,o=`OK`)}
vendor: 8,717 bytes, line 10
10catch{e.status===404&&i===``?(a=204,o=`No Content`):n={message:i}}if(n&&t.shouldThrowOnError)throw new Hr(n)}return{success:n===null,error:n,data:r,count:i,status:a,statusText:o}}returns(){return this}overrideTypes(){return this}},Qr=class extends Zr{throwOnError(){return super.throwOnError()}select(e){let t=!1,n=(e??`*`).split(``).map(e=>/\s/.test(e)&&!t?``:(e===`"`&&(t=!t),e)).join(``);return this.url.searchParams.set(`select`,n),this.headers.append(`Prefer`,`return=representation`),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){let a=i?`${i}.order`:`order`,o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:``}${e}.${t?`asc`:`desc`}${n===void 0?``:n?`.nullsfirst`:`.nullslast`}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){let r=n===void 0?`limit`:`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){let i=r===void 0?`offset`:`${r}.offset`,a=r===void 0?`limit`:`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set(`Accept`,`application/vnd.pgrst.object+json`),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set(`Accept`,`text/csv`),this}geojson(){return this.headers.set(`Accept`,`application/geo+json`),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:a=`text`}={}){let o=[e?`analyze`:null,t?`verbose`:null,n?`settings`:null,r?`buffers`:null,i?`wal`:null].filter(Boolean).join(`|`),s=this.headers.get(`Accept`)??`application/json`;return this.headers.set(`Accept`,`application/vnd.pgrst.plan+${a}; for="${s}"; options=${o};`),this}rollback(){return this.headers.append(`Prefer`,`tx=rollback`),this}returns(){return this}maxAffected(e){return this.headers.append(`Prefer`,`handling=strict`),this.headers.append(`Prefer`,`max-affected=${e}`),this}},$r=RegExp(`[,()]`),ei=class extends Qr{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(`,`)}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(`,`)}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(`,`)}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(`,`)}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&$r.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&$r.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t==`string`?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(`,`)}}`),this}textSearch(e,t,{config:n,type:r}={}){let i=``;r===`plain`?i=`pl`:r===`phrase`?i=`ph`:r===`websearch`&&(i=`w`);let a=n===void 0?``:`(${n})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>t!==void 0).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){let r=n?`${n}.or`:`or`;return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},ti=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3,retry:a}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i,this.retry=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){let{head:n=!1,count:r}=t??{},i=n?`HEAD`:`GET`,a=!1,o=(e??`*`).split(``).map(e=>/\s/.test(e)&&!a?``:(e===`"`&&(a=!a),e)).join(``),{url:s,headers:c}=this.cloneRequestState();return s.searchParams.set(`select`,o),r&&c.append(`Prefer`,`count=${r}`),new ei({method:i,url:s,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){let{url:r,headers:i}=this.cloneRequestState();if(t&&i.append(`Prefer`,`count=${t}`),n||i.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);r.searchParams.set(`columns`,e.join(`,`))}}return new ei({method:`POST`,url:r,headers:i,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){let{url:a,headers:o}=this.cloneRequestState();if(o.append(`Prefer`,`resolution=${n?`ignore`:`merge`}-duplicates`),t!==void 0&&a.searchParams.set(`on_conflict`,t),r&&o.append(`Prefer`,`count=${r}`),i||o.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set(`columns`,e.join(`,`))}}return new ei({method:`POST`,url:a,headers:o,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){let{url:n,headers:r}=this.cloneRequestState();return t&&r.append(`Prefer`,`count=${t}`),new ei({method:`PATCH`,url:n,headers:r,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){let{url:t,headers:n}=this.cloneRequestState();return e&&n.append(`Prefer`,`count=${e}`),new ei({method:`DELETE`,url:t,headers:n,schema:this.schema,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},ni=class e{constructor(e,{headers:t={},schema:n,fetch:r,timeout:i,urlLengthLimit:a=8e3,retry:o}={}){this.url=e,this.headers=new Headers(t),this.schemaName=n,this.urlLengthLimit=a;let s=r??globalThis.fetch;this.fetch=i!==void 0&&i>0?(e,t)=>{let n=new AbortController,r=setTimeout(()=>n.abort(),i),a=t?.signal;if(a){if(a.aborted)return clearTimeout(r),s(e,t);let i=()=>{clearTimeout(r),n.abort()};return a.addEventListener(`abort`,i,{once:!0}),s(e,Jr(Jr({},t),{},{signal:n.signal})).finally(()=>{clearTimeout(r),a.removeEventListener(`abort`,i)})}return s(e,Jr(Jr({},t),{},{signal:n.signal})).finally(()=>clearTimeout(r))}:s,this.retry=o}from(e){if(!e||typeof e!=`string`||e.trim()===``)throw Error(`Invalid relation name: relation must be a non-empty string.`);return new ti(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,t={},{head:n=!1,get:r=!1,count:i}={}){let a,o=new URL(`${this.url}/rpc/${e}`),s,c=e=>typeof e==`object`&&!!e&&(!Array.isArray(e)||e.some(c)),l=n&&Object.values(t).some(c);l?(a=`POST`,s=t):n||r?(a=n?`HEAD`:`GET`,Object.entries(t).filter(([e,t])=>t!==void 0).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(`,`)}}`:`${t}
10`]).forEach(([e,t])=>{o.searchParams.append(e,t)})):(a=`POST`,s=t);let u=new Headers(this.headers);return l?u.set(`Prefer`,i?`count=${i},return=minimal`:`return=minimal`):i&&u.set(`Prefer`,`count=${i}`),new ei({method:a,url:o,headers:u,schema:this.schemaName,body:s,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},ri=class{constructor(){}static detectEnvironment(){if(typeof WebSocket<`u`)return{type:`native`,wsConstructor:WebSocket};let e=globalThis;if(typeof globalThis<`u`&&e.WebSocket!==void 0)return{type:`native`,wsConstructor:e.WebSocket};let t=typeof global<`u`?global:void 0;if(t&&t.WebSocket!==void 0)return{type:`native`,wsConstructor:t.WebSocket};if(typeof globalThis<`u`&&e.WebSocketPair!==void 0&&globalThis.WebSocket===void 0)return{type:`cloudflare`,error:`Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.`,workaround:`Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime.`};if(typeof globalThis<`u`&&e.EdgeRuntime||typeof navigator<`u`&&navigator.userAgent?.includes(`Vercel-Edge`))return{type:`unsupported`,error:`Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.`,workaround:`Use serverless functions or a different deployment target for WebSocket functionality.`};let n=globalThis.process;if(n){let e=n.versions;if(e&&e.node)return{type:`unsupported`,error:`Node.js detected but native WebSocket not found.`,workaround:`Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option.`}}return{type:`unsupported`,error:`Unknown JavaScript runtime without WebSocket support.`,workaround:`Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation.`}}static getWebSocketConstructor(){let e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let t=e.error||`WebSocket not supported in this environment.`;throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),Error(t)}static isWebSocketSupported(){try{return this.detectEnvironment().type===`native`}catch{return!1}}},ii=`realtime-js/2.112.4`,ai=`1.0.0`,oi=`2.0.0`,si=oi,ci=1e4,li={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},ui={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`,access_token:`access_token`},di={connecting:`connecting`,open:`open`,closing:`closing`,closed:`closed`},fi=class{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT=`broadcast`,this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,t){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event==`string`)return t(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){return this._isArrayBuffer(e.payload?.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){let t=e.payload?.payload??new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,t)}_encodeJsonUserBroadcastPush(e){let t=e.payload?.payload??{},n=new TextEncoder().encode(JSON.stringify(t)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,n)}_encodeUserBroadcastPush(e,t,n){let r=new TextEncoder,i=r.encode(e.topic),a=r.encode(e.ref??``),o=r.encode(e.join_ref??``),s=r.encode(e.payload.event),c=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},l=r.encode(Object.keys(c).length===0?``:JSON.stringify(c));if(o.length>255)throw Error(`joinRef length ${o.length} exceeds maximum of 255`);if(a.length>255)throw Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw Error(`topic length ${i.length} exceeds maximum of 255`);if(s.length>255)throw Error(`userEvent length ${s.length} exceeds maximum of 255`);if(l.length>255)throw Error(`metadata length ${l.length} exceeds maximum of 255`);let u=this.USER_BROADCAST_PUSH_META_LENGTH+o.length+a.length+i.length+s.length+l.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),f=new DataView(d),p=new Uint8Array(d),m=0;f.setUint8(m++,this.KINDS.userBroadcastPush),f.setUint8(m++,o.length),f.setUint8(m++,a.length),f.setUint8(m++,i.length),f.setUint8(m++,s.length),f.setUint8(m++,l.length),f.setUint8(m++,t),p.set(o,m),m+=o.length,p.set(a,m),m+=a.length,p.set(i,m),m+=i.length,p.set(s,m),m+=s.length,p.set(l,m),m+=l.length;var h=new Uint8Array(d.byteLength+n.byteLength);return h.set(new Uint8Array(d),0),h.set(new Uint8Array(n),d.byteLength),h.buffer}decode(e,t){if(this._isArrayBuffer(e))return t(this._binaryDecode(e));if(typeof e==`string`){let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}return t({})}_binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,t,r)}}_decodeUserBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+4,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=e.slice(s,e.byteLength),f=o===this.JSON_ENCODING?JSON.parse(n.decode(d)):d,p={type:this.BROADCAST_EVENT,event:l,payload:f};return a>0&&(p.meta=JSON.parse(u)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(e){return e instanceof ArrayBuffer||e?.constructor?.name===`ArrayBuffer`}_pick(e,t){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e)))}},pi;(function(e){e.abstime=`abstime`,e.bool=`bool`,e.date=`date`,e.daterange=`daterange`,e.float4=`float4`,e.float8=`float8`,e.int2=`int2`,e.int4=`int4`,e.int4range=`int4range`,e.int8=`int8`,e.int8range=`int8range`,e.json=`json`,e.jsonb=`jsonb`,e.money=`money`,e.numeric=`numeric`,e.oid=`oid`,e.reltime=`reltime`,e.text=`text`,e.time=`time`,e.timestamp=`timestamp`,e.timestamptz=`timestamptz`,e.timetz=`timetz`,e.tsrange=`tsrange`,e.tstzrange=`tstzrange`})(pi||={});var mi=(e,t,n={})=>{let r=n.skipTypes??[];return t?Object.keys(t).reduce((n,i)=>(n[i]=hi(i,e,t,r),n),{}):{}},hi=(e,t,n,r)=>{let i=t.find(t=>t.name===e)?.type,a=n[e];return i&&!r.includes(i)?gi(i,a):_i(a)},gi=(e,t)=>{if(e.charAt(0)===`_`)return xi(t,e.slice(1,e.length));switch(e){case pi.bool:return vi(t);case pi.float4:case pi.float8:case pi.int2:case pi.int4:case pi.int8:case pi.numeric:case pi.oid:return yi(t);case pi.json:case pi.jsonb:return bi(t);case pi.timestamp:return Si(t);case pi.abstime:case pi.date:case pi.daterange:case pi.int4range:case pi.int8range:case pi.money:case pi.reltime:case pi.text:case pi.time:case pi.timestamptz:case pi.timetz:case pi.tsrange:case pi.tstzrange:return _i(t);default:return _i(t)}},_i=e=>e,vi=e=>{switch(e){case`t`:return!0;case`f`:return!1;default:return e}},yi=e=>{if(typeof e==`string`){let t=parseFloat(e);
vendor: 19,247 bytes, lines 10-11
10if(!Number.isNaN(t))return t}return e},bi=e=>{if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e},xi=(e,t)=>{if(typeof e!=`string`)return e;let n=e.length-1,r=e[n];if(e[0]===`{`&&r===`}`){let r,i=e.slice(1,n);try{r=JSON.parse(`[`+i+`]`)}catch{r=i?i.split(`,`):[]}return r.map(e=>gi(t,e))}return e},Si=e=>typeof e==`string`?e.replace(` `,`T`):e,Ci=e=>{let t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,`http`),t.pathname=t.pathname.replace(/\/+$/,``).replace(/\/socket\/websocket$/i,``).replace(/\/socket$/i,``).replace(/\/websocket$/i,``),t.pathname===``||t.pathname===`/`?t.pathname=`/api/broadcast`:t.pathname+=`/api/broadcast`,t.href},wi=e=>typeof e==`function`?e:function(){return e},Ti=typeof self<`u`?self:null,Ei=typeof window<`u`?window:null,Di=Ti||Ei||globalThis,Oi=`2.0.0`,ki=1e4,Ai=1e3,ji=100,Mi={connecting:0,open:1,closing:2,closed:3},Ni={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},Pi={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`},Fi={longpoll:`longpoll`,websocket:`websocket`},Ii={complete:4},Li=`base64url.bearer.phx.`,Ri=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived(`timeout`)||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger(`timeout`,{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},F=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries+=1,this.callback()},this.timerCalc(this.tries+1))}},zi=class{constructor(e,t,n){this.state=Ni.closed,this.topic=e,this.params=wi(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ri(this,Pi.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new F(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive(`ok`,()=>{this.state=Ni.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive(`error`,e=>{this.state=Ni.errored,this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log(`channel`,`close ${this.topic}`),this.state=Ni.closed,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=Ni.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive(`timeout`,()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`timeout ${this.topic}`,this.joinPush.timeout),new Ri(this,Pi.leave,wi({}),this.timeout).send(),this.state=Ni.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Pi.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(this.joinedOnce)throw Error(`tried to join multiple times. 'join' can only be called a single time per channel instance`);return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ni.closed,this.bindings=[]}onClose(e){this.on(Pi.close,e)}onError(e){return this.on(Pi.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>n.event!==e||t!==void 0&&t!==n.ref)}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t||={},!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ri(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ni.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`leave ${this.topic}`),this.trigger(Pi.close,`leave`)},n=new Ri(this,Pi.leave,wi({}),e);return n.receive(`ok`,()=>t()).receive(`timeout`,()=>t()),n.send(),this.canPush()||n.trigger(`ok`,{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic===e?r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log(`channel`,`dropping outdated message`,{topic:e,event:t,payload:n,joinRef:r}),!1):!0:!1}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ni.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw Error(`channel onMessage callbacks must return the payload, modified or unmodified`);let a=this.bindings.filter(r=>r.event===e&&this.filterBindings(r,t,n));for(let e=0;e<a.length;e++)a[e].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Ni.closed}isErrored(){return this.state===Ni.errored}isJoined(){return this.state===Ni.joined}isJoining(){return this.state===Ni.joining}isLeaving(){return this.state===Ni.leaving}},Bi=class{static request(e,t,n,r,i,a,o){if(Di.XDomainRequest){let n=new Di.XDomainRequest;return this.xdomainRequest(n,e,t,r,i,a,o)}if(Di.XMLHttpRequest){let s=new Di.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}if(Di.fetch&&Di.AbortController)return this.fetchRequest(e,t,n,r,i,a,o);throw Error(`No suitable XMLHttpRequest implementation found`)}static fetchRequest(e,t,n,r,i,a,o){let s={method:e,headers:n,body:r},c=null;return i&&(c=new AbortController,setTimeout(()=>c.abort(),i),s.signal=c.signal),Di.fetch(t,s).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>o&&o(e)).catch(e=>{e.name===`AbortError`&&a?a():o&&o(null)}),c}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);o&&o(t)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){e.open(t,n,!0),e.timeout=a;for(let[t,n]of Object.entries(r))e.setRequestHeader(t,n);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{e.readyState===Ii.complete&&s&&s(this.parseJSON(e.responseText))},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e===``)return null;try{return JSON.parse(e)}catch{return console&&console.log(`failed to parse JSON response`,e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a==`object`?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+`=`+encodeURIComponent(a))}return n.join(`&`)}static appendParams(e,t){return Object.keys(t).length===0?e:`${e}${e.match(/\?/)?`&`:`?`}${this.serialize(t)}`}},Vi=e=>{let t=``,n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e++)t+=String.fromCharCode(n[e]);return btoa(t)},Hi=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Li)&&(this.authToken=atob(t[1].slice(Li.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Mi.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace(`ws://`,`http://`).replace(`wss://`,`https://`).replace(RegExp(`(.*)/`+Fi.websocket),`$1/`+Fi.longpoll)}endpointURL(){return Bi.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Mi.connecting}ontimeout(){this.onerror(`timeout`),this.closeAndRetry(1005,`timeout`,!1)}isActive(){return this.readyState===Mi.open||this.readyState===Mi.connecting}poll(){let e={Accept:`application/json`};this.authToken&&(e[`X-Phoenix-AuthToken`]=this.authToken),this.ajax(`GET`,e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;if(t===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,`session_gone`,!1);return}this.token=n}else t=0;switch(t){case 200:r.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Mi.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,`forbidden`,!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,`internal server error`,500);break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){typeof e!=`string`&&(e=Vi(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;let n=t+ji,r=e.slice(t,n);this.ajax(`POST`,{"Content-Type":`application/x-ndjson`},r.join(` 11`),()=>this.onerror(`timeout`),t=>{!t||t.status!==200?(this.awaitingBatchAck=!1,this.onerror(t&&t.status),this.closeAndRetry(1011,`internal server error`,!1)):n<e.length?this.batchSend(e,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,n){for(let e of this.reqs)e.abort();this.readyState=Mi.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<`u`?this.onclose(new CloseEvent(`close`,r)):this.onclose(r)}ajax(e,t,n,r,i){let a;a=Bi.request(e,this.endpointURL(),t,n,this.timeout,()=>{this.reqs.delete(a),r()},e=>{this.reqs.delete(a),this.isActive()&&i(e)}),this.reqs.add(a)}},Ui=class e{constructor(t,n={}){let r=n.events||{state:`presence_state`,diff:`presence_diff`};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,n,r),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,n,r)}),this.pendingDiffs=[],i()}),this.channel.on(r.diff,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,n,r),i())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.toNullProtoObj(this.clone(e));t=this.toNullProtoObj(t);let a=Object.create(null),o=Object.create(null);return this.map(i,(e,n)=>{t[e]||(o[e]=n)}),this.map(t,(e,t)=>{let n=i[e];if(n){let r=t.metas.map(e=>e.phx_ref),i=n.metas.map(e=>e.phx_ref),s=t.metas.filter(e=>i.indexOf(e.phx_ref)<0),c=n.metas.filter(e=>r.indexOf(e.phx_ref)<0);s.length>0&&(a[e]=t,a[e].metas=s),c.length>0&&(o[e]=this.clone(n),o[e].metas=c)}else a[e]=t}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){e=this.toNullProtoObj(e);let{joins:i,leaves:a}=this.clone(t);return n||=function(){},r||=function(){},this.map(i,(t,r)=>{let i=e[t];if(e[t]=this.clone(r),i){let n=e[t].metas.map(e=>e.phx_ref),r=i.metas.filter(e=>n.indexOf(e.phx_ref)<0);e[t].metas.unshift(...r)}n(t,i,r)}),this.map(a,(t,n)=>{let i=e[t];if(!i)return;let a=n.metas.map(e=>e.phx_ref);i.metas=i.metas.filter(e=>a.indexOf(e.phx_ref)<0),r(t,i,n),i.metas.length===0&&delete e[t]}),e}static list(e,t){return t||=function(e,t){return t},this.map(e,(e,n)=>t(e,n))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static toNullProtoObj(e){if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=e[n]}),t}static clone(e){return JSON.parse(JSON.stringify(e))}},Wi={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=new TextEncoder,s=o.encode(t),c=o.encode(n),l=o.encode(i),u=o.encode(r);this.assertFieldSize(s.byteLength,`join_ref`),this.assertFieldSize(c.byteLength,`ref`),this.assertFieldSize(l.byteLength,`topic`),this.assertFieldSize(u.byteLength,`event`);let d=this.META_LENGTH+s.byteLength+c.byteLength+l.byteLength+u.byteLength,f=new ArrayBuffer(this.HEADER_LENGTH+d),p=new Uint8Array(f),m=new DataView(f),h=0;m.setUint8(h++,this.KINDS.push),m.setUint8(h++,s.byteLength),m.setUint8(h++,c.byteLength),m.setUint8(h++,l.byteLength),m.setUint8(h++,u.byteLength),p.set(s,h),h+=s.byteLength,p.set(c,h),h+=c.byteLength,p.set(l,h),h+=l.byteLength,p.set(u,h),h+=u.byteLength;var g=new Uint8Array(f.byteLength+a.byteLength);return g.set(p,0),g.set(new Uint8Array(a),f.byteLength),g.buffer},assertFieldSize(e,t){if(e>255)throw Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o+=r;let c=n.decode(e.slice(o,o+i));o+=i;let l=n.decode(e.slice(o,o+a));return o+=a,{join_ref:s,ref:null,topic:c,event:l,payload:e.slice(o,e.byteLength)}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=n.decode(e.slice(s,s+o));s+=o;let f={status:d,response:e.slice(s,e.byteLength)};return{join_ref:c,ref:l,topic:u,event:Pi.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a+=r;let s=n.decode(e.slice(a,a+i));return a+=i,{join_ref:null,ref:null,topic:o,event:s,payload:e.slice(a,e.byteLength)}}},Gi=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||ki,this.transport=t.transport||Di.WebSocket||Hi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=Di&&Di.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Wi.encode.bind(Wi),this.defaultDecoder=Wi.decode.bind(Wi),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||`arraybuffer`,this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport===Hi?(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder):(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder);let r=null;Ei&&Ei.addEventListener&&(Ei.addEventListener(`pagehide`,e=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Ei.addEventListener(`pageshow`,e=>{r===this.connectClock&&(r=null,this.connect())}),Ei.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,n)=>{console.log(`${e}: ${t}`,n)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=wi(t.params||{}),this.endPoint=`${e}/${Fi.websocket}`,this.vsn=t.vsn||Oi,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new F(()=>{if(this.pageHidden){this.log(`Not reconnecting as page is hidden!`),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken&&wi(t.authToken)}getLongPollTransport(){return Hi}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&=(this.conn.close(),null),this.transport=e}protocol(){return location.protocol.match(/^https/)?`wss`:`ws`}endPointURL(){let e=Bi.appendParams(Bi.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)===`/`?e.charAt(1)===`/`?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`:e}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log(`passing params to connect is deprecated. Instead pass :params to the Socket constructor`),this.params=wi(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Hi?this.connectWithF
vendor: 4,375 bytes, line 11
11allback(Hi,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Hi:return`LongPoll`;default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=[`phoenix`,`${Li}${btoa(this.authToken()).replace(/=/g,``)}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,a,o=this.transportName(e),s=t=>{this.log(`transport`,`falling back to ${o}...`,t),this.off([i,a]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return s(`memorized`);this.fallbackTimer=setTimeout(s,t),a=this.onError(e=>{this.log(`transport`,`error`,e),r&&!n&&(clearTimeout(this.fallbackTimer),s(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,`true`),this.log(`transport`,`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,t),this.ping(e=>{this.log(`transport`,`connected to primary after`,e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log(`transport`,`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks(`open`)}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log(`transport`,`heartbeat timeout. Attempting to re-establish connection`);try{this.heartbeatCallback(`timeout`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.triggerChanError(Error(`heartbeat timeout`)),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),Ai,`heartbeat timeout`)}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||``):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Mi.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log(`transport`,`close`,e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks(`close`,e)}onConnError(e){this.hasLogger()&&this.log(`transport`,`error`,e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks(`error`,e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 11,711 bytes, line 11
11triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Pi.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Mi.connecting:return`connecting`;case Mi.open:return`open`;case Mi.closing:return`closing`;default:return`closed`}}isConnected(){return this.connectionState()===`open`}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>e.indexOf(t)===-1)}channel(e,t={}){let n=new zi(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;this.log(`push`,`${t} ${n} (${a}, ${i})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return this.ref=e===this.ref?0:e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback(`disconnected`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback(`sent`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;if(i&&i===this.pendingHeartbeatRef){let e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(r.status===`ok`?`ok`:`error`,e)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log(`receive`,`${r.status||``} ${t} ${n} ${i&&`(`+i+`)`||``}`.trim(),r);for(let e=0;e<this.channels.length;e++){let o=this.channels[e];o.isMember(t,n,r,a)&&o.trigger(n,r,i,a)}this.triggerStateCallbacks(`message`,e)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(t){this.log(`error`,`error in ${e} callback`,t)}})}catch(t){this.log(`error`,`error triggering ${e} callbacks`,t)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log(`transport`,`leaving duplicate topic "${e}"`),t.leave())}},Ki=class e{constructor(t,n){let r=Yi(n);this.presence=new Ui(t.getChannel(),r),this.presence.onJoin((n,r,i)=>{let a=e.onJoinPayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onLeave((n,r,i)=>{let a=e.onLeavePayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onSync(()=>{t.getChannel().trigger(`presence`,{event:`sync`})})}get state(){return e.transformState(this.presence.state)}static transformState(e){return e=Ji(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{let r=e[n];return t[n]=qi(r),t},{})}static onJoinPayload(e,t,n){return{event:`join`,key:e,currentPresences:Xi(t),newPresences:qi(n)}}static onLeavePayload(e,t,n){return{event:`leave`,key:e,currentPresences:Xi(t),leftPresences:qi(n)}}};function qi(e){return e.metas.map(e=>{let t=Object.getOwnPropertyDescriptors(e),n=Object.defineProperties({},t);return n.presence_ref=n.phx_ref,delete n.phx_ref,delete n.phx_ref_prev,n})}function Ji(e){return JSON.parse(JSON.stringify(e))}function Yi(e){return e?.events&&{events:e.events}}function Xi(e){return e?.metas?qi(e):[]}var Zi;(function(e){e.SYNC=`sync`,e.JOIN=`join`,e.LEAVE=`leave`})(Zi||={});var Qi=class{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new Ki(this.channel.channelAdapter,t)}};function $i(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(e&&typeof e==`object`){let t=e;if(typeof t.code==`number`){let n=typeof t.reason==`string`&&t.reason?` (${t.reason})`:``;return Error(`socket closed: ${t.code}${n}`,{cause:e})}return Error(`channel error: transport failure`,{cause:e})}return Error(`channel error: connection lost`)}var ea=class{constructor(e,t,n){let r=ta(n);this.channel=e.getSocket().channel(t,r),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,t){return this.channel.on(e,t)}off(e,t){this.channel.off(e,t)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,t,n){let r;try{r=this.channel.push(e,t,n)}catch{throw Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>100){let e=this.channel.pushBuffer.shift();e.cancelTimeout(),this.socket.log(`channel`,`discarded push due to buffer overflow: ${e.event}`,e.payload())}return r}updateJoinPayload(e){let t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),e)}canPush(){return this.socket.isConnected()&&this.state===li.joined}isJoined(){return this.state===li.joined}isJoining(){return this.state===li.joining}isClosed(){return this.state===li.closed}isLeaving(){return this.state===li.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}};function ta(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},e.config)}}var na=/[,()"\\]/,ra=e=>na.test(e)||e!==e.trim(),ia=e=>`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`,aa=e=>{let t=e===null?`null`:String(e);return ra(t)?ia(t):t},oa=e=>e===null?`null`:String(e),sa=(e,t)=>{if(e===`in`){let e=Array.isArray(t)?t:[t];if(e.length===0)throw Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(e)).map(e=>aa(e)).join(`,`)})`}return e===`is`?`is.${oa(t)}`:`${e}.${aa(t)}`},ca=class{constructor(){this.filters=[]}add(e,t,n,r=!1){let i=r?`not.`:``;return this.filters.push(`${e}=${i}${sa(t,n)}`),this}eq(e,t){return this.add(e,`eq`,t)}neq(e,t){return this.add(e,`neq`,t)}gt(e,t){return this.add(e,`gt`,t)}gte(e,t){return this.add(e,`gte`,t)}lt(e,t){return this.add(e,`lt`,t)}lte(e,t){return this.add(e,`lte`,t)}in(e,t){return this.add(e,`in`,t)}like(e,t){return this.add(e,`like`,t)}ilike(e,t){return this.add(e,`ilike`,t)}match(e,t){return this.add(e,`match`,t)}imatch(e,t){return this.add(e,`imatch`,t)}is(e,t){return this.add(e,`is`,t)}isDistinct(e,t){return this.add(e,`isdistinct`,t)}not(e,t,n){return this.add(e,t,n,!0)}build(){return this.filters.join(`,`)}toString(){return this.build()}},la;(function(e){e.ALL=`*`,e.INSERT=`INSERT`,e.UPDATE=`UPDATE`,e.DELETE=`DELETE`})(la||={});var ua;(function(e){e.BROADCAST=`broadcast`,e.PRESENCE=`presence`,e.POSTGRES_CHANGES=`postgres_changes`,e.SYSTEM=`system`})(ua||={});var da;(function(e){e.SUBSCRIBED=`SUBSCRIBED`,e.TIMED_OUT=`TIMED_OUT`,e.CLOSED=`CLOSED`,e.CHANNEL_ERROR=`CHANNEL_ERROR`})(da||={});var fa=class e{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,t={config:{}},n){if(this.topic=e,this.params=t,this.socket=n,this.bindings={},this.subTopic=e.replace(/^realtime:/i,``),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},t.config),this.channelAdapter=new ea(this.socket.socketAdapter,e,this.params),this.presence=new Qi(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Ci(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&this.params.config?.broadcast?.replay)throw Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,t=this.timeout){if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){let{config:{broadcast:n,presence:r,private:i}}=this.params,a=this.bindings.postgres_changes?.map(e=>e.filter)??[],o=!!this.bindings[ua.PRESENCE]&&this.bindings[ua.PRESENCE].length>0||this.params.config.presence?.enabled===!0,s={},c={broadcast:n,presence:Object.assign(Object.assign({},r),{enabled:o}),postgres_changes:a,private:i};this.socket.accessTokenValue&&(s.access_token=this.socket.accessTokenValue),this._onError(t=>{e?.(da.CHANNEL_ERROR,$i(t))}),this._onClose(()=>e?.(da.CLOSED)),this.updateJoinPayload(Object.assign({config:c},s)),this._updateFilterMessage(),this.channelAdapter.subscribe(t).receive(`ok`,async({postgres_changes:t})=>{if(this.socket._isManualToken()||this.socket.setAuth(),t===void 0){e?.(da.SUBSCRIBED);return}this._updatePostgresBindings(t,e)}).receive(`error`,t=>{this.state=li.errored;let n=Object.values(t).join(`, `)||`error`;e?.(da.CHANNEL_ERROR,Error(n,{cause:t}))}).receive(`timeout`,()=>{e?.(da.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){let r=this.bindings.postgres_changes,i=r?.length??0,a=[];for(let o=0;o<i;o++){let i=r[o],{filter:{event:s,schema:c,table:l,filter:u}}=i,d=t&&t[o];if(d&&d.event===s&&e.isFilterValueEqual(d.schema,c)&&e.isFilterValueEqual(d.table,l)&&e.isFilterValueEqual(d.filter,u))a.push(Object.assign(Object.assign({},i),{id:d.id}));else{this.unsubscribe(),this.state=li.errored,n?.(da.CHANNEL_ERROR,Error(`mismatch between server and client bindings for postgres changes`));return}}this.bindings.postgres_changes=a,this.state!=li.errored&&n&&n(da.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:`presence`,event:`track`,payload:e},t)}async untrack(e={}){return await this.send({type:`presence`,event:`untrack`},e)}on(e,t,n){let r=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=e===ua.PRESENCE||e===ua.POSTGRES_CHANGES;if(r&&i)throw this.socket.log(`channel`,`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,t,n)}async httpSend(e,t,n={}){if(t==null)return Promise.reject(Error(`Payload is required for httpSend()`));let r=t instanceof ArrayBuffer||ArrayBuffer.isView(t),i={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":r?`application/octet-stream`:`application/json`};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);let a=new URL(this.broadcastEndpointURL);a.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&a.searchParams.set(`private`,`true`);let o={method:`POST`,headers:i,body:r?t:JSON.stringify(t)},s=await this._fetchWithTimeout(a.toString(),o,n.timeout??this.timeout);if(s.status===202)return{success:!0};if(s.status===404)return Promise.reject(Error(`httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
11ime-js/migrations/httpsend-server-version.md`));let c=s.statusText;try{let e=await s.json();c=e.error||e.message||c}catch{}return Promise.reject(Error(c))}async send(e,t={}){if(!this.channelAdapter.canPush()&&e.type===`broadcast`){let n=`Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.`;this.socket.hasLogger()?this.socket.log(`channel`,n):console.warn(n);let{event:r,payload:i}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":`application/json`};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);let o={method:`POST`,headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:i,private:this.private}]})};try{let e=await this._fetchWithTimeout(this.broadcastEndpointURL,o,t.timeout??this.timeout);return await e.body?.cancel(),e.ok?`ok`:`error`}catch(e){return e instanceof Error&&e.name===`AbortError`?`timed out`:`error`}}return new Promise(n=>{let r=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);e.type===`broadcast`&&!this.params?.config?.broadcast?.ack&&n(`ok`),r.receive(`ok`,()=>n(`ok`)),r.receive(`error`,()=>n(`error`)),r.receive(`timeout`,()=>n(`timed out`))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive(`ok`,()=>t(`ok`)).receive(`timeout`,()=>t(`timed out`)).receive(`error`,()=>t(`error`))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,n){let r=new AbortController,i=setTimeout(()=>r.abort(),n),a=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(i),a}_on(t,n,r){let i=t.toLocaleLowerCase(),a=n?.filter;if((a instanceof ca||typeof a==`object`&&a&&typeof a.build==`function`)&&(n=Object.assign(Object.assign({},n),{filter:a.build()})),i===ua.POSTGRES_CHANGES&&this.bindings[i]?.find(t=>e.isSamePostgresFilter(t.filter,n)))return this.socket.log(`error`,`duplicate \`postgres_changes\` binding for ${this.topic} ignored`,n),this;let o=this.channelAdapter.on(t,r),s={type:i,filter:n,callback:r,ref:o};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,n)=>{let r=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(r,n))return!1;let i=this.bindings[r]?.find(t=>t.ref===e.ref);if(!i)return!0;if([`broadcast`,`presence`,`postgres_changes`].includes(r))if(`id`in i){let e=i.id,n=i.filter?.event;return e&&t.ids?.includes(e)&&(n===`*`||n?.toLocaleLowerCase()===t.data?.type.toLocaleLowerCase())}else{let e=(i?.filter?.event)?.toLocaleLowerCase();return e===`*`||e===(t?.event)?.toLocaleLowerCase()}return i.type.toLocaleLowerCase()===r})}_notThisChannelEvent(e,t){let{close:n,error:r,leave:i,join:a}=ui;return t&&[n,r,i,a].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,n)=>{if(typeof t==`object`&&`ids`in t){let e=t.data,{schema:n,table:r,commit_timestamp:i,type:a,errors:o}=e;return Object.assign(Object.assign({},{schema:n,table:r,commit_timestamp:i,eventType:a,new:{},old:{},errors:o}),this._getPayloadRecords(e))}return t})}copyBindings(e){if(this.joinedOnce)throw Error(`cannot copy bindings into joined channel`);for(let t in e.bindings)for(let n of e.bindings[t])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(e,t){return(e??void 0)===(t??void 0)}static isSamePostgresFilter(t,n){let r=(t?.select)?.join()??void 0,i=(n?.select)?.join()??void 0;return t?.event===n?.event&&e.isFilterValueEqual(t?.schema,n?.schema)&&e.isFilterValueEqual(t?.table,n?.table)&&e.isFilterValueEqual(t?.filter,n?.filter)&&r===i}_getPayloadRecords(e){let t={new:{},old:{}};return(e.type===`INSERT`||e.type===`UPDATE`)&&(t.new=mi(e.columns,e.record)),(e.type===`UPDATE`||e.type===`DELETE`)&&(t.old=mi(e.columns,e.old_record)),t}},pa=class{constructor(e,t){this.socket=new Gi(e,t)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,t,n,r=1e4){return new Promise(i=>{setTimeout(()=>i(`timeout`),r),this.socket.disconnect(()=>{e(),i(`ok`)},t,n)})}push(e){this.socket.push(e)}log(e,t,n){this.socket.log(e,t,n)}hasLogger(){return this.socket.hasLogger()}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==di.connecting}isDisconnecting(){return this.socket.connectionState()==di.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}},ma={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},ha=[1e3,2e3,5e3,1e4],ga=1e4;function _a(){let e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){return Array.from(e.keys())[t]??null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function va(){try{if(typeof globalThis<`u`&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return _a()}var ya=` 12 addEventListener("message", (e) => { 13 if (e.data.event === "start") { 14 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 15 } 16 });`,ba=class{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){if(this.channels=[],this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint=``,this.headers={},this.params={}
16,this.ref=0,this.serializer=new fi,this._manuallySetToken=!1,this._authPromise=null,this._authGeneration=0,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),!t?.params?.apikey)throw Error(`API key is required to connect to Realtime`);this.apiKey=t.params.apikey;let n=this._initializeOptions(t);this.socketAdapter=new pa(e,n),this.httpEndpoint=Ci(e),this.fetch=this._resolveFetch(t?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely(`connect`),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){let t=e.message;throw Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this._cancelPendingDisconnect(),this.isDisconnecting()?`ok`:await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){let t=await e.unsubscribe();return t===`ok`&&e.teardown(),t}async removeAllChannels(){let e=this.channels.map(async e=>{let t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return await this.disconnect(),t}log(e,t,n){this.socketAdapter.log(e,t,n)}hasLogger(){return this.socketAdapter.hasLogger()}connectionState(){return this.socketAdapter.connectionState()||di.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,t={config:{}}){let n=`realtime:${e}`,r=this.getChannels().find(e=>e.topic===n);if(r)return r;{let n=new fa(`realtime:${e}`,t,this);return this._cancelPendingDisconnect(),this.channels.push(n),n}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){let t=++this._authGeneration,n=this._performAuth(e,t);t===this._authGeneration&&(this._authPromise=n);try{await n}finally{this._authPromise===n&&(this._authPromise=null)}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic),this.channels.length===0&&(this.log(`transport`,`no channels remaining, scheduling disconnect`),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log(`transport`,`disconnecting immediately - no channels`),this.disconnect();return}
16this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log(`transport`,`deferred disconnect fired - no channels, disconnecting`),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log(`transport`,`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log(`transport`,`pending disconnect cancelled - channel activity detected`),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e,t){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(e){this.log(`error`,`Error fetching access token from callback`,e),n=this.accessTokenValue}else n=this.accessTokenValue;t===this._authGeneration&&(this.accessToken?this._manuallySetToken=!1:r&&(this._manuallySetToken=!0),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(e=>{let t={access_token:n,version:ii};e.updateJoinPayload(t),e.joinedOnce&&e.channelAdapter.isJoined()&&e.channelAdapter.push(ui.access_token,{access_token:n})})))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e=`general`){this._isManualToken()||this.setAuth().catch(t=>{this.log(`error`,`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log(`error`,`error waiting for auth on connect`,e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,n)=>{t!==`disconnected`&&(t==`sent`&&this._setAuthSafely(),e&&e(t,n))}}_startWorkerHeartbeat(){this.workerUrl?this.log(`worker`,`starting worker for from ${this.workerUrl}`):this.log(`worker`,`starting default worker`);let e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log(`worker`,`worker error`,e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{e.data.event===`keepAlive`&&this.sendHeartbeat()},this.workerRef.postMessage({event:`start`,interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&=(this.log(`worker`,`terminating worker`),this.workerRef.terminate(),void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{let e=new Blob([ya],{type:`application/javascript`});t=URL.createObjectURL(e)}return t}_initializeOptions(e){this.worker=e?.worker??!1,this.accessToken=e?.accessToken??null;let t={};t.timeout=e?.timeout??ci,t.heartbeatIntervalMs=e?.heartbeatIntervalMs??ma.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=e?.disconnectOnEmptyChannelsAfterMs??2*(e?.heartbeatIntervalMs??ma.HEARTBEAT_INTERVAL),t.transport=e?.transport??ri.getWebSocketConstructor(),t.params=e?.params,t.logger=e?.logger,t.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),t.sessionStorage=e?.sessionStorage??va(),t.reconnectAfterMs=e?.reconnectAfterMs??(e=>ha[e-1]||ga);let n,r,i=e?.vsn??si;switch(i){case ai:n=(e,t)=>t(JSON.stringify(e)),r=(e,t)=>t(JSON.parse(e));break;case oi:n=this.serializer.encode.bind(this.serializer),r=this.serializer.decode.bind(this.serializer);break;default:throw Error(`Unsupported serializer version: ${t.vsn}`)}if(t.vsn=i,t.encode=e?.encode??n,t.decode=e?.decode??r,t.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,t.params=Object.assign(Object.assign({},t.params),{log_level:this.logLevel})),this.worker){if(typeof window<`u`&&!window.Worker)throw Error(`Web Worker is not supported`);this.workerUrl=e?.workerUrl,t.autoSendHeartbeat=!this.worker}return t}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
vendor: 4,836 bytes, line 16
16,xa=class extends Error{constructor(e,t){super(e),this.name=`IcebergError`,this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType===`CommitStateUnknownException`||[500,502,504].includes(t.status)&&t.icebergType?.includes(`CommitState`)===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function Sa(e,t,n){let r=new URL(t,e);if(n)for(let[e,t]of Object.entries(n))t!==void 0&&r.searchParams.set(e,t);return r.toString()}async function Ca(e){return!e||e.type===`none`?{}:e.type===`bearer`?{Authorization:`Bearer ${e.token}`}:e.type===`header`?{[e.name]:e.value}:e.type===`custom`?await e.getHeaders():{}}function wa(e){let t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:a,headers:o}){let s=Sa(e.baseUrl,r,i),c=await Ca(e.auth),l=await t(s,{method:n,headers:{...a?{"Content-Type":`application/json`}:{},...c,...o},body:a?JSON.stringify(a):void 0}),u=await l.text(),d=(l.headers.get(`content-type`)||``).includes(`application/json`),f=d&&u?JSON.parse(u):u;if(!l.ok){let e=d?f:void 0,t=e?.error;throw new xa(t?.message??`Request failed with status ${l.status}`,{status:l.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:l.status,headers:l.headers,data:f}}}}function Ta(e){return e.join(`�`)}var Ea=class{constructor(e,t=``){this.client=e,this.prefix=t}async listNamespaces(e){let t=e?{parent:Ta(e.namespace)}:void 0;return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){let n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${Ta(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${Ta(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${Ta(e.namespace)}`}),!0}catch(e){if(e instanceof xa&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(e){if(e instanceof xa&&e.status===409)return;throw e}}};function Da(e){return e.join(`�`)}var Oa=class{constructor(e,t=``,n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){let n={};return this.accessDelegation&&(n[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){let n=await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data[`metadata-location`],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){let t={};return this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){let t={};this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation);try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${Da(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(e){if(e instanceof xa&&e.status===404)return!1;throw e}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof xa&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},ka=class{constructor(e){let t=`v1`;e.catalogName&&(t+=`/${e.catalogName}`);let n=e.baseUrl.endsWith(`/`)?e.baseUrl:`${e.baseUrl}/`;this.client=wa({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(`,`),this.namespaceOps=new Ea(this.client,t),this.tableOps=new Oa(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
16async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Aa(e)}function ja(e,t){if(Aa(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Aa(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ma(e){var t=ja(e,`string`);return Aa(t)==`symbol`?t:t+``}function Na(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pa(Object(n),!0).forEach(function(t){Na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fa=class extends Error{constructor(e,t=`storage`,n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t===`vectors`?`StorageVectorsError`:`StorageError`,this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Ia(e){return typeof e==`object`&&!!e&&`__isStorageError`in e}var La=class extends Fa{constructor(e,t,n,r=`storage`,i){super(e,r,t,n),this.name=r===`vectors`?`StorageVectorsApiError`:`StorageApiError`,this.status=t,this.statusCode=n,this.code=i}toJSON(){return I(I({},super.toJSON()),{},{code:this.code})}},Ra=class extends Fa{constructor(e,t,n=`storage`){super(e,n),this.name=n===`vectors`?`StorageVectorsUnknownError`:`StorageUnknownError`,this.originalError=t}};function za(e,t,n){let r=I({},e),i=t.toLowerCase();for(let e of Object.keys(r))e.toLowerCase()===i&&delete r[e];return r[i]=n,r}function Ba(e){let t={};for(let[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}var Va=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Ha=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ua=e=>{if(Array.isArray(e))return e.map(e=>Ua(e));if(typeof e==`function`||e!==Object(e))return e;let t={};return Object.entries(e).forEach(([e,n])=>{let r=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,``));t[r]=Ua(n)}),t},Wa=e=>!e||typeof e!=`string`||e.length===0||e.length>100||e.trim()!==e||e.includes(`/`)||e.includes(`\\`)?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Ga=e=>e.split(`/`).map(encodeURIComponent).join(`/`),Ka=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error;if(typeof t.error==`object`&&t.error!==null){let e=t.error;if(typeof e.message==`string`)return e.message}}return JSON.stringify(e)},qa=async(e,t,n,r)=>{if(typeof e==`object`&&e&&`json`in e&&typeof e.json==`function`){let n=e,i=parseInt(String(n.status),10);Number.isFinite(i)||(i=500),n.json().then(e=>{let n=e?.statusCode||e?.code||i+``;t(new La(Ka(e),i,n,r,e?.code))}).catch(()=>{let e=i+``;t(new La(n.statusText||`HTTP ${i} error`,i,e,r))})}else t(new Ra(Ka(e),e,r))},Ja=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};if(e===`GET`||e===`HEAD`||!r)return I(I({},i),n);if(Ha(r)){let e=t?.headers||{},n;for(let[t,r]of Object.entries(e))t.toLowerCase()===`content-type`&&(n=r);i.headers=za(e,`Content-Type`,n??`application/json`),i.body=JSON.stringify(r)}else i.body=r;return t?.duplex&&(i.duplex=t.duplex),I(I({},i),n)};async function Ya(e,t,n,r,i,a,o){return new Promise((s,c)=>{e(n,Ja(t,r,i,a)).then(e=>{if(!e.ok)throw e;if(r?.noResolveJson)return e;if(o===`vectors`){let t=e.headers.get(`content-type`);if(e.headers.get(`content-length`)===`0`||e.status===204||!t||!t.includes(`application/json`))return{}}return e.json()}).then(e=>s(e)).catch(e=>qa(e,c,r,o))})}function Xa(e=`storage`){return{get:async(t,n,r,i)=>Ya(t,`GET`,n,r,i,void 0,e),post:async(t,n,r,i,a)=>Ya(t,`POST`,n,i,a,r,e),put:async(t,n,r,i,a)=>Ya(t,`PUT`,n,i,a,r,e),head:async(t,n,r,i)=>Ya(t,`HEAD`,n,I(I({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,a)=>Ya(t,`DELETE`,n,i,a,r,e)}}var{get:Za,post:Qa,put:$a,head:eo,remove:to}=Xa(`storage`),no=Xa(`vectors`),ro=class{constructor(e,t={},n,r=`storage`){this.shouldThrowOnError=!1,this.url=e,this.headers=Ba(t),this.fetch=Va(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=za(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ia(e))return{data:null,error:e};throw e}}},io=Symbol.toStringTag,ao=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[io]=`StreamDownloadBuilder`,this.promise=null}
16then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ia(t))return{data:null,error:t};throw t}}},oo=Symbol.toStringTag,so=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[oo]=`BlobDownloadBuilder`,this.promise=null}asStream(){return new ao(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ia(t))return{data:null,error:t};throw t}}},co={limit:100,offset:0,sortBy:{column:`name`,order:`asc`}},lo={cacheControl:`3600`,contentType:`text/plain;charset=UTF-8`,upsert:!1},uo=class extends ro{constructor(e,t={},n,r){super(e,t,r,`storage`),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let a,o=I(I({},lo),r),s=I(I({},i.headers),e===`POST`&&{"x-upsert":String(o.upsert)}),c=o.metadata;if(typeof Blob<`u`&&n instanceof Blob?(a=new FormData,a.append(`cacheControl`,o.cacheControl),c&&a.append(`metadata`,i.encodeMetadata(c)),a.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(a=n,a.has(`cacheControl`)||a.append(`cacheControl`,o.cacheControl),c&&!a.has(`metadata`)&&a.append(`metadata`,i.encodeMetadata(c))):(a=n,s[`cache-control`]=`max-age=${o.cacheControl}`,s[`content-type`]=o.contentType,c&&(s[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&a instanceof ReadableStream||a&&typeof a==`object`&&`pipe`in a&&typeof a.pipe==`function`)&&!o.duplex&&(o.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))s=za(s,e,t);let l=i._removeEmptyFolders(t),u=i._getFinalPath(l),d=await(e==`PUT`?$a:Qa)(i.fetch,`${i.url}/object/${u}`,a,I({headers:s},o?.duplex?{duplex:o.duplex}:{}));return{path:l,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate(`POST`,e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;let a=i._removeEmptyFolders(e),o=i._getFinalPath(a),s=new URL(i.url+`/object/upload/sign/${o}`);return s.searchParams.set(`token`,t),i.handleOperation(async()=>{let e,t=I(I({},lo),r),o=I(I({},i.headers),{"x-upsert":String(t.upsert)}),c=t.metadata;if(typeof Blob<`u`&&n instanceof Blob?(e=new FormData,e.append(`cacheControl`,t.cacheControl),c&&e.append(`metadata`,i.encodeMetadata(c)),e.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(e=n,e.has(`cacheControl`)||e.append(`cacheControl`,t.cacheControl),c&&!e.has(`metadata`)&&e.append(`metadata`,i.encodeMetadata(c))):(e=n,o[`cache-control`]=`max-age=${t.cacheControl}`,o[`content-type`]=t.contentType,c&&(o[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&e instanceof ReadableStream||e&&typeof e==`object`&&`pipe`in e&&typeof e.pipe==`function`)&&!t.duplex&&(t.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))o=za(o,e,t);return{path:a,fullPath:(await $a(i.fetch,s.toString(),e,I({headers:o},t?.duplex?{duplex:t.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e),i=I({},n.headers);t?.upsert&&(i[`x-upsert`]=`true`);let a=await Qa(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+a.url),s=o.searchParams.get(`token`);if(!s)throw new Fa(`No token returned by API`);return{signedUrl:o.toString(),path:e,token:s}})}async update(e,t,n){return this.uploadOrUpdate(`PUT`,e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Qa(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
16stinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Qa(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),a=typeof n?.transform==`object`&&n.transform!==null&&Object.keys(n.transform).length>0,o=await Qa(r.fetch,`${r.url}/object/sign/${i}`,I({expiresIn:t},a?{transform:n.transform}:{}),{headers:r.headers}),s=new URLSearchParams;n?.download&&s.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&s.set(`cacheNonce`,String(n.cacheNonce));let c=s.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${c?`&${c}`:``}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{let i=await Qa(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),a=new URLSearchParams;n?.download&&a.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&a.set(`cacheNonce`,String(n.cacheNonce));let o=a.toString();return i.map(e=>I(I({},e),{},{signedUrl:e.signedURL?encodeURI(`${r.url}${e.signedURL}${o?`&${o}`:``}`):null}))})}download(e,t,n){let r=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image/authenticated`:`object`,i=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(i,t.transform),t?.cacheNonce!=null&&i.set(`cacheNonce`,String(t.cacheNonce));let a=i.toString(),o=this._getFinalPath(e);return new so(()=>Za(this.fetch,`${this.url}/${r}/${o}${a?`?${a}`:``}`,{headers:this.headers,noResolveJson:!0},n),this.shouldThrowOnError)}async info(e){var t=this;let n=t._getFinalPath(e);return t.handleOperation(async()=>Ua(await Za(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;let n=t._getFinalPath(e);try{return await eo(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ia(e)){let t=e instanceof La?e.status:e instanceof Ra?e.originalError?.status:void 0;if(t!==void 0&&[400,404].includes(t))return{data:!1,error:e}}throw e}}getPublicUrl(e,t){let n=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set(`download`,t.download===!0?``:t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set(`cacheNonce`,String(t.cacheNonce));let i=r.toString(),a=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image`:`object`;return{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}`)+(i?`?${i}`:``)}}}async remove(e){var t=this;return t.handleOperation(async()=>await to(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=Ga(r._getFinalPath(e)),a=new URLSearchParams;t?.transformations&&a.set(`transformations`,`true`);let o=a.toString();return await to(r.fetch,`${r.url}/cdn/${i}${o?`?${o}`:``}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{let i=t?.sortBy?I(I({},co.sortBy),t.sortBy):co.sortBy,a=I(I(I({},co),t),{},{sortBy:i,prefix:e||``});return await Qa(r.fetch,`${r.url}/object/list/${r.bucketId}`,a,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{let r=I({},e);return await Qa(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<`u`?Buffer.from(e).toString(`base64`):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,``)}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,``).replace(/\/+/g,`/`)}applyTransformOptsToQuery(e,t){return t.width&&e.set(`width`,t.width.toString()),t.height&&e.set(`height`,t.height.toString()),t.resize&&e.set(`resize`,t.resize),t.format&&e.set(`format`,t.format),t.quality&&e.set(`quality`,t.quality.toString()),e}},fo={"X-Client-Info":`storage-js/2.112.4`},po=class extends ro{constructor(e,t={},n,r){let i=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes(`storage.supabase.`)&&(i.hostname=i.hostname.replace(`supabase.`,`storage.supabase.`));let a=i.href.replace(/\/$/,``),o=I(I({},fo),t);super(a,o,n,`storage`)}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=t.listBucketOptionsToQueryString(e);return await Za(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Za(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Qa(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await $a(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Qa(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await to(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=new URLSearchParams;t?.transformations&&i.set(`transformations`,`true`);let a=i.toString();return await to(r.fetch,`${r.url}/cdn/${Ga(e)}${a?`?${a}`:``}`,{},{headers:r.headers},n)})}listBucketOptionsToQueryString(e){let t={};return e&&(`limit`in e&&(t.limit=String(e.limit)),`offset`in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>
160?`?`+new URLSearchParams(t).toString():``}},mo=class extends ro{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=I(I({},fo),t);super(r,i,n,`storage`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await Qa(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=new URLSearchParams;e?.limit!==void 0&&n.set(`limit`,e.limit.toString()),e?.offset!==void 0&&n.set(`offset`,e.offset.toString()),e?.sortColumn&&n.set(`sortColumn`,e.sortColumn),e?.sortOrder&&n.set(`sortOrder`,e.sortOrder),e?.search&&n.set(`search`,e.search);let r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Za(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await to(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!Wa(e))throw new Fa(`Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.`);let n=new ka({baseUrl:this.url,catalogName:e,auth:{type:`custom`,getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(e,t){let n=e[t];return typeof n==`function`?async(...t)=>{try{return{data:await n.apply(e,t),error:null}}catch(e){if(r)throw e;return{data:null,error:e}}}:n}})}},ho=class extends ro{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=I(I({},fo),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createIndex(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await no.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await no.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},go=class extends ro{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=I(I({},fo),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw Error(`Vector batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw Error(`segmentCount must be between 1 and 16`);if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw Error(`Keys batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},L=class extends ro{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=I(I({},fo),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await no.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},_o=class extends L{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new vo(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},vo=class extends ho{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName}))}
16async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new yo(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},yo=class extends go{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,I(I({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},bo=class extends po{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new uo(this.url,this.headers,e,this.fetch)}get vectors(){return new _o(this.url+`/vector`,{headers:this.headers,fetch:this.fetch})}get analytics(){return new mo(this.url+`/iceberg`,this.headers,this.fetch)}},xo=`2.112.4`,So=3e4,Co=3*So,wo=2*So,To=`http://localhost:9999`,Eo=`supabase.auth.token`,Do={"X-Client-Info":`gotrue-js/${xo}`},Oo=`X-Supabase-Api-Version`,ko={"2024-01-01":{timestamp:Date.parse(`2024-01-01T00:00:00.0Z`),name:`2024-01-01`}},Ao=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,jo=`sb_flow_id`,Mo=class extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name=`AuthError`,this.status=t,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}};function R(e){return typeof e==`object`&&!!e&&`__isAuthError`in e}var No=class extends Mo{constructor(e,t,n){super(e,t,n),this.name=`AuthApiError`,this.status=t,this.code=n}};function Po(e){return R(e)&&e.name===`AuthApiError`}var z=class extends Mo{constructor(e,t){super(e),this.name=`AuthUnknownError`,this.originalError=t}},Fo=class extends Mo{constructor(e,t,n,r){super(e,n,r),this.name=t,this.status=n}},Io=class extends Fo{constructor(){super(`Auth session missing!`,`AuthSessionMissingError`,400,void 0)}};function Lo(e){return R(e)&&e.name===`AuthSessionMissingError`}var Ro=class extends Fo{constructor(){super(`Auth session or user missing`,`AuthInvalidToken
16ResponseError`,500,void 0)}},zo=class extends Fo{constructor(e){super(e,`AuthInvalidCredentialsError`,400,void 0)}},Bo=class extends Fo{constructor(e,t=null){super(e,`AuthImplicitGrantRedirectError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}};function Vo(e){return R(e)&&e.name===`AuthImplicitGrantRedirectError`}var Ho=class extends Fo{constructor(e,t=null){super(e,`AuthPKCEGrantCodeExchangeError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}},Uo=class extends Fo{constructor(){super(`PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.`,`AuthPKCECodeVerifierMissingError`,400,`pkce_code_verifier_not_found`)}},Wo=class extends Fo{constructor(e,t){super(e,`AuthRetryableFetchError`,t,void 0)}};function Go(e){return R(e)&&e.name===`AuthRetryableFetchError`}var Ko=class extends Fo{constructor(e=`Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)`){super(e,`AuthRefreshDiscardedError`,409,void 0)}};function qo(e){return R(e)&&e.name===`AuthRefreshDiscardedError`}var Jo=class extends Fo{constructor(e,t,n){super(e,`AuthWeakPasswordError`,t,`weak_password`),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}},Yo=class extends Fo{constructor(e){super(e,`AuthInvalidJwtError`,400,`invalid_jwt`)}},Xo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`.split(``),Zo=` 17\r=`.split(``),Qo=(()=>{let e=Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Zo.length;t+=1)e[Zo[t].charCodeAt(0)]=-2;for(let t=0;t<Xo.length;t+=1)e[Xo[t].charCodeAt(0)]=t;return e})();function $o(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;)n(Xo[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6;else if(t.queuedBits>0)for(t.queue<<=6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;)n(Xo[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6}
17function es(e,t,n){let r=Qo[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else if(r===-2)return;else throw Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}function ts(e){let t=[],n=e=>{t.push(String.fromCodePoint(e))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=e=>{is(e,r,n)};for(let t=0;t<e.length;t+=1)es(e.charCodeAt(t),i,a);return t.join(``)}function ns(e,t){if(e<=127){t(e);return}if(e<=2047){t(192|e>>6),t(128|e&63);return}if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function rs(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){let t=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|t)+65536,n+=1}ns(r,t)}}function is(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw Error(`Invalid UTF-8 sequence`);--t.utf8seq}else if(t.utf8seq>0){if(e<=127)throw Error(`Invalid UTF-8 sequence`);t.codepoint=t.codepoint<<6|e&63,--t.utf8seq,t.utf8seq===0&&n(t.codepoint)}}function as(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};for(let t=0;t<e.length;t+=1)es(e.charCodeAt(t),n,r);return new Uint8Array(t)}function os(e){let t=[];return rs(e,e=>t.push(e)),new Uint8Array(t)}function ss(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};return e.forEach(e=>$o(e,n,r)),$o(null,n,r),t.join(``)}function cs(e){return Math.round(Date.now()/1e3)+e}function ls(){return Symbol(`auth-callback`)}var us=()=>typeof window<`u`&&typeof document<`u`,ds={tested:!1,writable:!1},fs=()=>{if(!us())return!1;try{if(typeof globalThis.localStorage!=`object`)return!1}catch{return!1}if(ds.tested)return ds.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ds.tested=!0,ds.writable=!0}catch{ds.tested=!0,ds.writable=!1}return ds.writable};function ps(e){let t={},n=new URL(e);if(n.hash&&n.hash[0]===`#`)try{new URLSearchParams(n.hash.substring(1)).forEach((e,n)=>{t[n]=e})}catch{}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}var ms=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),hs=e=>typeof e==`object`&&!!e&&`status`in e&&`ok`in e&&`json`in e&&typeof e.json==`function`,gs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},_s=async(e,t)=>{let n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},vs=async(e,t)=>{await e.removeItem(t)},ys=class e{constructor(){this.promise=new e.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}};ys.promiseConstructor=Promise;function bs(e){let t=e.split(`.`);if(t.length!==3)throw new Yo(`Invalid JWT structure`);for(let e=0;e<t.length;e++)if(!Ao.test(t[e]))throw new Yo(`JWT not in base64url format`);return{header:JSON.parse(ts(t[0])),payload:JSON.parse(ts(t[1])),signature:as(t[2]),raw:{header:t[0],payload:t[1]}}}async function xs(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Ss(e,t){return new Promise((n,r)=>{(async()=>{for(let i=0;i<1/0;i++)try{let r=await e(i);if(!t(i,null,r)){n(r);return}}catch(e){if(!t(i,e)){r(e);return}}})()})}function Cs(e){return(`0`+e.toString(16)).substr(-2)}function ws(){let e=new Uint32Array(56);if(typeof crypto>`u`){let e=``;for(let t=0;t<56;t++)e+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~`.charAt(Math.floor(Math.random()*66));return e}return crypto.getRandomValues(e),Array.from(e,Cs).join(``)}async function Ts(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join(``)}async function Es(e){if(!(typeof crypto<`u`&&crypto.subtle!==void 0&&typeof TextEncoder<`u`))return console.warn(`WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.`),e;let t=await Ts(e);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}var Ds=/^[a-zA-Z0-9_-]{8,64}$/;function Os(e){return typeof e==`string`&&Ds.test(e)?e:null}function ks(){if(typeof crypto<`u`&&typeof crypto.getRandomValues==`function`){let e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,Cs).join(``)}let e=``;for(let t=0;t<32;t++)e+=Math.floor(Math.random()*16).toString(16);return e}var As=(e,t)=>`${e}-flow-${t}-code-verifier`,js=e=>`${e}-flows-code-verifier`;async function Ms(e,t){let n=await _s(e,js(t));return Array.isArray(n)?n.filter(e=>Os(e)!==null):[]}async function Ns(e,t,n,r,i){await gs(e,As(t,n),r);let a=(await Ms(e,t)).filter(e=>e!==n);for(a.push(n);a.length>5;){let n=a.shift();await vs(e,As(t,n)),i?.(n)}await gs(e,js(t),a),await gs(e,`${t}-code-verifier`,r)}
17async function Ps(e,t,n){if(n){let r=await _s(e,As(t,n));return{verifier:typeof r==`string`?r:null,flowId:n}}let r=await _s(e,`${t}-code-verifier`);return{verifier:typeof r==`string`?r:null,flowId:null}}async function Fs(e,t,n){let r=`${t}-code-verifier`;if(!n){await vs(e,r);return}let i=As(t,n),a=await _s(e,i);await vs(e,i);let o=await Ms(e,t),s=o.filter(e=>e!==n);s.length!==o.length&&(s.length>0?await gs(e,js(t),s):await vs(e,js(t))),a!=null&&a===await _s(e,r)&&await vs(e,r)}async function Is(e,t){let n=await Ms(e,t);for(let r of n)await vs(e,As(t,r));await vs(e,js(t)),await vs(e,`${t}-code-verifier`)}function Ls(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`);if(a!==-1){let e=r.slice(0,a),t=r.slice(a+1).split(`&`).filter(e=>e!==``&&e!==`sb_flow_id`&&!e.startsWith(`sb_flow_id=`));r=t.length>0?`${e}?${t.join(`&`)}`:e}let o=r.includes(`?`)?`&`:`?`;return`${r}${o}${jo}=${encodeURIComponent(t)}${i}`}async function Rs(e,t,n=!1,r){let i=ws(),a=i;n&&(a+=`/recovery`);let o=ks();await Ns(e,t,o,a,r);let s=await Es(i);return[s,i===s?`plain`:`s256`,o]}var zs=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Bs(e){let t=e.headers.get(Oo);if(!t||!t.match(zs))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Vs(e){if(!e)throw Error(`Missing exp claim`);if(e<=Math.floor(Date.now()/1e3))throw Error(`JWT has expired`)}function Hs(e){switch(e){case`RS256`:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-256`}};case`ES256`:return{name:`ECDSA`,namedCurve:`P-256`,hash:{name:`SHA-256`}};default:throw Error(`Invalid alg claim`)}}var Us=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ws(e){if(!Us.test(e))throw Error(`@supabase/auth-js: Expected parameter to be UUID but is not`)}function Gs(e){if(!e.passkey)throw Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Ks(){return new Proxy({},{get:(e,t)=>{if(t===`__isUserNotAvailableProxy`)return!0;if(typeof t==`symbol`){let e=t.toString();if(e===`Symbol(Symbol.toPrimitive)`||e===`Symbol(Symbol.toStringTag)`||e===`Symbol(util.inspect.custom)`)return}throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function qs(e,t){return new Proxy(e,{get:(e,n,r)=>{if(n===`__isInsecureUserWarningProxy`)return!0;if(typeof n==`symbol`){let t=n.toString();if(t===`Symbol(Symbol.toPrimitive)`||t===`Symbol(Symbol.toStringTag)`||t===`Symbol(util.inspect.custom)`||t===`Symbol(nodejs.util.inspect.custom)`)return Reflect.get(e,n,r)}return!t.value&&typeof n==`string`&&(console.warn(`Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.`),t.value=!0),Reflect.get(e,n,r)}})}function Js(e){return JSON.parse(JSON.stringify(e))}var Ys=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error}return JSON.stringify(e)},Xs=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Zs(e){if(!hs(e))throw new Wo(Ys(e),0);let t;try{t=await e.json()}catch(t){throw Xs.includes(e.status)?new Wo(e.statusText||`HTTP ${e.status}`,e.status):new z(Ys(t),t)}if(Xs.includes(e.status))throw new Wo(Ys(t),e.status);let n,r=Bs(e);if(r&&r.getTime()>=ko[`2024-01-01`].timestamp&&typeof t==`object`&&t&&typeof t.code==`string`?n=t.code:typeof t==`object`&&t&&typeof t.error_code==`string`&&(n=t.error_code),!n){if(typeof t==`object`&&t&&typeof t.weak_password==`object`&&t.weak_password&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.reasons.reduce((e,t)=>
17e&&typeof t==`string`,!0))throw new Jo(Ys(t),e.status,t.weak_password.reasons)}else if(n===`weak_password`)throw new Jo(Ys(t),e.status,t.weak_password?.reasons||[]);else if(n===`session_not_found`)throw new Io;throw new No(Ys(t),e.status||500,n)}var Qs=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};return e===`GET`?i:(i.headers=Object.assign({"Content-Type":`application/json;charset=UTF-8`},t?.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function B(e,t,n,r){let i=Object.assign({},r?.headers);i[`X-Supabase-Api-Version`]||(i[Oo]=ko[`2024-01-01`].name),r?.jwt&&(i.Authorization=`Bearer ${r.jwt}`);let a=r?.query??{};r?.redirectTo&&(a.redirect_to=r.redirectTo);let o=await $s(e,t,n+(Object.keys(a).length?`?`+new URLSearchParams(a).toString():``),{headers:i,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(o):{data:Object.assign({},o),error:null}}async function $s(e,t,n,r,i,a){let o=Qs(t,r,i,a),s;try{s=await e(n,Object.assign({},o))}catch(e){throw new Wo(Ys(e),0)}if(s.ok||await Zs(s),r?.noResolveJson)return s;try{return await s.json()}catch(e){await Zs(e)}}function ec(e){let t=null;oc(e)&&(t=Object.assign({},e),e.expires_at||(t.expires_at=cs(e.expires_in)));let n=e.user??(typeof e?.id==`string`?e:null);return{data:{session:t,user:n},error:null}}function tc(e){let t=ec(e);return!t.error&&e.weak_password&&typeof e.weak_password==`object`&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message==`string`&&e.weak_password.reasons.reduce((e,t)=>e&&typeof t==`string`,!0)&&(t.data.weak_password=e.weak_password),t}function nc(e){return{data:{user:e.user??e},error:null}}function rc(e){return{data:e,error:null}}function ic(e){let{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,o=Or(e,[`action_link`,`email_otp`,`hashed_token`,`redirect_to`,`verification_type`]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},user:Object.assign({},o)},error:null}}function ac(e){return e}function oc(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}var sc=[`global`,`local`,`others`],cc=class{constructor({url:e=``,headers:t={},fetch:n,experimental:r}){this.url=e,this.headers=t,this.fetch=ms(n),this.experimental=r??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(e,t=sc[0]){if(sc.indexOf(t)<0)throw Error(`@supabase/auth-js: Parameter scope must be one of ${sc.join(`, `)}`);try{return await B(this.fetch,`POST`,`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(R(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await B(this.fetch,`POST`,`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:nc})}catch(e){if(R(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,n=Or(e,[`options`]),r=Object.assign(Object.assign({},n),t);return`newEmail`in n&&(r.new_email=n?.newEmail,delete r.newEmail),await B(this.fetch,`POST`,`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:ic,redirectTo:t?.redirectTo})}catch(e){if(R(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await B(this.fetch,`POST`,`${this.url}/admin/users`,{body:e,headers:this.headers,xform:nc}
17)}catch(e){if(R(e))return{data:{user:null},error:e};throw e}}async listUsers(e){try{let t={nextPage:null,lastPage:0,total:0},n=await B(this.fetch,`GET`,`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:ac});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>0&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(R(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){Ws(e);try{return await B(this.fetch,`GET`,`${this.url}/admin/users/${e}`,{headers:this.headers,xform:nc})}catch(e){if(R(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){Ws(e);try{return await B(this.fetch,`PUT`,`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:nc})}catch(e){if(R(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){Ws(e);try{return await B(this.fetch,`DELETE`,`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:nc})}catch(e){if(R(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){Ws(e.userId);try{let{data:t,error:n}=await B(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(e){if(R(e))return{data:null,error:e};throw e}}async _deleteFactor(e){Ws(e.userId),Ws(e.id);try{return{data:await B(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(e){if(R(e))return{data:null,error:e};throw e}}async _listOAuthClients(e){try{let t={nextPage:null,lastPage:0,total:0},n=await B(this.fetch,`GET`,`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:ac});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>0&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(R(e))return{data:{clients:[]},error:e};throw e}}async _createOAuthClient(e){try{return await B(this.fetch,`POST`,`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _getOAuthClient(e){try{return await B(this.fetch,`GET`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _updateOAuthClient(e,t){try{return await B(this.fetch,`PUT`,`${this.url}/admin/oauth/clients/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _deleteOAuthClient(e){try{return await B(this.fetch,`DELETE`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(R(e))return{data:null,error:e};throw e}}async _regenerateOAuthClientSecret(e){try{return await B(this.fetch,`POST`,`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _listCustomProviders(e){try{let t={};return e?.type&&(t.type=e.type),await B(this.fetch,`GET`,`${this.url}/admin/custom-providers`,{headers:this.headers,query:t,xform:e=>({data:{providers:e?.providers??[]},error:null})})}catch(e){if(R(e))return{data:{providers:[]},error:e};throw e}}async _createCustomProvider(e){try{return await B(this.fetch,`POST`,`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _getCustomProvider(e){try{return await B(this.fetch,`GET`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _updateCustomProvider(e,t){try{return await B(this.fetch,`PUT`,`${this.url}/admin/custom-providers/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _deleteCustomProvider(e){try{return await B(this.fetch,`DELETE`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(R(e))return{data:null,error:e};throw e}}async _adminListPasskeys(e){Gs(this.experimental),Ws(e.userId);try{return await B(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(R(e))return{data:null,error:e};throw e}}async _adminDeletePasskey(e){Gs(this.experimental),Ws(e.userId),Ws(e.passkeyId);try{return await B(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(R(e))return{data:null,error:e};throw e}}};function lc(e={}){return{getItem:t=>
17e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&fs()&&globalThis.localStorage&&globalThis.localStorage.getItem(`supabase.gotrue-js.locks.debug`);var uc=class extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}};function dc(){if(typeof globalThis!=`object`)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<`u`&&(self.globalThis=self)}}function fc(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function pc(e){return parseInt(e,16)}function mc(e){let t=new TextEncoder().encode(e);return`0x`+Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}function hc(e){let{chainId:t,domain:n,expirationTime:r,issuedAt:i=new Date,nonce:a,notBefore:o,requestId:s,resources:c,scheme:l,uri:u,version:d}=e;if(!Number.isInteger(t))throw Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${t}`);if(!n)throw Error(`@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.`);if(a&&a.length<8)throw Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!u)throw Error(`@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.`);if(d!==`1`)throw Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${d}`);if(e.statement?.includes(` 18`))throw Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);let f=fc(e.address),p=`${l?`${l}://${n}`:n} wants you to sign in with your Ethereum account:\n${f}\n\n${e.statement?`${e.statement}\n`:``}`,m=`URI: ${u}\nVersion: ${d}\nChain ID: ${t}${a?`\nNonce: ${a}`:``}\nIssued At: ${i.toISOString()}`;if(r&&(m+=`\nExpiration Time: ${r.toISOString()}`),o&&(m+=`\nNot Before: ${o.toISOString()}`),s&&(m+=`\nRequest ID: ${s}`),c){let e=` 19Resources:`;for(let t of c){if(!t||typeof t!=`string`)throw Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}m+=e}return`${p}\n${m}`}var gc=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=r??(n instanceof Error?n.name:void 0)??`Unknown Error`,this.code=t}toJSON(){return{name:this.name,message:this.message,code:this.code}}},_c=class extends gc{constructor(e,t){super({code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:t,message:e}),this.name=`WebAuthnUnknownError`,this.originalError=t}};function vc({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new gc({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new gc({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new gc({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new gc({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new gc({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new gc({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new gc({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new gc({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!Tc(t))return new gc({message:`${window.location.hostname}
19 is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new gc({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new gc({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new gc({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new gc({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}function yc({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new gc({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new gc({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!Tc(t))return new gc({message:`${window.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new gc({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new gc({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new gc({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}var bc=new class{createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}};function xc(e){if(!e)throw Error(`Credential creation options are required`);if(typeof PublicKeyCredential<`u`&&`parseCreationOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON==`function`)return PublicKeyCredential.parseCreationOptionsFromJSON(e);let{challenge:t,user:n,excludeCredentials:r}=e,i=Or(e,[`challenge`,`user`,`excludeCredentials`]),a=as(t).buffer,o=Object.assign(Object.assign({},n),{id:as(n.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:a,user:o});if(r&&r.length>0){s.excludeCredentials=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e];s.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:as(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return s}function Sc(e){if(!e)throw Error(`Credential request options are required`);if(typeof PublicKeyCredential<`u`&&`parseRequestOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON==`function`)return PublicKeyCredential.parseRequestOptionsFromJSON(e);let{challenge:t,allowCredentials:n}=e,r=Or(e,[`challenge`,`allowCredentials`]),i=as(t).buffer,a=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){a.allowCredentials=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e];a.allowCredentials[e]=Object.assign(Object.assign({},t),{id:as(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return a}function Cc(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e;return{id:e.id,rawId:e.id,response:{attestationObject:ss(new Uint8Array(e.response.attestationObject)),clientDataJSON:ss(new Uint8Array(e.response.clientDataJSON))},type:`public-key`,clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:t.authenticatorAttachment??void 0}}function wc(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e,n=e.getClientExtensionResults(),r=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ss(new Uint8Array(r.authenticatorData)),clientDataJSON:ss(new Uint8Array(r.clientDataJSON)),signature:ss(new Uint8Array(r.signature)),userHandle:r.userHandle?ss(new Uint8Array(r.userHandle)):void 0},type:`public-key`,clientExtensionResults:n,authenticatorAttachment:t.authenticatorAttachment??void 0}}function Tc(e){return e===`localhost`||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Ec(){return!!(us()&&`PublicKeyCredential`in window&&window.PublicKeyCredential&&`credentials`in navigator&&typeof(navigator==null?void 0:navigator.credentials)?.create==`function`&&typeof(navigator==null?void 0:navigator.credentials)?.get==`function`)}async function Dc(e){try{let t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c(`Browser returned unexpected credential type`,t)}:{data:null,error:new _c(`Empty credential response`,t)}}
19catch(t){return{data:null,error:vc({error:t,options:e})}}}async function Oc(e){try{let t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new _c(`Browser returned unexpected credential type`,t)}:{data:null,error:new _c(`Empty credential response`,t)}}catch(t){return{data:null,error:yc({error:t,options:e})}}}var kc={hints:[`security-key`],authenticatorSelection:{authenticatorAttachment:`cross-platform`,requireResidentKey:!1,userVerification:`preferred`,residentKey:`discouraged`},attestation:`direct`},Ac={userVerification:`preferred`,hints:[`security-key`],attestation:`direct`};function jc(...e){let t=e=>typeof e==`object`&&!!e&&!Array.isArray(e),n=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),r={};for(let i of e)if(i)for(let e in i){let a=i[e];if(a!==void 0)if(Array.isArray(a))r[e]=a;else if(n(a))r[e]=a;else if(t(a)){let n=r[e];r[e]=t(n)?jc(n,a):jc(a)}else r[e]=a}return r}function Mc(e,t){return jc(kc,e,t||{})}function Nc(e,t){return jc(Ac,e,t||{})}var Pc=class{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:`webauthn`}))}async _challenge({factorId:e,webauthn:t,friendlyName:n,signal:r},i){try{let{data:a,error:o}=await this.client.mfa.challenge({factorId:e,webauthn:t});if(!a)return{data:null,error:o};let s=r??bc.createNewAbortSignal();if(a.webauthn.type===`create`){let{user:e}=a.webauthn.credential_options.publicKey;if(!e.name){let t=n;if(t)e.name=`${e.id}:${t}`;else{let t=(await this.client.getUser()).data.user,n=t?.user_metadata?.name||t?.email||t?.id||`User`;e.name=`${e.id}:${n}`}}e.displayName||=e.name}switch(a.webauthn.type){case`create`:{let{data:t,error:n}=await Dc({publicKey:Mc(a.webauthn.credential_options.publicKey,i?.create),signal:s});return t?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:t}},error:null}:{data:null,error:n}}case`request`:{let t=Nc(a.webauthn.credential_options.publicKey,i?.request),{data:n,error:r}=await Oc(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:t,signal:s}));return n?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:n}},error:null}:{data:null,error:r}}}}catch(e){return R(e)?{data:null,error:e}:{data:null,error:new z(`Unexpected error in challenge`,e)}}}async _verify({challengeId:e,factorId:t,webauthn:n}){return this.client.mfa.verify({factorId:t,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new Mo(`rpId is required for WebAuthn authentication`)};try{if(!Ec())return{data:null,error:new z(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this.challenge({factorId:e,webauthn:{rpId:t,rpOrigins:n},signal:r},{request:i});if(!a)return{data:null,error:o};let{webauthn:s}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:s.type,rpId:t,rpOrigins:n,credential_response:s.credential_response}})}catch(e){return R(e)?{data:null,error:e}:{data:null,error:new z(`Unexpected error in authenticate`,e)}}}async _register({friendlyName:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new Mo(`rpId is required for WebAuthn registration`)};try{if(!Ec())return{data:null,error:new z(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(t=>t.data?.all.find(t=>t.factor_type===`webauthn`&&t.friendly_name===e&&t.status!==`unverified`)).then(e=>e?this.client.mfa.unenroll({factorId:e?.id}):void 0),{data:null,error:o};let{data:s,error:c}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:t,rpOrigins:n},signal:r},{create:i});return s?this._verify({factorId:a.id,challengeId:s.challengeId,webauthn:{rpId:t,rpOrigins:n,type:s.webauthn.type,credential_response:s.webauthn.credential_response}}):{data:null,error:c}}catch(e){return R(e)?{data:null,error:e}:{data:null,error:new z(`Unexpected error in register`,e)}}}};dc();var Fc={url:To,storageKey:Eo,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Do,flowType:`implicit`,debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Ic={},Lc=!1,Rc=class e{get jwks(){return Ic[this.storageKey]?.jwks??{keys:[]}}set jwks(e){Ic[this.storageKey]=Object.assign(Object.assign({},Ic[this.storageKey]),{jwks:e})}get jwks_cached_at(){return Ic[this.storageKey]?.cachedAt??-(2**53-1)}set jwks_cached_at(e){Ic[this.storageKey]=Object.assign(Object.assign({},Ic[this.storageKey]),{cachedAt:e})}constructor(t){var n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;let r=Object.assign(Object.assign({},Fc),t);
19if(this.storageKey=r.storageKey,this.instanceID=e.nextInstanceID[this.storageKey]??0,e.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!r.debug,typeof r.debug==`function`&&(this.logger=r.debug),this.instanceID>0&&us()){let e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=r.persistSession,this.autoRefreshToken=r.autoRefreshToken,this.experimental=r.experimental??{},this.admin=new cc({url:r.url,headers:r.headers,fetch:r.fetch,experimental:this.experimental}),this.url=r.url,this.headers=r.headers,this.fetch=ms(r.fetch),this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.hasCustomAuthorizationHeader=r.hasCustomAuthorizationHeader,this.throwOnError=r.throwOnError,this.lockAcquireTimeout=r.lockAcquireTimeout,r.lock!=null&&(this.lock=r.lock,Lc||(Lc=!0,console.warn(`${this._logPrefix()} The "lock" option is deprecated and will be removed in v3. The client now coordinates session refreshes without a lock, so most apps can drop the option. See https://github.com/supabase/supabase-js/blob/master/packages/core/auth-js/migrations/lockless-coordination.md`))),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=-(2**53-1)),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Pc(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(r.storage?this.storage=r.storage:fs()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=lc(this.memoryStorage)),r.userStorage&&(this.userStorage=r.userStorage)):(this.memoryStorage={},this.storage=lc(this.memoryStorage)),us()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error(`Failed to create a new BroadcastChannel, multi-tab state changes will not be available`,e)}(n=this.broadcastChannel)==null||n.addEventListener(`message`,async e=>{this._debug(`received broadcast notification from other tab or client`,e),(e.data.event===`TOKEN_REFRESHED`||e.data.event===`SIGNED_IN`)&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(e){this._debug(`#broadcastChannel`,`error`,e)}})}r.skipAutoInitialize||this.initialize().catch(e=>{this._debug(`#initialize()`,`error`,e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${xo}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock==null?await this._initialize():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))();let e=await this.initializePromise,t=this._pendingInitNotifications??[];this._pendingInitNotifications=null;for(let e of t)await this._notifyAllSubscribers(e.event,e.session,e.broadcast);return e}async _initialize(){try{let e={},t=`none`;if(us()&&(e=ps(window.location.href),this._isImplicitGrantCallback(e)?t=`implicit`:await this._isPKCECallback(e)&&(t=`pkce`)),us()&&this.detectSessionInUrl&&t!==`none`){let{data:n,error:r}=await this._getSessionFromURL(e,t);if(r){if(this._debug(`#_initialize()`,`error detecting session from URL`,r),Vo(r)){let e=r.details?.code;if(e===`identity_already_exists`||e===`identity_not_found`||e===`single_identity_not_deletable`)return{error:r}}return{error:r}}let{session:i,redirectType:a}=n;return this._debug(`#_initialize()`,`detected session in URL`,i,`redirect type`,a),await this._saveSession(i),setTimeout(async()=>{a===`recovery`?await this._notifyAllSubscribers(`PASSWORD_RECOVERY`,i):await this._notifyAllSubscribers(`SIGNED_IN`,i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return R(e)?this._returnResult({error:e}):this._returnResult({error:new z(`Unexpected error during initialization`,e)})}finally{await this._handleVisibilityChange(),this._debug(`#_initialize()`,`end`)}}async signInAnonymously(e){try{let{data:t,error:n}=await B(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{data:e?.options?.data??{},gotrue_meta_security:{captcha_token:e?.options?.captchaToken}},xform:ec});if(n||!t)return this._returnResult({data:{user:null,session:null},error:n});let r=t.session,i=t.user;return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,r)),this._returnResult({data:{user:i,session:r},error:null})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signUp(e){let t=null;try{let n;if(`email`in e){let{email:r,password:i,options:a}=e,o=null,s=null;this.flowType===`pkce`&&([o,s,t]=await this._getCodeChallengeAndMethod()),n=await B(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(a?.emailRedirectTo,t),body:{email:r,password:i,data:a?.data??{},gotrue_meta_security:{captcha_token:a?.captchaToken}
19,code_challenge:o,code_challenge_method:s},xform:ec})}else if(`phone`in e){let{phone:t,password:r,options:i}=e;n=await B(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:r,data:i?.data??{},channel:i?.channel??`sms`,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:ec})}else throw new zo(`You must provide either an email or phone number and a password`);let{data:r,error:i}=n;if(i||!r)return await Fs(this.storage,this.storageKey,t),this._returnResult({data:{user:null,session:null},error:i});let a=r.session,o=r.user;return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,a)),this._returnResult({data:{user:o,session:a},error:null})}catch(e){if(await Fs(this.storage,this.storageKey,t),R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithPassword(e){try{let t;if(`email`in e){let{email:n,password:r,options:i}=e;t=await B(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:tc})}else if(`phone`in e){let{phone:n,password:r,options:i}=e;t=await B(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:tc})}else throw new zo(`You must provide either an email or phone number and a password`);let{data:n,error:r}=t;if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!n||!n.session||!n.user){let e=new Ro;return this._returnResult({data:{user:null,session:null},error:e})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers(`SIGNED_IN`,n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:r})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOAuth(e){return await this._handleProviderSignIn(e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:e.options?.skipBrowserRedirect})}async exchangeCodeForSession(e,t){return await this.initializePromise,this.lock==null?this._exchangeCodeForSession(e,t):this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e,t))}async signInWithWeb3(e){let{chain:t}=e;switch(t){case`ethereum`:return await this.signInWithEthereum(e);case`solana`:return await this.signInWithSolana(e);default:throw Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!us()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`ethereum`in e&&typeof e.ethereum==`object`&&`request`in e.ethereum&&typeof e.ethereum.request==`function`)s=e.ethereum;else throw Error(`@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href),l=await s.request({method:`eth_requestAccounts`}).then(e=>e).catch(()=>{throw Error(`@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid`)});if(!l||l.length===0)throw Error(`@supabase/auth-js: No accounts available. Please ensure the wallet is connected.`);let u=fc(l[0]),d=o?.signInWithEthereum?.chainId;d||=pc(await s.request({method:`eth_chainId`})),t=hc({domain:c.host,address:u,statement:a,uri:c.href,version:`1`,chainId:d,nonce:o?.signInWithEthereum?.nonce,issuedAt:o?.signInWithEthereum?.issuedAt??new Date,expirationTime:o?.signInWithEthereum?.expirationTime,notBefore:o?.signInWithEthereum?.notBefore,requestId:o?.signInWithEthereum?.requestId,resources:o?.signInWithEthereum?.resources}),n=await s.request({method:`personal_sign`,params:[mc(t),u]})}try{let{data:r,error:i}=await B(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`ethereum`,message:t,signature:n},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:ec});if(i)throw i;if(!r||!r.session||!r.user){let e=new Ro;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSolana(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!us()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`solana`in e&&typeof e.solana==`object`&&(`signIn`in e.solana&&typeof e.solana.signIn==`function`||`signMessage`in e.
19solana&&typeof e.solana.signMessage==`function`))s=e.solana;else throw Error(`@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href);if(`signIn`in s&&s.signIn){let e=await s.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},o?.signInWithSolana),{version:`1`,domain:c.host,uri:c.href}),a?{statement:a}:null)),r;if(Array.isArray(e)&&e[0]&&typeof e[0]==`object`)r=e[0];else if(e&&typeof e==`object`&&`signedMessage`in e&&`signature`in e)r=e;else throw Error(`@supabase/auth-js: Wallet method signIn() returned unrecognized value`);if(`signedMessage`in r&&`signature`in r&&(typeof r.signedMessage==`string`||r.signedMessage instanceof Uint8Array)&&r.signature instanceof Uint8Array)t=typeof r.signedMessage==`string`?r.signedMessage:new TextDecoder().decode(r.signedMessage),n=r.signature;else throw Error(`@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields`)}else{if(!(`signMessage`in s)||typeof s.signMessage!=`function`||!(`publicKey`in s)||typeof s!=`object`||!s.publicKey||!(`toBase58`in s.publicKey)||typeof s.publicKey.toBase58!=`function`)throw Error(`@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API`);t=[`${c.host} wants you to sign in with your Solana account:`,s.publicKey.toBase58(),...a?[``,a,``]:[``],`Version: 1`,`URI: ${c.href}`,`Issued At: ${o?.signInWithSolana?.issuedAt??new Date().toISOString()}`,...o?.signInWithSolana?.notBefore?[`Not Before: ${o.signInWithSolana.notBefore}`]:[],...o?.signInWithSolana?.expirationTime?[`Expiration Time: ${o.signInWithSolana.expirationTime}`]:[],...o?.signInWithSolana?.chainId?[`Chain ID: ${o.signInWithSolana.chainId}`]:[],...o?.signInWithSolana?.nonce?[`Nonce: ${o.signInWithSolana.nonce}`]:[],...o?.signInWithSolana?.requestId?[`Request ID: ${o.signInWithSolana.requestId}`]:[],...o?.signInWithSolana?.resources?.length?[`Resources`,...o.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join(` 20`);let e=await s.signMessage(new TextEncoder().encode(t),`utf8`);if(!e||!(e instanceof Uint8Array))throw Error(`@supabase/auth-js: Wallet signMessage() API returned an recognized value`);n=e}}try{let{data:r,error:i}=await B(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`solana`,message:t,signature:ss(n)},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:ec});if(i)throw i;if(!r||!r.session||!r.user){let e=new Ro;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _exchangeCodeForSession(e,t){let n=t?.flowId!=null,r=n?Os(t?.flowId):us()?Os(ps(window.location.href)[jo]):null;n&&!r&&this._debug(`#_exchangeCodeForSession()`,`provided flowId is not a valid flow id`,t?.flowId);let{verifier:i,flowId:a}=n&&!r?{verifier:null,flowId:null}:await Ps(this.storage,this.storageKey,r),[o,s]=(i??``).split(`/`);try{if(!o&&this.flowType===`pkce`)throw new Uo;let{data:t,error:n}=await B(this.fetch,`POST`,`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:o},xform:ec});if(await Fs(this.storage,this.storageKey,a),n)throw n;if(!t||!t.session||!t.user){let e=new Ro;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(s===`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,t.session)),this._returnResult({data:Object.assign(Object.assign({},t),{redirectType:s??null}),error:n})}catch(e){if(await Fs(this.storage,this.storageKey,a),R(e))return this._returnResult({data:{user:null,session:null,redirectType:null},error:e});throw e}}async signInWithIdToken(e){try{let{options:t,provider:n,token:r,access_token:i,nonce:a}=e,{data:o,error:s}=await B(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:t?.captchaToken}},xform:ec});if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!o||!o.session||!o.user){let e=new Ro;return this._returnResult({data:{user:null,session:null},error:e})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers(`SIGNED_IN`,o.session)),this._returnResult({data:o,error:s})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOtp(e){let t=null;try{if(`email`in e){let{email:n,options:r}=e,i=null,a=null;this.flowType===`pkce`&&([i,a,t]=await this._getCodeChallengeAndMethod());let{error:o}=await B(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{email:n,data:r?.data??{},create_user:r?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:r?.captchaToken},code_challenge:i,code_challenge_method:a},redirectTo:this._maybeAppendFlowIdToRedirect(r?.emailRedirectTo,t)});return this._returnResult({data:{user:null,session:null},error:o})}if(`phone`in e){let{phone:t,options:n}=e,{data:r,error:i}=await B(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:n?.data??{},create_user:n?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:n?.captchaToken},channel:n?.channel??`sms`}});return this._returnResult({data:{user:null,session:null,messageId:r?.message_id},error:i})}throw new zo(`You must provide either an email or phone number.`)}catch(e){if(await Fs(this.storage,this.storageKey,t),R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async verifyOtp(e){try{let t,n;`options`in e&&(t=e.options?.redirectTo,n=e.options?.captchaToken);let{data:r,error:i}=await B(this.fetch,`POST`,`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:n}}),redirectTo:t,xform:ec});if(i)throw i;if(!r)throw Error(`An error occurred on token verification.`);let a=r.session,o=r.user;return a?.access_token&&(await this._saveSession(a),await this._notifyAllSubscribers(e.type==`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,a)),this._returnResult({data:{user:o,session:a},error:null})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSSO(e){let t=null;try{let n=null,r=null;this.flowType===`pkce`&&([n,r,t]=await this._getCodeChallengeAndMethod());let i=await B(this.fetch,`POST`,`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},`providerId`in e?{provider_id:e.providerId}:null),`domain`in e?{domain:e.domain}:null),{redirect_to:this._maybeAppendFlowIdToRedirect(e.options?.redirectTo,t)}),e?.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:n,code_challenge_method:r}),headers:this.headers,xform:rc});return i.data?.url&&us()&&!e.options?.skipBrowserRedirect&&window.location.assign(i.data.url),this._returnResult(i)}catch(e){if(await Fs(this.storage,this.storageKey,t),R(e))return this._returnResult({data:null,error:e});throw e}}async reauthenticate(){return await this.initializePromise,this.lock==null?await this._reauthenticate():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new Io;let{error:r}=await B(this.fetch,`GET`,`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:r})})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){let t=null;try{let n=`${this.url}/resend`;if(`email`in e){let{email:r,type:i,options:a}=e,o=null,s=null;this.flowType===`pkce`&&([o,s,t]=await this._getCodeChallengeAndMethod());let{error:c}=await B(this.fetch,`POST`,n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a?.captchaToken}
20,code_challenge:o,code_challenge_method:s},redirectTo:this._maybeAppendFlowIdToRedirect(a?.emailRedirectTo,t)});return c&&await Fs(this.storage,this.storageKey,t),this._returnResult({data:{user:null,session:null},error:c})}if(`phone`in e){let{phone:t,type:r,options:i}=e,{data:a,error:o}=await B(this.fetch,`POST`,n,{headers:this.headers,body:{phone:t,type:r,gotrue_meta_security:{captcha_token:i?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a?.message_id},error:o})}throw new zo(`You must provide either an email or phone number and a type`)}catch(e){if(await Fs(this.storage,this.storageKey,t),R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async getSession(){return await this.initializePromise,this.lock==null?await this._useSession(async e=>e):await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug(`#_acquireLock`,`begin`,e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug(`#_acquireLock`,`lock acquired for storage key`,this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch{}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug(`#_acquireLock`,`lock released for storage key`,this.storageKey),this.lockAcquired=!1}})}finally{this._debug(`#_acquireLock`,`end`)}}async _useSession(e){this._debug(`#_useSession`,`begin`);try{return await e(await this.__loadSession())}finally{this._debug(`#_useSession`,`end`)}}async __loadSession(){this._debug(`#__loadSession()`,`begin`),this.lock!=null&&!this.lockAcquired&&this._debug(`#__loadSession()`,`used outside of an acquired lock!`,Error().stack);try{let e=null,t=await _s(this.storage,this.storageKey);if(this._debug(`#getSession()`,`session from storage`,t),t!==null&&(this._isValidSession(t)?e=t:(this._debug(`#getSession()`,`session from storage is not valid`),await this._removeSession())),!e)return{data:{session:null},error:null};let n=e.expires_at?e.expires_at*1e3-Date.now()<Co:!1;if(this._debug(`#__loadSession()`,`session has${n?``:` not`} expired`,`expires_at`,e.expires_at),!n){if(this.userStorage){let t=await _s(this.userStorage,this.storageKey+`-user`);t?.user?e.user=t.user:e.user=Ks()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){let t={value:this.suppressGetSessionWarning};e.user=qs(e.user,t),t.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}let{data:r,error:i}=await this._callRefreshToken(e.refresh_token);if(i){if(e.expires_at&&e.expires_at*1e3>Date.now()){let t=await _s(this.storage,this.storageKey);if(t&&t.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:r},error:null})}finally{this._debug(`#__loadSession()`,`end`)}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let t;return t=this.lock==null?await this._getUser():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()),t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await B(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:e,xform:nc}
20):await this._useSession(async e=>{let{data:t,error:n}=e;if(n)throw n;return!t.session?.access_token&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Io}:await B(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:t.session?.access_token??void 0,xform:nc})})}catch(e){if(R(e))return Lo(e)&&await this._removeSession(),this._returnResult({data:{user:null},error:e});throw e}}async updateUser(e,t={}){return await this.initializePromise,this.lock==null?await this._updateUser(e,t):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){let n=null;try{return await this._useSession(async r=>{let{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new Io;let o=i.session,s=null,c=null;this.flowType===`pkce`&&e.email!=null&&([s,c,n]=await this._getCodeChallengeAndMethod());let{data:l,error:u}=await B(this.fetch,`PUT`,`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(t?.emailRedirectTo,n),body:Object.assign(Object.assign({},e),{code_challenge:s,code_challenge_method:c}),jwt:o.access_token,xform:nc});if(u)throw u;return o.user=l.user,await this._saveSession(o),await this._notifyAllSubscribers(`USER_UPDATED`,o),this._returnResult({data:{user:o.user},error:null})})}catch(e){if(await Fs(this.storage,this.storageKey,n),R(e))return this._returnResult({data:{user:null},error:e});throw e}}async setSession(e){return await this.initializePromise,this.lock==null?await this._setSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Io;let t=Date.now()/1e3,n=t,r=!0,i=null,{payload:a}=bs(e.access_token);if(a.exp&&(n=a.exp,r=n<=t),r){let{data:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:r,error:a}=await this._getUser(e.access_token);if(a)return this._returnResult({data:{user:null,session:null},error:a});i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:`bearer`,expires_in:n-t,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers(`SIGNED_IN`,i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(e){if(R(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}}async refreshSession(e){return await this.initializePromise,this.lock==null?await this._refreshSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{if(!e){let{data:n,error:r}=t;if(r)throw r;e=n.session??void 0}if(!e?.refresh_token)throw new Io;let{data:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?this._returnResult({data:{user:null,session:null},error:r}):n?this._returnResult({data:{user:n.user,session:n},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(e){if(R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _getSessionFromURL(e,t){try{if(!us())throw new Bo(`No browser detected.`);if(e.error||e.error_description||e.error_code)throw new Bo(e.error_description||`Error in URL with unspecified error_description`,{error:e.error||`unspecified_error`,code:e.error_code||`unspecified_code`});switch(t){case`implicit`:if(this.flowType===`pkce`)throw new Ho(`Not a valid PKCE flow url.`);break;case`pkce`:if(this.flowType===`implicit`)throw new Bo(`Not a valid implicit grant flow url.`)}if(t===`pkce`){if(this._debug(`#_initialize()`,`begin`,`is PKCE flow`,!0),!e.code)throw new Ho(`No code detected.`);let{data:t,error:n}=await this._exchangeCodeForSession(e.code,{flowId:e[jo]});if(n)throw n;let r=new URL(window.location.href);return r.searchParams.delete(`code`),r.searchParams.delete(jo),window.history.replaceState(window.history.state,``,r.toString()),{data:{session:t.session,redirectType:t.redirectType??null},error:null}}let{provider_token:n,provider_refresh_token:r,access_token:i,refresh_token:a,expires_in:o,expires_at:s,token_type:c}=e;if(!i||!o||!a||!c)throw new Bo(`No session defined in URL`);let l=Math.round(Date.now()/1e3),u=parseInt(o),d=l+u;s&&(d=parseInt(s));let f=d-l;
20f*1e3<=3e4&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);let p=d-u;l-p>=120?console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale`,p,d,l):l-p<0&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew`,p,d,l);let{data:m,error:h}=await this._getUser(i);if(h)throw h;let g={provider_token:n,provider_refresh_token:r,access_token:i,expires_in:u,expires_at:d,refresh_token:a,token_type:c,user:m.user};return window.location.hash=``,this._debug(`#_getSessionFromURL()`,`clearing window.location.hash`),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(e){if(R(e))return this._returnResult({data:{session:null,redirectType:null},error:e});throw e}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl==`function`?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){if(!e.code)return!1;let t=Os(e[jo]);return t&&await _s(this.storage,As(this.storageKey,t))?!0:!!await _s(this.storage,`${this.storageKey}-code-verifier`)}async signOut(e={scope:`global`}){return await this.initializePromise,this.lock==null?await this._signOut(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:`global`}){return await this._useSession(async t=>{let n=async()=>{await this._removeSession()},{data:r,error:i}=t;if(i&&!Lo(i))return this._returnResult({error:i});let a=r.session?.access_token;if(a){let{error:t}=await this.admin.signOut(a,e);if(t&&!(Po(t)&&(t.status===404||t.status===401||t.status===403)||Lo(t)))return e!==`others`&&await n(),this._returnResult({error:t})}return e!==`others`&&await n(),this._returnResult({error:null})})}onAuthStateChange(e){let t=ls(),n={id:t,callback:e,unsubscribe:()=>{this._debug(`#unsubscribe()`,`state change callback with id removed`,t),this.stateChangeEmitters.delete(t)}};return this._debug(`#onAuthStateChange()`,`registered callback with id`,t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,this.lock==null?await this._emitInitialSession(t):await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{try{let{data:{session:n},error:r}=t;if(r)throw r;await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,n),this._debug(`INITIAL_SESSION`,`callback id`,e,`session`,n)}catch(t){await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,null),this._debug(`INITIAL_SESSION`,`callback id`,e,`error`,t),Lo(t)||Go(t)||Po(t)&&(t.code===`refresh_token_not_found`||t.code===`refresh_token_already_used`||t.code===`session_expired`)?console.warn(t):console.error(t)}})}async resetPasswordForEmail(e,t={}){let n=null,r=null,i=null;this.flowType===`pkce`&&([n,r,i]=await this._getCodeChallengeAndMethod(!0));try{return await B(this.fetch,`POST`,`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(t.redirectTo,i)})}catch(e){if(await Fs(this.storage,this.storageKey,i),R(e))return this._returnResult({data:null,error:e});throw e}}async getUserIdentities(){try{let{data:e,error:t}=await this.getUser();if(t)throw t;return this._returnResult({data:{identities:e.user.identities??[]},error:null})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async linkIdentity(e){return`token`in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){let t=null;try{let{data:n,error:r}=await this._useSession(async n=>{let{data:r,error:i}=n;if(i)throw i;let{url:a,flowId:o}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:!0});return t=o,await B(this.fetch,`GET`,a,{headers:this.headers,jwt:r.session?.access_token??void 0})});if(r)throw r;return us()&&!e.options?.skipBrowserRedirect&&window.location.assign(n?.url),this._returnResult({data:{provider:e.provider,url:n?.url,flowId:t},error:null})}catch(n){if(R(n))return this._returnResult({data:{provider:e.provider,url:null,flowId:t},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async t=>{try{let{error:n,data:{session:r}}=t;if(n)throw n;let{options:i,provider:a,token:o,access_token:s,nonce:c}=e,{data:l,error:u}=await B(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:r?.access_token??void 0,body:{provider:a,id_token:o,access_token:s,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:ec});return u?this._returnResult({data:{user:null,session:null},error:u}):!l||!l.session||!l.user?this._returnResult({data:{user:null,session:null},error:new Ro}):(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(`USER_UPDATED`,l.session)),this._returnResult({data:l,error:u}))}catch(e){if(await Fs(this.storage,this.storageKey,null),R(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)throw r;return await B(this.fetch,`DELETE`,`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:n.session?.access_token??void 0})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken()`;this._debug(t,`begin`);try{let n=Date.now();return await Ss(async n=>(n>0&&await xs(200*2**(n-1)),this._debug(t,`refreshing attempt`,n),await B(this.fetch,`POST`,`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:ec})),(e,t)=>{let r=200*2**e;return t&&Go(t)&&Date.now()+r-n<3e4})}catch(e){if(this._debug(t,`error`,e),R(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}finally{this._debug(t,`end`)}}_isValidSession(e){return typeof e==`object`&&!!e&&`access_token`in e&&`refresh_token`in e&&`expires_at`in e}async _handleProviderSignIn(e,t){let{url:n,flowId:r}=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug(`#_handleProviderSignIn()`,`provider`,e,`options`,t,`url`,n),us()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n,flowId:r},error:null}}async _recoverAndRefresh(){let e=`#_recoverAndRefresh()`;this._debug(e,`begin`);try{let t=await _s(this.storage,this.storageKey);if(t&&this.userStorage){let e=await _s(this.userStorage,this.storageKey+`-user`);!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!e&&(e={user:t.user},await gs(this.userStorage,this.storageKey+`-user`,e)),t.user=e?.user??Ks()}else if(t&&!t.user&&!t.user){let e=await _s(this.storage,this.storageKey+`-user`);e&&e?.user?(t.user=e.user,await vs(this.storage,this.storageKey+`-user`),await gs(this.storage,this.storageKey,t)):t.user=Ks()}if(this._debug(e,`session from storage`,t),!this._isValidSession(t)){this._debug(e,`session is not val
20id`),t!==null&&await this._removeSession();return}let n=(t.expires_at??1/0)*1e3-Date.now()<Co;if(this._debug(e,`session has${n?``:` not`} expired with margin of ${Co}s`),n){if(this.autoRefreshToken&&t.refresh_token){let{error:n}=await this._callRefreshToken(t.refresh_token);n&&(qo(n)?this._debug(e,`refresh discarded by commit guard`,n):this._debug(e,`refresh failed`,n))}}else if(t.user&&t.user.__isUserNotAvailableProxy===!0)try{let{data:n,error:r}=await this._getUser(t.access_token);!r&&n?.user?(t.user=n.user,await this._saveSession(t),await this._notifyAllSubscribers(`SIGNED_IN`,t)):this._debug(e,`could not get user data, skipping SIGNED_IN notification`)}catch(t){console.error(`Error getting user data:`,t),this._debug(e,`error getting user data, skipping SIGNED_IN notification`,t)}else await this._notifyAllSubscribers(`SIGNED_IN`,t)}catch(t){this._debug(e,`error`,t),Go(t)?console.warn(t):console.error(t);return}finally{this._debug(e,`end`)}}async _callRefreshToken(e){var t,n;if(!e)throw new Io;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===e&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug(`#_callRefreshToken()`,`returning cached failure (cooldown active)`),this.lastRefreshFailure.result;let r=`#_callRefreshToken()`;this._debug(r,`begin`);try{this.refreshingDeferred=new ys,this.refreshingDeferred.promise.then(void 0,()=>{});let t=await _s(this.storage,this.storageKey),{data:n,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!n.session)throw new Io;let a=await _s(this.storage,this.storageKey);if(t!==null&&(a===null||a.refresh_token!==t.refresh_token)){this._debug(r,`commit guard: storage changed since refresh started, discarding rotated tokens`,{startedWith:`present`,nowHolds:a?`replaced`:`cleared`});let e={data:null,error:new Ko};return this.refreshingDeferred.resolve(e),e}let o=this._sessionRemovalEpoch;if(await this._saveSession(n.session),this._sessionRemovalEpoch!==o){this._debug(r,`commit guard (post-save): _removeSession ran during _saveSession, undoing write`),await vs(this.storage,this.storageKey),this.userStorage&&await vs(this.userStorage,this.storageKey+`-user`);let e={data:null,error:new Ko};return this.refreshingDeferred.resolve(e),e}await this._notifyAllSubscribers(`TOKEN_REFRESHED`,n.session);let s={data:n.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(s),s}catch(i){if(this._debug(r,`error`,i),R(i)){let n={data:null,error:i};if(!Go(i)){let e=await _s(this.storage,this.storageKey);e?.expires_at&&e.expires_at*1e3>Date.now()?this._debug(r,`proactive refresh failed, access token still valid â preserving session`):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:n,expiresAt:Date.now()+wo},(t=this.refreshingDeferred)==null||t.resolve(n),n}throw(n=this.refreshingDeferred)==null||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(r,`end`)}}async _notifyAllSubscribers(e,t,n=!0){if(this._pendingInitNotifications!==null&&n){this._pendingInitNotifications.push({event:e,session:t,broadcast:n});return}let r=`#_notifyAllSubscribers(${e})`;this._debug(r,`begin`,t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});let r=[],i=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(e){r.push(e)}});if(await Promise.all(i),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,`end`)}}async _saveSession(e){this._debug(`#_saveSession()`,e),this.suppressGetSessionWarning=!0;let t=Object.assign({},e),n=t.user&&t.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&t.user&&await gs(this.userStorage,this.storageKey+`-user`,{user:t.user});let e=Object.assign({},t);delete e.user;let r=Js(e);await gs(this.storage,this.storageKey,r)}else{let e=Js(t);await gs(this.storage,this.storageKey,e)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug(`#_removeSession()`),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await vs(this.storage,this.storageKey),await Is(this.storage,this.storageKey),await vs(this.storage,this.storageKey+`-user`),this.userStorage&&await vs(this.userStorage,this.storageKey+`-user`),await this._notifyAllSubscribers(`SIGNED_OUT`,null)}_removeVisibilityChangedCallback(){this._debug(`#_removeVisibilityChangedCallback()`);let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&us()&&window!=null&&window.removeEventListener&&window.removeEventListener(`visibilitychange`,e)}
20catch(e){console.error(`removing visibilitychange callback failed`,e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug(`#_startAutoRefresh()`);let e=setInterval(()=>this._autoRefreshTokenTick(),So);this.autoRefreshTicker=e,e&&typeof e==`object`&&typeof e.unref==`function`?e.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(e);let t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&typeof t==`object`&&typeof t.unref==`function`?t.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug(`#_stopAutoRefresh()`);let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);let t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)==null||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug(`#_autoRefreshTokenTick()`,`begin`),this.lock!=null){try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/So);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${So}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}})}catch(e){if(e instanceof uc)this._debug(`auto refresh token tick lock not available`);else throw e}return}if(this.refreshingDeferred!==null){this._debug(`#_autoRefreshTokenTick()`,`refresh already in flight, skipping`);return}try{let e=Date.now();try{await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/So);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${So}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}}async _handleVisibilityChange(){if(this._debug(`#_handleVisibilityChange()`),!us()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug(`#visibilityChangedCallback`,`error`,e)}},window==null||window.addEventListener(`visibilitychange`,this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error(`_handleVisibilityChange`,e)}}async _onVisibilityChanged(e){let t=`#_onVisibilityChanged(${e})`;if(this._debug(t,`visibilityState`,document.visibilityState),document.visibilityState===`visible`){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!==`visible`){this._debug(t,`acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting`);return}await this._recoverAndRefresh()});else{if(document.visibilityState!==`visible`){this._debug(t,`visibilityState is no longer visible, skipping recovery`);return}await this._recoverAndRefresh()}}else document.visibilityState===`hidden`&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){let r=n?.redirectTo,i=null,a=null,o=null;this.flowType===`pkce`&&([i,a,o]=await this._getCodeChallengeAndMethod(),r=this._maybeAppendFlowIdToRedirect(r,o));let s=[`provider=${encodeURIComponent(t)}`];if(r&&s.push(`redirect_to=${encodeURIComponent(r)}`),n?.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),i!=null&&a!=null){let e=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});s.push(e.toString())}if(n?.queryParams){let e=new URLSearchParams(n.queryParams);s.push(e.toString())}return n?.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),{url:`${e}?${s.join(`&`)}`,flowId:o}}_maybeAppendFlowIdToRedirect(e,t){return!e||!t||!this.experimental.appendPkceFlowIdToRedirects?e??void 0:Ls(e,t)}async _getCodeChallengeAndMethod(e=!1){return Rs(this.storage,this.storageKey,e,e=>this._debug(`#_getCodeChallengeAndMethod()`,`evicted oldest pending PKCE verifier slot`,e))}async _unenroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;return r?this._returnResult({data:null,error:r}):await B(this.fetch,`DELETE`,`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:n?.session?.access_token})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _enroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType===`phone`?{phone:e.phone}:e.factorType===`totp`?{issuer:e.issuer}:{}),{data:a,error:o}=await B(this.fetch,`POST`,`${this.url}/factors`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(e.factorType===`totp`&&a.type===`totp`&&a?.totp?.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),this._returnResult({data:a,error:null}))})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _verify(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({challenge_id:e.challengeId},`webauthn`in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type===`create`?Cc(e.webauthn.credential_response):wc(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:o}=await B(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/verify`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers(`MFA_CHALLENGE_VERIFIED`,a),this._returnResult({data:a,error:o}))})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challenge(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=await B(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:n?.session?.access_token});if(i.error)return i;let{data:a}=i;if(a.type!==`webauthn`)return{data:a,error:null};switch(a.webauthn.type){case`create`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:xc(a.webauthn.credential_options.publicKey)})})}),error:null};case`request`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Sc(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challengeAndVerify(e){let{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};let n={all:[],phone:[],totp:[],webauthn:[]};for(let t of e?.factors??[])n.all.push(t),t.status===`verified`&&n[t.factor_type].push(t);return{data:n,error:null}}async _getAuthenticatorAssuranceLevel(e){if(e)try{let{payload:t}=bs(e),n=null;t.aal&&(n=t.aal);let r=n,{data:{user:i},error:a}=await this.getUser(e);if(a)return this._returnResult({data:null,error:a});((i?.factors)?.filter(e=>e.status===`verified`)??[]).length>0&&(r=`aal2`);let o=t.amr||[];return{data:{currentLevel:n,nextLevel:r,currentAuthenticationMethods:o},error:null}}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}let{data:{session:t},error:n}
20=await this.getSession();if(n)return this._returnResult({data:null,error:n});if(!t)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let{payload:r}=bs(t.access_token),i=null;r.aal&&(i=r.aal);let a=i;(t.user.factors?.filter(e=>e.status===`verified`)??[]).length>0&&(a=`aal2`);let o=r.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:o},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await B(this.fetch,`GET`,`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new Io})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _approveAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new Io});let a=await B(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`approve`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&us()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _denyAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new Io});let a=await B(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`deny`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&us()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _listOAuthGrants(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;return n?this._returnResult({data:null,error:n}):t?await B(this.fetch,`GET`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new Io})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?(await B(this.fetch,`DELETE`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Io})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async fetchJwk(e,t={keys:[]}){let n=t.keys.find(t=>t.kid===e);if(n)return n;let r=Date.now();if(n=this.jwks.keys.find(t=>t.kid===e),n&&this.jwks_cached_at+6e5>r)return n;let{data:i,error:a}=await B(this.fetch,`GET`,`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=r,n=i.keys.find(t=>t.kid===e),!n)?null:n}async getClaims(e,t={}){try{let n=e;if(!n){let{data:e,error:t}
20=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});n=e.session.access_token}let{header:r,payload:i,signature:a,raw:{header:o,payload:s}}=bs(n);if(!t?.allowExpired)try{Vs(i.exp)}catch(e){throw new Yo(e instanceof Error?e.message:`JWT validation failed`)}let c=!r.alg||r.alg.startsWith(`HS`)||!r.kid||!(`crypto`in globalThis&&`subtle`in globalThis.crypto)?null:await this.fetchJwk(r.kid,t?.keys?{keys:t.keys}:t?.jwks);if(!c){let{error:e}=await this.getUser(n);if(e)throw e;return{data:{claims:i,header:r,signature:a},error:null}}let l=Hs(r.alg),u=await crypto.subtle.importKey(`jwk`,c,l,!0,[`verify`]);if(!await crypto.subtle.verify(l,u,a,os(`${o}.${s}`)))throw new Yo(`Invalid JWT signature`);return{data:{claims:i,header:r,signature:a},error:null}}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async signInWithPasskey(e){Gs(this.experimental);try{if(!Ec())return this._returnResult({data:null,error:new z(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyAuthentication({options:{captchaToken:e?.options?.captchaToken}});if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await Oc({publicKey:Sc(t.options),signal:e?.options?.signal??bc.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new z(`WebAuthn ceremony failed`,null)});let a=wc(r);return this._verifyPasskeyAuthentication({challengeId:t.challenge_id,credential:a})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async registerPasskey(e){Gs(this.experimental);try{if(!Ec())return this._returnResult({data:null,error:new z(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyRegistration();if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await Dc({publicKey:xc(t.options),signal:e?.options?.signal??bc.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new z(`WebAuthn ceremony failed`,null)});let a=Cc(r);return this._verifyPasskeyRegistration({challengeId:t.challenge_id,credential:a})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyRegistration(){Gs(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new Io});let{data:r,error:i}=await B(this.fetch,`POST`,`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:t.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){Gs(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Io});let{data:i,error:a}=await B(this.fetch,`POST`,`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyAuthentication(e){Gs(this.experimental);try{let{data:t,error:n}=await B(this.fetch,`POST`,`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:e?.options?.captchaToken}}});return n?this._returnResult({data:null,error:n}):this._returnResult({data:t,error:null})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyAuthentication(e){Gs(this.experimental);try{let{data:t,error:n}=await B(this.fetch,`POST`,`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:ec});return n?this._returnResult({data:null,error:n}):(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,t.session)),this._returnResult({data:t,error:null}))}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _listPasskeys(){Gs(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new Io});let{data:r,error:i}=await B(this.fetch,`GET`,`${this.url}/passkeys`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){Gs(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Io});let{data:i,error:a}=await B(this.fetch,`PATCH`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:e.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}async _deletePasskey(e){Gs(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new Io});let{error:i}=await B(this.fetch,`DELETE`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(e){if(R(e))return this._returnResult({data:null,error:e});throw e}}};Rc.nextInstanceID={};var zc=Rc,Bc=`2.112.4`,Vc=``,Hc;if(typeof Deno<`u`)Vc=`deno`,Hc=Deno.version?.deno;else if(typeof document<`u`)Vc=`web`;else if(typeof navigator<`u`&&navigator.product===`ReactNative`)Vc=`react-native`;else{var Uc;Vc=`node`;let e=globalThis.process;Hc=e==null||(Uc=e.version)==null?void 0:Uc.replace(/^v/,``)}var Wc=[`runtime=${Vc}`];Hc&&Wc.push(`runtime-version=${Hc}`);var Gc={headers:{"X-Client-Info":`supabase-js/${Bc}; ${Wc.join(`; `)}`}},Kc={schema:`public`},qc={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:`implicit`},Jc={}
20,Yc={enabled:!1,respectSamplingDecision:!0};function Xc(e){if(!e||typeof e!=`string`)return null;let t=e.split(`-`);if(t.length!==4)return null;let[n,r,i,a]=t;if(n.length!==2||r.length!==32||i.length!==16||a.length!==2)return null;let o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(i)||!o.test(a)||r===`00000000000000000000000000000000`||i===`0000000000000000`?null:{version:n,traceId:r,parentId:i,traceFlags:a,isSampled:(parseInt(a,16)&1)==1}}function Zc(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(let e of t)try{if(typeof e==`string`){if(Qc(n.hostname,e))return!0}else if(e instanceof RegExp){if(e.test(n.hostname))return!0}else if(typeof e==`function`&&e(n))return!0}catch{continue}return!1}function Qc(e,t){if(t===e)return!0;if(t.startsWith(`*.`)){let n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith(`.`+n)))return!0}return!1}function $c(e){let t=[];try{let n=new URL(e);t.push(n.hostname)}catch{}return t.push(`*.supabase.co`,`*.supabase.in`),t.push(`localhost`,`127.0.0.1`,`[::1]`),t}function el(e){"@babel/helpers - typeof";return el=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},el(e)}function tl(e,t){if(el(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(el(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nl(e){var t=tl(e,`string`);return el(t)==`symbol`?t:t+``}function rl(e,t,n){return(t=nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?il(Object(n),!0).forEach(function(t){rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var al=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),ol=()=>Headers,sl=e=>e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`),cl=`sb_temp_`,ll=new Set,ul=e=>{if(!e.startsWith(`sb_`)||sl(e)||e.startsWith(cl))return;let t=e.match(/^sb_[a-zA-Z0-9]+_/)?.[0]??`unknown`;ll.has(t)||(ll.add(t),console.warn(`@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type.`))},dl=(e,t,n,r,i,a)=>{let o=al(r),s=ol(),c=i?.enabled===!0,l=i?.respectSamplingDecision!==!1,u=c?$c(t):null,d=!(a?.omitApiKeyAsBearer&&sl(e));return async(t,r)=>{let i=await n(),a=new s(r?.headers);if(a.has(`apikey`)||a.set(`apikey`,e),!a.has(`Authorization`)){let t=i??(d?e:null);t&&a.set(`Authorization`,`Bearer ${t}`)}if(u){let e=ml(t,u,l);e&&(e.traceparent&&!a.has(`traceparent`)&&a.set(`traceparent`,e.traceparent),e.tracestate&&!a.has(`tracestate`)&&a.set(`tracestate`,e.tracestate),e.baggage&&!a.has(`baggage`)&&a.set(`baggage`,e.baggage))}return o(t,V(V({},r),{},{headers:a}))}},fl=!1,pl=!1;function ml(e,t,n){let r=Er();if(!r)return fl||(fl=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!Zc(typeof e==`string`||e instanceof URL?e:e.url,t))return null;let i=r();if(!i||!i.traceparent){var a;if(i!=null&&(a=i.carrierKeys)!=null&&a.length&&!pl){pl=!0;let e=i.carrierKeys.includes(`sentry-trace`)?" Sentry detected: set `propagateTraceparent: true` in Sentry.init() to emit it."
20:` Configure your tracing SDK to emit W3C trace context on outgoing requests.`;console.warn(`@supabase/supabase-js: tracePropagation is enabled and a tracing SDK is active, but its propagator wrote [${i.carrierKeys.join(`, `)}] and no W3C traceparent header, so trace headers will not be attached.`+e)}return null}if(n){let e=Xc(i.traceparent);if(e&&!e.isSampled)return{traceparent:i.traceparent}}return i}function hl(e){return typeof e==`boolean`?{enabled:e}:e}function gl(e){return e.endsWith(`/`)?e:e+`/`}function _l(e,t){let{db:n,auth:r,realtime:i,global:a}=e,{db:o,auth:s,realtime:c,global:l}=t,u=hl(e.tracePropagation),d=hl(t.tracePropagation),f={db:V(V({},o),n),auth:V(V({},s),r),realtime:V(V({},c),i),storage:{},global:V(V(V({},l),a),{},{headers:V(V({},l?.headers??{}),a?.headers??{})}),tracePropagation:{enabled:u?.enabled??d?.enabled??!1,respectSamplingDecision:u?.respectSamplingDecision??d?.respectSamplingDecision??!0},accessToken:async()=>``};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function vl(e){let t=e?.trim();if(!t)throw Error(`supabaseUrl is required.`);if(!t.match(/^https?:\/\//i))throw Error(`Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.`);try{return new URL(gl(t))}catch{throw Error(`Invalid supabaseUrl: Provided URL is malformed.`)}}var yl=class extends zc{constructor(e){super(e)}},bl=class{constructor(e,t,n){this.supabaseUrl=e,this.supabaseKey=t;let r=vl(e);if(!t)throw Error(`supabaseKey is required.`);ul(t),this.realtimeUrl=new URL(`realtime/v1`,r),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace(`http`,`ws`),this.authUrl=new URL(`auth/v1`,r),this.storageUrl=new URL(`storage/v1`,r),this.functionsUrl=new URL(`functions/v1`,r);let i=`sb-${r.hostname.split(`.`)[0]}-auth-token`,a={db:Kc,realtime:Jc,auth:V(V({},qc),{},{storageKey:i}),global:Gc,tracePropagation:Yc},o=_l(n??{},a);this.settings=o,this.storageKey=o.auth.storageKey??``,this.headers=o.global.headers??{},o.accessToken?(this.accessToken=o.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(o.auth??{},this.headers,o.global.fetch),this.fetch=dl(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation),this.functionsFetch=dl(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(V({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},o.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn(`Failed to set initial Realtime auth token:`,e)),this.rest=new ni(new URL(`rest/v1`,r).href,{headers:this.headers,schema:o.db.schema,fetch:this.fetch,timeout:o.db.timeout,urlLengthLimit:o.db.urlLengthLimit,retry:o.db.retry}),this.storage=new bo(this.storageUrl.href,this.headers,this.fetch,n?.storage),o.accessToken||this._listenForAuthEvents()}get functions(){return new Lr(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e=this;if(e.accessToken)return await e.accessToken();let{data:t}=await e.auth.getSession();return t.session?.access_token??null}async _getAccessToken(){var e=this;return await e._getSessionToken()??e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:a,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,m){let h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new yl({url:this.authUrl.href,headers:V(V({},h),p),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,fetch:m,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>e.toLowerCase()===`authorization`)})}_initRealtimeClient(e){return new ba(this.realtimeUrl.href,V(V({},e),{},{params:V(V({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,`CLIENT`,t?.access_token)})}_handleTokenChanged(e,t,n){(e===`TOKEN_REFRESHED`||e===`SIGNED_IN`||e===`INITIAL_SESSION`)&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e===`SIGNED_OUT`&&(this.realtime.setAuth(),t==`STORAGE`&&this.auth.signOut(),this.changedAccessToken=void 0)}},xl=(e,t,n)=>new bl(e,t,n);function Sl(){if(typeof window<`u`||globalThis.Deno!==void 0)return!1;let e=globalThis.process;if(!e)return!1;let t=e.version;if(t==null)return!1;let n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}Sl()&&console.warn(`â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
20ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715`);function Cl(){if(typeof window>`u`)return;let e=location.hostname,t=[`lovableproject.com`,`lovableproject-dev.com`,`lovable.app`,`gpt-eng.com`,`gptengineer.run`].some(t=>e===t||e.endsWith(`.`+t))?e.match(RegExp(`^(?:id-preview(?:-[a-z0-9]+)?|project)--([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?:-dev)?(?=\\.|$)`,`i`))?.[1]??e.match(RegExp(`^([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?=[.-])`,`i`))?.[1]:void 0,n=window.parent&&window.parent!==window;if(!t||!n)return localStorage;let r=e.endsWith(`.lovableproject-dev.com`)||e.endsWith(`.gpt-eng.com`),i=r?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:``),o=a&&i.test(a)?[a]:r?[`https://lovable.dev`,`http://localhost:3000`]:[`https://lovable.dev`],s=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),c=(e,n,r)=>new Promise(i=>{let a=s(),c=!1,l,u=e=>{c||(c=!0,clearTimeout(l),window.removeEventListener(`message`,d),i(e))},d=e=>{if(o.indexOf(e.origin)<0)return;let t=e.data;t&&t.type===`lovable-preview-auth:result`&&t.requestId===a&&u(t)};window.addEventListener(`message`,d);let f={type:e,requestId:a,projectId:t,key:n};r!==void 0&&(f.value=r);for(let e of o)window.parent.postMessage(f,e);l=setTimeout(()=>u(null),2e3)}),l=!0;return{getItem:async e=>{let t=await c(`lovable-preview-auth:get`,e);return!t&&l&&(await new Promise(e=>setTimeout(e,250)),t=await c(`lovable-preview-auth:get`,e)),l=!1,t&&t.ok&&typeof t.value==`string`?t.value===``?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),c(`lovable-preview-auth:set`,e,t).then(()=>void 0)),removeItem:e=>(localStorage.removeItem(e),c(`lovable-preview-auth:remove`,e).then(()=>void 0))}}function wl(e){return e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`)}function Tl(e){return(t,n)=>{let r=new Headers(typeof Request<`u`&&t instanceof Request?t.headers:void 0);return n?.headers&&new Headers(n.headers).forEach((e,t)=>r.set(t,e)),wl(e)&&r.get(`Authorization`)===`Bearer ${e}`&&r.delete(`Authorization`),r.set(`apikey`,e),fetch(t,{...n,headers:r})}}function El(){let e={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_DEV_SERVER:`false`,TSS_DEV_SSR_STYLES_BASEPATH:`/`,TSS_DEV_SSR_STYLES_ENABLED:`true`,TSS_DISABLE_CSRF_MIDDLEWARE_WARNING:`false`,TSS_INLINE_CSS_ENABLED:`false`,TSS_ROUTER_BASEPATH:``,TSS_SERVER_FN_BASE:`/_serverFn/`,VITE_SUPABASE_PROJECT_ID:`orlfbsbhwfoijejvnopc`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_Pm81YSBXteU4jvirXsZueA_g0px6UhQ`,VITE_SUPABASE_URL:`https://orlfbsbhwfoijejvnopc.supabase.co`}.VITE_SUPABASE_URL||{}.SUPABASE_URL,t={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_DEV_SERVER:`false`,TSS_DEV_SSR_STYLES_BASEPATH:`/`,TSS_DEV_SSR_STYLES_ENABLED:`true`,TSS_DISABLE_CSRF_MIDDLEWARE_WARNING:`false`,TSS_INLINE_CSS_ENABLED:`false`,TSS_ROUTER_BASEPATH:``,TSS_SERVER_FN_BASE:`/_serverFn/`,VITE_SUPABASE_PROJECT_ID:`orlfbsbhwfoijejvnopc`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_Pm81YSBXteU4jvirXsZueA_g0px6UhQ`,VITE_SUPABASE_URL:`https://orlfbsbhwfoijejvnopc.supabase.co`}.VITE_SUPABASE_PUBLISHABLE_KEY||{}.SUPABASE_PUBLISHABLE_KEY;if(!e||!t){let n=`Missing Supabase environment variable(s): ${[...e?[]:[`SUPABASE_URL`],...t?[]:[`SUPABASE_PUBLISHABLE_KEY`]].join(`, `)}. Connect Supabase in Lovable Cloud.`;throw console.error(`[Supabase] ${n}`),Error(n)}return xl(e,t,{global:{fetch:Tl(t)},auth:{storage:Cl(),persistSession:!0,autoRefreshToken:!0}})}var Dl,Ol=new Proxy({},{get(e,t,n){return Dl||=El(),Reflect.get(Dl,t,n)}}),kl=Sr({type:`function`}).client(async({next:e})=>{let{data:t}=await Ol.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),Al=Sr(),jl=void 0,Ml=wr(()=>({functionMiddleware:[kl],requestMiddleware:[Al,jl]})),Nl=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(){}},Pl=new class extends Nl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
20this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Fl={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Il=new class{#e=Fl;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Ll(e){setTimeout(e,0)}var Rl=typeof window>`u`||`Deno`in globalThis;function zl(){}function Bl(e,t){return typeof e==`function`?e(t):e}function Vl(e){return typeof e==`number`&&e>=0&&e!==1/0}function Hl(e,t){return Math.max(e+(t||0)-Date.now(),0)}function H(e,t){return typeof e==`function`?e(t):e}function Ul(e,t){return typeof e==`function`?e(t):e}function U(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==G(o,t.options))return!1}else if(!Gl(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function W(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Wl(t.options.mutationKey)!==Wl(a))return!1}else if(!Gl(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function G(e,t){return(t?.queryKeyHashFn||Wl)(e)}function Wl(e){return JSON.stringify(e,(e,t)=>Xl(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Gl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Gl(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Gl(e[r],t[r]))return!1;return!0}return!1}var Kl=Object.prototype.hasOwnProperty;function ql(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Yl(e)&&Yl(t);if(!r&&!(Xl(e)&&Xl(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Kl.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=ql(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Jl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Yl(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xl(e){if(!Zl(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Zl(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Zl(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ql(e){return new Promise(t=>{Il.setTimeout(t,e)})}function $l(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ql(e,t)}function eu(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function tu(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var nu=Symbol();function ru(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===nu?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function iu(e,t){return typeof e==`function`?e(...t):!!e}function au(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ou=(()=>{let e=()=>Rl;return{isServer(){return e()},setIsServer(t){e=t}}})();function su(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var cu=Ll;function lu(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=cu,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
20{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var uu=lu(),du=new class extends Nl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function fu(e){return Math.min(1e3*2**e,3e4)}function pu(e){return(e??`online`)!==`online`||du.isOnline()}var mu=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function hu(e){let t=!1,n=0,r,i=su(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new mu(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Pl.isFocused()&&(e.networkMode===`always`||du.isOnline())&&e.canRun(),u=()=>pu(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(ou.isServer()?0:3),o=e.retryDelay??fu,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Ql(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var gu=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vl(this.gcTime)&&(this.#e=Il.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ou.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Il.clearTimeout(this.#e),this.#e=void 0)}};function _u(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{au(e,()=>t.signal,()=>n=!0)},u=ru(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?tu:eu;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?yu:vu,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:vu(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function vu(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function yu(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var bu=class extends gu{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Cu(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Cu(this.options);e.data!==void 0&&(this.setState(Su(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=$l(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(zl).catch(zl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Ul(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===nu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
20Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>H(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Hl(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ru(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?_u(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=hu({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof mu&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof mu){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...xu(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Su(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),uu.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function xu(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pu(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Su(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Cu(e){let 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,errorUpdate
20Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var wu=class extends gu{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Tu(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=hu({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),uu.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Tu(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Eu=class extends Nl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new wu({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Du(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Du(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Du(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
20e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Du(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){uu.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>W(t,e))}findAll(e={}){return this.getAll().filter(t=>W(e,t))}notify(e){uu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return uu.batch(()=>Promise.all(e.map(e=>e.continue().catch(zl))))}};function Du(e){return e.options.scope?.id}var Ou=class extends Nl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??G(r,t),a=this.get(i);return a||(a=new bu({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){uu.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>U(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>U(e,t)):t}notify(e){uu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){uu.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){uu.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ku=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ou,this.#t=e.mutationCache||new Eu,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Pl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=du.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(H(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Bl(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return uu.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;uu.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return uu.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=uu.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(zl).catch(zl)}invalidateQueries(e,t={}){return uu.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=uu.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(zl)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(zl)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(H(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(zl).catch(zl)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(zl).catch(zl)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return du.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Wl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Gl(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Wl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Gl(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=G(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===nu&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Au=j.createContext(void 0),ju=e=>{let t=j.useContext(Au);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Mu=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,M.jsx)(Au.Provider,{value:e,children:t})),Nu=`/assets/styles-BbfxN9s9.css`;function Pu(e,t={}){if(typeof window>`u`)return;window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`});let n=e instanceof Response?`Response ${e.status}${e.url?` at ${e.url}`:``}`:e instanceof Error?e.message:String(e),r=e instanceof Error?e.stack:void 0;window.__lovableReportRuntimeError?.({message:n,...r!==void 0&&{stack:r},filename:window.location.pathname})}var Fu=Oe(`apple`,[[`path`,{d:`M12 6.528V3a1 1 0 0 1 1-1h0`,key:`11qiee`}],[`path`,{d:`M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21`,key:`110c12`}
20]]),Iu=Oe(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Lu=Oe(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ru=Oe(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),zu=Oe(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Bu=Oe(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),Vu=Oe(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Hu=Oe(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]),Uu=Oe(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Wu=Oe(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),Gu=Oe(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ku=Oe(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),qu=Oe(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ju=[{slug:`/search`,name:`qikfox Search`,shortName:`Search`,proposition:`Search the Internet with safety built in.`,summary:`qikfox Search is a web search experience designed so that safety checks happen as part of finding information, not after you have already clicked.`,benefits:[`Better relevance with AI-enabled Web Search`,`Filters unsafe Brands and Rogue SEO optimized results`,`Filters annoying Ads and Malvertisements`,`Follow the customer journey with an AI agent primed to keep you safe`,`Designed to work alongside qikfox Safe Browser`],cta:`Explore Search`,category:`AI-first Web Search`,platforms:[`Web`],accent:`yellow`},{slug:`/browser`,name:`qikfox Safe Browser`,shortName:`Safe Browser`,proposition:`Browse with protection working around you.`,summary:`qikfox Safe Browser is an AI-first desktop and mobile browser designed to make the internet safer, smarter, and easier to navigate. It brings AI into the everyday browsing experience while serving as the foundation that connects the broader qikfox family of safety, security, privacy, and productivity products.`,benefits:[`Avoid a vendor lock-in, bring your own LLM or use the built in AI with qikfox AI Assistant`,`All requests are scrubbed for privacy by the browser giving you unparalleled privacy from AI operators`,`AI Assisted Web Browsing keeps you safe while browsing`,`Comes with numerous productivity apps like Antivirus, Notes, Stacks`,`Active link and promptware protection`],cta:`Download Browser`,category:`WebBrowser`,platforms:[`Windows`,`macOS`,`Linux`,`Android`,`iOS`],accent:`blue`},{slug:`/antivirus`,name:`qikfox Antivirus`,shortName:`Antivirus`,proposition:`Protect your device from malicious files and software.`,summary:`qikfox Antivirus comes in two flavors, a standalone Windows App and embedded in qikfox Web Browser; in both versions it safeguards the entire system, not just the web downloads.`,benefits:[`Proprietary TRACE framework protects users from Online Threats`,`Active and Smart Scans for the entire system`,`Protection that continues with browser closed`,`Active scans and threat remediation from downloads`,`Bundled Managed Service Support`],cta:`Explore Antivirus`,category:`Endpoint Protection`,platforms:[`Windows`,`macOS`,`Android`],accent:`green`},{slug:`/vpn`,name:`qikfox VPN`,shortName:`VPN`,proposition:`Protect your Internet connection and IP address.`,summary:`qikfox VPN encrypts the connection between your device and the Internet, which matters most on networks you do not control - hotels, airports, cafés and shared offices.`,benefits:[`256-bit AES Encryption: military-grade encryption secures your data and traffic from hackers, ISPs and third parties`,`Zero-Activity L
20ogs Policy: no traffic data, DNS queries or identifiable footprints are ever logged`,`IP Masking & Anonymity: conceals your real IP address to prevent tracking, ad targeting and profiling`,`Public Wi-Fi Protection: safeguards personal information and sessions on unsecured hotspots`,`Unlimited Bandwidth: uncapped data with no ISP throttling or artificial caps`],cta:`Explore VPN`,category:`Privacy Protection`,platforms:[`Windows`,`macOS`,`Android`,`iOS`],accent:`coral`}];function Yu(e){return Ju.find(t=>t.slug===e)}var Xu=[{label:`Products`,to:`/products`,columns:[{heading:`The qikfox family`,links:Ju.map(e=>({label:e.name,to:e.slug,description:e.proposition}))},{heading:`Get qikfox`,links:[{label:`All products`,to:`/products`,description:`How the four products fit together`},{label:`Pricing`,to:`/pricing`,description:`Monthly and annual plans for every product`},{label:`Download`,to:`/download`,description:`Windows, macOS, Linux, Android and iOS`},{label:`Technology`,to:`/technology`,description:`How qikfox products are built`}]}]},{label:`Safety`,to:`/safety`,columns:[{heading:`Staying safe online`,links:[{label:`Safety`,to:`/safety`,description:`What qikfox does about unsafe sites and files`},{label:`Browser safety`,to:`/browser/safety`,description:`Safety features inside the browser`},{label:`Guides`,to:`/resources/guides`,description:`Plain-language explanations`}]}]},{label:`Privacy`,to:`/privacy`,columns:[{heading:`Privacy and security`,links:[{label:`Privacy`,to:`/privacy`,description:`Our approach to personal data`},{label:`Security`,to:`/security`,description:`How we protect accounts and software`},{label:`Trust Center`,to:`/trust`,description:`Practices, disclosure and documentation`},{label:`Transparency`,to:`/transparency`,description:`What we publish and why`}]}]},{label:`Resources`,to:`/resources`,columns:[{heading:`Learn and get help`,links:[{label:`The Perspective`,to:`/resources/blog`,description:`Privacy, security and AI writing`},{label:`Guides`,to:`/resources/guides`,description:`How to use qikfox products`},{label:`Help Center`,to:`/resources/help`,description:`Answers to common questions`},{label:`Security Center`,to:`/security-center`,description:`Report and follow security issues`}]}]}],Zu=[{heading:`Products`,links:[{label:`qikfox Search`,to:`/search`},{label:`qikfox Safe Browser`,to:`/browser`},{label:`qikfox Antivirus`,to:`/antivirus`},{label:`qikfox VPN`,to:`/vpn`},{label:`All products`,to:`/products`},{label:`Download`,to:`/download`}]},{heading:`Downloads`,links:[{label:`Windows`,to:`/download/windows`},{label:`macOS`,to:`/download/mac`},{label:`Linux`,to:`/download/linux`},{label:`Android`,to:`/download/android`},{label:`iOS`,to:`/download/ios`}]},{heading:`Protection`,links:[{label:`Trust Center`,to:`/trust`},{label:`Security Center`,to:`/security-center`},{label:`Transparency`,to:`/transparency`},{label:`Technology`,to:`/technology`}]},{heading:`Resources`,links:[{label:`The Perspective`,to:`/resources/blog`},{label:`Guides`,to:`/resources/guides`},{label:`Help Center`,to:`/resources/help`},{label:`Browser safety features`,to:`/browser/safety`},{label:`Support`,to:`/support`},{label:`Partners`,to:`/partners`}]},{heading:`Membership`,links:[{label:`Pricing`,to:`/pricing`},{label:`Member portal`,to:`/portal`},{label:`Sign in`,to:`/auth`}]},{heading:`Company`,links:[{label:`About qikfox`,to:`/about`},{label:`Company`,to:`/about/company`},{label:`Mission`,to:`/about/mission`},{label:`Careers`,to:`/about/careers`},{label:`Newsroom`,to:`/newsroom`},{label:`Press`,to:`/press`}]},{heading:`Legal`,links:[{label:`Privacy Policy`,to:`/legal/privacy-policy`},{label:`Terms of Service`,to:`/legal/terms`},{label:`Cookie Policy`,to:`/legal/cookie-policy`},{label:`Your Privacy Choices`,to:`/privacy-choices`},{label:`Acceptable Use Policy`,to:`/legal/acceptable-use`},{label:`Responsible Disclosure`,to:`/legal/responsible-disclosure`},{label:`Accessibility`,to:`/legal/accessibility`}]}],Qu=[{label:`Windows`,to:`/download/windows`,note:`Windows 10 and Windows 11`},{label:`macOS`,to:`/download/mac`,note:`Apple silicon and Intel`},{label:`Linux`,to:`/download/linux`,note:`Debian, Ubuntu and Fedora builds`},{label:`Android`,to:`/download/android`,note:`Phones and tablets`},{label:`iOS`,to:`/download/ios`,note:`iPhone and iPad`}];function $u(e,t){typeof window>`u`||(window.qikfoxAnalyticsQueue=window.qikfoxAnalyticsQueue??[],window.qikfoxAnalyticsQueue.push({name:e,payload:t,at:Date.now()}))}var ed={"/search":`https://qikfox.ai`};function td({to:e,children:t,className:n,onClick:r,ariaLabel:i}){let a=ed[e]??(/^https?:\/\//.test(e)?e:void 0);return a?(0,M.jsx)(`a`,{href:a,className:n,onClick:r,"aria-label":i,target:`_blank`,rel:`noopener noreferrer`,children:t}):(0,M.jsx)(me,{to:e,className:n,onClick:r,"aria-label":i,activeProps:{"data-active":`true`},children:t})}
20function nd({children:e,tone:t=`white`,className:n,id:r,as:i=`section`}){return(0,M.jsx)(i,{id:r,className:k(`py-16 lg:py-24`,{white:`bg-background`,surface:`bg-surface`,surfaceStrong:`bg-surface-strong`,ink:`bg-foreground text-background`}[t],n),children:(0,M.jsx)(`div`,{className:`container-site`,children:e})})}function rd({children:e,className:t}){return(0,M.jsx)(`p`,{className:k(`font-display text-xs font-bold uppercase tracking-[0.18em] text-primary`,t),children:e})}function id({eyebrow:e,title:t,intro:n,level:r=2,align:i=`left`,className:a}){let o=`h${r}`;return(0,M.jsxs)(`div`,{className:k(`max-w-3xl`,i===`center`&&`mx-auto text-center`,a),children:[e?(0,M.jsx)(rd,{className:`mb-3`,children:e}):null,(0,M.jsx)(o,{className:r===1?`text-display`:`text-section`,children:t}),n?(0,M.jsx)(`p`,{className:`text-lead mt-5`,children:n}):null]})}var ad=`inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-full font-display font-semibold tracking-[0.00625em] transition-[background-color,box-shadow,color] duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-60 disabled:shadow-none`,od={md:`h-10 px-6 text-[0.875rem]`,lg:`h-12 px-7 text-base`},sd={primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-md active:shadow-none`,secondary:`border border-border bg-background text-foreground hover:bg-surface active:bg-surface-strong`,ghost:`text-primary hover:bg-coral-soft active:bg-coral-soft/80`,onInk:`bg-background text-foreground shadow-sm hover:bg-surface hover:shadow-md`};function cd({children:e,variant:t=`primary`,size:n=`md`,className:r,onClick:i,ariaLabel:a}){return(0,M.jsx)(`button`,{type:`button`,"aria-label":a,onClick:i,className:k(ad,od[n],sd[t],r),children:e})}function ld({to:e,children:t,variant:n=`primary`,size:r=`md`,className:i,onClick:a}){return(0,M.jsx)(td,{to:e,onClick:a,className:k(ad,od[r],sd[n],i),children:t})}function ud({to:e,children:t,className:n,onClick:r}){return(0,M.jsx)(td,{to:e,onClick:r,className:k(`font-semibold text-foreground underline decoration-2 decoration-primary underline-offset-4 hover:text-primary`,n),children:t})}function dd({children:e,className:t}){return(0,M.jsx)(`div`,{className:k(`max-w-3xl space-y-5 text-[1.0625rem] leading-relaxed text-muted-foreground lg:text-[1.125rem]`,`[&_h2]:text-section [&_h2]:mt-12 [&_h2]:mb-4 [&_h2]:text-foreground`,`[&_h3]:mt-8 [&_h3]:mb-3 [&_h3]:text-xl [&_h3]:text-foreground lg:[&_h3]:text-2xl`,`[&_ul]:list-disc [&_ul]:space-y-2 [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:space-y-2 [&_ol]:pl-5`,`[&_strong]:text-foreground`,t),children:e})}function fd({children:e}){return(0,M.jsxs)(`p`,{className:`rounded-lg border border-border bg-surface px-4 py-3 text-sm text-muted-foreground`,children:[(0,M.jsx)(`span`,{className:`font-semibold text-foreground`,children:`Editable placeholder: `}),e]})}var pd={version:1,asset_id:`efee8a25-0e79-4ee6-8eb8-ba19861afda8`,project_id:`90d85f7a-964f-47bc-8aa3-192a29d0eec6`,url:`/__l5e/assets-v1/efee8a25-0e79-4ee6-8eb8-ba19861afda8/qikfox-logo.png`,r2_key:`a/v1/90d85f7a-964f-47bc-8aa3-192a29d0eec6/efee8a25-0e79-4ee6-8eb8-ba19861afda8/qikfox-logo.png`,original_filename:`qikfox-logo.png`,size:48590,content_type:`image/png`,created_at:`2026-08-29T13:10:34Z`};function md({className:e,...t}){return(0,M.jsx)(`div`,{"data-slot":`skeleton`,className:k(`animate-pulse rounded-md bg-primary/10`,e),...t})}var hd=j.forwardRef(({className:e,containerClassName:t,skeletonClassName:n,showSkeleton:r=!0,immediate:i=!1,src:a,alt:o,onLoad:s,onError:c,...l},u)=>{let[d,f]=j.useState(!1),[p,m]=j.useState(!1),h=j.useRef(null);j.useEffect(()=>{f(!!(h.current?.complete&&h.current.naturalWidth)),m(!1)},[a]);let g=j.useCallback(e=>{h.current=e,typeof u==`function`?u(e):u&&(u.current=e),e?.complete&&e.naturalWidth&&f(!0)},[u]);return(0,M.jsxs)(`div`,{className:k(`qf-image relative overflow-hidden`,t),"data-loaded":d||void 0,"data-error":p||void 0,children:[r&&!i&&!d&&!p&&(0,M.jsx)(md,{className:k(`absolute inset-0 z-0`,n)}),(0,M.jsx)(`img`,{ref:g,src:a,alt:o,onLoad:e=>{f(!0),s?.(e)},onError:e=>{m(!0),c?.(e)},className:k(!i&&`transition-opacity duration-500 ease-out motion-reduce:transition-none`,i||d?`opacity-100`:`opacity-0`,e),...l})]})});hd.displayName=`OptimizedImage`;function gd({className:e,onInk:t=!1,trademark:n=!0}){return(0,M.jsxs)(`span`,{className:k(`inline-flex items-center gap-2`,e),children:[(0,M.jsx)(hd,{src:pd.url,alt:``,width:`30`,height:`30`,immediate:!0,loading:`eager`,fetchPriority:`high`,containerClassName:`h-[30px] w-[26px] shrink-0`,className:`h-full w-full object-contain`}),(0,M.jsxs)(`span`,{style:{fontFamily:`var(--font-wordmark)`},className:k(`text-[1.5rem] font-bold tracking-tight -translate-y-[2px]`,t?`text-background`:`text-foreground`),children:[`qikfox`,n&&(0,M.jsx)(`span`,{className:`relative left-[1px] top-[-0.28em] inline-block text-[0.8em] font-bold leading-none tracking-normal`,children:`â¢`})]})]})}var _d={antivirus:{name:`qikfox Antivirus`,url:`https://cdn.qikfox.com/antivirus/QikfoxAntivirusSetupWindows.exe`,fileName:`QikfoxAntivirusSetupWindows.exe`,platforms:[`Windows`]},vpn:{name:`qikfox VPN`,url:`https://cdn.qikfox.com/vpn/QikfoxVPNSetupWindows.exe`,fileName:`QikfoxVPNSetupWindows.exe`,platforms:[`Windows`]}};function vd(e){let t=_d[e];if(!t||typeof document>`u`)return null;let n=document.createElement(`a`);return n.href=t.url,n.download=t.fileName,n.rel=`noopener`,n.style.display=`none`,document.body.append(n),n.click(),n.remove(),t}function yd(e){"@babel/helpers - typeof";return yd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yd(e)}function bd(e,t){if(yd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xd(e){var t=bd(e,`string`);return yd(t)==`symbol`?t:t+``}function Sd(e,t,n){return(t=xd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
20t%2?Cd(Object(n),!0).forEach(function(t){Sd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wd(e){if(Array.isArray(e))return e}function q(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ed(e,t){if(e){if(typeof e==`string`)return Td(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Td(e,t):void 0}}function Dd(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Od(e,t){return wd(e)||q(e,t)||Ed(e,t)||Dd()}function kd(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}function Ad(e,t){if(e==null)return{};var n,r,i=kd(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var jd=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function Md(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r!==void 0&&r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,m=Ad(e,jd),h=Od((0,j.useState)(s===void 0?n:s),2),g=h[0],_=h[1],v=Od((0,j.useState)(c===void 0?i:c),2),y=v[0],b=v[1],x=Od((0,j.useState)(p===void 0?o:p),2),S=x[0],C=x[1],ee=(0,j.useCallback)(function(e,t){typeof l==`function`&&l(e,t),C(e)},[l]),te=(0,j.useCallback)(function(e,t){var n;typeof u==`function`&&(n=u(e,t)),_(n===void 0?e:n)},[u]),ne=(0,j.useCallback)(function(){typeof f==`function`&&f(),b(!0)},[f]),w=(0,j.useCallback)(function(){typeof d==`function`&&d(),b(!1)},[d]),re=s===void 0?g:s,ie=c===void 0?y:c,T=p===void 0?S:p;return K(K({},m),{},{inputValue:re,menuIsOpen:ie,onChange:ee,onInputChange:te,onMenuClose:w,onMenuOpen:ne,value:T})}function J(){return J=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},J.apply(null,arguments)}function Nd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xd(r.key),r)}}function Fd(e,t,n){return t&&Pd(e.prototype,t),n&&Pd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Id(e,t)}function Ld(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Id(e,t)}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rd(e)}function zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zd=function(){return!!e})()}function Bd(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Vd(e,t){if(t&&(yd(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Bd(e)}function Hd(e){var t=zd();return function(){var n,r=Rd(e);if(t){var i=Rd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vd(this,n)}}function Ud(e){if(Array.isArray(e))return Td(e)}function Wd(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Gd(){throw TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kd(e){return Ud(e)||Wd(e)||Ed(e)||Gd()}function qd(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jd(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Yd=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepe
22nd?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Jd(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=qd(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Xd=`-ms-`,Zd=`-moz-`,Qd=`-webkit-`,$d=`comm`,ef=`rule`,tf=`decl`,nf=`@import`,rf=`@keyframes`,af=`@layer`,of=Math.abs,sf=String.fromCharCode,cf=Object.assign;function lf(e,t){return mf(e,0)^45?(((t<<2^mf(e,0))<<2^mf(e,1))<<2^mf(e,2))<<2^mf(e,3):0}function uf(e){return e.trim()}function df(e,t){return(e=t.exec(e))?e[0]:e}function ff(e,t,n){return e.replace(t,n)}function pf(e,t){return e.indexOf(t)}function mf(e,t){return e.charCodeAt(t)|0}function hf(e,t,n){return e.slice(t,n)}function gf(e){return e.length}function _f(e){return e.length}function vf(e,t){return t.push(e),e}function yf(e,t){return e.map(t).join(``)}var bf=1,xf=1,Sf=0,Cf=0,wf=0,Tf=``;function Ef(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:bf,column:xf,length:o,return:``}}function Df(e,t){return cf(Ef(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Of(){return wf}function kf(){return wf=Cf>0?mf(Tf,--Cf):0,xf--,wf===10&&(xf=1,bf--),wf}function Af(){return wf=Cf<Sf?mf(Tf,Cf++):0,xf++,wf===10&&(xf=1,bf++),wf}function jf(){return mf(Tf,Cf)}function Mf(){return Cf}function Nf(e,t){return hf(Tf,e,t)}function Pf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ff(e){return bf=xf=1,Sf=gf(Tf=e),Cf=0,[]}function If(e){return Tf=``,e}function Lf(e){return uf(Nf(Cf-1,Bf(e===91?e+2:e===40?e+1:e)))}function Rf(e){for(;(wf=jf())&&wf<33;)Af();return Pf(e)>2||Pf(wf)>3?``:` `}function zf(e,t){for(;--t&&Af()&&!(wf<48||wf>102||wf>57&&wf<65||wf>70&&wf<97););return Nf(e,Mf()+(t<6&&jf()==32&&Af()==32))}function Bf(e){for(;Af();)switch(wf){case e:return Cf;case 34:case 39:e!==34&&e!==39&&Bf(wf);break;case 40:e===41&&Bf(e);break;case 92:Af();break}return Cf}function Vf(e,t){for(;Af()&&e+wf!==57&&(e+wf!==84||jf()!==47););return`/*`+Nf(t,Cf-1)+`*`+sf(e===47?e:Af())}function Hf(e){for(;!Pf(jf());)Af();return Nf(e,Cf)}function Uf(e){return If(Wf(``,null,null,null,[``],e=Ff(e),0,[0],e))}function Wf(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Af()){case 40:if(m!=108&&mf(C,d-1)==58){pf(C+=ff(Lf(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Lf(v);break;case 9:case 10:case 13:case 32:C+=Rf(m);break;case 92:C+=zf(Mf()-1,7);continue;case 47:switch(jf()){case 42:case 47:vf(Kf(Vf(Af(),Mf()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=gf(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=ff(C,/\f/g,``)),p>0&&gf(C)-d&&vf(p>32?qf(C+`;`,r,n,d-1):qf(ff(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(vf(S=Gf(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Wf(C,t,S,S,b,a,d,s,x);else switch(f===99&&mf(C,3)===110?100:f){case 100:case 108:case 109:case 115:Wf(e,S,S,r&&vf(Gf(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Wf(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+gf(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&kf()==125)continue}switch(C+=sf(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(gf(C)-1)*_,_=1;break;case 64:jf()===45&&(C+=Lf(Af())),f=jf(),u=d=gf(y=C+=Hf(Mf())),v++;break;case 45:m===45&&gf(C)==2&&(h=0)}}return a}function Gf(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=_f(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=hf(e,d+1,d=of(h=o[m])),y=e;_<p;++_)(y=uf(h>0?f[_]+` `+v:ff(v,/&\f/g,f[_])))&&(c[g++]=y);return Ef(e,t,n,i===0?ef:s,c,l,u)}function Kf(e,t,n){return Ef(e,t,n,$d,sf(Of()),hf(e,2,-2),0)}function qf(e,t,n,r){return Ef(e,t,n,tf,hf(e,0,r),hf(e,r+1,-1),r)}function Jf(e,t){for(var n=``,r=_f(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Yf(e,t,n,r){switch(e.type){case af:if(e.children.length)break;case nf:case tf:return e.return=e.return||e.value;case $d:return``;case rf:return e.return=e.value+`{`+Jf(e.children,r)+`}`;case ef:e.value=e.props.join(`,`)}return gf(n=Jf(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Xf(e){var t=_f(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Zf(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $f=function(e,t,n){for(var r=0,i=0;r=i,i=jf(),r===38&&i===12&&(t[n]=1),!Pf(i);)Af();return Nf(e,Cf)},ep=function(e,t){var n=-1,r=44;do switch(Pf(r)){case 0:r===38&&jf()===12&&(t[n]=1),e[n]+=$f(Cf-1,t,n);break;case 2:e[n]+=Lf(r);break;case 4:if(r===44){e[++n]=jf()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=sf(r)}while(r=Af());return e},tp=function(e,t){return If(ep(Ff(e),t))},np=new WeakMap,rp=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!np.get(n))&&!r){np.set(e,!0);for(var i=[],a=tp(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ip=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function ap(e,t){switch(lf(e,t)){case 5103:return Qd+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qd+e+e;
22case 5349:case 4246:case 4810:case 6968:case 2756:return Qd+e+Zd+e+Xd+e+e;case 6828:case 4268:return Qd+e+Xd+e+e;case 6165:return Qd+e+Xd+`flex-`+e+e;case 5187:return Qd+e+ff(e,/(\w+).+(:[^]+)/,Qd+`box-$1$2`+Xd+`flex-$1$2`)+e;case 5443:return Qd+e+Xd+`flex-item-`+ff(e,/flex-|-self/,``)+e;case 4675:return Qd+e+Xd+`flex-line-pack`+ff(e,/align-content|flex-|-self/,``)+e;case 5548:return Qd+e+Xd+ff(e,`shrink`,`negative`)+e;case 5292:return Qd+e+Xd+ff(e,`basis`,`preferred-size`)+e;case 6060:return Qd+`box-`+ff(e,`-grow`,``)+Qd+e+Xd+ff(e,`grow`,`positive`)+e;case 4554:return Qd+ff(e,/([^-])(transform)/g,`$1`+Qd+`$2`)+e;case 6187:return ff(ff(ff(e,/(zoom-|grab)/,Qd+`$1`),/(image-set)/,Qd+`$1`),e,``)+e;case 5495:case 3959:return ff(e,/(image-set\([^]*)/,Qd+"$1$`$1");case 4968:return ff(ff(e,/(.+:)(flex-)?(.*)/,Qd+`box-pack:$3`+Xd+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+Qd+e+e;case 4095:case 3583:case 4068:case 2532:return ff(e,/(.+)-inline(.+)/,Qd+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gf(e)-1-t>6)switch(mf(e,t+1)){case 109:if(mf(e,t+4)!==45)break;case 102:return ff(e,/(.+:)(.+)-([^]+)/,`$1`+Qd+`$2-$3$1`+Zd+(mf(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~pf(e,`stretch`)?ap(ff(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(mf(e,t+1)!==115)break;case 6444:switch(mf(e,gf(e)-3-(~pf(e,`!important`)&&10))){case 107:return ff(e,`:`,`:`+Qd)+e;case 101:return ff(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Qd+(mf(e,14)===45?`inline-`:``)+`box$3$1`+Qd+`$2$3$1`+Xd+`$2box$3`)+e}break;case 5936:switch(mf(e,t+11)){case 114:return Qd+e+Xd+ff(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Qd+e+Xd+ff(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Qd+e+Xd+ff(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Qd+e+Xd+e+e}return e}var op=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case tf:e.return=ap(e.value,e.length);break;case rf:return Jf([Df(e,{value:ff(e.value,`@`,`@`+Qd)})],r);case ef:if(e.length)return yf(e.props,function(t){switch(df(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Jf([Df(e,{props:[ff(t,/:(read-\w+)/,`:`+Zd+`$1`)]})],r);case`::placeholder`:return Jf([Df(e,{props:[ff(t,/:(plac\w+)/,`:`+Qd+`input-$1`)]}),Df(e,{props:[ff(t,/:(plac\w+)/,`:`+Zd+`$1`)]}),Df(e,{props:[ff(t,/:(plac\w+)/,Xd+`input-$1`)]})],r)}return``})}}],sp=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||op,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[rp,ip],l,u=[Yf,Zf(function(e){l.insert(e)})],d=Xf(c.concat(r,u)),f=function(e){return Jf(Uf(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Yd({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},cp=l((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.
22Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),lp=l(((e,t)=>{t.exports=cp()})),up=l(((e,t)=>{var n=lp(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function dp(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var fp=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},pp=function(e,t,n){fp(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function mp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var hp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gp=/[A-Z]|^ms/g,_p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vp=function(e){return e.charCodeAt(1)===45},yp=function(e){return e!=null&&typeof e!=`boolean`},bp=Qf(function(e){return vp(e)?e:e.replace(gp,`-$&`).toLowerCase()}),xp=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(_p,function(e,t,n){return Tp={name:t,styles:n,next:Tp},t})}return hp[e]!==1&&!vp(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Sp(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;
22if(i.anim===1)return Tp={name:i.name,styles:i.styles,next:Tp},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Tp={name:o.name,styles:o.styles,next:Tp},o=o.next;return a.styles+`;`}return Cp(e,t,n);case`function`:if(e!==void 0){var s=Tp,c=n(e);return Tp=s,Sp(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Cp(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Sp(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:yp(s)&&(r+=bp(a)+`:`+xp(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)yp(o[c])&&(r+=bp(a)+`:`+xp(a,o[c])+`;`);else{var l=Sp(e,t,o);switch(a){case`animation`:case`animationName`:r+=bp(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var wp=/label:\s*([^\s;{]+)\s*(;|$)/g,Tp;function Ep(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Tp=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Sp(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Sp(n,t,e[o]),r&&(i+=a[o]);wp.lastIndex=0;for(var s=``,c;(c=wp.exec(i))!==null;)s+=`-`+c[1];return{name:mp(i)+s,styles:i,next:Tp}}var Dp=function(e){return e()},Op=j.useInsertionEffect?j.useInsertionEffect:!1,kp=Op||Dp;Op||j.useLayoutEffect;var Ap=j.createContext(typeof HTMLElement<`u`?sp({key:`css`}):null);Ap.Provider;var jp=function(e){return(0,j.forwardRef)(function(t,n){return e(t,(0,j.useContext)(Ap),n)})},Mp=j.createContext({}),Np={}.hasOwnProperty,Pp=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Fp=function(e,t){var n={};for(var r in t)Np.call(t,r)&&(n[r]=t[r]);return n[Pp]=e,n},Ip=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fp(t,n,r),kp(function(){return pp(t,n,r)}),null},Lp=jp(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Pp],a=[r],o=``;typeof e.className==`string`?o=dp(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Ep(a,void 0,j.useContext(Mp));o+=t.key+`-`+s.name;var c={};for(var l in e)Np.call(e,l)&&l!==`css`&&l!==Pp&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),j.createElement(j.Fragment,null,j.createElement(Ip,{cache:t,serialized:s,isStringTag:typeof i==`string`}),j.createElement(i,c))});up();var Y=function(e,t){var n=arguments;if(t==null||!Np.call(t,`css`))return j.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Lp,i[1]=Fp(e,t);for(var a=2;a<r;a++)i[a]=n[a];return j.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Y||={});function Rp(){return Ep([...arguments])}function zp(){var e=Rp.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function Bp(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Vp=Math.min,Hp=Math.max,Up=Math.round,Wp=Math.floor,Gp=e=>({x:e,y:e});function Kp(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function qp(){return typeof window<`u`}function Jp(e){return Zp(e)?(e.nodeName||``).toLowerCase():`#document`}function Yp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xp(e){return((Zp(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Zp(e){return qp()?e instanceof Node||e instanceof Yp(e).Node:!1}function Qp(e){return qp()?e instanceof Element||e instanceof Yp(e).Element:!1}function $p(e){return qp()?e instanceof HTMLElement||e instanceof Yp(e).HTMLElement:!1}function em(e){return!qp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Yp(e).ShadowRoot}function tm(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=am(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}var nm;function rm(){return nm??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),nm}function im(e){return/^(html|body|#document)$/.test(Jp(e))}function am(e){return Yp(e).getComputedStyle(e)}function om(e){if(Jp(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||em(e)&&e.host||Xp(e);return em(t)?t.host:t}function sm(e){let t=om(e);return im(t)?(e.ownerDocument||e).body:$p(t)&&tm(t)?t:sm(t)}function cm(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=sm(e),i=r===e.ownerDocument?.body,a=Yp(r);if(i){let e=lm(a);
22return t.concat(a,a.visualViewport||[],tm(r)?r:[],e&&n?cm(e):[])}return t.concat(r,cm(r,[],n))}function lm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function um(e){let t=am(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=$p(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Up(n)!==a||Up(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function dm(e){return Qp(e)?e:e.contextElement}function fm(e){let t=dm(e);if(!$p(t))return Gp(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=um(t),o=(a?Up(n.width):n.width)/r,s=(a?Up(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var pm=Gp(0);function mm(e){let t=Yp(e);return!rm()||!t.visualViewport?pm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hm(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Yp(e)}function gm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=dm(e),o=Gp(1);t&&(r?Qp(r)&&(o=fm(r)):o=fm(e));let s=hm(a,n,r)?mm(a):Gp(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Yp(a),t=Qp(r)?Yp(r):r,n=e,i=lm(n);for(;i&&t!==n;){let e=fm(i),t=i.getBoundingClientRect(),r=am(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Yp(i),i=lm(n)}}return Kp({width:u,height:d,x:c,y:l})}function _m(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vm(e,t,n){let r=null,i,a=Xp(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Wp(d),h=Wp(a.clientWidth-(u+f)),g=Wp(a.clientHeight-(d+p)),_=Wp(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Hp(0,Vp(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!_m(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Yp(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ym(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=dm(e),u=i||a?[...l?cm(l):[],...t?cm(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?vm(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?gm(e):null;c&&g();function g(){let t=gm(e);h&&!_m(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var bm=j.useLayoutEffect,xm=se(he()),Sm=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],Cm=function(){};function wm(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function Tm(e,t){var n=[...arguments].slice(2),r=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push(`${wm(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var Em=function(e){return Gm(e)?e.filter(Boolean):yd(e)===`object`&&e!==null?[e]:[]},Dm=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,K({},Ad(e,Sm))},Om=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(n??{},a(t,e),o)}};function km(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Am(e){return km(e)?window.innerHeight:e.clientHeight}function jm(e){return km(e)?window.pageYOffset:e.scrollTop}function Mm(e,t){if(km(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Nm(e){var t=getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Pm(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Cm,i=jm(e),a=t-i,o=10,s=0;function c(){s+=o,Mm(e,Pm(s,i,a,n)),s<n?window.requestAnimationFrame(c):r(e)}c()}function Im(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Mm(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Mm(e,Math.max(t.offsetTop-i,0))}function Lm(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Rm(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function zm(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}
22var Bm=!1,Vm={get passive(){return Bm=!0}},Hm=typeof window<`u`?window:{};Hm.addEventListener&&Hm.removeEventListener&&(Hm.addEventListener(`p`,Cm,Vm),Hm.removeEventListener(`p`,Cm,!1));var Um=Bm;function Wm(e){return e!=null}function Gm(e){return Array.isArray(e)}function Km(e,t,n){return e?t:n}function qm(e){return e}function Jm(e){return e}var Ym=function(e){var t=[...arguments].slice(1);return Object.entries(e).filter(function(e){var n=Od(e,1)[0];return!t.includes(n)}).reduce(function(e,t){var n=Od(t,2),r=n[0];return e[r]=n[1],e},{})},Xm=[`children`,`innerProps`],Zm=[`children`,`innerProps`];function Qm(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=Nm(n),l={placement:`bottom`,maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,m=d.top,h=n.offsetParent.getBoundingClientRect().top,g=o?window.innerHeight:Am(c),_=jm(c),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),b=h-y,x=g-m,S=b+_,C=u-_-m,ee=f-g+_+v,te=_+m-y,ne=160;switch(i){case`auto`:case`bottom`:if(x>=p)return{placement:`bottom`,maxHeight:t};if(C>=p&&!o)return a&&Fm(c,ee,ne),{placement:`bottom`,maxHeight:t};if(!o&&C>=r||o&&x>=r)return a&&Fm(c,ee,ne),{placement:`bottom`,maxHeight:o?x-v:C-v};if(i===`auto`||o){var w=t,re=o?b:S;return re>=r&&(w=Math.min(re-v-s,t)),{placement:`top`,maxHeight:w}}if(i===`bottom`)return a&&Mm(c,ee),{placement:`bottom`,maxHeight:t};break;case`top`:if(b>=p)return{placement:`top`,maxHeight:t};if(S>=p&&!o)return a&&Fm(c,te,ne),{placement:`top`,maxHeight:t};if(!o&&S>=r||o&&b>=r){var ie=t;return(!o&&S>=r||o&&b>=r)&&(ie=o?b-y:S-y),a&&Fm(c,te,ne),{placement:`top`,maxHeight:ie}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function $m(e){return e?{bottom:`top`,top:`bottom`}[e]:`bottom`}var eh=function(e){return e===`auto`?`bottom`:e},th=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return K((n={label:`menu`},Sd(n,$m(r),`100%`),Sd(n,`position`,`absolute`),Sd(n,`width`,`100%`),Sd(n,`zIndex`,1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:`0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)`,marginBottom:o.menuGutter,marginTop:o.menuGutter})},nh=(0,j.createContext)(null),rh=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=((0,j.useContext)(nh)||{}).setPortalPlacement,l=(0,j.useRef)(null),u=Od((0,j.useState)(r),2),d=u[0],f=u[1],p=Od((0,j.useState)(null),2),m=p[0],h=p[1],g=s.spacing.controlHeight;return bm(function(){var e=l.current;if(e){var t=a===`fixed`,s=Qm({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),h(s.placement),c?.(s.placement)}},[r,i,a,o,n,c,g]),t({ref:l,placerProps:K(K({},e),{},{placement:m||eh(i),maxHeight:d})})},ih=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Y(`div`,J({},Om(e,`menu`,{menu:!0}),{ref:n},r),t)},ah=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return K({maxHeight:n,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},t?{}:{paddingBottom:r,paddingTop:r})},oh=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Y(`div`,J({},Om(e,`menuList`,{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},sh=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return K({textAlign:`center`},t?{}:{color:i.neutral40,padding:`${r*2}px ${r*3}px`})},ch=sh,lh=sh,uh=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=Ad(e,Xm);return Y(`div`,J({},Om(K(K({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},dh=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=Ad(e,Zm);return Y(`div`,J({},Om(K(K({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},fh=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},ph=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=(0,j.useRef)(null),c=(0,j.useRef)(null),l=Od((0,j.use
22State)(eh(a)),2),u=l[0],d=l[1],f=(0,j.useMemo)(function(){return{setPortalPlacement:d}},[]),p=Od((0,j.useState)(null),2),m=p[0],h=p[1],g=(0,j.useCallback)(function(){if(r){var e=Lm(r),t=o===`fixed`?0:window.pageYOffset,n=e[u]+t;(n!==m?.offset||e.left!==m?.rect.left||e.width!==m?.rect.width)&&h({offset:n,rect:e})}},[r,o,u,m?.offset,m?.rect.left,m?.rect.width]);bm(function(){g()},[g]);var _=(0,j.useCallback)(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=ym(r,s.current,g,{elementResize:`ResizeObserver`in window}))},[r,g]);bm(function(){_()},[_]);var v=(0,j.useCallback)(function(e){s.current=e,_()},[_]);if(!t&&o!==`fixed`||!m)return null;var y=Y(`div`,J({ref:v},Om(K(K({},e),{},{offset:m.offset,position:o,rect:m.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Y(nh.Provider,{value:f},t?(0,xm.createPortal)(y,t):y)},mh=function(e){var t=e.isDisabled;return{label:`container`,direction:e.isRtl?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},hh=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Y(`div`,J({},Om(e,`container`,{"--is-disabled":r,"--is-rtl":i}),n),t)},gh=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return K({alignItems:`center`,display:r&&i&&a?`flex`:`grid`,flex:1,flexWrap:`wrap`,WebkitOverflowScrolling:`touch`,position:`relative`,overflow:`hidden`},t?{}:{padding:`${n.baseUnit/2}px ${n.baseUnit*2}px`})},_h=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Y(`div`,J({},Om(e,`valueContainer`,{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},vh=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},yh=function(e){var t=e.children,n=e.innerProps;return Y(`div`,J({},Om(e,`indicatorsContainer`,{indicators:!0}),n),t)},bh,xh=[`size`],Sh=[`innerProps`,`isRtl`,`size`],Ch={name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`},wh=function(e){var t=e.size,n=Ad(e,xh);return Y(`svg`,J({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:Ch},n))},Th=function(e){return Y(wh,J({size:20},e),Y(`path`,{d:`M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z`}))},Eh=function(e){return Y(wh,J({size:20},e),Y(`path`,{d:`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`}))},Dh=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return K({label:`indicatorContainer`,display:`flex`,transition:`color 150ms`},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},Oh=Dh,kh=function(e){var t=e.children,n=e.innerProps;return Y(`div`,J({},Om(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Y(Eh,null))},Ah=Dh,jh=function(e){var t=e.children,n=e.innerProps;return Y(`div`,J({},Om(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Y(Th,null))},Mh=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return K({label:`indicatorSeparator`,alignSelf:`stretch`,width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},Nh=function(e){var t=e.innerProps;return Y(`span`,J({},t,Om(e,`indicatorSeparator`,{"indicator-separator":!0})))},Ph=zp(bh||=Bp([` 23 0%, 80%, 100% { opacity: 0; } 24 40% { opacity: 1; } 25`])),Fh=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return K({label:`loadingIndicator`,display:`flex`,transition:`color 150ms`,alignSelf:`center`,fontSize:r,lineHeight:1,marginRight:r,textAlign:`center`,verticalAlign:`middle`},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2})},Ih=function(e){var t=e.delay,n=e.offset;return Y(`span`,{css:Rp({animation:`${Ph} 1s ease-in-out ${t}ms infinite;`,backgroundColor:`currentColor`,borderRadius:`1em`,display:`inline-block`,marginLeft:n?`1em`:void 0,height:`1em`,verticalAlign:`to
25p`,width:`1em`},``,``)})},Lh=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,a=Ad(e,Sh);return Y(`div`,J({},Om(K(K({},a),{},{innerProps:t,isRtl:n,size:i}),`loadingIndicator`,{indicator:!0,"loading-indicator":!0}),t),Y(Ih,{delay:0,offset:n}),Y(Ih,{delay:160,offset:!0}),Y(Ih,{delay:320,offset:!n}))},Rh=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius,s=i.spacing;return K({label:`control`,alignItems:`center`,cursor:`default`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:s.controlHeight,outline:`0 !important`,position:`relative`,transition:`all 100ms`},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:`solid`,borderWidth:1,boxShadow:r?`0 0 0 1px ${a.primary}`:void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},zh=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return Y(`div`,J({ref:i},Om(e,`control`,{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},Bh=[`data`],Vh=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Hh=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return Y(`div`,J({},Om(e,`group`,{group:!0}),s),Y(a,J({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),Y(`div`,null,t))},Uh=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return K({label:`group`,cursor:`default`,display:`block`},t?{}:{color:r.neutral40,fontSize:`75%`,fontWeight:500,marginBottom:`0.25em`,paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:`uppercase`})},Wh=function(e){var t=Dm(e);t.data;var n=Ad(t,Bh);return Y(`div`,J({},Om(e,`groupHeading`,{"group-heading":!0}),n))},Gh=Hh,Kh=[`innerRef`,`isDisabled`,`isHidden`,`inputClassName`],qh=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return K(K({visibility:n?`hidden`:`visible`,transform:r?`translateZ(0)`:``},Yh),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},Jh={gridArea:`1 / 2`,font:`inherit`,minWidth:`2px`,border:0,margin:0,outline:0,padding:0},Yh={flex:`1 1 auto`,display:`inline-grid`,gridArea:`1 / 1 / 2 / 3`,gridTemplateColumns:`0 min-content`,"&:after":K({content:`attr(data-value) " "`,visibility:`hidden`,whiteSpace:`pre`},Jh)},Xh=function(e){return K({label:`input`,color:`inherit`,background:0,opacity:+!e,width:`100%`},Jh)},Zh=function(e){var t=e.cx,n=e.value,r=Dm(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=Ad(r,Kh);return Y(`div`,J({},Om(e,`input`,{"input-container":!0}),{"data-value":n||``}),Y(`input`,J({className:t({input:!0},s),ref:i,style:Xh(o),disabled:a},c)))},Qh=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return K({label:`multiValue`,display:`flex`,minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},$h=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return K({overflow:`hidden`,textOverflow:a||a===void 0?`ellipsis`:void 0,whiteSpace:`nowrap`},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:`85%`,padding:3,paddingLeft:6})},eg=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return K({alignItems:`center`,display:`flex`},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},tg=function(e){var t=e.children,n=e.innerProps;return Y(`div`,n,t)},ng=tg,rg=tg;function ig(e){var t=e.children,n=e.innerProps;return Y(`div`,J({role:`button`},n),t||Y(Th,{size:14}))}var ag=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return Y(c,{data:r,innerProps:K(K({},Om(e,`multiValue`,{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Y(l,{data:r,innerProps:K({},Om(e,`multiValueLabel`,{"multi-value__label":!0})),selectProps:s},t),Y(u,{data:r,innerProps:K(K({},Om(e,`multiValueRemove`,{"multi-value__remove":!0})),{},{"aria-label":`Remove ${t||`option`}`},o),selectProps:s}))},og=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return K({label:`option`,cursor:`default`,display:`block`,fontSize:`inherit`,width:`100%`,userSelect:`none`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`},t?{}:{backgroundColor:i?s.primary:r?s.primary25:`transparent`,color:n?s.neutral20:i?s.neutral0:`inherit`,padding:`${o.baseUnit*2}px ${o.baseUnit*3}px`,":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},sg=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return Y(`div`,J({},Om(e,`option`,{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)}
25,cg=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return K({label:`placeholder`,gridArea:`1 / 1 / 2 / 3`},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},lg=function(e){var t=e.children,n=e.innerProps;return Y(`div`,J({},Om(e,`placeholder`,{placeholder:!0}),n),t)},ug=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return K({label:`singleValue`,gridArea:`1 / 1 / 2 / 3`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},dg={ClearIndicator:jh,Control:zh,DropdownIndicator:kh,DownChevron:Eh,CrossIcon:Th,Group:Gh,GroupHeading:Wh,IndicatorsContainer:yh,IndicatorSeparator:Nh,Input:Zh,LoadingIndicator:Lh,Menu:ih,MenuList:oh,MenuPortal:ph,LoadingMessage:dh,NoOptionsMessage:uh,MultiValue:ag,MultiValueContainer:ng,MultiValueLabel:rg,MultiValueRemove:ig,Option:sg,Placeholder:lg,SelectContainer:hh,SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Y(`div`,J({},Om(e,`singleValue`,{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:_h},fg=function(e){return K(K({},dg),e.components)},pg=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function mg(e,t){return!!(e===t||pg(e)&&pg(t))}function hg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!mg(e[n],t[n]))return!1;return!0}function gg(e,t){t===void 0&&(t=hg);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}for(var _g={name:`7pg0cj-a11yText`,styles:`label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap`},vg=function(e){return Y(`span`,J({css:_g},e))},yg={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case`menu`:return`Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu${r?`, press Tab to select the option and exit the menu`:``}.`;case`input`:return a?`${e[`aria-label`]||`Select`} is focused ${t?`,type to refine list`:``}, press Down to open the menu, ${n?` press left to focus selected values`:``}`:``;case`value`:return`Use left and right to toggle between focused values, press Backspace to remove the currently focused value`;default:return``}},onChange:function(e){var t=e.action,n=e.label,r=n===void 0?``:n,i=e.labels,a=e.isDisabled;switch(t){case`deselect-option`:case`pop-value`:case`remove-value`:return`option ${r}, deselected.`;case`clear`:return`All selected options have been cleared.`;case`initial-input-focus`:return`option${i.length>1?`s`:``} ${i.join(`,`)}, selected.`;case`select-option`:return a?`option ${r} is disabled. Select another option.`:`option ${r}, selected.`;default:return``}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=i===void 0?``:i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?`${e.indexOf(t)+1} of ${e.length}`:``};return t===`value`&&o?`value ${a} focused, ${u(o,n)}.`:t===`menu`&&l?`${a}${`${c?` selected`:``}${s?` disabled`:``}`}, ${u(r,n)}.`:``},onFilter:function(e){var t=e.inputValue;return`${e.resultsMessage}${t?` for search term `+t:``}.`}},bg=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,o=e.selectValue,s=e.selectProps,c=e.id,l=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,m=s.isOptionDisabled,h=s.isSearchable,g=s.menuIsOpen,_=s.options,v=s.screenReaderStatus,y=s.tabSelectsValue,b=s.isLoading,x=s[`aria-label`],S=s[`aria-live`],C=(0,j.useMemo)(function(){return K(K({},yg),u||{})},[u]),ee=(0,j.useMemo)(function(){var e=``;if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,s=t.value,c=i||n||function(e){return Array.isArray(e)?null:e}(s),l=c?d(c):``,u=r||a||void 0,f=u?u.map(d):[],p=K({isDisabled:c&&m(c,o),label:l,labels:f},t);e=C.onChange(p)}return e},[t,C,m,o,d]),te=(0,j.useMemo)(function(){var e=``,t=n||r,a=!!(n&&o&&o.includes(n));
25if(t&&C.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,o),isSelected:a,options:i,context:t===n?`menu`:`value`,selectValue:o,isAppleDevice:l};e=C.onFocus(s)}return e},[n,r,d,m,C,i,o,l]),ne=(0,j.useMemo)(function(){var e=``;if(g&&_.length&&!b&&C.onFilter){var t=v({count:i.length});e=C.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,g,C,_,v,b]),w=t?.action===`initial-input-focus`,re=(0,j.useMemo)(function(){var e=``;if(C.guidance){var t=r?`value`:g?`menu`:`input`;e=C.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,o),isMulti:p,isSearchable:h,tabSelectsValue:y,isInitialFocus:w})}return e},[x,n,r,p,m,h,g,C,o,y,w]),ie=Y(j.Fragment,null,Y(`span`,{id:`aria-selection`},ee),Y(`span`,{id:`aria-focused`},te),Y(`span`,{id:`aria-results`},ne),Y(`span`,{id:`aria-guidance`},re));return Y(j.Fragment,null,Y(vg,{id:c},w&&ie),Y(vg,{"aria-live":S,"aria-atomic":`false`,"aria-relevant":`additions text`,role:`log`},a&&!w&&ie))},xg=[{base:`A`,letters:`Aâ¶ï¼¡ÃÃÃẦẤẪẨÃÄÄáº°áº®áº´áº²È¦Ç ÃÇẢÃ
ǺÇÈÈẠẬẶá¸ÄȺⱯ`},{base:`AA`,letters:`ê²`},{base:`AE`,letters:`ÃǼǢ`},{base:`AO`,letters:`ê´`},{base:`AU`,letters:`ê¶`},{base:`AV`,letters:`ê¸êº`},{base:`AY`,letters:`ê¼`},{base:`B`,letters:`Bâ·ï¼¢á¸á¸á¸ÉÆÆ`},{base:`C`,letters:`Câ¸ï¼£ÄÄÄÄÃá¸ÆÈ»ê¾`},{base:`D`,letters:`Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹`},{base:`DZ`,letters:`DZÇ`},{base:`Dz`,letters:`DzÇ
`},{base:`E`,letters:`Eâºï¼¥ÃÃÃá»áº¾á»á»áº¼Äá¸á¸ÄÄÃẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ`},{base:`F`,letters:`Fâ»ï¼¦á¸Æê»`},{base:`G`,letters:`Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾`},{base:`H`,letters:`Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê`},{base:`I`,letters:`Iâ¾ï¼©ÃÃÃĨĪĬİÃḮá»ÇÈÈá»Ä®á¸¬Æ`},{base:`J`,letters:`Jâ¿ï¼ªÄ´É`},{base:`K`,letters:`KâKḰǨḲĶḴÆâ±©êêêê¢`},{base:`L`,letters:`LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê`},{base:`LJ`,letters:`Ç`},{base:`Lj`,letters:`Ç`},{base:`M`,letters:`Mâï¼á¸¾á¹á¹â±®Æ`},{base:`N`,letters:`NâNǸÅÃá¹Åá¹Å
á¹á¹È Æêê¤`},{base:`NJ`,letters:`Ç`},{base:`Nj`,letters:`Ç`},{base:`O`,letters:`OâOÃÃÃá»á»á»á»Ãá¹È¬á¹Åá¹á¹ÅȮȰÃȪá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬ÃÇ¾ÆÆêê`},{base:`OI`,letters:`Æ¢`},{base:`OO`,letters:`ê`},{base:`OU`,letters:`È¢`},{base:`P`,letters:`Pâ
ï¼°á¹á¹Æ¤â±£êêê`},{base:`Q`,letters:`Qâï¼±êêÉ`},{base:`R`,letters:`Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê`},{base:`S`,letters:`Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê`},{base:`T`,letters:`TâTṪŤṬÈŢṰṮŦƬƮȾê`},{base:`TZ`,letters:`ê¨`},{base:`U`,letters:`Uâï¼µÃÃÃŨṸŪṺŬÃÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É`},{base:`V`,letters:`VâVṼṾƲêÉ
`},{base:`VY`,letters:`ê `},{base:`W`,letters:`Wâï¼·áºáºÅ´áºáºáºâ±²`},{base:`X`,letters:`XâXáºáº`},{base:`Y`,letters:`YâYỲÃŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ`},{base:`Z`,letters:`ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢`},{base:`a`,letters:`aâï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä
â±¥É`},{base:`aa`,letters:`ê³`},{base:`ae`,letters:`æǽǣ`},{base:`ao`,letters:`êµ`},{base:`au`,letters:`ê·`},{base:`av`,letters:`ê¹ê»`},{base:`ay`,letters:`ê½`},{base:`b`,letters:`bâï½á¸á¸
á¸ÆÆÉ`},{base:`c`,letters:`câï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â`},{base:`d`,letters:`dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº`},{base:`dz`,letters:`dzÇ`},{base:`e`,letters:`eâï½
èéêá»áº¿á»
á»áº½Äá¸á¸ÄÄëẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ`},{base:`f`,letters:`fâï½á¸Æê¼`},{base:`g`,letters:`gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿`},{base:`h`,letters:`hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥`},{base:`hv`,letters:`Æ`},{base:`i`,letters:`iâï½Ã¬ÃîĩīÄïḯá»ÇÈÈá»Ä¯á¸É¨Ä±`},{base:`j`,letters:`jâï½ÄµÇ°É`},{base:`k`,letters:`kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£`},{base:`l`,letters:`lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê`},{base:`lj`,letters:`Ç`},{base:`m`,letters:`mâï½á¸¿á¹á¹É±É¯`},{base:`n`,letters:`nâï½Ç¹Åñá¹
Åá¹Åá¹á¹ÆÉ²Åêê¥`},{base:`nj`,letters:`Ç`},{base:`o`,letters:`oâï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇøǿÉêêɵ`},{base:`oi`,letters:`Æ£`},{base:`ou`,letters:`È£`},{base:`oo`,letters:`ê`},{base:`p`,letters:`pâï½á¹á¹Æ¥áµ½êêê`},{base:`q`,letters:`qâ ï½Éêê`},{base:`r`,letters:`râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê`},{base:`s`,letters:`sâ¢ï½ÃÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº`},{base:`t`,letters:`tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê`},{base:`tz`,letters:`ê©`},{base:`u`,letters:`uâ¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ`},{base:`v`,letters:`vâ¥ï½á¹½á¹¿ÊêÊ`},{base:`vy`,letters:`ê¡`},{base:`w`,letters:`wâ¦ï½áºáºÅµáºáº
áºáºâ±³`},{base:`x`,letters:`xâ§ï½áºáº`},{base:`y`,letters:`yâ¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ`},{base:`z`,letters:`zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£`}],Sg=RegExp(`[`+xg.map(function(e){return e.letters}).join(``)+`]`,`g`),Cg={},wg=0;wg<xg.length;wg++)for(var Tg=xg[wg],Eg=0;Eg<Tg.letters.length;Eg++)Cg[Tg.letters[Eg]]=Tg.base;var Dg=function(e){return e.replace(Sg,function(e){return Cg[e]})},Og=gg(Dg),kg=function(e){return e.replace(/^\s+|\s+$/g,``)},Ag=function(e){return`${e.label} ${e.value}`},jg=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=K({ignoreCase:!0,ignoreAccents:!0,stringify:Ag,trim:!0,matchFrom:`any`},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,c=r.matchFrom,l=s?kg(n):n,u=s?kg(o(t)):o(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=Og(l),u=Dg(u)),c===`start`?u.substr(0,l.length)===l:u.indexOf(l)>-1}},Mg=[`innerRef`];function Ng(e){var t=e.innerRef,n=Ym(Ad(e,Mg),`onExited`,`in`,`enter`,`exit`,`appear`);return Y(`input`,J({ref:t},n,{css:Rp({label:`dummyInput`,background:0,border:0,caretColor:`transparent`,fontSize:`inherit`,gridArea:`1 / 1 / 2 / 3`,outline:0,padding:0,width:1,color:`transparent`,left:-100,opacity:0,position:`relative`,transform:`scale(.01)`},``,``)}))}var Pg=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Fg(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,
25i=e.onTopArrive,a=e.onTopLeave,o=(0,j.useRef)(!1),s=(0,j.useRef)(!1),c=(0,j.useRef)(0),l=(0,j.useRef)(null),u=(0,j.useCallback)(function(e,t){if(l.current!==null){var c=l.current,u=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=l.current,m=t>0,h=d-f-u,g=!1;h>t&&o.current&&(r&&r(e),o.current=!1),m&&s.current&&(a&&a(e),s.current=!1),m&&t>h?(n&&!o.current&&n(e),p.scrollTop=d,g=!0,o.current=!0):!m&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&Pg(e)}},[n,r,i,a]),d=(0,j.useCallback)(function(e){u(e,e.deltaY)},[u]),f=(0,j.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),p=(0,j.useCallback)(function(e){u(e,c.current-e.changedTouches[0].clientY)},[u]),m=(0,j.useCallback)(function(e){if(e){var t=Um?{passive:!1}:!1;e.addEventListener(`wheel`,d,t),e.addEventListener(`touchstart`,f,t),e.addEventListener(`touchmove`,p,t)}},[p,f,d]),h=(0,j.useCallback)(function(e){e&&(e.removeEventListener(`wheel`,d,!1),e.removeEventListener(`touchstart`,f,!1),e.removeEventListener(`touchmove`,p,!1))},[p,f,d]);return(0,j.useEffect)(function(){if(t){var e=l.current;return m(e),function(){h(e)}}},[t,m,h]),function(e){l.current=e}}var Ig=[`boxSizing`,`height`,`overflow`,`paddingRight`,`position`],Lg={boxSizing:`border-box`,overflow:`hidden`,position:`relative`,height:`100%`};function Rg(e){e.cancelable&&e.preventDefault()}function zg(e){e.stopPropagation()}function Bg(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vg(){return`ontouchstart`in window||navigator.maxTouchPoints}var Hg=!!(typeof window<`u`&&window.document&&window.document.createElement),Ug=0,Wg={capture:!1,passive:!1};function Gg(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0||n,i=(0,j.useRef)({}),a=(0,j.useRef)(null),o=(0,j.useCallback)(function(e){if(Hg){var t=document.body,n=t&&t.style;if(r&&Ig.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&Ug<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(Lg).forEach(function(e){var t=Lg[e];n&&(n[e]=t)}),n&&(n.paddingRight=`${s}px`)}t&&Vg()&&(t.addEventListener(`touchmove`,Rg,Wg),e&&(e.addEventListener(`touchstart`,Bg,Wg),e.addEventListener(`touchmove`,zg,Wg))),Ug+=1}},[r]),s=(0,j.useCallback)(function(e){if(Hg){var t=document.body,n=t&&t.style;Ug=Math.max(Ug-1,0),r&&Ug<1&&Ig.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&Vg()&&(t.removeEventListener(`touchmove`,Rg,Wg),e&&(e.removeEventListener(`touchstart`,Bg,Wg),e.removeEventListener(`touchmove`,zg,Wg)))}},[r]);return(0,j.useEffect)(function(){if(t){var e=a.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){a.current=e}}var Kg=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qg={name:`1kfdb0e`,styles:`position:fixed;left:0;bottom:0;right:0;top:0`};function Jg(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0||r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,l=Fg({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:c}),u=Gg({isEnabled:n});return Y(j.Fragment,null,n&&Y(`div`,{onClick:Kg,css:qg}),t(function(e){l(e),u(e)}))}var Yg={name:`1a0ro4n-requiredInput`,styles:`label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%`},Xg=function(e){var t=e.name,n=e.onFocus;return Y(`input`,{required:!0,name:t,tabIndex:-1,"aria-hidden":`true`,onFocus:n,css:Yg,value:``,onChange:function(){}})};function Zg(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function Qg(){return Zg(/^iPhone/i)}function $g(){return Zg(/^Mac/i)}function e_(){return Zg(/^iPad/i)||$g()&&navigator.maxTouchPoints>1}function t_(){return Qg()||e_()}function n_(){return $g()||t_()}var r_=function(e){return e.label},i_=function(e){return e.label},a_=function(e){return e.value},o_=function(e){return!!e.isDisabled},s_={clearIndicator:Ah,container:mh,control:Rh,dropdownIndicator:Oh,group:Vh,groupHeading:Uh,indicatorsContainer:vh,indicatorSeparator:Mh,input:qh,loadingIndicator:Fh,loadingMessage:lh,menu:th,menuList:ah,menuPortal:fh,multiValue:Qh,multiValueLabel:$h,multiValueRemove:eg,noOptionsMessage:ch,option:og,placeholder:cg,singleValue:ug,valueContainer:gh},c_={primary:`#2684FF`,primary75:`#4C9AFF`,primary50:`#B2D4FF`,primary25:`#DEEBFF`,danger:`#DE350B`,dangerLight:`#FFBDAD`,neutral0:`hsl(0, 0%, 100%)`,neutral5:`hsl(0, 0%, 95%)`,neutral10:`hsl(0, 0%, 90%)`,neutral20:`hsl(0, 0%, 80%)`,neutral30:`hsl(0, 0%, 70%)`,neutral40:`hsl(0, 0%, 60%)`,neutral50:`hsl(0, 0%, 50%)`,neutral60:`hsl(0, 0%, 40%)`,neutral70:`hsl(0, 0%, 30%)`,neutral80:`hsl(0, 0%, 20%)`,neutral90:`hsl(0, 0%, 10%)`},l_=4,u_=4,d_={borderRadius:l_,colors:c_,spacing:{baseUnit:u_,controlHeight:38,menuGutter:u_*2}},f_={"aria-live":`polite`,backspaceRemovesValue:!0,blurInputOnSelect:Rm(),captureMenuScroll:!Rm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:jg(),formatGroupLabel:r_,getOptionLabel:i_,getOptionValue:a_,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:o_,loadingMessage:function(){return`Loading...`},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:`bottom`,menuPosition:`absolute`,menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zm(),noOptionsMessage:function(){return`No options`},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:`Select...`,screenReaderStatus:function(e){var t=e.count;return`${t} result${t===1?``:`s`} available`},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function p_(e,t,n,r){return{type:`option`,data:t,isDisabled:w_(e,t,n),isSelected:T_(e,t,n),label:S_(e,t),value:C_(e,t),index:r}}function m_(e,t){return e.options.map(function(n,r){if(`options`in n){var i=n.options.map(function(n,r){return p_(e,n,t,r)}).filter(function(t){return v_(e,t)});return i.length>0?{type:`group`,data:n,options:i,index:r}:void 0}var a=p_(e,n,t,r);return v_(e,a)?a:void 0}).filter(Wm)}function h_(e){return e.reduce(function(e,t){return t.type===`group`?e.push.apply(e,Kd(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function g_(e,t){return e.reduce(function(e,n){return n.type===`group`?e.push.apply(e,Kd(n.options.map(function(e){return{data:e.data,id:`${t}-${n.index}-${e.index}`}}))):e.push({data:n.data,id:`${t}-${n.index}`}),e},[])}function __(e,t){return h_(m_(e,t))}function v_(e,t){var n=e.inputValue,r=n===void 0?``:n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!D_(e)||!a)&&E_(e,{label:o,value:s,data:i},r)}function y_(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}function b_(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var x_=function(e,t){return e.find(function(e){return e.data===t})?.id||null},S_=function(e,t){return e.getOptionLabel(t)}
25,C_=function(e,t){return e.getOptionValue(t)};function w_(e,t,n){return typeof e.isOptionDisabled==`function`&&e.isOptionDisabled(t,n)}function T_(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected==`function`)return e.isOptionSelected(t,n);var r=C_(e,t);return n.some(function(t){return C_(e,t)===r})}function E_(e,t,n){return!e.filterOption||e.filterOption(t,n)}var D_=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},O_=1,k_=function(e){Ld(n,e);var t=Hd(n);function n(e){var r;if(Nd(this,n),r=t.call(this,e),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:``,isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange;t.name=n.name,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;r.onInputChange(``,{action:`set-value`,prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!o}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,a=t.name,o=r.state.selectValue,s=i&&r.isOptionSelected(e,o),c=r.isOptionDisabled(e,o);if(s){var l=r.getOptionValue(e);r.setValue(Jm(o.filter(function(e){return r.getOptionValue(e)!==l})),`deselect-option`,e)}else if(!c)i?r.setValue(Jm([].concat(Kd(o),[e])),`select-option`,e):r.setValue(qm(e),`select-option`);else{r.ariaOnChange(qm(e),{action:`select-option`,option:e,name:a});return}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),a=n.filter(function(e){return r.getOptionValue(e)!==i}),o=Km(t,a,a[0]||null);r.onChange(o,{action:`remove-value`,removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Km(r.props.isMulti,[],null),{action:`clear`,removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),a=Km(e,i,i[0]||null);n&&r.onChange(a,{action:`pop-value`,removedValue:n})},r.getFocusedOptionId=function(e){return x_(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return g_(m_(r.props,r.state.selectValue),r.getElementId(`option`))},r.getValue=function(){return r.state.selectValue},r.cx=function(){var e=[...arguments];return Tm.apply(void 0,[r.props.classNamePrefix].concat(e))},r.getOptionLabel=function(e){return S_(r.props,e)},r.getOptionValue=function(e){return C_(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,i=s_[e](t,n);i.boxSizing=`border-box`;var a=r.props.styles[e];return a?a(i,t):i},r.getClassNames=function(e,t){var n;return(n=r.props.classNames)[e]?.call(n,t)},r.getElementId=function(e){return`${r.state.instancePrefix}-${e}`},r.getComponents=function(){return fg(r.props)},r.buildCategorizedOptions=function(){return m_(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return h_(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:K({value:e},t)})},r.onMenuMouseDown=function(e){e.button===0&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&r.onMenuClose():t&&r.openMenu(`first`):(t&&(r.openAfterFocus=!0),r.focusInput()),e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&e.type===`mousedown`&&e.button!==0)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,i=t.menuIsOpen;
25r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu(`first`),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&e.type===`mousedown`&&e.button!==0||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,e.type===`touchend`?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){typeof r.props.closeMenuOnScroll==`boolean`?e.target instanceof HTMLElement&&km(e.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll==`function`&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY),o=5;r.userIsDragging=i>o||a>o}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:`input-change`,prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu(`first`),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(e),r.onInputChange(``,{action:`input-blur`,prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(e){if(!(r.blockOptionHover||r.state.focusedOption===e)){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return D_(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,a=t.escapeClearsValue,o=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!c&&!(typeof u==`function`&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case`ArrowLeft`:if(!n||o)return;r.focusValue(`previous`);break;case`ArrowRight`:if(!n||o)return;r.focusValue(`next`);break;case`Delete`:case`Backspace`:if(o)return;if(h)r.removeValue(h);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case`Tab`:if(r.isComposing||e.shiftKey||!l||!d||!m||f&&r.isOptionSelected(m,g))return;r.selectOption(m);break;case`Enter`:if(e.keyCode===229)break;if(l){if(!m||r.isComposing)return;r.selectOption(m);break}return;case`Escape`:l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(``,{action:`menu-close`,prevInputValue:o}),r.onMenuClose()):s&&a&&r.clearValue();break;case` `:if(o)return;if(!l){r.openMenu(`first`);break}if(!m)return;r.selectOption(m);break;case`ArrowUp`:l?r.focusOption(`up`):r.openMenu(`last`);break;case`ArrowDown`:l?r.focusOption(`down`):r.openMenu(`first`);break;case`PageUp`:if(!l)return;r.focusOption(`pageup`);break;case`PageDown`:if(!l)return;r.focusOption(`pagedown`);break;case`Home`:if(!l)return;r.focusOption(`first`);break;case`End`:if(!l)return;r.focusOption(`last`);break;default:return}e.preventDefault()}},r.state.instancePrefix=`react-select-`+(r.props.instanceId||++O_),r.state.selectValue=Em(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),o=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=a[o],r.state.focusedOptionId=x_(i,a[o])}return r}return Fd(n,[{key:`componentDidMount`,value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener(`scroll`,this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Im(this.menuListRef,this.focusedOptionRef),n_()&&this.setState({isAppleDevice:!0})}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Im(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:`componentWillUnmount`,value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener(`scroll`,this.onScroll,!0)}},{key:`onMenuOpen`,value:function(){this.props.onMenuOpen()}},{key:`onMenuClose`,value:function(){this.onInputChange(``,{action:`menu-close`,prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:`onInputChange`,value:function(e,t){this.props.onInputChange(e,t)}},{key:`focusInput`,value:function(){this.inputRef&&this.inputRef.focus()}},{key:`blurInput`,value:function(){this.inputRef&&this.inputRef.blur()}},{key:`openMenu`,value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o=e===`first`?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:`focusValue`,value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case`previous`:o=i===0?0:i===-1?a:i-1;break;case`next`:i>-1&&i<a&&(o=i+1)}this.setState({inputIsHidden:o!==-1,focusedValue:n[o]})}}}},{key:`focusOption`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`first`,t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);
25n||(a=-1),e===`up`?i=a>0?a-1:r.length-1:e===`down`?i=(a+1)%r.length:e===`pageup`?(i=a-t,i<0&&(i=0)):e===`pagedown`?(i=a+t,i>r.length-1&&(i=r.length-1)):e===`last`&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:`getTheme`,value:function(){return this.props.theme?typeof this.props.theme==`function`?this.props.theme(d_):K(K({},d_),this.props.theme):d_}},{key:`getCommonProps`,value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:`hasValue`,value:function(){return this.state.selectValue.length>0}},{key:`hasOptions`,value:function(){return!!this.getFocusableOptions().length}},{key:`isClearable`,value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===void 0?n:t}},{key:`isOptionDisabled`,value:function(e,t){return w_(this.props,e,t)}},{key:`isOptionSelected`,value:function(e,t){return T_(this.props,e,t)}},{key:`filterOption`,value:function(e,t){return E_(this.props,e,t)}},{key:`formatOptionLabel`,value:function(e,t){if(typeof this.props.formatOptionLabel==`function`){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:`formatGroupLabel`,value:function(e){return this.props.formatGroupLabel(e)}},{key:`startListeningComposition`,value:function(){document&&document.addEventListener&&(document.addEventListener(`compositionstart`,this.onCompositionStart,!1),document.addEventListener(`compositionend`,this.onCompositionEnd,!1))}},{key:`stopListeningComposition`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`compositionstart`,this.onCompositionStart),document.removeEventListener(`compositionend`,this.onCompositionEnd))}},{key:`startListeningToTouch`,value:function(){document&&document.addEventListener&&(document.addEventListener(`touchstart`,this.onTouchStart,!1),document.addEventListener(`touchmove`,this.onTouchMove,!1),document.addEventListener(`touchend`,this.onTouchEnd,!1))}},{key:`stopListeningToTouch`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`touchstart`,this.onTouchStart),document.removeEventListener(`touchmove`,this.onTouchMove),document.removeEventListener(`touchend`,this.onTouchEnd))}},{key:`renderInput`,value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,o=e.form,s=e.menuIsOpen,c=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,f=u.ariaSelection,p=this.commonProps,m=r||this.getElementId(`input`),h=K(K(K({"aria-autocomplete":`list`,"aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props[`aria-errormessage`],"aria-invalid":this.props[`aria-invalid`],"aria-label":this.props[`aria-label`],"aria-labelledby":this.props[`aria-labelledby`],"aria-required":c,role:`combobox`,"aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||``},s&&{"aria-controls":this.getElementId(`listbox`)}),!n&&{"aria-readonly":!0}),this.hasValue()?f?.action===`initial-input-focus`&&{"aria-describedby":this.getElementId(`live-region`)}:{"aria-describedby":this.getElementId(`placeholder`)});return n?j.createElement(l,J({},p,{autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:`false`,tabIndex:a,form:o,type:`text`,value:i},h)):j.createElement(Ng,J({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Cm,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:`none`,form:o,value:``},h))}},{key:`renderPlaceholderOrValue`,value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,o=t.SingleValue,s=t.Placeholder,c=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,p=l.inputValue,m=l.placeholder,h=this.state,g=h.selectValue,_=h.focusedValue,v=h.isFocused;if(!this.hasValue()||!u)return p?null:j.createElement(s,J({},c,{key:`placeholder`,isDisabled:d,isFocused:v,innerProps:{id:this.getElementId(`placeholder`)}}),m);if(f)return g.map(function(t,o){var s=t===_,l=`${e.getOptionLabel(t)}
25-${e.getOptionValue(t)}`;return j.createElement(n,J({},c,{components:{Container:r,Label:i,Remove:a},isFocused:s,isDisabled:d,key:l,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,`value`))});if(p)return null;var y=g[0];return j.createElement(o,J({},c,{data:y,isDisabled:d}),this.formatOptionLabel(y,`value`))}},{key:`renderClearIndicator`,value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":`true`};return j.createElement(e,J({},t,{innerProps:o,isFocused:a}))}},{key:`renderLoadingIndicator`,value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return!e||!i?null:j.createElement(e,J({},t,{innerProps:{"aria-hidden":`true`},isDisabled:r,isFocused:a}))}},{key:`renderIndicatorSeparator`,value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return j.createElement(n,J({},r,{isDisabled:i,isFocused:a}))}},{key:`renderDropdownIndicator`,value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":`true`};return j.createElement(e,J({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:`renderMenu`,value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,o=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,m=f.inputValue,h=f.isLoading,g=f.loadingMessage,_=f.minMenuHeight,v=f.maxMenuHeight,y=f.menuIsOpen,b=f.menuPlacement,x=f.menuPosition,S=f.menuPortalTarget,C=f.menuShouldBlockScroll,ee=f.menuShouldScrollIntoView,te=f.noOptionsMessage,ne=f.onMenuScrollToTop,w=f.onMenuScrollToBottom;if(!y)return null;var re=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,o=t.isSelected,s=t.label,c=t.value,f=d===i,p=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},h=`${e.getElementId(`option`)}-${n}`,g={id:h,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:`option`,"aria-selected":e.state.isAppleDevice?void 0:o};return j.createElement(l,J({},u,{innerProps:g,data:i,isDisabled:a,isSelected:o,key:h,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,`menu`))},ie;if(this.hasOptions())ie=this.getCategorizedOptions().map(function(t){if(t.type===`group`){var i=t.data,a=t.options,o=t.index,s=`${e.getElementId(`group`)}-${o}`,c=`${s}-heading`;return j.createElement(n,J({},u,{key:s,data:i,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return re(e,`${o}-${e.index}`)}))}if(t.type===`option`)return re(t,`${t.index}`)});else if(h){var T=g({inputValue:m});if(T===null)return null;ie=j.createElement(s,u,T)}else{var ae=te({inputValue:m});if(ae===null)return null;ie=j.createElement(c,u,ae)}var oe={minMenuHeight:_,maxMenuHeight:v,menuPlacement:b,menuPosition:x,menuShouldScrollIntoView:ee},se=j.createElement(rh,J({},u,oe),function(t){var n=t.ref,r=t.placerProps,o=r.placement,s=r.maxHeight;return j.createElement(i,J({},u,oe,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:o}),j.createElement(Jg,{captureEnabled:p,onTopArrive:ne,onBottomArrive:w,lockEnabled:C},function(t){return j.createElement(a,J({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:`listbox`,"aria-multiselectable":u.isMulti,id:e.getElementId(`listbox`)},isLoading:h,maxHeight:s,focusedOption:d}),ie)}))});return S||x===`fixed`?j.createElement(o,J({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:b,menuPosition:x}),se):se}},{key:`renderFormField`,value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,o=t.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!r)return j.createElement(Xg,{name:a,onFocus:this.onValueInputFocus});if(!(!a||r)){if(i)if(n){var c=s.map(function(t){return e.getOptionValue(t)}).join(n);return j.createElement(`input`,{name:a,type:`hidden`,value:c})}else{var l=s.length>0?s.map(function(t,n){return j.createElement(`input`,{key:`i-${n}`,name:a,type:`hidden`,value:e.getOptionValue(t)})}):j.createElement(`input`,{name:a,type:`hidden`,value:``});return j.createElement(`div`,null,l)}var u=s[0]?this.getOptionValue(s[0]):``;return j.createElement(`input`,{name:a,type:`hidden`,value:u})}}},{key:`renderLiveRegion`,value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,o=t.selectValue,s=this.getFocusableOptions();return j.createElement(bg,J({},e,{id:this.getElementId(`live-region`),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:o,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:`render`,value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,o=a.className,s=a.id,c=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return j.createElement(r,J({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),j.createElement(t,J({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:l}),j.createElement(i,J({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),j.createElement(n,J({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=Em(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?__(e,m):[],_=d?g_(m_(e,m),`${c}-option`):[],v=r?y_(t,m):null,y=b_(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:x_(_,y),focusableOptionsWithIds:_,focu
25sedValue:v,clearFocusValueOnUpdate:!1}}var b=i!=null&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=a,S=o&&s;return o&&!S&&(x={value:Km(p,m,m[0]||null),options:m,action:`initial-input-focus`},S=!s),a?.action===`initial-input-focus`&&(x=null),K(K(K({},h),b),{},{prevProps:e,ariaSelection:x,prevWasFocused:S})}}]),n}(j.Component);k_.defaultProps=f_;var A_=(0,j.forwardRef)(function(e,t){var n=Md(e);return j.createElement(k_,J({ref:t},n))});function j_(){return(0,M.jsxs)(`div`,{className:`lds-ring`,children:[(0,M.jsx)(`div`,{}),(0,M.jsx)(`div`,{}),(0,M.jsx)(`div`,{}),(0,M.jsx)(`div`,{})]})}var M_=function(e){return typeof e==`object`&&!!e},N_=function(e){var t=e.value,n=t===void 0?``:t,r=e.numInputs,i=r===void 0?4:r,a=e.onChange,o=e.onPaste,s=e.renderInput,c=e.shouldAutoFocus,l=c!==void 0&&c,u=e.inputType,d=u===void 0?`text`:u,f=e.renderSeparator,p=e.placeholder,m=e.containerStyle,h=e.inputStyle,g=e.skipDefaultStyles,_=g!==void 0&&g,v=j.useState(0),y=v[0],b=v[1],x=j.useRef([]),S=function(){return n?n.toString().split(``):[]},C=d===`number`||d===`tel`;j.useEffect(function(){x.current=x.current.slice(0,i)},[i]),j.useEffect(function(){var e;l&&((e=x.current[0])==null||e.focus())},[l]);var ee=function(){if(typeof p==`string`){if(p.length===i)return p;p.length>0&&console.error(`Length of the placeholder should be equal to the number of inputs.`)}},te=function(e){return(C?!isNaN(Number(e)):typeof e==`string`)&&e.trim().length===1},ne=function(e){var t=e.target.value;te(t)&&(oe(t),ae(y+1))},w=function(e){var t=e.nativeEvent,n=e.target.value;te(n)||(n.length===i&&(n.split(``).some(function(e){return!te(e)})||(se(n.split(``)),ae(i-1))),t.data===null&&t.inputType===`deleteContentBackward`&&(e.preventDefault(),oe(``),ae(y-1)),e.target.value=``)},re=function(e){return function(t){b(t),e.target.select()}},ie=function(){b(y-1)},T=function(e){var t=S();[e.code,e.key].includes(`Backspace`)?(e.preventDefault(),oe(``),ae(y-1)):e.code===`Delete`?(e.preventDefault(),oe(``)):e.code===`ArrowLeft`?(e.preventDefault(),ae(y-1)):e.code===`ArrowRight`||e.key===t[y]?(e.preventDefault(),ae(y+1)):(e.code===`Spacebar`||e.code===`Space`||e.code===`ArrowUp`||e.code===`ArrowDown`)&&e.preventDefault()},ae=function(e){var t,n,r=Math.max(Math.min(i-1,e),0);x.current[r]&&((t=x.current[r])==null||t.focus(),(n=x.current[r])==null||n.select(),b(r))},oe=function(e){var t=S();t[y]=e[0],se(t)},se=function(e){a(e.join(``))},E=function(e){e.preventDefault();var t=S(),n=y,r=e.clipboardData.getData(`text/plain`).slice(0,i-y).split(``);if(!(C&&r.some(function(e){return isNaN(Number(e))}))){for(var a=0;a<i;++a)a>=y&&r.length>0&&(t[a]=r.shift()??``,n++);ae(n),se(t)}};return j.createElement(`div`,{style:Object.assign({display:`flex`,alignItems:`center`},M_(m)&&m),className:typeof m==`string`?m:void 0,onPaste:o},Array.from({length:i},function(e,t){return t}).map(function(e){return j.createElement(j.Fragment,{key:e},s({value:S()[e]??``,placeholder:ee()?.[e]??void 0,ref:function(t){return x.current[e]=t},onChange:ne,onFocus:function(t){return re(t)(e)},onBlur:ie,onKeyDown:T,onPaste:E,autoComplete:`off`,"aria-label":`Please enter OTP character ${e+1}`,style:Object.assign(_?{}:{width:`1em`,textAlign:`center`},M_(h)?h:{}),className:typeof h==`string`?h:void 0,type:d,inputMode:C?`numeric`:`text`,onInput:w},e),e<i-1&&(typeof f==`function`?f(e):f))}))},P_=JSON.parse(`[{"countryName":"United States","countryCode":"1","countryFlag":"United_States_01.svg"},{"countryName":"Canada","countryCode":"1","countryFlag":"Canada_01.svg"},{"countryName":"Mexico","countryCode":"52","countryFlag":"Mexico_01.svg","separator":true},{"countryName":"United Kingdom","countryCode":"44","countryFlag":"United_Kingdom_01.svg"},{"countryName":"Australia","countryCode":"61","countryFlag":"Australia_01.svg"},{"countryName":"New Zealand","countryCode":"64","countryFlag":"New_Zealand_01.svg"},{"countryName":"Singapore","countryCode":"65","countryFlag":"Singapore_01.svg"},{"countryName":"India","countryCode":"91","countryFlag":"India_01.svg"},{"countryName":"Hong Kong","countryCode":"852","countryFlag":"Hong_Kong_01.svg","separator":true},{"countryName":"Albania","countryCode":"355","countryFlag":"Albania_01.svg"},{"countryName":"Algeria","countryCode":"213","countryFlag":"Algeria_01.svg"},{"countryName":"American Samoa","countryCode":"1-684","countryFlag":"American_Samoa_01.svg"},{"countryName":"Angola","countryCode":"244","countryFlag":"Angola_01.svg"},{"countryName":"Antigua","countryCode":"1-268","countryFlag":"Antigua_01.svg"},{"countryName":"Argentina","countryCode":"54","countryFlag":"Argentinia_01.svg"},{"countryName":"Armenia","countryCode":"374","countryFlag":"Armenia_01.svg"},{"countryName":"Aruba","countryCode":"297","countryFlag":"Aruba_01.svg"},{"countryName":"Austria","countryCode":"43","countryFlag":"Austria_01.svg"},{"countryName":"Azerbaijan","countryCode":"994","countryFlag":"Azerbaijan_01.svg"},{"countryName":"Bahamas","countryCode":"1-242","countryFlag":"Bahamas_01.svg"},{"countryName":"Bahrain","countryCode":"973","countryFlag":"Bahrain_01.svg"},{"countryName":"Bangladesh","countryCode":"880","countryFlag":"Bangladesh_01.svg"},{"countryName":"Barbados","countryCode":"1-246","countryFlag":"Barbados_01.svg"},{"countryName":"Belize","countryCode":"501","countryFlag":"Belize_01.svg"},{"countryName":"Benin","countryCode":"229","countryFlag":"Benin_01.svg"},{"countryName":"Bermuda","countryCode":"1-441","countryFlag":"Bermuda_01.svg"},{"countryName":"Bhutan","countryCode":"975","countryFlag":"Bhutan_01.svg"},{"countryName":"Bosnia and Herzegovina","countryCode":"387","countryFlag":"Bosnia_and_Herzegovina_01.svg"},{"countryName":"Botswana","countryCode":"267","countryFlag":"Botswana_01.svg"},{"countryName":"Brazil","countryCode":"55","countryFlag":"Brazil_01.svg"},{"countryName":"Brunei","countryCode":"673","countryFlag":"Brunei_01.svg"},{"countryName":"Bulgaria","countryCode":"359","countryFlag":"Bulgaria_01.svg"},{"countryName":"Burundi","countryCode":"257","countryFlag":"Burundi_01.svg"},{"countryName":"Cambodia","countryCode":"855","countryFlag":"Cambodia_01.svg"},{"countryName":"Cameroon","countryCode":"237","countryFlag":"Cameroon_01.svg"},{"countryName":"Cape Verde","countryCode":"238","countryFlag":"Cape_Verde_01.svg"},{"countryName":"Cayman Islands","countryCode":"1-345","countryFlag":"Cayman_Islands_01.svg"},{"countryName":"Central African Republic","countryCode":"236","countryFlag":"Central_African_Republic_01.svg"},{"countryName":"Chad","countryCode":"235","countryFlag":"Chad_01.svg"},{"countryName":"Chile","countryCode":"56","countryFlag":"Chile_01.svg"},{"countryName":"China","countryCode":"86","countryFlag":"China_01.svg"},{"countryName":"Colombia","countryCode":"57","countryFlag":"Colombia_01.svg"},{"countryName":"Comoros","countryCode":"269","countryFlag":"Comoros_01.svg"},{"countryName":"Congo (Republic of the Congo)","countryCode":"242","countryFlag":"Democratic_Republic_of_the_Congo_01.svg"},{"countryName":"Cook Islands","countryCode":"682","countryFlag":"Cook_Islands_01.svg"},{"countryName":"Costa Rica","countryCode":"506","countryFlag":"Costa_Rica_01.svg"},{"countryName":"Croatia","countryCode":"385","countryFlag":"Croatia_01.svg"},{"countryName":"Cyprus","countryCode":"357","countryFlag":"Cyprus_01.svg"},{"countryName":"Czech Republic","countryCode":"420","countryFlag":"Czech_Republic_01.svg"},{"countryName":"Denmark","countryCode":"45","countryFlag":"Denmark_01.svg"},{"countryName":"Djibouti","countryCode":"253","countryFlag":"Djibouti_01.svg"},{"countryName":"Dominica","countryCode":"1-767","countryFlag":"Dominica_01.svg"},{"countryName":"Dominican Republic","countryCode":"1-809","countryFlag":"Dominican_Republic_01.svg"},{"countryName":"Dominican Republic","countryCode":"1-829","countryFlag":"Dominican_Republic_01.svg"},{"countryName":"Dominican Republic","countryCode":"1-849","countryFlag":"Dominican_Republic_01.svg"},{"countryName":"Egypt","countryCode":"20","countryFlag":"Egypt_01.svg"},{"countryName":"El Salvador","countryCode":"503","countryFlag":"El_Salvador_01.svg"},{"countryName":"Estonia","countryCode":"372","countryFlag":"Estonia_01.svg"},{"countryName":"Ethiopia","countryCode":"251","countryFlag":"Ethiopia_01.svg"},{"countryName":"Falkland Islands","countryCode":"500","countryFlag":"Falkland_Islands_01.svg"},{"countryName":"Fiji","countryCode":"358","countryFlag":"Fiji_01.svg"},{"countryName":"France","countryCode":"33","countryFlag":"France_01.svg"},{"countryName":"French Polynesia","countryCode":"689","countryFlag":"French_Polynesia_01.svg"},{"countryName":"Gabon","countryCode":"241","countryFlag":"Gabon_01.svg"},{"countryName":"Gambia","countryCode":"220","countryFlag":"Gambia_01.svg"},{"countryName":"Georgia","countryCode":"995","countryFlag":"Georgia_01.svg"},{"countryName":"Germany","countryCode":"49","countryFlag":"Germany_01.svg"},{"countryName":"Gibraltar","countryCode":"350","countryFlag":"Gibraltar_01.svg"},{"countryName":"Greece","countryCode":"30","countryFlag":"Greece_01.svg"},{"countryName":"Grenada","countryCode":"1-473","countryFlag":"Grenada_01.svg"},{"countryName":"Guatemala","countryCode":"502","countryFlag":"Guatemala_01.svg"},{"countryName":"Guernsey","countryCode":"44-1481","countryFlag":"Guernsey_01.svg"},{"countryName":"Guinea","countryCode":"224","countryFlag":"Guinea_01.svg"},{"countryName":"Guinea-Bissau","countryCode":"245","countryFlag":"Guinea-Bissau_01.svg"},{"countryName":"Guyana","countryCode":"592","countryFlag":"Guyana_01.svg"},{"countryName":"Haiti","countryCode":"509","countryFlag":"Haiti_01.svg"},{"countryName":"Honduras","countryCode":"504","countryFlag":"Honduras_01.svg"},{"countryName":"Hungary","countryCode":"36","countryFlag":"Hungary_01.svg"},{"countryName":"Iceland","countryCode":"354","countryFlag":"Iceland_01.svg"},{"countryName":"Indonesia","countryCode":"62","countryFlag":"Indonesia_01.svg"},{"countryName":"Iraq","countryCode":"964","countryFlag":"Iraq_01.svg"},{"countryName":"Ireland","countryCode":"353","countryFlag":"Ireland_01.svg"},{"countryName":"Kenya","countryCode":"254","countryFlag":"Kenya_01.svg"},{"countryName":"Isle of Man","countryCode":"44-1624","countryFlag":"Isle_of_Man_01.svg"},{"countryName":"Israel","countryCode":"972","countryFlag":"Israel_01.svg"},{"countryName":"Italy","countryCode":"39","countryFlag":"Italy_01.svg"},{"countryName":"Jamaica","countryCode":"1-876","countryFlag":"Jamaica_01.svg"},{"countryName":"Japan","countryCode":"81","countryFlag":"Japan_01.svg"},{"countryName":"Jersey","countryCode":"44-1534","countryFlag":"Jersey_01.svg"},{"countryName":"Jordan","countryCode":"962","countryFlag":"Jordan_01.svg"},{"countryName":"Kazakhstan","countryCode":"7","countryFlag":"Kazakhstan_01.svg"},{"countryName":"Kuwait","countryCode":"965","countryFlag":"Kuwait_01.svg"},{"countryName":"Kyrgyzstan","countryCode":"996","countryFlag":"Kyrgyzstan_01.svg"},{"countryName":"Laos (Lao People's Democratic Republic)","countryCode":"856","countryFlag":"Laos_01.svg"},{"countryName":"Latvia","countryCode":"371","countryFlag":"Latvia_01.svg"},{"countryName":"Lebanon","countryCode":"961","countryFlag":"Lebanon_01.svg"},{"countryName":"Lesotho","countryCode":"266","countryFlag":"Lesotho_01.svg"},{"countryName":"Liberia","countryCode":"231","countryFlag":"Liberia_01.svg"},{"countryName":"Libya","countryCode":"218","countryFlag":"Libya_01.svg"},{"countryName":"Liechtenstein","countryCode":"423","countryFlag":"Liechtenstein_01.svg"},{"countryName":"Lithuania","countryCode":"370","countryFlag":"Lithuania_01.svg"},{"countryName":"Luxembourg","countryCode":"352","countryFlag":"Luxembourg_01.svg"},{"countryName":"Macau (PRC)","countryCode":"853","countryFlag":"Macau_01.svg"},{"countryName":"Macedonia","countryCode":"389","countryFlag":"North_Macedonia_01.svg"},{"countryName":"Madagascar","countryCode":"261","countryFlag":"Madagascar_01.svg"},{"countryName":"Malawi","countryCode":"265","countryFlag":"Malawi_01.svg"},{"countryName":"Malaysia","countryCode":"60","countryFlag":"Malaysia_01.svg"},{"countryName":"Maldives","countryCode":"960","countryFlag":"Maldives_01.svg"},{"countryName":"Mali","countryCode":"223","countryFlag":"Mali_01.svg"},{"countryName":"Malta","countryCode":"356","countryFlag":"Malta_01.svg"},{"countryName":"Mauritania","countryCode":"222","countryFlag":"Mauritania_01.svg"},{"countryName":"Mauritius","countryCode":"230","countryFlag":"Mauritius_01.svg"},{"countryName":"Moldova","countryCode":"373","countryFlag":"Moldova_01.svg"},{"countryName":"Mongolia","countryCode":"976","countryFlag":"Mongolia_01.svg"},{"countryName":"Montenegro","countryCode":"382","countryFlag":"Montenegro_01.svg"},{"countryName":"Montserrat","countryCode":"1-664","countryFlag":"Montserrat_01.svg"},{"countryName":"Morocco","countryCode":"212","countryFlag":"Morocco_01.svg"},{"countryName":"Mozambique","countryCode":"258","countryFlag":"Mozambique_01.svg"},{"countryName":"Namibia","countryCode":"264","countryFlag":"Namibia_01.svg"},{"countryName":"Nepal","countryCode":"977","countryFlag":"Nepal_01.svg"},{"countryName":"Netherlands","countryCode":"31","countryFlag":"Netherlands_01.svg"},{"countryName":"Netherlands Antilles","countryCode":"255","countryFlag":"Netherlands_Antilles_01.svg"},{"countryName":"Nicaragua","countryCode":"505","countryFlag":"Nicaragua_01.svg"},{"countryName":"Niger","countryCode":"227","countryFlag":"Niger_01.svg"},{"countryName":"Nigeria","countryCode":"234","countryFlag":"Nigeria_01.svg"},{"countryName":"Norway","countryCode":"47","countryFlag":"Norway_01.svg"},{"countryName":"Oman","countryCode":"968","countryFlag":"Oman_01.svg"},{"countryName":"Pakistan","countryCode":"1","countryFlag":"Pakistan_01.svg"},{"countryName":"Palestine","countryCode":"970","countryFlag":"Palestine_01.svg"},{"countryName":"Panama","countryCode":"507","countryFlag":"Panama_01.svg"},{"countryName":"Papua New Guinea","countryCode":"675","countryFlag":"Papua_New_Guinea_01.svg"},{"countryName":"Paraguay","countryCode":"595","countryFlag":"Paraguay_01.svg"},{"countryName":"Peru","countryCode":"51","countryFlag":"Peru_01.svg"},{"countryName":"Philippines","countryCode":"63","countryFlag":"Philippines_01.svg"},{"countryName":"Poland","countryCode":"48","countryFlag":"Poland_01.svg"},{"countryName":"Portugal","countryCode":"351","countryFlag":"Portugal_01.svg"},{"countryName":"Puerto Rico","countryCode":"1-787","countryFlag":"Puerto_Rico_01.svg"},{"countryName":"Puerto Rico","countryCode":"1-939","countryFlag":"Puerto_Rico_01.svg"},{"countryName":"Qatar","countryCode":"974","countryFlag":"Qatar_01.svg"},{"countryName":"Romania","countryCode":"40","countryFlag":"Romania_01.svg"},{"countryName":"Rwanda","countryCode":"250","countryFlag":"Rwanda_01.svg"},{"countryName":"Samoa","countryCode":"685","countryFlag":"Samoa_01.svg"},{"countryName":"San Marino","countryCode":"378","countryFlag":"San_Marino_01.svg"},{"countryName":"Sao Tome and Principe","countryCode":"239","countryFlag":"Sao_Tome_and_Principe_01.svg"},{"countryName":"Saudi Arabia","countryCode":"966","countryFlag":"Saudi_Arabia_01.svg"},{"countryName":"Senegal","countryCode":"221","countryFlag":"Senegal_01.svg"},{"countryName":"Serbia","countryCode":"381","countryFlag":"Serbia_01.svg"},{"countryName":"Seychelles","countryCode":"248","countryFlag":"Seychelles_01.svg"},{"countryName":"Sierra Leone","countryCode":"232","countryFlag":"Sierra_Leone_01.svg"},{"countryName":"Singapore","countryCode":"65","countryFlag":"Singapore_01.svg"},{"countryName":"Slovakia","countryCode":"421","countryFlag":"Slovakia_01.svg"},{"countryName":"Slovenia","countryCode":"386","countryFlag":"Slovenia_01.svg"},{"countryName":"Solomon Islands","countryCode":"677","countryFlag":"Solomon_Islands_01.svg"},{"countryName":"Somalia","countryCode":"252","countryFlag":"Somalia_01.svg"},{"countryName":"South Africa","countryCode":"27","countryFlag":"South_Africa_01.svg"},{"countryName":"South Korea","countryCode":"82","countryFlag":"South_Korea_01.svg"},{"countryName":"Spain","countryCode":"34","countryFlag":"Spain_01.svg"},{"countryName":"Sri Lanka","countryCode":"94","countryFlag":"Sri_Lanka_01.svg"},{"countryName":"St. Lucia","countryCode":"1-758","countryFlag":"Saint_Lucia_01.svg"},{"countryName":"Saint Vincent and the Grenadines","countryCode":"1-784","countryFlag":"Saint_Vincent_and_the_Grenadines_01.svg"},{"countryName":"Suriname","countr
25yCode":"597","countryFlag":"Suriname_01.svg"},{"countryName":"Swaziland","countryCode":"268","countryFlag":"Swaziland_01.svg"},{"countryName":"Sweden","countryCode":"46","countryFlag":"Sweden_01.svg"},{"countryName":"Switzerland","countryCode":"41","countryFlag":"Switzerland_01.svg"},{"countryName":"Taiwan","countryCode":"886","countryFlag":"Taiwan_01.svg"},{"countryName":"Tajikistan","countryCode":"992","countryFlag":"Tajikistan_01.svg"},{"countryName":"Tanzania","countryCode":"255","countryFlag":"Tanzania_01.svg"},{"countryName":"Thailand","countryCode":"66","countryFlag":"Thailand_01.svg"},{"countryName":"Timor-Leste (East Timor)","countryCode":"670","countryFlag":"Timor-Leste_01.svg"},{"countryName":"Togo","countryCode":"228","countryFlag":"Togo_01.svg"},{"countryName":"Tonga","countryCode":"676","countryFlag":"Tonga_01.svg"},{"countryName":"Tunisia","countryCode":"216","countryFlag":"Tunisia_01.svg"},{"countryName":"Turkey","countryCode":"90","countryFlag":"Turkey_01.svg"},{"countryName":"Turkmenistan","countryCode":"993","countryFlag":"Turkmenistan_01.svg"},{"countryName":"Turks and Caicos Islands","countryCode":"1-649","countryFlag":"Turks_and_Caicos_Islands_01.svg"},{"countryName":"Uganda","countryCode":"256","countryFlag":"Uganda_01.svg"},{"countryName":"Ukraine","countryCode":"380","countryFlag":"Ukraine.svg"},{"countryName":"United Arab Emirates","countryCode":"971","countryFlag":"United_Arab_Emirates_01.svg"},{"countryName":"Uruguay","countryCode":"598","countryFlag":"Uruguay_01.svg"},{"countryName":"Uzbekistan","countryCode":"998","countryFlag":"Uzbekistan_01.svg"},{"countryName":"Vanuatu","countryCode":"678","countryFlag":"Vanuatu_01.svg"},{"countryName":"Vietnam","countryCode":"84","countryFlag":"Vietnam_01.svg"},{"countryName":"Yemen","countryCode":"967","countryFlag":"Yemen_01.svg"},{"countryName":"Zambia","countryCode":"260","countryFlag":"Zambia_01.svg"},{"countryName":"Zimbabwe","countryCode":"263","countryFlag":"Zimbabwe_01.svg"}]`);function F_(e){let t=(0,j.useRef)(null),[n,r]=(0,j.useState)(!1),[i,a]=(0,j.useState)(``),[o,s]=(0,j.useState)(!1),c=P_.filter(e=>i.toLowerCase()===``||e.countryName.toLowerCase().includes(i.toLowerCase()));(0,j.useEffect)(()=>(c=P_,document.addEventListener(`click`,l,!1),()=>{document.removeEventListener(`click`,l,!1)}),[]);let l=e=>{t.current&&!t.current.contains(e.target)&&(r(!1),a(``),s(!1))},u=()=>{r(!n),a(``),s(!1)},d=t=>{e.onSelected(t),r(!1)};return(0,M.jsx)(`div`,{className:`select_country_flag_outer_container ${e.className&&e.className}`,tabIndex:`0`,onKeyPress:e=>{let t;clearTimeout(t),o?(a(e.key),s(!1)):a(i+e.key),t=setTimeout(()=>{s(!0)},2500)},ref:t,children:(0,M.jsxs)(`div`,{className:`select_country_flag_main`,children:[(0,M.jsxs)(`div`,{className:`select_country_flag_item`,onClick:u,children:[(0,M.jsx)(`div`,{className:`select_country_flag_image`,children:(0,M.jsx)(hd,{src:`/images/countryFlags/${e.currentSelected.countryFlag}`,alt:e.currentSelected.countryName,containerClassName:`qf-flag-placeholder`})}),(0,M.jsx)(`div`,{className:`select_country_flag_code`,children:(0,M.jsxs)(`div`,{className:`country_code`,children:[`(+`,e.currentSelected.countryCode,`)`]})})]}),n&&(0,M.jsx)(`div`,{className:`select_country_flag_options`,children:c.length>0?c.map((e,t)=>(0,M.jsx)(`div`,{className:`select_country_flag_option_item`,onClick:()=>d(e),children:(0,M.jsxs)(`div`,{className:`select_flag_option-inner ${e.separator&&`select-flag-seprator`}`,children:[(0,M.jsx)(`div`,{className:`select_country_flag_option_image`,children:(0,M.jsx)(hd,{src:`/images/countryFlags/${e.countryFlag}`,alt:e.countryName,containerClassName:`qf-flag-placeholder`})}),(0,M.jsx)(`div`,{className:`select_country_flag_option_name`,children:(0,M.jsx)(`div`,{className:`country_name`,children:e.countryName})}),(0,M.jsx)(`div`,{className:`select_country_flag_option_code`,children:(0,M.jsxs)(`div`,{className:`country_code`,children:[`(+`,e.countryCode,`)`]})})]})},t)):(0,M.jsx)(`div`,{className:`select_country_flag_option_item`,children:`No Country Found`})})]})})}
25var I_=`https://cdn.qikfox.com/qikfox-browser-golden-builds/qikfoxBrowser-golden-build-config.json`,L_=[{windowsBuild:`https://cdn.qikfox.com/qikfox-browser-golden-builds/window-builds/qikfoxBrowser_150.2.57.2_win_r2.exe`,buildName:`qikfoxBrowser_150.2.57.2_windows`},{macM1Build:`https://cdn.qikfox.com/qikfox-browser-golden-builds/mac-builds/qikfoxBrowser_150.2.57.2_macMx.pkg`,buildName:`qikfoxBrowser_150.2.57.2_macMx`},{macIntelBuild:`https://cdn.qikfox.com/qikfox-browser-golden-builds/mac-builds/qikfoxBrowser_150.2.57.2_macIntel.pkg`,buildName:`qikfoxBrowser_150.2.57.2_macIntel`}],R_={windows:`windowsBuild`,macMx:`macM1Build`,macIntel:`macIntelBuild`};function z_(e){let t=/\.([a-z0-9]{2,4})(?:\?|#|$)/i.exec(e);return t?`.${t[1]}`:``}function B_(e,t){let n=R_[t],r=e.find(e=>typeof e?.[n]==`string`&&e[n]),i=r?.[n];if(!r||typeof i!=`string`)return null;let a=r.buildName||i.split(`/`).pop()||`qikfoxBrowser`,o=z_(i);return{url:i,fileName:a.endsWith(o)?a:`${a}${o}`}}async function V_(){try{let e=await fetch(I_,{cache:`no-store`});if(!e.ok)return L_;let t=await e.json();if(Array.isArray(t)&&t.length>0)return t}catch{}return L_}async function H_(e){return B_(await V_(),e)??B_(L_,e)}async function U_(e){let t=await H_(e);if(!t||typeof document>`u`)return null;let n=document.createElement(`a`);return n.href=t.url,n.download=t.fileName,n.rel=`noopener`,n.style.display=`none`,document.body.append(n),n.click(),n.remove(),t}var W_={FullName:``,Email:``,Number:``,osType:``},G_=[{value:`Windows 10`,label:`Windows 10`},{value:`Windows 11`,label:`Windows 11`}],K_=[{value:`Mac Intel`,label:`Mac Intel`},{value:`Mac Mx Series (ARM Chipset)`,label:`Mac Mx Series (ARM Chipset)`}],q_=[{value:`Linux Ubuntu`,label:`Linux Ubuntu`},{value:`Linux Debian`,label:`Linux Debian`},{value:`Linux PureOS`,label:`Linux PureOS`}],J_=`Choose the Windows Version`,Y_=`Choose the MacOS Version`,X_=`Choose the Linux Distro`,Z_=class extends j.Component{constructor(e){super(e)}state={formData:W_,errors:{title:``,DateScan:``,TimeScan:``},invalid:!1,SucessMsg:``,SucessMsgFadeout:!1,Showloader:!1,responseMessage:``,browserOSType:{placeholder:J_,options:G_},renderOTPFormComponent:!1,loaderState:!1,otpValue:NaN,sToken:``,otpSuccessText:``,isOTPVerified:!1,resendOTPText:``,phoneNumberValidError:``,platFormType:``,isLinuxFinalScreen:!1,countryCode:{countryName:`United States`,countryCode:`1`,countryFlag:`United_States_01.svg`}};componentDidMount(){}overlayBasedREnder(e){this.state.formData.osType.length===0&&(e===`windows`&&this.setState({browserOSType:{placeholder:J_,options:G_}}),e===`mac`&&this.setState({browserOSType:{placeholder:Y_,options:K_}}),e===`linux`&&this.setState({browserOSType:{placeholder:X_,options:q_}}))}componentDidUpdate(e){(e.overlay!==this.props.overlay||e.overlayOpenStatus!==this.props.overlayOpenStatus)&&(this.state.platFormType!==this.props.overlay&&this.setState({platFormType:this.props.overlay}),this.props.overlayOpenStatus===!1?(this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=setTimeout(()=>{this.resetFormState()},500)):this.overlayBasedREnder(this.props.overlay))}componentWillUnmount(){this.resetTimer&&clearTimeout(this.resetTimer)}handleSubmit=e=>{e.preventDefault()};Validate=()=>{this.setState({phoneNumberValidError:``});let{formData:e}=this.state,{FullName:t,Email:n,osType:r}=e,i={},a=!1,o=this.state.formData.Number.split(/\s/).join(``);return this.state.platFormType===`linux`?r===``?(i.selectInput=`Please select a OS version.`,this.selectInputRef.focus(),a=!0):t.length===0?(i.FullName=`Please enter the Full Name.`,this.NameInput.focus(),a=!0):o.length===0||/[A-Za-z]/.test(o)===!0||o.length>16&&o.charAt(0)===`+`&&o.charAt(1)===`1`&&o.charAt(2)===`(`&&o.charAt(6)===`)`&&o.charAt(7)===`-`&&o.charAt(11)===`-`||o.length>15&&o.includes(`+`)!==!0&&o.charAt(0)===`1`&&o.charAt(1)===`(`&&o.charAt(4)===`-`&&o.charAt(5)===`)`&&o.charAt(8)===`-`||o.length>14&&o.charAt(0)===`+`&&o.charAt(1)===`1`&&o.charAt(5)===`-`&&o.charAt(9)===`-`&&o.includes(`(`)!==!0&&o.includes(`)`)!==!0||o.length>14&&o.charAt(0)===`+`&&o.charAt(1)===`1`&&o.includes(`-`)!==!0&&o.charAt(2)===`(`&&o.charAt(6)===`)`?(i.NumberInput=`Please enter a Valid number.`,this.NumberInput.focus(),a=!0):o.charAt(1)===`(`&&o.charAt(5)===`)`&&o.includes(`-`)!==!0?a=!1:(o.length>12&&o.charAt(0)===`+`&&o.charAt(1)===`1`&&o.includes(`-`)!==!0&&o.includes(`(`)!==!0&&o.includes(`)`)!==!0||o.length>12&&o.includes(`+`)!==!0&&o.charAt(3)===`-`&&o.charAt(7)===`-`||o.length>12&&o.includes(`+`)!==!0&&o.includes(`-`)!==!0&&o.includes(`(`)===!0&&o.includes(`)`)===!0||o.length>11&&o.includes(`+`)!==!0&&o.includes(`-`)!==!0&&o.includes(`(`)!==!0&&o.includes(`)`)!==!0||o.length<10)&&(i.NumberInput=`Please enter a Valid number.`,this.NumberInput.focus(),a=!0):r===``&&(i.selectInput=`Please select a OS version.`,this.selectInputRef.focus(),a=!0),this.setState({errors:i,invalid:a}),a};ValidateEmail=e=>/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(e);handleChangeValue=e=>{let{formData:t}=this.state;this.setState({formData:{...t,[e.target.name]:e.target.value}})};onMenuOpen=()=>{setTimeout(()=>{let e=document.getElementsByClassName(`select_inner_antivirus__option--is-selected`)[0];e&&e.scrollIntoView({block:`nearest`,inline:`start`})},0)};handleVersionSelect=e=>{let{formData:t}=this.state;if(e){let n={...t};n.osType=e.value,this.setState({formData:n})}};flagSelected=e=>{this.setState({countryCode:e})};generateOTP=async e=>{if(e.preventDefault(),this.state.platFormType===`linux`)return this.Validate()?!0:(this.setState({loader
25State:!0}),this.sendZohoData(),!0);if(this.state.isOTPVerified===!1){if(e.preventDefault(),!this.Validate()){let e=`+`+this.state.countryCode.countryCode+this.state.formData.Number;this.setState({loaderState:!0}),fetch(`https://smsapi.qikfox.com/smsgateway/generate/otp`,{method:`POST`,headers:{accept:`*/*`,"Access-Control-Allow-Origin":`*`},body:JSON.stringify({phoneNumber:e})}).then(e=>{if(e.status==200)return e;e.status==406?this.setState({loaderState:!1,phoneNumberValidError:`Phone Number not found. Please enter a valid Phone Number.`}):this.setState({renderOTPFormComponent:!1,loaderState:!1,phoneNumberValidError:`Please try again!`})}).then(e=>{if(e){let t=e.headers.get(`s-tok`);this.props.animateContainer(!0),this.setState({renderOTPFormComponent:!0,loaderState:!1,sToken:t,isOTPVerified:!0,phoneNumberValidError:``})}else this.setState({renderOTPFormComponent:!1,loaderState:!1,phoneNumberValidError:`Phone Number not found. Please enter a valid Phone Number.`})}).catch(e=>{this.setState({renderOTPFormComponent:!1,loaderState:!1,phoneNumberValidError:`Please try again!`})})}}else e.preventDefault(),await this.downloadBrowser(),this.props.overLayStatus(!1),setTimeout(()=>{this.resetFormState()},500)};handleOTP=e=>{this.setState({...this.state,otpValue:e})};verifyOTP=e=>{if(e.preventDefault(),!(this.state.otpValue.length<6||this.state.otpValue.length===void 0)){this.props.animateContainer(!1),this.setState({loaderState:!0,otpSuccessText:``,resendOTPText:``});let e={activationCode:this.state.otpValue};fetch(`https://smsapi.qikfox.com/smsgateway/verify/otp`,{method:`POST`,headers:{accept:`*/*`,"Access-Control-Allow-Origin":`*`,"s-tok":this.state.sToken},body:JSON.stringify(e)}).then(e=>{e.status===200?this.sendZohoData():this.setState({loaderState:!1,otpSuccessText:`Invalid OTP`})})}};resetFormState=()=>{this.setState({formData:W_,errors:{title:``,DateScan:``,TimeScan:``},invalid:!1,isOTPVerified:!1,SucessMsg:``,SucessMsgFadeout:!1,Showloader:!1,responseMessage:``,browserOSType:{placeholder:``,options:{}},renderOTPFormComponent:!1,loaderState:!1,otpValue:NaN,sToken:``,otpSuccessText:``})};resendOTP=()=>{this.setState({otpSuccessText:``});let e={phoneNumber:`+`+this.state.countryCode.countryCode+this.state.formData.Number};fetch(`https://smsapi.qikfox.com/smsgateway/generate/otp`,{method:`POST`,headers:{accept:`*/*`,"Access-Control-Allow-Origin":`*`},body:JSON.stringify(e)}).then(e=>{if(e.status===200)return e}).then(e=>{let t=e.headers.get(`s-tok`);t!==void 0&&this.setState({sToken:t,resendOTPText:`OTP Sent!`,otpValue:NaN})}).catch(e=>{})};otpComponent=()=>(0,M.jsxs)(`div`,{className:`otp_screen_main_container`,children:[(0,M.jsx)(`div`,{className:`otp_screen_main_heading`,children:`Confirm Pin`}),(0,M.jsx)(`div`,{className:`otp_screen_main_content`,children:(0,M.jsxs)(`form`,{className:`browser_input_form_inner`,onSubmit:e=>this.verifyOTP(e),children:[(0,M.jsx)(N_,{value:this.state.otpValue,onChange:this.handleOTP,numInputs:6,separator:!1,isInputNum:!0,isDisabled:this.state.loaderState,inputStyle:`browser_otp_input_field`,containerStyle:`browser_otp_input_container`}),this.state.otpSuccessText===``?``:(0,M.jsx)(`div`,{className:`otp_success_text`,children:this.state.otpSuccessText}),this.state.resendOTPText===``?``:(0,M.jsx)(`div`,{className:`resend_success_text`,children:this.state.resendOTPText}),(0,M.jsx)(`div`,{className:`modal_action_row`,children:(0,M.jsx)(`button`,{className:`done-button`,disabled:this.state.loaderState,onClick:e=>this.verifyOTP(e),children:this.state.loaderState===!0?(0,M.jsx)(j_,{}):`Verify`})}),(0,M.jsx)(`div`,{className:`resend_code_text`,onClick:()=>this.resendOTP(),children:`Resend Code`})]})})]});downloadMainController=async e=>{if(e.preventDefault(),this.Validate())return!0;await this.downloadBrowser(),this.props.overLayStatus(!1),setTimeout(()=>{this.resetFormState()},500)};downloadBrowser=async()=>{let e=this.state.formData.osType,t=null,n=``;if(this.props.overlay===`windows`?(t=`windows`,n=`Windows`):this.props.overlay===`mac`&&(e===`Mac Intel`?(t=`macIntel`,n=`Mac Intel`):(t=`macMx`,n=e||`Mac Mx Series (ARM Chipset)`)),!t)return;let r=await U_(t);r&&window.dataLayer&&typeof window.dataLayer.push==`function`&&window.dataLayer.push({event:`file_download`,fileName:n,buildName:r.fileName})};sendZohoData=()=>{let e={name:this.state.formData.FullName,phone:`+1`+this.state.formData.Number.replace(/-/g,``),antivirus_used:`none`,is_verified:this.state.platFormType===`linux`?`false`:`true`,operating_system:this.state.formData.osType,lead_type:this.state.platFormType===`linux`?`linux waitlist`:`browser download`};fetch(`https://crmapi.qikfox.com/add-lead`,{method:`POST`,headers:{accept:`*/*`,"Access-Control-Allow-Origin":`*`,"Content-Type":`application/json`},body:JSON.stringify(e)}).then(e=>{this.state.platFormType===`linux`?(this.props.animateContainer(!0),this.setState({loader
25State:!1}),this.props.renderLinuxFinalScreen(!0)):(e.status,this.props.animateContainer(!0),this.setState({loaderState:!1,renderOTPFormComponent:!1}))}).then(e=>{}).catch(e=>{this.state.platFormType===`linux`?(this.props.animateContainer(!0),this.setState({loaderState:!1}),this.props.renderLinuxFinalScreen(!0)):(this.props.animateContainer(!0),this.setState({loaderState:!1,renderOTPFormComponent:!1}))})};render(){return(0,M.jsx)(M.Fragment,{children:(0,M.jsx)(`div`,{className:this.state.platFormType===`linux`?`modalb-form`:`modalb-form modal_form_height`,children:(0,M.jsxs)(`form`,{onSubmit:e=>this.downloadMainController(e),children:[this.state.errors.FullName&&(0,M.jsx)(`div`,{className:`errMsg`,children:this.state.errors.FullName}),this.state.errors.Email&&(0,M.jsx)(`div`,{className:`errMsg`,children:this.state.errors.Email}),this.state.errors.NumberInput&&(0,M.jsx)(`div`,{className:`errMsg`,children:this.state.errors.NumberInput}),this.state.errors.selectInput&&(0,M.jsx)(`div`,{className:`errMsg`,children:this.state.errors.selectInput}),this.state.phoneNumberValidError===``?``:(0,M.jsx)(`div`,{className:`errMsg`,children:this.state.phoneNumberValidError}),this.state.renderOTPFormComponent===!1?(0,M.jsxs)(j.Fragment,{children:[this.state.browserOSType.placeholder&&(0,M.jsx)(A_,{className:`select_container_antivirus`,classNamePrefix:`select_inner_antivirus`,options:this.state.browserOSType.options,placeholder:this.state.browserOSType.placeholder,value:this.state.browserOSType.options.filter(e=>e.label===this.state.formData.osType),isSearchable:!1,onChange:this.handleVersionSelect,onMenuOpen:this.onMenuOpen,isDisabled:this.state.loaderState===!0||this.state.isOTPVerified===!0,ref:e=>{this.selectInputRef=e}}),this.state.platFormType===`linux`?(0,M.jsxs)(`div`,{className:`modal-input`,children:[(0,M.jsx)(`input`,{type:`text`,disabled:this.state.loaderState===!0||this.state.isOTPVerified===!0,className:`modal-fname`,placeholder:`Full Name`,ref:e=>{this.NameInput=e},name:`FullName`,value:this.state.formData.FullName,onChange:this.handleChangeValue}),(0,M.jsxs)(`div`,{className:`phone_number_input_container`,children:[(0,M.jsx)(F_,{currentSelected:this.state.countryCode,onSelected:this.flagSelected}),(0,M.jsx)(`div`,{className:`separator`}),(0,M.jsx)(`input`,{style:{borderBottom:`1px solid transparent`},type:`text`,disabled:this.state.loaderState===!0||this.state.isOTPVerified===!0,maxLength:`10`,className:`modal-number`,placeholder:`Phone Number `,ref:e=>{this.NumberInput=e},name:`Number`,value:this.state.formData.Number,onChange:this.handleChangeValue})]})]}):``]}):(0,M.jsx)(j.Fragment,{children:this.otpComponent()}),this.state.renderOTPFormComponent===!0?``:(0,M.jsx)(`div`,{className:`modal_action_row`,children:this.state.platFormType===`linux`?(0,M.jsx)(`button`,{className:`done-button`,disabled:this.state.loaderState,onClick:e=>this.generateOTP(e),children:this.state.loaderState===!0?(0,M.jsx)(j_,{}):`Join Waitlist`}):(0,M.jsx)(`button`,{className:`done-button`,disabled:this.state.loaderState,onClick:e=>this.downloadMainController(e),children:this.state.loaderState===!0?(0,M.jsx)(j_,{}):`Download`})})]})})})}},Q_=j.createContext(null),$_=e=>e===`mac`?`macOS`:e===`windows`?`Windows`:`Linux`,ev=e=>e===`mac`?`/images/pages/mac-red.svg`:e===`windows`?`/images/pages/windows-red.svg`:`/images/pages/linux-red.svg`,tv=()=>{let{overlay:e,handleOverlayValue:t}=(0,j.useContext)(Q_),[n,r]=(0,j.useState)(!1),[i,a]=(0,j.useState)(!1),o=()=>{t(e.modalType,!1),setTimeout(()=>a(!1),500)},s=n=>{t(e.modalType,n)},c=e.modalType===`linux`;return(0,M.jsx)(`div`,{className:`modal_antivirus_help_landing ${e.status?`enter-done`:`exit`}`,role:`dialog`,"aria-modal":`true`,"aria-label":`Download qikfox Safe Browser for ${$_(e.modalType)}`,onClick:e=>{e.target===e.currentTarget&&o()},children:(0,M.jsxs)(`div`,{className:`modal_inner_main_content_browser_type browser_download_overlay_container`,children:[(0,M.jsx)(`div`,{className:`ClosedOverlay`,children:(0,M.jsx)(`div`,{className:`close-border`,children:(0,M.jsx)(`button`,{type:`button`,className:`modal_close_button`,"aria-label":`Close`,onClick:o,children:(0,M.jsx)(`svg`,{viewB
25ox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"aria-hidden":`true`,children:(0,M.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,d:`M6 18L18 6M6 6l12 12`})})})})}),(0,M.jsx)(`div`,{className:i?`modal-browser linux_final_screen_modal_content`:`modal-browser`,children:(0,M.jsx)(`div`,{className:n?`modal-content animateModal fadeIn fiveModal`:`modal-content`,children:i?(0,M.jsxs)(`div`,{className:`linux_final_screen_main_container`,children:[(0,M.jsxs)(`div`,{className:`linux_final_screen_upper_section`,children:[(0,M.jsx)(`div`,{className:`linux_final_screen_main_heading`,children:`Thank You!`}),(0,M.jsx)(`div`,{className:`linux_final_screen_sub_text`,children:`You have been added to the waitlist.`})]}),(0,M.jsx)(`div`,{className:`linux_final_screen_image_container`,children:(0,M.jsx)(`div`,{className:`linux_final_screen_image`,children:(0,M.jsx)(hd,{src:`/images/thanks_screen.svg`,alt:`Confirmation`,containerClassName:`qf-modal-image-placeholder`})})}),(0,M.jsx)(`div`,{className:`linux_final_screen_button_container`,children:(0,M.jsx)(`a`,{className:`linux_final_screen_button`,children:(0,M.jsx)(`button`,{type:`button`,children:`Call Now : 1-877-587-0506`})})})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`modal-left-content`,children:(0,M.jsx)(`div`,{className:`browser-version-img`,children:(0,M.jsx)(hd,{src:ev(e.modalType),alt:$_(e.modalType),containerClassName:`qf-modal-platform-placeholder`})})}),(0,M.jsxs)(`div`,{className:`modal-right-content`,children:[(0,M.jsxs)(`div`,{className:`modalb-title`,children:[`Download for `,$_(e.modalType)]}),(0,M.jsx)(`div`,{className:`modalb-desc`,children:c?`qikfox Safe Browser for Linux is coming soon. Join the waitlist and we will let you know the moment your distro is ready.`:`Advanced safety, security and privacy built in â protection from scams, malware and malicious trackers as you browse.`}),(0,M.jsx)(Z_,{closedModal:o,overlay:e.modalType,overLayStatus:s,overlayOpenStatus:e.status,animateContainer:r,animateState:n,renderLinuxFinalScreen:a}),(0,M.jsxs)(`div`,{className:`modal_build_meta`,children:[(0,M.jsx)(`span`,{className:`modal_build_meta_label`,children:`Current stable build`}),(0,M.jsx)(`span`,{className:`modal_build_meta_value`,children:c?`Invite-only early access`:`Signed installer ⢠invite-only release`})]})]})]})})})]})})},nv={ios:`https://apps.apple.com/us/app/qikfox/id6444577746`,android:`https://play.google.com/store/search?q=qikfox&c=apps`},rv=(0,j.createContext)(null);function iv(){if(typeof navigator>`u`)return`windows`;let e=`${navigator.userAgentData?.platform??``} ${navigator.userAgent}`.toLowerCase(),t=/macintosh/.test(e)&&(navigator.maxTouchPoints??0)>1;return/iphone|ipad|ipod/.test(e)||t?`ios`:/android/.test(e)?`android`:/windows|win32|win64/.test(e)?`windows`:/mac/.test(e)?`mac`:/linux|cros|x11/.test(e)?`linux`:`windows`}function av(){let e=(0,j.useContext)(rv);return(0,j.useMemo)(()=>e??{openDownload:()=>{typeof window<`u`&&window.location.assign(`/download`)}},[e])}function ov({children:e}){let[t,n]=(0,j.useState)({modalType:`windows`,status:!1}),r=(0,j.useCallback)((e,t)=>{n({modalType:e,status:t})},[]),i=(0,j.useCallback)(e=>{if(!e){let e=iv();if(e===`ios`||e===`android`){typeof window<`u`&&(window.location.href=nv[e]);return}r(e,!0);return}r(e,!0)},[r]),a=(0,j.useMemo)(()=>({overlay:t,handleOverlayValue:r}),[t,r]),o=(0,j.useMemo)(()=>({openDownload:i}),[i]);return(0,M.jsx)(rv.Provider,{value:o,children:(0,M.jsxs)(Q_.Provider,{value:a,children:[e,(0,M.jsx)(w,{fallback:null,children:(0,M.jsx)(`div`,{className:`qf-browser-view`,children:(0,M.jsx)(tv,{})})})]})})}var sv=nv;function cv({product:e,source:t,children:n,variant:r=`primary`,size:i=`md`,className:a}){let o=_d[e];return(0,M.jsxs)(`button`,{type:`button`,className:k(ad,od[i],sd[r],a),onClick:()=>{$u(`download_click`,{source:t,platform:`Windows`,product:o.name}),vd(e)},children:[(0,M.jsx)(zu,{className:`h-4 w-4`,"aria-hidden":`true`}),n??`Download ${o.name} for Windows`]})}var lv=[{key:`windows`,label:`Windows`,note:`Windows 10 and Windows 11`,detailsTo:`/download/windows`,icon:Hu},{key:`mac`,label:`macOS`,note:`Apple silicon and Intel`,detailsTo:`/download/mac`,icon:Bu},{key:`linux`,label:`Linux`,note:`Debian, Ubuntu and PureOS`,detailsTo:`/download/linux`,icon:Ku},{key:`android`,label:`Android`,note:`Phones and tablets`,detailsTo:`/download/android`,icon:Wu},{key:`ios`,label:`iOS`,note:`iPhone and iPad`,detailsTo:`/download/ios`,icon:Fu}];function uv({platform:e,source:t,children:n=`Download`,variant:r=`primary`,size:i=`md`,className:a}){let{openDownload:o}=av();return(0,M.jsx)(cd,{variant:r,size:i,className:a??``,onClick:()=>{$u(`download_click`,{source:t,platform:e??`auto`}),o(e)},children:n})}function dv({spec:e,source:t,className:n,variant:r=`primary`,size:i=`md`,label:a}){let{openDownload:o}=av(),s=k(ad,od[i],sd[r],n);return e.key===`android`||e.key===`ios`?(0,M.jsx)(`a`,{href:sv[e.key],target:`_blank`,rel:`noreferrer`,className:s,onClick:()=>$u(`download_click`,{source:t,platform:e.label}),children:a||(e.key===`ios`?`App Store`:`Play Store`)}):(0,M.jsxs)(`button`,{type:`button`,className:s,onClick:()=>{$u(`download_click`,{source:t,platform:e.label}),o(e.key)},children:[(0,M.jsx)(zu,{className:`h-4 w-4`,"aria-hidden":`true`}),a||`Download for ${e.label}`]})}function fv({source:e}){return(0,M.jsx)(`ul`,{className:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,children:lv.map(t=>{let n=t.icon;return(0,M.jsxs)(`li`,{className:`flex h-full flex-col rounded-2xl border border-border bg-background p-6 transition-shadow hover:shadow-md`,children:[(0,M.jsx)(`span`,{className:`inline-flex h-11 w-11 items-center justify-center rounded-xl bg-coral-soft text-primary`,children:(0,M.jsx)(n,{className:`h-5 w-5`,"aria-hidden":`true`})}),(0,M.jsx)(`h3`,{className:`mt-4 font-display text-xl font-bold text-foreground`,children:t.label}),(0,M.jsx)(`p`,{className:`mt-1.5 text-sm text-muted-foreground`,children:t.note}),(0,M.jsxs)(`div`,{className:`mt-5 flex flex-wrap items-center gap-3`,children:[(0,M.jsx)(dv,{spec:t,source:e,label:t.key===`android`||t.key===`ios`?``:`Download`}),(0,M.jsxs)(td,{to:t.detailsTo,className:`inline-flex items-center gap-1 font-display text-sm font-semibold text-foreground hover:text-primary`,children:[`Details`,(0,M.jsx)(Ru,{className:`h-4 w-4`,"aria-hidden":`true`})]})]})]},t.key)})})}function pv({source:e}){return(0,M.jsx)(`div`,{className:`flex flex-wrap gap-3`,children:lv.map(t=>(0,M.jsx)(dv,{spec:t,source:e,variant:`secondary`,label:t.label},t.key))})}var mv=`qikfox-theme`,hv=`(function(){try{var t=localStorage.getItem("${mv}");var d=t==="dark"||((!t||t==="system")&&window.matchMedia("(prefers-color-scheme: dark)").matches);document.documentElement.classList.toggle("dark",d);
25document.documentElement.style.colorScheme=d?"dark":"light";}catch(e){}})();`;function gv(e){if(typeof document>`u`)return;let t=e===`dark`||e===`system`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,t),document.documentElement.style.colorScheme=t?`dark`:`light`}function _v(){if(typeof localStorage>`u`)return`system`;let e=localStorage.getItem(mv);return e===`light`||e===`dark`||e===`system`?e:`system`}function vv(e){try{localStorage.setItem(mv,e)}catch{}}function yv({className:e}){let[t,n]=(0,j.useState)(`system`),[r,i]=(0,j.useState)(!1),[a,o]=(0,j.useState)(!1);(0,j.useEffect)(()=>{let e=_v();n(e),i(document.documentElement.classList.contains(`dark`)),o(!0)},[]),(0,j.useEffect)(()=>{if(t!==`system`||!a)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),n=()=>{gv(`system`),i(document.documentElement.classList.contains(`dark`))};return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[t,a]);function s(){let e=r?`light`:`dark`;n(e),vv(e),gv(e),i(e===`dark`)}return(0,M.jsx)(`button`,{type:`button`,onClick:s,"aria-label":r?`Switch to light theme`:`Switch to dark theme`,"aria-pressed":a?r:void 0,className:k(`inline-flex h-10 w-10 items-center justify-center rounded-full border border-border text-foreground transition-colors hover:bg-surface`,e),children:r?(0,M.jsx)(Gu,{className:`h-[1.15rem] w-[1.15rem]`,"aria-hidden":`true`}):(0,M.jsx)(Uu,{className:`h-[1.15rem] w-[1.15rem]`,"aria-hidden":`true`})})}function bv(){let[e,t]=(0,j.useState)(null),[n,r]=(0,j.useState)(!1),[i,a]=(0,j.useState)(null),[o,s]=(0,j.useState)(!1),c=(0,j.useRef)(null);(0,j.useEffect)(()=>{Ol.auth.getSession().then(({data:e})=>s(!!e.session));let{data:e}=Ol.auth.onAuthStateChange((e,t)=>s(!!t));return()=>e.subscription.unsubscribe()},[]),(0,j.useEffect)(()=>{if(!e)return;function n(e){c.current&&!c.current.contains(e.target)&&t(null)}function r(e){e.key===`Escape`&&t(null)}return document.addEventListener(`mousedown`,n),document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`keydown`,r)}},[e]);let l=()=>{t(null),r(!1),a(null)};return(0,M.jsxs)(`header`,{className:`sticky top-0 z-50 border-b border-border bg-background/95 backdrop-blur-sm`,children:[(0,M.jsx)(`a`,{href:`#main`,className:`sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus:z-50 focus:rounded-md focus:bg-foreground focus:px-3 focus:py-2 focus:text-sm focus:text-background`,children:`Skip to content`}),(0,M.jsxs)(`div`,{className:`container-site flex h-16 items-center gap-4 lg:h-[72px]`,children:[(0,M.jsx)(td,{to:`/`,className:`rounded-md`,ariaLabel:`qikfox home`,onClick:l,children:(0,M.jsx)(gd,{trademark:!0})}),(0,M.jsx)(`div`,{ref:c,className:`hidden lg:ml-6 lg:flex lg:items-center lg:gap-1`,children:Xu.map(n=>{let r=e===n.label;return(0,M.jsxs)(`div`,{className:`relative`,children:[(0,M.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-haspopup":`true`,onClick:()=>t(r?null:n.label),className:k(`flex items-center gap-1.5 rounded-full px-4 py-2 font-display text-[0.95rem] font-semibold text-foreground transition-colors hover:bg-surface`,r&&`bg-surface`),children:[n.label,(0,M.jsx)(Lu,{"aria-hidden":`true`,className:k(`h-4 w-4 text-muted-foreground transition-transform`,r&&`rotate-180`)})]}),r?(0,M.jsx)(`div`,{className:k(`absolute left-0 top-full mt-2 rounded-xl border border-border bg-background p-6 shadow-[0_12px_40px_-24px_rgba(34,34,34,0.35)]`,n.columns.length>1?`grid w-[640px] grid-cols-2 gap-8`:`w-[360px]`),children:n.columns.map(e=>(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`p`,{className:`mb-3 font-display text-xs font-bold uppercase tracking-[0.16em] text-muted-foreground`,children:e.heading}),(0,M.jsx)(`ul`,{className:`space-y-1`,children:e.links.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsxs)(td,{to:e.to,onClick:()=>{$u(`navigation_click`,{label:e.label,source:`megamenu`}),l()},className:`block rounded-lg px-3 py-2 hover:bg-surface`,children:[(0,M.jsx)(`span`,{className:`block font-display text-[0.95rem] font-semibold text-foreground`,children:e.label}),e.description?(0,M.jsx)(`span`,{className:`mt-0.5 block text-sm text-muted-foreground`,children:e.description}):null]})},e.to))})]},e.heading))}):null]},n.label)})}),(0,M.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,M.jsx)(yv,{}),(0,M.jsx)(td,{to:o?`/portal`:`/auth`,onClick:l,className:`hidden rounded-full px-4 py-2 font-display text-[0.95rem] font-semibold text-foreground hover:bg-surface sm:inline-flex`,children:o?`My account`:`Sign in`}),(0,M.jsx)(uv,{source:`header`,className:`hidden sm:inline-flex`,children:`Download`}),(0,M.jsx)(`button`,{type:`button`,className:`inline-flex h-11 w-11 items-center justify-center rounded-full border border-border text-foreground transition-colors hover:bg-surface lg:hidden`,"aria-expanded":n,"aria-controls":`mobile-navigation`,"aria-label":n?`Close menu`:`Open menu`,onClick:()=>r(e=>!e),children:n?(0,M.jsx)(qu,{className:`h-5 w-5`,"aria-hidden":`true`}):(0,M.jsx)(Vu,{className:`h-5 w-5`,"aria-hidden":`true`})})]})]}),n?(0,M.jsx)(`div`,{id:`mobile-navigation`,className:`border-t border-border bg-background lg:hidden`,children:(0,M.jsxs)(`nav`,{"aria-label":`Main`,className:`container-site max-h-[75vh] overflow-y-auto py-4`,children:[(0,M.jsx)(`ul`,{className:`divi
25de-y divide-border`,children:Xu.map(e=>{let t=i===e.label;return(0,M.jsxs)(`li`,{className:`py-1`,children:[(0,M.jsxs)(`button`,{type:`button`,"aria-expanded":t,onClick:()=>a(t?null:e.label),className:`flex w-full items-center justify-between rounded-md px-1 py-3 text-left font-display text-base font-semibold text-foreground`,children:[e.label,(0,M.jsx)(Lu,{"aria-hidden":`true`,className:k(`h-5 w-5 text-muted-foreground transition-transform`,t&&`rotate-180`)})]}),t?(0,M.jsx)(`div`,{className:`pb-3`,children:e.columns.map(e=>(0,M.jsxs)(`div`,{className:`mb-2`,children:[(0,M.jsx)(`p`,{className:`px-1 py-2 text-xs font-bold uppercase tracking-[0.16em] text-muted-foreground`,children:e.heading}),(0,M.jsx)(`ul`,{children:e.links.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsxs)(td,{to:e.to,onClick:()=>{$u(`navigation_click`,{label:e.label,source:`mobile`}),l()},className:`block rounded-lg px-1 py-3 text-[0.95rem] text-muted-foreground`,children:[(0,M.jsx)(`span`,{className:`font-semibold text-foreground`,children:e.label}),e.description?(0,M.jsx)(`span`,{className:`mt-0.5 block`,children:e.description}):null]})},e.to))})]},e.heading))}):null]},e.label)})}),(0,M.jsxs)(`div`,{className:`pt-4`,children:[(0,M.jsx)(td,{to:o?`/portal`:`/auth`,onClick:l,className:`mb-3 block rounded-full border border-border px-4 py-3 text-center font-display text-base font-semibold text-foreground`,children:o?`My account`:`Sign in`}),(0,M.jsx)(uv,{source:`mobile_nav`,size:`lg`,className:`w-full`,children:`Download qikfox`})]})]})}):null]})}var xv=[{label:`Privacy Policy`,to:`/legal/privacy-policy`},{label:`Terms of Service`,to:`/legal/terms`},{label:`Refund and Cancellation`,to:`/legal/refund-policy`},{label:`Cookie Policy`,to:`/legal/cookie-policy`},{label:`Accessibility`,to:`/legal/accessibility`},{label:`Responsible Disclosure`,to:`/legal/responsible-disclosure`}];function Sv(){let e=new Date().getFullYear();return(0,M.jsx)(`footer`,{className:`border-t border-border bg-surface`,children:(0,M.jsxs)(`div`,{className:`container-site py-16 lg:py-20`,children:[(0,M.jsx)(`div`,{className:`footer-columns-grid`,children:Zu.map(e=>(0,M.jsxs)(`nav`,{"aria-label":e.heading,className:`min-w-0`,children:[(0,M.jsx)(`h2`,{className:`mb-4 font-display text-[0.6875rem] font-bold uppercase tracking-[0.1em] text-foreground`,children:e.heading}),(0,M.jsx)(`ul`,{className:`space-y-2`,children:e.links.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:e.to,onClick:()=>$u(`navigation_click`,{label:e.label,source:`footer`}),className:`text-[0.8125rem] leading-snug text-muted-foreground hover:text-foreground hover:underline hover:decoration-coral hover:decoration-2 hover:underline-offset-4`,children:e.label})},e.to))})]},e.heading))}),(0,M.jsxs)(`div`,{className:`mt-14 grid gap-8 border-t border-border pt-10 lg:grid-cols-[1.4fr_1fr]`,children:[(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`a`,{href:`https://tmsearch.uspto.gov/search/search-results/98048889`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`qikfox trademark registration record`,className:`inline-flex rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,M.jsx)(gd,{})}),(0,M.jsx)(`p`,{className:`mt-4 w-full max-w-[38rem] text-[0.875rem] leading-snug text-muted-foreground`,children:`qikfox Cybersecurity Systems, Inc. is a Trustworthy Internet Company on a mission to safeguard consumer safety, security, and privacy in the modern AI era. We believe people should be able to embrace the possibilities of AI without surrendering control over their personal information or compromising their digital well-being. With our flagship qikfox Safe Browser, complemented by qikfox Antivirus and qikfox VPN, we are building a safer, more trustworthy Internet experience that puts people and their protection first.`})]}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h2`,{className:`mb-3 font-display text-sm font-bold uppercase tracking-[0.14em] text-foreground`,children:`Connect`}),(0,M.jsxs)(`ul`,{className:`space-y-2.5 text-[0.9375rem] text-muted-foreground`,children:[(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:`/resources/help`,className:`hover:text-foreground hover:underline`,children:`Help Center`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:`/contact`,className:`hover:text-foreground hover:underline`,children:`Contact qikfox`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:`/press`,className:`hover:text-foreground hover:underline`,children:`Press Enquiries`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:`/partners`,className:`hover:text-foreground hover:underline`,children:`Partners`})}),(0,M.jsxs)(`li`,{className:`text-sm`,children:[`Official social channels are listed on the`,` `,(0,M.jsx)(td,{to:`/press`,className:`underline decoration-coral decoration-2 underline-offset-4`,children:`press page`}),` `,`once published.`]})]})]})]}),(0,M.jsx)(`div`,{className:`mt-8 border-t border-border pt-3`,children:(0,M.jsx)(`p`,{className:`w-full max-w-none text-[0.6875rem] leading-snug text-muted-foreground`,children:`Trademark notice: qikfox and the qikfox fox mark are trademarks of qikfox Cybersecurity Systems, Inc. All other product, platform, browser, operating system and company names mentioned on this site, including Microsoft Windows, Apple, macOS, iOS, iPhone, iPad, Android, Google, Chrome, Chromium, Mozilla Firefox, Microsoft Edge, Safari, Brave, Opera, Vivaldi, Linux, Ubuntu, Debian, Fedora, Gen Digital, Norton, Avira, AVG, TotalAV, Malwarebytes, McAfee, Stripe, Shopify and Resend, are the trademarks or registered trademarks of their respective owners. Such names are used only for identification, compatibility or factual reference. qikfox is not affiliated with, endorsed by, sponsored by or otherwise associated with any of these companies, and no such relationship should be inferred.`})}),(0,M.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 border-t border-border pt-3 text-[0.8125rem] text-muted-foreground lg:flex-row lg:items-center lg:justify-between`,children:[(0,M.jsxs)(`p`,{children:[`© `,e,` qikfox Cybersecurity Systems, Inc. All rights reserved.`]}),(0,M.jsx)(`ul`,{className:`flex flex-wrap gap-x-5 gap-y-2`,children:xv.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsx)(td,{to:e.to,className:`hover:text-foreground hover:underline`,children:e.label})},e.to))})]})]})})}function Cv(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var wv=e=>{switch(e){case`success`:return Dv;case`info`:return kv;case`warning`:return Ov;case`error`:return Av;default:return null}},Tv=Array(12).fill(0),Ev=({visible:e,className:t})=>j.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(
25Boolean).join(` `),"data-visible":e},j.createElement(`div`,{className:`sonner-spinner`},Tv.map((e,t)=>j.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Dv=j.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},j.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Ov=j.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},j.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),kv=j.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},j.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Av=j.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},j.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),jv=j.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},j.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),j.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Mv=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Nv=1,Pv=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Nv++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
25this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],j.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Iv(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!j.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!j.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!j.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!j.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Nv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Fv=(e,t)=>{let n=t?.id||Nv++;return Pv.addToast({title:e,...t,id:n}),n},Iv=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Lv=Object.assign(Fv,{success:Pv.success,info:Pv.info,warning:Pv.warning,error:Pv.error,custom:Pv.custom,message:Pv.message,promise:Pv.promise,dismiss:Pv.dismiss,loading:Pv.loading},{getHistory:()=>Pv.toasts,getToasts:()=>Pv.getActiveToasts()});Cv(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
25left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
25[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);
25--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Rv(e){return e.label!==void 0}var zv=3,Bv=`24px`,Vv=`16px`,Hv=4e3,Uv=356,Wv=14,Gv=45,Kv=200;function qv(...e){return e.filter(Boolean).join(` `)}function Jv(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Yv=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:ee,closeButtonAriaLabel:te=`Close toast`}=e,[ne,w]=j.useState(null),[re,ie]=j.useState(null),[T,ae]=j.useState(!1),[oe,se]=j.useState(!1),[E,D]=j.useState(!1),[O,ce]=j.useState(!1),[le,ue]=j.useState(!1),[de,fe]=j.useState(0),[pe,me]=j.useState(0),he=j.useRef(n.duration||y||Hv),k=j.useRef(null),ge=j.useRef(null),_e=c===0,ve=c+1<=o,A=n.type,ye=n.dismissible!==!1,be=n.className||``,xe=n.descriptionClassName||``,Se=j.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Ce=j.useMemo(()=>n.closeButton??p,[n.closeButton,p]),we=j.useMemo(()=>n.duration||y||Hv,[n.duration,y]),Te=j.useRef(0),Ee=j.useRef(0),De=j.useRef(0),Oe=j.useRef(null),[ke,Ae]=b.split(`-`),je=j.useMemo(()=>
25s.reduce((e,t,n)=>n>=Se?e:e+t.height,0),[s,Se]),Me=Mv(),Ne=n.invert||t,Pe=A===`loading`;Ee.current=j.useMemo(()=>Se*x+je,[Se,je]),j.useEffect(()=>{he.current=we},[we]),j.useEffect(()=>{ae(!0)},[]),j.useEffect(()=>{let e=ge.current;if(e){let t=e.getBoundingClientRect().height;return me(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),j.useLayoutEffect(()=>{if(!T)return;let e=ge.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,me(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[T,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Fe=j.useCallback(()=>{se(!0),fe(Ee.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Kv)},[n,d,a,Ee]);j.useEffect(()=>{if(n.promise&&A===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Me?(()=>{if(De.current<Te.current){let e=new Date().getTime()-Te.current;he.current-=e}De.current=new Date().getTime()})():he.current!==1/0&&(Te.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Fe()},he.current)),()=>clearTimeout(e)},[u,i,n,A,Me,Fe]),j.useEffect(()=>{n.delete&&(Fe(),n.onDismiss==null||n.onDismiss.call(n,n))},[Fe,n.delete]);function Ie(){return ee?.loading?j.createElement(`div`,{className:qv(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":A===`loading`},ee.loading):j.createElement(Ev,{className:qv(C?.loader,n?.classNames?.loader),visible:A===`loading`})}let Le=n.icon||ee?.[A]||wv(A);return j.createElement(`li`,{tabIndex:0,ref:ge,className:qv(_,be,C?.toast,n?.classNames?.toast,C?.default,C?.[A],n?.classNames?.[A]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":T,"data-promise":!!n.promise,"data-swiped":le,"data-removed":oe,"data-visible":ve,"data-y-position":ke,"data-x-position":Ae,"data-index":c,"data-front":_e,"data-swiping":E,"data-dismissible":ye,"data-type":A,"data-invert":Ne,"data-swipe-out":O,"data-swipe-direction":re,"data-expanded":!!(u||S&&T),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${oe?de:Ee.current}px`,"--initial-height":S?`auto`:`${pe}px`,...m,...n.style},onDragEnd:()=>{D(!1),w(null),Oe.current=null},onPointerDown:e=>{e.button!==2&&(Pe||!ye||(k.current=new Date,fe(Ee.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(D(!0),Oe.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(O||!ye)return;Oe.current=null;let e=Number(ge.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ge.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-k.current?.getTime(),i=ne===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Gv||a>.11){fe(Ee.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(ne===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Fe(),ce(!0);return}var o,s;(o=ge.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ge.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),ue(!1),D(!1),w(null)},onPointerMove:t=>{var n,r;if(!Oe.current||!ye||window.getSelection()?.toString().length>0)return;let i=t.clientY-Oe.current.y,a=t.clientX-Oe.current.x,o=e.swipeDirections??Jv(b);!ne&&(Math.abs(a)>1||Math.abs(i)>1)&&w(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ne===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(ne===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&ue(!0),(n=ge.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=ge.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Ce&&!n.jsx&&A!==`loading`?j.createElement(`button`,{"aria-label":te,"data-disabled":Pe,"data-close-button":!0,onClick:Pe||!ye?()=>{}:()=>{Fe(),n.onDismiss==null||n.onDismiss.call(n,n)},className:qv(C?.closeButton,n?.classNames?.closeButton)},ee?.close??jv):null,(A||n.icon||n.promise)&&n.icon!==null&&(ee?.[A]!==null||n.icon)?j.createElement(`div`,{"data-icon":``,className:qv(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ie():null,n.type===`loading`?null:Le):null,j.createElement(`div`,{"data-content":``,className:qv(C?.content,n?.classNames?.content)},j.createElement(`div`,{"data-title":``,className:qv(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?j.createElement(`div`,{"data-description":``,className:qv(v,xe,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),j.isValidElement(n.cancel)?n.c
25ancel:n.cancel&&Rv(n.cancel)?j.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Rv(n.cancel)&&ye&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Fe())},className:qv(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,j.isValidElement(n.action)?n.action:n.action&&Rv(n.action)?j.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Rv(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Fe())},className:qv(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Xv(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Zv(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Vv:Bv;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Qv=j.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=zv,toastOptions:g,dir:_=Xv(),gap:v=Wv,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=j.useState([]),C=j.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),ee=j.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[te,ne]=j.useState([]),[w,re]=j.useState(!1),[ie,T]=j.useState(!1),[ae,oe]=j.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),se=j.useRef(null),E=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),D=j.useRef(null),O=j.useRef(!1),ce=j.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Pv.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return j.useEffect(()=>Pv.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{xm.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),j.useEffect(()=>{if(d!==`system`){oe(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?oe(`dark`):oe(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{oe(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{oe(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),j.useEffect(()=>{x.length<=1&&re(!1)},[x]),j.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;re(!0),(t=se.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===se.current||se.current?.contains(document.activeElement))&&re(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),j.useEffect(()=>{if(se.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,O.current=!1)}},[se.current]),j.createElement(`section`,{ref:t,"aria-label":`${b} ${E}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ee.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?j.createElement(`ol`,{key:t,dir:_===`auto`?Xv():_,tabIndex:-1,ref:se,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ae,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${te[0]?.height||0}px`,"--width":`${Uv}px`,"--gap":`${v}px`,...m,...Zv(l,u)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,D.current&&=(D.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
25se`||O.current||(O.current=!0,D.current=e.relatedTarget)},onMouseEnter:()=>re(!0),onMouseMove:()=>re(!0),onMouseLeave:()=>{ie||re(!1)},onDragEnd:()=>re(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||T(!0)},onPointerUp:()=>T(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>j.createElement(Yv,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ie,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ce,toasts:C.filter(e=>e.position==n.position),heights:te.filter(e=>e.position==n.position),setHeights:ne,expandByDefault:o,gap:v,expanded:w,swipeDirections:e.swipeDirections}))):null}))}),$v=Sr({type:`function`}),ey=A({method:`POST`}).middleware([$v]).handler(_e(`9516e49be4f35ae335b8935e4a8fb89331432561963a4e4ef80f3d30041f3cd3`)),ty=A({method:`POST`}).middleware([$v]).handler(_e(`e790c5f3d78ab76978722186aa3e93d4378b10fe0def821bb0ea2ee65cfafff4`)),ny=A({method:`POST`}).middleware([$v]).handler(_e(`1d02a316b22bb8486ad65a7aa3295917e9cc6f22c138f835e3b03c7eb3d963c8`)),ry=A({method:`POST`}).middleware([$v]).handler(_e(`636185f19f46e80dd11c59d3ec675d1d2222794fb998c9b0c0da110c5c899a94`)),iy=A({method:`POST`}).middleware([$v]).handler(_e(`ca990499da9bf33e39a1ef665392553e0915cfaa2f57c989740f5186aecf8951`)),ay=A({method:`POST`}).middleware([$v]).handler(_e(`66f225ceb3d7e01f5ad2d4a946cf21db0a43a354bcd280f1187ba78e1aa88d4f`)),oy=A({method:`POST`}).middleware([$v]).handler(_e(`5c3eaa99f5f78f6829d259cfc2c4318abd606c6fb7e9c10112f89068d17c28c6`)),sy=A({method:`POST`}).handler(_e(`89f057eac2d3247aa56e2caa75415452731d0bc772281ce50f2dbfee27db803d`)),cy=A({method:`POST`}).handler(_e(`e96eeac45dcfb43fe22f4ca4a9c1eb5c69b847c5dc700de1740dc6
255e61410468`)),ly=A({method:`POST`}).handler(_e(`cbbb151ac0374643270cad8947b58d3f8f7b2900da7ba1f9d64927df021102db`)),uy=A({method:`POST`}).handler(_e(`1c225497cdd61a1a0fb9172b87c54f44dc8ff0476e4becab6ee2461e4ad76368`)),dy=A({method:`POST`}).middleware([$v]).handler(_e(`e1fa5f8240d9016b3f1aa206ee5709271d128f07c13e9a75ae6c4b0b7cd0ba0f`)),fy=A({method:`POST`}).middleware([$v]).handler(_e(`dc6fb1f037282f17866e2c2e9270fb9efef25e0b6acd5ed1522923f5d7687815`)),py=`getfox.myshopify.com`,my=`2025-07`,hy=`03ceef5211a877eb248f25fa09331a28`,gy=` 26 mutation CartCreate($input: CartInput!) { 27 cartCreate(input: $input) { 28 cart { id checkoutUrl } 29 userErrors { message } 30 } 31 } 32`;async function _y(e){let t=e.plan,n=t?[{key:`Plan`,value:t.name},{key:`Billing`,value:t.priceLabel},...t.includes.length?[{key:`Includes`,value:t.includes.join(` ⢠`).slice(0,240)}]:[]]:[],r=await fetch(`https://${py}/api/${my}/graphql.json`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-Shopify-Storefront-Access-Token":hy},body:JSON.stringify({query:gy,variables:{input:{lines:[{merchandiseId:e.variantId,quantity:1,...n.length?{attributes:n}:{}}],...e.email?{buyerIdentity:{email:e.email}}:{},...t?{note:`${t.name} â ${t.priceLabel}${t.includes.length?`. Includes: ${t.includes.join(`; `)}`:``}`}:{},attributes:[...e.subscriptionId?[{key:`qikfox_subscription_id`,value:e.subscriptionId}]:[],...e.claimToken?[{key:`qikfox_claim_token`,value:e.claimToken}]:[]]}}})});if(!r.ok){let e=await r.text();throw console.error(`Shopify cart failed [${r.status}]: ${e}`),Error(`The store checkout could not be opened. Please try again.`)}let i=await r.json(),a=i.errors?.[0]?.message??i.data?.cartCreate?.userErrors?.[0]?.message,o=i.data?.cartCreate?.cart;if(a||!o?.checkoutUrl)throw a?.toLowerCase().includes(`does not exist`)?(console.error(`Shopify variant unavailable: ${a}`),Error(`This annual plan is not on sale in the store yet. Please try again shortly.`)):Error(a??`This annual plan is not available in the store right now.`);return o}var vy=`qikfox_guest_claim`;function yy(e){try{window.localStorage.setItem(vy,e)}catch{}}function by(){try{window.localStorage.removeItem(vy)}catch{}}function xy(e=`/pricing`){let[t,n]=(0,j.useState)(null),[r,i]=(0,j.useState)(null),a=Bn(),o=xr(ey),s=xr(sy),c=xr(oy),l=xr(cy);async function u(t){i(null),n(t);try{let n=await s({data:{planId:t,returnPath:e}});if(n.free){await a({to:`/auth`,search:{redirect:e,plan:t}});return}if(n.claimToken&&yy(n.claimToken),n.provider===`stripe`&&n.checkoutUrl){window.location.href=n.checkoutUrl;return}if(n.provider===`shopify`&&n.shopifyVariantId){let e=await _y({variantId:n.shopifyVariantId,claimToken:n.claimToken??null,plan:n.plan??null});if(n.claimToken)try{await l({data:{token:n.claimToken,cartId:e.id}})}catch{}window.location.href=e.checkoutUrl;return}throw Error(`Checkout could not be opened.`)}catch(e){Lv.error(e instanceof Error?e.message:`Could not start checkout.`)}finally{n(null)}}async function d(t){i(null),await a({to:`/auth`,search:{redirect:e,plan:t}})}async function f(t){n(t);try{let{data:n}=await Ol.auth.getSession();if(!n.session){i(t);return}let r=await o({data:{planId:t,returnPath:e}});if(r.provider===`stripe`&&r.checkoutUrl){window.location.href=r.checkoutUrl;return}if(r.provider===`shopify`&&r.shopifyVariantId){let e=await _y({variantId:r.shopifyVariantId,email:n.session.user.email??null,subscriptionId:r.subscriptionId??null,plan:r.plan??null});if(r.subscriptionId)try{await c({data:{subscriptionId:r.subscriptionId,cartId:e.id}})}catch{}window.location.href=e.checkoutUrl;return}await a({to:`/portal/subscriptions`}),Lv.success(`Your plan is on your account.`)}catch(e){Lv.error(e instanceof Error?e.message:`Could not start checkout.`)}finally{n(null)}}return{start:f,busyPlanId:t,choicePlanId:r,closeChoice:()=>{i(null),n(null)},startAsGuest:u,startWithAccount:d}}function Sy(){let e=Bn(),[t,n]=(0,j.useState)(null);return(0,j.useEffect)(()=>{let e=!1;return(async()=>{let t=null;try{t=window.localStorage.getItem(vy)}catch{t=null}if(!t||e)return;let{data:r}=await Ol.auth.getSession();r.session||e||n(t)})(),()=>{e=!0}},[]),!t||typeof window<`u`&&window.location.pathname===`/welcome`?null:(0,M.jsx)(`div`,{className:`bg-primary text-primary-foreground`,children:(0,M.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-3 px-4 py-3 text-sm`,children:[(0,M.jsx)(`p`,{children:`Thanks for your purchase â finish setting up your membership account to use it.`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,M.jsx)(`button`,{type:`button`,className:`rounded-full bg-background px-4 py-1.5 font-display font-semibold text-foreground`,onClick:()=>void e({to:`/welcome`,search:{token:t}}),children:`Finish setup`}),(0,M.jsx)(`button`,{type:`button`,className:`underline`,onClick:()=>{by(),n(null)},children:`Dismiss`})]})]})})}var Cy=`https://qikfoxlabs.com`;function wy(e){return`${Cy}${e.startsWith(`/`)?e:`/${e}`}`}var Ty=({...e})=>(0,M.jsx)(Qv,{className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e}),Ey=A({method:`GET`}).handler(_e(`7eb72fa14daaef78218a4e08ad1667aa9abf29ac660934fcc7e30b67f21cec96`)),Dy=`qf-consent-v1`,Oy=`qf-consent-change`,ky={preferences:!1,measurement:!1,advertising:!1},Ay={preferences:!0,measurement:!0,advertising:!0};function jy(){if(typeof window>`u`)return!1;let e=window.navigator;
32return e.globalPrivacyControl===!0||e.doNotTrack===`1`||window.doNotTrack===`1`}function My(){if(typeof window>`u`)return null;try{let e=window.localStorage.getItem(Dy);if(!e)return null;let t=JSON.parse(e);return t?.version!==1||typeof t.choices!=`object`?null:t}catch{return null}}function Ny(e,t,n=!1){if(typeof window>`u`)return;let r={version:1,choices:e,decidedAt:new Date().toISOString(),region:t,signal:n};try{window.localStorage.setItem(Dy,JSON.stringify(r))}catch{}window.dispatchEvent(new CustomEvent(Oy,{detail:r}))}function Py(e){if(e===`necessary`)return!0;let t=My();return t?t.choices[e]===!0:!1}var Fy=[{code:`CA`,name:`California`,law:`California Consumer Privacy Act, as amended by the CPRA`,optOutOfSale:!0,sensitiveOptIn:!1,universalOptOut:!0,appealRight:!1,summary:`You can tell us not to sell or share your personal information, limit the use of sensitive information, and ask for a copy, a correction or a deletion. We recognise the Global Privacy Control signal your browser can send.`},{code:`CO`,name:`Colorado`,law:`Colorado Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Targeted advertising and profiling need your opt out to stop, sensitive information needs your consent first, and you can appeal if we refuse a request.`},{code:`CT`,name:`Connecticut`,law:`Connecticut Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`You can opt out of targeted advertising, sale and profiling, sensitive information needs consent first, and refused requests can be appealed.`},{code:`VA`,name:`Virginia`,law:`Virginia Consumer Data Protection Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!1,appealRight:!0,summary:`Sensitive information needs your consent before we process it, you can opt out of targeted advertising and sale, and you can appeal a refused request.`},{code:`UT`,name:`Utah`,law:`Utah Consumer Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!1,universalOptOut:!1,appealRight:!1,summary:`You can opt out of targeted advertising and sale, and ask for access or deletion. Sensitive information requires clear notice and the chance to say no.`},{code:`TX`,name:`Texas`,law:`Texas Data Privacy and Security Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Sensitive information needs consent, targeted advertising and sale can be switched off, and we recognise recognised universal opt-out signals.`},{code:`OR`,name:`Oregon`,law:`Oregon Consumer Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`You can opt out of targeted advertising, sale and profiling, ask for the list of third parties we shared data with, and appeal refusals.`},{code:`MT`,name:`Montana`,law:`Montana Consumer Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Sensitive information needs consent, and opt-out signals sent by your browser are honoured automatically.`},{code:`FL`,name:`Florida`,law:`Florida Digital Bill of Rights`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!1,appealRight:!0,summary:`Sensitive information needs consent, and you can opt out of sale, targeted advertising and profiling.`},{code:`DE`,name:`Delaware`,law:`Delaware Personal Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Consent first for sensitive information, opt out of targeted advertising and sale, and appeal a refused request.`},{code:`NJ`,name:`New Jersey`,law:`New Jersey Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Consent first for sensitive information, universal opt-out signals recognised, and profiling can be switched off.`},{code:`NH`,name:`New Hampshire`,law:`New Hampshire Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Sensitive information needs consent, and targeted advertising, sale and profiling can all be switched off.`},{code:`MN`,name:`Minnesota`,law:`Minnesota Consumer Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`As well as the usual opt outs, you can ask about the reasoning behind profiling decisions that affect you.`},{code:`MD`,name:`Maryland`,law:`Maryland Online Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Sale of sensitive information is not permitted at all, collection is limited to what a service actually needs, and opt outs apply to targeted advertising and profiling.`},{code:`TN`,name:`Tennessee`,law:`Tennessee Information Protection Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!1,appealRight:!0,summary:`Consent first for sensitive information, plus opt outs for sale, targeted advertising and profiling.`},{code:`IA`,name:`Iowa`,law:`Iowa Consumer Data Protection Act`,optOutOfSale:!0,sensitiveOptIn:!1,universalOptOut:!1,appealRight:!0,summary:`You can opt out of the sale of personal data and ask for access or deleti
32on. Sensitive information requires clear notice and a way to say no.`},{code:`NE`,name:`Nebraska`,law:`Nebraska Data Privacy Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`Consent first for sensitive information, and opt outs for sale, targeted advertising and profiling.`},{code:`IN`,name:`Indiana`,law:`Indiana Consumer Data Protection Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!1,appealRight:!0,summary:`Consent first for sensitive information, and opt outs for sale, targeted advertising and profiling.`},{code:`KY`,name:`Kentucky`,law:`Kentucky Consumer Data Protection Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!1,appealRight:!0,summary:`Consent first for sensitive information, and opt outs for sale, targeted advertising and profiling.`},{code:`RI`,name:`Rhode Island`,law:`Rhode Island Data Transparency and Privacy Protection Act`,optOutOfSale:!0,sensitiveOptIn:!0,universalOptOut:!0,appealRight:!0,summary:`We must name the third parties we may sell data to, sensitive information needs consent, and opt outs apply to targeted advertising.`}],Iy=new Map(Fy.map(e=>[e.code,e]));function Ly(e){return e?Iy.get(e.toUpperCase())??null:null}var Ry=[{id:`necessary`,label:`Strictly necessary`,description:`Keeps the site secure, remembers a signed-in session and stores your privacy choices. These cannot be switched off.`,required:!0},{id:`preferences`,label:`Preferences`,description:`Remembers choices you make, such as light or dark appearance and the platform selected on the download pages.`},{id:`measurement`,label:`Measurement`,description:`Counts page views in aggregate so we can see which pages help. Not used to build a profile of you.`},{id:`advertising`,label:`Advertising and sharing`,description:`Sharing data with advertising partners for targeted advertising. qikfox does not do this today; the control stays here so your choice is recorded if that ever changes.`}];function zy(e,t){return e?{title:`Your privacy choices in ${e.name}`,body:`We use cookies and similar storage. Under the ${e.law} you decide what we may use beyond what the site needs to work. Nothing optional is switched on until you choose.`}:t&&t!==`US`?{title:`Your privacy choices`,body:`We use cookies and similar storage. Nothing optional is switched on until you choose, and you can change your mind at any time.`}:{title:`Your privacy choices`,body:`We take consumer privacy seriously. We may use cookies and similar mechanisms for website logistics only. We apply the strongest US state privacy standards by default, so nothing optional is switched on until you choose.`}}function By(){let e=xr(Ey),[t,n]=(0,j.useState)(!1),[r,i]=(0,j.useState)(null),[a,o]=(0,j.useState)(null),[s,c]=(0,j.useState)(null),[l,u]=(0,j.useState)(!1);(0,j.useEffect)(()=>{i(My()),u(jy());let t=!1;e().then(e=>{t||(c(e.country),o(e.region))}).catch(()=>void 0).finally(()=>{t||n(!0)});let r=()=>i(My());return window.addEventListener(Oy,r),()=>{t=!0,window.removeEventListener(Oy,r)}},[e]);let d=(0,j.useCallback)(e=>{Ny(e,a,!1)},[a]);return{ready:t,record:r,region:a,country:s,law:Ly(s===`US`||s===null?a:null),signal:l,save:d}}function Vy(e){return e?{...e.choices}:{...ky}}function Hy({choices:e,onChange:t,lockAdvertising:n}){return(0,M.jsx)(`ul`,{className:`space-y-3`,children:Ry.map(r=>{let i=r.required===!0,a=i||n===!0&&r.id===`advertising`,o=i?!0:!a&&e[r.id]===!0;
32return(0,M.jsxs)(`li`,{className:`flex items-start gap-4 rounded-xl border border-border bg-background p-4`,children:[(0,M.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,M.jsx)(`p`,{className:`font-display text-[0.95rem] font-semibold text-foreground`,children:r.label}),(0,M.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:r.description}),a&&!i?(0,M.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Held off because your browser sends an opt-out signal.`}):null]}),(0,M.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":o,"aria-label":r.label,disabled:a,onClick:()=>t({...e,[r.id]:!o}),className:k(`relative mt-1 inline-flex h-6 w-11 shrink-0 items-center rounded-full border transition-colors`,o?`border-primary bg-primary`:`border-border bg-surface`,a&&`cursor-not-allowed opacity-60`),children:(0,M.jsx)(`span`,{className:k(`flex h-5 w-5 items-center justify-center rounded-full bg-background transition-transform`,o?`translate-x-[1.35rem]`:`translate-x-[0.15rem]`),children:o?(0,M.jsx)(Iu,{"aria-hidden":`true`,className:`h-3 w-3 text-primary`}):null})})]},r.id)})})}function Uy({law:e,region:t}){if(!e)return(0,M.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:t?`Your state does not have a comprehensive consumer privacy law yet. We apply the strongest standard we follow anywhere, so nothing optional runs until you allow it.`:`We could not tell which state you are connecting from, so we apply the strongest standard we follow anywhere: nothing optional runs until you allow it.`});let n=[`Ask for a copy of the personal information we hold about you.`,`Ask us to correct information that is wrong.`,`Ask us to delete information we no longer need.`,e.optOutOfSale?`Tell us not to sell or share your information, and not to use it for targeted advertising.`:`Tell us to stop using your information for anything beyond running the service.`,...e.sensitiveOptIn?[`Decide before we process sensitive information, not afterwards.`]:[],...e.universalOptOut?[`Have an opt-out signal sent by your browser honoured automatically.`]:[],...e.appealRight?[`Appeal if we refuse one of these requests.`]:[]];return(0,M.jsxs)(`div`,{children:[(0,M.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Detected location: `,(0,M.jsx)(`strong`,{className:`text-foreground`,children:e.name}),`. Your rights come from the `,e.law,`.`]}),(0,M.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:e.summary}),(0,M.jsx)(`ul`,{className:`mt-4 space-y-2`,children:n.map(e=>(0,M.jsxs)(`li`,{className:`flex gap-2 text-sm text-muted-foreground`,children:[(0,M.jsx)(Iu,{"aria-hidden":`true`,className:`mt-0.5 h-4 w-4 shrink-0 text-primary`}),(0,M.jsx)(`span`,{children:e})]},e))})]})}function Wy(){let{ready:e,record:t,region:n,country:r,law:i,signal:a,save:o}=By(),[s,c]=(0,j.useState)(!1),[l,u]=(0,j.useState)(ky);if((0,j.useEffect)(()=>{u(Vy(t))},[t]),!e||t)return null;let d=zy(i,r);return(0,M.jsx)(`div`,{role:`dialog`,"aria-label":`Privacy choices`,className:`fixed bottom-0 right-0 z-[60] hidden w-full max-w-[26rem] p-3 sm:p-4 md:block`,children:(0,M.jsxs)(`div`,{className:`w-full rounded-2xl border border-border bg-background p-5 shadow-[0_18px_50px_-24px_rgba(34,34,34,0.45)]`,children:[(0,M.jsx)(`h2`,{className:`font-display text-lg font-bold text-foreground`,children:d.title}),(0,M.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:d.body}),s?(0,M.jsxs)(`div`,{className:`mt-5 max-h-[45vh] overflow-y-auto pr-1`,children:[(0,M.jsx)(Hy,{choices:l,onChange:u,lockAdvertising:a}),(0,M.jsx)(`div`,{className:`mt-5 rounded-xl bg-surface p-4`,children:(0,M.jsx)(Uy,{law:i,region:n})})]}):null,(0,M.jsxs)(`div`,{className:`mt-5 flex flex-nowrap items-center gap-2`,children:[(0,M.jsx)(`button`,{type:`button`,onClick:()=>o({...ky}),className:k(ad,`h-9 px-3 text-[0.75rem]`,sd.secondary),children:`Reject optional`}),s?(0,M.jsx)(`button`,{type:`button`,onClick:()=>o(l),className:k(ad,`h-9 px-3 text-[0.75rem]`,sd.primary),children:`Save my choices`}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`button`,{type:`button`,onClick:()=>c(!0),className:k(ad,`h-9 px-3 text-[0.75rem]`,sd.secondary),children:`Manage choices`}),(0,M.jsx)(`button`,{type:`button`,onClick:()=>o(a?{...Ay,advertising:!1}:{...Ay}),className:k(ad,`h-9 px-3 text-[0.75rem]`,sd.primary),children:`Accept all`})]})]}),(0,M.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Change this any time on the`,` `,(0,M.jsx)(td,{to:`/privacy-choices`,className:`underline decoration-primary`,children:`your privacy choices`}),` `,`page, or read the`,` `,(0,M.jsx)(td,{to:`/legal/cookie-policy`,className:`underline decoration-primary`,children:`cookie policy`}),`.`]})]})})}var Gy=.7;function Ky(e){return Math.round((e/100*Gy+2**-52)*100)/100}function qy(e){try{let t=window.localStorage.getItem(e),n=t?JSON.parse(t):null;return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}catch{return[]}}function Jy(e,t){try{let n=[...new Set([...qy(e),t])].slice(-50);window.localStorage.setItem(e,JSON.stringify(n))}catch{}}function Yy(e,t){return typeof window>`u`||qy(e).includes(t)}var Xy=`AW-18454136943`,Zy=`AW-18454136943/wJNSCKKPtvocEO-Qz99E`,Qy=`qf-conv-v1`;function $y(){typeof window>`u`||(window.dataLayer=window.dataLayer??[])}var eb=!1;function tb(){if(typeof window>`u`||($y(),eb)||!Py(`advertising`))return;eb=!0;let e=window;e.dataLayer=e.dataLayer??[],e.gtag||=function(...t){e.dataLayer?.push(t)},e.gtag(`js`,new Date),e.gtag(`config`,Xy);let t=document.createElement(`script`);
32t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(Xy)}`,document.head.appendChild(t)}function nb(){if(typeof window>`u`)return()=>void 0;tb();let e=()=>tb();return window.addEventListener(Oy,e),()=>window.removeEventListener(Oy,e)}function rb(e){return Yy(Qy,e)}function ib(e){return typeof window>`u`||!e.orderId||e.totalCents<=0||rb(e.orderId)||!Py(`advertising`)?!1:($y(),tb(),Jy(Qy,e.orderId),window.gtag?.(`event`,`conversion`,{send_to:Zy,value:Ky(e.totalCents),currency:(e.currency||`USD`).toUpperCase(),transaction_id:e.orderId}),!0)}var ab=`97202590`,ob=`qf-conv-bing-v1`;function sb(){let e=window;return e.uetq||=[],e.uetq}function cb(){typeof window>`u`||sb()}function lb(e,t){sb().push(`consent`,t,{ad_storage:e?`granted`:`denied`})}var ub=!1;function db(){if(typeof window>`u`||(cb(),ub||lb(Py(`advertising`),`default`),ub)||!Py(`advertising`))return;ub=!0,lb(!0,`update`);let e={ti:ab,enableAutoSpaTracking:!0,ts:new Date().getTime()},t=document.createElement(`script`);t.src=`https://bat.bing.com/bat.js`,t.async=!0;let n=()=>{let n=t.readyState;if(n&&n!==`loaded`&&n!==`complete`)return;let r=window.UET;r&&(e.q=window.uetq,window.uetq=new r(e),sb().push(`pageLoad`),t.onload=null,t.onreadystatechange=null)};t.onload=n,t.onreadystatechange=n;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?r.parentNode.insertBefore(t,r):document.head.appendChild(t)}function fb(){if(typeof window>`u`)return()=>void 0;db();let e=()=>{let e=Py(`advertising`);ub&&lb(e,`update`),db()};return window.addEventListener(Oy,e),()=>window.removeEventListener(Oy,e)}function pb(e){return Yy(ob,e)}function mb(e){if(typeof window>`u`||!e.orderId||e.totalCents<=0||pb(e.orderId)||!Py(`advertising`))return!1;db(),Jy(ob,e.orderId);let t=(e.currency||`USD`).toUpperCase(),n=Ky(e.totalCents),r=e.items.map(e=>({id:e.sku,quantity:Number(e.quantity)||1,price:Ky(e.priceCents)}));return sb().push(`event`,`purchase`,{transaction_id:e.orderId,ecomm_prodid:r.map(e=>e.id),ecomm_pagetype:`purchase`,ecomm_totalvalue:n,revenue_value:n,currency:t,items:r}),!0}function hb(){return(0,j.useEffect)(()=>{$y(),cb();let e=nb(),t=fb();return()=>{e(),t()}},[]),null}function gb(){return(0,M.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,M.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,M.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,M.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,M.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,M.jsx)(`div`,{className:`mt-6`,children:(0,M.jsx)(me,{to:`/`,className:`inline-flex items-center justify-center rounded-full bg-primary px-6 py-2.5 text-sm font-medium text-primary-foreground shadow-sm transition-all hover:bg-primary/90 hover:shadow-md`,children:`Go home`})})]})})}function _b({error:e,reset:t}){console.error(e);let n=T();return(0,j.useEffect)(()=>{Pu(e,{boundary:`tanstack_root_error_component`})},[e]),(0,M.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,M.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,M.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,M.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Something went wrong on our end. You can try refreshing or head back home.`}),(0,M.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,M.jsx)(`button`,{onClick:()=>{n.invalidate(),t()},className:`inline-flex items-center justify-center rounded-full bg-primary px-6 py-2.5 text-sm font-medium text-primary-foreground shadow-sm transition-all hover:bg-primary/90 hover:shadow-md`,children:`Try again`}),(0,M.jsx)(`a`,{href:`/`,className:`inline-flex items-center justify-center rounded-full border border-input bg-background px-6 py-2.5 text-sm font-medium text-foreground transition-colors hover:bg-accent`,children:`Go home`})]})]})})}var X=Wn()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`qikfox - A Safer Internet Starts Here`},{name:`description`,content:`qikfox builds consumer Internet products centred on safety, security and privacy: qikfox Search, Safe Browser, Antivirus and VPN.`},{property:`og:site_name`,content:`qikfox`},{property:`og:type`,content:`website`},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`stylesheet`,href:Nu},{rel:`preload`,as:`image`,href:pd.url,fetchPriority:`high`},{rel:`preconnect`,href:`https://fonts.googleapis.com`}
32,{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap`},{rel:`icon`,href:`/favicon.ico`,sizes:`any`},{rel:`icon`,href:`/favicon.png`,type:`image/png`,sizes:`64x64`},{rel:`shortcut icon`,href:`/favicon.ico`},{rel:`apple-touch-icon`,href:`/apple-touch-icon.png`,sizes:`180x180`},{rel:`manifest`,href:`/site.webmanifest`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${wy(`/`)}#organization`,name:`qikfox`,url:wy(`/`),logo:{"@type":`ImageObject`,"@id":`${wy(`/`)}#logo`,url:wy(`/favicon.png`),width:64,height:64},description:`qikfox builds consumer Internet products centred on safety, security and privacy: qikfox Search, qikfox Safe Browser, qikfox Antivirus and qikfox VPN.`,contactPoint:[{"@type":`ContactPoint`,contactType:`customer support`,url:wy(`/contact`),availableLanguage:[`English`]},{"@type":`ContactPoint`,contactType:`security`,url:wy(`/legal/responsible-disclosure`),availableLanguage:[`English`]}],hasPart:[{"@type":`SoftwareApplication`,"@id":`${wy(`/search`)}#software`,name:`qikfox Search`},{"@type":`SoftwareApplication`,"@id":`${wy(`/browser`)}#software`,name:`qikfox Safe Browser`},{"@type":`SoftwareApplication`,"@id":`${wy(`/antivirus`)}#software`,name:`qikfox Antivirus`},{"@type":`SoftwareApplication`,"@id":`${wy(`/vpn`)}#software`,name:`qikfox VPN`}]},{"@type":`WebSite`,"@id":`${wy(`/`)}#website`,name:`qikfox`,url:wy(`/`),inLanguage:`en`,publisher:{"@id":`${wy(`/`)}#organization`}}]})}]}),shellComponent:vb,component:yb,notFoundComponent:gb,errorComponent:_b});function vb({children:e}){return(0,M.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,M.jsxs)(`head`,{children:[(0,M.jsx)(vr,{}),(0,M.jsx)(`script`,{dangerouslySetInnerHTML:{__html:hv}})]}),(0,M.jsxs)(`body`,{children:[e,(0,M.jsx)(yr,{})]})]})}function yb(){let{queryClient:e}=X.useRouteContext(),t=T(),n=pr({select:e=>e.location.pathname}),r=n.startsWith(`/backoffice`)||n.startsWith(`/team-sign-in`);return(0,j.useEffect)(()=>{let{data:n}=Ol.auth.onAuthStateChange(n=>{(n===`SIGNED_IN`||n===`SIGNED_OUT`||n===`USER_UPDATED`)&&(t.invalidate(),n!==`SIGNED_OUT`&&e.invalidateQueries())});return()=>n.subscription.unsubscribe()},[e,t]),r?(0,M.jsxs)(Mu,{client:e,children:[(0,M.jsx)(`main`,{id:`main`,children:(0,M.jsx)(ir,{})}),(0,M.jsx)(Ty,{})]}):(0,M.jsx)(Mu,{client:e,children:(0,M.jsxs)(ov,{children:[(0,M.jsx)(hb,{}),(0,M.jsx)(Sy,{}),(0,M.jsx)(bv,{}),(0,M.jsx)(`main`,{id:`main`,children:(0,M.jsx)(ir,{})}),(0,M.jsx)(Sv,{}),(0,M.jsx)(Wy,{}),(0,M.jsx)(Ty,{})]})})}var bb=[{question:`What is qikfox?`,answer:`qikfox is a company that builds consumer Internet products focused on safety, security and privacy. It currently makes four products: qikfox Search, qikfox
32Safe Browser, qikfox Antivirus and qikfox VPN.`},{question:`Do I need all four qikfox products?`,answer:`No. Each product works on its own. Most people start with qikfox Safe Browser, then add Antivirus for device protection or VPN for connection protection depending on what they need.`},{question:`How are qikfox Search and qikfox Safe Browser different?`,answer:`qikfox Search is a search experience for finding information on the web. qikfox Safe Browser is the application you use to open and read those pages. Search can be used inside the browser, and the browser can be used with other search engines.`},{question:`Which platforms does qikfox support?`,answer:`qikfox Safe Browser is available for Windows, macOS, Linux, Android and iOS. qikfox VPN covers Windows, macOS, Android and iOS. qikfox Antivirus covers Windows, macOS and Android. qikfox Search runs in any modern browser.`},{question:`What makes qikfox an AI-first browser?`,answer:`Safety checks, page understanding and assistance are part of the browsing path rather than add-ons. The browser evaluates a destination and its content as you move toward it, so warnings and context arrive before you act instead of after.`},{question:`Is qikfox Safe Browser free?`,answer:`qikfox Safe Browser is currently invite-only and free to use during that phase. Antivirus and VPN are paid products, and pricing for each is listed on its own product page.`},{question:`What data does qikfox collect?`,answer:`Each product collects only what it needs to work, and every product page has a privacy section that states this in plain terms. qikfox does not build advertising profiles and does not sell personal data.`},{question:`How does qikfox protect me from scams and phishing?`,answer:`Links, downloads and page behavior are assessed against known scam, phishing and malware signals. When something looks unsafe you see a clear warning with the reason, and risky content is blocked before it loads.`},{question:`Can I use qikfox alongside my current browser and antivirus?`,answer:`Yes. qikfox products install alongside existing software and do not require you to remove what you already use. Many people run qikfox Safe Browser for sensitive tasks such as banking and shopping while keeping another browser for everyday work.`},{question:`Do the App Store apps, agents, skills and tools work outside qikfox?`,answer:`They are built for the qikfox environment, where permissions and safety checks are enforced by the browser. Items are reviewed before they are listed, and every listing states what it can access.`},{question:`How do I get help or contact qikfox?`,answer:`The Resources area covers setup, troubleshooting and security guidance, and the contact page routes questions to support, sales, press and security reporting.`}];function Z({title:e,description:t,path:n,ogType:r=`website`,noindex:i}){let a=e.includes(`qikfox`)?e:`${e} | qikfox`;return{meta:[{title:a},{name:`description`,content:t},{property:`og:title`,content:a},{property:`og:description`,content:t},{property:`og:type`,content:r},{property:`og:url`,content:wy(n)},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:a},{name:`twitter:description`,content:t},...i?[{name:`robots`,content:`noindex, follow`}]:[]],links:[{rel:`canonical`,href:wy(n)}]}}function Q(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:e.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:wy(e.path)}))})}}function xb(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`SoftwareApplication`,name:e.name,description:e.description,applicationCategory:e.category,operatingSystem:e.platforms.join(`, `),"@id":`${wy(e.url)}#software`,url:wy(e.url),isPartOf:{"@id":`${wy(`/`)}#website`},publisher:{"@type":`Organization`,name:`qikfox`}})}}function Sb(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Article`,headline:e.headline,description:e.description,mainEntityOfPage:{"@type":`WebPage`,"@id":wy(e.path)},datePublished:e.published,dateModified:e.updated,articleSection:e.section,inLanguage:`en`,author:{"@type":`Organization`,name:`qikfox`},publisher:{"@type":`Organization`,name:`qikfox`}})}}function Cb(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:e.map(e=>
32({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))})}}function wb(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`ItemList`,name:e.name,itemListElement:e.items.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,url:wy(e.path)}))})}}function Tb(e){return{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`WebPage`,"@id":wy(e.path),url:wy(e.path),name:e.name,description:e.description,inLanguage:`en`,isPartOf:{"@id":`${wy(`/`)}#website`},publisher:{"@id":`${wy(`/`)}#organization`},speakable:{"@type":`SpeakableSpecification`,cssSelector:[`h1`,`.text-lead`,`.answer-first`]}})}}var Eb=`modulepreload`,Db=function(e){return`/`+e},Ob={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Db(t,n),t=s(t),t in Ob)return;Ob[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Eb,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},kb=N(`/`)({head:()=>({...Z({title:`qikfox - A Safer Internet Starts Here`,description:`qikfox makes Internet products built around safety, security and privacy: qikfox Search, qikfox
32Safe Browser, qikfox Antivirus and qikfox VPN.`,path:`/`}),scripts:[Tb({name:`qikfox - The Trust Layer for AI-enabled Internet`,description:`qikfox is a cybersecurity and Internet safety company that makes qikfox Search, qikfox Safe Browser, qikfox Antivirus and qikfox VPN.`,path:`/`}),wb({name:`qikfox products`,items:[{name:`qikfox Search`,path:`/search`},{name:`qikfox Safe Browser`,path:`/browser`},{name:`qikfox Antivirus`,path:`/antivirus`},{name:`qikfox VPN`,path:`/vpn`}]}),Cb(bb)]}),component:P(()=>$(()=>import(`./routes-CmbaT-M7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),`component`)}),Ab=N(`/_authenticated`)({beforeLoad:async()=>{let{data:e,error:t}=await Ol.auth.getUser();if(t||!e.user)throw xe({to:`/auth`});return{user:e.user}},component:P(()=>$(()=>import(`./route-xUONBAmj.js`),__vite__mapDeps([11,1])),`component`)}),jb=N(`/about`)({component:P(()=>$(()=>import(`./about-K2qi8GO6.js`),__vite__mapDeps([12,1])),`component`)}),Mb=()=>$(()=>import(`./antivirus-CUf_jHOt.js`),__vite__mapDeps([13,1,4,2,3,5,14,7,15,16,17,18,19])),Nb=`qikfox Antivirus - Total Protection from Online Scams, Malware, and emerging AI threats`,Pb=`qikfox Antivirus reviews files, downloads and applications on Windows, macOS and Android, and works alongside qikfox Safe Browser.`,Fb=N(`/antivirus`)({head:()=>({...Z({title:Nb,description:Pb,path:`/antivirus`}),scripts:[Tb({name:Nb,description:Pb,path:`/antivirus`}),xb({name:`qikfox Antivirus`,description:Pb,category:`SecurityApplication`,platforms:[`Windows`,`macOS`,`Android`],url:`/antivirus`}),Q([{name:`Home`,path:`/`},{name:`Products`,path:`/products`},{name:`qikfox Antivirus`,path:`/antivirus`}])]}),component:P(Mb,`component`)}),Ib=()=>$(()=>import(`./auth-DdMZI3Uv.js`),__vite__mapDeps([20,1,4,21,22,23])),Lb=`qikfox member sign in - manage products, services and tickets`,Rb=`Sign in to the qikfox member portal to see your subscriptions, value added services, invoices and support tickets.`,zb=N(`/auth`)({validateSearch:e=>({redirect:typeof e.redirect==`string`?e.redirect:void 0,plan:typeof e.plan==`string`?e.plan:void 0}),head:()=>({...Z({title:Lb,description:Rb,path:`/auth`,noindex:!0})}),component:P(Ib,`component`)}),Bb=N(`/backoffice`)({head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),beforeLoad:async()=>{let{data:e}=await Ol.auth.getSession();if(!e.session)throw xe({to:`/team-sign-in`})},component:P(()=>$(()=>import(`./backoffice-DRe-j16N.js`),__vite__mapDeps([24,1,25,26,21,22,23,27,4,28])),`component`)}),Vb=()=>$(()=>import(`./billing-help-C_YB5wUU.js`),__vite__mapDeps([29,1,7,2,30,6,15,31,3,4,5])),Hb=`Billing help - payments and receipts | qikfox`,Ub=`Find qikfox payment history and receipts, update payment details, or submit a billing and refund request.`,Wb=N(`/billing-help`)({head:()=>({...Z({title:Hb,description:Ub,path:`/billing-help`}),scripts:[Tb({name:Hb,description:Ub,path:`/billing-help`}),Q([{name:`Home`,path:`/`},{name:`Support`,path:`/support`},{name:`Billing help`,path:`/billing-help`}])]}),component:P(Vb,`component`)}),Gb=N(`/browser`)({component:P(()=>$(()=>import(`./browser-K2qi8GO6.js`),__vite__mapDeps([32,1])),`component`)}),Kb=()=>$(()=>import(`./compare-wkGKT1Ez.js`),__vite__mapDeps([33,1,2,3,4,5])),qb=`Compare browser security, privacy and productivity features | qikfox`,Jb=`Compare qikfox
32Safe Browser with Chrome, Safari, Firefox, Brave, Edge, Internet Explorer and Vivaldi across safety, privacy, productivity and Web3 features.`,Yb=N(`/compare`)({head:()=>({...Z({title:qb,description:Jb,path:`/compare`}),scripts:[Tb({name:qb,description:Jb,path:`/compare`}),Q([{name:`Home`,path:`/`},{name:`Compare features`,path:`/compare`}])]}),component:P(Kb,`component`)}),Xb=()=>$(()=>import(`./contact-GKAX1Huq.js`),__vite__mapDeps([34,1,3,4,2,5,31])),Zb=`Contact qikfox - support, privacy, security, press and partners`,Qb=`Find the right route for your enquiry: product support, privacy and data requests, vulnerability reports, press questions and partnership discussions.`,$b=N(`/contact`)({head:()=>({...Z({title:Zb,description:Qb,path:`/contact`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Contact`,path:`/contact`}])]}),component:P(Xb,`component`)}),ex=N(`/download`)({component:P(()=>$(()=>import(`./download-K2qi8GO6.js`),__vite__mapDeps([35,1])),`component`)}),tx=N(`/legal`)({component:P(()=>$(()=>import(`./legal-K2qi8GO6.js`),__vite__mapDeps([36,1])),`component`)}),nx=()=>$(()=>import(`./newsroom-C5fkozCL.js`),__vite__mapDeps([37,1,3,4,2,5,31])),rx=`Newsroom - qikfox company announcements`,ix=`Official qikfox announcements: product launches, platform availability and company news, with press contacts for follow-up questions.`,ax=N(`/newsroom`)({head:()=>({...Z({title:rx,description:ix,path:`/newsroom`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Newsroom`,path:`/newsroom`}])]}),component:P(nx,`component`)}),ox=()=>$(()=>import(`./partners-CzAwDvp3.js`),__vite__mapDeps([38,1,3,4,2,5,31])),sx=`Partners - distribute and integrate qikfox`,cx=`Partnership models for qikfox: distribution and bundling, OEM preloads, telecom and ISP offers, education and non-profit programmes, and integrations.`,lx=N(`/partners`)({head:()=>({...Z({title:sx,description:cx,path:`/partners`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Partners`,path:`/partners`}])]}),component:P(ox,`component`)}),ux=()=>$(()=>import(`./press-8xyxeHQn.js`),__vite__mapDeps([39,1,3,4,2,5,31])),dx=`Press - qikfox media resources and contacts`,fx=`Boilerplate descriptions of qikfox and its four products, brand and trademark guidance, and how journalists can reach us for factual checks.`,px=N(`/press`)({head:()=>({...Z({title:dx,description:fx,path:`/press`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Press`,path:`/press`}])]}),component:P(ux,`component`)}),mx=A({method:`GET`}).handler(_e(`2a45d9b79d4ba9547992f1eac18039c2bae0ddf7df7670a8638b3bf5e0a6962f`)),hx=()=>$(()=>import(`./pricing-Dfyq67BZ.js`),__vite__mapDeps([40,1,4,2,3,5,41,31])),gx=`qikfox Browser pricing - Plus, Premium and Ultimate plans`,_x=`Compare qikfox Browser Plus, Premium and Ultimate plans. Monthly subscriptions are billed through Stripe, annual subscriptions through Shopify, and every plan appears in your member portal.`,vx=N(`/pricing`)({loader:()=>mx(),head:()=>({...Z({title:gx,description:_x,path:`/pricing`})}),component:P(hx,`component`)}),yx=()=>$(()=>import(`./privacy-hywNgV2x.js`),__vite__mapDeps([42,1,3,4,2,5,31,18])),bx=`Privacy at qikfox - our approach to your personal data`,xx=`The principles behind how qikfox products handle personal data, and where to find the specific commitments in our privacy policy.`,Sx=N(`/privacy`)({head:()=>({...Z({title:bx,description:xx,path:`/privacy`}),scripts:[Tb({name:bx,description:xx,path:`/privacy`}),Q([{name:`Home`,path:`/`},{name:`Privacy`,path:`/privacy`}])]}),component:P(yx,`component`)}),Cx=()=>$(()=>import(`./privacy-choices-BtnRKNXl.js`),__vite__mapDeps([43,1,4,31,3,2,5])),wx=`Your privacy choices - qikfox`,Tx=`Set what qikfox may store in your browser, see the privacy rights that apply in your US state, and send a request about your personal information.`,Ex=N(`/privacy-choices`)({head:()=>({...Z({title:wx,description:Tx,path:`/privacy-choices`})}),component:P(Cx,`component`)}),Dx=()=>$(()=>import(`./product-activation-hn30osgV.js`),__vite__mapDeps([44,1,17,2,30,6,15,31,3,4,5])),Ox=`Product activation - activate qikfox Antivirus`,kx=`Download qikfox Antivirus, sign in with the account used for purchase, and confirm that protection is active.`,Ax=N(`/product-activation`)({head:()=>({...Z({title:Ox,description:kx,path:`/product-activation`}),scripts:[Tb({name:Ox,description:kx,path:`/product-activation`}),Q([{name:`Home`,path:`/`},{name:`Support`,path:`/support`},{name:`Product activation`,path:`/product-activation`}])]}),component:P(Dx,`component`)}),jx=()=>$(()=>import(`./products-DNHnC7S9.js`),__vite__mapDeps([45,1,3,4,2,5,18])),Mx=`qikfox products - Search, Safe Browser, Antivirus and VPN`,Nx=`Compare the four qikfox products: qikfox Search, qikfox
32Safe Browser, qikfox Antivirus and qikfox VPN. See what each one protects and how they work together.`,Px=N(`/products`)({head:()=>({...Z({title:Mx,description:Nx,path:`/products`}),scripts:[Tb({name:Mx,description:Nx,path:`/products`}),wb({name:`qikfox products`,items:[{name:`qikfox Search`,path:`/search`},{name:`qikfox Safe Browser`,path:`/browser`},{name:`qikfox Antivirus`,path:`/antivirus`},{name:`qikfox VPN`,path:`/vpn`}]}),Q([{name:`Home`,path:`/`},{name:`Products`,path:`/products`}])]}),component:P(jx,`component`)}),Fx=()=>$(()=>import(`./renewal-help-BMSA2E9N.js`),__vite__mapDeps([46,1,16,2,30,6,15,31,3,4,5])),Ix=`Renewal help - qikfox subscription renewals`,Lx=`Review your qikfox renewal date, stop a future renewal, or resume renewal from the member portal.`,Rx=N(`/renewal-help`)({head:()=>({...Z({title:Ix,description:Lx,path:`/renewal-help`}),scripts:[Tb({name:Ix,description:Lx,path:`/renewal-help`}),Q([{name:`Home`,path:`/`},{name:`Support`,path:`/support`},{name:`Renewal help`,path:`/renewal-help`}])]}),component:P(Fx,`component`)}),zx=N(`/reset-password`)({head:()=>({...Z({title:`Set a new qikfox password`,description:`Choose a new password for your qikfox member account.`,path:`/reset-password`,noindex:!0})}),component:P(()=>$(()=>import(`./reset-password-B5vo_nzo.js`),__vite__mapDeps([47,1,4])),`component`)}),Bx=N(`/resources`)({component:P(()=>$(()=>import(`./resources-K2qi8GO6.js`),__vite__mapDeps([48,1])),`component`)}),Vx=()=>$(()=>import(`./safety-BmB8ixvS.js`),__vite__mapDeps([49,1,3,4,2,5,31,18])),Hx=`Safety at qikfox - protecting people from everyday online harm`,Ux=`How qikfox approaches Internet safety: deceptive sites, unsafe downloads, scams and the ordinary moments where people get caught out.`,Wx=N(`/safety`)({head:()=>({...Z({title:Hx,description:Ux,path:`/safety`}),scripts:[Tb({name:Hx,description:Ux,path:`/safety`}),Q([{name:`Home`,path:`/`},{name:`Safety`,path:`/safety`}])]}),component:P(Vx,`component`)}),Gx=()=>$(()=>import(`./search-CZiNYd7b.js`),__vite__mapDeps([50,1,3,4,2,5,18])),Kx=`qikfox Search - Search the Internet with safety built in`,qx=`qikfox Search is a web search experience that shows safety context with results, and works alongside qikfox Safe Browser.`,Jx=N(`/search`)({head:()=>({...Z({title:Kx,description:qx,path:`/search`}),scripts:[Tb({name:Kx,description:qx,path:`/search`}),xb({name:`qikfox Search`,description:qx,category:`SearchApplication`,platforms:[`Web`],url:`/search`}),Q([{name:`Home`,path:`/`},{name:`Products`,path:`/products`},{name:`qikfox Search`,path:`/search`}])]}),component:P(Gx,`component`)}),Yx=()=>$(()=>import(`./security-C0AFCsg8.js`),__vite__mapDeps([51,1,3,4,2,5,31,18])),Xx=`Security at qikfox - how we build and protect our software`,Zx=`Our engineering and operational security practices: updates, isolation, account protection, vulnerability disclosure and incident response.`,Qx=N(`/security`)({head:()=>({...Z({title:Xx,description:Zx,path:`/security`}),scripts:[Tb({name:Xx,description:Zx,path:`/security`}),Q([{name:`Home`,path:`/`},{name:`Security`,path:`/security`}])]}),component:P(Yx,`component`)}),$x=()=>$(()=>import(`./security-center-Bzkb8TA0.js`),__vite__mapDeps([52,1,21,22,23,3,4,2,5,31])),eS=`Security Center - advisories and reporting for qikfox products`,tS=`Report a security issue in a qikfox product, understand what happens next, and follow published advisories and fixes.`,nS=N(`/security-center`)({head:()=>({...Z({title:eS,description:tS,path:`/security-center`}),scripts:[Tb({name:eS,description:tS,path:`/security-center`}),Q([{name:`Home`,path:`/`},{name:`Security Center`,path:`/security-center`}])]}),component:P($x,`component`)}),rS=()=>$(()=>import(`./subscription-help-CyIrTIN-.js`),__vite__mapDeps([53,1,14,2,30,6,15,31,3,4,5])),iS=`Subscription help - manage your qikfox plan`,aS=`Understand your qikfox subscription, review plan details, and manage monthly or annual protection from the member portal.`,oS=N(`/subscription-help`)({head:()=>({...Z({title:iS,description:aS,path:`/subscription-help`}),scripts:[Tb({name:iS,description:aS,path:`/subscription-help`}),Q([{name:`Home`,path:`/`},{name:`Support`,path:`/support`},{name:`Subscription help`,path:`/subscription-help`}])]}),component:P(rS,`component`)}),sS=()=>$(()=>import(`./support-WEtMnp9I.js`),__vite__mapDeps([54,1,3,4,2,5,31])),cS=`Support - get help with qikfox products | qikfox`,lS=`Get help with qikfox Search, Safe Browser, Antivirus and VPN: installation, accounts, billing, protection settings and how to reach a human.`,uS=N(`/support`)({head:()=>({...Z({title:cS,description:lS,path:`/support`}),scripts:[Tb({name:cS,description:lS,path:`/support`}),Q([{name:`Home`,path:`/`},{name:`Support`,path:`/support`}])]}),component:P(sS,`component`)}),dS=N(`/team-invite`)({head:()=>({meta:[{title:`Accept your qikfox team invitation`},{name:`description`,content:`Join the qikfox team back office using the invitation sent to your work email address.`},{name:`robots`,content:`noindex, nofollow`}]}),validateSearch:e=>({token:String(e.token??``)}),component:P(()=>$(()=>import(`./team-invite-CL-KUrl1.js`),__vite__mapDeps([55,1,26,21,22,23,28])),`component`)}),fS=N(`/team-sign-in`)({head:()=>({...Z({title:`qikfox team sign in`,description:`Sign in to the qikfox back office.`,path:`/team-sign-in`,noindex:!0})}
32),component:P(()=>$(()=>import(`./team-sign-in-DLPFLGAZ.js`),__vite__mapDeps([56,1,4])),`component`)}),pS=()=>$(()=>import(`./technology-CE36tW2P.js`),__vite__mapDeps([57,1,3,4,2,5,31])),mS=`Technology - how qikfox products are built`,hS=`The engineering approach behind qikfox Search, Safe Browser, Antivirus and VPN: local-first decisions, shared signals and a documented update path.`,gS=N(`/technology`)({head:()=>({...Z({title:mS,description:hS,path:`/technology`}),scripts:[Tb({name:mS,description:hS,path:`/technology`}),Q([{name:`Home`,path:`/`},{name:`Technology`,path:`/technology`}])]}),component:P(pS,`component`)}),_S=()=>$(()=>import(`./transparency-D2F0PLt1.js`),__vite__mapDeps([58,1,3,4,2,5,31])),vS=`Transparency - what qikfox publishes about data requests`,yS=`Our approach to transparency reporting: how qikfox handles government and legal requests for user data, and what we commit to publishing.`,bS=N(`/transparency`)({head:()=>({...Z({title:vS,description:yS,path:`/transparency`}),scripts:[Tb({name:vS,description:yS,path:`/transparency`}),Q([{name:`Home`,path:`/`},{name:`Transparency`,path:`/transparency`}])]}),component:P(_S,`component`)}),xS=()=>$(()=>import(`./trust-CSSkrQuK.js`),__vite__mapDeps([59,1,3,4,2,5,31])),SS=`Trust Center - qikfox practices, policies and documentation`,CS=`One place for the documents behind qikfox: privacy and security practices, disclosure policy, transparency reporting and how to reach the right team.`,wS=N(`/trust`)({head:()=>({...Z({title:SS,description:CS,path:`/trust`}),scripts:[Tb({name:SS,description:CS,path:`/trust`}),Q([{name:`Home`,path:`/`},{name:`Trust Center`,path:`/trust`}])]}),component:P(xS,`component`)}),TS=N(`/vpn`)({component:P(()=>$(()=>import(`./vpn-K2qi8GO6.js`),__vite__mapDeps([60,1])),`component`)}),ES=()=>$(()=>import(`./welcome-BtKfFV5p.js`),__vite__mapDeps([61,1,4,25,2,62,21,22,23])),DS=`Finish setting up your qikfox membership account`,OS=`Set your password to finish creating the qikfox membership account for the plan you just purchased, and confirm your email address with the code we send you.`,kS=N(`/welcome`)({validateSearch:e=>({token:typeof e.token==`string`?e.token:void 0}),head:()=>({...Z({title:DS,description:OS,path:`/welcome`,noindex:!0})}),component:P(ES,`component`)}),AS=`/why-ai-era-needs-a-smart-browser`,jS=()=>$(()=>import(`./why-ai-era-needs-a-smart-browser-BtIOnoRk.js`),__vite__mapDeps([63,1,3,4,2,5,31])),MS=`Why AI Era requires a Smart browser like Qikfox?`,NS=`AI changed how people search, shop, work and get attacked. This page explains why a smart, AI-first browser is now the practical place to enforce safety, security and privacy.`,PS=N(`/why-ai-era-needs-a-smart-browser`)({head:()=>({...Z({title:MS,description:NS,path:AS}),scripts:[Tb({name:MS,description:NS,path:AS}),Q([{name:`Home`,path:`/`},{name:`Why the AI era needs a smart browser`,path:AS}])]}),component:P(jS,`component`)}),FS=N(`/_authenticated/portal`)({head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:P(()=>$(()=>import(`./portal-D2qgZJfh.js`),__vite__mapDeps([64,1,4])),`component`)}),IS=()=>$(()=>import(`./about.index-Cq_W2Nz6.js`),__vite__mapDeps([65,1,3,4,2,5,31])),LS=`About qikfox - a cybersecurity and Internet safety company`,RS=`qikfox builds four consumer products - Search, Safe Browser, Antivirus and VPN - around the ordinary moments where people are put at risk online.`,zS=N(`/about/`)({head:()=>({...Z({title:LS,description:RS,path:`/about`}),scripts:[Q([{name:`Home`,path:`/`},{name:`About`,path:`/about`}])]}),component:P(IS,`component`)}),BS=()=>$(()=>import(`./about.careers-N14m2A1y.js`),__vite__mapDeps([66,1,3,4,2,5,31])),VS=`Careers - build Internet safety software at qikfox`,HS=`How hiring works at qikfox, the kinds of roles we hire for across the four products, and how to get in touch when nothing is posted.`,US=N(`/about/careers`)({head:()=>({...Z({title:VS,description:HS,path:`/about/careers`}),scripts:[Q([{name:`Home`,path:`/`},{name:`About`,path:`/about`},{name:`Careers`,path:`/about/careers`}])]}),component:P(BS,`component`)}),WS=()=>$(()=>import(`./about.company-DDmejspv.js`),__vite__mapDeps([67,1,3,4,2,5,31])),GS=`Company - how qikfox is organised`,KS=`How qikfox is structured, how the product teams work, and where to find company announcements, press resources and partnership contacts.`,qS=N(`/about/company`)({head:()=>({...Z({title:GS,description:KS,path:`/about/company`}),scripts:[Q([{name:`Home`,path:`/`},{name:`About`,path:`/about`},{name:`Company`,path:`/about/company`}])]}),component:P(WS,`component`)}),JS=()=>$(()=>import(`./about.mission-BYbRM-0A.js`),__vite__mapDeps([68,1,3,4,2,5,31])),YS=`Mission - why qikfox builds these four products`,XS=`qikfox exists to make everyday Internet use safer without asking people to become security experts. Our mission, principles and the promises we refuse to make.`,ZS=N(`/about/mission`)({head:()=>({...Z({title:YS,description:XS,path:`/about/mission`}),scripts:[Q([{name:`Home`,path:`/`},{name:`About`,path:`/about`},{name:`Mission`,path:`/about/mission`}])]}),component:P(JS,`component`)}),QS=N(`/app-store/`)({head:()=>({...Z({title:`qikfox App Store - Apps for the Safe Browser`,description:`Browse apps and extensions for qikfox
32Safe Browser by category, with featured picks, popular listings and new arrivals.`,path:`/app-store`}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`}])]}),component:P(()=>$(()=>import(`./app-store.index-CeqwWnlC.js`),__vite__mapDeps([69,1,70,4,71,2,5,8])),`component`)}),$S=N(`/backoffice/`)({component:P(()=>$(()=>import(`./backoffice.index-B2oevHQZ.js`),__vite__mapDeps([72,1,4,25,41,26,21,22,23,27])),`component`)}),eC=N(`/backoffice/bookings`)({component:P(()=>$(()=>import(`./backoffice.bookings-DeQ2qsID.js`),__vite__mapDeps([73,1,25,74,26,21,22,23,27,4,28])),`component`)}),tC=N(`/backoffice/signups`)({component:P(()=>$(()=>import(`./backoffice.signups-CQ0a8ifs.js`),__vite__mapDeps([75,1,25,74,41,26,21,22,23,27,4])),`component`)}),nC=N(`/backoffice/subscribers`)({component:P(()=>$(()=>import(`./backoffice.subscribers-Cl1YlS9m.js`),__vite__mapDeps([76,1,4,25,41,26,21,22,23,27])),`component`)}),rC=N(`/backoffice/team`)({component:P(()=>$(()=>import(`./backoffice.team-Wf3XBTaF.js`),__vite__mapDeps([77,1,25,74,26,21,22,23,27,4,28])),`component`)}),iC=()=>$(()=>import(`./browser.index-lx1kMPKd.js`),__vite__mapDeps([78,1,3,4,2,5,18,9,10])),aC=`qikfox Safe Browser - Browse with protection working around you`,oC=`qikfox Safe Browser is a web browser for Windows, macOS, Linux, Android and iOS with safety, security and privacy settings built into one readable panel.`,sC=N(`/browser/`)({head:()=>({...Z({title:aC,description:oC,path:`/browser`}),scripts:[Tb({name:aC,description:oC,path:`/browser`}),xb({name:`qikfox Safe Browser`,description:oC,category:`WebBrowser`,platforms:[`Windows`,`macOS`,`Linux`,`Android`,`iOS`],url:`/browser`}),Q([{name:`Home`,path:`/`},{name:`Products`,path:`/products`},{name:`qikfox Safe Browser`,path:`/browser`}])]}),component:P(iC,`component`)}),cC=()=>$(()=>import(`./browser.safety-BFVCILEC.js`),__vite__mapDeps([79,1,3,4,2,5,31])),lC=`Browser safety features - qikfox Safe Browser`,uC=`How qikfox Safe Browser handles deceptive sites, unsafe downloads, permissions and insecure connections, and how you control each behaviour.`,dC=N(`/browser/safety`)({head:()=>({...Z({title:lC,description:uC,path:`/browser/safety`}),scripts:[Tb({name:lC,description:uC,path:`/browser/safety`}),Q([{name:`Home`,path:`/`},{name:`qikfox Safe Browser`,path:`/browser`},{name:`Safety features`,path:`/browser/safety`}])]}),component:P(cC,`component`)}),fC=()=>$(()=>import(`./download.index-CjP8o4D3.js`),__vite__mapDeps([80,1,3,4,2,5,31])),pC=`Download qikfox - Windows, macOS, Linux, Android and iOS`,mC=`Download qikfox Safe Browser, qikfox Antivirus and qikfox VPN for your platform, with system requirements and installation notes for each build.`,hC=N(`/download/`)({head:()=>({...Z({title:pC,description:mC,path:`/download`}),scripts:[Tb({name:pC,description:mC,path:`/download`}),wb({name:`qikfox downloads by platform`,items:Qu.map(e=>({name:e.label,path:e.to}))}),Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`}])]}),component:P(fC,`component`)}),gC=()=>$(()=>import(`./download.android-BCx43oH8.js`),__vite__mapDeps([81,1,3,4,2,5,31])),_C=`Download qikfox for Android - browser, antivirus and VPN`,vC=`Download qikfox for Android. Phones and tablets running Android 9 or later. Includes system requirements, availability and how updates are delivered.`,yC=N(`/download/android`)({head:()=>({...Z({title:_C,description:vC,path:`/download/android`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`},{name:`Android`,path:`/download/android`}])]}),component:P(gC,`component`)}),bC=()=>$(()=>import(`./download.ios-l59Amv0q.js`),__vite__mapDeps([82,1,3,4,2,5,31])),xC=`Download qikfox for iOS - Safe Browser and VPN`,SC=`Download qikfox for iOS. iPhone and iPad running iOS 16 or later. Includes system requirements, availability and how updates are delivered.`,CC=N(`/download/ios`)({head:()=>({...Z({title:xC,description:SC,path:`/download/ios`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`},{name:`iOS`,path:`/download/ios`}])]}),component:P(bC,`component`)}),wC=()=>$(()=>import(`./download.linux-DGLKXhiH.js`),__vite__mapDeps([83,1,3,4,2,5,31])),TC=`Download qikfox for Linux - Safe Browser and VPN`,EC=`Download qikfox for Linux. Debian, Ubuntu and Fedora builds. Includes system requirements, availability and how updates are delivered.`,DC=N(`/download/linux`)({head:()=>({...Z({title:TC,description:EC,path:`/download/linux`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`},{name:`Linux`,path:`/download/linux`}])]}),component:P(wC,`component`)}),OC=()=>$(()=>import(`./download.mac-DMxW5tq3.js`),__vite__mapDeps([84,1,3,4,2,5,31])),kC=`Download qikfox for macOS - browser, antivirus and VPN`,AC=`Download qikfox for macOS. macOS 12 or later, Apple silicon and Intel. Includes system requirements, availability and how updates are delivered.`,jC=N(`/download/mac`)({head:()=>({...Z({title:kC,description:AC,path:`/download/mac`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`},{name:`macOS`,path:`/download/mac`}])]}),component:P(OC,`component`)}),MC=()=>$(()=>import(`./download.windows-BCJ4n5S7.js`),__vite__mapDeps([85,1,3,4,2,5,31])),NC=`Download qikfox for Windows - browser, antivirus and VPN`,PC=`Download qikfox for Windows. Windows 10 and Windows 11, 64-bit. Includes system requirements, availability and how updates are delivered.`,FC=N(`/download/windows`)({head:()=>({...Z({title:NC,description:PC,path:`/download/windows`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Download`,path:`/download`},{name:`Windows`,path:`/download/windows`}])]}),component:P(MC,`component`)}),IC=()=>$(()=>import(`./legal.index-BFc6gi-p.js`),__vite__mapDeps([86,1,3,4,2,5,31])),LC=`Legal - qikfox policies and agreements`,RC=`Index of qikfox legal documents, including the privacy policy, terms of service, and the transparency and security policies referenced by our products.`,zC=N(`/legal/`)({head:()=>({...Z({title:LC,description:RC,path:`/legal`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`}])]}),component:P(IC,`component`)}),BC=()=>$(()=>import(`./legal.acceptable-use-KoPipM05.js`),__vite__mapDeps([87,1,3,4,2,5,31])),VC=`Acceptable Use Policy - qikfox`,HC=`What is and is not permitted when using qikfox products and services, how we handle abuse reports, and what enforcement looks like.`,UC=N(`/legal/acceptable-use`)({head:()=>({...Z({title:VC,description:HC,path:`/legal/acceptable-use`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Acceptable Use`,path:`/legal/acceptable-use`}])]}),component:P(BC,`component`)}),WC=()=>$(()=>import(`./legal.accessibility-D4B7w6RH.js`),__vite__mapDeps([88,1,3,4,2,5,31])),GC=`Accessibility Statement - qikfox`,KC=`qikfox targets WCAG 2.2 Level AA across its products and this website. What that means in practice, known limitations, and how to report a barrier.`,qC=N(`/legal/accessibility`)({head:()=>({...Z({title:GC,description:KC,path:`/legal/accessibility`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Accessibility`,path:`/legal/accessibility`}])]}),component:P(WC,`component`)}),JC=()=>$(()=>import(`./legal.cookie-policy-Cu2I6779.js`),__vite__mapDeps([89,1,3,4,2,5,31])),YC=`Cookie Policy - qikfox`,XC=`How qikfox uses cookies and similar storage on this website, which categories exist, and how to control them in your browser.`,ZC=N(`/legal/cookie-policy`)({head:()=>({...Z({title:YC,description:XC,path:`/legal/cookie-policy`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Cookie Policy`,path:`/legal/cookie-policy`}])]}),component:P(JC,`component`)}),QC=()=>$(()=>import(`./legal.privacy-policy-B5t2M4tJ.js`),__vite__mapDeps([90,1,3,4,2,5,31])),$C=`Privacy Policy - qikfox`,ew=`The qikfox Privacy Policy: what the Smart Browser, Wallet, qikPay, Subscriptions and Credits collect, how
32it is used, who it is disclosed to, retention periods and your rights.`,tw=N(`/legal/privacy-policy`)({head:()=>({...Z({title:$C,description:ew,path:`/legal/privacy-policy`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Privacy Policy`,path:`/legal/privacy-policy`}])]}),component:P(QC,`component`)}),nw=()=>$(()=>import(`./legal.refund-policy-a2_jp9uo.js`),__vite__mapDeps([91,1,3,4,2,5,31])),rw=`Refund and Cancellation Policy - qikfox`,iw=`When you can get a refund for a qikfox subscription or product, how to cancel online in the member portal, and the consumer rights that apply in North America.`,aw=N(`/legal/refund-policy`)({head:()=>({...Z({title:rw,description:iw,path:`/legal/refund-policy`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Refund and Cancellation Policy`,path:`/legal/refund-policy`}])]}),component:P(nw,`component`)}),ow=()=>$(()=>import(`./legal.responsible-disclosure-DmhQd1-r.js`),__vite__mapDeps([92,1,3,4,2,5,31])),sw=`Responsible Disclosure Policy - qikfox`,cw=`How to report a security vulnerability in a qikfox product, what is in scope, what to expect after reporting, and our safe-harbour commitment.`,lw=N(`/legal/responsible-disclosure`)({head:()=>({...Z({title:sw,description:cw,path:`/legal/responsible-disclosure`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Responsible Disclosure`,path:`/legal/responsible-disclosure`}])]}),component:P(ow,`component`)}),uw=()=>$(()=>import(`./legal.terms-Crie55jO.js`),__vite__mapDeps([93,1,3,4,2,5,31])),dw=`Terms of Service - qikfox`,fw=`The terms governing use of qikfox Search, Safe Browser, Antivirus and VPN, including acceptable use, subscriptions, warranties and liability.`,pw=N(`/legal/terms`)({head:()=>({...Z({title:dw,description:fw,path:`/legal/terms`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Legal`,path:`/legal`},{name:`Terms of Service`,path:`/legal/terms`}])]}),component:P(uw,`component`)}),mw=()=>$(()=>import(`./resources.index-oVDur4WB.js`),__vite__mapDeps([94,1,3,4,2,5,31])),hw=`Resources - qikfox guides, blog and Help Center`,gw=`Guides to online safety, writing from The Perspective, and answers to common questions in the Help Center.`,_w=N(`/resources/`)({head:()=>({...Z({title:hw,description:gw,path:`/resources`}),scripts:[Tb({name:hw,description:gw,path:`/resources`}),Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`}])]}),component:P(mw,`component`)}),vw=()=>$(()=>import(`./resources.help-DzIAMCOn.js`),__vite__mapDeps([95,1,3,4,2,5,31])),yw=`Help Center - installation, accounts and troubleshooting | qikfox`,bw=`Answers for installing, updating and troubleshooting qikfox Search, Safe Browser, Antivirus and VPN, plus how to reach support.`,xw=N(`/resources/help`)({head:()=>({...Z({title:yw,description:bw,path:`/resources/help`}),scripts:[Tb({name:yw,description:bw,path:`/resources/help`}),Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Help Center`,path:`/resources/help`}])]}),component:P(vw,`component`)}),Sw=()=>$(()=>import(`./vpn.index-D3eukxgT.js`),__vite__mapDeps([96,1,3,4,2,5,18,19])),Cw=`qikfox VPN - Encrypt the connection leaving your device`,ww=`qikfox VPN encrypts your device's Internet traffic and replaces your IP address with a qikfox server address, on Windows, macOS, Linux, Android and iOS.`,Tw=N(`/vpn/`)({head:()=>({...Z({title:Cw,description:ww,path:`/vpn`}),scripts:[Tb({name:Cw,description:ww,path:`/vpn`}),xb({name:`qikfox VPN`,description:ww,category:`SecurityApplication`,platforms:[`Windows`,`macOS`,`Linux`,`Android`,`iOS`],url:`/vpn`}),Q([{name:`Home`,path:`/`},{name:`Products`,path:`/products`},{name:`qikfox VPN`,path:`/vpn`}])]}),component:P(Sw,`component`)}),Ew=()=>$(()=>import(`./vpn.how-it-works-Ble1ifTM.js`),__vite__mapDeps([97,1,3,4,2,5,31])),Dw=`How qikfox VPN works - the tunnel, step by step`,Ow=`A plain-language explanation of what qikfox VPN does to your Internet traffic, who can see what, and what a VPN cannot protect you from.`,kw=N(`/vpn/how-it-works`)({head:()=>({...Z({title:Dw,description:Ow,path:`/vpn/how-it-works`}),scripts:[Tb({name:Dw,description:Ow,path:`/vpn/how-it-works`}),Q([{name:`Home`,path:`/`},{name:`qikfox VPN`,path:`/vpn`},{name:`How it works`,path:`/vpn/how-it-works`}
32])]}),component:P(Ew,`component`)}),Aw=N(`/_authenticated/portal/`)({component:P(()=>$(()=>import(`./portal.index-BPfXW-ru.js`),__vite__mapDeps([98,1,4,25,99,21,22,23,41])),`component`)}),jw=N(`/_authenticated/portal/account`)({component:P(()=>$(()=>import(`./portal.account-D6TS2Qld.js`),__vite__mapDeps([100,1,4,25,74,99,21,22,23,41])),`component`)}),Mw=N(`/_authenticated/portal/services`)({component:P(()=>$(()=>import(`./portal.services-C_tF-auW.js`),__vite__mapDeps([101,1,4,25,99,21,22,23,41])),`component`)}),Nw=N(`/_authenticated/portal/subscriptions`)({component:P(()=>$(()=>import(`./portal.subscriptions-D5vqq-_d.js`),__vite__mapDeps([102,1,4,25,74,99,21,22,23,41,62])),`component`)}),Pw=N(`/app-store/agents/`)({head:()=>({...Z({title:`qikfox App Store - Agents`,description:`Browse AI agents for qikfox Safe Browser by category: research, security ops, automation, writing, data and more.`,path:`/app-store/agents`}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Agents`,path:`/app-store/agents`}])]}),component:P(()=>$(()=>import(`./app-store.agents.index-Sk_7fzaP.js`),__vite__mapDeps([103,1,70,4,71,2,5,8])),`component`)}),Fw={apps:{kind:`apps`,label:`Apps`,path:`/app-store`,heading:`Verified Apps for qikfox Browser`,intro:`Keeping Internet safe is not just about the browser or the search engine, it is about all the Web Apps that you can run in a trusted environment. No malware means a safer Internet`,categories:[{slug:`security`,name:`Security`,blurb:`Scanners, password tools and device hardening utilities.`,accent:`blue`},{slug:`privacy`,name:`Privacy`,blurb:`Trackers, permissions and data-minimising extensions.`,accent:`teal`},{slug:`productivity`,name:`Productivity`,blurb:`Tabs, notes, reading and workflow helpers.`,accent:`green`},{slug:`developer-tools`,name:`Developer Tools`,blurb:`Inspectors, request loggers and testing helpers.`,accent:`lavender`},{slug:`communication`,name:`Communication`,blurb:`Mail, messaging and meeting companions.`,accent:`yellow`},{slug:`media`,name:`Media`,blurb:`Video, audio, images and reader-friendly viewers.`,accent:`blue`},{slug:`shopping`,name:`Shopping`,blurb:`Price checks, receipts and merchant safety signals.`,accent:`green`},{slug:`education`,name:`Education`,blurb:`Study, research and language tools.`,accent:`teal`}],items:[{slug:`site-shield`,name:`Site Shield`,developer:`qikfox Labs`,category:`security`,tagline:`Flags deceptive pages before they load.`,description:`Checks a destination against qikfox safety signals and shows a readable warning instead of a silent block.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],featured:!0,popular:!0},{slug:`download-guard`,name:`Download Guard`,developer:`qikfox Labs`,category:`security`,tagline:`Reviews every file on arrival.`,description:`Hands new downloads to qikfox Antivirus and keeps a plain-language record of what was found.`,price:`Free`,platforms:[`Windows`,`macOS`],popular:!0},{slug:`vault-keys`,name:`Vault Keys`,developer:`Northgate Software`,category:`security`,tagline:`Passwords and passkeys in one place.`,description:`A local-first credential manager with passkey support and an audit view for reused passwords.`,price:`Free trial`,platforms:[`Windows`,`macOS`,`Android`,`iOS`],featured:!0},{slug:`tracker-atlas`,name:`Tracker Atlas`,developer:`Openpath`,category:`privacy`,tagline:`See who is watching a page.`,description:`Lists third-party requests per site and lets you block families of trackers rather than single domains.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],popular:!0,isNew:!0},{slug:`permission-desk`,name:`Permission Desk`,developer:`qikfox Labs`,category:`privacy`,tagline:`One panel for site permissions.`,description:`Camera, microphone, location and clipboard access grouped by site with expiry dates you choose.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`]},{slug:`tab-atlas`,name:`Tab Atlas`,developer:`Fernpost`,category:`productivity`,tagline:`Sessions instead of tab sprawl.`,description:`Groups tabs into named sessions, suspends what you are not using and restores context on demand.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],featured:!0,popular:!0},{slug:`readerly`,name:`Readerly`,developer:`Fernpost`,category:`media`,tagline:`Clean reading for long articles.`,description:`Strips page furniture, remembers where you stopped and exports a readable copy.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`,`Android`],isNew:!0},{slug:`clip-notes`,name:`Clip Notes`,developer:`Studio Marlow`,category:`productivity`,tagline:`Capture a quote with its source.`,description:`Saves highlighted text with the URL, time and
32your note so citations stay intact.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],isNew:!0},{slug:`request-lens`,name:`Request Lens`,developer:`Hollowfield`,category:`developer-tools`,tagline:`A quieter network inspector.`,description:`Filters noisy requests, diffs responses between reloads and exports a shareable trace.`,price:`Paid`,platforms:[`Windows`,`macOS`,`Linux`],popular:!0},{slug:`schema-scout`,name:`Schema Scout`,developer:`Hollowfield`,category:`developer-tools`,tagline:`Validate structured data in place.`,description:`Reads JSON-LD on the current page and reports missing or conflicting properties.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],isNew:!0},{slug:`mailmark`,name:`Mailmark`,developer:`Cordell`,category:`communication`,tagline:`Suspicious-mail checks in the browser.`,description:`Highlights lookalike senders and link mismatches inside webmail without reading message bodies.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`],popular:!0},{slug:`meet-companion`,name:`Meet Companion`,developer:`Cordell`,category:`communication`,tagline:`Agendas and notes beside a call.`,description:`Keeps an agenda, action items and a timer next to any browser-based meeting.`,price:`Free`,platforms:[`Windows`,`macOS`]},{slug:`framecast`,name:`Framecast`,developer:`Studio Marlow`,category:`media`,tagline:`Picture-in-picture that behaves.`,description:`A resizable player with per-site volume memory and keyboard control.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`]},{slug:`cartcheck`,name:`Cartcheck`,developer:`Northgate Software`,category:`shopping`,tagline:`Merchant signals before you pay.`,description:`Shows domain age, contact details and known complaint patterns on checkout pages.`,price:`Free`,platforms:[`Windows`,`macOS`,`Android`],featured:!0,isNew:!0},{slug:`receipt-box`,name:`Receipt Box`,developer:`Cordell`,category:`shopping`,tagline:`Order confirmations, collected.`,description:`Files receipts from your inbox into one searchable list with return windows highlighted.`,price:`Free trial`,platforms:[`Windows`,`macOS`]},{slug:`lexicon`,name:`Lexicon`,developer:`Openpath`,category:`education`,tagline:`Reading support for study.`,description:`Inline definitions, translation and a vocabulary list you can revise later.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`,`Android`,`iOS`],popular:!0},{slug:`citefast`,name:`Citefast`,developer:`Openpath`,category:`education`,tagline:`Citations without retyping.`,description:`Builds a reference entry from the current page in the style you select.`,price:`Free`,platforms:[`Windows`,`macOS`,`Linux`]}]},agents:{kind:`agents`,label:`Agents`,path:`/app-store/agents`,heading:`Agents for the AI-enabled Internet`,intro:`Agents that act inside the browser on your behalf. Each listing states the work it performs and where a person stays in the loop.`,categories:[{slug:`research`,name:`Research`,blurb:`Agents that read, compare and summarise sources.`,accent:`lavender`},{slug:`security-ops`,name:`Security Ops`,blurb:`Agents that triage alerts and check exposure.`,accent:`blue`},{slug:`automation`,name:`Automation`,blurb:`Agents that carry out repetitive browser work.`,accent:`green`},{slug:`writing`,name:`Writing`,blurb:`Drafting, editing and tone-checking agents.`,accent:`yellow`},{slug:`data`,name:`Data`,blurb:`Extraction, cleaning and spreadsheet agents.`,accent:`teal`},{slug:`support`,name:`Customer Support`,blurb:`Agents that answer, route and follow up.`,accent:`green`}
32,{slug:`finance`,name:`Finance`,blurb:`Invoice, expense and reconciliation agents.`,accent:`blue`},{slug:`developer`,name:`Developer`,blurb:`Code review, migration and test-writing agents.`,accent:`lavender`}],items:[{slug:`source-check`,name:`Source Check`,developer:`qikfox Labs`,category:`research`,tagline:`Compares claims across sources.`,description:`Reads a set of pages, groups agreeing and conflicting statements and links each back to its origin.`,price:`Included`,platforms:[`Browser`],featured:!0,popular:!0},{slug:`brief-builder`,name:`Brief Builder`,developer:`Openpath`,category:`research`,tagline:`Turns a reading list into a brief.`,description:`Collects open tabs into a structured summary with citations and open questions.`,price:`Included`,platforms:[`Browser`],popular:!0},{slug:`alert-triage`,name:`Alert Triage`,developer:`qikfox Labs`,category:`security-ops`,tagline:`Sorts noisy security alerts.`,description:`Groups related alerts, proposes a severity and drafts the note for whoever picks it up.`,price:`Paid`,platforms:[`Browser`,`Desktop`],featured:!0},{slug:`exposure-scan`,name:`Exposure Scan`,developer:`Northgate Software`,category:`security-ops`,tagline:`Checks what is publicly visible.`,description:`Reviews public pages and records for details that should not be exposed and lists them by risk.`,price:`Paid`,platforms:[`Browser`],isNew:!0},{slug:`form-runner`,name:`Form Runner`,developer:`Hollowfield`,category:`automation`,tagline:`Completes repetitive web forms.`,description:`Follows a recorded path, pauses for anything ambiguous and reports what it submitted.`,price:`Free trial`,platforms:[`Browser`],popular:!0},{slug:`inbox-router`,name:`Inbox Router`,developer:`Cordell`,category:`automation`,tagline:`Sorts mail into real actions.`,description:`Labels, files and drafts replies for routine messages, leaving anything unusual untouched.`,price:`Free trial`,platforms:[`Browser`],isNew:!0},{slug:`draft-desk`,name:`Draft Desk`,developer:`Studio Marlow`,category:`writing`,tagline:`Drafts that keep your voice.`,description:`Works from your past writing to produce a first draft, then explains each edit it suggests.`,price:`Included`,platforms:[`Browser`],featured:!0,popular:!0},{slug:`tone-guard`,name:`Tone Guard`,developer:`Studio Marlow`,category:`writing`,tagline:`Checks tone before you send.`,description:`Flags phrasing that reads harsher or vaguer than intended and offers alternatives.`,price:`Included`,platforms:[`Browser`]},{slug:`table-miner`,name:`Table Miner`,developer:`Hollowfield`,category:`data`,tagline:`Extracts tables you can trust.`,description:`Pulls tabular data from pages and PDFs, keeping units and footnotes attached.`,price:`Paid`,platforms:[`Browser`,`Desktop`],popular:!0},{slug:`sheet-tidy`,name:`Sheet Tidy`,developer:`Fernpost`,category:`data`,tagline:`Cleans messy spreadsheets.`,description:`Normalises dates, names and currencies and logs every change it makes.`,price:`Free trial`,platforms:[`Browser`],isNew:!0},{slug:`reply-desk`,name:`Reply Desk`,developer:`Cordell`,category:`support`,tagline:`First replies, ready for review.`,description:`Drafts answers from your help centre and hands anything unresolved to a person.`,price:`Paid`,platforms:[`Browser`]},{slug:`followup`,name:`Followup`,developer:`Cordell`,category:`support`,tagline:`Nothing waits unanswered.`,description:`Tracks open conversations and prompts when a promised reply is overdue.`,price:`Free trial`,platforms:[`Browser`],isNew:!0},{slug:`invoice-match`,name:`Invoice Match`,developer:`Northgate Software`,category:`finance`,tagline:`Matches invoices to payments.`,description:`Reconciles statements against invoices and lists only the items that need a decision.`,price:`Paid`,platforms:[`Browser`,`Desktop`],popular:!0},{slug:`expense-sift`,name:`Expense Sift`,developer:`Northgate Software`,category:`finance`,tagline:`Sorts receipts into policy.`,description:`Reads receipts, applies your policy and marks the exceptions for review.`,price:`Paid`,platforms:[`Browser`]},{slug:`review-pilot`,name:`Review Pilot`,developer:`Hollowfield`,category:`developer`,tagline:`A first pass on every pull request.`,description:`Comments on diffs with reasoning, and never approves on its own.`,price:`Paid`,platforms:[`Browser`],featured:!0,popular:!0},{slug:`test-scribe`,name:`Test Scribe`,developer:`Hollowfield`,category:`developer`,tagline:`Writes the tests you skipped.`,description:`Generates cases from existing code paths and flags the ones it could not infer.`,price:`Paid`,platforms:[`Browser`],isNew:!0}]},skills:{kind:`skills`,label:`Skills`,path:`/app-store/skills`,heading:`Skills that agents and people can call`,intro:`Single-purpose capabilities the browser can run on demand: check a link, lift a table, rewrite a paragraph. Each skill states what it reads and what it returns.`,categories:[{slug:`safety-skills`,name:`
32Safety`,blurb:`Skills that check links, files and downloads before you act.`,accent:`blue`},{slug:`research-skills`,name:`Research`,blurb:`Skills for reading, comparing and citing sources.`,accent:`lavender`},{slug:`writing-skills`,name:`Writing`,blurb:`Drafting, summarising and rewriting skills.`,accent:`yellow`},{slug:`data-skills`,name:`Data`,blurb:`Extraction, tidying and table-reading skills.`,accent:`teal`},{slug:`coding-skills`,name:`Coding`,blurb:`Review, refactor and test-writing skills.`,accent:`green`},{slug:`workflow-skills`,name:`Workflow`,blurb:`Skills that chain routine browser steps together.`,accent:`blue`}],items:[{slug:`link-verify`,name:`Link Verify`,developer:`qikfox Labs`,category:`safety-skills`,tagline:`Checks a link before it opens.`,description:`Resolves redirects, compares the destination against qikfox safety signals and reports what it found in plain language.`,price:`Included`,platforms:[`Browser`],featured:!0,popular:!0},{slug:`file-review`,name:`File Review`,developer:`qikfox Labs`,category:`safety-skills`,tagline:`Explains what a download contains.`,description:`Summarises a scanned file, its origin and the permissions it would need before you open it.`,price:`Included`,platforms:[`Browser`],popular:!0},{slug:`claim-trace`,name:`Claim Trace`,developer:`Openpath`,category:`research-skills`,tagline:`Traces a claim to its source.`,description:`Finds the earliest supporting page for a statement and lists anything that contradicts it.`,price:`Included`,platforms:[`Browser`],featured:!0},{slug:`page-digest`,name:`Page Digest`,developer:`Fernpost`,category:`research-skills`,tagline:`A short digest of a long page.`,description:`Produces a structured summary with headings preserved and quotes kept verbatim.`,price:`Included`,platforms:[`Browser`],isNew:!0},{slug:`rewrite-plain`,name:`Rewrite Plain`,developer:`Studio Marlow`,category:`writing-skills`,tagline:`Plain-language rewrites.`,description:`Rewrites selected text at a reading level you choose and shows what changed.`,price:`Included`,platforms:[`Browser`],popular:!0},{slug:`reply-sketch`,name:`Reply Sketch`,developer:`Cordell`,category:`writing-skills`,tagline:`A first reply you can edit.`,description:`Drafts a response from the thread on screen and leaves the send action to you.`,price:`Included`,platforms:[`Browser`]},{slug:`table-lift`,name:`Table Lift`,developer:`Hollowfield`,category:`data-skills`,tagline:`Lifts a table off a page.`,description:`Reads the table under the cursor and returns clean rows with units and footnotes intact.`,price:`Included`,platforms:[`Browser`],featured:!0,isNew:!0},{slug:`field-tidy`,name:`Field Tidy`,developer:`Fernpost`,category:`data-skills`,tagline:`Normalises messy values.`,description:`Standardises dates, currencies and names across a selection and logs each change.`,price:`Included`,platforms:[`Browser`]},{slug:`diff-explain`,name:`Diff Explain`,developer:`Hollowfield`,category:`coding-skills`,tagline:`Explains a diff in words.`,description:`Walks through a change set, naming risk areas and untested paths.`,price:`Included`,platforms:[`Browser`],popular:!0},{slug:`case-writer`,name:`Case Writer`,developer:`Hollowfield`,category:`coding-skills`,tagline:`Turns a function into tests.`,description:`Suggests test cases from the code in view and marks the ones it could not infer.`,price:`Included`,platforms:[`Browser`],isNew:!0},{slug:`step-recorder`,name:`Step Recorder`,developer:`Northgate Software`,category:`workflow-skills`,tagline:`Records a repeatable path.`,description:`Captures the steps you take on a site so an agent can repeat them with your review.`,price:`Free trial`,platforms:[`Browser`],popular:!0},{slug:`handoff`,name:`Handoff`,developer:`Northgate Software`,category:`workflow-skills`,tagline:`Passes work to a person.`,description:`Packages what a skill did, what it skipped and what needs a decision.`,price:`Included`,platforms:[`Browser`]}]},tools:{kind:`tools`,label:`Tools`,path:`/app-store/tools`,heading:`Tools that empower skills and agents`,intro:`Connectors, inspectors and converters that skills and agents use to reach your data. Access is scoped, visible and revocable at any time.`,categories:[{slug:`connectors`,name:`Connectors`,blurb:`Tools that link the browser to the services you already use.`,accent:`lavender`},{slug:`inspectors`,name:`Inspectors`,blurb:`Read page state, requests and structured data.`,accent:`blue`},{slug:`converters`,name:`Converters`,blurb:`Change formats for files, text and images.`,accent:`yellow`},{slug:`storage`,name:`Storage`,blurb:`Save, sync and export what a session produced.`,accent:`teal`},{slug:`automation-tools`,name:`Automation`,blurb:`Schedulers and triggers agents and skills can call.`,accent:`green`}],items:[{slug:`mail-bridge`,name:`Mail Bridge`,developer:`Cordell`,category:`connectors`,tagline:`Connects webmail to skills.`,description:`Grants a scoped, revocable connection between your mail provider and the skills you approve.`,price:`Free`,platforms:[`Browser`],featured:!0,popular:!0},{slug:`drive-link`,name:`Drive Link`,developer:`Northgate Softw
32are`,category:`connectors`,tagline:`Files where agents can reach them.`,description:`Exposes a chosen folder to agents with read or write access you set per session.`,price:`Free`,platforms:[`Browser`,`Desktop`],popular:!0},{slug:`page-probe`,name:`Page Probe`,developer:`Hollowfield`,category:`inspectors`,tagline:`Reads the page as data.`,description:`Returns headings, links and structured data from the current page for a skill to work on.`,price:`Free`,platforms:[`Browser`],featured:!0},{slug:`trace-view`,name:`Trace View`,developer:`Hollowfield`,category:`inspectors`,tagline:`A readable request trace.`,description:`Groups network activity by origin and marks anything that left the first party.`,price:`Paid`,platforms:[`Browser`],isNew:!0},{slug:`format-shift`,name:`Format Shift`,developer:`Fernpost`,category:`converters`,tagline:`Converts common formats locally.`,description:`Turns documents, tables and images between formats on your device rather than in the cloud.`,price:`Free`,platforms:[`Browser`,`Desktop`],popular:!0},{slug:`text-extract`,name:`Text Extract`,developer:`Openpath`,category:`converters`,tagline:`Text out of PDFs and images.`,description:`Extracts readable text with page references kept for citation.`,price:`Free`,platforms:[`Browser`],isNew:!0},{slug:`session-vault`,name:`Session Vault`,developer:`qikfox Labs`,category:`storage`,tagline:`Keeps a session's output.`,description:`Stores what a skill or agent produced, with a plain record of where each item came from.`,price:`Included`,platforms:[`Browser`],featured:!0},{slug:`export-desk`,name:`Export Desk`,developer:`Fernpost`,category:`storage`,tagline:`Exports without lock-in.`,description:`Writes results to open formats and shows exactly what leaves the device.`,price:`Free`,platforms:[`Browser`,`Desktop`]},{slug:`task-clock`,name:`Task Clock`,developer:`Northgate Software`,category:`automation-tools`,tagline:`Runs work on a schedule.`,description:`Triggers approved agents at times you set and reports anything it could not finish.`,price:`Free trial`,platforms:[`Browser`],popular:!0},{slug:`trigger-hub`,name:`Trigger Hub`,developer:`Hollowfield`,category:`automation-tools`,tagline:`Events that start a run.`,description:`Starts a skill or agent when a page, file or message you nominated changes.`,price:`Paid`,platforms:[`Browser`],isNew:!0}]}},Iw=[`apps`,`agents`,`skills`,`tools`];function Lw(e,t){return e===`apps`?`/app-store/apps/${t}`:`/app-store/${e}/${t}`}function Rw(e,t){return Fw[e].categories.find(e=>e.slug===t)}function zw(e,t){return Fw[e].items.filter(e=>e.category===t)}var Bw=N(`/app-store/agents/$category`)({head:({params:e})=>{let t=Rw(`agents`,e.category),n=t?.name??`Agents`,r=`/app-store/agents/${e.category}`;return{...Z({title:`${n} agents - qikfox App Store`,description:t?.blurb??`AI agents for qikfox Safe Browser, listed by category.`,path:r}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Agents`,path:`/app-store/agents`},{name:n,path:r}])]}},component:P(()=>$(()=>import(`./app-store.agents._category-Dk0rmsDQ.js`),__vite__mapDeps([104,1,105,22,71,4,2,5,8])),`component`)}),Vw=N(`/app-store/apps/$category`)({head:({params:e})=>{let t=Rw(`apps`,e.category),n=t?.name??`Apps`,r=`/app-store/apps/${e.category}`;return{...Z({title:`${n} apps - qikfox App Store`,description:t?.blurb??`Apps and extensions for qikfox Safe Browser, listed by category.`,path:r}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:n,path:r}])]}},component:P(()=>$(()=>import(`./app-store.apps._category-PYMX8G06.js`),__vite__mapDeps([106,1,105,22,71,4,2,5,8])),`component`)}),Hw=N(`/app-store/skills/`)({head:()=>({...Z({title:`qikfox App Store - Skills`,description:`Browse skills for qikfox Safe Browser by category: safety, research, writing, data, coding and workflow capabilities agents and people can call.`,path:`/app-store/skills`}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Skills`,path:`/app-store/skills`}])]}),component:P(()=>$(()=>import(`./app-store.skills.index-DsngXxdE.js`),__vite__mapDeps([107,1,70,4,71,2,5,8])),`component`)}),Uw=N(`/app-store/skills/$category`)({head:({params:e})=>{let t=Rw(`skills`,e.category),n=t?.name??`Skills`,r=`/app-store/skills/${e.category}`;return{...Z({title:`${n} skills - qikfox App Store`,description:t?.blurb??`Skills for qikfox
32Safe Browser, listed by category.`,path:r}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Skills`,path:`/app-store/skills`},{name:n,path:r}])]}},component:P(()=>$(()=>import(`./app-store.skills._category-m9og5FTl.js`),__vite__mapDeps([108,1,105,22,71,4,2,5,8])),`component`)}),Ww=N(`/app-store/tools/`)({head:()=>({...Z({title:`qikfox App Store - Tools`,description:`Browse tools for qikfox Safe Browser by category: connectors, inspectors, converters, storage and automation that skills and agents can use.`,path:`/app-store/tools`}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Tools`,path:`/app-store/tools`}])]}),component:P(()=>$(()=>import(`./app-store.tools.index-XSvIcWN2.js`),__vite__mapDeps([109,1,70,4,71,2,5,8])),`component`)}),Gw=N(`/app-store/tools/$category`)({head:({params:e})=>{let t=Rw(`tools`,e.category),n=t?.name??`Tools`,r=`/app-store/tools/${e.category}`;return{...Z({title:`${n} tools - qikfox App Store`,description:t?.blurb??`Tools for qikfox Safe Browser, listed by category.`,path:r}),scripts:[Q([{name:`Home`,path:`/`},{name:`App Store`,path:`/app-store`},{name:`Tools`,path:`/app-store/tools`},{name:n,path:r}])]}},component:P(()=>$(()=>import(`./app-store.tools._category-tpkHTexG.js`),__vite__mapDeps([110,1,105,22,71,4,2,5,8])),`component`)}),Kw=N(`/backoffice/customers/$customerId`)({component:P(()=>$(()=>import(`./backoffice.customers._customerId-DermTzR5.js`),__vite__mapDeps([111,1,4,25,74,41,26,21,22,23,27,28])),`component`)}),qw=N(`/backoffice/tickets/`)({component:P(()=>$(()=>import(`./backoffice.tickets.index-DcjkrR2Q.js`),__vite__mapDeps([112,1,4,25,26,21,22,23,27,28])),`component`)}),Jw=N(`/backoffice/tickets/$ticketId`)({component:P(()=>$(()=>import(`./backoffice.tickets._ticketId-BMoF1gnf.js`),__vite__mapDeps([113,1,4,25,74,26,21,22,23,27,28])),`component`)}),Yw=[{slug:`why-the-protection-panel-is-one-screen`,title:`Why the protection panel is one screen`,metaTitle:`Why qikfox puts every protection control on one screen`,description:`Browser security settings are usually spread across several menus, which means nobody reads them. We put safety, security and privacy controls on a single screen with plain descriptions.`,category:`Consumer Privacy`,published:`2026-01-14`,updated:`2026-01-14`,readingMinutes:6,editorsChoice:!0,popularRank:1,answer:`qikfox Safe Browser keeps every protection control on one screen, described in plain language, because settings that are scattered across nested menus are effectively invisible. A person should be able to answer the question of what is protecting them right now in a few seconds, without knowing the vocabulary.`,takeaways:[`Protection that cannot be found is protection that does not get used.`,`Every control states what it does and what it costs, in ordinary words.`,`Defaults are set to protected, so the panel is a place to check rather than configure.`,`Nothing in the panel implies complete protection.`],sections:[{id:`the-problem`,heading:`The problem with settings as an archive`,paragraphs:[`Browser protection features have accumulated for two decades, and each one arrived in whichever menu made sense at the time. The result is an archive: tracking prevention in one place, download checks in another, site permissions in a third, certificate behaviour somewhere technical.`,`For someone who works on browsers, this is navigable. For everyone else it is a filing cabinet in a language they do not speak, and the practical consequence is that the settings are never opened at all.`]},{id:`what-we-did`,heading:`What we changed`,paragraphs:[`We grouped controls by the question a person is actually asking rather than by the subsystem that implements them. Safety covers deceptive pages and dangerous downloads. Security covers connection warnings and permissions. Privacy covers cross-site tracking and the details the browser volunteers.`,`Each control has one line saying what it does and, where relevant, one line saying what it costs - because some protections break some sites, and pretending otherwise erodes trust the first time something stops working.`],list:[`One screen, three groups, no nesting.`,`Plain descriptions instead of feature names.`,`Trade-offs stated where they exist.`,`Current state visible without interpretation.`]},{id:`defaults`,heading:`Defaults do most of the work`,paragraphs:[`A panel is only a fallback. The measure that matters is what protects someone who never opens it, so qikfox defaults to protected and treats the panel as a place to verify or relax a setting rather than to build one.`,`That approach has a cost we accept: a small number of sites behave differently under stricter defaults. We would rather explain that in the panel than start people in a weaker state and hope they find their way to a stronger one.`],note:`If you have to configure a browser to be protected by it, the product has moved its job onto you.`}
32,{id:`what-it-is-not`,heading:`What the panel does not claim`,paragraphs:[`The panel does not display a score, a shield, or a percentage. Those visuals imply a completeness no browser can deliver, and they make the moment when something slips through feel like a betrayal rather than a limit.`,`It states what is on, what that covers, and what it does not. Everything else is decoration.`]}],faq:[{question:`Do I need to configure qikfox Safe Browser after installing it?`,answer:`No. Protection is on by default. The protection panel exists so you can confirm what is active or relax a setting for a specific site.`},{question:`Can stricter privacy settings break websites?`,answer:`Occasionally, yes. Where a control has that trade-off, the panel says so in the same place you toggle it.`}],related:[{label:`qikfox Safe Browser`,to:`/browser`,description:`The product this panel belongs to.`},{label:`Browser safety features`,to:`/browser/safety`,description:`How warnings and checks work.`},{label:`What tracking collects`,to:`/resources/guides/what-online-tracking-collects`,description:`The mechanisms behind the privacy group.`},{label:`Download qikfox`,to:`/download`,description:`Install on your platform.`}]},{slug:`warning-pages-should-explain-not-scare`,title:`Warning pages should explain, not scare`,metaTitle:`How we rewrote qikfox warning pages to explain, not scare`,description:`A warning that only says a site is dangerous teaches nothing and gets clicked through. We rewrote ours to state what was detected and what your options are.`,category:`Safety & Security`,published:`2026-01-06`,updated:`2026-01-06`,readingMinutes:5,editorsChoice:!0,popularRank:2,answer:`A useful warning page names what was detected, explains the likely consequence in ordinary language, and offers a clear route back as the default action. Warnings built from red panels and alarm language train people to dismiss them, which makes the next warning less effective than the last.`,takeaways:[`Alarm without explanation produces habituation, not caution.`,`The safe action should be the default, and the risky action should be deliberate.`,`Naming the detection lets a person judge the situation for themselves.`,`Warnings are probabilistic, so they should admit the possibility of being wrong.`],sections:[{id:`habituation`,heading:`Warnings decay when they shout`,paragraphs:[`Interrupt someone with the same alarming panel often enough and they learn the shape of the dismiss button rather than the meaning of the message. The industry has spent years discovering this, and it applies to browser warnings as much as anywhere else.`,`Worse, an unexplained warning gives no basis for a decision. The person is being asked to be afraid without being told of what, so they fall back on whether they wanted to visit the page - which they did, or they would not be there.`]},{id:`what-changed`,heading:`What our warnings say now`,paragraphs:[`Each warning names the category that triggered it, states what typically happens on pages of that category, and puts the safe route first. Continuing is possible where it is reasonable, but it is a deliberate second action rather than the largest button.`,`We also say when we might be wrong. Detection works from signals and lists, and both can misfire; acknowledging that costs nothing and keeps the warning credible in the case where someone knows the page is fine.`],list:[`What was detected, in a phrase.`,`What that usually means for the person.`,`The safe action, as the default.`,`How to proceed anyway, and how to tell us it looks wrong.`]},{id:`limits`,heading:`Being honest about the gap`,paragraphs:[`Detection lists trail newly created pages, so some deceptive pages will not be flagged at the moment they matter. We say so on our product pages rather than implying a wall.`,`The habit that closes the gap is simple and worth repeating: sign in only through links you chose yourself. A warning page is a safety net, not the plan.`]}],faq:[{question:`Can I continue past a qikfox warning?`,answer:`Yes, where continuing is reasonable. The safe route is the default action, and proceeding is a separate deliberate step.`},{question:`What if a warning appears on a page I know is safe?`,answer:`Detection can misfire. The warning page includes a way to report that, and you can proceed after reading what was detected.`}],related:[{label:`Browser safety features`,to:`/browser/safety`,description:`Where warnings fit in.`},{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`The habit that does not depend on lists.`},{label:`Safety at qikfox`,to:`/safety`,description:`Our approach across products.`},{label:`Security Center`,to:`/security-center`,description:`Advisories and notices.`}]},{slug:`the-claims-we-decided-not-to-make`,title:`The claims we decided not to make`,metaTitle:`No logs, complete protection, total anonymity: claims we avoid`,description:`Three promises are near-universal in security marketing and none of them survives scrutiny. A short note on why they do not appear on qikfox product pages.`,category:`Consumer Privacy`,published:`2025-12-11`,updated:`2025-12-11`,readingMinutes:5,popularRank:4,answer:`qikfox product pages avoid three standard industry claims - no logs, complete protection and total anonymity - because each one is either unverifiable by the reader or false as written. We describe mechanisms and limits instead, so the words on the page can be checked against how the product behaves.`,takeaways:[`No logs is unverifiable from outside; a stated retention period is checkable.`,`Complete protection is contradicted by how detection actually works.`,`Total anonymity ignores that signing in identifies you regardless of tooling.`,`Describing limits makes the remaining claims more credible, not less.`],sections:[{id:`no-logs`,heading:`No logs`,paragraphs:[`Every service keeps
32some operational record, if only to route traffic, prevent abuse and stop paying customers being locked out. A no-logs headline usually means no logs of a particular kind, described accurately in a policy document that fewer people read than the headline.`,`The useful statement is specific: what is recorded, for what purpose, for how long, and who can request it. That is something a reader can hold us to. A slogan is not.`]},{id:`complete-protection`,heading:`Complete protection`,paragraphs:[`Protection works from signals: known patterns, reported pages, behaviour that resembles software designed to hide. All three are strongest against what has been seen before and weakest against what was built this morning.`,`Claiming completeness sets up the one failure that matters most, and it does so at the worst possible moment - when someone trusted the claim instead of checking. We would rather say what is covered and what is not.`]},{id:`total-anonymity`,heading:`Total anonymity`,paragraphs:[`A VPN changes which network can observe your destinations and which address a site sees. It does not change the fact that signing in to a service identifies you, or that scripts inside a page can record what happens on that page.`,`Anonymity as a product claim conflates network-level visibility with identity, and people make consequential decisions on that confusion. We describe the mechanism instead and let it be judged on what it does.`],note:`A claim you cannot verify is not a feature. It is a request for trust with nothing offered in return.`},{id:`what-we-say-instead`,heading:`What we say instead`,paragraphs:[`Product pages state the mechanism, the platforms, and the limits. Where we cannot yet be specific - because a figure or a certification is not final - we leave a clearly marked gap rather than filling it with something impressive.`,`This is a slower way to write a website. It also means that when we do make a claim, it is one we can stand behind when someone asks how we know.`]}],faq:[{question:`Does qikfox keep logs?`,answer:`We keep the operational records needed to run and protect the service, described by category and retention in our privacy policy rather than summarised as a slogan.`},{question:`Why not say your products offer complete protection?`,answer:`Because detection always lags behind new threats. Saying otherwise would set an expectation the technology cannot meet.`}],related:[{label:`Trust at qikfox`,to:`/trust`,description:`What we commit to and how to check it.`},{label:`Transparency`,to:`/transparency`,description:`Reporting and disclosure practice.`},{label:`Privacy policy`,to:`/legal/privacy-policy`,description:`Categories, purposes, retention.`},{label:`Our mission`,to:`/about/mission`,description:`The principles behind these choices.`}]},{slug:`designing-for-accessibility-in-security-ui`,title:`Designing security interfaces that everyone can operate`,metaTitle:`Accessibility in security UI: keyboard, contrast and clarity`,description:`A protection control nobody can reach is not a protection control. How we approach WCAG 2.2 AA in qikfox interfaces and on this website.`,category:`Safety & Security`,published:`2026-02-04`,updated:`2026-02-04`,readingMinutes:5,popularRank:3,answer:`Security interfaces have an unusually high accessibility duty, because the cost of a control that cannot be operated is exposure rather than inconvenience. qikfox targets WCAG 2.2 AA: full keyboard operability, visible focus, sufficient contrast, meaningful structure and text that does not depend on colour to convey state.`,takeaways:[`Every control must be reachable and operable by keyboard alone.`,`Focus must be visible against every background it appears on.`,`State must never be communicated by colour alone.`,`Warnings must be readable at the reading level of the general public.`],sections:[{id:`why-it-matters-more-here`,heading:`Why the stakes are higher in security UI`,paragraphs:[`If a decorative carousel is inoperable by keyboard, someone misses a photograph. If a protection toggle or a warning dialogue is inoperable, someone either cannot protect themselves or cannot understand why they were interrupted. The failure mode is exposure.`,`That reframes accessibility work from compliance to product function, and it is why we treat contrast, focus and structure as part of the security surface rather than as a finishing pass.`]},{id:`what-we-target`,heading:`What we target`,paragraphs:[`WCAG 2.2 AA across product interfaces and this website. In practice that means
32semantic structure with one heading hierarchy per page, links that describe their destination, forms with associated labels and error text, focus indicators that survive every background, and no interaction that depends on hover or pointer precision alone.`],list:[`Keyboard operability for every control, including menus and dialogues.`,`Visible, high-contrast focus indicators.`,`Text contrast meeting AA at the sizes actually used.`,`State conveyed by text and shape, not colour alone.`,`Motion kept modest and respectful of reduced-motion preferences.`]},{id:`language`,heading:`Plain language is an accessibility feature`,paragraphs:[`Comprehension is part of access. A warning written for engineers excludes most of the people it interrupts, so we write warnings and protection descriptions in ordinary words and test them by reading them aloud.`,`Where a technical term is unavoidable, it is explained in the same sentence rather than in a documentation page nobody will open at that moment.`]},{id:`reporting`,heading:`Telling us what we missed`,paragraphs:[`Accessibility is never finished, and automated checks find only a portion of real barriers. Our accessibility statement includes a route for reporting problems, and reports about protection controls and warnings are treated as functional defects rather than cosmetic requests.`]}],faq:[{question:`Which accessibility standard does qikfox target?`,answer:`WCAG 2.2 level AA across product interfaces and this website, including keyboard operability, visible focus and sufficient contrast.`},{question:`How do I report an accessibility problem?`,answer:`Use the route on our accessibility statement page. Reports affecting protection controls or warnings are handled as functional defects.`}],related:[{label:`Accessibility statement`,to:`/legal/accessibility`,description:`Our formal commitment.`},{label:`Technology`,to:`/technology`,description:`How the products are built.`},{label:`Our mission`,to:`/about/mission`,description:`Principles behind product decisions.`},{label:`Contact qikfox`,to:`/contact`,description:`Report a problem to the right team.`}]},{slug:`ai-threats-require-intelligent-systems`,title:`AI threats require intelligent systems`,metaTitle:`AI threats require intelligent systems, not lists`,description:`AI generated phishing, scam storefronts and rogue links appear faster than any blocklist can publish. Here is the case for browsers, search, antivirus, VPNs and AI assistants that reason about intent.`,category:`Safety & Security`,published:`2026-09-09`,updated:`2026-09-09`,readingMinutes:9,editorsChoice:!0,popularRank:1,answer:`AI threats require intelligent systems because the defences most people rely on were built to recognise things that have already been reported. Generated phishing pages, scam storefronts and rogue links now appear and disappear within hours, so protection has to judge what a page or a link is trying to do at the moment it is opened, rather than look it up in a list compiled yesterday.`,takeaways:[`A blocklist can only describe attacks that someone has already found and published, which is the one category that generated attacks avoid.`,`The browser is the only place that sees the search result, the page, the form, the download and the connection as one session.`,`Search that ranks by what the searcher asked for behaves differently from search that ranks by what pays most to appear.`,`File scanning misses attacks that never write a file, and most web attacks never write one.`,`A privacy promise from a network product is only meaningful if there are no browsing logs to hand over.`,`AI assistants need a layer that decides what leaves the device before a prompt is sent, not after.`],sections:[{id:`why-lists-stopped-working`,heading:`Why blocklists stopped keeping up`,paragraphs:[`Almost every consumer protection product in common use rests on the same idea: keep a list of things known to be bad, and check what the user encounters against it. That works when building a convincing fake site takes effort and time, because effort and time mean each attack is reused often enough to be reported, verified and distributed to defenders.`,`Generation removes that constraint. A convincing login page, delivery notice, invoice or support chat can be produced, hosted on a fresh domain, used against a small group of people and abandoned before anyone submits a report. The list is not wrong, it is simply describing a different set of attacks from the one in front of the person right now.`],note:`Reputation answers whether anyone has complained yet. It does not answer whether this page is trying to take your password.`},{id:`browsers-need-to-be-smarter`,heading:`Browsers need to judge pages, not just addresses`,paragraphs:[`The browser is where the whole attack lands. It opens the link, renders the page, holds the saved credentials, autofills the address and card, and receives the download. It is also the only component that sees those steps as one continuous session rather than as unrelated events, which makes it the natural place to reason about intent.`,`Reasoning about intent means reading a page the way a careful person would. A form that asks for a banking password on a domain registered this week, styled as a brand it has no relationship with, is suspicious on its structure and behaviour alone, with no report filed anyw
32here. The same applies to a link whose visible text names one destination while its target resolves to another, to a page that recreates a familiar sign in flow inside an overlay, and to a checkout that collects card details outside a payment processor.`],list:[`Judge the page that loaded, not only the address that was typed.`,`Compare visible link text with the destination it actually resolves to.`,`Treat credential and payment forms as high risk contexts that deserve extra scrutiny.`,`Explain what was found and what the options are, instead of showing a generic red screen.`]},{id:`search-serves-intent`,heading:`AI search has to serve intent, not the highest bidder`,paragraphs:[`Search is the step before the click, which makes it the cheapest place to prevent harm and the most profitable place to cause it. When placement is sold, the results that appear first are the results someone paid to put there, and a scam that can afford the placement inherits the trust that position carries. Fake support numbers, cloned download pages and imitation brand storefronts have all been distributed this way.`,`An AI assisted search layer changes what is possible, in both directions. It can read candidate destinations, recognise that a page claiming to be an official download is not hosted by the vendor, and say so before anyone visits. It can also be tuned to keep people circling inside a monetised loop. The difference is not technical sophistication, it is whose interest the ranking is built to serve, and that is a design decision a company either publishes or hides.`],note:`If the ranking rules and the money are pointing in different directions, the money usually wins unless the product is built to stop it.`},{id:`antivirus-and-the-web`,heading:`Traditional antivirus is scanning the wrong place`,paragraphs:[`File scanning was a good match for a world where threats arrived as programs on disks and attachments. Modern consumer harm mostly does not arrive as a file at all. It arrives as a page that asks for a code from an authenticator app, a browser notification that imitates a system alert, an extension with more permissions than its purpose needs, a session token stolen from a tab, or a persuasive conversation that ends with a bank transfer the victim makes themselves.`,`None of that is a signature on disk. A scanner can be flawless and still be absent for the entire attack, because nothing it inspects was ever involved. Endpoint protection still matters for the file paths that remain, and it needs to be paired with something that watches the web session where the majority of incidents now begin and end.`],list:[`Credential capture through pages that never download anything.`,`One time code interception through real time relay pages.`,`Over permissioned browser extensions and injected scripts.`,`Session and token theft from an already signed in tab.`,`Social engineering that ends in a payment the person authorises.`]},{id:`vpns-and-logs`,heading:`A VPN is only private if there is nothing to hand over`,paragraphs:[`The point of routing traffic through a provider is to remove the local network and the internet provider from the list of parties who can see where you go. It only works if the provider does not simply become that party. A service that records which sites an account visited, and when, has moved the record rather than removed it, and that record can be requested, subpoenaed, sold or stolen.`,`The honest version of the promise is architectural, not rhetorical. Do not retain browsing destinations. Keep account records separate from traffic handling so activity cannot be tied back to a person. Publish what is kept, for how long, and what happens when a request arrives. A privacy claim that could not survive a subpoena was never a privacy claim.`]},{id:`privacy-intent-layer`,heading:`Why AI assistants need a privacy intent layer`,paragraphs:[`The most sensitive part of a modern session is no longer a stored file, it is text. People paste contracts, medical notes, customer records, salary details and credentials into assistants because that is how the tool is useful, and agents read pages and documents on their behalf with no pause to consider what those pages contain. Once that text is submitted it has left the device, and the person has no further control over how long it is kept or what it trains.`,`A privacy intent layer sits between the person and the model and decides what is allowed to leave, before it leaves. It recognises identifiers, secrets and confidential material in a prompt or an attachment, offers to remove or replace them, keeps work local where a local model is sufficient, and asks for c
32onfirmation before an agent sends anything sensitive outward. This is the missing piece of consumer protection: the mechanism that treats the model itself as an outside party, and asks whether this particular sentence needs to reach it at all.`],list:[`Detect identifiers and secrets in prompts, pastes and attachments.`,`Redact or substitute before sending, with the original never leaving the device.`,`Keep sensitive work with a local model where one is capable enough.`,`Require confirmation for agent actions that transmit or publish data.`],note:`Protecting privacy from websites while sending the same information to a model is not privacy, it is a change of recipient.`},{id:`what-intelligent-means`,heading:`What intelligent protection has to mean in practice`,paragraphs:[`Intelligent is worth very little as a claim, so it needs to be readable as behaviour. Protection that reasons rather than looks up should be able to act on a threat nobody has reported, work the same way for a person who never opens a settings screen, and say plainly what it found when it interrupts them. It should also state what it does not cover, because every layer has an edge and the moment something slips past is the moment vague promises turn into distrust.`,`The layers reinforce each other when they share what they see. Search warns before a page opens, the browser judges the page that loads and the form on it, endpoint protection handles what reaches the device, the network layer keeps the route private, and the privacy intent layer governs what any of it sends to a model. Each one is useful alone. Together they cover the path a real incident actually takes.`]}],faq:[{question:`Why are blocklists not enough to stop AI generated phishing?`,answer:`A blocklist can only include a site after someone has reported and verified it. Generated phishing pages are used against a small number of people and abandoned within hours, so most are never listed while they are dangerous.`},{question:`What does it mean for a browser to detect phishing semantically?`,answer:`It means judging what the page is asking for and how it presents itself, such as a bank style login form on a domain with no relationship to that bank, instead of only checking whether the address appears on a list of known bad sites.`},{question:`Does antivirus still matter if most threats come from the web?`,answer:`Yes, for the file based paths that still exist, such as downloaded installer
32s and removable media. It just cannot cover attacks that never write a file, which is where most consumer incidents now begin.`},{question:`How can I tell whether a VPN really keeps no browsing logs?`,answer:`Look for a published statement of exactly what is retained and for how long, a separation between account data and traffic handling, and a description of how the provider responds to legal requests. Wording that only promises not to sell data is not the same as not keeping records.`},{question:`What is a privacy intent layer for AI assistants?`,answer:`It is a control that inspects a prompt, paste or attachment before it is sent to a model, removes or replaces sensitive details, and asks for confirmation when an assistant or agent is about to transmit something confidential.`}],related:[{label:`Why the AI era needs a smart browser`,to:`/why-ai-era-needs-a-smart-browser`,description:`The browser as the enforcement point.`},{label:`Security at qikfox`,to:`/security`,description:`Threats we address, and how.`},{label:`Privacy at qikfox`,to:`/privacy`,description:`What we collect and why.`},{label:`Trust Center`,to:`/trust`,description:`Our commitments and their limits.`}]},{slug:`data-residency-is-now-an-architecture-decision`,title:`Data residency is now an architecture decision`,metaTitle:`Data residency in 2026: an architecture decision, not a checkbox`,description:`Regional rules, sovereign cloud offerings and AI processing pipelines have moved data location out of the procurement questionnaire and into system design.`,category:`Enterprise Data`,published:`2026-08-19`,updated:`2026-08-19`,readingMinutes:7,popularRank:5,answer:`Data residency used to be answered with a region name in a contract. It is now a design constraint that shapes storage layout, key management, logging, backup routing and every inference call a system makes, because AI processing frequently sends data to a different jurisdiction than the database it came from.`,takeaways:[`A residency promise is only as strong as the least controlled copy of the data.`,`Logs, backups, caches and analytics pipelines are the usual leak paths, not the primary database.`,`Model inference is a data transfer, and it needs the same regional treatment as storage.`,`Encryption keys held in the same jurisdiction as the ciphertext give you very little.`],sections:[{id:`why-it-changed`,heading:`Why the question got harder`,paragraphs:[`For most of the last decade residency was satisfied by choosing a region when a database was created. The rest of the system stayed loosely defined, and nobody looked closely because nobody had to.`,`Two things changed that. Regulators started asking where derived data lives rather than only where records are stored, and applications started calling models that run wherever capacity exists. A support ticket that never leaves an approved region can still be summarised by a service on another continent.`]},{id:`the-copies`,heading:`Every system has more copies than its diagram shows`,paragraphs:[`The primary store is the easy part. The difficulty is in the copies that accumulate for operational reasons and were never treated as regulated data.`],list:[`Application and access logs, often shipped to a central observability vendor.`,`Backups and snapshots replicated for durability across regions.`,`Caches and search indexes built for latency in whichever region users sit.`,`Analytics warehouses that flatten records for reporting.`,`Error reports that include request bodies.`,`Model prompts and responses retained for evaluation.`],note:`If you cannot list the copies, you cannot make a residency claim about them.`},{id:`keys`,heading:`Keys and the meaning of control`,paragraphs:[`Encryption is often presented as an answer to residency. It is not, on its own. Data encrypted with keys held by the same provider in the same jurisdiction can still be produced under a lawful order, because the party holding the ciphertext also holds the means to read it.`,`The design that actually changes the answer keeps key custody separate from data custody, with access that is logged and revocable. That has real operational cost, including the possibility of losing access to your own data, and it should be chosen deliberately rather than assumed.`]},{id:`inference`,heading:`Treat inference as a transfer`,paragraphs:[`The most common gap in 2026 architectures is an approved regional stack with an unapproved model endpoint at the end of it. Once a record is in a prompt, it has been transferred, and retention policies at the model provider apply rather than yours.`,`Practical options are regional model endpoints, self hosted models for the classes of data that warrant it, and redaction before the call for everything else. All three are defensible. Sending the raw record and describing it as processing rather than transfer is not.`]},{id:`documenting`,heading:`Write it down where engineers will see it`,paragraphs:[`Residency commitments that live only in a customer facing policy page get broken by ordinary engineering work, because the person adding a cache or a new vend
32or never reads that page. The commitment needs to exist as a constraint in the codebase and the deployment pipeline.`,`Data flow records, allow lists for outbound destinations and a review step for new processors are unglamorous and they hold up better than an annual attestation.`]}],faq:[{question:`Does keeping data in one region satisfy most privacy rules?`,answer:`Location is one requirement among several. Rules also cover purpose, retention, access and onward transfer, so a correct region does not by itself make processing lawful.`},{question:`Is self hosting a model the only way to keep data in region?`,answer:`No. Regional endpoints from a provider, contractual limits on retention, and redaction before the call are all workable. Self hosting is one option with the highest operational cost.`}],related:[{label:`Trust at qikfox`,to:`/trust`,description:`What we commit to and how to check it.`},{label:`Transparency`,to:`/transparency`,description:`Reporting and disclosure practice.`},{label:`Privacy policy`,to:`/legal/privacy-policy`,description:`Categories, purposes, retention.`},{label:`Shadow AI in the enterprise`,to:`/resources/blog/shadow-ai-is-a-data-inventory-problem`,description:`The other half of the data question.`}]},{slug:`shadow-ai-is-a-data-inventory-problem`,title:`Shadow AI is a data inventory problem, not a discipline problem`,metaTitle:`Shadow AI: why blocking tools fails and inventory works`,description:`Employees paste company data into whichever assistant is fastest. Blocking the popular ones moves the behaviour rather than stopping it. What actually reduces exposure.`,category:`Enterprise Data`,published:`2026-07-22`,updated:`2026-08-11`,readingMinutes:6,popularRank:6,answer:`Unapproved AI use inside companies is driven by convenience, not defiance, so policy and blocklists move it to tools nobody can see rather than removing it. The measures that reduce exposure are a usable approved option, an inventory of where sensitive data actually lives, and controls at the point data leaves rather than at the point a tool is chosen.`,takeaways:[`People route around a control that costs them time, and they do it quietly.`,`Blocking known domains pushes usage to personal devices and unknown tools.`,`Most leaked material is pasted text, not exfiltrated files.`,`An approved tool that is slower than the unapproved one will not be used.`],sections:[{id:`the-pattern`,heading:`The pattern is consistent across organisations`,paragraphs:[`Someone has a document to summarise, a contract clause to interpret or a stack trace to explain, and the fastest route is an assistant that is already open in a tab. The material goes in because the task is real and the deadline is today.`,`Nothing about that decision is malicious, and framing it as a training failure guarantees the same outcome next quarter. The person is optimising for the work they were hired to do.`]},{id:`why-blocking-fails`,heading:`Why blocking makes visibility worse`,paragraphs:[`Network level blocks catch the handful of well known destinations and nothing else. New assistants launch continually, many are embedded inside tools that are already approved, and a phone on a mobile network is outside the perimeter entirely.`,`The result is not less usage. It is usage you can no longer see, on devices you do not manage, with no record of what was shared.`]}
32,{id:`what-works`,heading:`What reduces exposure in practice`,paragraphs:[`Start from the data rather than the tool. Know which stores hold regulated or commercially sensitive material, who can reach them, and what leaves them. That inventory is useful for every other security question as well.`],list:[`Provide an approved assistant that is at least as fast as the alternatives.`,`Classify a small number of categories properly rather than everything vaguely.`,`Apply controls where data exits: uploads, clipboard in managed contexts, and outbound destinations.`,`Log approved usage so patterns are visible instead of inferred.`,`Say clearly which categories must never be pasted anywhere, and keep that list short enough to remember.`],note:`A policy with thirty rules is a policy with zero rules.`},{id:`vendors`,heading:`Ask the retention question in writing`,paragraphs:[`For any assistant you approve, get written answers on what is retained, for how long, whether it is used for training, who inside the vendor can read it, and what happens on deletion. Marketing pages routinely answer these differently from contracts.`,`Where the answers are unsatisfactory and the tool is still needed, the fallback is to reduce what is sent. Redaction and synthetic examples are unglamorous and they work.`]}],faq:[{question:`Should companies ban AI assistants outright?`,answer:`Bans reliably move usage out of sight rather than ending it. A supported option with clear limits on what may be shared produces better visibility and lower exposure.`},{question:`What is the single highest value first step?`,answer:`An honest inventory of where sensitive data lives and what leaves those systems. Almost every subsequent control depends on it.`}],related:[{label:`Data residency as architecture`,to:`/resources/blog/data-residency-is-now-an-architecture-decision`,description:`Where processed data actually goes.`},{label:`Security at qikfox`,to:`/security`,description:`How we approach protection.`},{label:`Security Center`,to:`/security-center`,description:`Advisories and notices.`},{label:`Contact qikfox`,to:`/contact`,description:`Reach the right team.`}]},{slug:`small-models-running-on-the-device`,title:`Small models on the device are quietly becoming the default`,metaTitle:`On-device AI models: why small and local is winning routine work`,description:`Models small enough to run on a laptop or phone now handle a large share of everyday tasks. The interesting consequence is where data stops travelling.`,category:`Artificial Intelligence`,published:`2026-08-28`,updated:`2026-08-28`,readingMinutes:6,editorsChoice:!0,popularRank:7,answer:`Models in the range that fits comfortably on consumer hardware now handle summarising, classifying, rewriting, extracting and routing well enough that sending those tasks to a datacentre is often unnecessary. The practical effect is cost and latency for developers and, more importantly, a class of work where personal data never leaves the machine.`,takeaways:[`Most everyday tasks are not frontier tasks and do not need frontier models.`,`Local execution removes an entire category of privacy question rather than mitigating it.`,`Latency and offline behaviour improve in ways users notice immediately.`,`Hard reasoning, long context and current knowledge still favour larger hosted models.`],sections:[{id:`capability`,heading:`What small models are now good at`,paragraphs:[`The gap between small and large models has narrowed most sharply on bounded language work. Turning a page into three sentences, deciding which of six categories a message belongs to, pulling structured fields out of a receipt, cleaning up a draft: these are now routine locally.`,`They remain weak where the task needs broad world knowledge, multi step reasoning across a long document, or precision on facts they were never trained on. That division is stable enough to design around.`]},{id:`why-it-matters`,heading:`The privacy argument is structural, not promissory`,paragraphs:[`When a task runs locally, there is no retention policy to read, no processor to vet, no jurisdiction to consider and n
32o breach to disclose, because no copy was created off the device. That is a different kind of assurance from a promise about how a copy will be handled.`,`It also changes what is reasonable to ask a user to trust. A claim that data stayed on the machine can be checked with ordinary network inspection. A claim about what a remote service does with a copy cannot.`],note:`The strongest privacy property a feature can have is that the data never moved.`},{id:`hybrid`,heading:`The shape most products are converging on`,paragraphs:[`Hybrid routing has become the standard pattern. A local model handles the common path, and the request escalates to a hosted model only when the task exceeds what the local one does reliably.`],list:[`Classify and triage locally, always.`,`Escalate on length, ambiguity or explicit user request.`,`Tell the user when a request left the device, in plain words.`,`Make escalation refusable without breaking the feature entirely.`]},{id:`costs`,heading:`The honest costs`,paragraphs:[`Local inference spends battery, memory and disk. Model files are large, they need updating, and older hardware will fall back to slower paths. Quality varies more across devices than a hosted endpoint does, which makes support harder.`,`None of that argues against the approach. It argues for stating which work is local, which is not, and what the user gives up either way.`]}],faq:[{question:`Are small local models good enough to replace hosted ones?`,answer:`For bounded tasks such as summarising, classifying and rewriting, usually yes. For hard reasoning, long documents and current facts, hosted models remain clearly better.`},{question:`Does running a model locally mean no data is collected?`,answer:`It means the inference itself sends nothing. An application can still send telemetry separately, so the claim worth checking is about the whole feature, not just the model.`}],related:[{label:`Technology`,to:`/technology`,description:`How the products are built.`},{label:`Privacy at qikfox`,to:`/privacy`,description:`Our approach to personal data.`},{label:`Provenance and synthetic media`,to:`/resources/blog/provenance-labels-and-what-they-cannot-do`,description:`The other side of generative systems.`},{label:`Our mission`,to:`/about/mission`,description:`Principles behind product decisions.`}]},{slug:`provenance-labels-and-what-they-cannot-do`,title:`Provenance labels help, and they cannot settle whether something is true`,metaTitle:`Content provenance in 2026: what C2PA style labels can and cannot prove`,description:`Signed capture data and generation disclosures are spreading across cameras, editors and platforms. They answer a narrower question than most people assume.`,category:`Artificial Intelligence`,published:`2026-06-30`,updated:`2026-07-15`,readingMinutes:6,popularRank:8,answer:`Provenance systems attach signed, tamper evident records of how a file was captured and edited. They can tell you that an image came from a particular device and what was done to it afterwards. They cannot tell you that an unlabelled file is fake, or that a labelled photograph is honest about its subject.`,takeaways:[`Provenance proves origin and edit history, not truthfulness.`,`Absence of a label means nothing, because most files never carried one.`,`Metadata is routinely stripped by ordinary sharing, not just by bad actors.`,`A label is a starting point for judgement, not a substitute for it.`],sections:[{id:`what-it-is`,heading:`What the systems actually record`,paragraphs:[`The general design is the same across implementations. At capture or generation, a signed manifest records the device or model, a timestamp and a hash of the content. Each subsequent edit in a supporting tool appends a signed entry, so the chain can be verified later.`,`That gives a viewer something genuinely useful: an answer to whether the file they are looking at matches what was signed, and what happened between capture and now.`]},{id:`limits`,heading:`Three limits worth stating plainly`,paragraphs:[`First, a signed photograph can be entirely misleading. A real camera can record a staged scene, and a correct caption is not part of what the signature covers.`,`Second, no label is not evidence of manipulation. Screenshots, re-encodings, messaging apps and older tools all drop the manifest, so the vast majority of honest images circulating carry nothing.`,`Third, the systems are strongest for people with tooling to check them and weakest for everyone else, which is exactly the population most affected by convincing fabrications.`],list:[`Signed does not mean accurate.`,`Unsigned does not mean fabricated.`,`Verification requires a viewer that checks, and most do not.`]},{id:`how-to-use-it`,heading:`How to read a label sensibly`,paragraphs:[`Treat provenance as one signal among several. It is strong evidence about the file and weak evidence about the claim the file is being used to support.`,`The habits that hold up remain the old ones: look for the same event from an independent source, check whether the account posting it has any connection to the place it depicts, and be more sceptical of material that arrives already framed with an emotional conclusion.`],note:`Fabrications rarely fail on pixels. They fail on context, and context is where checking should go.`},{id:`disclosure`,heading:`Disclosure is a product responsibility`,paragraphs:[`Where a tool generates or substantially alters media, saying so in the file and in the interface is now a baseline expectation rather than a differentiator, and several jurisdictions have written it into law with staged deadlines through 2026 and 2027.`,`The failure mode to avoid is a disclosure that satisfies the letter of a rule and is invisible in the place people actually look.`]}],faq:[{question:`If an image has no provenance data, is it fake?`,answer:`No. Most images lose that data through ordinary sharing and re-encoding, so its absence carries almost no information.`},{question:`Can provenance records be forged?`,answer:`The signature chain is hard to forge, but a genuine signature can still be applied to content that is misleading in what it depicts or how it is captioned.`}],related:[{label:`Small models on the device`,to:`/resources/blog/small-models-running-on-the-device`,description:`Where generative work is moving.`},{label:`Trust at qikfox`,to:`/trust`,description:`What we commit to and how to check it.`},{label:`Anatomy of a scam message`,to:`/resources/guides/anatomy-of-a-scam-message`,description:`How manipulation is usually framed.`},{label:`Transparency`,to:`/transparency`,description:`Reporting and disclosure practice.`}]},{slug:`agents-need-least-privilege-not-more-permissions`,title:`Agents need least privilege, not more permissions`,metaTitle:`Agent permissions: scoped credentials, approvals and audit trails`,description:`Software that acts on your behalf is being handed broad account access because that is the fastest way to make it work. The consequences of that shortcut are predictable.`,category:`AI Agents`,published:`2026-09-02`,updated:`2026-09-02`,readingMinutes:7,editorsChoice:!0,popularRank:9,answer:`An agent should hold the narrowest credential that lets it finish the specific task, for the shortest time, with an audit record of every action and a human approval step before anything irreversible. Broad account access granted once and kept indefinitely is the pattern behind most agent incidents so far, and it is avoidable with existing techniques.`,takeaways:[`Scope credentials to the task, not to the account.`,`Actions that move money, delete data or send messages deserve explicit confirmation.`,`Every agent action needs an attributable log entry, including failed attempts.`,`Standing access is the risk; short lived, revocable access is the fix.`],sections:[{id:`the-shortcut`,heading:`Why broad access happens`,paragraphs:[`Fine grained permissions are harder to build than full access, and an agent with full access demos beautifully. The scoped version needs a permission model, a consent flow, token exchange and revocation, none of which is visible in a launch video.`,`So the shortcut wins early, and the cost arrives later when the same credential is used for something nobody anticipated, by an agent that was instructed by text it read on a webpage.`]},{id:`injection`,heading:`Instructions can arrive from anywhere the agent reads`,paragraphs:[`An agent that browses, reads email or opens documents is consuming untrusted text. If that text can influence its next action, then any page it visits is a potential source of commands, and this is not a bug that gets patched away because it follows from how the systems work.`,`The mitigation is architectural rather than clever prompting. Keep the agent's authority small enough that a successful injection cannot do much, and put a person in front of the actions that matter.`],list:[`Separate the channel that carries instructions from the channel that carries data.`,`Treat all fetched content as data, never as commands.`,`Require confirmation for payments, deleti
32ons, sends and permission changes.`,`Deny by default on destinations and capabilities the task does not need.`],note:`Assume the agent will be told to do the wrong thing, and design so that it cannot.`},{id:`credentials`,heading:`What good credential handling looks like`,paragraphs:[`Per task tokens with explicit scopes, short expiry and independent revocation. Delegation that is recorded, so it is possible to answer who authorised what and when. No shared secret that grants everything to everything.`,`Where a service only offers all or nothing access, the honest response is to narrow what the agent is allowed to attempt on that service, and to say so rather than to hide the exposure behind a confident interface.`]},{id:`auditing`,heading:`Logs are the difference between an incident and a mystery`,paragraphs:[`When an agent does something unexpected, the questions are immediate: what did it do, what triggered it, what did it touch, and what else used the same credential. Without an attributable action log, none of those can be answered.`,`Log the intent, the tool call, the arguments, the outcome and the identity on whose behalf it acted. Keep it long enough to investigate and no longer than that.`]}],faq:[{question:`Can prompt injection be solved with better instructions?`,answer:`No. Instructions reduce the frequency but do not remove the class of problem. Limiting what the agent is permitted to do is what actually bounds the damage.`},{question:`Should agents ever act without confirmation?`,answer:`Reversible, low consequence actions are reasonable to automate. Anything that moves money, deletes data, sends messages or changes access should require a person.`}],related:[{label:`Judging an agent before you trust it`,to:`/resources/blog/how-to-evaluate-an-agent-before-you-trust-it`,description:`Questions to ask of any agent.`},{label:`Security at qikfox`,to:`/security`,description:`How we approach protection.`},{label:`App Store`,to:`/app-store`,description:`Skills, apps, tools and agents.`},{label:`Trust at qikfox`,to:`/trust`,description:`What we commit to and how to check it.`}]},{slug:`how-to-evaluate-an-agent-before-you-trust-it`,title:`How to evaluate an agent before you let it act for you`,metaTitle:`Evaluating AI agents: eight questions before granting access`,description:`Demonstrations show an agent succeeding. What matters is how it behaves when it is wrong, what it can reach, and whether you can tell afterwards what it did.`,category:`AI Agents`,published:`2026-07-08`,updated:`2026-07-08`,readingMinutes:5,popularRank:10,answer:`Judge an agent on its failure behaviour rather than its best case. The questions that matter are what it can access, what it does when it is uncertain, which actions it can take without asking, whether every action is logged and attributable, and how quickly you can revoke everything it holds.`,takeaways:[`Ask what happens when it is wrong, not what happens when it works.`,`An agent that cannot say it is unsure will guess confidently instead.`,`Revocation should take seconds and should not require the vendor.`,`If you cannot reconstruct what it did, you cannot rely on it for anything consequential.`],sections:[{id:`questions`,heading:`The questions worth asking`,paragraphs:[`Most agent evaluations are demonstrations of a task that was chosen because it works. A short list of direct questions is more informative than any demo.`],list:[`Exactly which accounts, files and services can it reach, and can that be narrowed?`,`Which actions does it take without asking, and can that list be changed?`,`What does it do when it cannot complete a step: stop, ask, or improvise?`,`Where is the log, what is in it, and how long is it kept?`,`How do I revoke access immediately, and what breaks when I do?`,`What data leaves my environment, to whom, and is it retained?`,`How are untrusted inputs such as web pages and email handled?`,`Who is accountable when it causes a loss?`],note:`A vendor that cannot answer the revocation question has not thought about the failure case.`},{id:`uncertainty`,heading:`Behaviour under uncertainty is the real signal`,paragraphs:[`Useful agents stop and ask. The failure pattern to wat
32ch for is an agent that fills a gap with a plausible invention and continues, because the resulting mistakes look like completed work and are discovered late.`,`In a trial, deliberately give it incomplete information and an impossible step. What it does in those two situations tells you more than a week of successful runs.`]},{id:`scope`,heading:`Start narrow, on purpose`,paragraphs:[`Give a new agent read only access to a small, non critical area, with confirmation required for anything that leaves that area. Expand only after you have looked at its logs and found them accurate and complete.`,`This feels slow and it is the difference between a contained surprise and an expensive one.`]}],faq:[{question:`What is the most common mistake when adopting an agent?`,answer:`Granting broad standing access during a trial and never narrowing it, because the trial worked and nobody revisited the permissions.`},{question:`Is a human approval step not defeating the purpose?`,answer:`Approval only needs to apply to consequential and irreversible actions. Routine, reversible work can run unattended without changing the risk profile much.`}],related:[{label:`Agents need least privilege`,to:`/resources/blog/agents-need-least-privilege-not-more-permissions`,description:`The architecture behind these questions.`},{label:`Permission models for skills`,to:`/resources/blog/what-a-permission-prompt-should-tell-you`,description:`The same problem one layer down.`},{label:`App Store`,to:`/app-store`,description:`Skills, apps, tools and agents.`},{label:`Support`,to:`/support`,description:`Get help from our team.`}]},{slug:`what-a-permission-prompt-should-tell-you`,title:`What a permission prompt should tell you and usually does not`,metaTitle:`Permission prompts: writing requests people can actually judge`,description:`Extensions, skills and apps ask for access at the moment people are least able to assess it. The wording of that request is a security control.`,category:`Skills and Apps`,published:`2026-08-06`,updated:`2026-08-06`,readingMinutes:6,popularRank:11,answer:`A permission request should name what is being accessed, why it is needed for the thing the person just tried to do, what happens if they decline, and whether the access is one time or ongoing. Prompts that list capabilities in platform vocabulary get accepted without being read, which makes the consent meaningless.`,takeaways:[`A request made at install time is answered by someone who wants the thing installed.`,`Capability names are not explanations.`,`Declining must remain a real option with a stated consequence.`,`Ongoing access should be visible and revocable after the fact, not only at the prompt.`],sections:[{id:`why-prompts-fail`,heading:`Why the current prompts do not work`,paragraphs:[`The typical request appears during installation, before the person has used anything, and describes access in the platform's own terms: read and change data on all sites, access your files, run in the background. None of that connects to a task they were trying to accomplish.`,`The rational response, given no basis for judgement and a desire to proceed, is to accept. Repeated a few dozen times, that becomes a reflex, and the prompt has stopped functioning as a decision point.`]},{id:`better-shape`,heading:`The shape of a request people can judge`,paragraphs:[`Ask at the moment the access is needed, for the narrowest thing that will do, in the words of the task.`],list:[`What: the specific data or capability, not the category.`,`Why: tied to the action the person just took.`,`Scope: this once, this site, or always.`,`Consequence of declining: what stops working, honestly stated.`,`Where to change it later, and how.`],note:`If the honest answer to why is that it makes development easier, the request should not be made.`},{id:`supply-chain`,heading:`Permissions outlive the developer who asked for them`,paragraphs:[`Extensions and skills change hands. A tool installed for one purpose can be sold, and the new owner inherits every permission granted to the old one. This has been the mechanism behind a long series of incidents, and it does not require anyone to be compromised.`,`Two things reduce it: keeping granted access narrow so an ownership change matters less, and periodically reviewing what is installed and what it can still reach. Platforms can help by surfacing transfers and by expiring access that has not been used.`]},{id:`after-install`,heading:`Consent needs an afterwards`,paragraphs:[`A single decision at install time is not consent to indefinite access. People need a place that lists what is installed, what each item can reach, when it last used that access, and a one step way to remove it.`,`That list is also the only practical way anyone notices the tool they stopped using two years ago still reads every page they visit.`]}],faq:[{question:`Why do so many extensions ask for access to all sites?`,answer:`Because a broad permission is simpler to build against than a
32narrow one, and platforms have historically allowed it. Many tools that request it only need a handful of sites.`},{question:`What should I do about tools I no longer use?`,answer:`Remove them. Unused tools keep whatever access they were granted, and they remain a route in if their ownership or code changes.`}],related:[{label:`App Store`,to:`/app-store`,description:`Skills, apps, tools and agents.`},{label:`Reviewing what you installed`,to:`/resources/blog/reviewing-what-you-installed`,description:`A practical periodic check.`},{label:`Agents need least privilege`,to:`/resources/blog/agents-need-least-privilege-not-more-permissions`,description:`The same principle for agents.`},{label:`Security Center`,to:`/security-center`,description:`Advisories and notices.`}]},{slug:`reviewing-what-you-installed`,title:`Reviewing what you installed, twice a year`,metaTitle:`How to audit installed extensions, skills and connected apps`,description:`The tools with the most access to your accounts are usually the ones you forgot about. A short, repeatable review that takes about twenty minutes.`,category:`Skills and Apps`,published:`2026-06-17`,updated:`2026-08-25`,readingMinutes:5,popularRank:12,answer:`Twice a year, list every browser extension, connected application and granted skill across your main accounts, remove anything you do not currently use, and narrow the access of what remains. Most people find several tools they had forgotten, and forgotten tools keep every permission they were given.`,takeaways:[`Access does not expire on its own when you stop using something.`,`Third party account connections are usually the most powerful and least remembered.`,`Removing a tool is reversible; leaving stale access in place is not risk free.`,`A calendar reminder makes this happen; good intentions do not.`],sections:[{id:`where-to-look`,heading:`The four places to check`,paragraphs:[`Access accumulates in a small number of predictable locations, and none of them show you the others.`],list:[`Browser extensions, on every browser and profile you use.`,`Third party apps connected to your main identity accounts.`,`Skills, plugins and integrations enabled inside assistants and workspaces.`,`Applications on phones and laptops that hold broad permissions such as accessibility, screen recording or full disk access.`]},{id:`the-test`,heading:`One question per item`,paragraphs:[`Did I use this in the last six months, and if I met it today for the first time, would I grant it this access for this purpose. If either answer is no, remove it. You can reinstall in a minute if you were wrong.`,`Where the answer is yes, check whether the access can be narrowed. Many connections that were granted broadly work fine on a single folder, a single site or read only.`],note:`The tool you cannot remember installing is the one to look at hardest.`},{id:`signals`,heading:`Signals that something is worth removing now`,paragraphs:[`A tool that has changed name or ownership, one that started showing content it never used to, one that requested new permissions after an update, and one whose developer page no longer exists. Any of those justifies removing it and finding a maintained alternative.`,`Sudden new behaviour in a tool you have used for years is the classic sign that it changed hands. It is not paranoia to act on that.`]},{id:`make-it-stick`,heading:`Make it a habit rather than a project`,paragraphs:[`Put two dates in the calendar, do it in one sitting, and keep a short note of what you removed and why. The second review takes half as long as the first, because most of the work is the accumulated backlog.`,`For shared or family devices, do it together. The person who installed the thing is usually the one who can say whether it is still needed.`]}],faq:[{question:`Does removing an extension delete data it already collected?`,answer:`No. Removal stops future access. Anything already sent elsewhere is subject to that provider's deletion process, which you may have to request separately.`},{question:`How often is often enough?`,answer:`Twice a year covers most people. Review immediately if a tool changes ownership, starts behaving differently, or asks for new permissions after an update.`}],related:[{label:`What a permission prompt should tell you`,to:`/resources/blog/what-a-permission-prompt-should-tell-you`,description:`How to read the request in the first place.`},{label:`How malware arrives through downloads`,to:`/resources/guides/how-malware-arrives-through-downloads`,description:`The other common install route.`},{label:`App Store`,to:`/app-store`,description:`Skills, apps, tools and agents.`}
32,{label:`Support`,to:`/support`,description:`Get help from our team.`}]},{slug:`passkeys-are-winning-and-recovery-is-the-hard-part`,title:`Passkeys are winning, and account recovery is the hard part`,metaTitle:`Passkeys in 2026: strong sign-in, unresolved recovery`,description:`Sign-in without a shared secret removes the largest category of account theft. The remaining weak point is what happens when a person loses their devices.`,category:`Consumer Privacy`,published:`2026-08-13`,updated:`2026-08-13`,readingMinutes:6,popularRank:13,answer:`Passkeys remove the reusable secret that phishing and credential stuffing depend on, which is why adoption has moved quickly. The unsolved part is recovery: most services still fall back to email or a phone number, and that fallback is now the weakest link in an otherwise strong system.`,takeaways:[`There is no password to steal, reuse or be tricked into typing.`,`A passkey is bound to the site it was created for, which defeats look alike domains.`,`Recovery paths inherit all the weakness the sign-in method removed.`,`Two independent ways back into an important account is the practical minimum.`],sections:[{id:`what-changed`,heading:`Why this actually helps`,paragraphs:[`A password is a secret you can be persuaded to hand over. A passkey is a key pair where the private half never leaves your device and the browser will only use it on the exact site it was registered for. A convincing fake page cannot collect anything usable.`,`That closes the two dominant routes into consumer accounts: phishing, and reuse of a password exposed in someone else's breach.`]},{id:`recovery`,heading:`Where the weakness moved`,paragraphs:[`Attackers go to whatever is weakest, and for most services that is now recovery. If losing a device means a code sent to an email address protected by a password, then the account is only as strong as that email account.`,`Phone number based recovery is worse, because transferring a number away from its owner remains achievable and the person affected usually finds out after the fact.`],list:[`Add at least two passkeys on separate devices for important accounts.`,`Protect the email account used for recovery at least as strongly as everything it can reset.`,`Prefer recovery codes stored offline over a phone number where the choice exists.`,`Check what recovery methods are actually enabled, not what you assume.`],note:`An account is only as strong as the easiest way back into it.`},{id:`sync`,heading:`Synced or device bound`,paragraphs:[`Passkeys synced through a password manager or platform account are far easier to live with and mean a lost phone is not a lost account. The trade off is that the sync account becomes a high value target.`,`Device bound keys, including hardware keys, give the strongest guarantee and demand that you plan for loss. For most people, synced keys plus a hardware key as a
32second factor on the most important accounts is a reasonable balance.`]},{id:`practical`,heading:`What to do this month`,paragraphs:[`Turn on passkeys for your email, your primary identity account and anything holding money. Those three cover most of the damage anyone could do.`,`Then go and read the recovery settings on each one. That step is the one people skip, and it is where the remaining risk lives.`]}],faq:[{question:`What happens to my passkeys if I lose my phone?`,answer:`Synced passkeys are available on your other devices after signing in to the platform or manager account. Device bound keys are lost, which is why a second registered device matters.`},{question:`Should I delete my passwords once passkeys are set up?`,answer:`Only where the service fully supports passkeys and offers a recovery path you trust. Otherwise keep a strong unique password as a fallback rather than a weak one.`}],related:[{label:`Passwords that hold up`,to:`/resources/guides/passwords-that-hold-up`,description:`For the accounts that still need one.`},{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`The habit passkeys make less critical.`},{label:`Privacy at qikfox`,to:`/privacy`,description:`Our approach to personal data.`},{label:`Security Center`,to:`/security-center`,description:`Advisories and notices.`}]},{slug:`when-a-scam-message-sounds-like-a-person`,title:`When a scam message sounds exactly like a person you know`,metaTitle:`Voice cloning and tailored scams: the checks that still work`,description:`Cheap synthesis has removed the awkward wording and the bad accent that used to give fraud away. The defence that survives is procedural, not perceptual.`,category:`Safety & Security`,published:`2026-07-29`,updated:`2026-08-20`,readingMinutes:6,popularRank:14,answer:`Fraud that used to be recognisable by broken language or an obviously wrong voice is now fluent and can imitate a specific person from a short sample. Because the signals people were taught to look for have stopped being reliable, the defence has to be procedural: verify through a channel you initiated, and treat urgency as the warning sign itself.`,takeaways:[`Fluency and a familiar voice are no longer evidence of anything.`,`Verification means a channel you chose, using a number or address you already had.`,`Manufactured urgency is the constant across every version of this fraud.`,`Agree a family or team practice in advance, while nobody is under pressure.`],sections:[{id:`what-changed`,heading:`What got easier for the people doing this`,paragraphs:[`Three things that used to require effort are now trivial: writing fluently in any language, imitating a specific voice from a few seconds of public audio, and personalising a message using details scraped from ordinary online sources.`,`The result is not a new category of crime. It is the same pretexts, with the tells removed. The bank fraud call, the message from a relative in trouble, the supplier asking for updated bank details, the executive requesting an urgent transfer.`]},{id:`procedure`,heading:`The procedure that still works`,paragraphs:[`Stop responding through the channel that contacted you. Hang up, close the message, and reach the person or organisation through a route you already had.`],list:[`Call back on a number you looked up yourself, not one you were given.`,`For a colleague or relative, use a different channel entirely.`,`For anything financial, confirm with a second person before acting.`,`Never read out a code that arrived on your own device.`],note:`Genuine organisations accept a call back. Pressure not to hang up is the clearest signal available.`},{id:`urgency`,heading:`Urgency is the mechanism, not a detail`,paragraphs:[`Every version of this depends on removing your time to think, and it is the one component that cannot be synthesised away, because without it the target verifies and the attempt fails.`,`So treat time pressure as the trigger for your procedure rather than as a reason to skip it. Deadlines that collapse under a five minute delay were never real.`]},{id:`agree-in-advance`,heading:`Decide the rule before you need it`,paragraphs:[`Families and team
32s that handle this well agreed on something simple beforehand: no money moves on a single request, and unexpected requests get confirmed on a known number. Some families use an agreed phrase, which helps, though a written rule is more robust than a secret that can be forgotten.`,`Say it out loud with the people it applies to. The moment the call arrives is not when anyone invents a policy.`]}],faq:[{question:`Can I tell a cloned voice from a real one?`,answer:`Often not, especially on a phone call with background noise and emotional pressure. Verification through a separate channel does not depend on being able to tell.`},{question:`How much audio does someone need to imitate a voice?`,answer:`A few seconds of clear speech is enough for a convincing result, and voicemail greetings, videos and public talks supply it routinely.`}],related:[{label:`Anatomy of a scam message`,to:`/resources/guides/anatomy-of-a-scam-message`,description:`The structure these messages share.`},{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`Where these messages usually lead.`},{label:`Safety at qikfox`,to:`/safety`,description:`Our approach across products.`},{label:`Support`,to:`/support`,description:`Report something suspicious.`}]},{slug:`browser-supply-chain-and-the-scripts-you-did-not-choose`,title:`The scripts you did not choose: third party code on the pages you visit`,metaTitle:`Third party scripts: how one supplier breaks thousands of sites`,description:`An ordinary page loads code from a dozen companies. When one of those is compromised, every site including it is affected at once.`,category:`Safety & Security`,published:`2026-06-24`,updated:`2026-06-24`,readingMinutes:6,popularRank:15,answer:`Most web pages load executable code from several other companies for analytics, advertising, support widgets, fonts and payment forms. That code runs with the same access as the site's own, so a single compromised supplier can affect thousands of sites simultaneously, which is why this class of incident keeps recurring.`,takeaways:[`Third party scripts run with the page's full privileges, not in a sandbox.`,`One supplier compromise reaches every site that includes it.`,`Payment and login pages are the highest value places for injected code.`,`Site operators can reduce this substantially; visitors can only reduce exposure.`],sections:[{id:`how-it-works`,heading:`Why this is structurally fragile`,paragraphs:[`When a site includes a script from another domain, it is delegating execution to whoever controls that domain, now and in the future. The browser has no way to know the difference between the intended analytics code and something else served from the same place tomorrow.`,`That delegation is usually made once, by whoever set up the tag, and then forgotten across years of ownership changes at the supplier.`]},{id:`consequences`,heading:`What injected code can do`,paragraphs:[`Read anything on the page, including what is being typed into a form before it is submitted. Modify what is displayed, including account numbers and payment details. Send all of it somewhere else.`,`This is why checkout and sign-in pages are the targets. The code does not need to break encryption or defeat the server; it is already inside the page where the data is entered.`],list:[`Capture form fields as they are typed.`,`Alter displayed payment destinations.`,`Add an extra field that looks native to the page.`,`Exfiltrate quietly to a domain that resembles a normal analytics endpoint.`]}
32,{id:`operators`,heading:`What site operators can actually do`,paragraphs:[`Keep an inventory of every third party script and why it is there, remove what is unjustified, pin what remains with integrity hashes where possible, and constrain what the page may load and where it may send data.`,`Keep payment and authentication pages as close to script free as the platform allows. The cheapest control is a shorter list.`],note:`Every script on a checkout page is a company you have implicitly vouched for.`},{id:`visitors`,heading:`What visitors can do`,paragraphs:[`You cannot audit someone else's page, so the useful moves are to reduce how much of it runs and to be deliberate about where financial details are entered. Content blocking reduces the surface, and payment methods that do not expose a reusable card number reduce the value of what can be captured.`,`The habit that pays off most is unrelated to blocking: check statements. Injected skimmers are usually discovered by customers noticing charges, not by the sites they came from.`]}],faq:[{question:`Does a padlock in the address bar protect against this?`,answer:`No. It indicates the connection is encrypted. Code running inside the page reads data before it is sent, so encryption is irrelevant to it.`},{question:`Do content blockers help?`,answer:`They reduce how much third party code runs, which lowers exposure. They are not a guarantee, since first party paths and essential scripts remain.`}],related:[{label:`What tracking collects`,to:`/resources/guides/what-online-tracking-collects`,description:`The mechanisms behind these scripts.`},{label:`Security at qikfox`,to:`/security`,description:`How we approach protection.`},{label:`Technology`,to:`/technology`,description:`How the products are built.`},{label:`Security Center`,to:`/security-center`,description:`Advisories and notices.`}]},{slug:`the-privacy-cost-of-convenience-defaults`,title:`The privacy cost of convenience defaults`,metaTitle:`Convenience defaults: the settings that quietly widen collection`,description:`Sync, assistants, personalised feeds and location history all improve a product and all widen what is collected. Deciding case by case beats deciding once.`,category:`Consumer Privacy`,published:`2026-09-01`,updated:`2026-09-01`,readingMinutes:5,popularRank:16,answer:`Features that make software pleasant to use generally work by collecting more, and they are switched on by default because that is what most people prefer. The useful approach is not to refuse all of them but to know which ones are on, what each one costs in collection, and to switch off the ones whose benefit you are not actually getting.`,takeaways:[`A default is a decision someone made on your behalf, at scale.`,`The question is not whether collection is happening but whether you get value for it.`,`Features you never use are pure cost, and there are usually several.`,`History and location settings deserve a separate look from everything else.`],sections:[{id:`the-trade`,heading:`The trade is real in both directions`,paragraphs:[`Personalisation needs a record of what you did. Cross device continuity needs your data somewhere both devices can reach. An assistant that knows your calendar has to be able to read your calendar. None of this is dishonest; it is how the features work.`,`Pretending otherwise leads to two bad outcomes: people who disable everything and lose functionality they wanted, and people who accept everything without ever asking what they got for it.`]},{id:`audit`,heading:`A short list worth checking`,paragraphs:[`Rather than a settings marathon, look at the small number of switches with the widest reach.`],list:[`Activity or history recording, and how long it is kept.`,`Location history, as distinct from location access for a single use.`,`Personalised advertising and the profile built for it.`,`Sync, and specifically which categories are syncing.`,`Assistant features that read messages, files or screen contents.`,`Diagnostics that include content rather than counts.`],note:`Turn off what you do not use. Keep what you do, knowingly.`},{id:`retention`,heading:`Retention matters more than collection`,paragraphs:[`A record kept for a month and a record kept indefinitely carry very different risk, because the second one is available to every future breach, subpoena and policy change. Where a service lets you set automatic deletion, that single setting often does more than disabling a feature outright.`,`It also preserves the usefulness of the feature for the peri
32od where it is actually useful, which is usually recent.`]},{id:`children`,heading:`Defaults on shared and family devices`,paragraphs:[`Devices used by children or shared across a household inherit whatever the first person accepted, and the person most affected is rarely the person who accepted it. Those are the devices worth going through deliberately.`,`It takes about fifteen minutes per device and it is the highest value privacy work most households can do.`]}],faq:[{question:`Is turning everything off the safest choice?`,answer:`It reduces collection and also removes features you may value. Reviewing the widest reaching settings and setting automatic deletion usually gives a better balance.`},{question:`Does deleting history actually remove it?`,answer:`It removes it from your view and, in most services, from active systems over a stated period. Backups and aggregated derivatives may persist, so the policy wording is worth reading once.`}],related:[{label:`What tracking collects`,to:`/resources/guides/what-online-tracking-collects`,description:`What the collected data supports.`},{label:`Passkeys and recovery`,to:`/resources/blog/passkeys-are-winning-and-recovery-is-the-hard-part`,description:`The other setting worth an evening.`},{label:`Privacy at qikfox`,to:`/privacy`,description:`Our approach to personal data.`},{label:`Privacy policy`,to:`/legal/privacy-policy`,description:`Categories, purposes, retention.`}]}],Xw=new Map(Yw.map(e=>[e.slug,e])),Zw=[`Consumer Privacy`,`Enterprise Data`,`Safety & Security`,`Artificial Intelligence`,`AI Agents`,`Skills and Apps`],Qw=A({method:`GET`}).handler(_e(`1007db65e6f50897465c0a881c401a7a9780316c1a526647ec795a6c2639c612`)),$w=A({method:`GET`}).handler(_e(`238f51c15de444503bec903cb45240259c6294b965ac87cac7a1702f5e890826`)),eT=()=>$(()=>import(`./resources.blog.index-D-SslFf2.js`),__vite__mapDeps([114,1,21,22,23,3,4,2,5,31])),tT=`The Perspective - privacy, security and AI writing | qikfox`,nT=`Browse The Perspective by category: editor's choice, recent posts and popular posts on consumer privacy, enterprise data, safety and security, AI, agents, skills and apps.`,rT=N(`/resources/blog/`)({loader:async()=>({readerArticles:await Qw()}),head:()=>
32({...Z({title:tT,description:nT,path:`/resources/blog`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`The Perspective`,path:`/resources/blog`}]),wb({name:`The Perspective`,items:Yw.map(e=>({name:e.title,path:`/resources/blog/${e.slug}`}))})]}),component:P(eT,`component`)}),iT=N(`/resources/blog/$slug`)({loader:async({params:e})=>{let t=Xw.get(e.slug);if(t)return{post:t};let n=await $w({data:{slug:e.slug}});if(!n)throw ye();return{post:n}},head:({params:e,loaderData:t})=>{if(!t)return{meta:[{title:`Post unavailable | qikfox`},{name:`robots`,content:`noindex`}]};let{post:n}=t,r=`/resources/blog/${e.slug}`;return{...Z({title:n.metaTitle,description:n.description,path:r,ogType:`article`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`The Perspective`,path:`/resources/blog`},{name:n.title,path:r}]),Sb({headline:n.title,description:n.description,path:r,published:n.published,updated:n.updated,section:n.category}),Tb({name:n.title,description:n.description,path:r}),Cb(n.faq)]}},notFoundComponent:P(()=>$(()=>import(`./resources.blog._slug-DNxZmqeR.js`),__vite__mapDeps([115,1])),`notFoundComponent`),component:P(()=>$(()=>import(`./resources.blog._slug-bMzZUCih.js`),__vite__mapDeps([116,1,117,3,4,2,5,31])),`component`)}),aT=[{slug:`recognise-phishing-pages`,title:`How to recognise a phishing page`,metaTitle:`How to recognise a phishing page - a plain-language guide`,description:`Phishing pages copy a familiar design and rely on urgency. Learn how to read a web address, which signals actually matter, and what to do if you already typed your password.`,category:`Phishing`,published:`2026-01-08`,updated:`2026-02-18`,readingMinutes:8,answer:`A phishing page is a copy of a site you trust, hosted at an address the real organisation does not control. The reliable way to spot one is to read the domain immediately to the left of the first single slash in the address bar, and to distrust any page that arrived through a message pressing you to act quickly. Design quality, padlock icons and spelling are not dependable signals.`,takeaways:[`Read the domain, not the design: the domain is the text just before the first single slash in the address.`,`A padlock only means the connection is encrypted; criminals encrypt their sites too.`,`Urgency is the shared ingredient of nearly every phishing attempt, because it discourages checking.`,`If a message asks you to sign in, open the service yourself from a bookmark instead of using the link.`,`If you already entered a password, change it on the real site and sign out other sessions before anything else.`],sections:[{id:`what-phishing-is`,heading:`What phishing actually is`,paragraphs:[`Phishing is impersonation. Someone builds a page that looks like a service you already use - a bank, a delivery company, a workplace login, a social account - and then finds a way to put a link to it in front of you. Nothing is broken into and nothing is hacked. The page simply collects whatever you type and passes it to whoever built it.`,`Because the technique depends on you believing the page, attackers put their effort into appearance and context rather than technology. Logos are copied pixel for pixel. Fonts match. Some pages even forward you to the genuine site after you submit, so that the login you attempt second appears to succeed and nothing feels wrong.`,`This is why advice about spelling mistakes and blurry logos has aged badly. Those flaws were common when phishing kits were hand-made. Today the visual copy is usually accurate, and the only thing an attacker cannot copy is the address of the real site.`]},{id:`read-the-address`,heading:`How to read a web address`,paragraphs:[`Every web address has one part that determines who is answering: the registered domain, sitting immediately to the left of the first single slash. Everything after that slash is chosen freely by whoever runs the site, and everything before it can be padded with words designed to reassure you.`,`Consider an address such as login.examplebank.com.account-verify.example: it ends at account-verify.example, so that is the site you are talking to, no matter how many trusted-looking words appear earlier. The reverse is also true - examplebank.com/login/secure/verify is the real bank, because the domain still ends at examplebank.com.`],list:[`Find the first single slash in the address, then read backwards to the start of that word group.`,`Look for lookalike characters, hyphenated additions and extra endings appended to a familiar name.`,`Treat subdomains as decoration: anyone can create any subdomain on a domain they control.`,`On mobile, tap the address bar to see the full address; truncated addresses hide the ending that matters.`],note:`If reading the address feels like work, that is the point. Attackers rely on the fact that most people look at the page instead.`},{id:`signals-that-do-not-work`,heading:`Signals that do not work any more`,paragraphs:[`The padlock icon tells you the connection between your device and that server is encrypted. It says nothing about who owns the server. Certificates for encryption are free and issued automatically, so a deceptive page is as likely to be encrypted as a genuine one.`,`Search results are not a safety check either. Paid placement and freshly built sites can both appear above the organisation you were looking for, particularly for queries like a company name followed by the word login.`,`Finally, familiarity is not verification. Receiving a message from a thread you recognise, or from a colleague's address, means only that someone already has access to that thread or address.`]},{id:`the-habit-that-works`,heading:`The one habit that removes most of the risk`,paragraphs:[`Never sign in through a link you did not choose. When a message says your account needs attention, close it, open the service the way you normally would - a bookmark, a typed address, or the app - and look for the same notice there. If the notice is real, it will be waiting for you. If nothing is waiting, the message was not real.`,`This single habit defeats phishing regardless of how convincing the page is, because it removes the attacker's only delivery route. It also costs almost nothing once it becomes reflexive.`,`Pair it with a password manager. A manager fills credentials based on the domain, so it silently refuses to autofill on a lookalike address. That refusal is often the first hint that something is wrong.`]},{id:`how-qikfox-helps`,heading:`How qikfox approaches this`,paragraphs:[`qikfox
32Safe Browser checks pages against known-deceptive-page signals and interrupts before the page loads rather than after. The warning states what was detected and offers a clear route back, because a warning that only says danger teaches nothing and gets clicked through.`,`qikfox Search surfaces safety context alongside results, so the decision can happen before the click instead of after it. Protection controls live on one screen in the browser's protection panel, described in plain language, so you can see what is on rather than hunting through nested menus.`,`None of this replaces the habit above. Blocklists always trail new pages by some interval, which is exactly the interval an attacker aims to exploit.`]},{id:`if-you-already-typed-it`,heading:`If you already entered your password`,paragraphs:[`Act in order and do not spend time on self-reproach; speed matters more than diagnosis. Change the password on the genuine site first, because that invalidates what the attacker collected. Then sign out other sessions, which most services offer in security settings.`,`Next, turn on strong authentication if it is available, so a stolen password alone is not enough. Then change the same password anywhere else you used it - reuse is what turns one mistake into several. Finally, watch the account for a few weeks for changed recovery addresses or unexpected devices.`],list:[`Change the password on the real site.`,`Sign out all other sessions.`,`Turn on two-step or passkey authentication.`,`Replace that password anywhere it was reused.`,`Check recovery email, phone number and connected devices.`]}],faq:[{question:`Does a padlock in the address bar mean a site is safe?`,answer:`No. The padlock indicates the connection is encrypted, not that the site is legitimate. Encryption certificates are free and automatic, so deceptive pages routinely have them.`},{question:`How can I tell which part of a web address is the real site?`,answer:`Find the first single slash and read the word group immediately before it. That registered domain is who answers the request; anything earlier can be invented and anything later is chosen by the site owner.`},{question:`What should I do first if I entered my password on a phishing page?`,answer:`Change that password on the genuine site, then sign out other sessions, enable two-step authentication, and replace the password anywhere else it was used.`},{question:`Can a browser block every phishing page?`,answer:`No. Detection lists always lag behind newly created pages. Browser warnings reduce exposure substantially, but the reliable defence is to sign in only through links you chose yourself.`}],related:[{label:`qikfox Safe Browser safety`,to:`/browser/safety`,description:`How warnings and page checks work in the browser.`},{label:`What a scam message looks like`,to:`/resources/guides/anatomy-of-a-scam-message`,description:`The three pretexts behind most scam messages.`},{label:`qikfox Search`,to:`/search`,description:`Safety context before the click.`},{label:`Help Center`,to:`/resources/help`,description:`Product-specific answers.`}]},{slug:`how-malware-arrives-through-downloads`,title:`Why downloads are the most common way malware arrives`,metaTitle:`How malware arrives through downloads - and how to stop it`,description:`Most malware is installed by the person using the computer, not forced onto it. Learn the four routes malware takes through downloads and the checks that catch it.`,category:`Malware`,published:`2026-01-12`,updated:`2026-02-20`,readingMinutes:9,answer:`Malware usually arrives as a file you chose to open: a fake installer from a search result, an attachment framed as an invoice, a bundled extra inside otherwise legitimate free software, or a cracked paid application. The defence is to install software only from the vendor's own site or an official store, and to let a scanner examine files before they run.`,takeaways:[`A file needs to run only once; blocking it before execution is the whole game.`,`Search results are a common distribution route for fake installers of popular free software.`,`Bundled extras inside free installer
32s are consent-based, which is why they are easy to miss.`,`Cracked commercial software is the least defensible download because tampering is expected.`,`Automatic updates close the openings malware uses after it lands.`],sections:[{id:`the-shape-of-the-problem`,heading:`The shape of the problem`,paragraphs:[`Software running on your device is trusted by the operating system to do things you asked for: read files, use the network, start when the machine starts. Malware does not need to break that model - it only needs to be launched once by someone with permission. From that moment, it inherits the trust you have.`,`That is why downloads dominate. A page you visit is confined by the browser's sandbox and can do relatively little. A file you download and open is a program with your privileges. The transition from browsing to installing is the moment worth guarding.`]},{id:`four-routes`,heading:`The four routes that account for most infections`,paragraphs:[`Fake installers are first. Someone builds a page for a popular free application, buys placement or optimises for the download-related search, and offers an installer that includes the real program plus something extra. Everything appears to work, which is why nothing is suspected.`,`Attachments are second, and they lean on plausibility rather than technology. An invoice, a delivery notice, a shared document, a CV. The file itself is often a document that asks to enable content or a compressed archive containing a shortcut.`,`Bundling is third and the least dramatic: free software funded by offers packaged into the installer, accepted by clicking through screens designed to be clicked through. The result is browser changes, injected advertising and background processes you never chose.`,`Cracked commercial software is fourth. Bypassing a licence check requires modifying the program, so tampering is not just possible but expected, and there is nobody to complain to.`],list:[`Fake installers reached through search results or advertising.`,`Attachments framed as invoices, deliveries, documents or applications.`,`Bundled extras accepted during a legitimate free installation.`,`Cracked or repacked paid software from file-sharing sites.`]},{id:`checks-before-opening`,heading:`Checks worth making before you open a file`,paragraphs:[`Start with provenance rather than the file. Did you go looking for this software, or did it arrive? Software you sought is safer to install than software that found you, and an attachment you did not expect deserves a check by another channel before it is opened.`,`Then confirm you are on the project's own site. For well-known open-source tools, the official page is usually the project's own domain or repository, not an aggregator with a large green button. If you cannot tell, search for the project name and read the domain before you click.`,`Finally, look at what you are actually being handed. An installer for a small utility that weighs far more than expected, an archive containing a shortcut, or a document that must have content enabled before it displays are all reasons to stop.`],note:`During installation, take the custom or advanced path once. That is where bundled extras are declared, and where declining them takes one click.`},{id:`why-scanning-matters`,heading:`Why file scanning still matters`,paragraphs:[`Careful habits reduce exposure but cannot inspect contents. A scanner can: it examines the file itself, compares it against known malicious patterns, and looks at behavioural traits that resemble software designed to hide, persist or reach out to a controller.`,`qikfox Antivirus reviews files, downloads and applications on the device, so the check happens at the moment a file lands rather than after something has gone wrong. It complements the browser rather than duplicating it - the browser protects the page, the scanner protects the file.`,`No scanner recognises everything. Detection is strongest for known families and weakest for something built last night for a small number of targets, which is why provenance remains the first line and scanning the second.`]},{id:`after-the-fact`,heading:`If something is already installed`,paragraphs:[`Common signs are a changed browser start page or search engine, extensions you did not add, advertising appearing in places it did not before, and a machine that is suddenly busy while idle.`,`Disconnect from the network to
32stop further downloads, run a full device scan, remove what is found, then review installed programs and browser extensions by date and remove anything that appeared around the same time. Afterwards, change passwords for important accounts from a device you trust - anything typed while the machine was compromised should be considered exposed.`],list:[`Disconnect from the network.`,`Run a full scan and remove what is detected.`,`Review installed programs and extensions by install date.`,`Change important passwords from a clean device.`,`Turn automatic updates back on for the system and browser.`]}],faq:[{question:`Can visiting a website infect my computer without downloading anything?`,answer:`It is possible but far less common, because it requires an unpatched flaw in the browser or a plugin. Keeping the browser updated closes most of that route, which is why downloads remain the dominant path.`},{question:`Is free software dangerous?`,answer:`Free software is not the problem; the distribution route is. Download from the project's own site or an official store, and choose the custom installation path so bundled extras are visible.`},{question:`Do I still need antivirus if I am careful?`,answer:`Careful habits control where files come from but cannot inspect what is inside them. A scanner examines the file itself, which is a different and complementary check.`},{question:`Why are cracked applications especially risky?`,answer:`Removing a licence check requires modifying the program, so the file has already been altered by an unknown party and there is no vendor to verify it against.`}],related:[{label:`qikfox Antivirus`,to:`/antivirus`,description:`Device-wide file and download review.`},{label:`Download qikfox`,to:`/download`,description:`Official installers for every platform.`},{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`The delivery route that precedes most downloads.`},{label:`Security at qikfox`,to:`/security`,description:`How we think about device security.`}]},{slug:`what-online-tracking-collects`,title:`What online tracking actually collects`,metaTitle:`What online tracking collects - and how to reduce it`,description:`Tracking builds a profile across sites rather than recording a single visit. Learn the mechanisms, what each one can see, and which controls make a measurable difference.`,category:`Privacy`,published:`2026-01-16`,updated:`2026-02-22`,readingMinutes:9,answer:`Online tracking links your activity across different sites into one profile, using third-party cookies, embedded scripts and device characteristics that together form a fingerprint. Blocking cross-site trackers and reducing the identifying details a browser volunteers limits how much of that profile can be assembled, though it does not make a browser anonymous.`,takeaways:[`The value of tracking is in the joins between sites, not in any single visit.`,`Third-party cookies are the oldest mechanism and the easiest to block.`,`Embedded scripts - analytics, share buttons, advertising tags - see the page you are on.`,`Fingerprinting identifies a browser by its configuration, without storing anything.`,`Signing in is the strongest identifier of all, and no browser setting removes it.`],sections:[{id:`why-joins-matter`,heading:`Why the joins matter more than the visits`,paragraphs:[`A single page view says little. Twenty page views across health, retail, employment and financial sites, joined to one identifier, describe a person: what they earn, what they worry about, what they intend to buy, whether they are looking for another job. The profile is the product, and the joining is what creates it.`,`This is why tracking is normally invisible. Nothing on a page announces that this visit will be combined with yesterday's visit somewhere else. The mechanics happen in the loading of components you never see.`]},{id:`mechanisms`,heading:`The three mechanisms in plain terms`,paragraphs:[`Third-party cookies are small pieces of storage set by a domain other than the site you are visiting. When the same third party appears on many sites, its cookie acts as a shared name tag, and the sites become one dataset.`,`Embedded scripts are code loaded from another company inside the page: analytics, advertising tags, social widgets, chat boxes, font and map providers. Each one learns which page you loaded and often what you did on it, because it runs inside the page rather than beside it.`,`Fingerprinting stores n
32othing. It identifies your browser by its combination of characteristics - screen dimensions, fonts, timezone, language, graphics behaviour, extensions. Enough small details make a combination rare, and a rare combination is a name.`],list:[`Third-party cookies: a shared identifier across the sites that embed the same party.`,`Embedded scripts: page-level visibility for whoever supplied the script.`,`Fingerprinting: identification by configuration, unaffected by clearing storage.`]},{id:`what-they-cannot-see`,heading:`What trackers do not see`,paragraphs:[`It is worth being precise, because vagueness here fuels both complacency and panic. A tracker embedded in one site cannot read the contents of your other tabs, your files, or your saved passwords. It cannot decrypt traffic between you and other sites.`,`What it can do is observe its own presence across many sites and join those observations. The problem is breadth, not depth - and breadth is enough.`]},{id:`controls-that-help`,heading:`Controls that make a measurable difference`,paragraphs:[`Blocking cross-site trackers removes the shared name tag and stops many scripts from loading at all, which also makes pages lighter. Reducing the identifying details a browser volunteers narrows fingerprinting, and treating each site's storage as separate prevents leftovers from becoming long-term identifiers.`,`In qikfox Safe Browser, these controls live in one protection panel with plain descriptions, and cross-site tracking protection is on by default. We describe this as reducing tracking rather than eliminating it, because eliminating it is not a claim any browser can honestly make.`,`A VPN is a different tool for a different observer. qikfox VPN encrypts traffic leaving the device, which prevents the network - a café, a hotel, an operator - from seeing which services you use. It does not stop a script inside a page from seeing that page.`],note:`If a product tells you it makes you anonymous online, it is describing marketing rather than mechanics.`},{id:`signed-in-tracking`,heading:`The part settings cannot fix`,paragraphs:[`When you sign in, you provide an identifier that is stable across devices, browsers and cleared storage. No browser control can undo that, and it is not a flaw - it is what signing in means.`,`The practical response is separation and restraint: sign in only where the account genuinely adds something, review the privacy settings of the accounts you keep, remove connected applications you no longer use, and be conscious of which activities you perform while signed in.`]}],faq:[{question:`Does blocking cookies stop all tracking?`,answer:`No. Blocking third-party cookies removes the most common shared identifier, but embedded scripts and fingerprinting work differently, and signing in to a service identifies you directly.`},{question:`What is browser fingerprinting?`,answer:`Fingerprinting identifies a browser by its combination of settings and capabilities - screen size, fonts, timezone, graphics behaviour - instead of storing an identifier on the device.`},{question:`Does a VPN stop website tracking?`,answer:`A VPN hides your traffic from the network you are connected to and masks your IP address. It does not prevent scripts inside a page from recording activity on that page.`},{question:`Does private or incognito mode prevent tracking?`,answer:`Private mode mainly prevents local history from being kept. During the session, trackers can still observe activity, and signing in to any account identifies you as usual.`}],related:[{label:`qikfox Safe Browser`,to:`/browser`,description:`Protection controls on one screen.`},{label:`Privacy at qikfox`,to:`/privacy`,description:`What we collect and why.`},{label:`Public Wi-Fi risk`,to:`/resources/guides/public-wifi-risk`,description:`What the network can and cannot see.`},{label:`qikfox VPN`,to:`/vpn`,description:`Encrypting traffic leaving the device.`}]},{slug:`public-wifi-risk`,title:`Is public Wi-Fi really risky?`,metaTitle:`Is public Wi-Fi risky in 2026? What actually changed`,description:`Most of the classic public Wi-Fi risk disappeared when the web encrypted itself. Here is what remains, what a VPN changes, and which habits still matter.`,category:`Networks`,published:`2026-01-20`,updated:`2026-02-24`,readingMinutes:7,answer:`Public Wi-Fi is far less dangerous than it was, because nearly all websites are now encrypted, so the network cannot read what you send. What the network can still see is which services you connect to, and a hostile network can interfere with unencrypted connections or present captive portals designed to deceive. A VPN removes the visibility part by encrypting everything that leaves the device.`,takeaways:[`Encryption is now the default on the web, so password sniffing on open networks is largely historical.`,`The network still sees the names of the services you connect to, plus timing and volume.`,`Captive portals are a reliable place to be shown a fake login page.`,`Automatic reconnection to remembered open networks is an underrated risk.`,`A VPN addresses network-level visibility, not tracking inside pages.`],sections:[{id:`what-changed`,heading:`What actually changed`,paragraphs:[`The traditional warning came from an era when logging in over an open network could expose a password to anyone nearby with the right tool. That was true, and it is now mostly obsolete: encrypted connections are the norm, browsers warn when they are absent, and content is protected in transit.`,`This matters because outdated advice erodes trust. If people are told that using a café network is reckless and nothing bad happens, they discount the parts of the warning that are still accurate.`]},{id:`what-remains`,heading:`What still remains`,paragraphs:[`Encryption hides content, not destinations. The network can see which services you connect to, when, and roughly how much data moves. Over an afternoon that becomes an activity summary, which is precisely the material some public networks monetise.`,`A hostile network can also interfere with anything not encrypted, redirect the first unprotected request, and control what the captive portal displays. Portals are unusually effective for deception because a login prompt on joining a network feels normal.`,`Finally, devices reconnect automatically to network names they have seen before. Somewhere else, a network broadcasting a familiar name gets the same automatic trust.`],list:[`Destination visibility: which services you use, and when.`,`Interference with unencrypted requests and redirects.`,`Deceptive captive portals and fake sign-in pages.`,`Automatic reconnection to remembered open network names.`]},{id:`what-a-vpn-changes`,heading:`What a VPN changes, precisely`,paragraphs:[`A VPN builds an encrypted tunnel from your device to a server it operates. The local network then sees a single encrypted stream to that server and can no longer tell which services you use. Your apparent location becomes the server's, which also means sites see the server's address rather than yours.`,`qikfox VPN provides that tunnel with a connect control that states plainly whether it is on. We do not describe it as making you anonymous, because the destination service still identifies you as usual when you sign in, and a page's own trackers are unaffected.`],note:`A VPN moves who can see your destinations from the local network to the VPN operator. That makes the operator's policies the thing worth reading.`},{id:`habits`,heading:`Habits that still pay off`,paragraphs:[`Turn off automatic joining for open networks and forget ones you used once. Treat a captive portal as an untrusted page: never enter an account password into it, and never install anything it offers. If the browser warns that a connection is not private, stop rather than continue.`,`Keep the system and browser updated, since interference exploits old flaws. And for genuinely sensitive tasks, a mobile connection is a reasonable alternative to any network you cannot vouch for.`]}],faq:[{question:`Can someone steal my password on public Wi-Fi?`,answer:`It is unlikely on modern encrypted sites, because the network cannot read the contents of the connection. The realistic route is a deceptive page or captive portal that c
32onvinces you to type the password yourself.`},{question:`What can the Wi-Fi owner see?`,answer:`Which services your device connects to, at what times, and how much data moves. With encryption they cannot see the pages themselves or what you typed.`},{question:`Do I need a VPN on public Wi-Fi?`,answer:`It is useful when you do not want the network to know which services you use, or when you do not trust the network's behaviour. It is not required for basic protection of encrypted sites.`},{question:`Is hotel or airport Wi-Fi safer than a café?`,answer:`Not inherently. What matters is whether the network is operated honestly and kept updated, and you cannot determine that from the network name.`}],related:[{label:`How qikfox VPN works`,to:`/vpn/how-it-works`,description:`The tunnel, step by step.`},{label:`What tracking collects`,to:`/resources/guides/what-online-tracking-collects`,description:`The observer a VPN does not address.`},{label:`qikfox VPN`,to:`/vpn`,description:`One connect control, stated plainly.`},{label:`Safety at qikfox`,to:`/safety`,description:`How the products fit together.`}]},{slug:`passwords-that-hold-up`,title:`Passwords: fewer rules, better habits`,metaTitle:`Password security in practice: length, reuse and passkeys`,description:`Length beats complexity, reuse is the real danger, and a manager solves both. A practical guide to passwords, two-step authentication and passkeys.`,category:`Accounts`,published:`2026-01-24`,updated:`2026-02-26`,readingMinutes:8,answer:`A strong password is long, unique to one account, and stored in a password manager rather than remembered. Reuse is the single biggest weakness, because one breached site then unlocks the others. Adding two-step authentication, or a passkey where offered, matters more than adding symbols to a short password.`,takeaways:[`Length contributes more to strength than substituting characters does.`,`Reuse converts one site's breach into a break-in on every other account.`,`A manager makes uniqueness practical and quietly resists phishing pages.`,`Two-step authentication means a stolen password alone is not enough.`,`Passkeys remove the shared secret entirely and cannot be phished.`],sections:[{id:`why-old-rules-failed`,heading:`Why the old rules failed`,paragraphs:[`For years, guidance demanded symbols, capitals, digits and quarterly changes. People responded rationally: they built one password that satisfied the rules, then adjusted it slightly whenever forced. The result was millions of predictable variations and no improvement in security.`,`Modern guidance dropped forced rotation and character mandates for exactly that reason, and focuses instead on length, uniqueness and detecting compromise. The rules got simpler because the simpler rules work better.`]},{id:`length-and-uniqueness`,heading:`Length and uniqueness, in that order`,paragraphs:[`Guessing attacks work through possibilities, so every additional character multiplies the work required. A memorable sequence of several unrelated words is both long and typeable, which is why passphrases beat short cryptic strings.`,`Uniqueness matters even more. When a site is breached, the stolen credentials are tried automatically across other services - email, retail, banking, workplace tools. If your password is unique, that attempt stops at the breached site. If it is reused, one incident becomes several.`],list:[`Prefer a passphrase of several unrelated words over a short complex string.`,`Never reuse a password, especially for email, which resets everything else.`,`Change a password when a service reports a breach, not on a schedule.`,`Keep recovery details current - they are the real key to the account.`]},{id:`managers`,heading:`Why a manager is the practical answer`,paragraphs:[`Nobody can remember dozens of long unique passwords, and writing them in a document defeats the purpose. A password manager generates and stores them behind one strong passphrase, and fills them for you.`,`The security benefit people notice least is the most useful: a manager fills credentials based on the domain, so it declines to autofill on a lookalike phishing page. That silent refusal is often the first clue that a page is not what it claims.`,`The trade-off is real and worth stating: your manager becomes a single high-value target. Protect it with a long unique passphrase and two-step authentication, and keep an offline record of recovery codes.`]},{id:`second-factors`,heading:`Two-step authentication and passkeys`,paragraphs:[`Two-step authentication requires something beyond the password. An authenticator application generating codes is a solid default. SMS
32is better than nothing but weaker, because phone numbers can be transferred away from you. Hardware keys are the strongest option and worth it for accounts that control others.`,`Passkeys go further by removing the shared secret. Your device keeps a private key, the service keeps a public one, and authentication happens with a biometric or device unlock. There is nothing to type, so there is nothing to phish. Where a service offers passkeys, they are the best available choice.`],note:`Save recovery codes when you enable a second factor, and keep them somewhere that does not depend on the account itself.`},{id:`priorities`,heading:`If you only do three things`,paragraphs:[`Give your email account a long unique passphrase and strong authentication, because email is the reset path for everything else. Install a password manager and let it replace reused passwords gradually, starting with financial and work accounts. Turn on passkeys or an authenticator app wherever they are offered.`,`That is the majority of the benefit for a modest amount of effort, and it does not require becoming an enthusiast about the subject.`]}],faq:[{question:`How long should a password be?`,answer:`Longer is better, and a passphrase of several unrelated words is easier to type than a short cryptic string of similar strength. Uniqueness matters at least as much as length.`},{question:`Should I change my passwords regularly?`,answer:`Scheduled changes tend to produce predictable variations. Change a password when a service reports a breach, when you suspect exposure, or when it is reused elsewhere.`},{question:`Are password managers safe?`,answer:`A manager concentrates risk but removes the far larger risk of reuse, and it resists phishing by refusing to autofill on lookalike domains. Protect it with a long unique passphrase and a second factor.`},{question:`What is a passkey?`,answer:`A passkey replaces the password with a key pair held by your device, unlocked by biometrics or a device PIN. Because there is no secret to type, a passkey cannot be phished.`}],related:[{label:`Security at qikfox`,to:`/security`,description:`Account and device security principles.`},{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`How credentials are usually taken.`},{label:`Trust at qikfox`,to:`/trust`,description:`How we handle your account data.`},{label:`Help Center`,to:`/resources/help`,description:`Account and sign-in questions.`}]},{slug:`anatomy-of-a-scam-message`,title:`What a scam message looks like in 2026`,metaTitle:`Anatomy of a scam message: the pretexts and the tells`,description:`Deliveries, refunds and account warnings remain the three dominant pretexts because they arrive when you plausibly expect them. Here is how to read one calmly.`,category:`Scams`,published:`2026-01-28`,updated:`2026-02-28`,readingMinutes:7,answer:`Most scam messages use one of three pretexts - a delivery problem, a refund or payment issue, or an account warning - because each plausibly explains an unexpected message and each justifies urgency. The structure is always the same: a believable reason, a deadline, and a single link. Verifying through a channel you chose defeats all of them.`,takeaways:[`The pretext is chosen to match something you might genuinely be expecting.`,`Urgency exists to prevent verification, not to convey importance.`,`One link and one action is a structural tell worth noticing.`,`Correct personal details prove data was obtained, not that the sender is genuine.`,`Voice and video can now be imitated, so unusual payment requests need a second channel.`],sections:[{id:`three-pretexts`,heading:`The three pretexts`,paragraphs:[`Delivery messages work because most people have something in transit and the stated problem is trivially solvable: a small fee, a re-scheduled slot, an address confirmation. The amount is deliberately small enough not to warrant thought.`,`Refund and payment messages work in both directions. Money owed to you lowers suspicion, while a failed payment threatens interruption of something you rely on. Both push toward entering card details.`,`Account warnings are the most valuable to attackers, because the target of the exercise is the credential itself. Unusual sign-in detected, storage full, subscription lapsing, action required to avoid suspension.`],list:[`Delivery: a small fee, a missed slot, an address to confirm.`,`Money: a refund waiting, a payment failed, a subscription lapsing.`,`Account: unusual activity, verification required, imminent suspension.`]},{id:`structure`,heading:`The structure underneath`,paragraphs:[`Strip the branding and every one of these messages has three parts: a reason that explains why it arrived, a deadline that discourages checking, and exactly one route forward. The single route is the tell - genuine organisations expect you to reach them the way you normally do.`,`Urgency is doing the real work. It is not there to convey importance; it is there to compress the interval in which you might think. Recognising that inversion is most of the skill.`]},{id:`what-no-longer-helps`,heading:`What no longer helps`,paragraphs:[`Poor grammar is no longer a dependable signal, since text generation is trivially available. Correct personal details are not reassurance either: n
32ames, addresses, order numbers and partial card digits circulate after breaches, so accuracy proves only that someone obtained data.`,`Caller display and sender names can be forged, and thread history can be reused after an account is compromised. Voice and video imitation are now practical enough that hearing a familiar voice is not verification for a payment request.`],note:`Assume the surface can be faked. Verify through a channel you initiated, using contact details you already had.`},{id:`the-response`,heading:`One response that covers all of it`,paragraphs:[`Do not act inside the message. Close it, then reach the organisation the way you normally would - the app, a bookmark, or the number printed on your card - and ask whether the notice is real. Genuine issues will be visible there; invented ones will not.`,`For requests involving money from someone you know, verify on a different channel and accept a short delay. Legitimate requests survive a five-minute pause; fraudulent ones depend on its absence.`,`qikfox products aim to help before the click rather than after: safety context alongside search results, and browser warnings that state what was detected and offer a way back. Neither replaces the habit of verifying independently.`]},{id:`reporting`,heading:`Reporting and cleaning up`,paragraphs:[`Report the message to the impersonated organisation and to your national reporting service, then delete it. If you entered credentials, change that password on the real site, sign out other sessions, and enable stronger authentication. If you entered card details, contact your bank immediately - card fraud is usually reversible when reported quickly.`]}],faq:[{question:`How can I tell if a delivery message is a scam?`,answer:`Do not use the link. Open the courier's own app or website and enter the tracking number yourself. A genuine issue appears there; a fabricated one does not.`},{question:`The message had my real name and address. Doesn't that prove it is genuine?`,answer:`No. Personal details circulate after data breaches, so accuracy shows someone obtained data about you, not that the sender is who they claim to be.`},{question:`Are scam messages easier to spot because of bad grammar?`,answer:`Not any more. Text generation makes fluent messages the norm, so structure and pressure are better signals than language quality.`},{question:`What should I do if I paid a small fee to a scam page?`,answer:`Contact your bank straight away, report the card as compromised, and watch for follow-up contact from someone claiming to help recover the money - that follow-up is itself a common second scam.`}],related:[{label:`Recognising phishing pages`,to:`/resources/guides/recognise-phishing-pages`,description:`What happens after the link is clicked.`},{label:`qikfox Search`,to:`/search`,description:`Safety context before the click.`},{label:`Security Center`,to:`/security-center`,description:`Current advisories and notices.`},{label:`Contact qikfox`,to:`/contact`,description:`Report an impersonation attempt.`}]}],oT=new Map(aT.map(e=>[e.slug,e])),sT=()=>$(()=>import(`./resources.guides.index-DNnkzJsK.js`),__vite__mapDeps([118,1,3,4,2,5,31])),cT=`Guides - plain-language Internet safety explainers | qikfox`,lT=`In-depth guides on phishing, malware, tracking, public Wi-Fi and passwords. Each one explains the mechanism in plain language and points to the qikfox product that addresses it.`,uT=N(`/resources/guides/`)({head:()=>({...Z({title:cT,description:lT,path:`/resources/guides`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Guides`,path:`/resources/guides`}]),wb({name:`qikfox Internet safety guides`,items:aT.map(e=>({name:e.title,path:`/resources/guides/${e.slug}`}))})]}),component:P(sT,`component`)}),dT=N(`/resources/guides/$slug`)({loader:({params:e})=>
32{let t=oT.get(e.slug);if(!t)throw ye();return{guide:t}},head:({params:e,loaderData:t})=>{if(!t)return{meta:[{title:`Guide unavailable | qikfox`},{name:`robots`,content:`noindex`}]};let{guide:n}=t,r=`/resources/guides/${e.slug}`;return{...Z({title:n.metaTitle,description:n.description,path:r,ogType:`article`}),scripts:[Q([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Guides`,path:`/resources/guides`},{name:n.title,path:r}]),Sb({headline:n.title,description:n.description,path:r,published:n.published,updated:n.updated,section:n.category}),Cb(n.faq)]}},notFoundComponent:P(()=>$(()=>import(`./resources.guides._slug-aq5_W_xG.js`),__vite__mapDeps([119,1])),`notFoundComponent`),component:P(()=>$(()=>import(`./resources.guides._slug-Dtdb1NAg.js`),__vite__mapDeps([120,1,117,3,4,2,5,31])),`component`)}),fT=N(`/_authenticated/portal/tickets/`)({component:P(()=>$(()=>import(`./portal.tickets.index-CQrkwQ7s.js`),__vite__mapDeps([121,1,4,25,74,99,21,22,23,41])),`component`)}),pT=N(`/_authenticated/portal/tickets/$ticketId`)({component:P(()=>$(()=>import(`./portal.tickets._ticketId-DLK6fsZP.js`),__vite__mapDeps([122,1,4,25,74,99,21,22,23,41])),`component`)}),mT=kb.update({id:`/`,path:`/`,getParentRoute:()=>X}),hT=Ab.update({id:`/_authenticated`,getParentRoute:()=>X}),gT=jb.update({id:`/about`,path:`/about`,getParentRoute:()=>X}),_T=Fb.update({id:`/antivirus`,path:`/antivirus`,getParentRoute:()=>X}),vT=zb.update({id:`/auth`,path:`/auth`,getParentRoute:()=>X}),yT=Bb.update({id:`/backoffice`,path:`/backoffice`,getParentRoute:()=>X}),bT=Wb.update({id:`/billing-help`,path:`/billing-help`,getParentRoute:()=>X}),xT=Gb.update({id:`/browser`,path:`/browser`,getParentRoute:()=>X}),ST=Yb.update({id:`/compare`,path:`/compare`,getParentRoute:()=>X}),CT=$b.update({id:`/contact`,path:`/contact`,getParentRoute:()=>X}),wT=ex.update({id:`/download`,path:`/download`,getParentRoute:()=>X}),TT=tx.update({id:`/legal`,path:`/legal`,getParentRoute:()=>X}),ET=ax.update({id:`/newsroom`,path:`/newsroom`,getParentRoute:()=>X}),DT=lx.update({id:`/partners`,path:`/partners`,getParentRoute:()=>X}),OT=px.update({id:`/press`,path:`/press`,getParentRoute:()=>X}),kT=vx.update({id:`/pricing`,path:`/pricing`,getParentRoute:()=>X}),AT=Sx.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>X}),jT=Ex.update({id:`/privacy-choices`,path:`/privacy-choices`,getParentRoute:()=>X}),MT=Ax.update({id:`/product-activation`,path:`/product-activation`,getParentRoute:()=>X}),NT=Px.update({id:`/products`,path:`/products`,getParentRoute:()=>X}),PT=Rx.update({id:`/renewal-help`,path:`/renewal-help`,getParentRoute:()=>X}),FT=zx.update({id:`/reset-password`,path:`/reset-password`,getParentRoute:()=>X}),IT=Bx.update({id:`/resources`,path:`/resources`,getParentRoute:()=>X}),LT=Wx.update({id:`/safety`,path:`/safety`,getParentRoute:()=>X}),RT=Jx.update({id:`/search`,path:`/search`,getParentRoute:()=>X}),zT=Qx.update({id:`/security`,path:`/security`,getParentRoute:()=>X}),BT=nS.update({id:`/security-center`,path:`/security-center`,getParentRoute:()=>X}),VT=oS.update({id:`/subscription-help`,path:`/subscription-help`,getParentRoute:()=>X}),HT=uS.update({id:`/support`,path:`/support`,getParentRoute:()=>X}),UT=dS.update({id:`/team-invite`,path:`/team-invite`,getParentRoute:()=>X}),WT=fS.update({id:`/team-sign-in`,path:`/team-sign-in`,getParentRoute:()=>X}),GT=gS.update({id:`/technology`,path:`/technology`,getParentRoute:()=>X}),KT=bS.update({id:`/transparency`,path:`/transparency`,getParentRoute:()=>X}),qT=wS.update({id:`/trust`,path:`/trust`,getParentRoute:()=>X}),JT=TS.update({id:`/vpn`,path:`/vpn`,getParentRoute:()=>X}),YT=kS.update({id:`/welcome`,path:`/welcome`,getParentRoute:()=>X}),XT=PS.update({id:`/why-ai-era-needs-a-smart-browser`,path:`/why-ai-era-needs-a-smart-browser`,getParentRoute:()=>X}),ZT=FS.update({id:`/portal`,path:`/portal`,getParentRoute:()=>hT}),QT=zS.update({id:`/`,path:`/`,getParentRoute:()=>gT}),$T=US.update({id:`/careers`,path:`/careers`,getParentRoute:()=>gT}),eE=qS.update({id:`/company`,path:`/company`,getParentRoute:()=>gT}),tE=ZS.update({id:`/mission`,path:`/mission`,getParentRoute:()=>gT}),nE=QS.update({id:`/app-store/`,path:`/app-store/`,getParentRoute:()=>X}),rE=$S.update({id:`/`,path:`/`,getParentRoute:()=>yT}),iE=eC.update({id:`/bookings`,path:`/bookings`,getParentRoute:()=>yT}),aE=tC.update({id:`/signups`,path:`/signups`,getParentRoute:()=>yT}),oE=nC.update({id:`/subscribers`,path:`/subscribers`,getParentRoute:()=>yT}),sE=rC.update({id:`/team`,path:`/team`,getParentRoute:()=>yT}),cE=sC.update({id:`/`,path:`/`,getParentRoute:()=>xT}),lE=dC.update({id:`/safety`,path:`/safety`,getParentRoute:()=>xT}),uE=hC.update({id:`/`,path:`/`,getParentRoute:()=>wT}),dE=yC.update({id:`/android`,path:`/android`,getParentRoute:()=>wT}),fE=CC.update({id:`/ios`,path:`/ios`,getParentRoute:()=>wT}),pE=DC.update({id:`/linux`,path:`/linux`,getParentRoute:()=>wT}),mE=jC.update({id:`/mac`,path:`/mac`,getParentRoute:()=>wT}),hE=FC.update({id:`/windows`,path:`/windows`,getParentRoute:()=>wT}),gE=zC.update({id:`/`,path:`/`,getParentRoute:()=>TT}),_E=UC.update({id:`/acceptable-use`,path:`/acceptable-use`,getParentRoute:()=>TT}),vE=qC.update({id:`/accessibility`,path:`/accessibility`,getParentRoute:()=>TT}),yE=ZC.update({id:`/cookie-policy`,path:`/cookie-policy`,getParentRoute:()=>TT}),bE=tw.update({id:`/privacy-policy`,path:`/privacy-policy`,getParentRoute:()=>TT}),xE=aw.update({id:`/refund-policy`,path:`/refund-policy`,getParentRoute:()=>TT}),SE=lw.update({id:`/responsible-disclosure`,path:`/responsible-disclosure`,getParentRoute:()=>TT}),CE=pw.update({id:`/terms`,path:`/terms`,getParentRoute:()=>TT}),wE=_w.update({id:`/`,path:`/`,getParentRoute:()=>IT}),TE=xw.update({id:`/help`,path:`/help`,getParentRoute:()=>IT}),EE=Tw.update({id:`/`,path:`/`,getParentRoute:()=>JT}),DE=kw.update({id:`/how-it-works`,path:`/how-it-works`,getParentRoute:()=>JT}),OE=Aw.update({id:`/`,path:`/`,getParentRoute:()=>ZT}),kE=jw.update({id:`/account`,path:`/account`,getParentRoute:()=>ZT}),AE=Mw.update({id:`/services`,path:`/services`,getParentRoute:()=>ZT}),jE=Nw.update({id:`/subscriptions`,path:`/subscriptions`,getParentRoute:()=>ZT}),ME=Pw.update({id:`/app-store/agents/`,path:`/app-store/agents/`,getParentRoute:()=>X}),NE=Bw.update({id:`/app-store/agents/$category`,path:`/app-store/agents/$category`,getParentRoute:()=>X}),PE=Vw.update({id:`/app-store/apps/$category`,path:`/app-store/apps/$category`,getParentRoute:()=>X}),FE=Hw.update({id:`/app-store/skills/`,path:`/app-store/skills/`,getParentRoute:()=>X}),IE=Uw.update({id:`/app-store/skills/$category`,path:`/app-store/skills/$category`,getParentRoute:()=>X}),LE=Ww.update({id:`/app-store/tools/`,path:`/app-store/tools/`,getParentRoute:()=>X}),RE=Gw.update({id:`/app-store/tools/$category`,path:`/app-store/tools/$category`,getParentRoute:()=>X}
32),zE=Kw.update({id:`/customers/$customerId`,path:`/customers/$customerId`,getParentRoute:()=>yT}),BE=qw.update({id:`/tickets/`,path:`/tickets/`,getParentRoute:()=>yT}),VE=Jw.update({id:`/tickets/$ticketId`,path:`/tickets/$ticketId`,getParentRoute:()=>yT}),HE=rT.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>IT}),UE=iT.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>IT}),WE=uT.update({id:`/guides/`,path:`/guides/`,getParentRoute:()=>IT}),GE=dT.update({id:`/guides/$slug`,path:`/guides/$slug`,getParentRoute:()=>IT}),KE=fT.update({id:`/tickets/`,path:`/tickets/`,getParentRoute:()=>ZT}),qE={AuthenticatedPortalAccountRoute:kE,AuthenticatedPortalServicesRoute:AE,AuthenticatedPortalSubscriptionsRoute:jE,AuthenticatedPortalIndexRoute:OE,AuthenticatedPortalTicketsTicketIdRoute:pT.update({id:`/tickets/$ticketId`,path:`/tickets/$ticketId`,getParentRoute:()=>ZT}),AuthenticatedPortalTicketsIndexRoute:KE},JE={AuthenticatedPortalRoute:ZT._addFileChildren(qE)},YE=hT._addFileChildren(JE),XE={AboutCareersRoute:$T,AboutCompanyRoute:eE,AboutMissionRoute:tE,AboutIndexRoute:QT},ZE=gT._addFileChildren(XE),QE={BackofficeBookingsRoute:iE,BackofficeSignupsRoute:aE,BackofficeSubscribersRoute:oE,BackofficeTeamRoute:sE,BackofficeIndexRoute:rE,BackofficeCustomersCustomerIdRoute:zE,BackofficeTicketsTicketIdRoute:VE,BackofficeTicketsIndexRoute:BE},$E=yT._addFileChildren(QE),eD={BrowserSafetyRoute:lE,BrowserIndexRoute:cE},tD=xT._addFileChildren(eD),nD={DownloadAndroidRoute:dE,DownloadIosRoute:fE,DownloadLinuxRoute:pE,DownloadMacRoute:mE,DownloadWindowsRoute:hE,DownloadIndexRoute:uE},rD=wT._addFileChildren(nD),iD={LegalAcceptableUseRoute:_E,LegalAccessibilityRoute:vE,LegalCookiePolicyRoute:yE,LegalPrivacyPolicyRoute:bE,LegalRefundPolicyRoute:xE,LegalResponsibleDisclosureRoute:SE,LegalTermsRoute:CE,LegalIndexRoute:gE},aD=TT._addFileChildren(iD),oD={ResourcesHelpRoute:TE,ResourcesIndexRoute:wE,ResourcesBlogSlugRoute:UE,ResourcesGuidesSlugRoute:GE,ResourcesBlogIndexRoute:HE,ResourcesGuidesIndexRoute:WE},sD=IT._addFileChildren(oD),cD={VpnHowItWorksRoute:DE,VpnIndexRoute:EE},lD={IndexRoute:mT,AuthenticatedRouteRoute:YE,AboutRoute:ZE,AntivirusRoute:_T,AuthRoute:vT,BackofficeRoute:$E,BillingHelpRoute:bT,BrowserRoute:tD,CompareRoute:ST,ContactRoute:CT,DownloadRoute:rD,LegalRoute:aD,NewsroomRoute:ET,PartnersRoute:DT,PressRoute:OT,PricingRoute:kT,PrivacyRoute:AT,PrivacyChoicesRoute:jT,ProductActivationRoute:MT,ProductsRoute:NT,RenewalHelpRoute:PT,ResetPasswordRoute:FT,ResourcesRoute:sD,SafetyRoute:LT,SearchRoute:RT,SecurityRoute:zT,SecurityCenterRoute:BT,SubscriptionHelpRoute:VT,SupportRoute:HT,TeamInviteRoute:UT,TeamSignInRoute:WT,TechnologyRoute:GT,TransparencyRoute:KT,TrustRoute:qT,VpnRoute:JT._addFileChildren(cD),WelcomeRoute:YT,WhyAiEraNeedsASmartBrowserRoute:XT,AppStoreIndexRoute:nE,AppStoreAgentsCategoryRoute:NE,AppStoreAppsCategoryRoute:PE,AppStoreSkillsCategoryRoute:IE,AppStoreToolsCategoryRoute:RE,AppStoreAgentsIndexRoute:ME,AppStoreSkillsIndexRoute:FE,AppStoreToolsIndexRoute:LE},uD=X._addFileChildren(lD),dD=()=>lr({routeTree:uD,context:{queryClient:new ku({defaultOptions:{queries:{staleTime:1/0,gcTime:18e5,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:1}}})},scrollRestoration:!0,defaultPreloadStaleTime:0});async function fD(){let e=await dD(),t;if(Ml){let n=await Ml.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(rn),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await sn(e),e}var pD=fD;async function mD(){let e=await pD();return window.$_TSR?.h(),e}var hD;function gD(){return hD||=mD(),(0,M.jsx)(ln,{promise:hD,children:e=>(0,M.jsx)(fr,{router:e})})}var _D=Me();(0,j.startTransition)(()=>{(0,_D.hydrateRoot)(document,(0,M.jsx)(j.StrictMode,{children:(0,M.jsx)(gD,{})}))});export{pv as $,Uy as A,Wl as At,uy as B,Pl as Bt,zb as C,Iu as Ct,rb as D,uu as Dt,mb as E,xu as Et,Ay as F,H as Ft,ay as G,Ar as Gt,fy as H,Ol as Ht,vy as I,Jl as It,$v as J,Bn as Jt,ry as K,xr as Kt,by as L,iu as Lt,By as M,zl as Mt,Fy as N,$l as Nt,ib as O,su as Ot,ky as P,Ul as Pt,fv as Q,xy as R,Hl as Rt,vx as S,Lu as St,pb as T,Tu as Tt,iy as U,Dr as Ut,ly as V,Nl as Vt,ny as W,Or as Wt,uv as X,Lv as Y,dv as Z,Iw as _,Yu as _t,rT as a,ld as at,kS as b,Hu as bt,Jw as c,dd as ct,Uw as d,td as dt,cv as et,Vw as f,ud as ft,Lw as g,$u as gt,zw as h,sd as ht,iT as i,pd as it,Vy as j,Vl as jt,Hy as k,ou as kt,Kw as l,nd as lt,Rw as m,od as mt,dT as n,Q_ as nt,Zw as o,rd as ot,Bw as p,ad as pt,ty as q,ir as qt,aT as r,hd as rt,Yw as s,fd as st,pT as t,lv as tt,Gw as u,id as ut,Fw as v,Ju as vt,bb as w,ju as wt,dS as x,Ru as xt,AS as y,qu as yt,dy as z,Il as zt};
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.