PageSourceSearch

https://www.rewritepal.com/_next/static/chunks/10-kap2k34ti6.js?dpl=dpl_DmEpeXAoeNEXFpYFuBsUas4cek5g

js rewritepal.com collected 2026-10-01 23:42:50 UTC 31,933 bytes, 179 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ed7a-8c5f-7dd0-8cfe-53f93dec5525")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,558135,e=>{"use strict";var t=e.i(137364);let r=()=>()=>void 0;function n(){return!1}function o(){return!0}e.s(["useHydrated",0,function(){return(0,t.useSyncExternalStore)(r,o,n)}])},576090,e=>{"use strict";let t,r;var n,o=e.i(137364);let a={data:""},i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/|  +/g,l=/\n+/g,c=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?c(i,a):a+"{"+c(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=c(i,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a="-"==a[1]?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=c.p?c.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},u={},d=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+d(e[r]);return t}return e};function m(e){let t,r,n=this||{},o=e.call?e(n.p):e;return((e,t,r,n,o)=>{var a;let m=d(e),f=u[m]||(u[m]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(m));if(!u[f]){let t=m!==e?e:(e=>{let t,r,n=[{}];for(;t=i.exec(e.replace(s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(l," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(l," ").trim();return n[0]})(e);u[f]=c(o?{["@keyframes "+f]:t}:t,r?"":"."+f)}let p=r&&u.g;return r&&(u.g=u[f]),a=u[f],p?t.data=t.data.replace(p,a):-1===t.data.indexOf(a)&&(t.data=n?a+t.data:t.data+a),f})(o.unshift?o.raw?(t=[].slice.call(arguments,1),r=n.p,o.reduce((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+n+(null==a?"":a)},"")):o.reduce((e,t)=>Object.assign(e,t&&t.call?t(n.p):t),{}):o,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||a})(n.target),n.g,n.o,n.k)}m.bind({g:1});let f,p,g,E=m.bind({k:1});function h(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;r.p=Object.assign({theme:p&&p()},s),r.o=/go\d/.test(l),s.className=m.apply(r,n)+(l?" "+l:""),t&&(s.ref=i);let c=e;return e[0]&&(c=s.as||e,delete s.as),g&&c[0]&&g(s),f(c,s)}return t?t(o):o}}var y=(e,t)=>"function"==typeof e?e(t):e,v=(t=0,()=>(++t).toString()),C=()=>{if(void 0===r&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");r=!e||e.matches}return r},b="default",A=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return A(e,{type:+!!e.toasts.find(e=>e.id===n.id),toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},w=[],T={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},_={},I=(e,t=b)=>{_[t]=A(_[t]||T,e),w.forEach(([e,r])=>{e===t&&r(_[t])})},N=e=>Object.keys(_).forEach(t=>I(e,t)),D=(e=b)=>t=>{I(t,e)},O={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},S=(e={},t=b)=>{let[r,n]=(0,o.useState)(_[t]||T),a=(0,o.useRef)(_[t]);(0,o.useEffect)(()=>(a.current!==_[t]&&n(_[t]),w.push([t,n]),()=>{let e=w.findIndex(([e])=>e===t);e>-1&&w.splice(e,1)}),[t]);let i=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||O[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:i}},L=e=>(t,r)=>{let n,o=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||v()}))(t,e,r);return D(o.toasterId||(n=o.id,Object.keys(_).find(e=>_[e].toasts.some(e=>e.id===n))))({type:2,toast:o}),o.id},x=(e,t)=>L("blank")(e,t);x.error=L("error"),x.success=L("success"),x.loading=L("loading"),x.custom=L("custom"),x.dismiss=(e,t)=>{let r={type:3,toastId:e};t?D(t)(r):N(r)},x.dismissAll=e=>
1x.dismiss(void 0,e),x.remove=(e,t)=>{let r={type:4,toastId:e};t?D(t)(r):N(r)},x.removeAll=e=>x.remove(void 0,e),x.promise=(e,t,r)=>{let n=x.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?y(t.success,e):void 0;return o?x.success(o,{id:n,...r,...null==r?void 0:r.success}):x.dismiss(n),e}).catch(e=>{let o=t.error?y(t.error,e):void 0;o?x.error(o,{id:n,...r,...null==r?void 0:r.error}):x.dismiss(n)}),e};var P=1e3,R=(e,t="default")=>{let{toasts:r,pausedAt:n}=S(e,t),a=(0,o.useRef)(new Map).current,i=(0,o.useCallback)((e,t=P)=>{if(a.has(e))return;let r=setTimeout(()=>{a.delete(e),s({type:4,toastId:e})},t);a.set(e,r)},[]);(0,o.useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(n<0){r.visible&&x.dismiss(r.id);return}return setTimeout(()=>x.dismiss(r.id,t),n)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,o.useCallback)(D(t),[t]),l=(0,o.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,o.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,o.useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,o.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=t||{},i=r.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=i.findIndex(t=>t.id===e.id),l=i.filter((e,t)=>t<s&&e.visible).length;return i.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,o.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=a.get(e.id);t&&(clearTimeout(t),a.delete(e.id))}})},[r,i]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},M=E`
2from {
3  transform: scale(0) rotate(45deg);
4	opacity: 0;
5}
6to {
7 transform: scale(1) rotate(45deg);
8  opacity: 1;
9}`,U=E`
10from {
11  transform: scale(0);
12  opacity: 0;
13}
14to {
15  transform: scale(1);
16  opacity: 1;
17}`,k=E`
18from {
19  transform: scale(0) rotate(90deg);
20	opacity: 0;
21}
22to {
23  transform: scale(1) rotate(90deg);
24	opacity: 1;
25}`,$=h("div")`
26  width: 20px;
27  opacity: 0;
28  height: 20px;
29  border-radius: 10px;
30  background: ${e=>e.primary||"#ff4b4b"};
31  position: relative;
32  transform: rotate(45deg);
33
34  animation: ${M} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
35    forwards;
36  animation-delay: 100ms;
37
38  &:after,
39  &:before {
40    content: '';
41    animation: ${U} 0.15s ease-out forwards;
42    animation-delay: 150ms;
43    position: absolute;
44    border-radius: 3px;
45    opacity: 0;
46    background: ${e=>e.secondary||"#fff"};
47    bottom: 9px;
48    left: 4px;
49    height: 2px;
50    width: 12px;
51  }
52
53  &:before {
54    animation: ${k} 0.15s ease-out forwards;
55    animation-delay: 180ms;
56    transform: rotate(90deg);
57  }
58`,F=E`
59  from {
60    transform: rotate(0deg);
61  }
62  to {
63    transform: rotate(360deg);
64  }
65`,H=h("div")`
66  width: 12px;
67  height: 12px;
68  box-sizing: border-box;
69  border: 2px solid;
70  border-radius: 100%;
71  border-color: ${e=>e.secondary||"#e0e0e0"};
72  border-right-color: ${e=>e.primary||"#616161"};
73  animation: ${F} 1s linear infinite;
74`,j=E`
75from {
76  transform: scale(0) rotate(45deg);
77	opacity: 0;
78}
79to {
80  transform: scale(1) rotate(45deg);
81	opacity: 1;
82}`,G=E`
830% {
84	height: 0;
85	width: 0;
86	opacity: 0;
87}
8840% {
89  height: 0;
90	width: 6px;
91	opacity: 1;
92}
93100% {
94  opacity: 1;
95  height: 10px;
96}`,W=h("div")`
97  width: 20px;
98  opacity: 0;
99  height: 20px;
100  border-radius: 10px;
101  background: ${e=>e.primary||"#61d345"};
102  position: relative;
103  transform: rotate(45deg);
104
105  animation: ${j} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
106    forwards;
107  animation-delay: 100ms;
108  &:after {
109    content: '';
110    box-sizing: border-box;
111    animation: ${G} 0.2s ease-out forwards;
112    opacity: 0;
113    animation-delay: 200ms;
114    position: absolute;
115    border-right: 2px solid;
116    border-bottom: 2px solid;
117    border-color: ${e=>e.secondary||"#fff"};
118    bottom: 6px;
119    left: 6px;
120    height: 10px;
121    width: 6px;
122  }
123`,Z=h("div")`
124  position: absolute;
125`,K=h("div")`
126  position: relative;
127  display: flex;
128  justify-content: center;
129  align-items: center;
130  min-width: 20px;
131  min-height: 20px;
132`,z=E`
133from {
134  transform: scale(0.6);
135  opacity: 0.4;
136}
137to {
138  transform: scale(1);
139  opacity: 1;
140}`,V=h("div")`
141  position: relative;
142  transform: scale(0.6);
143  opacity: 0.4;
144  min-width: 20px;
145  animation: ${z} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
146    forwards;
147`,B=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?o.createElement(V,null,t):t:"blank"===r?null:o.createElement(K,null,o.createElement(H,{...n}),"loading"!==r&&o.createElement(Z,null,"error"===r?o.createElement($,{...n}):o.createElement(W,{...n})))},Q=h("div")`
148  display: flex;
149  align-items: center;
150  background: #fff;
151  color: #363636;
152  line-height: 1.3;
153  will-change: transform;
154  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
155  max-width: 350px;
156  pointer-events: auto;
157  padding: 8px 10px;
158  border-radius: 8px;
159`,Y=h("div")`
160  display: flex;
161  justify-content: center;
162  margin: 4px 10px;
163  color: inherit;
164  flex: 1 1 auto;
165  white-space: pre-line;
166`,q=o.memo(({toast:e,position:t,style:r,children:n})=>{let a=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=C()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[`
1670% {transform: translate3d(0,${-200*r}%,0) scale(.6); opacity:.5;}
168100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
169`,`
1700% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
171100% {transform: translate3d(0,${-150*r}%,-1px) scale(.6); opacity:0;}
172`];return{animation:t?`${E(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${E(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=o.createElement(B,{toast:e}),s=o.createElement(Y,{...e.ariaProps},y(e.message,e));return o.createElement(Q,{className:e.className,style:{...a,...r,...e.style}},"function"==typeof n?n({icon:i,message:s}):o.createElement(o.Fragment,null,i,s))});n=o.createElement,c.p=void 0,f=n,p=void 0,g=void 0;var X=({id:e,className:t,style:r,onHeightUpdate:n,children:a})=>{let i=o.useCallback(t=>{if(t){let r=()=>{n(e,t.getBoundingClientRect().height)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return o.createElement("div",{ref:i,className:t,style:r},a)},J=m`
173  z-index: 9999;
174  > * {
175    pointer-events: auto;
176  }
177`;e.s(["CheckmarkIcon",0,W,"ErrorIcon",0,$,"LoaderIcon",0,H,"ToastBar",0,q,"ToastIcon",0,B,"Toaster",0,({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:a,toasterId:i,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=R(r,i);return o.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(r=>{let i,s,l=r.position||t,c=u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}),d=(i=l.includes("top"),s=l.includes("center")?{justifyContent:"center"}:l.includes("right")?{justifyContent:"flex-end"}:{},{left:0,right:0,display:"flex",position:"absolute",transition:C()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${c*(i?1:-1)}px)`,...i?{top:0}:{bottom:0},...s});return o.createElement(X,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?J:"",style:d},"custom"===r.type?y(r.message,r):a?a(r):o.createElement(q,{toast:r,position:l}))}))},"default",0,x,"resolveValue",0,y,"toast",0,x,"useToaster",0,R,"useToasterStore",0,S],576090)},389054,(e,t,r)=>{t.exports=e.r(731764)},188315,e=>{"use strict";var t=e.i(137364);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...o,width:n,height:n,stroke:e,strokeWidth:i?24*Number(a)/Number(n):a,className:r("lucide",s),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,o)=>{let i=(0,t.forwardRef)(({className:i,...s},l)=>(0,t.createElement)(a,{ref:l,iconNode:o,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s}));return i.displayName=n(e),i}],188315)},576074,e=>{"use strict";let t="Get 40 a day.";e.s(["FREE_ACCOUNT_DAILY_LIMIT",0,40,"guestLimitReachedCopy",0,function(e,r){return{description:"A free account continues with 40 a day.",escape:"You can wait for the daily reset.",title:`Today's ${e} free ${r} are used.`,triggerLabel:t}},"guestRewriteMilestoneCopy",0,{description:"A free account gets 40 a day, starting now.",title:"That was rewrite 10 today.",triggerLabel:t},"guestRewritePreviewCopy",0,{ctaLabel:t,description:"Guests get 10 a day.",eyebrow:"Free account",title:"A free account gets 40 rewrites a day."},"guestSignupPageCopy",0,{subtitle:"Guests get 10 a day. A free account gets 40. No card.",title:"Get 40 rewrites a day."}])},611251,e=>{"use strict";var t=e.i(137364);let r=(0,t.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}
177),n=t.forwardRef((e,n)=>{let{alt:o,color:a,size:i,weight:s,mirrored:l,children:c,weights:u,...d}=e,{color:m="currentColor",size:f,weight:p="regular",mirrored:g=!1,...E}=t.useContext(r);return t.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:null!=i?i:f,height:null!=i?i:f,fill:null!=a?a:m,viewBox:"0 0 256 256",transform:l||g?"scale(-1, 1)":void 0,...E,...d},!!o&&t.createElement("title",null,o),c,u.get(null!=s?s:p))});n.displayName="IconBase",e.s(["default",0,n],611251)},678511,e=>{"use strict";var t,r=((t={}).ERROR="Error",t.REWRITE="Rewrite",t.FEATURE_SELECTED="Feature Selected",t.PWA_INSTALL_CLICKED="PWA Install Clicked",t.PWA_INSTALL_COMPLETED="PWA Install Completed",t.PWA_DISMISSED="PWA Dismissed",t.ACCOUNT_SIGNED_UP="Account Signed Up",t.ACCOUNT_SIGNED_IN="Account Signed In",t.ACCOUNT_SIGNED_OUT="Account Signed Out",t.SIGNUP_PROMPT_SHOWN="Signup Prompt Shown",t.SIGNUP_PROMPT_DISMISSED="Signup Prompt Dismissed",t.SIGNUP_PROMPT_CTA_CLICKED="Signup Prompt CTA Clicked",t.INLINE_SIGNUP_STARTED="Inline Signup Started",t.INLINE_SIGNUP_COMPLETED="Inline Signup Completed",t.INLINE_SIGNUP_FAILED="Inline Signup Failed",t.SIGNUP_ONE_TAP_ELIGIBLE="Signup One Tap Eligible",t.SIGNUP_ONE_TAP_FAILED="Signup One Tap Failed",t.QUOTA_GATE_SHOWN="Quota Gate Shown",t.QUOTA_GATE_CTA_CLICKED="Quota Gate CTA Clicked",t.EXPLAIN="Explain",t.DOCUMENT_CREATED="Document Created",t.DOCUMENT_OPENED="Document Opened",t.DOCUMENT_UPDATED="Document Updated",t.DOCUMENT_DELETED="Document Deleted",t.DOCUMENT_EXPORTED="Document Exported",t.AI_ACTION_TRIGGERED="AI Action Triggered",t.DOCUMENT_CHARACTER_LIMIT_REACHED="Document Character Limit Reached",t.AI_ACTION_COMPLETED="AI Action Completed",t.AI_ACTION_ACCEPTED="AI Action Accepted",t.AI_ACTION_REJECTED="AI Action Rejected",t.AI_HUNK_KEPT="AI Hunk Kept",t.AI_HUNK_DISCARDED="AI Hunk Discarded",t.AI_CHANGES_PARTIAL_ACCEPT="AI Changes Partial Accept",t.AI_DETECTOR_CHECK_STARTED="AI Detector Check Started",t.AI_DETECTOR_CHECK_COMPLETED="AI Detector Check Completed",t.AI_DETECTOR_CHECK_FAILED="AI Detector Check Failed",t.AI_DETECTOR_HUMANIZER_OPENED="AI Detector Humanizer Opened",t.TOOL_INTERACTION="Tool Interaction",t.FOUNDING_OFFER_SHOWN="Founding Offer Shown",t.UPGRADE_CTA_CLICKED="Upgrade CTA Clicked",t.CHECKOUT_STARTED="Checkout Started",t.PURCHASE_COMPLETED="Purchase Completed",t);e.s(["TrackingEvents",()=>r])},563012,e=>{"use strict";var t=e.i(137364);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),t.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);e.s(["default",0,r])},361066,e=>{"use strict";var t=Object.defineProperty,r=(e,r)=>t(e,"name",{value:r,configurable:!0}),n=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return r(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function a(e){if(!n)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function i(e){return"IFRAME"===e.tagName}r(o,"composeEventHandlers"),r(function(e){if(!n)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),r(a,"getOwnerDocument"),r(function e(t,r=!1){let{activeElement:n}=a(t);if(!n?.nodeName)return null;if(i(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=a(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),r(i,"isFrame"),e.s(["composeEventHandlers",0,o])},504798,e=>{"use strict";var t=e.i(137364),r=e.i(384108),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function a(e,n=[]){let s=[];function l(n,a){let i=t.createContext(a);i.displayName=n+"Context";let l=s.length;s=[...s,a];let c=o(n=>
177{let{scope:o,children:a,...s}=n,c=o?.[e]?.[l]||i,u=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(c.Provider,{value:u,children:a})},"Provider");function u(r,o,s={}){let{optional:c=!1}=s,d=o?.[e]?.[l]||i,m=t.useContext(d);if(m)return m;if(void 0!==a)return a;if(!c)throw Error(`\`${r}\` must be used within \`${n}\``)}return c.displayName=n+"Provider",o(u,"useContext"),[c,u]}o(l,"createContext");let c=o(()=>{let r=s.map(e=>t.createContext(e));return o(function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return c.scopeName=e,[l,i(c,...n)]}function i(...e){let r=e[0];if(1===e.length)return r;let n=o(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=r.scopeName,n}o(function(e,n){let a=t.createContext(n);a.displayName=e+"Context";let i=o(e=>{let{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(a.Provider,{value:i,children:n})},"Provider");function s(r,o={}){let{optional:i=!1}=o,l=t.useContext(a);if(l)return l;if(void 0!==n)return n;if(!i)throw Error(`\`${r}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",o(s,"useContext"),[i,s]},"createContext"),o(a,"createContextScope"),o(i,"composeContextScopes"),e.s(["createContextScope",0,a])},264895,e=>{"use strict";var t=e.i(137364),r=e.i(379403),n=e.i(71439),o=e.i(384108),a=Object.defineProperty,i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let a=(0,n.createSlot)(`Primitive.${r}`),i=t.forwardRef((e,t)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(n?a:r,{...i,ref:t})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function s(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}a(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,i,"dispatchDiscreteCustomEvent",0,s])},560498,e=>{"use strict";var t=e.i(137364);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}(0,Object.defineProperty)(r,"name",{value:"useCallbackRef",configurable:!0}),e.s(["useCallbackRef",0,r])},603611,e=>{"use strict";var t=e.i(137364),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},262860,e=>{"use strict";var t=e.i(137364),r=e.i(603611),n=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),a=0;function i(e){let[n,i]=t.useState(o());return(0,r.useLayoutEffect)(()=>{e||i(e=>e??String(a++))},[e]),e||(n?`radix-${n}`:"")}n(i,"name",{value:"useId",configurable:!0}),e.s(["useId",0,i])},216202,e=>{"use strict";var t=e.i(137364),r=e.i(603611),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function a(e,r){return t.useReducer((e,t)=>r[e][t]??e,e)}o(a,"useStateMachine");var i=o(e=>{let{present:r,children:n}=e,o=s(r),a="function"==typeof n?n({present:o.isPresent}):t.Children.only(n),i=c(o.ref,d(a));return"function"==typeof n||o.isPresent?t.cloneElement(a,{ref:i}):null},"Presence");function s(e){let[n,i]=t.useState(),s=t.useRef(null),l=t.useRef(e),c=t.useRef("none"),d=t.useRef(void 0),[m,f]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===m?(c.current=d.current??u(s.current),d.current=void 0):c.current="none"},[m]),(0,r.useLayoutEffect)(()=>{let t=s.current,r=l.current;if(r!==e){let n=c.current,o=u(t);e?(d.current=o,f("MOUNT")):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,r.useLayoutEffect)(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=o(r=>{let o=u(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(f("ANIMATION_END"),!l.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},"handleAnimationEnd"),a=o(e=>{e.target===n&&(c.current=u(s.current))},"handleAnimationStart");return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}f("ANIMATION_END")},[n,f]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,d.current=u(t)}else s.current=null;i(e)},[])}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){let r=t.useRef(e);return r.current=e,t.useCallback(e=>{let t=r.current,n=!1,o=t.map(t=>{let r=l(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){let r=o[e];"function"==typeof r?r():l(t[e],null)}}},[])}function u(e){return e?.animationName||"none"}function d(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}o(s,"usePresence"),o(l,"setRef"),o(c,"useStableComposedRefs"),o(u,"getAnimationName"),o(d,"getElementRef"),e.s(["Presence",0,i])},609818,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},399404,e=>{"use strict";var t=e.i(137364),r=e.i(609818),n=e.i(603611),o=Object.defineProperty,a=t[" useEffectEvent ".trim().toString()],i=t[" useInsertionEffect ".trim().toString()];function s(e){if("function"==typeof a)return a(e);let r=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof i?i(()=>{r.current=e}):(0,n.useLayoutEffect)(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}o(s,"name",{value:"useEffectEvent",configurable:!0});var l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0}),u=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;function d({prop:e,defaultProp:n,onChange:o=c(()=>{},"onChange"),caller:a}){let[i,s,l]=m({defaultProp:n,onChange:o}),u=void 0!==e,p=u?e:i;if(r.IS_DEVELOPMENT){let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=u},[u,a])}return[p,t.useCallback(t=>{if(u){let r=f(t)?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}function m({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),a=t.useRef(n),i=t.useRef(r);return u(()=>{i.current=r},[r]),t.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,o,i]}function f(e){return"function"==typeof e}c(d,"useControllableState"),c(m,"useUncontrolledState"),c(f,"isFunction");var p=Symbol("RADIX:SYNC_STATE");c(function(e,n,o,a){let{prop:i,defaultProp:l,onChange:c,caller:u}=n,d=void 0!==i,m=s(c);if(r.IS_DEVELOPMENT){let e=t.useRef(void 0!==i);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${u} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,u])}let f=[{...o,state:l}];a&&f.push(a);let[g,E]=t.useReducer((t,r)=>{if(r.type===p)return{...t,state:r.state};let n=e(t,r);return d&&!Object.is(n.state,t.state)&&m(n.state),n},...f),h=g.state,y=t.useRef(h);t.useEffect(()=>{y.current!==h&&(y.current=h,d||m(h))},[h,y,d]);let v=t.useMemo(()=>void 0!==i?{...g,state:i}:g,[g,i]);return t.useEffect(()=>{d&&!Object.is(i,g.state)&&E({type:p,state:i})},[i,g.state,d]),[v,E]},"useControllableStateReducer"),e.s(["useControllableState",0,d],399404)},644941,e=>{"use strict";var t=e.i(137364);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),t.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]);e.s(["default",0,r])},880625,e=>{"use strict";var t=e.i(678511);t.TrackingEvents.FOUNDING_OFFER_SHOWN,t.TrackingEvents.UPGRADE_CTA_CLICKED,t.TrackingEvents.CHECKOUT_STARTED,t.TrackingEvents.PURCHASE_COMPLETED,e.s(["billingInteractionProperties",0,function(e){return{auth_state:e.authState,...e.billingInterval?{billing_interval:e.billingInterval}:{},deployment_environment:function(e){if(!e)return"unknown";try{let t=new URL(e).hostname.toLowerCase();if("rewritepal.com"===t||"www.rewritepal.com"===t)return"production";if("localhost"===t||"127.0.0.1"===t||"[::1]"===t)return"local";if(t.endsWith(".up.railway.app"))return"staging"}catch{}return"unknown"}(e.appUrl??window.location.href),...e.plan?{plan:e.plan}:{},...e.priceCohort?{price_cohort:e.priceCohort}:{},surface:e.surface}}])},81389,e=>{"use strict";async function t(e){let t;try{t=await e.clone().json()}catch{return null}return r(t)?t:null}function r(e){return!!e&&"object"==typeof e&&("login_required"===e.error||"daily_limit_exceeded"===e.error||"rate_limit_exceeded"===e.error||"concurrency_limit_exceeded"===e.error)&&"string"==typeof e.message&&"number"==typeof e.limit&&"number"==typeof e.used&&"number"==typeof e.remaining&&"string"==typeof e.resetAt}e.s(["formatQuotaErrorMessage",0,function(e){var t;if("login_required"===e.error)return`${e.message} A free account gets 40 rewrites a day.`;if("concurrency_limit_exceeded"===e.error)return e.message;if("rate_limit_exceeded"===e.error){let t=e.retryAfter??1;return`${e.message} Try again in ${t} ${1===t?"second":"seconds"}.`}return`${e.message} Resets ${t=e.resetAt,new Intl.DateTimeFormat("en-US",{day:"numeric",month:"short",timeZone:"UTC",year:"numeric"}).format(new Date(t))}.`},"formatResetCountdown",0,function(e,t=new Date){let r=Date.parse(e);if(!Number.isFinite(r))return"Resets daily";let n=Math.max(0,Math.ceil((r-t.getTime())/6e4));if(0===n)return"Resets soon";let o=Math.floor(n/60),a=n%60;return 0===o?`Resets in ${a}m`:0===a?`Resets in ${o}h`:`Resets in ${o}h ${a}m`},"isWebQuotaError",0,r,"parseWebQuotaError",0,function(e){let t;try{t=JSON.parse(e.message)}catch{return null}return r(t)?t:null},"readWebQuotaErrorResponse",0,t])}]);
178
179//# chunkId=01a0ed7a-8c5f-7dd0-8cfe-53f93dec5525

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.