1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0aa01302-2bb9-2fa8-c508-d4421214c5c9")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3987277,2114806,9310586,e=>{"use strict";e.i(9370090);var t=e.i(6873267),n=e.i(8517897),r=e.i(8911830),i=e.i(3931259),l=e.i(7383711),o=e.i(6307050);e.i(6963404);var s=e.i(6600249),a=e.i(2675367);let c=(0,a.styled)("div").withConfig({displayName:"styles__ContentContainer",componentId:"sc-379bf4c4-0"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.newTheme.space.between("between-md"),paddingLeft:e.newTheme.space.padding("padding-4xl"),paddingRight:e.newTheme.space.padding("padding-4xl"),paddingBottom:e.newTheme.space.padding("padding-4xl")})),d=(0,a.styled)("div").withConfig({displayName:"styles__HeaderSection",componentId:"sc-379bf4c4-1"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",paddingTop:e.newTheme.space.padding("padding-xl"),paddingBottom:e.newTheme.space.padding("padding-5xl")})),u=(0,a.styled)("div").withConfig({displayName:"styles__QRSection",componentId:"sc-379bf4c4-2"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",padding:e.newTheme.space.padding("padding-5xl"),gap:e.newTheme.space.between("between-xl"),backgroundColor:e.newTheme.color["element/background/container"],borderRadius:e.newTheme.radius["radius-2xl"]})),h=(0,a.styled)("div").withConfig({displayName:"styles__QRCodeContainer",componentId:"sc-379bf4c4-3"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.newTheme.color["element/background/surface"],padding:e.newTheme.space.padding("padding-md")})),f=(0,r.forwardRef)(({title:e,subtitle:a,deeplinkUrl:f,onClose:m},g)=>{let p=(0,r.useRef)(null);(0,r.useImperativeHandle)(g,()=>({open:()=>{p.current?.open()},close:()=>{p.current?.close()}}),[]);let y=(0,r.useCallback)(()=>{p.current?.close()},[]);return(0,t.jsx)(s.SheetPartial,{ref:p,withPortal:!0,isModal:!0,closeOnClickOutside:!0,onClose:m,toolbar:(0,t.jsx)(o.ToolbarElevated,{actionLeft:(0,t.jsx)(i.default,{"aria-label":"Close",icon:"x-bold",onClick:y,color:"secondary",treatment:"ghost"})}),children:(0,t.jsxs)(c,{children:[(0,t.jsxs)(d,{children:[(0,t.jsx)(l.Heading.Md,{color:"on-surface",children:e}),(0,t.jsx)(l.Body.Md,{color:"on-surface-alternate",children:a})]}),(0,t.jsx)(u,{children:(0,t.jsx)(h,{children:(0,t.jsx)(n.QRCodeCanvas,{value:f,size:150})})})]})})});f.displayName="AppRedirectSheet",e.s(["AppRedirectSheet",0,f],2114806);let m=(0,a.styled)("div").withConfig({displayName:"styles__Root",componentId:"sc-5ee3ce4-0"})({display:"flex",flexDirection:"column",width:"100%"}),g=(0,a.styled)("div").withConfig({displayName:"styles__HeaderRow",componentId:"sc-5ee3ce4-1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.newTheme.space.between("between-md"),marginBottom:e.newTheme.space.between("between-md")})),p=(0,a.styled)("div").withConfig({displayName:"styles__NavGroup",componentId:"sc-5ee3ce4-2"})(({theme:e})=>({display:"flex",alignItems:"center",gap:e.newTheme.space.between("between-sm"),flexShrink:0})),y=(0,a.styled)("div").withConfig({displayName:"styles__Rail",componentId:"sc-5ee3ce4-3"})(({$gap:e,$enableSnap:t})=>({display:"flex",gap:e,overflowX:"auto",scrollSnapType:t?"x proximity":"none",paddingBlock:2,scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}})),C=(0,a.styled)("div").withConfig({displayName:"styles__CardSlot",componentId:"sc-5ee3ce4-4"})(({$width:e,$enableSnap:t})=>({width:e,flexShrink:0,display:"flex",scrollSnapAlign:t?"start":"none"}));e.s(["ScrollCarousel",0,function({children:e,itemWidth:n,title:l,gap:o=12,scrollStep:s,showArrows:a=!0,enableSnap:c=!0,ariaLabel:d,className:u}){let{railRef:h,canScrollLeft:f,canScrollRight:w,scrollPrev:E,scrollNext:b}=function(e){let t=(0,r.useRef)(null),[n,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(!1),s=(0,r.useCallback)(()=>{let e=t.current;if(!e)return;let{canScrollLeft:n,canScrollRight:r}=function(e){let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;return{canScrollLeft:t>0,canScrollRight:t<n-r-1}}(e);i(n),o(r)},[]);(0,r.useEffect)(()=>{let e=t.current;if(!e)return;s(),e.addEventListener("scroll",s,{passive:!0});let n="u">typeof ResizeObserver?new ResizeObserver(s):null;return n?.observe(e),()=>{e.removeEventListener("scroll",s),n?.disconnect()}},[s]);let a=(0,r.useCallback)(()=>{t.current?.scrollBy({left:-e,behavior:"smooth"})},[e]),c=(0,r.useCallback)(()=>{t.current?.scrollBy({left:e,behavior:"smooth"})},[e]);return{railRef:t,canScrollLeft:n,canScrollRight:l,scrollPrev:a,scrollNext:c}}
2(s??n+o),R=r.Children.toArray(e).filter(r.isValidElement);if(0===R.length)return null;let k=null!=l||a;return(0,t.jsxs)(m,{className:u,children:[k?(0,t.jsxs)(g,{children:[null!=l?l:(0,t.jsx)("div",{}),a?(0,t.jsxs)(p,{children:[(0,t.jsx)(i.default,{icon:"caret-left-bold","aria-label":"Previous",size:"small",treatment:"solid",color:"secondary",isDisabled:!f,onClick:E}),(0,t.jsx)(i.default,{icon:"caret-right-bold","aria-label":"Next",size:"small",treatment:"solid",color:"secondary",isDisabled:!w,onClick:b})]}):null]}):null,(0,t.jsx)(y,{ref:h,$gap:o,$enableSnap:c,"aria-label":d,role:d?"group":void 0,children:R.map((e,r)=>(0,t.jsx)(C,{$width:n,$enableSnap:c,children:e},e.key??r))})]})}],9310586),e.s([],3987277)},7824497,e=>{"use strict";var t=e.i(5365347),n=e.i(678058);e.i(9308373);var r=e.i(8521084),i=e.i(9616202),l=e.i(871594),o=e.i(7434401);let s=` 3 query CancellationPolicyQuery { 4 cancellationPolicy { 5 preBookingPolicyCantCancel 6 preBookingCreditIneligible 7 preBookingCreditEligible 8 postBookingPolicyCantCancel 9 postBookingCreditIneligible 10 postBookingCreditEligibleWithinWindow 11 postBookingCreditEligibleOutsideWindow 12 rentDayCancellationPolicy 13 postBookingRentDayPolicy 14 } 15 } 16`,a=` 17 query TermsAndConditionsQuery($lpid: String) { 18 cancellationPolicy { 19 termsAndConditionsUrl 20 } 21 fitnessPartnerV3(filter: { lpid: { eq: $lpid } }) { 22 termsRdr 23 } 24 } 25`,c=(0,t.defineCmsQuery)("lm-web-cancellation-policy",s),d=(0,t.defineCmsQuery)("lm-web-terms-and-conditions",a),u=(0,t.defineCmsQuery)("lm-web-minimized-fitness-partner",r.MINIMIZED_FITNESS_PARTNER_QUERY_V3),h=(0,t.defineCmsQuery)("lm-web-equinox-benefits",r.EQUINOX_BENEFITS_QUERY),f=(0,t.defineCmsQuery)("lm-web-equinox-facility-images",i.EQUINOX_FACILITY_IMAGES_QUERY),m=(0,t.defineCmsQuery)("lm-web-equinox-promo",l.EQUINOX_PROMO_QUERY),g=(0,t.defineCmsQuery)("lm-web-lyft-gift-card-brand",o.LYFT_GIFT_CARD_BRAND_QUERY),p=(0,t.defineCmsQuery)("lm-web-storefront-member-benefits",n.STOREFRONT_MEMBER_BENEFITS_QUERY);e.s(["cancellationPolicyQuery",0,c,"equinoxBenefitsQuery",0,h,"equinoxFacilityImagesQuery",0,f,"equinoxPromoQuery",0,m,"lyftGiftCardBrandQuery",0,g,"minimizedFitnessPartnerQuery",0,u,"storefrontMemberBenefitsQuery",0,p,"termsAndConditionsQuery",0,d])},9616202,871594,e=>{"use strict";let t=` 26 query allEquinoxFacilityImages { 27 allEquinoxFacilityImages(first: 500) { 28 facilityid 29 facilityname 30 desktopimage { 31 url 32 width 33 height 34 alt 35 } 36 } 37 } 38`;e.s(["EQUINOX_FACILITY_IMAGES_QUERY",0,t],9616202);let n=` 39 query equinox { 40 equinox { 41 unlinkedCardTitle 42 unlinkedCardDescription 43 prelinkedCardTitle 44 prelinkedCardDescription 45 unlinkedSheetBody 46 unlinkedCta 47 prelinkedSheetBody 48 prelinkedCta 49 nondeterministicCta 50 linkedSheetBody 51 raffleTitle 52 checkInCardTitle 53 checkInTitle 54 checkInDescription 55 checkInCounterText 56 termsCta 57 termsUrl 58 showWinner 59 showDaysLeftInMonth 60 winnerBody 61 winnerHeadline 62 interstitialTitle 63 interstitialBody 64 interstitialBullets 65 interstitialPrimaryCta 66 interstitialSecondaryCta 67 interstitialHero { 68 url 69 width 70 height 71 alt 72 responsiveImage(imgixParams: { auto: format, w: 750 }) { 73 src 74 srcSet 75 width 76 height 77 alt 78 base64 79 } 80 } 81 raffleHero { 82 url 83 width 84 height 85 alt 86 responsiveImage( 87 imgixParams: { auto: format, w: 750, h: 1062, fit: crop, crop: faces } 88 ) { 89 src 90 srcSet 91 width 92 height 93 alt 94 base64 95 } 96 } 97 raffleHeroSheet: raffleHero { 98 url 99 width 100 height 101 alt 102 responsiveImage( 103 imgixParams: { auto: format, w: 1000, h: 398, fit: crop, crop: faces } 104 ) { 105 src 106 srcSet 107 width 108 height 109 alt 110 base64 111 } 112 } 113 } 114 } 115`;e.s(["EQUINOX_PROMO_QUERY",0,n],871594)},7434401,e=>{"use strict";let t="eaafb8cc-c5a2-42c1-b3e8-95f3e8a73823",n=`/rewards/redeem/gift-cards/brands/${t}?send=false`,r=` 116 query LyftGiftCardBrand($identifier: String!) { 117 giftCardBrand(filter: { identifier: { eq: $identifier } }) { 118 image { 119 url(imgixParams: {fit: max, w: 800}) 120 } 121 } 122 } 123`;e.s(["LYFT_GIFT_CARD_BRAND_ID",0,t,"LYFT_GIFT_CARD_BRAND_QUERY",0,r,"LYFT_GIFT_CARD_URL",0,n,"emptyStateMessage",0,{title:"We couldn't check your Lyft account status",subtitle:"Please try again in a moment."}])},5170771,e=>{"use strict";
123e.s(["SUCCESS_BADGE_URL",0,"https://img.bilt.com/43819/1784315243-badge-success-60fps.webp"])},7898757,6996023,5711748,e=>{"use strict";var t=e.i(6873267),n=e.i(8911830);let r=46*Math.floor(3.5);var i=e.i(875673),l=e.i(2675367),o=e.i(2377214);let s=(0,l.styled)(i.Box).withConfig({displayName:"styles__Container",componentId:"sc-8b0eec5e-0"})({position:"relative",height:322,overflow:"hidden",minWidth:0}),a=(0,l.styled)(i.Box).withConfig({displayName:"styles__ScrollContainer",componentId:"sc-8b0eec5e-1"})({height:"100%",overflowY:"auto",scrollSnapType:"y mandatory",WebkitOverflowScrolling:"touch",msOverflowStyle:"none",scrollbarWidth:"none"}),c=(0,l.styled)(i.Box).withConfig({displayName:"styles__Spacer",componentId:"sc-8b0eec5e-2"})({height:46,scrollSnapAlign:"start"}),d=(0,l.styled)(i.Box).withConfig({displayName:"styles__TopGradient",componentId:"sc-8b0eec5e-3"})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,height:r,background:`linear-gradient(to bottom, ${e.newTheme.color["element/background/container-high"]} 20%, transparent)`,pointerEvents:"none",zIndex:2})),u=(0,l.styled)(i.Box).withConfig({displayName:"styles__BottomGradient",componentId:"sc-8b0eec5e-4"})(({theme:e})=>({position:"absolute",bottom:0,left:0,right:0,height:r,background:`linear-gradient(to top, ${e.newTheme.color["element/background/container-high"]} 20%, transparent)`,pointerEvents:"none",zIndex:2})),h=(0,l.styled)(i.Box,{shouldForwardProp:e=>!("string"==typeof e&&e.startsWith("$"))}).withConfig({displayName:"styles__ItemContainer",componentId:"sc-8b0eec5e-5"})(({theme:e,$align:t,$distance:n,$isSelected:r})=>({height:46,scrollSnapAlign:"start",display:"flex",alignItems:"center",cursor:"pointer",color:e.newTheme.color["element/foreground/content/on-surface"],transition:"opacity 0.12s, font-size 0.12s",userSelect:"none",whiteSpace:"nowrap",WebkitUserSelect:"none",letterSpacing:"-0.01em",fontFamily:"'GT America VF', sans-serif",...function({$align:e}){return{overflow:"center"!==e?"hidden":"visible",textOverflow:"center"!==e?"ellipsis":"clip",justifyContent:"left"===e?"flex-start":"right"===e?"flex-end":"center"}}({$align:t}),...function({$align:e}){return{paddingLeft:20*("left"===e),paddingRight:"right"===e?16:8*("left"===e)}}({$align:t}),...function({$isSelected:e,$distance:t}){return{opacity:e?1:1===t?.5:2===t?.25:.13,fontSize:e?23:1===t?20:2===t?18:16,fontWeight:e?500:400}}({$isSelected:r,$distance:n})}));e.s(["Picker",0,function({items:e,selectedIndex:r,onChange:i,renderItem:l,align:o="center",flex:f=1,visibleItems:m}){let g=(0,n.useRef)(null),p=(0,n.useRef)(null),y=(0,n.useRef)(r),C=(0,n.useRef)(!1),w=m??7,E=Math.floor(w/2),b=46*E;(0,n.useEffect)(()=>{if(g.current&&!C.current&&e){let e=46*r;y.current!==r?g.current.scrollTo({top:e,behavior:"smooth"}):g.current.scrollTop=e,y.current=r}},[r,e]),(0,n.useEffect)(()=>{g.current&&(g.current.scrollTop=46*y.current)},[]);let R=(0,n.useCallback)(()=>{C.current=!0,p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{if(!g.current)return;let t=Math.round(g.current.scrollTop/46),n=Math.max(0,Math.min(e.length-1,t));g.current.scrollTo({top:46*n,behavior:"smooth"}),y.current=n,C.current=!1,n!==r&&i(n)},80)},[e,r,i]);return(0,t.jsxs)(s,{flex:f,style:m?{height:46*w}:void 0,children:[(0,t.jsxs)(a,{ref:g,onScroll:R,children:[Array.from({length:E}).map((e,n)=>(0,t.jsx)(c,{},`top-${n}`)),e.map((e,n)=>{let s=Math.abs(n-r),a=n===r;return(0,t.jsx)(h,{$isSelected:a,$distance:s,$align:o,onClick:()=>i(n),children:l?l(e,a):String(e)},`item-${n}`)}),Array.from({length:E}).map((e,n)=>(0,t.jsx)(c,{},`bottom-${n}`))]}),(0,t.jsx)(d,{style:{height:b}}),(0,t.jsx)(u,{style:{height:b}})]})}],6996023);let f={k1xSpc:"bds-78zum5",kXwgrk:"bds-dt5ytf",kVAEAm:"bds-1n2onr6",kmVPX3:"bds-1bo8gzv",kg3NbH:null,kuDDbn:null,kE3dHu:null,kP0aTx:null,kpe85a:null,k8WAf4:null,kLKAdn:null,kGO01o:null,kjj79g:"bds-l56j7k",kGNEyG:"bds-6s0dn4",$$css:!0},m=(0,n.forwardRef)(function({className:e,sx:n,...r},i){return(0,t.jsx)("div",{...r,ref:i,...(0,o.applyStyles)(e,f,n)})}),g={k1xSpc:"bds-78zum5",kXwgrk:"bds-dt5ytf",kVAEAm:"bds-1n2onr6",kzqmXN:"bds-h8yej3",ks0D6T:"bds-xc7z9f",$$css:!0},p=(0,n.forwardRef)(function({className:e,sx:n,...r},i){return(0,t.jsx)("div",{...r,ref:i,...(0,o.applyStyles)(e,g,n)})}),y={k1xSpc:"bds-78zum5",kXwgrk:"bds-1q0g3np",kVAEAm:"bds-1n2onr6",kY2c9j:"bds-1vjfegm",$$css:!0},C=(0,n.forwardRef)(function({className:e,sx:n,...r},i){return(0,t.jsx)("div",{...r,ref:i,...(0,o.applyStyles)(e,y,n)})}),w={k1xSpc:"bds-78zum5",kXwgrk:"bds-dt5ytf",kVAEAm:"bds-10l6tqk",kbCHJM:"bds-u96u03",kCIrl2:"bds-3m8u43",kLqNvP:null,kt4wiu:null,kY2c9j:"bds-1vjfegm",kfzvcC:"bds-47corl",kaIpWk:"bds-13wif7",krdFHd:null,kfmiAY:null,kVL7Gh:null,kT0f0o:null,kIxVMA:null,ksF3WI:null,kqGeR4:null,kYm2EN:null,kWkggS:"bds-14si3jp",$$css:!0},E=(0,n.forwardRef)(function({className:e,sx:n,...r},i){return(0,t.jsx)("div",{...r,ref:i,...(0,o.applyStyles)(e,w,n)})});e.s(["PickerRoot",0,function({children:e}){return(0,t.jsx)(m,{children:(0,t.jsxs)(p,{children:[(0,t.jsx)(E,{style:{to
vendor: 9,867 bytes, line 123
123p:r,height:46}}),(0,t.jsx)(C,{children:e})]})})}],5711748),e.s([],7898757)},8517897,e=>{"use strict";let t,n;var r,i,l,o,s,a=e.i(8911830),c=Object.defineProperty,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(d)for(var n of d(t))h.call(t,n)&&f(e,n,t[n]);return e},g=(e,t)=>{var n={};for(var r in e)u.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))0>t.indexOf(r)&&h.call(e,r)&&(n[r]=e[r]);return n};(e=>{let t=class t{constructor(e,n,r,l){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(l<-1||l>7)throw RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==l){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(l=t,e=n),this.applyMask(t)}}i(0<=l&&l<=7),this.mask=l,this.applyMask(l),this.drawFormatBits(l),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,l=1,s=40,a=-1,c=!0){let d,u;if(!(t.MIN_VERSION<=l&&l<=s&&s<=t.MAX_VERSION)||a<-1||a>7)throw RangeError("Invalid value");for(d=l;;d++){let n=8*t.getNumDataCodewords(d,r),i=o.getTotalBits(e,d);if(i<=n){u=i;break}if(d>=s)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=8*t.getNumDataCodewords(d,e)&&(r=e);let h=[];for(let t of e)for(let e of(n(t.mode.modeBits,4,h),n(t.numChars,t.mode.numCharCountBits(d),h),t.getData()))h.push(e);i(h.length==u);let f=8*t.getNumDataCodewords(d,r);i(h.length<=f),n(0,Math.min(4,f-h.length),h),n(0,(8-h.length%8)%8,h),i(h.length%8==0);for(let e=236;h.length<f;e^=253)n(e,8,h);let m=[];for(;8*m.length<h.length;)m.push(0);return h.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(d,r,m,a)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)(0!=n||0!=r)&&(0!=n||r!=t-1)&&(n!=t-1||0!=r)&&this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let l=(t<<10|n)^21522;i(l>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(l,e));this.setFunctionModule(8,7,r(l,6)),this.setFunctionModule(8,8,r(l,7)),this.setFunctionModule(7,8,r(l,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(l,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(l,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(l,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,l=Math.floor(e/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),l=e+r,o=t+n;0<=l&&l<this.size&&0<=o&&o<this.size&&this.setFunctionModule(l,o,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError("Invalid argument");let l=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),a=l-s%l,c=Math.floor(s/l),d=[],u=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<l;n++){let i=e.slice(r,r+c-o+(n<a?0:1));r+=i.length;let l=t.reedSolomonComputeRemainder(i,u);n<a&&i.push(0),d.push(i.concat(l))}let h=[];for(let e=0;e<d[0].length;e++)d.forEach((t,n)=>{(e!=c-o||n>=a)&&h.push(t[e])});return i(h.length==s),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i<this.size;i++)for(let l=0;l<2;l++){let o=t-l,s=(t+1&2)==0?this.size-1-i:i;!this.isFunction[s][o]&&n<8*e.length&&(this.modules[s][o]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,l=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,l),r||(e+=this.finderPenaltyCountPatterns(l)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,l)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,l=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,l),r||(e+=this.finderPenaltyCountPatterns(l)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,l)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,l=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=l&&l<=9),i(0<=(e+=l*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285^(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=3*this.size);let n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let l=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains
123non-numeric characters");let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),3*i+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){let r;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let i=[];for(r=0;r+2<=t.length;r+=2){let l=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(l+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,i)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=l;e.QrSegment=l})(s||(s={})),i=(r=s||(s={})).QrCode||(r.QrCode={}),(t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),i.Ecc=t,o=(l=s||(s={})).QrSegment||(l.QrSegment={}),(n=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),o.Mode=n;var p=s,y={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},C="#FFFFFF",w="#000000";function E(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(l,o){if(!l&&null!==i){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!l)return;null===i?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}l&&null===i&&(i=o)})}),n.join("")}function b(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function R({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:l,size:o,boostLevel:s}){let c=a.default.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...p.QrSegment.makeSegments(t)),e),[]);return p.QrCode.encodeSegments(r,y[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:d,margin:u,numCells:h,calculatedImageSettings:f}=a.default.useMemo(()=>{let e=c.getModules(),t=null!=i?Math.max(Math.floor(i),0):4*!!r,n=e.length+2*t,s=function(e,t,n,r){if(null==r)return null;let i=e.length+2*n,l=Math.floor(.1*t),o=i/t,s=(r.width||l)*o,a=(r.height||l)*o,c=null==r.x?e.length/2-s/2:r.x*o,d=null==r.y?e.length/2-a/2:r.y*o,u=null==r.opacity?1:r.opacity,h=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(d),n=Math.ceil(s+c-e),r=Math.ceil(a+d-t);h={x:e,y:t,w:n,h:r}}return{x:c,y:d,h:a,w:s,excavation:h,opacity:u,crossOrigin:r.crossOrigin}}(e,o,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:s}},[c,o,l,r,i]);return{qrcode:c,margin:u,cells:d,numCells:h,calculatedImageSettings:f}}var k=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}(),M=a.default.forwardRef(function(e,t){let{value:n,size:r=128,level:i="L",bgColor:l=C,fgColor:o=w,includeMargin:s=!1,minVersion:c=1,boostLevel:d,marginSize:u,imageSettings:h}=e,f=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:p}=f,y=g(f,["style"]),M=null==h?void 0:h.src,x=a.default.useRef(null),S=a.default.useRef(null),v=a.default.useCallback(e=>{x.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[I,A]=a.default.useState(!1),{margin:_,cells:N,numCells:P,calculatedImageSettings:T}=R({value:n,level:i,minVersion:c,boostLevel:d,includeMargin:s,marginSize:u,imageSettings:h,size:r});a.default.useEffect(()=>{if(null!=x.current){let e=x.current,t=e.getContext("2d");if(!t)return;let n=N,i=S.current,s=null!=T&&null!==i&&i.complete&&0!==i.naturalHeight&&0!==i.naturalWi
123dth;s&&null!=T.excavation&&(n=b(N,T.excavation));let a=window.devicePixelRatio||1;e.height=e.width=r*a;let c=r/P*a;t.scale(c,c),t.fillStyle=l,t.fillRect(0,0,P,P),t.fillStyle=o,k?t.fill(new Path2D(E(n,_))):N.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+_,n+_,1,1)})}),T&&(t.globalAlpha=T.opacity),s&&t.drawImage(i,T.x+_,T.y+_,T.w,T.h)}}),a.default.useEffect(()=>{A(!1)},[M]);let B=m({height:r,width:r},p),O=null;return null!=M&&(O=a.default.createElement("img",{src:M,key:M,style:{display:"none"},onLoad:()=>{A(!0)},ref:S,crossOrigin:null==T?void 0:T.crossOrigin})),a.default.createElement(a.default.Fragment,null,a.default.createElement("canvas",m({style:B,height:r,width:r,ref:v,role:"img"},y)),O)});M.displayName="QRCodeCanvas",a.default.forwardRef(function(e,t){let{value:n,size:r=128,level:i="L",bgColor:l=C,fgColor:o=w,includeMargin:s=!1,minVersion:c=1,boostLevel:d,title:u,marginSize:h,imageSettings:f}=e,p=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:y,cells:k,numCells:M,calculatedImageSettings:x}=R({value:n,level:i,minVersion:c,boostLevel:d,includeMargin:s,marginSize:h,imageSettings:f,size:r}),S=k,v=null;null!=f&&null!=x&&(null!=x.excavation&&(S=b(k,x.excavation)),v=a.default.createElement("image",{href:f.src,height:x.h,width:x.w,x:x.x+y,y:x.y+y,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));let I=E(S,y);return a.default.createElement("svg",m({height:r,width:r,viewBox:`0 0 ${M} ${M}`,ref:t,role:"img"},p),!!u&&a.default.createElement("title",null,u),a.default.createElement("path",{fill:l,d:`M0,0 h${M}v${M}H0z`,shapeRendering:"crispEdges"}),a.default.createElement("path",{fill:o,d:I,shapeRendering:"crispEdges"}),v)}).displayName="QRCodeSVG",e.s(["QRCodeCanvas",0,M])}]); 124 125//# debugId=0aa01302-2bb9-2fa8-c508-d4421214c5c9 126//# sourceMappingURL=40wb130oa8-ot.js.map
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.