PageSourceSearch

https://digitalhabits.org/_next/static/chunks/4363-9c65732767b7ba4c.js

js digitalhabits.org collected 2026-09-24 10:07:49 UTC 14,283 bytes, 20 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4363,8074],{66872:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},4847:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},60323:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},37317:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},12045:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},78074:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},84392:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},22258:function(e,t,n){n.d(t,{K2:function(){return y},VM:function(){return h},uZ:function(){return m}});var r=n(58496),l=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))c.call(t,n)&&s(e,n,t[n]);return e},d=(e,t)=>o(e,a(t)),f=(e,t)=>{var n={};for(var r in e)u.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&i)for(var r of i(e))0>t.indexOf(r)&&c.call(e,r)&&(n[r]=e[r]);return n},h=r.createContext({}),m=r.forwardRef((e,t)=>{let n;var l,o,a,i,u,{value:c,onChange:s,maxLength:m,textAlign:y="left",pattern:b,placeholder:w,inputMode:x="numeric",onComplete:E,pushPasswordManagerStrategy:k="increase-width",pasteTransformer:S,containerClassName:M,noScriptCSSFallback:C=v,render:P,children:R}=e,j=f(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[T,D]=r.useState("string"==typeof j.defaultValue?j.defaultValue:""),O=null!=c?c:T,W=(n=r.useRef(),r.useEffect(()=>{n.current=O}),n.current),_=r.useCallback(e=>{null==s||s(e),D(e)},[s]),A=r.useMemo(()=>b?"string"==typeof b?new RegExp(b):b:null,[b]),B=r.useRef(null),I=r.useRef(null),Z=r.useRef({value:O,onChange:_,isIOS:"undefined"!=typeof window&&(null==(o=null==(l=null==window?void 0:window.CSS)?void 0:l.supports)?void 0:o.call(l,"-webkit-touch-callout","none"))}),L=r.useRef({prev:[null==(a=B.current)?void 0:a.selectionStart,null==(i=B.current)?void 0:i.selectionEnd,null==(u=B.current)?void 0:u.selectionDirection]});r.useImperativeHandle(t,()=>B.current,[]),r.useEffect(()=>{let e=B.current,t=I.current;if(!e||!t)return;function n(){if(document.activeElement!==e){V(null),q(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,l=e.maxLength,o=e.value,a=L.current.prev,i=-1,u=-1,c;if(0!==o.length&&null!==t&&null!==n){let e=t===n,r=t===o.length&&o.length<l;if(e&&!r){if(0===t)i=0,u=1,c="forward";else if(t===l)i=t-1,u=t,c="backward";else if(l>1&&o.length>1){let e=0;if(null!==a[0]&&null!==a[1]){c=t<a[1]?"backward":"forward";let n=a[0]===a[1]&&a[0]<l;"backward"!==c||n||(e=-1)}i=e+t,u=e+t+1}}-1!==i&&-1!==u&&i!==u&&B.current.setSelectionRange(i,u,c)}let s=-1!==i?i:t,p=-1!==u?u:n,d=null!=c?c:r;V(s),q(p),L.current.prev=[s,p,d]}if(Z.current.value!==e.value&&Z.current.onChange(e.value),L.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{
vendor: 6,093 bytes, line 1
1capture:!0}),n(),document.activeElement===e&&N(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";g(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),g(e.sheet,`[data-input-otp]:autofill { ${t} }`),g(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),g(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),g(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let l=new ResizeObserver(r);return l.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),l.disconnect()}},[]);let[F,H]=r.useState(!1),[z,N]=r.useState(!1),[$,V]=r.useState(null),[G,q]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=B.current)||e.dispatchEvent(new Event("input"));let l=null==(t=B.current)?void 0:t.selectionStart,o=null==(n=B.current)?void 0:n.selectionEnd,a=null==(r=B.current)?void 0:r.selectionDirection;null!==l&&null!==o&&(V(l),q(o),L.current.prev=[l,o,a])},0),setTimeout(e,10),setTimeout(e,50)},[O,z]),r.useEffect(()=>{void 0!==W&&O!==W&&W.length<m&&O.length===m&&(null==E||E(O))},[m,E,W,O]);let U=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:l}){let[o,a]=r.useState(!1),[i,u]=r.useState(!1),[c,s]=r.useState(!1),p=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&o&&i,[o,i,n]),d=r.useCallback(()=>{let r=e.current,l=t.current;if(!r||!l||c||"none"===n)return;let o=r.getBoundingClientRect().left+r.offsetWidth,i=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(o-18,i)===r||(a(!0),s(!0))},[e,t,c,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){u(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let l=setInterval(r,1e3);return()=>{clearInterval(l)}},[e,n]),r.useEffect(()=>{let e=l||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(d,0),o=setTimeout(d,2e3),a=setTimeout(d,5e3),i=setTimeout(()=>{s(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(o),clearTimeout(a),clearTimeout(i)}},[t,l,n,d]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:I,inputRef:B,pushPasswordManagerStrategy:k,isFocused:z}),X=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,m);if(t.length>0&&A&&!A.test(t)){e.preventDefault();return}"string"==typeof W&&t.length<W.length&&document.dispatchEvent(new Event("selectionchange")),_(t)},[m,_,W,A]),K=r.useCallback(()=>{var e;if(B.current){let t=Math.min(B.current.value.length,m-1),n=B.current.value.length;null==(e=B.current)||e.setSelectionRange(t,n),V(t),q(n)}N(!0)},[m]),J=r.useCallback(e=>{var t,n;let r=B.current;if(!S&&(!Z.current.isIOS||!e.clipboardData||!r))return;let l=e.clipboardData.getData("text/plain"),o=S?S(l):l;e.preventDefault();let a=null==(t=B.current)?void 0:t.selectionStart,i=null==(n=B.current)?void 0:n.selectionEnd,u=(a!==i?O.slice(0,a)+o+O.slice(i):O.slice(0,a)+o+O.slice(a)).slice(0,m);if(u.length>0&&A&&!A.test(u))return;r.value=u,_(u);let c=Math.min(u.length,m-1),s=u.length;r.setSelectionRange(c,s),V(c),q(s)},[m,_,A,O]),Q=r.useMemo(()=>({position:"relative",cursor:j.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[j.disabled]),Y=r.useMemo(()=>({position:"absolute",inset:0,width:U.willPushPWMBadge?`calc(100% + ${U.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:U.willPushPWMBadge?`inset(0 ${U.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:y,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[U.PWM_BADGE_SPACE_WIDTH,U.willPushPWMBadge,y]),ee=r.useMemo(()=>r.createElement("input",d(p({autoComplete:j.autoComplete||"one-time-code"},j),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===O.length||void 0,"data-input-otp-mss":$,"data-input-otp-mse":G,inputMode:x,pattern:null==A?void 0:A.source,"aria-placeholder":w,style:Y,maxLength:m,value:O,ref:B,onPaste:e=>{var t;J(e),null==(t=j.onPaste)||t.call(j,e)},onChange:X,onMouseOver:e=>{var t;H(!0),null==(t=j.onMouseOver)||t.call(j,e)},onMouseLeave:e=>{var t;H(!1),null==(t=j.onMouseLeave)||t.call(j,e)},onFocus:e=>{var t;K(),null==(t=j.onFocus)||t.call(j,e)},onBlur:e=>{var t;N(!1),null==(t=j.onBlur)||t.call(j,e)}})),[X,K,J,x,Y,m,G,$,j,null==A?void 0:A.source,O]),et=r.useMemo(()=>({slots:Array.from({length:m}).map((e,t)=>{var n;let r=z&&null!==$&&null!==G&&($===G&&t===$||t>=$&&t<G),l=void 0!==O[t]?O[t]:null;return{char:l,placeholderChar:void 0!==O[0]?null:null!=(n=null==w?void 0:w[t])?n:null,isActive:r,hasFakeCaret:r&&null===l}}),isFocused:z,isHovering:!j.disabled&&F}),[z,F,m,G,$,j.disabled,O]),en=r.useMemo(()=>P?P(et):r.createElement(h.Provider,{value:et},R),[R,et,P]);return r.createElement(r.Fragment,null,null!==C&&r.createElement("noscript",null,r.createElement("style",null,C)),r.createElement("div",{ref:I,"data-input-otp-container":!0,style:Q,className:M},en,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ee)))});function g(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}
1m.displayName="Input";var v=`
2[data-input-otp] {
3  --nojs-bg: white !important;
4  --nojs-fg: black !important;
5
6  background-color: var(--nojs-bg) !important;
7  color: var(--nojs-fg) !important;
8  caret-color: var(--nojs-fg) !important;
9  letter-spacing: .25em !important;
10  text-align: center !important;
11  border: 1px solid var(--nojs-fg) !important;
12  border-radius: 4px !important;
13  width: 100% !important;
14}
15@media (prefers-color-scheme: dark) {
16  [data-input-otp] {
17    --nojs-bg: black !important;
18    --nojs-fg: white !important;
19  }
20}`,y="^[a-zA-Z0-9]+$"},67743:function(e,t,n){n.d(t,{M:function(){return v}});var r=n(83890),l=n(58496),o=n(88690),a=n(87389),i=n(59564),u=n(19249);class c extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function s(e){let{children:t,isPresent:n,anchorX:o}=e,a=(0,l.useId)(),i=(0,l.useRef)(null),s=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,l.useContext)(u._);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:u}=s.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=a;let c=document.createElement("style");return p&&(c.nonce=p),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===o?"left: ".concat(l):"right: ".concat(u),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(c)}},[n]),(0,r.jsx)(c,{isPresent:n,childRef:i,sizeRef:s,children:l.cloneElement(t,{ref:i})})}let p=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:p,mode:f,anchorX:h}=e,m=(0,a.h)(d),g=(0,l.useId)(),v=(0,l.useCallback)(e=>
20{for(let t of(m.set(e,!0),m.values()))if(!t)return;u&&u()},[m,u]),y=(0,l.useMemo)(()=>({id:g,initial:n,isPresent:o,custom:c,onExitComplete:v,register:e=>(m.set(e,!1),()=>m.delete(e))}),p?[Math.random(),v]:[o,v]);return(0,l.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[o]),l.useEffect(()=>{o||m.size||!u||u()},[o]),"popLayout"===f&&(t=(0,r.jsx)(s,{isPresent:o,anchorX:h,children:t})),(0,r.jsx)(i.O.Provider,{value:y,children:t})};function d(){return new Map}var f=n(70053);let h=e=>e.key||"";function m(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}var g=n(69996);let v=e=>{let{children:t,custom:n,initial:i=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:s="sync",propagate:d=!1,anchorX:v="left"}=e,[y,b]=(0,f.oO)(d),w=(0,l.useMemo)(()=>m(t),[t]),x=d&&!y?[]:w.map(h),E=(0,l.useRef)(!0),k=(0,l.useRef)(w),S=(0,a.h)(()=>new Map),[M,C]=(0,l.useState)(w),[P,R]=(0,l.useState)(w);(0,g.L)(()=>{E.current=!1,k.current=w;for(let e=0;e<P.length;e++){let t=h(P[e]);x.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[P,x.length,x.join("-")]);let j=[];if(w!==M){let e=[...w];for(let t=0;t<P.length;t++){let n=P[t],r=h(n);x.includes(r)||(e.splice(t,0,n),j.push(n))}"wait"===s&&j.length&&(e=j),R(m(e)),C(w);return}let{forceRender:T}=(0,l.useContext)(o.p);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let t=h(e),l=(!d||!!y)&&(w===P||x.includes(t));return(0,r.jsx)(p,{isPresent:l,initial:(!E.current||!!i)&&void 0,custom:l?void 0:n,presenceAffectsLayout:c,mode:s,onExitComplete:l?void 0:()=>{if(!S.has(t))return;S.set(t,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==T||T(),R(k.current),d&&(null==b||b()),u&&u())},anchorX:v,children:e},t)})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.