PageSourceSearch

https://luxescale-i1.vercel.app/_next/static/chunks/1380w7z~a13dz.js

js luxescale-i1.vercel.app collected 2026-10-03 07:15:51 UTC 45,174 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73924,(e,t,r)=>{},5212,(e,t,r)=>{var a=e.i(90954);e.r(73924);var n=e.r(73576),i=n&&"object"==typeof n&&"default"in n?n:{default:n},s=void 0!==a.default&&a.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,r=t.name,a=void 0===r?"stylesheet":r,n=t.optimizeForSpeed,i=void 0===n?s:n;u(l(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(l(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(a){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];u(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
1typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(l(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return r?n.insertBefore(a,r):n.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),a=e+r;return d[a]||(d[a]="jsx-"+c(e+"-"+r)),d[a]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,a=void 0===r?null:r,n=t.optimizeForSpeed,i=void 0!==n&&n;this._sheet=a||new o({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),a&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),a=r.styleId,n=r.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var i=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=i,this._instancesCounts[a]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var a=this._fromServer&&this._fromServer[r];a?(a.parentNode.removeChild(a),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],a=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,a=e.id;if(r){var n=h(a,r);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return f(n,e)}):[f(n,t)]}}return{styleId:h(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=n.createContext(null);function v(){return new m}function g(){return n.useContext(p)}p.displayName="StyleSheetContext";var x=i.default.useInsertionEffect||i.default.useLayoutEffect,y="u">typeof window?v():void 0;function b(e){var t=y||g();return t&&("u"<typeof window?t.add(e):x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,a=n.useContext(p),s=n.useState(function(){return a||t||v()})[0];return i.default.createElement(p.Provider,{value:s},r)},r.createStyleRegistry=v,r.style=b,r.useStyleRegistry=g},75368,(e,t,r)=>{t.exports=e.r(5212).style},25661,(e,t,r)=>{"use strict";var a=e.r(73576),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useState,s=a.useEffect,l=a.useLayoutEffect,o=a.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=i({inst:{value:r,getSnapshot:t}}),n=a[0].inst,c=a[1];return l(function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})},[e,r,t]),s(function(){return u(n)&&c({inst:n}),e(function(){u(n)&&c({inst:n})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:c},56032,(e,t,r)=>{"use strict";
1t.exports=e.r(25661)},90091,e=>{"use strict";let t;var r=e.i(76350),a=e.i(73576);let n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),i=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 s={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 l=(0,a.createContext)({}),o=(0,a.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:i,className:o="",children:u,iconNode:c,...d},h)=>{let{size:f=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:v="currentColor",className:g=""}=(0,a.useContext)(l)??{},x=i??p?24*Number(r??m)/Number(t??f):r??m;return(0,a.createElement)("svg",{ref:h,...s,width:t??f??s.width,height:t??f??s.height,stroke:e??v,strokeWidth:x,className:n("lucide",g,o),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(u)?u:[u]])}),u=(e,t)=>{let r=(0,a.forwardRef)(({className:r,...s},l)=>(0,a.createElement)(o,{ref:l,iconNode:t,className:n(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...s}));return r.displayName=i(e),r},c=u("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),d=u("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),h=u("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]),f=u("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),m=u("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);var p=e.i(75368);function v({label:e,hint:t,min:n,max:i,step:s,value:l,onChange:o,displayValue:u,accent:c="orange"}){let d=(0,a.useId)(),h=(l-n)/(i-n)*100,f="gold"===c?"var(--gold)":"var(--primary)";return(0,r.jsxs)("div",{className:"jsx-fa61ee701313430e w-full",children:[(0,r.jsxs)("div",{className:"jsx-fa61ee701313430e mb-2 flex items-end justify-between gap-3",children:[(0,r.jsx)("label",{htmlFor:d,className:"jsx-fa61ee701313430e font-heading text-sm font-medium uppercase tracking-wide text-foreground",children:e}),(0,r.jsx)("span",{style:{color:f},className:"jsx-fa61ee701313430e font-heading text-2xl font-bold tabular-nums leading-none",children:u})]}),(0,r.jsx)("input",{id:d,type:"range",min:n,max:i,step:s,value:l,onChange:e=>o(Number(e.target.value)),style:{"--pct":`${h}%`,"--fill":f},"aria-describedby":t?`${d}-hint`:void 0,className:"jsx-fa61ee701313430e luxe-range"}),t?(0,r.jsx)("p",{id:`${d}-hint`,className:"jsx-fa61ee701313430e mt-2 text-base leading-relaxed text-foreground",children:t}):null,(0,r.jsx)(p.default,{id:"fa61ee701313430e",children:".luxe-range.jsx-fa61ee701313430e{appearance:none;cursor:pointer;background:linear-gradient(to right, var(--fill) 0%, var(--fill) var(--pct), #ffffff1a var(--pct), #ffffff1a 100%);border-radius:999px;outline:none;width:100%;height:8px}.luxe-range.jsx-fa61ee701313430e::-webkit-slider-thumb{appearance:none;border:3px solid var(--fill);background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .12s;box-shadow:0 0 0 4px #fb400b2e,0 6px 16px #00000080}.luxe-range.jsx-fa61ee701313430e::-webkit-slider-thumb:active{transform:scale(1.15)}.luxe-range.jsx-fa61ee701313430e::-moz-range-thumb{border:3px solid var(--fill);background:#fff;border-radius:50%;width:24px;height:24px;box-shadow:0 0 0 4px #fb400b2e,0 6px 16px #00000080}"})]})}function g({value:e,duration:t=900,format:n,className:i}){let[s,l]=(0,a.useState)(e),o=(0,a.useRef)(e),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let r=o.current;if(r===e)return;let a=performance.now(),n=i=>{let s=Math.min(1,(i-a)/t);l(r+(e-r)*(1===s?1:1-Math.pow(2,-10*s))),s<1?u.current=requestAnimationFrame(n):o.current=e};return u.current=requestAnimationFrame(n),()=>{u.current&&cancelAnimationFrame(u.current),o.current=e}},[e,t]),(0,r.jsx)("span",{className:i,children:n?n(s):Math.round(s).toLocaleStr
1ing()})}let x={900:{value:112e4,area:"Los Angeles, CA"},902:{value:124e4,area:"Beverly Hills / Inglewood, CA"},904:{value:168e4,area:"Santa Monica / West LA, CA"},906:{value:98e4,area:"Long Beach, CA"},907:{value:94e4,area:"Long Beach, CA"},908:{value:96e4,area:"Long Beach, CA"},910:{value:105e4,area:"Pasadena, CA"},917:{value:82e4,area:"City of Industry, CA"},919:{value:89e4,area:"San Diego (North County), CA"},920:{value:116e4,area:"San Diego, CA"},921:{value:119e4,area:"San Diego, CA"},922:{value:64e4,area:"Palm Springs / Indio, CA"},923:{value:56e4,area:"San Bernardino, CA"},925:{value:69e4,area:"Riverside, CA"},926:{value:128e4,area:"Irvine / Newport Beach, CA"},927:{value:121e4,area:"Santa Ana, CA"},928:{value:126e4,area:"Anaheim / Orange County, CA"},930:{value:82e4,area:"Oxnard / Ventura, CA"},931:{value:132e4,area:"Santa Barbara, CA"},940:{value:172e4,area:"San Mateo / Peninsula, CA"},941:{value:158e4,area:"San Francisco, CA"},943:{value:21e5,area:"Palo Alto, CA"},945:{value:118e4,area:"Oakland / East Bay, CA"},949:{value:114e4,area:"North Bay / Marin, CA"},950:{value:156e4,area:"San Jose / Silicon Valley, CA"},951:{value:164e4,area:"San Jose, CA"},958:{value:62e4,area:"Sacramento, CA"},100:{value:145e4,area:"Manhattan, NY"},101:{value:14e5,area:"Manhattan, NY"},104:{value:62e4,area:"Bronx, NY"},112:{value:98e4,area:"Brooklyn, NY"},113:{value:72e4,area:"Queens, NY"},114:{value:7e5,area:"Queens, NY"},115:{value:64e4,area:"Long Island, NY"},117:{value:72e4,area:"Long Island (Suffolk), NY"},119:{value:126e4,area:"The Hamptons, NY"},"070":{value:56e4,area:"Newark / Jersey City, NJ"},"076":{value:72e4,area:"Bergen County, NJ"},"088":{value:52e4,area:"Central New Jersey"},"060":{value:64e4,area:"Fairfield County, CT"},"068":{value:78e4,area:"Greenwich / Stamford, CT"},"021":{value:89e4,area:"Boston, MA"},"024":{value:72e4,area:"Greater Boston, MA"},"026":{value:64e4,area:"Cape Cod, MA"},331:{value:64e4,area:"Miami, FL"},332:{value:69e4,area:"Miami Beach, FL"},334:{value:72e4,area:"Fort Lauderdale / Boca Raton, FL"},333:{value:7e5,area:"Fort Lauderdale, FL"},335:{value:48e4,area:"Tampa, FL"},336:{value:47e4,area:"Tampa Bay, FL"},337:{value:52e4,area:"Naples / Fort Myers, FL"},328:{value:46e4,area:"Orlando, FL"},327:{value:44e4,area:"Orlando, FL"},341:{value:61e4,area:"Naples / Marco Island, FL"},322:{value:43e4,area:"Jacksonville, FL"},750:{value:52e4,area:"Dallas, TX"},752:{value:56e4,area:"Dallas, TX"},760:{value:43e4,area:"Fort Worth, TX"},770:{value:42e4,area:"Houston, TX"},773:{value:4e5,area:"Houston, TX"},787:{value:61e4,area:"Austin, TX"},786:{value:56e4,area:"Austin, TX"},782:{value:36e4,area:"San Antonio, TX"},980:{value:82e4,area:"Seattle, WA"},981:{value:86e4,area:"Seattle, WA"},972:{value:62e4,area:"Portland, OR"},970:{value:59e4,area:"Portland, OR"},802:{value:72e4,area:"Denver, CO"},801:{value:69e4,area:"Denver, CO"},816:{value:145e4,area:"Aspen / Vail, CO"},836:{value:56e4,area:"Boise, ID"},850:{value:5e5,area:"Phoenix, AZ"},852:{value:54e4,area:"Scottsdale, AZ"},891:{value:48e4,area:"Las Vegas, NV"},894:{value:64e4,area:"Reno / Lake Tahoe, NV"},303:{value:48e4,area:"Atlanta, GA"},300:{value:47e4,area:"Atlanta, GA"},282:{value:43e4,area:"Charlotte, NC"},292:{value:46e4,area:"Charleston, SC"},372:{value:47e4,area:"Nashville, TN"},200:{value:72e4,area:"Washington, DC"},208:{value:78e4,area:"Bethesda / Montgomery, MD"},221:{value:76e4,area:"Northern Virginia"},191:{value:38e4,area:"Philadelphia, PA"},606:{value:42e4,area:"Chicago, IL"},604:{value:38e4,area:"Chicago (North Suburbs), IL"},481:{value:26e4,area:"Detroit, MI"},553:{value:38e4,area:"Minneapolis, MN"},441:{value:23e4,area:"Cleveland, OH"},432:{value:3e5,area:"Columbus, OH"}},y={0:{value:56e4,area:"Northeast U.S."},1:{value:52e4,area:"Northeast U.S."},2:{value:47e4,area:"Mid-Atlantic / Southeast U.S."},3:{value:43e4,area:"Southeast U.S."},4:{value:3e5,area:"Midwest U.S."},5:{value:33e4,area:"Upper Midwest U.S."},6:{value:32e4,area:"Central U.S."},7:{value:4e5,area:"South Central U.S."},8:{value:56e4,area:"Mountain West U.S."},9:{value:78e4,area:"West Coast U.S."}};function b(e){return/^\d{5}$/.test((e||"").replace(/\D/g,"").slice(0,5))}function w(e,t){return t?.compact&&Math.abs(e)>=1e3?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)}function S({projection:e}){let{grossAnnual:t,referralFeeAnnual:a,netAnnual:n}=e,i=Math.max(t,1);return(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsxs)("div",{className:"relative mx-auto flex h-[300px] w-full max-w-xl items-end justify-center gap-8 px-2 sm:gap-10 sm:px-0",style:{perspective:"1100px"},children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute bottom-8 left-1/2 h-40 w-[115%] -translate-x-1/2",style:{transform:"rotateX(72deg)",transformStyle:"preserve-3d",background:"radial-gradient(ellipse at center, rgba(251,64,11,0.16), transparent 70%)",borderRadius:"50%",filter:"blur(2px)"}}),[{key:"gross",label:"Gross Commission",value:t,pct:t/i*100,color:"rgba(245, 244, 242, 0.9)",face:"linear-gradient(180deg, #f5f4f2, #b9b7b2)",side:"#8f8d88"},{key:"referral",label:"LuxeScale Fee · 25%",value:a,pct:a/i*100,color:"#ff8a5c",face:"linear-gradient(180deg, #ff9a6b, #fb400b)",side:"#c2380a"},{key:"net",label:"Your NET Income · 75%",value:n,pct:n/i*100,color:"#fb400b",face:"linear-gradient(180deg, #d4380a, #7a1c04)",side:"#571302",hero:!0}].map((e,t)=>(0,r.jsxs)("div",{className:"relative flex h-full flex-col items-center justify-end",style:{transformStyle:"preserve-3d"},children:[(0,r.jsx)("div",{className:"mb-3 flex flex-col items-center",style:{transform:"translateZ(40px)"},children:(0,r.jsx)("span",{className:`font-heading font-bold tabular-nums leading-none ${e.hero?"text-xl sm:text-3xl":"text-base sm:text-xl"}`,style:{color:e.color},children:(0,r.jsx)(g,{value:e.value,format:e=>w(e,{compact:!0})})})}),(0,r.jsxs)("div",{className:"relative w-14 origin-bottom sm:w-20",style:{height:`${Math.max(e.pct,6)}%`,transform:"rotateX(6deg) rotateY(-20deg)",transformStyle:"preserve-3d",animation:`luxe-rise 0.7s cubic-bezier(0.22,1,0.36,1) ${.12*t}s both`,transition:"height 0.6s cubic-bezier(0.22,1,0.36,1)"},children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-t-md",style:{background:e.face,boxShadow:e.hero?"0 0 34px 2px rgba(251,64,11,0.55)":"0 10px 30px rgba(0,0,0,0.45)"}}),(0,r.jsx)("div",{className:"absolute right-0 top-0 h-full w-3 origin-right rounded-tr-md sm:w-4",style:{background:e.side,transform:"rotateY(90deg) translateZ(6px)"}}),(0,r.jsx)("div",{className:"absolute -top-2 left-0 h-3 w-full rounded-sm",style:{background:e.side,transform:"rotateX(90deg) translateZ(6px)",opacity:.9}})]}),(0,r.jsx)("span",{className:"mt-3 flex h-8 w-16 items-start justify-center text-balance text-center font-heading text-[10px] font-medium uppercase leading-tight tracking-wide text-foreground sm:w-24 sm:text-xs",children:e.label})]},e.key))]})})}function j({svgPath:e,viewHeight:t,zip:a,label:n,glow:i=!0,className:s}){return(0,r.jsxs)("div",{className:`relative ${s??""}`,children:[i&&(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 blur-2xl",style:{background:"radial-gradient(circle, rgba(251,64,11,0.55), transparent 68%)"}}),(0,r.jsxs)("svg",{viewBox:`-6 -6 112 ${t+12}`,className:"h-full w-full overflow-visible drop-shadow-[0_18px_40px_rgba(0,0,0,0.6)]",role:"img","aria-label":n?`Territory boundary for ${n}`:"Territory boundary",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"terr-fill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"rgba(251,64,11,0.42)"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"rgba(251,64,11,0.14)"})]}),(0,r.jsxs)("linearGradient",{id:"terr-stroke",x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#ff8a5c"}),(0,r.jsx)("stop",{offset:"55%",stopColor:"#fb400b"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#e8b04b"})]}
1),(0,r.jsx)("pattern",{id:"terr-grid",width:"7",height:"7",patternUnits:"userSpaceOnUse",children:(0,r.jsx)("path",{d:"M7 0H0V7",fill:"none",stroke:"rgba(245,244,242,0.14)",strokeWidth:"0.4"})}),(0,r.jsx)("clipPath",{id:"terr-clip",children:(0,r.jsx)("path",{d:e})})]}),(0,r.jsx)("path",{d:e,fill:"url(#terr-fill)"}),(0,r.jsx)("rect",{x:"-6",y:"-6",width:"112",height:t+12,fill:"url(#terr-grid)",clipPath:"url(#terr-clip)"}),(0,r.jsx)("path",{d:e,fill:"none",stroke:"url(#terr-stroke)",strokeWidth:"1.6",strokeLinejoin:"round",style:{filter:"drop-shadow(0 0 6px rgba(251,64,11,0.9))"}})]}),a&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",children:(0,r.jsx)("span",{className:"rounded-md border border-primary/40 bg-background/70 px-2 py-0.5 font-heading text-[0.7em] font-bold uppercase tracking-widest text-primary backdrop-blur-sm",children:a})})]})}function _({zip:e,onZipChange:t,winRate:n,commissionRate:i,onWinRateChange:s,onCommissionRateChange:l,location:o,locationLoading:u,boundary:p}){let C=b(e),k=(0,a.useMemo)(()=>C?function(e){let t=function(e){let t=(e||"").replace(/\D/g,"").slice(0,5);if(t.length<5)return null;let r=x[t.slice(0,3)];if(r)return{medianHomeValue:r.value,area:r.area,precision:"metro"};let a=y[t[0]];return a?{medianHomeValue:a.value,area:a.area,precision:"region"}:{medianHomeValue:42e4,area:"United States",precision:"national"}}(e.zip);if(!t)return null;let r=t.medianHomeValue,a=3*r,n=Math.round(36*e.winRate),i=a*e.commissionRate,s=i*n;return{territory:t,medianHomeValue:r,avgSaleValue:a,appointmentsPerYear:36,listingsWonPerYear:n,grossCommissionPerListing:i,grossAnnual:s,referralFeeAnnual:.25*s,netAnnual:.75*s,netPerListing:.75*i}}({zip:e,winRate:n,commissionRate:i}):null,[e,n,i,C]),R=o?.label??k?.territory.area??"";return(0,r.jsxs)("section",{id:"calculator",className:"relative w-full overflow-hidden bg-background",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"luxe-grid pointer-events-none absolute inset-0"}),(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -top-24 left-1/2 h-72 w-72 -translate-x-1/2 rounded-full",style:{background:"radial-gradient(circle, rgba(251,64,11,0.22), transparent 70%)"}}),(0,r.jsxs)("div",{className:"relative mx-auto max-w-6xl px-4 py-12 sm:px-6 sm:py-16",children:[(0,r.jsxs)("div",{className:"mx-auto mb-10 max-w-2xl text-center",children:[(0,r.jsxs)("h2",{className:"text-balance font-heading text-4xl font-bold uppercase leading-[0.95] tracking-tight sm:text-6xl",children:["Now Run",(0,r.jsx)("span",{className:"mt-1 block text-primary",children:"The Numbers"})]}),(0,r.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-pretty leading-relaxed text-foreground",children:"Drop in your ZIP code again, then tell us how well you convert, and watch your potential annual commission update in real time."})]}),(0,r.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]",children:[(0,r.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-6 shadow-2xl sm:p-8",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("label",{htmlFor:"calc-zip",className:"sr-only",children:"Your territory ZIP code"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(f,{className:"pointer-events-none absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-primary"}),(0,r.jsx)("input",{id:"calc-zip",inputMode:"numeric",maxLength:5,value:e,onChange:e=>t(e.target.value.replace(/\D/g,"").slice(0,5)),placeholder:"Enter ZIP Code",className:"w-full rounded-xl border border-input bg-secondary/50 py-4 px-4 text-center font-heading text-2xl font-bold tracking-[0.3em] text-foreground outline-none transition placeholder:text-foreground placeholder:tracking-[0.2em] focus:border-primary focus:ring-2 focus:ring-primary/40"})]}),!C&&e.length>0&&(0,r.jsx)("p",{className:"mt-2 text-center text-sm text-primary",children:"Enter a valid 5-digit ZIP code."})]}),C&&(0,r.jsxs)("div",{className:"mb-8 flex items-center gap-4 roun
1ded-xl border border-primary/20 bg-secondary/50 p-4",children:[(0,r.jsx)("div",{className:"h-16 w-16 shrink-0",children:p?(0,r.jsx)(j,{svgPath:p.svgPath,viewHeight:p.viewHeight,glow:!1}):(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-lg border border-primary/30 bg-primary/10",children:(0,r.jsx)(f,{className:"h-6 w-6 text-primary"})})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"font-heading text-[10px] font-semibold uppercase tracking-widest text-foreground",children:"Active Territory"}),(0,r.jsx)("p",{className:"truncate font-heading text-xl font-bold uppercase text-foreground",children:u?"Locating…":R||`ZIP ${e}`}),(0,r.jsxs)("p",{className:"text-sm text-foreground",children:["ZIP ",e,k&&(0,r.jsxs)(r.Fragment,{children:[" · ","Median"," ",(0,r.jsx)("span",{className:"text-foreground",children:w(k.medianHomeValue,{compact:!0})})]})]})]})]}),(0,r.jsx)("div",{className:"mb-8",children:(0,r.jsx)(v,{label:"How Well Do You Convert Listing Appointments & Buyer Consultations?",min:10,max:100,step:5,value:Math.round(100*n),onChange:e=>s(e/100),displayValue:`${Math.round(100*n)}%`,hint:"Our members convert at higher rates. Be conservative. What percentage of your opportunities do you typically convert into signed listings and buyer broker agreements?"})}),(0,r.jsx)("div",{children:(0,r.jsx)(v,{label:"Your Average Commission (Single-Side)",accent:"gold",min:1.5,max:4,step:.1,value:100*i,onChange:e=>l(e/100),displayValue:`${(100*i).toFixed(1)}%`,hint:(0,r.jsxs)(r.Fragment,{children:["The commission rate you typically earn on a single-side of a transaction (buyer or seller)."," ",(0,r.jsx)("em",{children:"All commissions are negotiable."})]})})}),(0,r.jsxs)("div",{className:"mt-8 rounded-xl border border-border bg-secondary/60 p-4",children:[(0,r.jsx)("p",{className:"mb-3 font-heading text-xs font-semibold uppercase tracking-widest text-foreground",children:"Program Assumptions"}),(0,r.jsxs)("ul",{className:"space-y-2 text-sm text-foreground",children:[(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)(h,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,r.jsxs)("span",{children:["We deliver ",(0,r.jsxs)("span",{className:"text-foreground",children:[6,"+ luxury client appointments"]})," each month (",72,"/yr)."]})]}),(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)(m,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,r.jsxs)("span",{children:["For model purposes, let's say only"," ",(0,r.jsx)("span",{className:"text-foreground",children:"half of those appointments take action"})," — decide to buy or sell (",3,"/mo)."]})]}),(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)(c,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,r.jsx)("span",{children:"Then we adjust based on your entered conversion rate."})]}),(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)(d,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,r.jsxs)("span",{children:["The model's average sale price is"," ",(0,r.jsxs)("span",{className:"text-foreground",children:[3,"× your area's median"]})," home value (luxury tier)."]})]}),(0,r.jsxs)("li",{className:"flex items-start gap-2",children:[(0,r.jsx)(c,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,r.jsxs)("span",{children:["A ",(0,r.jsx)("span",{className:"text-foreground",children:"25% referral fee"})," on the gross commission is paid to LuxeScale."]})]})]})]})]}),(0,r.jsx)("div",{id:"territory-socket",className:"relative flex flex-col rounded-2xl border border-primary/20 bg-card p-6 shadow-2xl sm:p-8",children:k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"font-heading text-xs font-semibold uppercase tracking-[0.2em] text-foreground",children:"Your Potential Annual Increased Income"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(g,{value:k.netAnnual,className:"luxe-money-text font-heading text-5xl font-bold tabular-nums sm:text-7xl",format:e=>w(e)})}),(0,r.jsxs)("p",{className:"mt-2 text-sm text-foreground",children:["from"," ",(0,r.jsxs)("span",{className:"text-foreground",children:[(0,r.jsx)(g,{value:k.listingsWonPerYear,format:e=>Math.round(e).toString()})," ","luxury transactions"]})," ","a year in ",R]})]}),(0,r.jsx)("div",{className:"my-6 h-px w-full bg-border"}),(0,r.jsx)(S,{projection:k}),(0,r.jsxs)("div",{className:"mt-10 grid grid-cols-3 gap-3",children:[(0,r.jsx)(N,{label:"Avg Sale Price",value:w(k.avgSaleValue,{compact:!0})}),(0,r.jsx)(N,{label:"Net / Transaction",value:w(k.netPerListing,{compact:!0})}),(0,r.jsx)(N,{label:"Transactions / Year",value:Math.round(k.listingsWonPerYear).toString()})]})]}):(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center py-16 text-center",children:[(0,r.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full border border-primary/30 bg-primary/10",style:{animation:"luxe-pulse-glow 2.6s ease-in-out infinite"},children:(0,r.jsx)(f,{className:"h-7 w-7 text-primary"})}),(0,r.jsx)("p",{className:"font-heading text-xl font-bold uppercase text-foreground",children:"Enter Your Territory"}),(0,r.jsx)("p",{className:"mt-2 max-w-xs text-sm text-foreground",children:"Add a valid 5-digit ZIP code above to unlock your personalized income projection."})]})})]}),(0,r.jsx)("p",{className:"mx-auto mt-8 max-w-2xl text-center text-xs italic leading-relaxed text-foreground",children:"Projections are illustrative estimates based on the assumptions above and area median home values, not a guarantee of income. Individual results depen
1d on effort, market conditions, and execution."})]})]})}function N({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-secondary/60 p-3 text-center",children:[(0,r.jsx)("p",{className:"font-heading text-lg font-bold tabular-nums text-foreground sm:text-xl",children:t}),(0,r.jsx)("p",{className:"mt-0.5 text-[10px] font-medium uppercase tracking-wide text-foreground sm:text-xs",children:e})]})}var C=e.i(56032);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],18486);var k=Object.prototype.hasOwnProperty;let R=new WeakMap,A=()=>{},E=A(),T=Object,F=e=>e===E,O=(e,t)=>({...e,...t}),L={},M={},I="undefined",P=typeof window!=I,z=typeof document!=I,V=P&&"Deno"in window,D=(e,t)=>{let r=R.get(e);return[()=>!F(t)&&e.get(t)||L,a=>{if(!F(t)){let n=e.get(t);t in M||(M[t]=n),r[5](t,O(n,a),n||L)}},r[6],()=>!F(t)&&t in M?M[t]:!F(t)&&e.get(t)||L]},$=!0,[W,U]=P&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[A,A],B={initFocus:e=>(z&&document.addEventListener("visibilitychange",e),W("focus",e),()=>{z&&document.removeEventListener("visibilitychange",e),U("focus",e)}),initReconnect:e=>{let t=()=>{$=!0,e()},r=()=>{$=!1};return W("online",t),W("offline",r),()=>{U("online",t),U("offline",r)}}},Y=!a.default.useId,H=!P||V,Z=H?a.useEffect:a.useLayoutEffect,q="u">typeof navigator&&navigator.connection,X=!H&&q&&(["slow-2g","2g"].includes(q.effectiveType)||q.saveData),G=new WeakMap,J=(e,t)=>e===`[object ${t}]`,K=0,Q=e=>{let t,r,a=typeof e,n=T.prototype.toString.call(e),i=J(n,"Date"),s=J(n,"RegExp"),l=J(n,"Object");if(T(e)!==e||i||s)t=i?e.toJSON():"symbol"==a?e.toString():"string"==a?JSON.stringify(e):""+e;else{if(t=G.get(e))return t;if(t=++K+"~",G.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=Q(e[r])+",";G.set(e,t)}if(l){t="#";let a=T.keys(e).sort();for(;!F(r=a.pop());)F(e[r])||(t+=r+":"+Q(e[r])+",");G.set(e,t)}}return t},ee=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Q(e):"",t]},et=0,er=()=>++et;async function ea(...e){let[t,r,a,n]=e,i=O({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{}),s=i.populateCache,l=i.rollbackOnError,o=i.optimisticData,u=i.throwOnError;if("function"==typeof r){let e=[];for(let a of t.keys())!/^\$(inf|sub)\$/.test(a)&&r(t.get(a)._k)&&e.push(a);return Promise.all(e.map(c))}return c(r);async function c(r){let n,[c]=ee(r);if(!c)return;let[d,h]=D(t,c),[f,m,p,v]=R.get(t),g=()=>{let e=f[c];return("function"==typeof i.revalidate?i.revalidate(d().data,r):!1!==i.revalidate)&&(delete p[c],delete v[c],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return g();let x=a,y=!1,b=er();m[c]=[b,0];let w=!F(o),S=d(),j=S.data,_=S._c,N=F(_)?j:_;if(w&&h({data:o="function"==typeof o?o(N,j):o,_c:N}),"function"==typeof x)try{x=x(N)}catch(e){n=e,y=!0}if(x&&"function"==typeof x.then){let e;if(x=await x.catch(e=>{n=e,y=!0}),b!==m[c][0]){if(y)throw n;return x}y&&w&&(e=n,"function"==typeof l?l(e):!1!==l)&&(s=!0,h({data:N,_c:E}))}if(s&&!y&&("function"==typeof s?h({data:s(x,N),error:E,_c:E}):h({data:x,error:E,_c:E})),m[c][1]=er(),Promise.resolve(g()).then(()=>{h({_c:E})}),y){if(u)throw n;return}return x}}let en=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},ei=(e,t)=>{if(!R.has(e)){let r=O(B,t),a=Object.create(null),n=ea.bind(E,e),i=A,s=Object.create(null),l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},o=(t,r,a)=>{e.set(t,r);let n=s[t];if(n)for(let e of n)e(r,a)},u=()=>{if(!R.has(e)&&(R.set(e,[a,Object.create(null),Object.create(null),Object.create(null),n,o,l]),!H)){let t=r.initFocus(setTimeout.bind(E,en.bind(E,a,0))),n=r.initReconnect(setTimeout.bind(E,en.bind(E,a,1)));i=()=>{t&&t(),n&&n(),R.delete(e)}}};return u(),[e,n,u,i]}return[e,R.get(e)[4]]},[es,el]=ei(new Map),eo=O({onLoadingSlow:A,onSuccess:A,onError:A,onErrorRetry:(e,t,r,a,n)=>{let i=r.errorRetryCount,s=n.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(F(i)||!(s>i))&&setTimeout(a,l,n)},onDiscarded:A,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:X?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:X?5e3:3e3,compare:function e(t,r){var a,n;if(t===r)return!0;
1if(t&&r&&(a=t.constructor)===r.constructor){if(a===Date)return t.getTime()===r.getTime();if(a===RegExp)return t.toString()===r.toString();if(a===Array){if((n=t.length)===r.length)for(;n--&&e(t[n],r[n]););return -1===n}if(!a||"object"==typeof t){for(a in n=0,t)if(k.call(t,a)&&++n&&!k.call(r,a)||!(a in r)||!e(t[a],r[a]))return!1;return Object.keys(r).length===n}}return t!=t&&r!=r},isPaused:()=>!1,cache:es,mutate:el,fallback:{}},{isOnline:()=>$,isVisible:()=>{let e=z&&document.visibilityState;return F(e)||"hidden"!==e}}),eu=(e,t)=>{let r=O(e,t);if(t){let{use:a,fallback:n}=e,{use:i,fallback:s}=t;a&&i&&(r.use=a.concat(i)),n&&s&&(r.fallback=O(n,s))}return r},ec=(0,a.createContext)({});var ed=e.i(18486);let eh=P&&window.__SWR_DEVTOOLS_USE__,ef=(eh?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,a)=>{let n=r&&((...e)=>{let[a]=ee(t),[,,,n]=R.get(es);if(a.startsWith("$inf$"))return r(...e);let i=n[a];return F(i)?r(...e):(delete n[a],i)});return e(t,n,a)});eh&&(window.__SWR_DEVTOOLS_REACT__=a.default);let em=()=>{},ep=em(),ev=(new WeakMap,a.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),eg={dedupe:!0},ex=Promise.resolve(E);ex.status="fulfilled",ex.value=E;let ey=()=>A;T.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(ec),n="function"==typeof t,i=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),s=(0,a.useMemo)(()=>n?i:eu(r,i),[n,r,i]),l=i&&i.provider,o=(0,a.useRef)(E);l&&!o.current&&(o.current=ei(l(s.cache||es),i));let u=o.current;return u&&(s.cache=u[0],s.mutate=u[1]),Z(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,a.createElement)(ec.Provider,O(e,{value:s}))},"defaultValue",{value:eo});let eb=(t=(e,t,r)=>{let{cache:n,compare:i,suspense:s,fallbackData:l,revalidateOnMount:o,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:h,keepPreviousData:f,strictServerPrefetchWarning:m}=r,[p,v,g,x]=R.get(n),[y,b]=ee(e),w=(0,a.useRef)(!1),S=(0,a.useRef)(!1),j=(0,a.useRef)(y),_=(0,a.useRef)(t),N=(0,a.useRef)(r),k=()=>N.current.isVisible()&&N.current.isOnline(),[A,T,L,M]=D(n,y),z=(0,a.useRef)({}).current,V=F(l)?F(r.fallback)?E:r.fallback[y]:l,$=(e,t)=>{for(let r in z)if("data"===r){if(!i(e[r],t[r])&&(!F(e[r])||!i(Q,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},W=!w.current,U=(0,a.useMemo)(()=>{let e=A(),r=M(),a=e=>{let r=O(e);return(delete r._k,(()=>{if(!y||!t||N.current.isPaused())return!1;if(W&&!F(o))return o;let e=F(V)?r.data:V;return F(e)||u})())?{isValidating:!0,isLoading:!0,...r}:r},n=a(e),i=e===r?n:a(r),s=n;return[()=>{let e=a(A());return $(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]},[n,y]),B=(0,C.useSyncExternalStore)((0,a.useCallback)(e=>L(y,(t,r)=>{$(r,t)||e()}),[n,y]),U[0],U[1]),q=p[y]&&p[y].length>0,X=B.data,G=F(X)?V&&"function"==typeof V.then?ev(V):V:X,J=B.error,K=(0,a.useRef)(G),Q=f?F(X)?F(K.current)?G:K.current:X:G,et=y&&F(G),en=(0,a.useRef)(null);H||(0,C.useSyncExternalStore)(ey,()=>(en.current=!1,en),()=>(en.current=!0,en));let ei=en.current;m&&ei&&!s&&et&&console.warn(`Missing pre-initiated data for serialized key "${y}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let es=!(!y||!t||N.current.isPaused())&&(!q||!!F(J))&&(W&&!F(o)?o:s?!F(G)&&u:F(G)||u),el=W&&es,eo=F(B.isValidating)?el:B.isValidating,eu=F(B.isLoading)?el:B.isLoading,ec=(0,a.useCallback)(async e=>{let t,a,n=_.current;if(!y||!n||S.current||N.current.isPaused())return!1;let s=!0,l=e||{},o=!g[y]||!l.dedupe,u=()=>Y?!S.current&&y===j.current&&w.current:y===j.current,c={isValidating:!1,isLoading:!1},d=()=>{T(c)},h=()=>{let e=g[y];e&&e[1]===a&&delete g[y]},f={isValidating:!0};F(A().data)&&(f.isLoading=!0);try{if(o&&(T(f),r.loadingTimeout&&F(A().data)&&setTimeout(()=>{s&&u()&&N.current.onLoadingSlow(y,r)},r.loadingTimeout),g[y]=[n(b),er()]),[t,a]=g[y],t=await t,o&&setTimeout(h,r.dedupingInterval),!g[y]||g[y][1]!==a)return o&&u()&&N.current.onDiscarded(y),!1;c.error=E;let e=v[y];if(!F(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return d(),o&&u()&&N.current.onDiscarded(y),!1;let l=A().data;c.data=i(l,t)?l:t,o&&u()&&N.current.onSuccess(t,y,r)}catch(r){h();let e=N.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,o&&u())&&(e.onError(r,y,e),(!0===t||"function"==typeof t&&t(r))&&(!N.current.revalidateOnFocus||!N.current.revalidateOnReconnect||k())&&e.onErrorRetry(r,y,e,e=>{let t=p[y];t&&t[0]&&t[0](ed.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0}))}return s=!1,d(),!0},[y,n]),eh=(0,a.useCallback)((...e)=>ea(n,j.current,...e),[]);if(Z(()=>{_.current=t,N.current=r,F(X)||(K.current=X)}),Z(()=>{var e;let t;if(!y)return;let r=ec.bind(E,eg),a=0;N.current.revalidateOnFocus&&(a=Date.now()+N.current.focusThrottleInterval);let n=(e=(e,t={})=>
1{if(e==ed.FOCUS_EVENT){let e=Date.now();N.current.revalidateOnFocus&&e>a&&k()&&(a=e+N.current.focusThrottleInterval,r())}else if(e==ed.RECONNECT_EVENT)N.current.revalidateOnReconnect&&k()&&r();else if(e==ed.MUTATE_EVENT)return ec();else if(e==ed.ERROR_REVALIDATE_EVENT)return ec(t)},(t=p[y]||(p[y]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(S.current=!1,j.current=y,w.current=!0,T({_k:b}),es&&!g[y])if(F(G)||H)r();else P&&typeof window.requestAnimationFrame!=I?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{S.current=!0,n()}},[y]),Z(()=>{let e;function t(){let t="function"==typeof c?c(A().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(d||N.current.isVisible())&&(h||N.current.isOnline())?ec(eg).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[c,d,h,y]),(0,a.useDebugValue)(Q),s){if(!Y&&H&&et)throw Error("Fallback data is required when using Suspense in SSR.");et&&(_.current=t,N.current=r,S.current=!1);let e=x[y];if(ev(!F(e)&&et?eh(e):ex),!F(J)&&et)throw J;let a=et?ec(eg):ex;!F(Q)&&et&&(a.status="fulfilled",a.value=!0),ev(a)}return{mutate:eh,get data(){return z.data=!0,Q},get error(){return z.error=!0,J},get isValidating(){return z.isValidating=!0,eo},get isLoading(){return z.isLoading=!0,eu}}},function(...e){let r,n=(r=(0,a.useContext)(ec),(0,a.useMemo)(()=>O(eo,r),[r])),[i,s,l]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],o=eu(n,l),u=t,{use:c}=o,d=(c||[]).concat(ef);for(let e=d.length;e--;)u=d[e](u);return u(i,s||o.fetcher||null,o)});async function ew(e){let t=await fetch(`https://api.zippopotam.us/us/${e}`);if(!t.ok)return null;let r=await t.json(),a=r?.places?.[0];if(!a)return null;let n=a["place name"],i=a["state abbreviation"];return{label:`${n}, ${i}`,city:n,state:i,lat:Number.parseFloat(a.latitude),lng:Number.parseFloat(a.longitude)}}async function eS(e){let t,r,a=new URLSearchParams({where:`ZCTA5='${e}'`,outFields:"ZCTA5",returnGeometry:"true",outSR:"4326",f:"geojson"}),n=await fetch(`https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/tigerWMS_Current/MapServer/2/query?${a.toString()}`);if(!n.ok)return null;let i=await n.json(),s=i?.features?.[0];if(!s?.geometry)return null;let{path:l,viewHeight:o}=function(e){if(!e.length)return{path:"",viewHeight:100};let t=e.map(e=>e[0]),r=e.map(e=>e[1]),a=Math.min(...t),n=Math.min(...r),i=Math.max(...r),s=Math.cos((n+i)/2*Math.PI/180)||1,l=(Math.max(...t)-a)*s||1e-6,o=i-n||1e-6,u=Math.max(20,Math.min(180,o/l*100)),c=e.map(([e,t])=>{let r=u-(t-n)/o*u;return`${((e-a)*s/l*100).toFixed(2)},${r.toFixed(2)}`});return{path:`M${c.join("L")}Z`,viewHeight:Number(u.toFixed(2))}}((t=s.geometry,r=[],(r="Polygon"===t.type?t.coordinates:t.coordinates.map(e=>e[0])).reduce((e,t)=>t.length>e.length?t:e,r[0]??[])));return l?{feature:s,svgPath:l,viewHeight:o}:null}e.s(["TerritorySequence",0,function(){let[e,t]=(0,a.useState)(""),[n,i]=(0,a.useState)(.6),[s,l]=(0,a.useState)(.025),{location:o,isLoading:u}=function(e){let t=b(e),{data:r,error:a,isLoading:n}=eb(t?["zip-location",e]:null,()=>ew(e),{revalidateOnFocus:!1,shouldRetryOnError:!1,dedupingInterval:6e4});return{location:r??null,isLoading:t&&n,notFound:t&&!n&&!a&&null===r}}(e),{boundary:c}=function(e){let t=b(e),{data:r,isLoading:a,error:n}=eb(t?["zcta-boundary",e]:null,()=>eS(e),{revalidateOnFocus:!1,shouldRetryOnError:!1,dedupingInterval:6e4});return{boundary:r??null,isLoading:t&&a,failed:t&&!a&&(!!n||null===r)}}(e);return(0,r.jsx)(_,{zip:e,onZipChange:t,winRate:n,commissionRate:s,onWinRateChange:i,onCommissionRateChange:l,location:o,locationLoading:u,boundary:c})}],90091)},92936,e=>{"use strict";var t=e.i(73576);e.s(["EmbedAutoHeight",0,function(){return(0,t.useEffect)(()=>{if(window.parent===window)return;let e=()=>{let e=Math.ceil(document.documentElement.scrollHeight);window.parent.postMessage({type:"ls:size",height:e},"*")};e(),window.addEventListener("load",e),window.addEventListener("resize",e);let t=new ResizeObserver(e);t.observe(document.body);let r=window.setInterval(e,500);return()=>{window.removeEventListener("load",e),window.removeEventListener("resize",e),t.disconnect(),window.clearInterval(r)}},[]),null}])}]);

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.