1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5641],{29532:function(e,t,n){"use strict";n.d(t,{w:function(){return P},P:function(){return A}});var r,o,i,a,l,s,d,c,u,h=n(32109),f=n(85893),p=n(67294),m=n(1647),g=n(71893),v=n(73224),w=(0,g.iv)(r||(r=(0,h.AI)(["\n font-size: 1.6rem;\n font-weight: 400;\n line-height: 2.4rem;\n color: ",";\n"])),v.D2.stone80),y=g.ZP.li.withConfig({displayName:"CategoryItemContainer",componentId:"-vg64oz"})(o||(o=(0,h.AI)(["\n padding: 1.6rem;\n display: flex;\n justify-content: space-between;\n border: 1px solid ",";\n border-radius: 4px;\n cursor: pointer;\n min-height: 8.8rem;\n background-color: ",";\n\n .category-item_icon-container {\n height: calc(100% - 3.2rem);\n top: unset;\n }\n\n ","\n \n ","\n\n ","\n"])),v.D2.stone10,v.D2.white,function(e){return e.$isTrigger&&"\n border-color:".concat(v.D2.black,";\n ")},function(e){return e.$isTrigger&&e.$isExpanded&&"\n border-radius: 4px 4px 0 0;\n border-bottom: 0;\n padding-bottom: 1.7rem;\n "},function(e){return!e.$isTrigger&&"\n border-width: 0 0 1px 0;\n border-radius: 0;\n :hover {\n background-color: ".concat(v.D2.stone10,";\n }\n ")}),b=g.ZP.div.withConfig({displayName:"ItemContent",componentId:"-1m7z2ji"})(i||(i=(0,h.AI)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n border: 4px;\n"]))),C=g.ZP.span.withConfig({displayName:"CategoryItemTitle",componentId:"-1n0kfp1"})(a||(a=(0,h.AI)(["\n ","\n"])),w),E=g.ZP.span.withConfig({displayName:"CategoryItemDescription",componentId:"-jvb486"})(l||(l=(0,h.AI)(["\n font-size: 1.4rem;\n line-height: 2rem;\n color: ",";\n"])),v.D2.stone60),R=g.ZP.ul.withConfig({displayName:"OverlayContainer",componentId:"-kpuc59"})(s||(s=(0,h.AI)(["\n background-color: ",";\n padding: 0;\n margin: 0;\n\n li.selected-item {\n background-color: ",";\n }\n"])),v.D2.white,v.D2.stone5),M=g.ZP.p.withConfig({displayName:"CategoryTitle",componentId:"-190suzw"})(d||(d=(0,h.AI)(["\n color: ",";\n font-size: 1.6rem;\n font-weight: 400;\n line-height: 2.4rem;\n border: 1px solid ",";\n background-color: ",";\n padding: 1.6rem;\n margin: 0;\n"])),v.D2.stone80,v.D2.stone10,v.D2.stone5),x=g.ZP.div.withConfig({displayName:"CategoryDropdownHeader",componentId:"-ghmv7j"})(c||(c=(0,h.AI)(["\n .category-item_container:last-of-type {\n border-bottom: 0;\n }\n\n .category-item_container:first-of-type {\n border-top: 1px solid ",";\n border-radius: 0;\n }\n"])),v.D2.stone10),I=g.ZP.div.withConfig({displayName:"CategoryDropdownBody",componentId:"-1k1d02o"})(u||(u=(0,h.AI)(["\n .category-item_container:last-of-type {\n border-bottom: 0;\n }\n"]))),N=n(27504),A=function(e){var t=e.item,n=e.handleClick,r=e.isTrigger,o=void 0!==r&&r,i=e.isExpanded,a=void 0!==i&&i,l=t||{},s=l.display,d=l.description,c=l.id,u=(0,p.useMemo)(function(){return(0,f.jsx)(N.lS,{className:"category-item_icon-container",rotate:a?"180deg":"0deg",children:(0,f.jsx)("img",{src:m.Z,alt:"icon-arrow"})})},[a]),g=o?"":"Dropdown-DropdownItem";return(0,f.jsxs)(y,(0,h.Zj)((0,h.Zj)({className:"category-item_container ".concat(g),$isTrigger:o,$isExpanded:a,onClick:function(){!o&&n&&t&&n(t)},"data-id":c},o&&{as:"div"}),{},{children:[(0,f.jsxs)(b,{children:[(0,f.jsx)(C,{className:"category-item_title",children:s}),d&&(0,f.jsx)(E,{className:"category-item_description",children:d})]}),o&&u]}))},P=function(e){var t=e.header,n=e.body,r=e.closeDropdown,o=e.handleSelectItem,i=function(e){o&&r&&(o(e),r())};return(0,f.jsxs)(R,{className:"Dropdown-DropdownItemContainer",children:[t&&(0,f.jsx)(x,{children:t.map(function(e){return(0,f.jsx)(A,{item:e,handleClick:i},e.id)})}),n.map(function(e){return(0,f.jsxs)(I,{children:[(0,f.jsx)(M,{children:e.name}),e.options.map(function(e){return(0,f.jsx)(A,{item:e,handleClick:i},e.id)})]},e.id)})]})}},47413:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r,o,i,a=n(32109),l=n(85893),s=n(67294),d=n(71893),c=n(73224),u=d.ZP.div.withConfig({displayName:"DropdownMenuContainer",componentId:"-1mavt7b"})(r||(r=(0,a.AI)(["\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n"]))),h=d.ZP.div.withConfig({displayName:"DropdownMenuTrigger",componentId:"-5j0idq"})(o||(o=(0,a.AI)(["\n margin: 0;\n"]))),f=d.ZP.div.withConfig({displayName:"DropdownMenuOverlay",componentId:"-7jqn1i"})(i||(i=(0,a.AI)(["\n position: absolute;\n z-index: 5;\n width: 100%;\n max-height: 30rem;\n top: 8.8rem;\n overflow-y: auto;\n border: 1px solid ",";\n\n ","\n"])),c.D2.black,function(e){return e.$isExpanded&&"\n border-radius: 0 0 4px 4px;\n border-top: 0;\n "}),p={id:null,value:null,display:"Label",description:"Selection an option"},m=function(e){var t=e.trigger,n=e.overlay,r=e.handleDropdownChange,o=e.initialState,i=e.options,d=(0,s.useRef)(null),c=(0,s.useRef)(null),m=(0,s.useRef)(null),g=(0,s.useRef)(null),v=(0,s.use
1State)(-1),w=(0,a.ZQ)(v,2),y=w[0],b=w[1],C=(0,s.useState)(!1),E=(0,a.ZQ)(C,2),R=E[0],M=E[1],x=(0,s.useState)(p),I=(0,a.ZQ)(x,2),N=I[0],A=I[1],P=(0,s.useCallback)(function(e){d.current&&!d.current.contains(e.target)&&M(!1)},[M]),k=(0,s.useCallback)(function(){return M(!R)},[M,R]),L=(0,s.useCallback)(function(e){A(e),r&&e.value&&r(e.value)},[A,r]),S=(0,s.useCallback)(function(e){if(e){var t=i.find(function(e){return e.id===g.current});t&&(A(t),r&&r(t.value)),M(!1)}else M(!1)},[M,g,i,r]),Z=(0,s.useCallback)(function(e){var t=y+e,n=m.current,r=n&&n.querySelectorAll(".Dropdown-DropdownItem");if(r&&r.length-1>=t&&t>=0){b(t);var o=r[t];if(o){o.classList.add("selected-item");var i=o.dataset.id;i&&(g.current=i),o.scrollIntoView({behavior:"smooth"})}var a=r[y];a&&a.classList.remove("selected-item")}},[y,m,b]),z=(0,s.useCallback)(function(e){switch(e.key){case"ArrowUp":Z(-1);break;case"ArrowDown":Z(1);break;case"Tab":case"Escape":R&&S(!1);break;case"Enter":R?S(!0):M(!0)}},[S,R,Z]);return(0,s.useEffect)(function(){if(R)return window.addEventListener("mousedown",P),function(){window.removeEventListener("mousedown",P)}},[P,R]),(0,s.useEffect)(function(){o&&A("string"==typeof o||o instanceof String?{id:null,value:null,display:o}:o)},[o,A]),(0,l.jsxs)(u,{className:"dropdown-menu-container",ref:d,children:[(0,l.jsx)(h,{className:"dropdown-menu-trigger",onClick:k,role:"button","aria-controls":"dropdownMenu","aria-haspopup":"listbox",tabIndex:0,ref:c,onKeyDown:z,children:(0,s.cloneElement)(t,(0,a.Zj)({isExpanded:R},N&&{item:N}))}),R&&(0,l.jsx)(f,{className:"dropdown-menu-overlay",$isExpanded:R,"aria-expanded":R,role:"listbox",id:"dropdownMenu",tabIndex:-1,ref:m,children:(0,s.cloneElement)(n,{isExpanded:R,closeDropdown:function(){return M(!1)},handleSelectItem:L})})]})}},56515:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);let o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"#151515",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...n},e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M15.41 16.59L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.59Z",transform:"rotate(-90,12,12)",stroke:"none"}))});var i=r.memo(o)},890:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);let o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#151515",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:o,"aria-labelledby":t,...n},e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M18 6L6 18",fill:"none"}),r.createElement("path",{d:"M6 6L18 18",fill:"none"}))});var i=r.memo(o)},34206:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(81272),o=n(35741),i=n(67294);n(45697);var a=n(10342),l=n(56557),s=n(79288),d=n(80407),c=n(24644),u=n(53566),h=n(57514),f=n(64665),p=n(31549),m=n(48533);let g=(0,m.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),v=(0,m.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),w=(0,m.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var y=n(69255);function b(e){return(0,y.Z)("MuiMenuItem",e)}let C=(0,m.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var E=n(85893);let R=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],M=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,d=(0,l.Z)({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},b,s);return(0,o.Z)({},s,d)},x=(0,d.ZP)(h.Z,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(C.selected)]:{backgroundColor:(0,s.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(C.focusVisible)]:{backgroundColor:(0,s.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(C.selected,":hover")]:{backgroundColor:(0,s.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,s.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(C.focusVisible)]:{backgroundColor:t.palette.action.focus},["&.".concat(C.disabled)]:{opacity:t.palette.action.disabledOpacity},["& + .".concat(g.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(g.inset)]:{marginLeft:52},["& .".concat(w.root)]:{marginTop:0,marginBottom:0},["& .".concat(w.inset)]:{paddingLeft:36},["& .".concat(v.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(v.root," svg")]:{fontSize:"1.25rem"}}))});var I=i.forwardRef(function(e,t){let n;let l=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:d="li",dense:h=!1,divider:m=!1,disableGutters:g=!1,focusVisibleClassName:v,role:w="menuitem",tabIndex:y}=l,b=(0,r.Z)(l,R),C=i.useContext(u.Z),I={dense:h||C.dense||!1,disableGutters:g},N=i.useRef(null);(0,f.Z)(()=>{s&&N.current&&N.current.focus()},[s]);let A=(0,o.Z)({},l,{dense:I.dense,divider:m,disableGutters:g}),P=M(l),k=(0,p.Z)(N,t);return l.disabled||(n=void 0!==y?y:-1),(0,E.jsx)(u.Z.Provider,{value:I,children:(0,E.jsx)(x,(0,o.Z)({ref:k,role:w,tabIndex:n,component:d,focusVisibleClassName:(0,a.Z)(P.focusVisible,v)},b,{ownerState:A,classes:P}))})})},50992:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(81272),o=n(35741),i=n(67294);n(45697);var a=n(10342),l=n(56557),s=n(79288),d=n(57514),c=n(69344),u=n(24644),h=n(80407),f=n(69255);function p(e){return(0,f.Z)("MuiToggleButton",e)}let m=(0,n(48533).Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);var g=n(85893);let v=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],w=e=>{let{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth","size".concat((0,c.Z)(i)),a]};return(0,l.Z)(s,p,t)},y=(0,h.ZP)(d.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["size".concat((0,c.Z)(n.size))]]}})(e=>{let{theme:t,ownerState:n}=e,r="standard"===n.color?t.palette.text.primary:t.palette[n.color].main;return(0,o.Z)({},t.typography.button,{borderRadius:t.shape.borderRadius,padding:11,border:"1px solid ".concat(t.palette.divider),color:t.palette.action.active},n.fullWidth&&{width:"100%"},{["&.".concat(m.disabled)]:{color:t.palette.action.disabled,border:"1px solid ".concat(t.palette.action.disabledBackgroun
1d)},"&:hover":{textDecoration:"none",backgroundColor:(0,s.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(m.selected)]:{color:r,backgroundColor:(0,s.Fq)(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:(0,s.Fq)(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,s.Fq)(r,t.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:t.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:t.typography.pxToRem(15)})});var b=i.forwardRef(function(e,t){let n=(0,u.Z)({props:e,name:"MuiToggleButton"}),{children:i,className:l,color:s="standard",disabled:d=!1,disableFocusRipple:c=!1,fullWidth:h=!1,onChange:f,onClick:p,selected:m,size:b="medium",value:C}=n,E=(0,r.Z)(n,v),R=(0,o.Z)({},n,{color:s,disabled:d,disableFocusRipple:c,fullWidth:h,size:b}),M=w(R);return(0,g.jsx)(y,(0,o.Z)({className:(0,a.Z)(M.root,l),disabled:d,focusRipple:!c,ref:t,onClick:e=>{p&&(p(e,C),e.defaultPrevented)||!f||f(e,C)},onChange:f,value:C,ownerState:R,"aria-pressed":m},E,{children:i}))})},68913:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(81272),o=n(35741),i=n(67294);n(59864),n(45697);var a=n(10342),l=n(56557),s=n(80407),d=n(24644),c=n(69344),u=n(69255);function h(e){return(0,u.Z)("MuiToggleButtonGroup",e)}let f=(0,n(48533).Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);var p=n(85893);let m=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],g=e=>{let{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,c.Z)(n)),o&&"disabled"]};return(0,l.Z)(i,h,t)},v=(0,s.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{["& .".concat(f.grouped)]:t.grouped},{["& .".concat(f.grouped)]:t["grouped".concat((0,c.Z)(n.orientation))]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(e=>{let{ownerState:t,theme:n}=e;return(0,o.Z)({display:"inline-flex",borderRadius:n.shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& .".concat(f.grouped)]:(0,o.Z)({},"horizontal"===t.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderTop:0,marginTop:0}})})});var w=i.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:l,className:s,color:c="standard",disabled:u=!1,exclusive:h=!1,fullWidth:f=!1,onChange:w,orientation:y="horizontal",size:b="medium",value:C}=n,E=(0,r.Z)(n,m),R=(0,o.Z)({},n,{disabled:u,fullWidth:f,orientation:y,size:b}),M=g(R),x=(e,t)=>{let n;if(!w)return;let r=C&&C.indexOf(t);C&&r>=0?(n=C.slice()).splice(r,1):n=C?C.concat(t):[t],w(e,n)},I=(e,t)=>{w&&w(e,C===t?null:t)};return(0,p.jsx)(v,(0,o.Z)({role:"group",className:(0,a.Z)(M.root,s),ref:t,ownerState:R},E,{children:i.Children.map(l,e=>{var t;return i.isValidElement(e)?i.cloneElement(e,{className:(0,a.Z)(M.grouped,e.props.className),onChange:h?I:x,selected:void 0===e.props.selected?(t=e.props.value,void 0!==C&&void 0!==t&&(Array.isArray(C)?C.indexOf(t)>=0:t===C)):e.props.selected,size:e.props.size||b,fullWidth:f,color:e.props.color||c,disabled:e.props.disabled||u}):null})}))})},14333:function(){},82703:function(e,t,n){"use strict";n.d(t,{M:function(){return w}});var r=n(85893),o=n(67294),i=n(6337),a=n(4454),l=n(240),s=n(96681),d=n(16014);class c extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let n=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:l}=(0,o.useContext)(d._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:r,top:o,left:s}=a.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let d=document.createElement("style");return l&&(d.nonce=l),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${r}px !important; 6 top: ${o}px !important; 7 left: ${s}px !important; 8 } 9 `),()=>{document.head.removeChild(d)}},[t]),(0,r.jsx)(c,{isPresent:t,childRef:i,sizeRef:a,children:o.cloneElement(e,{ref:i})})}let h=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:d,mode:c})=>{let h=(0,s.h)(f),p=(0,o.useId)(),m=(0,o.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:a,onExitComplete:e=>
9{for(let t of(h.set(e,!0),h.values()))if(!t)return;i&&i()},register:e=>(h.set(e,!1),()=>h.delete(e))}),d?[Math.random()]:[n]);return(0,o.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),o.useEffect(()=>{n||h.size||!i||i()},[n]),"popLayout"===c&&(e=(0,r.jsx)(u,{isPresent:n,children:e})),(0,r.jsx)(l.O.Provider,{value:m,children:e})};function f(){return new Map}var p=n(25364),m=n(58868),g=n(45487);let v=e=>e.key||"",w=({children:e,custom:t,initial:n=!0,onExitComplete:l,exitBeforeEnter:s,presenceAffectsLayout:d=!0,mode:c="sync"})=>{var u;(0,g.k)(!s,"Replace exitBeforeEnter with mode='wait'");let f=(0,o.useContext)(p.p).forceRender||(0,i.N)()[0],w=(0,a.t)(),y=function(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}(e),b=y,C=(0,o.useRef)(new Map).current,E=(0,o.useRef)(b),R=(0,o.useRef)(new Map).current,M=(0,o.useRef)(!0);if((0,m.L)(()=>{M.current=!1,function(e,t){e.forEach(e=>{let n=v(e);t.set(n,e)})}(y,R),E.current=b}),u=()=>{M.current=!0,R.clear(),C.clear()},(0,o.useEffect)(()=>()=>u(),[]),M.current)return(0,r.jsx)(r.Fragment,{children:b.map(e=>(0,r.jsx)(h,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:d,mode:c,children:e},v(e)))});b=[...b];let x=E.current.map(v),I=y.map(v),N=x.length;for(let e=0;e<N;e++){let t=x[e];-1!==I.indexOf(t)||C.has(t)||C.set(t,void 0)}return"wait"===c&&C.size&&(b=[]),C.forEach((e,n)=>{if(-1!==I.indexOf(n))return;let o=R.get(n);if(!o)return;let i=x.indexOf(n),a=e;a||(a=(0,r.jsx)(h,{isPresent:!1,onExitComplete:()=>{C.delete(n);let e=Array.from(R.keys()).filter(e=>!I.includes(e));if(e.forEach(e=>R.delete(e)),E.current=y.filter(t=>{let r=v(t);return r===n||e.includes(r)}),!C.size){if(!1===w.current)return;f(),l&&l()}},custom:t,presenceAffectsLayout:d,mode:c,children:o},v(o)),C.set(n,a)),b.splice(i,0,a)}),b=b.map(e=>{let t=e.key;return C.has(t)?e:(0,r.jsx)(h,{isPresent:!0,presenceAffectsLayout:d,mode:c,children:e},v(e))}),(0,r.jsx)(r.Fragment,{children:C.size?b:b.map(e=>(0,o.cloneElement)(e))})}},6337:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(67294),o=n(4454),i=n(26166);function a(){let e=(0,o.t)(),[t,n]=(0,r.useState)(0),a=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>i.Wi.postRender(a),[a]),t]}},4454:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(67294),o=n(58868);function i(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},71508:function(e,t,n){"use strict";n.d(t,{t:function(){return E}});var r,o,i,a=n(67294),l=Object.defineProperty,s=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))c.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>{var n={};for(var r in e)d.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))0>t.indexOf(r)&&c.call(e,r)&&(n[r]=e[r]);return n};(e=>{let t=class t{constructor(e,n,r,i){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(i<-1||i>7)throw RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){let o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){let o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,i=1,l=40,s=-1,d=!0){let c,u;if(!(t.MIN_VERSION<=i&&i<=l&&l<=t.MAX_VERSION)||s<-1||s>7)throw RangeError("Invalid value");for(c=i;;c++){let n=8*t.getNumDataCodewords(c,r),o=a.getTotalBits(e,c);if(o<=n){u=o;break}if(c>=l)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&u<=8*t.getNumDataCodewords(c,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(c),h),t.getData()))h.push(e);o(h.length==u);let f=8*t.getNumDataCodewords(c,r);o(h.length<=f),n(0,Math.min(4,f-h.length),h),n(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let e=236;h.length<f;e^=253)n(e,8,h);let p=[];for(;8*p.length<h.length;)p.push(0);return h.forEach((e,t)=>p[t>>>3]|=e<<7-(7&t)),new t(c,r,p,s)}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;
vendor: 13,260 bytes, line 9
9for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let i=(t<<10|n)^21522;o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,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;o(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}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 i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],l=Math.floor(t.getNumRawDataModules(n)/8),s=i-l%i,d=Math.floor(l/i),c=[],u=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let o=e.slice(r,r+d-a+(n<s?0:1));r+=o.length;let i=t.reedSolomonComputeRemainder(o,u);n<s&&o.push(0),c.push(o.concat(i))}let h=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!=d-a||n>=s)&&h.push(t[e])});return o(h.length==l),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 o=0;o<this.size;o++)for(let i=0;i<2;i++){let a=t-i,l=(t+1&2)==0?this.size-1-o:o;!this.isFunction[l][a]&&n<8*e.length&&(this.modules[l][a]=r(e[n>>>3],7-(7&n)),n++)}}o(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,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?5==++o?e+=t.PENALTY_N1:o>5&&e++:(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?5==++o?e+=t.PENALTY_N1:o>5&&e++:(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==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?1:0),n);let r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),o(0<=(e+=i*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 o(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 o=0;o<e;o++){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 o of e){let e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=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 o(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];o(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 o(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 i=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 non-numeric characters");let r=[];for(let e=0;e<t.length;){let o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}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 o=[];for(r=0;r+2<=t.length;r+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));n(i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}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}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=i;e.QrSegment=i})(i||(i={})),(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((r=i||(i={})).QrCode||(r.QrCode={})),(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})((o=i||(i={})).QrSegment||(o.QrSegment={}));var p=i,m={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},g="#FFFFFF",v="#000000";function w(e,t=0){let n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(i,a){if(!i&&null!==o){n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===e.length-1){if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`);return}i&&null===o&&(o=a)})}),n.join("")}function y(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 b({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:s}){let d=a.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...p.QrSegment.makeSegments(t)),e),[]);return p.QrCode.encodeSegments(r,m[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:c,margin:u,numCells:h,calculatedImageSettings:f}=a.useMemo(()=>{let e=d.getModules(),t=null!=o?Math.max(Math.floor(o),0):r?4:0,n=e.length+2*t,a=function(e,t,n,r){if(null==r)return null;let o=e.length+2*n,i=Math.floor(.1*t),a=o/t,l=(r.width||i)*a,s=(r.height||i)*a,d=null==r.x?e.length/2-l/2:r.x*a,c=null==r.y?e.length/2-s/2:r.y*a,u=null==r.opacity?1:r.opacity,h=null;if(r.excavate){let e=Math.floor(d),t=Math.floor(c);h={x:e,y:t,w:Math.ceil(l+d-e),h:Math.ceil(s+c-t)}}return{x:d,y:c,h:s,w:l,excavation:h,opacity:u,crossOrigin:r.crossOrigin}}(e,l,t,i);return{cells:e,margin:t,numCells:n,calculatedImageSettings:a}},[d,l,i,r,o]);return{qrcode:d,margin:u,cells:c,numCells:h,calculatedImageSettings:f}}var C=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();a.forwardRef(function(e,t){let{value:n,size:r=128,level:o="L",bgColor:i=g,fgColor:l=v,includeMargin:s=!1,minVersion:d=1,boostLevel:c,marginSize:u,imageSettings:p}=e,m=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:E}=m,R=f(m,["style"]),M=null==p?void 0:p.src,x=a.useRef(null),I=a.useRef(null),N=a.useCallback(e=>{x.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[A,P]=a.useState(!1),{margin:k,cells:L,numCells:S,calculatedImageSettings:Z}=b({value:n,level:o,minVersion:d,boostLevel:c,includeMargin:s,marginSize:u,imageSettings:p,size:r});a.useEffect(()=>{if(null!=x.current){let e=x.current,t=e.getContext("2d");if(!t)return;let n=L,o=I.current,a=null!=Z&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;a&&null!=Z.excavation&&(n=y(L,Z.excavation));let s=window.devicePixelRatio||1;e.height=e.width=r*s;let d=r/S*s;t.scale(d,d),t.fillStyle=i,t.fillRect(0,0,S,S),t.fillStyle=l,C?t.fill(new Path2D(w(n,k))):L.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+k,n+k,1,1)})}),Z&&(t.globalAlpha=Z.opacity),a&&t.drawImage(o,Z.x+k,Z.y+k,Z.w,Z.h)}}),a.useEffect(()=>{P(!1)},[M]);let z=h({height:r,width:r},E),O=null;return null!=M&&(O=a.createElement("img",{src:M,key:M,style:{display:"none"},onLoad:()=>{P(!0)},ref:I,crossOrigin:null==Z?void 0:Z.crossOrigin})),a.createElement(a.Fragment,null,a.createElement("canvas",h({style:z,height:r,width:r,ref:N,role:"img"},R)),O)}).displayName="QRCodeCanvas";var E=a.forwardRef(function(e,t){let{value:n,size:r=128,level:o="L",bgColor:i=g,fgColor:l=v,includeMargin:s=!1,minVersion:d=1,boostLevel:c,title:u,marginSize:p,imageSettings:m}=e,C=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:E,cells:R,numCells:M,calculatedImageSettings:x}=b({value:n,level:o,minVersion:d,boostLevel:c,includeMargin:s,marginSize:p,imageSettings:m,size:r}),I=R,N=null;null!=m&&null!=x&&(null!=x.excavation&&(I=y(R,x.excavation)),N=a.createElement("image",{href:m.src,height:x.h,width:x.w,x:x.x+E,y:x.y+E,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));let A=w(I,E);return a.createElement("svg",h({height:r,width:r,viewBox:`0 0 ${M} ${M}`,ref:t,role:"img"},C),!!u&&a.createElement("title",null,u),a.createElement("path",{fill:i,d:`M0,0 h${M}v${M}H0z`,shapeRendering:"crispEdges"}),a.createElement("path",{fill:l,d:A,shapeRendering:"crispEdges"}),N)});E.displayName="QRCodeSVG"}}]);
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.