var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var ee=x.prototype=new b;ee.constructor=x,_(ee,y.prototype),ee.isPureReactComponent=!0;var te=Array.isArray;function ne(){}var S={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function C(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ie(e,t){return C(e.type,t,e.props)}function ae(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function oe(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var w=/\/+/g;function se(e,t){return typeof e==`object`&&e&&e.key!=null?oe(``+e.key):t.toString(36)}function ce(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ne,ne):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function le(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,le(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+se(e,0):a,te(o)?(i=``,c!=null&&(i=c.replace(w,`$&/`)+`/`),le(o,r,i,``,function(e){return e})):o!=null&&(ae(o)&&(o=ie(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(w,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(te(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;for(e.push(t);0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break}}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,ee||(ee=!0,ie());else{var t=n(l);t!==null&&w(x,t.startTime-e)}}}var ee=!1,te=-1,ne=5,S=-1;function re(){return g?!0:!(e.unstable_now()-St&&re());){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 t}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&&w(x,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():ee=!1}}}var ie;if(typeof y==`function`)ie=function(){y(C)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=C,ie=function(){oe.postMessage(null)}}else ie=function(){_(C,0)};function w(t,n){te=_(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||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,w(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,ie()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{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=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1De||(e.current=Ee[De],Ee[De]=null,De--)}function k(e,t){De++,Ee[De]=e.current,e.current=t}var ke=Oe(null),Ae=Oe(null),je=Oe(null),Me=Oe(null);function Ne(e,t){switch(k(je,t),k(Ae,e),k(ke,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(ke),k(ke,e)}function Pe(){O(ke),O(Ae),O(je)}function Fe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,k(Me,e)),t=ke.current;var n=dp(t,e.type);t!==n&&(k(Ae,e),k(ke,n))}function Ie(e){Ae.current===e&&(O(ke),O(Ae)),Me.current===e&&(O(Me),sh._currentValue=Te)}var Le,Re;function ze(e){if(Le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||``,Re=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ze(n):``}function He(e,t){switch(e.tag){case 26:case 27:case 5:return ze(e.type);case 16:return ze(`Lazy`);case 13:return e.child!==t&&t!==null?ze(`Suspense Fallback`):ze(`Suspense`);case 19:return ze(`SuspenseList`);case 0:case 15:return Ve(e.type,!1);case 11:return Ve(e.type.render,!1);case 1:return Ve(e.type,!0);case 31:return ze(`Activity`);case 30:return ze(`ViewTransition`);default:return``}}function Ue(e){try{var t=``,n=null;do t+=He(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var We=Object.prototype.hasOwnProperty,Ge=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Ye=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,$e=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=t.log,rt=t.unstable_setDisableYieldValue,it=null,at=null;function ot(e){if(typeof nt==`function`&&rt(e),at&&typeof at.setStrictMode==`function`)try{at.setStrictMode(it,e)}catch{}}var st=Math.clz32?Math.clz32:ut,ct=Math.log,lt=Math.LN2;function ut(e){return e>>>=0,e===0?32:31-(ct(e)/lt|0)|0}var dt=256,ft=262144,pt=4194304;function mt(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&-e;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 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function ht(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&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=mt(n))):i=mt(o):i=mt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=mt(n))):i=mt(o)):i=mt(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 gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _t(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function xt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function St(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=xr),wr=` `,Tr=!1;function Er(e,t){switch(e){case`keyup`:return yr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Or=!1;function kr(e,t){switch(e){case`compositionend`:return Dr(t);case`keypress`:return t.which===32?(Tr=!0,wr):null;case`textInput`:return e=t.data,e===wr&&Tr?null:e;default:return null}}function Ar(e,t){if(Or)return e===`compositionend`||!br&&Er(e,t)?(e=Hn(),Vn=Bn=zn=null,Or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$r(n)}}function ti(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ti(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ni(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qr(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=Qr(e.document)}return t}function ri(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 ii=In&&`documentMode`in document&&11>=document.documentMode,ai=null,oi=null,si=null,ci=!1;function li(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ci||ai==null||ai!==Qr(r)||(r=ai,`selectionStart`in r&&ri(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),si&&Zr(si,r)||(si=r,r=Jf(oi,`onSelect`),0>=o,i-=o,aa=1<<32-st(t)+i|n<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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),N&&sa(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),N&&sa(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return N&&sa(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),N&&sa(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===w&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case ae:e:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===w){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),ho(c,a),c.return=e,e=c;break e}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===me&&so(l)===r.type){n(e,r.sibling),c=i(r,a.props),ho(c,a),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}a.type===w?(c=Ki(a.props.children,e.mode,c,a.key),ho(c,a),c.return=e,e=c):(c=Gi(a.type,a.key,a.props,null,e.mode,c),ho(c,a),c.return=e,e=c)}return o(e);case oe:e:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}c=Yi(a,e.mode,c),c.return=e,e=c}return o(e);case me:return a=so(a),_(e,r,a,c)}if(we(a))return h(e,r,a,c);if(xe(a)){if(l=xe(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,mo(a),c);if(a.$$typeof===T)return _(e,r,Na(e,a),c);go(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=qi(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{po=0;var i=_(e,t,n,r);return fo=null,i}catch(t){if(t===to||t===ro)throw t;var a=Vi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var vo=_o(!0),yo=_o(!1),bo=!1;function xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function So(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 Co(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ri(e),Li(e,null,n),t}return Pi(e,r,t,n),Ri(e)}function To(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,wt(e,n)}}function Eo(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}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Do=!1;function Oo(){if(Do){var e=Ka;if(e!==null)throw e}}function ko(e,t,n,r){Do=!1;var i=e.updateQueue;bo=!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,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===Ga&&(Do=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break e;d=C({},d,f);break e;case 2:bo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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),sd|=o,e.lanes=o,e.memoizedState=d}}function Ao(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function jo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};s.types=o===null?null:o.types,E.T=s,mc(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?pc(e,t,Ya(c,r),jd(e)):pc(e,t,r,jd(e))}catch(n){pc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function rc(){}function ic(e,t,n,r){if(e.tag!==5)throw Error(s(476));nc(e,ac(e).queue,t,Te,n===null?rc:function(){return oc(e),n(r)})}function ac(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:Te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oc(e){var t=ac(e);t.next===null&&(t=e.alternate.memoizedState),pc(e,t.next.queue,{},jd())}function sc(){return Ma(sh)}function cc(){return z().memoizedState}function lc(){return z().memoizedState}function uc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=Co(n);var r=wo(t,e,n);r!==null&&(Pd(r,t,n),To(r,t,n)),t={cache:Ra()},e.payload=t;return}t=t.return}}function dc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hc(e)?gc(t,n):(n=Fi(e,t,n,r),n!==null&&(Pd(n,e,r),_c(n,t,r)))}function fc(e,t,n){pc(e,t,n,jd())}function pc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hc(e))gc(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,Xr(s,o))return Pi(e,t,i,0),G===null&&Ni(),!1}catch{}if(n=Fi(e,t,i,r),n!==null)return Pd(n,e,r),_c(n,t,r),!0}return!1}function mc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hc(e)){if(t)throw Error(s(479))}else t=Fi(e,n,r,2),t!==null&&Pd(t,e,2)}function hc(e){var t=e.alternate;return e===F||t!==null&&t===F}function gc(e,t){Xo=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _c(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wt(e,n)}}var vc={readContext:Ma,use:ps,useCallback:R,useContext:R,useEffect:R,useImperativeHandle:R,useLayoutEffect:R,useInsertionEffect:R,useMemo:R,useReducer:R,useRef:R,useState:R,useDebugValue:R,useDeferredValue:R,useTransition:R,useSyncExternalStore:R,useId:R,useHostTransitionStatus:R,useFormState:R,useActionState:R,useOptimistic:R,useMemoCache:R,useCacheRefresh:R,useEffectEvent:R},yc={readContext:Ma,use:ps,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:Ma,useEffect:Us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Zo){ot(!0);try{e()}finally{ot(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Zo){ot(!0);try{n(t)}finally{ot(!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=dc.bind(null,F,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,n=fc.bind(null,F,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zs,useDeferredValue:function(e,t){return ec(us(),e,t)},useTransition:function(){var e=Ts(!1);return e=nc.bind(null,F,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=F,i=us();if(N){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||bs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Us(Ss.bind(null,r,a,e),[e]),r.flags|=2048,zs(9,{destroy:void 0},xs.bind(null,r,a,n,t),null),n},useId:function(){var e=us(),t=G.identifierPrefix;if(N){var n=oa,r=aa;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Qo++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[jt]=t,a[Mt]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(t.stateNode=a,np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break;case`img`:r=!0;break;default:r=!1}r&&gl(t)}}return V(t),t.subtreeFlags&=-33554433,_l(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=je.current,va(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=j,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[jt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ha(t,!0)}else e=lp(e).createTextNode(r),e[jt]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=va(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[jt]=t}else ya(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=ba(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Uo(t),t):(Uo(t),null);if(t.flags&128)throw Error(s(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=va(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[jt]=t}else ya(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),i=!1}else i=ba(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Uo(t),t):(Uo(t),null)}return Uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yl(t,t.updateQueue),V(t),null);case 4:return Pe(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,V(t),null;case 10:return Ea(t.type),V(t),null;case 19:if(Ko(t),r=t.memoizedState,r===null)return V(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)bl(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=qo(e),a!==null){for(t.flags|=128,bl(r,!1),e=a.updateQueue,t.updateQueue=e,yl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wi(n,e),n=n.sibling;return Go(t,Wo.current&1|2),N&&sa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ye()>_d&&(t.flags|=128,i=!0,bl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=qo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,yl(t,e),bl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!N)return V(t),null}else 2*Ye()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,i=!0,bl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}if(r.tail!==null){e=r.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ye(),e.sibling=null,a=Wo.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||N?Go(t,a):(n=a,k(Lo,t),k(Wo,n),Ro===null&&(Ro=t)),N&&sa(t,r.treeForkCount),e}return V(t),null;case 22:case 23:return Uo(t),Io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&yl(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&&O(Za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ea(P),V(t),null;case 25:return null;case 30:return t.flags|=33554432,V(t),null}throw Error(s(156,t.tag))}function Sl(e,t){switch(ua(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ea(P),Pe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ie(t),null;case 31:if(t.memoizedState!==null){if(Uo(t),t.alternate===null)throw Error(s(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ko(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Pe(),null;case 10:return Ea(t.type),null;case 22:case 23:return Uo(t),Io(),e!==null&&O(Za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ea(P),null;default:return null}}function Cl(e,t){switch(ua(t),t.tag){case 3:Ea(P),Pe();break;case 26:case 27:case 5:Ie(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&Uo(t);break;case 13:Uo(t);break;case 19:Ko(t);break;case 10:Ea(t.type);break;case 22:case 23:Uo(t),Io(),e!==null&&O(Za);break;case 24:Ea(P)}}function wl(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){Z(t,t.return,e)}}function Tl(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){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function El(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jo(t,n)}catch(t){Z(e,e.return,t)}}}function Dl(e,t,n){n.props=Ec(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Ol(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:var i=e.stateNode,a=Ei(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(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){Z(e,t,n)}else n.current=null}}function Al(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[jt]=e,Gt(r),t=r;break e;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;og&&(o=g,g=h,h=o);var _=ei(s,h),v=ei(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;sn?32:n,E.T=null,n=wd,wd=null;var a=bd,o=Sd;if(X=0,xd=bd=null,Sd=0,W&6)throw Error(s(331));var c=W;if(W|=4,Zu(a.current),Uu(a,a.current,o,n),W=c,Df(0,!1),at&&typeof at.onPostCommitFiberRoot==`function`)try{at.onPostCommitFiberRoot(it,a)}catch{}return!0}finally{D.p=i,E.T=r,uf(e,t)}}function pf(e,t,n){t=Zi(n,t),t=Mc(e.stateNode,t,2),e=wo(e,t,2),e!==null&&(xt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Zi(n,e),n=Nc(2),r=wo(t,n,2),r!==null&&(Pc(n,r,t,e),xt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;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)||(ad=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Ye()-hd?W&2?ld|=n:Vd(e,0):ld|=n,dd===q&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=yt()),e=Ii(e,t),e!==null&&(xt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ge(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;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-st(42|e)+1)-1,a&=i&~(o&~s),a=a&0xc000095?a&0xc000095|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=q,a=ht(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||gt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Ye(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=fn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Gt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+fn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+fn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+fn(n.imageSizes)+`"]`)):i+=`[href="`+fn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[zt]=!0,o.onload=o.onerror=function(){Kt(o)}),Gt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+fn(r)+`"][href="`+fn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=C({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Gt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Wt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Gt(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Wt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Gt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Wt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Gt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=je.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Wt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Pm(n.href);var a=Wt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Wt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pm(e){return`href="`+fn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[zt]){r.loading=1;return}}else t=e.createElement(`link`),t[zt]=!0,t.onload=t.onerror=Kt.bind(null,t),np(t,`link`,n),Gt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+fn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+fn(n.href)+`"]`);if(r)return t.instance=r,Gt(r),r;var i=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Gt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Gt(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Gt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Gt(i),i):(r=n,(i=vm.get(a))&&(r=C({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Gt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(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 title`):null)}function qm(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;return t.rel!==`stylesheet`||(e=t.disabled,typeof t.precedence==`string`&&e==null);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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Gt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{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=s()})),l=n(),u=c(),d=[{label:`Features`,href:`#features`},{label:`Install`,href:`#install`},{label:`Reviews`,href:`#reviews`},{label:`Pricing`,href:`#pricing`},{label:`FAQ`,href:`#faq`}],f=[{key:`pills`,title:`Download pills`,body:`A Download button appears right inside every post and message. Click it, pick a quality, done.`},{key:`drm`,title:`DRM decryption`,body:`Protected videos run the full Widevine flow in your browser: license, decrypt, and mux into a clean mp4.`},{key:`bundle`,title:`Bulk archive`,body:`One button queues an entire profile, photos and videos alike, sorted into folders as it saves.`}],p={name:`Free`,description:`Every feature, for everyone. No account, no trial, no card, no server.`,features:[`Download pills on posts and chats`,`Photos, GIFs, videos and audio`,`Quality menu per media`,`Widevine DRM decryption`,`Unlimited bulk downloads`,`Full-timeline crawling`,`Custom folder and file naming`,`Every future update`]},m=[{name:`Pro`,price:6,per:`per month`,note:`Was going to hold bulk downloads and timeline crawling. They are in Free now.`},{name:`Lifetime`,price:39,per:`once`,note:`Pay once, keep it forever. Free already lasts forever, and costs less.`}],h=[{text:`The pill just sits there in the toolbar like it was always part of the site. One click and the video lands in my folder, decrypted. That's it.`,name:`Kevin Patterson`,date:`Apr 13, 2026`},{text:`Archived three creators I've subscribed to for years in one evening. 4,200 files, sorted into folders, named properly. Wild.`,name:`Maya Chen`,date:`Nov 12, 2025`},{text:`Every other downloader wants my login or runs through some sketchy site. ofsaver doesn't phone home at all — everything stays in my browser.`,name:`Sara Lindqvist`,date:`May 2, 2025`},{text:`The DRM ones actually work. License handshake, decrypt, mux — I get one playable mp4 instead of a scrambled stream I can't open.`,name:`Marcus Thompson`,date:`Feb 13, 2026`},{text:`The naming schemes sold me. {creator}/{type}/{date} means my archive looks like a media library instead of a swamp of IMG_0043 files.`,name:`Tyler Brooks`,date:`Aug 7, 2025`},{text:`It marks what you already saved, so re-downloading a profile doesn't duplicate everything. Small detail, huge quality of life.`,name:`Daniel Brooks`,date:`Mar 1, 2025`},{text:`Download all on a 30-photo post is exactly what the site was missing. The site has had a download button design flaw for a decade.`,name:`James Okafor`,date:`Jan 13, 2026`},{text:`Picked 720p for one video and source for another from the same little menu. No settings page spelunking, no re-downloading to change quality.`,name:`Chiara Romano`,date:`May 13, 2025`},{text:`Runs entirely local, works offline for plain media, no accounts, no upsell popups. Feels like something you'd write for yourself.`,name:`Aleksandra Volkov`,date:`May 13, 2024`}],g=[{q:`Does it work with DRM-protected videos?`,a:`Yes. ofsaver runs the full Widevine flow locally in your browser — it fetches the manifest, requests a license with your own session, decrypts the video and audio tracks with WebAssembly, and muxes them into a single playable mp4.`},{q:`Do you see or store my login or downloads?`,a:`No. ofsaver has no servers and no accounts. It uses your existing logged-in session on onlyfans.com, and everything — downloads, keys, settings — lives in your own browser storage.`},{q:`Where do the files go?`,a:`Straight to your browser's Downloads folder. You choose the folder structure and file names in the settings page, with tokens like {creator}, {type}, {date} and {quality} — e.g. Creator/Videos/date_name.mp4.`},{q:`Which media types are supported?`,a:`Photos, GIFs, audio, plain videos, and Widevine DRM-protected videos. Plain media saves in its original quality; DRM videos are decrypted and muxed to mp4 at source quality.`},{q:`Can I download a whole profile at once?`,a:`Yes. The bulk mode crawls a creator's timeline with your own signed requests and queues every photo and video — DRM included — with a polite delay between requests.`}],_=[{name:`OnlyFans`,live:!0},{name:`Fansly`},{name:`JustForFans`},{name:`privacy.com.br`},{name:`Fanvue`},{name:`Patreon`},{name:`LoyalFans`},{name:`FanCentro`},{name:`ManyVids`},{name:`Passes`},{name:`Playboy`}],v=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),y=e(((e,t)=>{t.exports=v()}))();function b(e={threshold:.15}){let t=(0,l.useRef)(null),[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let n=t.current;if(!n)return;let i=new IntersectionObserver(([e])=>{e.isIntersecting&&(r(!0),i.disconnect())},e);return i.observe(n),()=>i.disconnect()},[]),[t,n]}function x({as:e=`div`,delay:t=0,className:n=``,children:r,...i}){let[a,o]=b();return(0,y.jsx)(e,{ref:a,className:`reveal ${o?`is-in`:``} ${n}`,style:{transitionDelay:`${t}ms`},...i,children:r})}function ee({variant:e=`primary`}){return(0,y.jsxs)(`a`,{href:`/ofsaver-extension.zip`,download:!0,className:`btn btn--${e}`,children:[`Add to Chrome`,(0,y.jsx)(`span`,{className:`btn__meta`,children:`Free`})]})}function te({eyebrow:e,muted:t,strong:n,align:r=`center`}){return(0,y.jsxs)(x,{className:`section-heading section-heading--${r}`,children:[(0,y.jsx)(`span`,{className:`eyebrow`,children:e}),(0,y.jsxs)(`h2`,{children:[(0,y.jsx)(`span`,{className:`muted`,children:t}),(0,y.jsx)(`br`,{}),n]})]})}var ne=`/* hairline kernel sha256:346b48bdef2cdfafd5343eba01494255cf75f9c078e6fcd1aafc62bab62980a1 */ /* * HL: everything a figure may call. Read this index; the code under it is the * package's src/core, unchanged, and a figure should not need to read it. * * Every figure is drawn in a 400 × 320 viewBox. World space is x/y on the * ground and z up. Plates are filled with the ground colour and painted back * to front, so a nearer one covers a farther one: append in that order. At * the default camera, Cam(45, 0.5, S), +x runs down to the right and +y down * to the left, so the corner with the largest x and y is nearest the viewer: * append by ascending x + y, from the far corner (smallest x and y) to it. * * Camera * Cam(azDeg, k, S) a camera: azimuth in degrees, k = sin(elevation) (0.5 is the 2:1 view), S = scale * fit(C, points, cx, cy) centres the box of [x, y, z] points on (cx, cy); call it once, before proj * it only centres, it never scales: choose S by trying values, with the most extreme pose in points. * The six figures use S 1.42 to 2.12; the boxes they fit come out 230 to 310 wide and 180 to 245 tall * proj(C) returns P(x, y, z), which gives [sx, sy] * unproj(C, sx, sy, z) the world [x, y] under a screen point, on the plane at height z * facing(C) returns front(sample): whether a ring sample faces the camera * Rounded solids * rrect(u0, v0, u1, v1, r, n) a rounded rectangle, as a ring of samples {u, v, nu, nv} * circ(R, n) a circle, as a ring * rings(x0, y0, x1, y1, r, b) [ring, inner]: a rounded footprint and its crease ring, inset by b * r, the corner radius, is cut to half the shorter side. b, the crease's inset in world units * (0.6 to 2.2 in the figures), must stay under half the shorter side or the crease turns inside out * prism(P, front, ring, inner, z0, z1) {sil, crease}: a solid standing from z0 to z1, as two path strings * ringAt(P, ring, z) the ring's points, projected at height z * run(ring, keep) the one cyclic run of samples that pass keep * hull(points) the convex hull of screen points * extremes(P, ring) [left, right, nearest] samples: where dashed drops fall from * fillet(points, radii, n) rounds every vertex of a closed polygon; returns the new points * radii is an array, one radius per vertex, each cut to half its shorter edge; a single number gives NaN. * n is the steps round each corner, default 4: each vertex becomes n + 1 points * ghost(P, front, ring, z0, depth) a reflection's path {d, y0, y1}; reflect() draws it for you * Paths and numbers * poly(points) a closed path string * open(points) an open polyline string * seg(a, b) one segment between two screen points [sx, sy], as its own subpath; project world points with P first * clamp(v, a, b) * lerp(a, b, t) * rad(deg) * r2(n) two decimals * The continuous clock: one spring per moving number * spring(x, opts) at rest on x; write .t to retarget; opts {k, c, m, eps}, default k 100, c 18, m 1 * stepS(sp, dt) advances by dt seconds; returns whether it is still moving * The discrete clock: a 700ms tween on (.32, .72, 0, 1) * tween(v, dur) at rest on v; dur defaults to 700 (ms) * tset(tw, to, now, delay) retargets from where it is, after delay ms: the stagger * the same target again does nothing, so calling it on every pointer move is safe * tval(tw, now) its value at now * tdone(tw, now) whether it has landed * bezier(x1, y1, x2, y2) a CSS cubic-bezier, as a function of progress * EASE_LIFT the lift curve itself * reducedMotion() true when the reader asked for less motion; springs and tweens already land at once * setReducedMotion(on) the loop's business, not a figure's * Drawing * mk(tag, attrs, parent) one svg element: the only way a figure makes a node * solid(parent) {g, sil, cr}: a group holding a silhouette path and a crease path * put(solid, paths) writes prism()'s {sil, crease} into solid()'s {sil, cr}: sil into sil, crease into cr * flatDot(parent, C, r, cls) a dot lying on the ground plane; cls is "dot", "dot m" or "dot off" * place(el, point) moves a dot or a circle to [sx, sy] * reflect(svg, parent, P, front, ring, z0, depth) a fading mirror under a solid * fade(svg, y0, y1, a0) a vertical fade, as a mask; returns the value for a mask attribute * Life * register(stage, tick) joins the one frame loop; tick(dt in seconds, now in ms) returns true to ask for another frame; gives {wake, unregister} * pointer(stage, handlers) {move(point), down(point), leave()}, points in viewBox units; returns its disposer * disposer() {add, on, dispose}: collects tear-down, so destroy is bag.dispose * The bench's business, not a figure's * css(lightDark) * inject(root) * tour(stage, stops, onStop) an unseen pointer that walks the stops, [x, y] in viewBox units or null to leave, and gives way to a real one; onStop(i) on each arrival; returns {stop} * LAP the default stops: a diamond around the centre, then a leave * * Classes, on path, polygon, ellipse and line. They are the whole palette; a * figure sets no colour, width or fill of its own. * (none) filled with the ground colour, medium stroke * sil the silhouette's stroke hi the bright stroke: the only highlight * lo the dim stroke nf no fill fo fill only, no stroke * dash a dashed guide * dot a bright dot dot m a medium dot dot off a dim dot */ var HL = (() => { var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // packages/hairline/src/core/kernel.ts var kernel_exports = {}; __export(kernel_exports, { Cam: () => Cam, EASE_LIFT: () => EASE_LIFT, LAP: () => LAP, bezier: () => bezier, circ: () => circ, clamp: () => clamp, css: () => css, disposer: () => disposer, extremes: () => extremes, facing: () => facing, fade: () => fade, fillet: () => fillet, fit: () => fit, flatDot: () => flatDot, ghost: () => ghost, hull: () => hull, inject: () => inject, lerp: () => lerp, mk: () => mk, open: () => open, place: () => place, pointer: () => pointer, poly: () => poly, prism: () => prism, proj: () => proj, put: () => put, r2: () => r2, rad: () => rad, reducedMotion: () => reducedMotion, reflect: () => reflect, register: () => register, ringAt: () => ringAt, rings: () => rings, rrect: () => rrect, run: () => run, seg: () => seg, setReducedMotion: () => setReducedMotion, solid: () => solid, spring: () => spring, stepS: () => stepS, tdone: () => tdone, tour: () => tour, tset: () => tset, tval: () => tval, tween: () => tween, unproj: () => unproj }); // packages/hairline/src/core/iso.ts var clamp = (v, a, b) => Math.max(a, Math.min(b, v)); var lerp = (a, b, t) => a + (b - a) * t; var rad = (d) => d * Math.PI / 180; var r2 = (n) => Math.round(n * 100) / 100; var poly = (pts) => "M" + pts.map((p) => r2(p[0]) + " " + r2(p[1])).join("L") + "Z"; var seg = (a, b) => \`M\${r2(a[0])} \${r2(a[1])}L\${r2(b[0])} \${r2(b[1])}\`; var open = (pts) => pts.length < 2 ? "" : "M" + pts.map((p) => r2(p[0]) + " " + r2(p[1])).join("L"); var Cam = (azDeg, k, S) => ({ az: rad(azDeg), k, S, ox: 0, oy: 0 }); function proj(C) { const c = Math.cos(C.az), s = Math.sin(C.az), zf = Math.sqrt(1 - C.k * C.k); return (x, y, z) => { const X = x * c - y * s, Y = x * s + y * c; return [C.ox + C.S * X, C.oy + C.S * (Y * C.k - z * zf)]; }; } function unproj(C, sx, sy, z) { const c = Math.cos(C.az), s = Math.sin(C.az), zf = Math.sqrt(1 - C.k * C.k); const X = (sx - C.ox) / C.S, Y = ((sy - C.oy) / C.S + z * zf) / C.k; return [X * c + Y * s, -X * s + Y * c]; } function fit(C, pts, cx, cy) { C.ox = 0; C.oy = 0; const P = proj(C); let a = 1e9, b = -1e9, c = 1e9, d = -1e9; for (const p of pts) { const q = P(p[0], p[1], p[2]); a = Math.min(a, q[0]); b = Math.max(b, q[0]); c = Math.min(c, q[1]); d = Math.max(d, q[1]); } C.ox = cx - (a + b) / 2; C.oy = cy - (c + d) / 2; } function rrect(u0, v0, u1, v1, r, n = 4) { r = Math.max(0, Math.min(r, (u1 - u0) / 2, (v1 - v0) / 2)); const out = []; for (const [cu, cv, a0] of [[u1 - r, v1 - r, 0], [u0 + r, v1 - r, 90], [u0 + r, v0 + r, 180], [u1 - r, v0 + r, 270]]) for (let k = 0; k <= n; k++) { const a = rad(a0 + 90 * k / n), ca = Math.cos(a), sa = Math.sin(a); out.push({ u: cu + r * ca, v: cv + r * sa, nu: ca, nv: sa }); } return out; } function circ(R, n = 96) { const out = []; for (let k = 0; k < n; k++) { const a = k / n * Math.PI * 2, ca = Math.cos(a), sa = Math.sin(a); out.push({ u: R * ca, v: R * sa, nu: ca, nv: sa }); } return out; } function hull(input) { const pts = input.slice().sort((a, b) => a[0] - b[0] || a[1] - b[1]); const x = (o, a, b) => (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0]); const lo = [], up = []; for (const p of pts) { while (lo.length > 1 && x(lo[lo.length - 2], lo[lo.length - 1], p) <= 0) lo.pop(); lo.push(p); } for (let i = pts.length - 1; i >= 0; i--) { const p = pts[i]; while (up.length > 1 && x(up[up.length - 2], up[up.length - 1], p) <= 0) up.pop(); up.push(p); } lo.pop(); up.pop(); return lo.concat(up); } var ringAt = (P, ring, z) => ring.map((q) => P(q.u, q.v, z)); var facing = (C) => { const s = Math.sin(C.az), c = Math.cos(C.az); return (q) => q.nu * s + q.nv * c >= -1e-6; }; function run(ring, keep) { const n = ring.length; let s = -1; for (let i = 0; i < n; i++) if (keep(ring[i]) && !keep(ring[(i + n - 1) % n])) { s = i; break; } if (s < 0) return keep(ring[0]) ? ring.slice() : []; const out = []; for (let k = 0; k < n && keep(ring[(s + k) % n]); k++) out.push(ring[(s + k) % n]); return out; } function prism(P, front, ring, inner, z0, z1) { return { sil: poly(hull(ringAt(P, ring, z1).concat(ringAt(P, ring, z0)))), crease: inner ? open(ringAt(P, run(inner, front), z1)) : "" }; } var rings = (x0, y0, x1, y1, r, b) => [ rrect(x0, y0, x1, y1, r), rrect(x0 + b, y0 + b, x1 - b, y1 - b, Math.max(0.3, r - b)) ]; function extremes(P, ring) { const pr = ring.map((q) => P(q.u, q.v, 0)); let a = 0, b = 0, c = 0; pr.forEach((p, k) => { if (p[0] < pr[a][0]) a = k; if (p[0] > pr[b][0]) b = k; if (p[1] > pr[c][1]) c = k; }); return [ring[a], ring[b], ring[c]]; } function fillet(pts, rs, n = 4) { const m = pts.length, out = []; for (let i = 0; i < m; i++) { const a = pts[(i + m - 1) % m], p = pts[i], b = pts[(i + 1) % m]; const la = Math.hypot(a[0] - p[0], a[1] - p[1]), lb = Math.hypot(b[0] - p[0], b[1] - p[1]); const t = Math.min(rs[i], la / 2, lb / 2); const p1 = [p[0] + (a[0] - p[0]) / la * t, p[1] + (a[1] - p[1]) / la * t]; const p2 = [p[0] + (b[0] - p[0]) / lb * t, p[1] + (b[1] - p[1]) / lb * t]; for (let k = 0; k <= n; k++) { const s = k / n, w = 1 - s; out.push([w * w * p1[0] + 2 * w * s * p[0] + s * s * p2[0], w * w * p1[1] + 2 * w * s * p[1] + s * s * p2[1]]); } } return out; } function ghost(P, front, ring, z0, depth) { const f = run(ring, front), lowP = ringAt(P, f, z0 - depth); return { d: open(lowP) + [f[0], f[f.length - 1]].map((q) => seg(P(q.u, q.v, z0), P(q.u, q.v, z0 - depth))).join(""), y0: Math.min(...ringAt(P, f, z0).map((p) => p[1])), y1: Math.max(...lowP.map((p) => p[1])) + 2 }; } // packages/hairline/src/core/motion.ts var reduced = false; var setReducedMotion = (on) => { reduced = on; }; var reducedMotion = () => reduced; function spring(x, o = {}) { return { x, v: 0, t: x, k: o.k ?? 100, c: o.c ?? 18, m: o.m ?? 1, eps: o.eps ?? 0.01 }; } function stepS(sp, dt) { if (reduced) { sp.x = sp.t; sp.v = 0; return false; } const n = Math.max(1, Math.ceil(dt * 240)), h = dt / n; for (let i = 0; i < n; i++) { const a = (-sp.k * (sp.x - sp.t) - sp.c * sp.v) / sp.m; sp.v += a * h; sp.x += sp.v * h; } if (Math.abs(sp.x - sp.t) < sp.eps && Math.abs(sp.v) < sp.eps * 10) { sp.x = sp.t; sp.v = 0; return false; } return true; } function bezier(x1, y1, x2, y2) { const cx = 3 * x1, bx = 3 * (x2 - x1) - cx, ax = 1 - cx - bx; const cy = 3 * y1, by = 3 * (y2 - y1) - cy, ay = 1 - cy - by; const X = (u) => ((ax * u + bx) * u + cx) * u; const Y = (u) => ((ay * u + by) * u + cy) * u; const dX = (u) => (3 * ax * u + 2 * bx) * u + cx; return (t) => { if (t <= 0) return 0; if (t >= 1) return 1; let u = t; for (let i = 0; i < 8; i++) { const e = X(u) - t; if (Math.abs(e) < 1e-5) break; const d = dX(u); if (Math.abs(d) < 1e-6) break; u -= e / d; } if (!(u >= 0 && u <= 1) || Math.abs(X(u) - t) > 1e-4) { let lo = 0, hi = 1; u = t; for (let i = 0; i < 24; i++) { if (X(u) < t) lo = u; else hi = u; u = (lo + hi) / 2; } } return Y(u); }; } var EASE_LIFT = bezier(0.32, 0.72, 0, 1); var tween = (v, dur = 700) => ({ from: v, to: v, t0: -1e9, dur }); var tval = (tw, now) => { const p = clamp((now - tw.t0) / tw.dur, 0, 1); return tw.from + (tw.to - tw.from) * (reduced ? 1 : EASE_LIFT(p)); }; var tset = (tw, to, now, delay) => { if (tw.to === to) return; tw.from = tval(tw, now); tw.to = to; tw.t0 = now + delay; }; var tdone = (tw, now) => reduced || now >= tw.t0 + tw.dur; // packages/hairline/src/core/stage.ts var NS = "http://www.w3.org/2000/svg"; function mk(tag, attrs, parent) { const e = document.createElementNS(NS, tag); if (attrs) for (const k in attrs) e.setAttribute(k, String(attrs[k])); if (parent) parent.appendChild(e); return e; } function solid(parent) { const g = mk("g", {}, parent); return { g, sil: mk("path", { class: "sil" }, g), cr: mk("path", { class: "nf lo" }, g) }; } var put = (el, s) => { el.sil.setAttribute("d", s.sil); el.cr.setAttribute("d", s.crease); }; var flatDot = (parent, C, r, cls) => mk("ellipse", { rx: r2(r * C.S), ry: r2(r * C.S * C.k), class: cls }, parent); var place = (el, q) => { el.setAttribute("cx", String(r2(q[0]))); el.setAttribute("cy", String(r2(q[1]))); }; var fid = 0; function fade(svg, y0, y1, a0 = 0.7) { const id = "hl-fd" + ++fid, defs = mk("defs", {}, svg); const lg = mk("linearGradient", { id: id + "g", gradientUnits: "userSpaceOnUse", x1: 0, y1: r2(y0), x2: 0, y2: r2(y1) }, defs); mk("stop", { offset: 0, "stop-color": "#fff", "stop-opacity": a0 }, lg); mk("stop", { offset: 1, "stop-color": "#fff", "stop-opacity": 0 }, lg); const m = mk("mask", { id, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 400, height: 320 }, defs); mk("rect", { x: 0, y: 0, width: 400, height: 320, fill: \`url(#\${id}g)\` }, m); return \`url(#\${id})\`; } function reflect(svg, parent, P, front, ring, z0, depth) { const r = ghost(P, front, ring, z0, depth); const gh = mk("g", { class: "ghost", mask: fade(svg, r.y0, r.y1) }, parent); mk("path", { d: r.d }, gh); } var boards = []; var byStage = /* @__PURE__ */ new Map(); var raf = 0; var last = 0; var io = null; var rm = null; function frame() { const now = performance.now(); const dt = Math.min(0.05, Math.max(0, (now - last) / 1e3)); last = now; let any = false; for (const b of boards.slice()) if (b.vis && b.awake) { try { b.awake = !!b.tick(dt, now); } catch (err) { b.awake = false; setTimeout(() => { throw err; }); } any = any || b.awake; } raf = any ? requestAnimationFrame(frame) : 0; } function wake(b) { b.awake = true; if (!raf) { last = performance.now(); raf = requestAnimationFrame(frame); } } var onMotion = () => { setReducedMotion(!!rm?.matches); boards.forEach(wake); }; function start() { if (io) return; io = new IntersectionObserver((es) => { for (const e of es) { const set = byStage.get(e.target); if (!set) continue; for (const b of set) { b.vis = e.isIntersecting; if (b.vis) wake(b); } } }, { rootMargin: "80px" }); rm = matchMedia("(prefers-reduced-motion: reduce)"); setReducedMotion(rm.matches); rm.addEventListener("change", onMotion); } function stop() { if (raf) cancelAnimationFrame(raf); raf = 0; io?.disconnect(); io = null; rm?.removeEventListener("change", onMotion); rm = null; } function register(stage, tick) { start(); const b = { stage, tick, vis: false, awake: true }; boards.push(b); const peers = byStage.get(stage); if (peers) { for (const p of peers) b.vis = p.vis; peers.add(b); if (b.vis) wake(b); } else { byStage.set(stage, /* @__PURE__ */ new Set([b])); io.observe(stage); } tick(0, performance.now()); let gone = false; return { wake: () => { if (!gone) wake(b); }, unregister: () => { if (gone) return; gone = true; boards = boards.filter((x) => x !== b); const set = byStage.get(stage); if (set) { set.delete(b); if (!set.size) { byStage.delete(stage); io?.unobserve(stage); } } if (!boards.length) stop(); } }; } var handlers = /* @__PURE__ */ new WeakMap(); var touring = /* @__PURE__ */ new WeakMap(); function pointer(stage, on) { handlers.set(stage, on); let tm = 0; const pt = (e) => { const r = stage.getBoundingClientRect(); return [(e.clientX - r.left) / r.width * 400, (e.clientY - r.top) / r.height * 320]; }; const move = (e) => { clearTimeout(tm); touring.get(stage)?.hold(); on.move(pt(e), e); }; const down = (e) => { clearTimeout(tm); touring.get(stage)?.hold(); if (e.pointerType !== "mouse") stage.releasePointerCapture?.(e.pointerId); if (on.down) on.down(pt(e), e); else on.move(pt(e), e); }; const leave = (e) => { clearTimeout(tm); tm = window.setTimeout(() => { on.leave(e); touring.get(stage)?.release(); }, e.pointerType === "mouse" ? 0 : 1400); }; stage.addEventListener("pointermove", move); stage.addEventListener("pointerdown", down); stage.addEventListener("pointerleave", leave); return () => { clearTimeout(tm); if (handlers.get(stage) === on) handlers.delete(stage); stage.removeEventListener("pointermove", move); stage.removeEventListener("pointerdown", down); stage.removeEventListener("pointerleave", leave); }; } var LAP = [[128, 150], [200, 118], [272, 150], [200, 206], null]; var TRAVEL = 900; var DWELL = 1200; var REST = 1800; var RESUME = 1200; var STAGGER = 450; var GHOST = { pointerType: "ghost" }; var started = 0; function entry([x, y]) { const dx = x - 200, dy = y - 160; if (!dx && !dy) return [200, 320]; const k = Math.min(dx ? (dx > 0 ? 200 : -200) / dx : Infinity, dy ? (dy > 0 ? 160 : -160) / dy : Infinity); return [200 + dx * k, 160 + dy * k]; } function tour(stage, stops, onStop) { let i = 0; let wait = RESUME + STAGGER * (started++ % 4); let t = -1; let at = null; let origin = [200, 320]; let hand = false, keys = stage.contains(stage.ownerDocument.activeElement); let gone = false; const leave = () => { at = null; t = -1; handlers.get(stage)?.leave(GHOST); }; const tick = (dt) => { if (hand || keys || !stops.length) return false; if (reducedMotion()) { if (at) leave(); return false; } if (wait > 0) { wait -= dt * 1e3; return true; } const stop2 = stops[i]; if (stop2 === null) { if (at) leave(); onStop?.(i); i = (i + 1) % stops.length; wait = REST; return true; } const h = handlers.get(stage); if (!h) return true; if (t < 0) { origin = at ?? entry(stop2); t = 0; } t = Math.min(TRAVEL, t + dt * 1e3); const k = EASE_LIFT(t / TRAVEL); at = [origin[0] + (stop2[0] - origin[0]) * k, origin[1] + (stop2[1] - origin[1]) * k]; h.move(at, GHOST); if (t < TRAVEL) return true; onStop?.(i); i = (i + 1) % stops.length; t = -1; wait = DWELL; return true; }; const take = () => { at = null; t = -1; }; const give = () => { if (hand || keys) return; i = 0; t = -1; wait = RESUME; board.wake(); }; const me = { hold: () => { hand = true; take(); }, release: () => { if (!hand) return; hand = false; give(); } }; const focusIn = () => { keys = true; take(); }; const focusOut = (e) => { if (keys && !stage.contains(e.relatedTarget)) { keys = false; give(); } }; stage.addEventListener("focusin", focusIn); stage.addEventListener("focusout", focusOut); touring.set(stage, me); const board = register(stage, tick); return { stop: () => { if (gone) return; gone = true; board.unregister(); stage.removeEventListener("focusin", focusIn); stage.removeEventListener("focusout", focusOut); if (touring.get(stage) === me) touring.delete(stage); if (at) leave(); } }; } function disposer() { let fns = []; return { add: (fn) => { fns.push(fn); }, on: (target, type, fn, opts) => { const h = fn; target.addEventListener(type, h, opts); fns.push(() => target.removeEventListener(type, h, opts)); }, dispose: () => { const run2 = fns; fns = []; for (let i = run2.length - 1; i >= 0; i--) run2[i](); } }; } // packages/hairline/src/core/styles.ts var LIGHT = { plate: "#ffffff", hi: "#232327", edge: "#a4a4ac", mid: "#c3c3c9", lo: "#e0e0e4" }; var DARK = { plate: "#08090a", hi: "#d0d6e0", edge: "#5b5d64", mid: "#3e3e44", lo: "#29292d" }; var KEYS = ["plate", "hi", "edge", "mid", "lo"]; var vars = (p) => KEYS.map((k) => \`--hl-\${k}:var(--hairline-\${k},\${p[k]});\`).join(""); var EASE = "cubic-bezier(0.5,0,0.1,1)"; var SVG = ":where([data-hairline]>svg)"; function css(lightDark) { const both = Object.fromEntries(KEYS.map((k) => [k, \`light-dark(\${LIGHT[k]},\${DARK[k]})\`])); return [ // the box, and the palette: light unless something below says otherwise \`:where([data-hairline]){display:block;position:relative;aspect-ratio:5/4;touch-action:pan-y;user-select:none;-webkit-user-select:none;--hl-sw:var(--hairline-stroke,0.9);\${vars(LIGHT)}}\`, // the page's color-scheme lightDark ? \`:where([data-hairline]){\${vars(both)}}\` : "", // an ancestor that says dark \`:where(.dark,[data-theme="dark"]) :where([data-hairline]){\${vars(DARK)}}\`, // the figure's own theme option \`:where([data-hairline][data-hairline-theme="light"]){\${vars(LIGHT)}}\`, \`:where([data-hairline][data-hairline-theme="dark"]){\${vars(DARK)}}\`, \`:where([data-hairline]:focus-visible){outline:1.5px solid var(--hl-hi);outline-offset:2px}\`, \`\${SVG}{position:absolute;inset:0;width:100%;height:100%;display:block}\`, // Riffle's live region: read, not seen \`:where([data-hairline]>[data-hairline-live]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\`, // the drawing: plates are filled with the plate colour and painted back to front \`\${SVG} :where(path,polygon,ellipse,line){fill:var(--hl-plate);stroke:var(--hl-mid);stroke-width:var(--hl-sw);vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;transition:stroke 260ms \${EASE}}\`, \`\${SVG} :where(.nf){fill:none}\`, \`\${SVG} :where(.fo){stroke:none}\`, \`\${SVG} :where(.sil){stroke:var(--hl-edge)}\`, \`\${SVG} :where(.hi){stroke:var(--hl-hi)}\`, \`\${SVG} :where(.lo){stroke:var(--hl-lo)}\`, \`\${SVG} :where(.dash){stroke-dasharray:1 3}\`, \`\${SVG} :where(.dot){stroke:none;fill:var(--hl-hi);transition:fill 260ms \${EASE}}\`, \`\${SVG} :where(.dot.m){fill:var(--hl-edge)}\`, \`\${SVG} :where(.dot.off){fill:var(--hl-lo)}\`, \`\${SVG} :where(.ghost path){fill:none;stroke:var(--hl-mid)}\` ].join(""); } var done = /* @__PURE__ */ new WeakSet(); function inject(root) { if (done.has(root)) return; done.add(root); const doc = root.nodeType === 9 ? root : root.ownerDocument; const win = doc.defaultView; const text = css(!!win?.CSS?.supports?.("color", "light-dark(#000,#fff)")); if (win && "adoptedStyleSheets" in root) { try { const sheet = new win.CSSStyleSheet(); sheet.replaceSync(text); root.adoptedStyleSheets = [...root.adoptedStyleSheets, sheet]; return; } catch { } } const style = doc.createElement("style"); style.setAttribute("data-hairline-style", ""); style.textContent = text; (root.nodeType === 9 ? doc.head ?? doc.documentElement : root).appendChild(style); } return __toCommonJS(kernel_exports); })(); /* /hairline kernel */ `,S=null,re=!1,C=()=>S??=Function(`${ne}\nreturn HL;`)();function ie(e){let t=null;return Function(`HL`,`hairline`,e)(C(),e=>{t=e}),t}function ae({src:e,zone:t,value:n,className:r=``}){let i=(0,l.useRef)(null),a=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let r=i.current,o=ie(e),s=C();re||=(s.inject(document),!0),r.setAttribute(`data-hairline`,o.name),r.setAttribute(`aria-label`,o.means);let c=s.mk(`svg`,{viewBox:`0 0 400 320`,"aria-hidden":`true`},r),l=o.mount({stage:r,svg:c,read:{set textContent(e){a.current&&(a.current.textContent=e??``)}}},n??o.range[1]),u=t?r.closest(t):null,d=e=>t=>{t.isTrusted&&!r.contains(t.target)&&r.dispatchEvent(new PointerEvent(e,{pointerType:t.pointerType,pointerId:t.pointerId,clientX:t.clientX,clientY:t.clientY}))},f=d(`pointermove`),p=d(`pointerleave`);return u?.addEventListener(`pointermove`,f),u?.addEventListener(`pointerleave`,p),()=>{u?.removeEventListener(`pointermove`,f),u?.removeEventListener(`pointerleave`,p),l.destroy(),c.remove()}},[e,t,n]),(0,y.jsxs)(`div`,{className:`hairline ${r}`,children:[(0,y.jsx)(`div`,{ref:i,className:`hairline__stage`,role:`img`}),(0,y.jsx)(`span`,{ref:a,className:`hairline__read mono`,"aria-hidden":`true`})]})}var oe=`/** * Padlock: an unlocked padlock standing on its reflection. At rest it is ajar, * the shackle lifted out of its hole and turned a little, as in the ofsaver * mark. As the pointer comes closer the shackle rises the rest of the way and * swings open round its long leg, away to the back, on one spring. The * keyhole is the bright mark at rest; once the lock is open the bright goes to * the shackle. The slider is the reach, in viewBox units. * * The pattern: one continuous value. A spring, a falloff by distance measured * from a fixed point on the resting body, and a rest that is a composition. */ const { Cam, clamp, facing, fit, lerp, poly, prism, proj, rad, rings, rrect, ringAt, seg, spring, stepS, disposer, mk, place, pointer, put, reflect, register, solid, } = HL; const W = 64, D = 26, H = 48, BR = 9, BB = 1.8; // the body: footprint W × D, height H const A = 13, RC = (W - 2 * A) / 2, T = 3.4, TK = 2.2; // the shackle: legs at A and W − A, half width T, half depth TK const LEG = 12, LMAX = 12, TH = 78; // straight leg above the body, the lift, the widest swing const YC = D / 2, REST = 0.4; /** The shackle's band as a closed outline in its own plane: u along the span from the long leg, w up. */ function band(lift) { const z1 = H + LEG + lift, bl = H, br = H + lift, pts = []; const arc = (r, a0, a1) => { for (let k = 0; k <= 12; k++) { const a = rad(lerp(a0, a1, k / 12)); pts.push([RC + r * Math.cos(a), z1 + r * Math.sin(a)]); } }; pts.push([-T, bl]); arc(RC + T, 180, 0); pts.push([2 * RC + T, br], [2 * RC - T, br]); arc(RC - T, 0, 180); pts.push([T, bl]); return pts; } /** Lift first, then the swing: what a real shackle does once the key turns. */ const lift = (o) => LMAX * clamp(o / 0.45, 0, 1); const swing = (o) => -TH * clamp((o - 0.25) / 0.75, 0, 1); function mount({ stage, svg, read }, value) { const bag = disposer(); let reach = value; // Fitted to the widest pose: shackle fully up and swung out towards the viewer. const C = Cam(45, 0.5, 2.08); const top = H + LEG + LMAX + RC + T; fit(C, [[0, 0, 0], [W, D, 0], [W, 0, 0], [0, D, 0], [A, YC, top], [W - A + T, YC, top - RC], [A, YC - 2 * RC - T, H + LEG + LMAX], [A - T, YC - RC, top], [A, YC, -16]], 200, 166); const P = proj(C), front = facing(C); const g = mk("g", {}, svg); const [ring, inner] = rings(0, 0, W, D, BR, BB); reflect(svg, g, P, front, ring, 0, 16); // The body, with its two shackle holes on the top and the keyhole on the near face. const body = solid(g); put(body, prism(P, front, ring, inner, 0, H)); const hole = rrect(W - A - T - 0.6, YC - TK - 0.6, W - A + T + 0.6, YC + TK + 0.6, 2.2, 3); mk("path", { d: poly(ringAt(P, hole, H)), class: "nf lo" }, g); const kz = H * 0.56, ky = D; mk("path", { d: seg(P(W / 2, ky, kz - 2), P(W / 2, ky, kz - 11)), class: "nf" }, g); const key = mk("circle", { r: 2.1, class: "dot" }, g); place(key, P(W / 2, ky, kz)); // The shackle: two outlines of the band, a tube's depth apart. Whichever faces the camera is painted last. const sh = mk("g", {}, g); const back = mk("path", { class: "lo" }, sh), face = mk("path", { class: "sil" }, sh); const o = spring(REST, { eps: 0.002 }); let drawn = NaN; function draw() { if (Math.abs(o.x - drawn) < 1e-4) return; drawn = o.x; const th = rad(swing(o.x)), c = Math.cos(th), s = Math.sin(th); const pts = band(lift(o.x)); // the band's normal; facing the camera when it points towards +x +y const nx = -s, ny = c, near = nx + ny >= 0 ? 1 : -1; const at = (k) => pts.map(([u, w]) => P(A + u * c + k * nx * TK, YC + u * s + k * ny * TK, w)); back.setAttribute("d", poly(at(-near))); face.setAttribute("d", poly(at(near))); } const B = register(stage, (dt) => { const m = stepS(o, dt); draw(); return m; }); bag.add(B.unregister); draw(); // Distance is measured from a fixed point on the resting body, so the swing never moves the target. const mid = P(W / 2, YC, H * 0.6); let lit = false; function aim(target) { o.t = target; const open = target > 0.72; if (open !== lit) { lit = open; face.classList.toggle("hi", open); key.setAttribute("class", open ? "dot m" : "dot"); } read.textContent = target === REST ? "rest" : "open " + Math.round(-swing(target)) + "°"; B.wake(); } function move([x, y]) { const d = Math.hypot(x - mid[0], y - mid[1]) / reach; // full inside a third of the reach, easing down to ajar at its edge, and no further const k = d <= 0.33 ? 1 : d >= 1 ? 0 : 1 - (d - 0.33) / 0.67; aim(Math.round(lerp(REST, 1, k * k * (3 - 2 * k)) * 100) / 100); } aim(REST); bag.add(pointer(stage, { move, leave: () => aim(REST) })); bag.add(() => svg.replaceChildren()); return { set: (v) => { reach = v; }, destroy: bag.dispose, }; } hairline({ name: "padlock", means: "An unlocked padlock, ajar at rest: as the pointer comes closer, the shackle lifts and swings wide open.", rules: [1, 3, 5, 8], range: [90, 150, 220], tour: [[330, 70], [270, 120], [210, 150], null], mount, }); `;function w({size:e=16,children:t,...n}){return(0,y.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n,children:t})}var se=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`path`,{d:`M12 15V3`}),(0,y.jsx)(`path`,{d:`m7 10 5 5 5-5`}),(0,y.jsx)(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`})]}),ce=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`rect`,{x:`3`,y:`11`,width:`18`,height:`11`,rx:`2`}),(0,y.jsx)(`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`})]}),le=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`path`,{d:`m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}),(0,y.jsx)(`path`,{d:`m2 12 9.17 4.17a2 2 0 0 0 1.66 0L22 12`}),(0,y.jsx)(`path`,{d:`m2 17 9.17 4.17a2 2 0 0 0 1.66 0L22 17`})]}),T=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`M20 6 9 17l-5-5`})}),ue=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`})}),de=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`})}),fe=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`m6 9 6 6 6-6`})}),pe=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`})}),me=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`}),(0,y.jsx)(`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`})]}),he=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`path`,{d:`M18 6 6 18`}),(0,y.jsx)(`path`,{d:`m6 6 12 12`})]}),ge=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,y.jsx)(`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`}),(0,y.jsx)(`path`,{d:`M2 12h20`})]}),_e=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`}),(0,y.jsx)(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`}),(0,y.jsx)(`path`,{d:`M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2`})]}),ve=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`path`,{d:`M22 12H2`}),(0,y.jsx)(`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`}),(0,y.jsx)(`path`,{d:`M6 16h.01M10 16h.01`})]}),ye=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`8`,rx:`2`}),(0,y.jsx)(`rect`,{x:`2`,y:`14`,width:`20`,height:`8`,rx:`2`}),(0,y.jsx)(`path`,{d:`M6 6h.01M6 18h.01`})]}),be=e=>(0,y.jsx)(w,{...e,children:(0,y.jsx)(`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.47 2.5 2.5 0 1 1 3.01 3.01 1 1 0 0 0-.47 1.68l1.69 1.69a2.4 2.4 0 0 1 0 3.4l-1.61 1.61a.98.98 0 0 1-.84.28c-.47-.07-.8-.48-.97-.92a2.5 2.5 0 1 0-3.21 3.21c.44.17.85.5.92.97a.98.98 0 0 1-.28.84l-1.61 1.61a2.4 2.4 0 0 1-3.4 0L8.3 19.61a1 1 0 0 0-1.68.47 2.5 2.5 0 1 1-3.01-3.01 1 1 0 0 0 .47-1.68L2.39 13.7a2.4 2.4 0 0 1 0-3.4l1.61-1.61a.98.98 0 0 1 .84-.28c.47.07.8.48.97.92a2.5 2.5 0 1 0 3.21-3.21c-.44-.17-.85-.5-.92-.97a.98.98 0 0 1 .28-.84l1.61-1.61a2.4 2.4 0 0 1 3.4 0z`})}),xe=e=>(0,y.jsxs)(w,{...e,children:[(0,y.jsx)(`rect`,{x:`6`,y:`2`,width:`12`,height:`20`,rx:`2.5`}),(0,y.jsx)(`path`,{d:`M11 18h2`})]}),Se=({open:e})=>(0,y.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,y.jsx)(`path`,{d:`M2.5 8h11`}),(0,y.jsx)(`path`,{d:`M8 2.5v11`,className:`pm-v ${e?`is-open`:``}`})]}),Ce=()=>matchMedia(`(prefers-reduced-motion: reduce)`).matches;function we(e,t){let n=(0,l.useRef)(null),[r,i]=(0,l.useState)(-1),[a,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=new IntersectionObserver(([e])=>o(e.isIntersecting),{threshold:.35});return e.observe(n.current),()=>e.disconnect()},[]),(0,l.useEffect)(()=>{if(!a||Ce())return;let t=0,n,r=()=>{i(t),n=setTimeout(r,e[t][1]),t=(t+1)%e.length};return n=setTimeout(r,300),()=>clearTimeout(n)},[a]),[n,r<0?t:e[r][0]]}function E(e,t,n,r=e){let[i,a]=(0,l.useState)(r);return(0,l.useEffect)(()=>{if(!n){a(r);return}let i,o=performance.now(),s=n=>{let r=Math.min(1,(n-o)/t);a(Math.round(e*(1-(1-r)**2))),r<1&&(i=requestAnimationFrame(s))};return a(0),i=requestAnimationFrame(s),()=>cancelAnimationFrame(i)},[n,e,t,r]),i}var D=({className:e=``,style:t})=>(0,y.jsx)(`svg`,{style:t,className:`cursor ${e}`,width:`18`,height:`18`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:`M4 2.5 19.5 11l-6.6 1.9L9.6 19.5z`,fill:`#0b1620`,stroke:`#fff`,strokeWidth:`1.5`,strokeLinejoin:`round`})}),Te=({pct:e})=>(0,y.jsxs)(`svg`,{className:`ring`,width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,y.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,pathLength:`100`,className:`ring__track`}),(0,y.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,pathLength:`100`,className:`ring__fill`,style:{strokeDashoffset:100-e}})]}),Ee=e=>(0,y.jsxs)(`svg`,{width:e.size||18,height:e.size||18,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,y.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,y.jsx)(`path`,{d:`M15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .8-3 2s1.3 1.7 3 2 3 .9 3 2.1-1.3 1.9-3 1.9c-1.4 0-2.6-.6-3-1.6M12 6.5v1.5m0 8v1.5`})]}),De=[[`#e8c3a5`,`#9c6a52`],[`#cdd5d0`,`#71857e`],[`#e6d5bd`,`#b08c66`],[`#d9c4cb`,`#8f7480`],[`#c9b6a6`,`#6b5446`],[`#dfe0d6`,`#9a9c84`],[`#e9cfb8`,`#c08a67`],[`#c8ccd6`,`#727a8f`],[`#d7bfa9`,`#86624f`],[`#e3d9cf`,`#a3907c`],[`#cfc2b3`,`#7c6a5a`],[`#e5c8c0`,`#a8736a`]],Oe=e=>({background:`radial-gradient(120% 90% at 70% 20%, ${De[e%12][0]}, ${De[e%12][1]})`}),O=[[`idle`,1100],[`aim`,700],[`press`,250],[`saving`,2100],[`saved`,2300]];function k(){let[e,t]=we(O,`saved`),n=E(100,1900,t===`saving`,100),r=t===`saved`,i=t===`saving`;return(0,y.jsxs)(`div`,{ref:e,className:`scene tb`,"aria-label":`A post's action bar with ofsaver's Download pill saving a video`,children:[(0,y.jsxs)(`div`,{className:`tb__post`,children:[(0,y.jsx)(`div`,{className:`tb__media`,style:Oe(0),children:(0,y.jsx)(`span`,{className:`mono tb__dur`,children:`04:12`})}),(0,y.jsxs)(`div`,{className:`tb__bar`,children:[(0,y.jsxs)(`span`,{className:`tb__icons`,children:[(0,y.jsx)(ue,{size:18}),(0,y.jsx)(de,{size:18}),(0,y.jsx)(Ee,{})]}),(0,y.jsxs)(`span`,{className:`kpill ${r?`kpill--saved`:``} ${t===`press`?`is-pressed`:``}`,children:[r?(0,y.jsx)(T,{size:15}):i?(0,y.jsx)(Te,{pct:n}):(0,y.jsx)(se,{size:15}),(0,y.jsx)(`span`,{className:`kpill__label`,children:r?`Saved`:i?`Saving ${n}%`:`Download`}),(0,y.jsx)(`span`,{className:`mono kpill__meta`,children:r?`rooftop.mp4`:`412 MB`})]})]})]}),(0,y.jsx)(D,{className:`tb__cursor is-${t}`})]})}var ke=[{name:`Source`,res:`1080p`,mb:412},{name:`720p`,res:`720p`,mb:188},{name:`Preview`,res:`480p`,mb:64}],Ae=[[`q0`,1600],[`q1`,1600],[`q2`,1600],[`q1`,1200]];function je(){let[e,t]=we(Ae,`q1`),n=Number(t.slice(1));return(0,y.jsxs)(`div`,{ref:e,className:`scene qs`,"aria-label":`The quality menu, with each option's file size drawn to scale`,children:[(0,y.jsxs)(`div`,{className:`qs__menu`,children:[(0,y.jsxs)(`div`,{className:`qs__label`,children:[`Quality `,(0,y.jsx)(`span`,{className:`mono`,children:`rooftop · 04:12`})]}),ke.map((e,t)=>(0,y.jsxs)(`div`,{className:`qs__row ${t===n?`is-active`:``}`,children:[(0,y.jsx)(`span`,{className:`qs__name`,children:e.name}),(0,y.jsx)(`span`,{className:`qs__track`,children:(0,y.jsx)(`span`,{style:{transform:`scaleX(${e.mb/412})`}})}),(0,y.jsxs)(`span`,{className:`mono qs__size`,children:[e.mb,` MB`]})]},e.name)),(0,y.jsxs)(`div`,{className:`qs__out mono`,children:[(0,y.jsx)(me,{size:14}),(0,y.jsxs)(`span`,{className:`qs__file`,children:[`rooftop_`,ke[n].res,`.mp4`]},n)]})]}),(0,y.jsx)(D,{className:`qs__cursor`,style:{transform:`translateY(${n*44}px)`}})]})}var Me=Array.from({length:12},(e,t)=>({k:t,video:[1,4,6,11].includes(t),locked:[4,9].includes(t),order:t%4+Math.floor(t/4)})),Ne=[[`idle`,1200],[`press`,300],[`saving`,2600],[`done`,2400]];function Pe(){let[e,t]=we(Ne,`done`),n=t===`saving`,r=E(12,2300,n,t===`done`?12:0),i=t===`done`?12:r;return(0,y.jsxs)(`div`,{ref:e,className:`scene pf`,"aria-label":`A creator's media grid being saved tile by tile`,children:[(0,y.jsxs)(`div`,{className:`pf__head`,children:[(0,y.jsx)(`span`,{className:`pf__avatar`}),(0,y.jsxs)(`span`,{className:`pf__who`,children:[(0,y.jsx)(`strong`,{children:`Mira Lane`}),(0,y.jsx)(`span`,{className:`mono`,children:`1,284 posts`})]}),(0,y.jsxs)(`span`,{className:`kbtn ${t===`press`?`is-pressed`:``} ${t===`done`?`kbtn--done`:``}`,children:[t===`done`?(0,y.jsx)(T,{size:14}):(0,y.jsx)(se,{size:14}),(0,y.jsx)(`span`,{className:`mono`,children:t===`idle`||t===`press`?`Download all`:t===`done`?`12 saved`:`${i} of 12`})]})]}),(0,y.jsx)(`div`,{className:`pf__grid`,children:Me.map(e=>{let r=t===`done`||n&&e.ordere.sep?(0,y.jsx)(`span`,{className:`nm__sep`,children:e.sep},t):(r+=1,(0,y.jsxs)(`span`,{className:`nm__tok ${n>=r?`is-on`:``}`,children:[(0,y.jsx)(`span`,{className:`nm__from`,children:e.t}),(0,y.jsx)(`span`,{className:`nm__to`,children:e.v})]},t)))}),(0,y.jsxs)(`div`,{className:`nm__list`,children:[(0,y.jsxs)(`div`,{className:`nm__crumb`,children:[(0,y.jsx)(pe,{size:14}),` `,(0,y.jsx)(`span`,{children:`Mira Lane`}),(0,y.jsx)(`span`,{className:`nm__slash`,children:`/`}),(0,y.jsx)(`span`,{children:`Videos`})]}),(0,y.jsxs)(`div`,{className:`nm__row nm__row--new ${t===`file`?`is-in`:``}`,children:[(0,y.jsx)(me,{size:14}),(0,y.jsx)(`span`,{children:`2026-11-29_rooftop.mp4`}),(0,y.jsx)(`span`,{className:`mono`,children:`412 MB`}),(0,y.jsx)(T,{size:14})]}),Le.map(([e,t])=>(0,y.jsxs)(`div`,{className:`nm__row`,children:[(0,y.jsx)(me,{size:14}),(0,y.jsx)(`span`,{children:e}),(0,y.jsx)(`span`,{className:`mono`,children:t}),(0,y.jsx)(T,{size:14})]},e))]})]})}var ze=[[`idle`,1200],[`press`,300],[`saving`,2e3],[`done`,2200]];function Be(){let[e,t]=we(ze,`done`),n=E(3,1700,t===`saving`,t===`done`?3:0),r=t===`done`;return(0,y.jsxs)(`div`,{ref:e,className:`scene ch`,children:[(0,y.jsxs)(`div`,{className:`ch__head`,children:[(0,y.jsx)(`span`,{className:`pf__avatar`}),(0,y.jsx)(`strong`,{children:`Mira Lane`}),(0,y.jsx)(`span`,{className:`ch__online`}),` `,(0,y.jsx)(`span`,{className:`mono ch__meta`,children:`online`})]}),(0,y.jsxs)(`div`,{className:`ch__body`,children:[(0,y.jsx)(`div`,{className:`ch__bubble`,children:`New set from the rooftop shoot, three of my favourites`}),(0,y.jsxs)(`div`,{className:`ch__media`,children:[(0,y.jsx)(`div`,{className:`ch__tiles`,children:[0,1,2].map(e=>(0,y.jsx)(`div`,{className:`ch__tile ${r||n>e?`is-saved`:``}`,style:Oe(e+6),children:(0,y.jsx)(`span`,{className:`pf__check`,children:(0,y.jsx)(T,{size:12})})},e))}),(0,y.jsxs)(`div`,{className:`ch__actions`,children:[(0,y.jsx)(`span`,{className:`mono ch__time`,children:`10:42`}),(0,y.jsxs)(`span`,{className:`kpill kpill--sm ${r?`kpill--saved`:``} ${t===`press`?`is-pressed`:``}`,children:[r?(0,y.jsx)(T,{size:14}):(0,y.jsx)(se,{size:14}),(0,y.jsx)(`span`,{className:`kpill__label`,children:r?`Saved 3`:t===`saving`?`Saving ${n} of 3`:`Download all`})]})]})]}),(0,y.jsx)(`div`,{className:`ch__bubble ch__bubble--me`,children:`Thank you, saving these`})]})]})}var Ve=[[`Read manifest`,`38 ms`],[`Request license`,`212 ms`],[`Decrypt video`,`3.1 s`],[`Decrypt audio`,`0.4 s`],[`Mux to mp4`,`0.9 s`]],He=[[`s0`,500],[`s1`,650],[`s2`,650],[`s3`,650],[`s4`,650],[`s5`,2600]];function Ue(){let[e,t]=we(He,`s5`),n=Number(t.slice(1));return(0,y.jsxs)(`div`,{ref:e,className:`scene dr`,children:[(0,y.jsx)(`div`,{className:`dr__video`,style:Oe(0),children:(0,y.jsxs)(`span`,{className:`dr__badge ${n>=5?`is-open`:``}`,children:[(0,y.jsx)(ce,{size:13}),` `,n>=5?`Decrypted`:`Protected`]})}),(0,y.jsx)(`ol`,{className:`dr__steps`,children:Ve.map(([e,t],r)=>(0,y.jsxs)(`li`,{className:r=5?`is-in`:``}`,children:[(0,y.jsx)(me,{size:16}),(0,y.jsx)(`span`,{className:`mono`,children:`rooftop.mp4`}),(0,y.jsx)(`span`,{className:`mono dr__meta`,children:`1080p · 412 MB · plays anywhere`})]})]})}var We=[[`run`,4200],[`done`,2200]],Ge=[`2026-11-29_rooftop.mp4`,`2026-11-28_photo-07.jpg`,`2026-11-27_voice-note.m4a`,`2026-11-25_photo-02.jpg`,`2026-11-21_gym.mp4`,`2026-11-19_photo-11.jpg`];function Ke(){let[e,t]=we(We,`done`),n=E(1284,4e3,t===`run`,1284),r=n/1284;return(0,y.jsxs)(`div`,{ref:e,className:`scene bk`,children:[(0,y.jsxs)(`div`,{className:`bk__head`,children:[(0,y.jsx)(`span`,{className:`pf__avatar`}),(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`strong`,{children:`Archiving Mira Lane`}),(0,y.jsx)(`span`,{className:`mono`,children:`Downloads/Mira Lane`})]})]}),(0,y.jsxs)(`div`,{className:`bk__count mono`,children:[n.toLocaleString(`en-US`),(0,y.jsx)(`span`,{children:` / 1,284`})]}),(0,y.jsx)(`div`,{className:`bk__bar`,children:(0,y.jsx)(`span`,{style:{transform:`scaleX(${r})`}})}),(0,y.jsx)(`div`,{className:`bk__types`,children:[[`Photos`,880],[`Videos`,362],[`Audio`,42]].map(([e,t])=>(0,y.jsxs)(`div`,{className:`bk__type`,children:[(0,y.jsx)(`span`,{children:e}),(0,y.jsx)(`span`,{className:`bk__mini`,children:(0,y.jsx)(`span`,{style:{transform:`scaleX(${r})`}})}),(0,y.jsxs)(`span`,{className:`mono`,children:[Math.round(t*r),` / `,t]})]},e))}),(0,y.jsx)(`div`,{className:`bk__now mono`,children:t===`done`?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(T,{size:14}),` All 1,284 saved, 0 duplicates`]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(se,{size:14}),` `,Ge[Math.floor(n/37)%Ge.length]]})})]})}var qe={pills:Be,drm:Ue,bundle:Ke};function Je(){let[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=()=>t(window.scrollY>8);return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,y.jsx)(`header`,{className:`nav ${e?`nav--scrolled`:``} ${n?`nav--open`:``}`,children:(0,y.jsxs)(`div`,{className:`nav__inner`,children:[(0,y.jsxs)(`a`,{href:`#top`,className:`nav__logo`,"aria-label":`ofsaver home`,children:[(0,y.jsx)(`img`,{src:`/assets/logo.svg`,alt:``,width:`24`,height:`24`}),(0,y.jsx)(`span`,{children:`ofsaver`})]}),(0,y.jsx)(`nav`,{className:`nav__links`,children:d.map(e=>(0,y.jsx)(`a`,{href:e.href,onClick:()=>r(!1),children:e.label},e.href))}),(0,y.jsx)(`a`,{href:`/ofsaver-extension.zip`,download:!0,className:`btn btn--nav`,children:`Add to Chrome`}),(0,y.jsxs)(`button`,{className:`nav__burger`,"aria-label":`Toggle menu`,"aria-expanded":n,onClick:()=>r(!n),children:[(0,y.jsx)(`span`,{}),(0,y.jsx)(`span`,{})]})]})})}function Ye({children:e}){return(0,y.jsxs)(`div`,{className:`post__bar`,children:[(0,y.jsxs)(`span`,{className:`post__icons`,children:[(0,y.jsx)(ue,{size:18}),(0,y.jsx)(de,{size:18})]}),(0,y.jsx)(`span`,{className:`post__pills`,children:e})]})}var Xe=[[`open`,700],[`pick`,900],[`saving`,2800],[`saved`,2600],[`idle`,900]];function Ze(e){let[t,n]=(0,l.useState)(`saving`),[r,i]=(0,l.useState)(68),[a,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=new IntersectionObserver(([e])=>o(e.isIntersecting),{threshold:.3});return t.observe(e.current),()=>t.disconnect()},[e]),(0,l.useEffect)(()=>{if(!a||matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=0,t,r,o=()=>{let[a,s]=Xe[e];if(n(a),cancelAnimationFrame(r),a===`saving`){let e=performance.now(),t=s-300,n=a=>{let o=Math.min(1,(a-e)/t);i(Math.round(100*(1-(1-o)**2.2))),o<1&&(r=requestAnimationFrame(n))};i(0),r=requestAnimationFrame(n)}a===`saved`&&i(100),e=(e+1)%Xe.length,t=setTimeout(o,s)};return t=setTimeout(o,600),()=>{clearTimeout(t),cancelAnimationFrame(r)}},[a]),{phase:t,pct:r}}function Qe(){let e=(0,l.useRef)(null),{phase:t,pct:n}=Ze(e),r=t===`open`||t===`pick`,i=t===`saved`;return(0,y.jsxs)(`div`,{ref:e,className:`preview`,"aria-label":`ofsaver Download pill and quality menu on a feed post`,children:[(0,y.jsxs)(`div`,{className:`preview__bar`,children:[(0,y.jsxs)(`span`,{className:`preview__dots`,children:[(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{})]}),(0,y.jsx)(`span`,{className:`preview__url`,children:`onlyfans.com/my/feed`})]}),(0,y.jsxs)(`div`,{className:`preview__body`,children:[(0,y.jsxs)(`div`,{className:`feed`,children:[(0,y.jsxs)(`article`,{className:`post`,children:[(0,y.jsxs)(`header`,{className:`post__head`,children:[(0,y.jsx)(`span`,{className:`avatar avatar--a`}),(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`strong`,{children:`Mira Lane`}),(0,y.jsx)(`em`,{children:`@mira.lane · 2h`})]})]}),(0,y.jsx)(`p`,{className:`post__text`,children:`Rooftop set from last weekend, full video below`}),(0,y.jsx)(`div`,{className:`post__media post__media--video`,children:(0,y.jsx)(`span`,{className:`post__dur`,children:`04:12`})}),(0,y.jsx)(Ye,{children:(0,y.jsx)(`span`,{className:`pill ${i?`pill--saved`:`pill--open`} ${r?`is-pressed`:``}`,children:i?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(T,{size:14}),` Saved`]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(se,{size:14}),` `,t===`saving`?`Saving`:`Download`,` `,(0,y.jsx)(fe,{size:14})]})})}),(0,y.jsxs)(`div`,{className:`menu ${r?`is-open`:``}`,role:`presentation`,children:[(0,y.jsx)(`div`,{className:`menu__label`,children:`Quality`}),(0,y.jsxs)(`div`,{className:`menu__row ${t===`pick`?`is-active`:``}`,children:[(0,y.jsx)(`span`,{children:`Source`}),(0,y.jsx)(`span`,{className:`mono`,children:`1080p · 412 MB`})]}),(0,y.jsxs)(`div`,{className:`menu__row`,children:[(0,y.jsx)(`span`,{children:`720p`}),(0,y.jsx)(`span`,{className:`mono`,children:`188 MB`})]}),(0,y.jsxs)(`div`,{className:`menu__row`,children:[(0,y.jsx)(`span`,{children:`Preview`}),(0,y.jsx)(`span`,{className:`mono`,children:`480p · 64 MB`})]})]})]}),(0,y.jsxs)(`article`,{className:`post`,children:[(0,y.jsxs)(`header`,{className:`post__head`,children:[(0,y.jsx)(`span`,{className:`avatar avatar--b`}),(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`strong`,{children:`Jun Okada`}),(0,y.jsx)(`em`,{children:`@junokada · 5h`})]})]}),(0,y.jsxs)(`div`,{className:`post__grid`,children:[(0,y.jsx)(`div`,{className:`post__media post__media--p1`}),(0,y.jsx)(`div`,{className:`post__media post__media--p2`}),(0,y.jsx)(`div`,{className:`post__media post__media--p3`})]}),(0,y.jsx)(Ye,{children:(0,y.jsxs)(`span`,{className:`pill pill--saved`,children:[(0,y.jsx)(T,{size:14}),` Saved`]})})]})]}),(0,y.jsxs)(`aside`,{className:`toast ${t===`saving`||t===`saved`?`is-in`:``}`,children:[(0,y.jsxs)(`div`,{className:`toast__row`,children:[(0,y.jsx)(`span`,{className:`toast__title`,children:i?`Saved rooftop.mp4`:`Saving rooftop.mp4`}),(0,y.jsxs)(`span`,{className:`mono toast__pct`,children:[n,`%`]})]}),(0,y.jsx)(`div`,{className:`toast__track`,children:(0,y.jsx)(`span`,{style:{transform:`scaleX(${n/100})`}})}),(0,y.jsx)(`div`,{className:`mono toast__path`,children:`Mira Lane/Videos/2026-11-29_rooftop.mp4`})]})]})]})}function $e(){return(0,y.jsxs)(`section`,{className:`hero`,id:`top`,children:[(0,y.jsxs)(x,{className:`hero__copy`,children:[(0,y.jsxs)(`h1`,{className:`hero__title`,children:[`Every post saved`,(0,y.jsx)(`br`,{}),(0,y.jsx)(`em`,{children:`in one click`})]}),(0,y.jsx)(`p`,{className:`hero__sub`,children:`ofsaver adds a Download button to every post and message on onlyfans.com. Photos, videos and audio, DRM included, go straight to your Downloads folder. Free, including the parts other downloaders charge for.`}),(0,y.jsxs)(`div`,{className:`hero__actions`,children:[(0,y.jsx)(ee,{}),(0,y.jsx)(`a`,{href:`#how`,className:`btn btn--ghost`,children:`See how it works`})]})]}),(0,y.jsx)(x,{delay:80,className:`hero__shot`,children:(0,y.jsx)(Qe,{})})]})}var et=[{n:`0`,label:`Servers your files pass through`},{n:`0`,label:`Accounts, logins or passwords to hand over`},{n:`1`,unit:`click`,label:`From any post to a file on disk`},{n:`$0`,label:`For DRM video and whole profiles, paid extras elsewhere`}],tt=[`Videos stream in pieces, so there is nothing to right-click and save`,`Protected videos arrive encrypted and only play inside the page`,`Keeping a profile means hundreds of saves, one post at a time`,`Files land as IMG_0043 with no creator, date or type`,`Downloaders that do handle DRM and bulk charge a monthly plan for them`],nt=[`A Download pill on every post and message`,`DRM videos decrypted in your browser into one playable mp4`,`A whole profile queued in one click, duplicates skipped`,`Files sorted as Creator/Videos/2026-11-29_rooftop.mp4`,`DRM video and whole profiles included, free, no plan to pick`];function rt(){return(0,y.jsx)(`section`,{className:`factband`,children:(0,y.jsx)(x,{className:`facts container`,children:et.map(e=>(0,y.jsxs)(`div`,{className:`fact`,children:[(0,y.jsxs)(`span`,{className:`fact__n`,children:[e.n,e.unit&&(0,y.jsxs)(`small`,{children:[` `,e.unit]})]}),(0,y.jsx)(`span`,{className:`fact__label`,children:e.label})]},e.label))})})}function it(){return(0,y.jsxs)(`section`,{className:`compare container`,children:[(0,y.jsx)(te,{eyebrow:`Why ofsaver`,muted:`Photos save fine`,strong:`Videos never did`}),(0,y.jsx)(x,{as:`p`,className:`compare__sub`,children:`The site streams video in signed, encrypted pieces, so the usual right-click does nothing. ofsaver works from inside your own signed-in tab, where those pieces make sense.`}),(0,y.jsxs)(x,{delay:60,className:`compare__grid`,children:[(0,y.jsxs)(`div`,{className:`compare__col compare__col--them`,children:[(0,y.jsx)(`div`,{className:`compare__head`,children:`Without ofsaver`}),(0,y.jsx)(`ul`,{className:`compare__list`,children:tt.map(e=>(0,y.jsxs)(`li`,{children:[(0,y.jsx)(he,{}),` `,e]},e))})]}),(0,y.jsxs)(`div`,{className:`compare__col compare__col--us`,children:[(0,y.jsxs)(`div`,{className:`compare__head`,children:[(0,y.jsx)(`img`,{src:`/assets/logo-light.svg`,alt:``}),` With ofsaver`]}),(0,y.jsx)(`ul`,{className:`compare__list`,children:nt.map(e=>(0,y.jsxs)(`li`,{children:[(0,y.jsx)(T,{}),` `,e]},e))})]})]})]})}var at={pills:(0,y.jsx)(se,{}),drm:(0,y.jsx)(ce,{}),bundle:(0,y.jsx)(le,{})},ot=6e3;function st(){let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=setTimeout(()=>t(e=>(e+1)%f.length),ot);return()=>clearTimeout(e)},[e]),(0,y.jsxs)(`section`,{className:`showcase container`,id:`how`,children:[(0,y.jsxs)(`div`,{className:`showcase__left`,children:[(0,y.jsxs)(x,{className:`section-heading section-heading--left`,children:[(0,y.jsx)(`span`,{className:`eyebrow`,children:`How it works`}),(0,y.jsxs)(`h2`,{children:[`Saved without`,(0,y.jsx)(`br`,{}),`leaving the page`]})]}),(0,y.jsx)(x,{delay:60,className:`tabs`,children:f.map((n,r)=>(0,y.jsxs)(`button`,{className:`tab ${r===e?`tab--active`:``}`,onClick:()=>t(r),"aria-pressed":r===e,children:[(0,y.jsxs)(`span`,{className:`tab__head`,children:[at[n.key],` `,n.title]}),(0,y.jsx)(`span`,{className:`tab__body`,children:(0,y.jsx)(`span`,{children:n.body})}),r===e&&(0,y.jsx)(`span`,{className:`tab__progress`,style:{animationDuration:`${ot}ms`}},e)]},n.key))})]}),(0,y.jsx)(x,{delay:120,className:`showcase__visual`,children:(0,y.jsxs)(`div`,{className:`stage`,children:[(0,y.jsxs)(`div`,{className:`stage__bar`,children:[(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{}),(0,y.jsx)(`span`,{className:`mono`,children:`onlyfans.com`})]}),f.map((t,n)=>{let r=qe[t.key];return(0,y.jsx)(`div`,{className:`stage__scene ${n===e?`is-active`:``}`,"aria-hidden":n!==e,children:n===e&&(0,y.jsx)(r,{},e)},t.key)})]})})]})}function ct({title:e,body:t,path:n,children:r,className:i=``,delay:a=0}){return(0,y.jsxs)(x,{delay:a,className:`feature-card ${i}`,children:[(0,y.jsxs)(`div`,{className:`feature-card__copy`,children:[(0,y.jsx)(`h3`,{children:e}),(0,y.jsx)(`p`,{children:t}),n&&(0,y.jsx)(`code`,{className:`path`,children:n})]}),(0,y.jsx)(`div`,{className:`feature-card__media`,children:r})]})}var lt=[{depth:0,kind:`folder`,name:`Mira Lane`},{depth:1,kind:`folder`,name:`Videos`},{depth:2,kind:`file`,name:`2026-11-29_rooftop.mp4`,meta:`412 MB`,fresh:!0},{depth:2,kind:`file`,name:`2026-11-14_studio-tour.mp4`,meta:`286 MB`},{depth:2,kind:`file`,name:`2026-10-30_q-and-a.mp4`,meta:`1.2 GB`},{depth:1,kind:`folder`,name:`Photos`,meta:`318 files`},{depth:1,kind:`folder`,name:`Audio`,meta:`12 files`}];function ut(){return(0,y.jsxs)(`div`,{className:`tree`,"aria-label":`Downloads folder after a DRM video is saved`,children:[(0,y.jsxs)(`div`,{className:`tree__head`,children:[(0,y.jsx)(pe,{}),` `,(0,y.jsx)(`span`,{children:`Downloads`})]}),(0,y.jsx)(`ul`,{children:lt.map(e=>(0,y.jsxs)(`li`,{className:`tree__row ${e.fresh?`is-fresh`:``}`,style:{"--depth":e.depth},children:[e.kind===`folder`?(0,y.jsx)(pe,{}):(0,y.jsx)(me,{}),(0,y.jsx)(`span`,{className:`tree__name`,children:e.name}),e.meta&&(0,y.jsx)(`span`,{className:`mono tree__meta`,children:e.meta})]},e.name))})]})}function dt(){return(0,y.jsxs)(`section`,{className:`features container`,id:`features`,children:[(0,y.jsx)(te,{eyebrow:`Features`,muted:`From a single post`,strong:`to a whole profile`}),(0,y.jsxs)(`div`,{className:`features__grid`,children:[(0,y.jsx)(ct,{title:(0,y.jsxs)(y.Fragment,{children:[`Right in`,(0,y.jsx)(`br`,{}),`the toolbar`]}),body:`A Download pill appears on every post and message, exactly where the site should have put one.`,className:`media-scene`,children:(0,y.jsx)(k,{})}),(0,y.jsx)(ct,{delay:60,title:(0,y.jsxs)(y.Fragment,{children:[`Pick your`,(0,y.jsx)(`br`,{}),`quality`]}),body:`Tap a pill and choose source, a resolution or the preview, with sizes shown before you commit.`,className:`media-scene`,children:(0,y.jsx)(je,{})}),(0,y.jsxs)(x,{className:`feature-card feature-card--dark`,children:[(0,y.jsxs)(`div`,{className:`feature-card__copy`,children:[(0,y.jsxs)(`h3`,{children:[`DRM,`,(0,y.jsx)(`br`,{}),`handled`]}),(0,y.jsx)(`p`,{children:`Protected videos run the whole Widevine flow locally, license, WebAssembly decryption and mux, and land as one playable mp4 at source quality.`}),(0,y.jsx)(ee,{variant:`light`})]}),(0,y.jsx)(ae,{src:oe,zone:`.feature-card--dark`,value:420,className:`drm-lock`}),(0,y.jsx)(`div`,{className:`feature-card__media`,children:(0,y.jsx)(ut,{})})]}),(0,y.jsx)(ct,{title:(0,y.jsxs)(y.Fragment,{children:[`Whole profiles`,(0,y.jsx)(`br`,{}),`in one go`]}),body:`Bulk mode crawls a creator's timeline and queues every photo and video, DRM included.`,className:`media-scene`,children:(0,y.jsx)(Pe,{})}),(0,y.jsx)(ct,{delay:60,title:(0,y.jsxs)(y.Fragment,{children:[`Saved, and it`,(0,y.jsx)(`br`,{}),`stays marked`]}),body:`Everything you already have gets a check, and your naming scheme keeps folders in order.`,path:`{creator}/{type}/{date}_{name}`,className:`media-scene`,children:(0,y.jsx)(Re,{})})]})]})}function ft(){return(0,y.jsx)(`section`,{className:`platforms`,children:(0,y.jsxs)(`div`,{className:`container platforms__inner`,children:[(0,y.jsx)(`span`,{className:`platforms__label mono`,children:`Works on`}),(0,y.jsxs)(`ul`,{className:`platforms__list`,children:[_.filter(e=>e.live).map(e=>(0,y.jsxs)(`li`,{className:`is-live`,children:[(0,y.jsx)(`span`,{className:`platforms__dot`}),e.name]},e.name)),(0,y.jsx)(`li`,{className:`platforms__soon mono`,"aria-hidden":`true`,children:`coming soon`}),_.filter(e=>!e.live).map(e=>(0,y.jsxs)(`li`,{children:[(0,y.jsx)(`span`,{className:`platforms__dot`}),e.name]},e.name))]}),(0,y.jsxs)(`div`,{className:`platforms__runs`,children:[(0,y.jsx)(`span`,{className:`platforms__label mono`,children:`Runs as`}),(0,y.jsxs)(`span`,{className:`chip`,children:[(0,y.jsx)(be,{size:14}),` Chrome extension`]}),(0,y.jsxs)(`span`,{className:`chip chip--soon`,children:[(0,y.jsx)(xe,{size:14}),` iPhone and Android `,(0,y.jsx)(`span`,{className:`mono`,children:`soon`})]})]})]})})}function pt(){return(0,y.jsx)(`section`,{className:`mobile container`,id:`mobile`,children:(0,y.jsxs)(x,{className:`mobile__card`,children:[(0,y.jsxs)(`div`,{className:`mobile__copy`,children:[(0,y.jsx)(`span`,{className:`eyebrow`,children:`Coming soon`}),(0,y.jsxs)(`h2`,{children:[`ofsaver,`,(0,y.jsx)(`br`,{}),`in your pocket`]}),(0,y.jsx)(`p`,{children:`The same Download button, on your phone. Save from the feed or your messages straight to your camera roll or Files, DRM videos included, and still free.`}),(0,y.jsxs)(`ul`,{className:`mobile__list`,children:[(0,y.jsxs)(`li`,{children:[(0,y.jsx)(T,{}),` iPhone and Android`]}),(0,y.jsxs)(`li`,{children:[(0,y.jsx)(T,{}),` Saves to Photos or Files`]}),(0,y.jsxs)(`li`,{children:[(0,y.jsx)(T,{}),` Same naming scheme as desktop`]})]}),(0,y.jsx)(`p`,{className:`mobile__note mono`,children:`On desktop today: Chrome, Brave and Arc`})]}),(0,y.jsx)(`div`,{className:`mobile__visual`,"aria-hidden":`true`,children:(0,y.jsx)(`div`,{className:`handset`,children:(0,y.jsxs)(`div`,{className:`handset__screen`,children:[(0,y.jsxs)(`div`,{className:`handset__status mono`,children:[(0,y.jsx)(`span`,{children:`9:41`}),(0,y.jsx)(`span`,{className:`handset__island`}),(0,y.jsx)(`span`,{children:`100%`})]}),(0,y.jsxs)(`div`,{className:`handset__head`,children:[(0,y.jsx)(`span`,{className:`pf__avatar`}),(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`strong`,{children:`Mira Lane`}),(0,y.jsx)(`span`,{className:`mono`,children:`@mira.lane`})]})]}),(0,y.jsx)(`div`,{className:`handset__media`,style:{background:`radial-gradient(120% 90% at 70% 20%, #e8c3a5, #9c6a52)`},children:(0,y.jsx)(`span`,{className:`mono post__dur`,children:`04:12`})}),(0,y.jsxs)(`div`,{className:`handset__bar`,children:[(0,y.jsxs)(`span`,{className:`post__icons`,children:[(0,y.jsx)(ue,{size:18}),(0,y.jsx)(de,{size:18})]}),(0,y.jsxs)(`span`,{className:`pill pill--open`,children:[(0,y.jsx)(se,{size:14}),` Download`]})]}),(0,y.jsxs)(`div`,{className:`handset__sheet`,children:[(0,y.jsx)(`span`,{className:`handset__grab`}),(0,y.jsx)(`div`,{className:`handset__sheet-title`,children:`Save rooftop.mp4`}),(0,y.jsxs)(`div`,{className:`menu__row is-active`,children:[(0,y.jsx)(`span`,{children:`Source`}),(0,y.jsx)(`span`,{className:`mono`,children:`1080p · 412 MB`})]}),(0,y.jsxs)(`div`,{className:`menu__row`,children:[(0,y.jsx)(`span`,{children:`720p`}),(0,y.jsx)(`span`,{className:`mono`,children:`188 MB`})]}),(0,y.jsxs)(`div`,{className:`handset__dest mono`,children:[(0,y.jsx)(pe,{size:14}),` Files/ofsaver/Mira Lane`]})]})]})})})]})})}var mt=[{icon:(0,y.jsx)(ge,{size:18}),title:`Your signed-in tab`,meta:`onlyfans.com, as you`},{icon:(0,y.jsx)(_e,{size:18}),title:`Your browser`,meta:`decrypts and names files`},{icon:(0,y.jsx)(ve,{size:18}),title:`Your Downloads folder`,meta:`Mira Lane/Videos/…`}],ht=[{q:`Does it ask for your password?`,flag:`A login form for your OnlyFans account`,us:`Never. It works inside the tab you are already signed into`},{q:`Where do your files go?`,flag:`Downloads "processed in the cloud"`,us:`Only to your Downloads folder. ofsaver has no servers at all`},{q:`How hard does it hit the site?`,flag:`Hundreds of requests at once, flagged accounts`,us:`Bulk mode waits politely between requests`},{q:`What does it charge for?`,flag:`DRM video and whole profiles behind a monthly plan`,us:`Nothing. Every feature is free, DRM and bulk included`}];function gt(){let[e,t]=b({threshold:.5});return(0,y.jsxs)(`section`,{className:`safety container`,id:`safety`,children:[(0,y.jsxs)(`div`,{className:`safety__top`,children:[(0,y.jsx)(te,{eyebrow:`Safety`,muted:`Before a downloader sees your account`,strong:`ask it four questions`,align:`left`}),(0,y.jsx)(x,{as:`p`,delay:60,className:`safety__intro`,children:`Any tool that saves from a subscription site can see your logged-in session. That is a lot of trust to hand over, so here is what to check in any downloader, and how ofsaver answers each one.`})]}),(0,y.jsxs)(x,{className:`route`,children:[(0,y.jsx)(`div`,{className:`route__line`,children:mt.map((e,t)=>(0,y.jsxs)(`div`,{className:`route__stop`,children:[(0,y.jsx)(`span`,{className:`route__icon`,children:e.icon}),(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`strong`,{children:e.title}),(0,y.jsx)(`span`,{className:`mono`,children:e.meta})]}),t(0,y.jsxs)(`div`,{className:`audit__row`,children:[(0,y.jsxs)(`span`,{className:`audit__q`,children:[(0,y.jsxs)(`span`,{className:`mono`,children:[`0`,t+1]}),e.q]}),(0,y.jsxs)(`span`,{className:`audit__flag`,children:[(0,y.jsx)(he,{size:14}),e.flag]}),(0,y.jsxs)(`span`,{className:`audit__us`,children:[(0,y.jsx)(T,{size:14}),e.us]})]},e.q))]}),(0,y.jsx)(x,{as:`p`,className:`safety__rule`,children:`Rule of thumb: if a downloader wants your password, a server or a subscription, ask what it is doing with them`})]})}function _t({plan:e,delay:t}){let[n,r]=b({threshold:.5});return(0,y.jsxs)(x,{delay:t,className:`plan plan--struck`,children:[(0,y.jsx)(`div`,{className:`plan__name`,children:e.name}),(0,y.jsxs)(`div`,{ref:n,className:`plan__price ${r?`is-struck`:``}`,children:[(0,y.jsxs)(`span`,{className:`plan__was`,children:[(0,y.jsxs)(`span`,{className:`plan__amount`,children:[`$`,e.price]}),(0,y.jsx)(`span`,{className:`plan__per`,children:e.per}),(0,y.jsx)(`svg`,{className:`strike`,viewBox:`0 0 100 20`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:`M2 15 C 30 11, 62 8, 98 4`,pathLength:`1`})})]}),(0,y.jsx)(`span`,{className:`plan__now mono`,children:`$0`})]}),(0,y.jsx)(`p`,{className:`plan__desc`,children:e.note}),(0,y.jsx)(`span`,{className:`btn btn--block btn--void`,children:`Nothing to buy`})]})}function vt(){return(0,y.jsx)(`section`,{className:`pricing`,id:`pricing`,children:(0,y.jsxs)(`div`,{className:`container`,children:[(0,y.jsx)(te,{eyebrow:`Pricing`,muted:`We drew up a pricing page`,strong:`then made all of it free`}),(0,y.jsx)(x,{as:`p`,className:`pricing__sub`,children:`Other downloaders put DRM video and whole-profile backups behind a paid plan. ofsaver gives you both, and everything else, for nothing.`}),(0,y.jsxs)(`div`,{className:`pricing__grid`,children:[(0,y.jsxs)(x,{className:`plan plan--featured`,children:[(0,y.jsx)(`div`,{className:`plan__name`,children:p.name}),(0,y.jsxs)(`div`,{className:`plan__price`,children:[(0,y.jsx)(`span`,{className:`plan__amount`,children:`$0`}),(0,y.jsx)(`span`,{className:`plan__per`,children:`forever`})]}),(0,y.jsx)(`p`,{className:`plan__desc`,children:p.description}),(0,y.jsx)(ee,{variant:`primary`}),(0,y.jsx)(`ul`,{className:`plan__features`,children:p.features.map(e=>(0,y.jsxs)(`li`,{children:[(0,y.jsx)(T,{}),` `,e]},e))})]}),m.map((e,t)=>(0,y.jsx)(_t,{plan:e,delay:(t+1)*60},e.name))]})]})})}function yt({r:e}){return(0,y.jsxs)(`article`,{className:`review`,children:[(0,y.jsx)(`p`,{children:e.text}),(0,y.jsxs)(`footer`,{children:[(0,y.jsx)(`strong`,{children:e.name}),(0,y.jsx)(`span`,{className:`mono`,children:e.date})]})]})}var bt=[[0,3,6],[1,4,7],[2,5,8]];function xt(){return(0,y.jsxs)(`section`,{className:`reviews container`,id:`reviews`,children:[(0,y.jsx)(te,{eyebrow:`Reviews`,muted:`A tool you forget you installed`,strong:`until you need it`}),(0,y.jsxs)(x,{as:`p`,className:`ratings`,children:[`4.8 on the Chrome Web Store `,(0,y.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),` 4.8 on Product Hunt`]}),(0,y.jsx)(x,{className:`reviews__wall`,children:bt.map((e,t)=>(0,y.jsx)(`div`,{className:`reviews__col`,children:e.map(e=>(0,y.jsx)(yt,{r:h[e]},e))},t))})]})}function St(){let[e,t]=(0,l.useState)(0);return(0,y.jsxs)(`section`,{className:`faq container`,id:`faq`,children:[(0,y.jsxs)(`div`,{className:`faq__left`,children:[(0,y.jsx)(te,{eyebrow:`FAQ`,muted:`Questions`,strong:`before you install`,align:`left`}),(0,y.jsxs)(x,{as:`p`,delay:60,className:`faq__help`,children:[`Can't find the answer? Email`,` `,(0,y.jsx)(`a`,{href:`mailto:help@ofsaver.app`,children:`help@ofsaver.app`})]})]}),(0,y.jsx)(x,{as:`ul`,delay:60,className:`faq__list`,children:g.map((n,r)=>{let i=e===r;return(0,y.jsxs)(`li`,{className:`faq__item ${i?`is-open`:``}`,children:[(0,y.jsxs)(`button`,{onClick:()=>t(i?-1:r),"aria-expanded":i,children:[(0,y.jsx)(`span`,{children:n.q}),(0,y.jsx)(Se,{open:i})]}),(0,y.jsx)(`div`,{className:`faq__answer`,children:(0,y.jsx)(`p`,{children:n.a})})]},n.q)})})]})}function Ct(){return(0,y.jsx)(`section`,{className:`container`,children:(0,y.jsxs)(x,{className:`cta`,children:[(0,y.jsxs)(`h2`,{children:[`Stop re-finding posts`,(0,y.jsx)(`br`,{}),`Start keeping them`]}),(0,y.jsx)(ee,{variant:`dark`}),(0,y.jsx)(`p`,{className:`cta__meta mono`,children:`Free, DRM included · Runs locally · Chrome, Brave and Arc`})]})})}function wt(){return(0,y.jsxs)(`footer`,{className:`footer container`,children:[(0,y.jsx)(`span`,{children:`ofsaver is a personal downloader`}),(0,y.jsx)(`span`,{className:`mono`,children:`© 2026`})]})}var Tt=({size:e=16})=>(0,y.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,y.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),(0,y.jsx)(`path`,{d:`M14 2v6h6`}),(0,y.jsx)(`path`,{d:`M10 6h1M10 9h1M10 12h1M10 15h1`})]});function Et({url:e,children:t}){return(0,y.jsxs)(`div`,{className:`iw`,children:[(0,y.jsxs)(`div`,{className:`iw__bar`,children:[(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{}),(0,y.jsx)(`i`,{}),(0,y.jsx)(`span`,{className:`mono`,children:e})]}),(0,y.jsx)(`div`,{className:`iw__body`,children:t})]})}var Dt=[[`idle`,700],[`saving`,1600],[`zip`,1e3],[`unzipped`,2600]];function Ot(){let[e,t]=we(Dt,`unzipped`),n=Dt.findIndex(([e])=>e===t),r=n>=2;return(0,y.jsx)(`div`,{ref:e,className:`scene`,children:(0,y.jsxs)(Et,{url:`ofsaver.app`,children:[(0,y.jsxs)(`div`,{className:`dl__btn ${t===`idle`?``:`is-pressed`}`,children:[(0,y.jsx)(se,{size:14}),` Add to Chrome `,(0,y.jsx)(`span`,{className:`kpill__meta`,children:`Free`})]}),(0,y.jsxs)(`div`,{className:`dl__shelf ${n>=1?`is-in`:``}`,children:[(0,y.jsxs)(`div`,{className:`dl__row`,children:[(0,y.jsx)(`span`,{className:`dl__icon`,children:(0,y.jsx)(Tt,{})}),(0,y.jsxs)(`span`,{className:`dl__name`,children:[(0,y.jsx)(`strong`,{children:`ofsaver-extension.zip`}),(0,y.jsx)(`span`,{className:`mono`,children:r?`Done · 1.4 MB`:`Downloading…`})]}),(0,y.jsx)(`span`,{className:`dl__track ${t===`saving`?`is-running`:``} ${r?`is-full`:``}`,children:(0,y.jsx)(`span`,{})})]}),(0,y.jsxs)(`div`,{className:`dl__row dl__row--folder ${t===`unzipped`?`is-in`:``}`,children:[(0,y.jsx)(`span`,{className:`dl__icon dl__icon--folder`,children:(0,y.jsx)(pe,{})}),(0,y.jsxs)(`span`,{className:`dl__name`,children:[(0,y.jsx)(`strong`,{children:`ofsaver`}),(0,y.jsx)(`span`,{className:`mono`,children:`Unzipped, keep this folder`})]}),(0,y.jsx)(T,{size:16,className:`dl__ok`})]})]})]})})}var kt=[[`idle`,900],[`aim`,700],[`press`,300],[`on`,2800]];function At(){let[e,t]=we(kt,`on`),n=t===`on`;return(0,y.jsx)(`div`,{ref:e,className:`scene`,children:(0,y.jsxs)(Et,{url:`chrome://extensions`,children:[(0,y.jsxs)(`div`,{className:`ext__head`,children:[(0,y.jsxs)(`span`,{className:`ext__title`,children:[(0,y.jsx)(be,{size:16}),` Extensions`]}),(0,y.jsxs)(`span`,{className:`ext__dev`,children:[`Developer mode`,(0,y.jsx)(`span`,{className:`toggle ${n?`is-on`:``}`,children:(0,y.jsx)(`span`,{})})]})]}),(0,y.jsxs)(`div`,{className:`ext__tools ${n?`is-in`:``}`,children:[(0,y.jsx)(`span`,{className:`ext__tool`,children:`Load unpacked`}),(0,y.jsx)(`span`,{className:`ext__tool`,children:`Pack extension`}),(0,y.jsx)(`span`,{className:`ext__tool`,children:`Update`})]}),(0,y.jsxs)(`div`,{className:`ext__ghost`,children:[(0,y.jsx)(`span`,{}),(0,y.jsx)(`span`,{})]}),(0,y.jsx)(D,{className:`dev__cursor is-${t}`})]})})}var jt=[[`idle`,800],[`lift`,500],[`drag`,1100],[`drop`,500],[`installed`,2800]];function Mt(){let[e,t]=we(jt,`installed`),n=t===`installed`;return(0,y.jsx)(`div`,{ref:e,className:`scene`,children:(0,y.jsxs)(Et,{url:`chrome://extensions`,children:[(0,y.jsx)(`div`,{className:`drop__zone ${t===`drag`||t===`drop`?`is-hot`:``} ${n?`is-gone`:``}`,children:(0,y.jsx)(`span`,{children:`Drop to install`})}),(0,y.jsxs)(`div`,{className:`ext__card ${n?`is-in`:``}`,children:[(0,y.jsx)(`img`,{src:`/assets/app-icon.svg`,alt:``,width:`32`,height:`32`}),(0,y.jsxs)(`span`,{className:`ext__card-name`,children:[(0,y.jsxs)(`strong`,{children:[`ofsaver `,(0,y.jsx)(`span`,{className:`mono`,children:`1.0.0`})]}),(0,y.jsx)(`span`,{children:`Saves posts and messages`})]}),(0,y.jsx)(`span`,{className:`toggle is-on`,children:(0,y.jsx)(`span`,{})})]}),(0,y.jsxs)(`div`,{className:`drag__chip is-${t}`,"aria-hidden":`true`,children:[(0,y.jsx)(pe,{size:16}),` ofsaver`,(0,y.jsx)(D,{className:`drag__cursor`})]})]})})}var Nt=[{title:`Download and unzip`,body:`Click Add to Chrome to get ofsaver-extension.zip, then unzip it. Keep the ofsaver folder somewhere it will stay.`,Scene:Ot},{title:`Turn on Developer mode`,body:`Open chrome://extensions and flip the Developer mode switch in the top right corner.`,Scene:At},{title:`Drag the folder in`,body:`Drop the ofsaver folder onto the extensions page. That is it, the Download pill shows up on your next visit.`,Scene:Mt}];function Pt(){return(0,y.jsxs)(`section`,{className:`install container`,id:`install`,children:[(0,y.jsx)(te,{eyebrow:`Install`,muted:`Three steps`,strong:`about a minute`}),(0,y.jsx)(`ol`,{className:`install__grid`,children:Nt.map(({title:e,body:t,Scene:n},r)=>(0,y.jsxs)(x,{as:`li`,delay:r*60,className:`install__step`,children:[(0,y.jsx)(`div`,{className:`install__media`,children:(0,y.jsx)(n,{})}),(0,y.jsxs)(`div`,{className:`install__copy`,children:[(0,y.jsxs)(`span`,{className:`install__n mono`,children:[`0`,r+1]}),(0,y.jsx)(`h3`,{children:e}),(0,y.jsx)(`p`,{children:t})]})]},e))}),(0,y.jsxs)(x,{className:`install__foot`,children:[(0,y.jsx)(ee,{}),(0,y.jsxs)(`p`,{className:`install__note`,children:[`Works in Chrome, Brave and Arc. If dropping does nothing, click `,(0,y.jsx)(`strong`,{children:`Load unpacked`}),` and pick the ofsaver folder.`]})]})]})}function Ft(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Je,{}),(0,y.jsxs)(`main`,{children:[(0,y.jsx)($e,{}),(0,y.jsx)(ft,{}),(0,y.jsx)(rt,{}),(0,y.jsx)(it,{}),(0,y.jsx)(st,{}),(0,y.jsx)(dt,{}),(0,y.jsx)(pt,{}),(0,y.jsx)(gt,{}),(0,y.jsx)(vt,{}),(0,y.jsx)(Pt,{}),(0,y.jsx)(xt,{}),(0,y.jsx)(St,{}),(0,y.jsx)(Ct,{})]}),(0,y.jsx)(wt,{})]})}(0,u.createRoot)(document.getElementById(`root`)).render((0,y.jsx)(l.StrictMode,{children:(0,y.jsx)(Ft,{})}));