vendor: 109,187 bytes, lines 1-20
1(globalThis.rspackChunk_clerk_ui=globalThis.rspackChunk_clerk_ui||[]).push([[1545],{6359(e,t,n){"use strict";n(9701),n(8206);var r=n(1134);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.J)(t)}n(3184);var i=function(){var e=o.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};n.d(t,{AH:()=>o,i7:()=>i})},5831(e,t,n){"use strict";var r=n(3109),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,l,u,a,s,c,f,d=!1;t||(t={}),l=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(f=document.createElement("span")).textContent=e,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(f),s.selectNodeContents(f),c.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(r){l&&console.error("unable to copy using execCommand: ",r),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){l&&console.error("unable to copy using clipboardData: ",r),l&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",u=n.replace(/#{\s*key\s*}/g,i),window.prompt(u,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),f&&document.body.removeChild(f),a()}return d}},547(e){e.exports=function(e,t){if("string"!=typeof e)throw TypeError("Expected a string");for(var n,r=String(e),o="",i=!!t&&!!t.extended,l=!!t&&!!t.globstar,u=!1,a=t&&"string"==typeof t.flags?t.flags:"",s=0,c=r.length;s<c;s++)switch(n=r[s]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":o+="\\"+n;break;case"?":if(i){o+=".";break}case"[":case"]":if(i){o+=n;break}case"{":if(i){u=!0,o+="(";break}case"}":if(i){u=!1,o+=")";break}case",":if(u){o+="|";break}o+="\\"+n;break;case"*":for(var f=r[s-1],d=1;"*"===r[s+1];)d++,s++;var m=r[s+1];l?d>1&&("/"===f||void 0===f)&&("/"===m||void 0===m)?(o+="((?:[^/]*(?:/|$))*)",s++):o+="([^/]*)":o+=".*";break;default:o+=n}return a&&~a.indexOf("g")||(o="^"+o+"$"),new RegExp(o,a)}},5181(e,t,n){"use strict";var r='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',o="u"<typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&u(e.parentNode)},a=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},s=function(e,t,n){if(u(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o=o.filter(n)},c=function(e,t,n){for(var o=[],l=Array.from(e);l.length;){var a=l.shift();if(!u(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),f=c(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else{i.call(a,r)&&n.filter(a)&&(t||!e.includes(a))&&o.push(a);var d=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),m=!u(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(d&&m){var p=c(!0===d?a.children:d.children,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:a,candidates:p})}else l.unshift.apply(l,a.children)}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||a(e))&&!f(e)?0:e.tabIndex},m=function(e,t){var n=d(e);return n<0&&t&&!f(e)?0:n},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},v=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},g=function(e){if(!e.name)return!0;var t,n=e.form||l(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=v(t,e.form);return!o||o===e},y=function(e){return h(e)&&"radio"===e.type&&!g(e)},w=function(e){var t,n,r,o,i,u,a,s=e&&l(e),c=null==(t=s)?void 0:t.host,f=!1;if(s&&s!==e)for(f=!!(null!=(n=c)&&null!=(r=n.ownerDocument)&&r.contains(c)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!f&&c;)f=!!(null!=(u=c=null==(i=s=l(c))?void 0:i.host)&&null!=(a=u.ownerDocument)&&a.contains(c));return f},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},E=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var u=e;e;){var a=e.parentElement,s=l(e);if(a&&!a.shadowRoot&&!0===r(a))return b(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=u}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},R=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},x=function(e,t){return!(t.disabled||u(t)||h(t)&&"hidden"===t.type||E(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||R(t))},C=function(e,t){return!(y(t)||0>d(t))&&!!x(e,t)},S=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},M=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=m(i,o),u=o?M(e.candidates):i;0===l?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:u})}),n.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},k=function(e,t){return M((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:S}):s(e,t.includeContainer,C.bind(null,t)))},A=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:x.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,x.bind(null,t))},T=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,r)&&C(t,e)};n.d(t,{AO:()=>T,Kr:()=>k,nq:()=>A})},3109(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},998(e,t,n){"use strict";n.d(t,{ll:()=>S,rD:()=>L,UU:()=>A,cY:()=>M,BN:()=>k,Ej:()=>T});var r=n(6014);function o(e,t,n){let o,{reference:i,floating:l}=e,u=(0,r.TV)(t),a=(0,r.Dz)(t),s=(0,r.sq)(a),c=(0,r.C0)(t),f=i.x+i.width/2-l.width/2,d=i.y+i.height/2-l.height/2,m=i[s]/2-l[s]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:d};break;case"left":o={x:i.x-l.width,y:d};break;default:o={x:i.x,y:i.y}}let p=(0,r.Sg)(t);return p&&(o[a]+=m*("end"===p?1:-1)*(n&&"y"===u?-1:1)),o}async function i(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:u,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=(0,r._3)(t,e),h=(0,r.nI)(p),v=a[m?"floating"===d?"reference":"floating":d],g=(0,r.B1)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===d?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),b=await (null==l.isElement?void 0:l.isElement(w))&&await (null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},E=(0,r.B1)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-E.top+h.top)/b.y,bottom:(E.bottom-g.bottom+h.bottom)/b.y,left:(g.left-E.left+h.left)/b.x,right:(E.right-g.right+h.right)/b.x}}let l=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:u=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:i},c=await (null==a.isRTL?void 0:a.isRTL(t)),f=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:m}=o(f,r,c),p=r,h=0,v={};for(let n=0;n<u.length;n++){let i=u[n];if(!i)continue;let{name:g,fn:y}=i,{x:w,y:b,data:E,reset:R}=await y({x:d,y:m,initialPlacement:r,placement:p,strategy:l,middlewareData:v,rects:f,platform:s,elements:{reference:e,floating:t}});d=null!=w?w:d,m=null!=b?b:m,v[g]={...v[g],...E},R&&h<50&&(h++,"object"==typeof R&&(R.placement&&(p=R.placement),R.rects&&(f=!0===R.rects?await a.getElementRects({reference:e,floating:t,strategy:l}):R.rects),{x:d,y:m}=o(f,p,c)),n=-1)}return{x:d,y:m,placement:p,strategy:l,middlewareData:v}},u=new Set(["left","top"]);async function a(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),a=(0,r.C0)(n),s=(0,r.Sg)(n),c="y"===(0,r.TV)(n),f=u.has(a)?-1:1,d=l&&c?-1:1,m=(0,r._3)(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&"number"==typeof v&&(h="end"===s?-1*v:v),c?{x:h*d,y:p*f}:{x:p*f,y:h*d}}var s=n(2092);function c(e){let t=(0,s.L9)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,s.sb)(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:o,a=(0,r.LI)(n)!==l||(0,r.LI)(o)!==u;return a&&(n=l,o=u),{width:n,height:o,$:a}}function f(e){return(0,s.vq)(e)?e:e.contextElement}function d(e){let t=f(e);if(!(0,s.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=c(t),u=(l?(0,r.LI)(n.width):n.width)/o,a=(l?(0,r.LI)(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}let m=(0,r.Jx)(0);function p(e){let t=(0,s.zk)(e);return(0,s.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function h(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),u=f(e),a=(0,r.Jx)(1);t&&(o?(0,s.vq)(o)&&(a=d(o)):a=d(e));let c=(void 0===(i=n)&&(i=!1),o&&i&&o===(0,s.zk)(u))?p(u):(0,r.Jx)(0),m=(l.left+c.x)/a.x,h=(l.top+c.y)/a.y,v=l.width/a.x,g=l.height/a.y;if(u&&o){let e=(0,s.zk)(u),t=(0,s.vq)(o)?(0,s.zk)(o):o,n=e,r=(0,s._m)(n);for(;r&&t!==n;){let e=d(r),t=r.getBoundingClientRect(),o=(0,s.L9)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;m*=e.x,h*=e.y,v*=e.x,g*=e.y,m+=i,h+=l,n=(0,s.zk)(r),r=(0,s._m)(n)}}return(0,r.B1)({width:v,height:g,x:m,y:h})}function v(e,t){let n=(0,s.CP)(e).scrollLeft;return t?t.left+n:h((0,s.ep)(e)).left+n}function g(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-v(e,n),y:n.top+t.scrollTop}}function y(e,t,n){var o;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=(0,s.zk)(e),i=(0,s.ep)(e),l=o.visualViewport,u=i.clientWidth,a=i.clientHeight,c=0,f=0;if(l){let e=!(0,s.Tc)()||"fixed"===t;r?e||(c=-l.offsetLeft,f=-l.offsetTop):(u=l.width,a=l.height,e&&(c=l.offsetLeft,f=l.offsetTop))}if(0>=v(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(u-=l)}return{width:u,height:a,x:c,y:f}}(e,n,t);else if("document"===t){let t,n,l,u,a,c;o=(0,s.ep)(e),t=(0,s.CP)(o),n=o.ownerDocument.body,l=(0,r.T9)(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),u=(0,r.T9)(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+v(o),c=-t.scrollTop,"rtl"===(0,s.L9)(n).direction&&(a+=(0,r.T9)(o.clientWidth,n.clientWidth)-l),i={width:l,height:u,x:a,y:c}}else if((0,s.vq)(t)){let e,r,o,l,u,a;r=(e=h(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=d(t),u=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:u,height:a,x:o*l.x,y:r*l.y}}else{let n=p(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(i)}function w(e){return"static"===(0,s.L9)(e).position}function b(e,t){if(!(0,s.sb)(e)||"fixed"===(0,s.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,s.ep)(e)===n&&(n=n.ownerDocument.body),n}function E(e,t){let n=(0,s.zk)(e);if((0,s.Tf)(e))return n;if(!(0,s.sb)(e)){let t=(0,s.$4)(e);for(;t&&!(0,s.eu)(t);){if((0,s.vq)(t)&&!w(t))return t;t=(0,s.$4)(t)}return n}let r=b(e,t);for(;r&&(0,s.Lv)(r)&&w(r);)r=b(r,t);return r&&(0,s.eu)(r)&&w(r)&&!(0,s.sQ)(r)?n:r||(0,s.gJ)(e)||n}let R=async function(e){let t=this.getOffsetParent||E,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,s.sb)(t),i=(0,s.ep)(t),l="fixed"===n,u=h(e,!0,l,t),a={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(0);if((o||!l)&&(("body"!==(0,s.mq)(t)||(0,s.ZU)(i))&&(a=(0,s.CP)(t)),o)){let e=h(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!o&&i&&(c.x=v(i));let f=!i||o||l?(0,r.Jx)(0):g(i,a);return{x:u.left+a.scrollLeft-c.x-f.x,y:u.top+a.scrollTop-c.y-f.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},x={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,u=(0,s.ep)(o),a=!!t&&(0,s.Tf)(t.floating);if(o===u||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=(0,r.Jx)(1),m=(0,r.Jx)(0),p=(0,s.sb)(o);if((p||!l)&&(("body"!==(0,s.mq)(o)||(0,s.ZU)(u))&&(c=(0,s.CP)(o)),p)){let e=h(o);f=d(o),m.x=e.x+o.clientLeft,m.y=e.y+o.clientTop}let v=!u||p||l?(0,r.Jx)(0):g(u,c);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-c.scrollTop*f.y+m.y+v.y}},getDocumentElement:s.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,s.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,s.v9)(e,[],!1).filter(e=>(0,s.vq)(e)&&"body"!==(0,s.mq)(e)),o=null,i="fixed"===(0,s.L9)(e).position,l=i?(0,s.$4)(e):e;for(;(0,s.vq)(l)&&!(0,s.eu)(l);){let e=(0,s.L9)(l),t=(0,s.sQ)(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=(0,s.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=y(t,l[0],i),a=u.top,c=u.right,f=u.bottom,d=u.left;for(let e=1;e<l.length;e++){let n=y(t,l[e],i);a=(0,r.T9)(n.top,a),c=(0,r.jk)(n.right,c),f=(0,r.jk)(n.bottom,f),d=(0,r.T9)(n.left,d)}return{width:c-d,height:f-a,x:d,y:a}},getOffsetParent:E,getElementRects:R,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:d,isElement:s.vq,isRTL:function(e){return"rtl"===(0,s.L9)(e).direction}};function C(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,m=f(e),p=l||u?[...m?(0,s.v9)(m):[],...t?(0,s.v9)(t):[]]:[];p.forEach(e=>{l&&e.addEventListener("scroll",n),u&&e.addEventListener("resize",n)});let v=m&&c?function(e,t,n){let o,i=null,l=(0,s.ep)(e);function u(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),u();let c=e.getBoundingClientRect(),{left:f,top:d,width:m,height:p}=c;if(n||t(),!m||!p)return;let h={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(l.clientWidth-(f+m))+"px "+-(0,r.RI)(l.clientHeight-(d+p))+"px "+-(0,r.RI)(f)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,s))||1},v=!0;function g(t){let n=t[0].intersectionRatio;if(!C(c,e.getBoundingClientRect()))return a();if(n!==s){if(!v)return a();n?a(!1,n):o=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{i=new IntersectionObserver(g,{...h,root:l.ownerDocument})}catch(e){i=new IntersectionObserver(g,h)}i.observe(e)}let c=(0,s.zk)(e),f=()=>a(n);return c.addEventListener("resize",f),a(!0),()=>{c.removeEventListener("resize",f),u()}}(m,n,u):null,g=-1,y=null;a&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===m&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),m&&!d&&y.observe(m),t&&y.observe(t));let w=d?h(e):null;return d&&function t(){let r=h(e);w&&!C(w,r)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}let M=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,s=await a(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i,platform:l}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),f={x:n,y:o},d=await l.detectOverflow(t,c),m=(0,r.TV)(i),p=(0,r.PG)(m),h=f[p],v=f[m],g=(e,t)=>(0,r.qE)(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);u&&(h=g(p,h)),a&&(v=g(m,v));let y=s.fn({...t,[p]:h,[m]:v});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[p]:u,[m]:a}}}}}},A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,l,u;let{placement:a,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...b}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=(0,r.C0)(a),R=(0,r.TV)(f),x=(0,r.C0)(f)===f,C=await (null==d.isRTL?void 0:d.isRTL(m.floating)),S=v||(x||!w?[(0,r.bV)(f)]:(0,r.WJ)(f)),M="none"!==y;!v&&M&&S.push(...(0,r.lP)(f,w,y,C));let k=[f,...S],A=await d.detectOverflow(t,b),T=[],L=(null==(o=s.flip)?void 0:o.overflows)||[];if(p&&T.push(A[E]),h){let e=(0,r.w7)(a,c,C);T.push(A[e[0]],A[e[1]])}if(L=[...L,{placement:a,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=k[e];if(t&&("alignment"!==h||R===(0,r.TV)(t)||L.every(e=>(0,r.TV)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(l=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(g){case"bestFit":{let e=null==(u=L.filter(e=>{if(M){let t=(0,r.TV)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(a!==n)return{reset:{placement:n}}}return{}}}},T=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o,{placement:i,rects:l,platform:u,elements:a}=t,{apply:s=()=>{},...c}=(0,r._3)(e,t),f=await u.detectOverflow(t,c),d=(0,r.C0)(i),m=(0,r.Sg)(i),p="y"===(0,r.TV)(i),{width:h,height:v}=l.floating;"top"===d||"bottom"===d?(n=d,o=m===(await (null==u.isRTL?void 0:u.isRTL(a.floating))?"start":"end")?"left":"right"):(o=d,n="end"===m?"top":"bottom");let g=v-f.top-f.bottom,y=h-f.left-f.right,w=(0,r.jk)(v-f[n],g),b=(0,r.jk)(h-f[o],y),E=t.middlewareData.shift,R=!E,x=w,C=b;null!=E&&E.enabled.x&&(C=y),null!=E&&E.enabled.y&&(x=g),R&&!m&&(p?C=h-2*(0,r.T9)(f.left,f.right):x=v-2*(0,r.T9)(f.top,f.bottom)),await s({...t,availableWidth:C,availableHeight:x});let S=await u.getDimensions(a.floating);return h!==S.width||v!==S.height?{reset:{rects:!0}}:{}}}},L=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...x,...o.platform,_c:r};return l(e,t,{...o,platform:i})}},9447(e,t,n){"use strict";var r=n(998),o=n(9701),i=n(8626),l="u">typeof document?o.useLayoutEffect:function(){};function u(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=a(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:m,floating:p}={},transform:h=!0,whileElementsMounted:v,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,E]=o.useState(f);u(b,f)||E(f);let[R,x]=o.useState(null),[C,S]=o.useState(null),M=o.useCallback(e=>{e!==L.current&&(L.current=e,x(e))},[]),k=o.useCallback(e=>{e!==P.current&&(P.current=e,S(e))},[]),A=m||R,T=p||C,L=o.useRef(null),P=o.useRef(null),O=o.useRef(y),I=null!=v,N=c(v),D=c(d),F=c(g),_=o.useCallback(()=>{if(!L.current||!P.current)return;let e={placement:t,strategy:n,middleware:b};D.current&&(e.platform=D.current),(0,r.rD)(L.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};B.current&&!u(O.current,t)&&(O.current=t,i.flushSync(()=>{w(t)}))})},[b,t,n,D,F]);l(()=>{!1===g&&O.current.isPositioned&&(O.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let B=o.useRef(!1);l(()=>(B.current=!0,()=>{B.current=!1}),[]),l(()=>{if(A&&(L.current=A),T&&(P.current=T),A&&T){if(N.current)return N.current(A,T,_);_()}},[A,T,_,N,I]);let W=o.useMemo(()=>({reference:L,floating:P,setReference:M,setFloating:k}),[M,k]),z=o.useMemo(()=>({reference:A,floating:T}),[A,T]),j=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=s(z.floating,y.x),r=s(z.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...a(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,z.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:_,refs:W,elements:z,floatingStyles:j}),[y,_,W,z,j])}n.d(t,{we:()=>f},{BN:(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ej:(e,t)=>{let n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},UU:(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},cY:(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}}})},6865(e,t,n){"use strict";var r,o=n(9701),i=n(3128),l=n(3569),u=n(2092),a=n(5181),s=n(8626),c=n(9447);function f(e){let t=o.useRef(void 0),n=o.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return o.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function d(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}let m=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function p(e){let{children:t,elementsRef:n,labelsRef:r}=e,[i,u]=o.useState(()=>new Set),a=o.useCallback(e=>{u(t=>new Set(t).add(e))},[]),s=o.useCallback(e=>{u(t=>{let n=new Set(t);return n.delete(e),n})},[]),c=o.useMemo(()=>{let e=new Map;return Array.from(i.keys()).sort(d).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,l.jsx)(m.Provider,{value:o.useMemo(()=>({register:a,unregister:s,map:c,elementsRef:n,labelsRef:r}),[a,s,c,n,r]),children:t})}function h(e){void 0===e&&(e={});let{label:t}=e,{register:n,unregister:r,map:l,elementsRef:u,labelsRef:a}=o.useContext(m),[s,c]=o.useState(null),f=o.useRef(null),d=o.useCallback(e=>{if(f.current=e,null!==s&&(u.current[s]=e,a)){var n;let r=void 0!==t;a.current[s]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[s,u,a,t]);return(0,i.OS)(()=>{let e=f.current;if(e)return n(e),()=>{r(e)}},[n,r]),(0,i.OS)(()=>{let e=f.current?l.get(f.current):null;null!=e&&c(e)},[l]),o.useMemo(()=>({ref:d,index:null==s?-1:s}),[s,d])}let v="active",g="selected",y="ArrowLeft",w="ArrowRight",b="ArrowUp",E="ArrowDown";function R(e,t){return"function"==typeof e?e(t):e?o.cloneElement(e,t):(0,l.jsx)("div",{...t})}let x=o.createContext({activeIndex:0,onNavigate:()=>{}}),C=[y,w],S=[b,E],M=[...C,...S],k=o.forwardRef(function(e,t){let{render:n,orientation:r="both",loop:u=!0,rtl:a=!1,cols:s=1,disabledIndices:c,activeIndex:f,onNavigate:d,itemSizes:m,dense:h=!1,...v}=e,[g,k]=o.useState(0),A=null!=f?f:g,T=(0,i.Jt)(null!=d?d:k),L=o.useRef([]),P=n&&"function"!=typeof n?n.props:{},O=o.useMemo(()=>({activeIndex:A,onNavigate:T}),[A,T]),I=s>1,N={...v,...P,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==v.onKeyDown||v.onKeyDown(e),null==P.onKeyDown||P.onKeyDown(e),function(e){if(!M.includes(e.key))return;let t=A,n=(0,i.Zb)(L,c),o=(0,i.vB)(L,c),l=a?y:w,f=a?w:y;if(I){let f=m||Array.from({length:L.current.length},()=>({width:1,height:1})),d=(0,i.zf)(f,s,h),p=d.findIndex(e=>null!=e&&!(0,i.FP)(L,e,c)),v=d.reduce((e,t,n)=>null==t||(0,i.FP)(L,t,c)?e:n,-1),g=d[(0,i.Kg)({current:d.map(e=>e?L.current[e]:null)},{event:e,orientation:r,loop:u,rtl:a,cols:s,disabledIndices:(0,i.Y3)([...("function"!=typeof c?c:null)||L.current.map((e,t)=>(0,i.FP)(L,t,c)?t:void 0),void 0],d),minIndex:p,maxIndex:v,prevIndex:(0,i.fl)(A>o?n:A,f,d,s,e.key===E?"bl":e.key===l?"tr":"tl")})];null!=g&&(t=g)}let d={horizontal:[l],vertical:[E],both:[l,E]}[r],p={horizontal:[f],vertical:[b],both:[f,b]}[r],v=I?M:({horizontal:C,vertical:S,both:M})[r];if(t===A&&[...d,...p].includes(e.key)&&(t=u&&t===o&&d.includes(e.key)?n:u&&t===n&&p.includes(e.key)?o:(0,i.BF)(L,{startingIndex:t,decrement:p.includes(e.key),disabledIndices:c})),t!==A&&!(0,i.du)(L,t)){var g;e.stopPropagation(),v.includes(e.key)&&e.preventDefault(),T(t),null==(g=L.current[t])||g.focus()}}(e)}};return(0,l.jsx)(x.Provider,{value:O,children:(0,l.jsx)(p,{elementsRef:L,children:R(n,N)})})}),A=o.forwardRef(function(e,t){let{render:n,...r}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:l,onNavigate:u}=o.useContext(x),{ref:a,index:s}=h(),c=f([a,t,i.ref]),d=l===s;return R(n,{...r,...i,ref:c,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==i.onFocus||i.onFocus(e),u(s)}})}),T={...r||(r=n.t(o,2))},L=!1,P=0,O=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+P++,I=T.useId||function(){let[e,t]=o.useState(()=>L?O():void 0);return(0,i.OS)(()=>{null==e&&t(O())},[]),o.useEffect(()=>{L=!0},[]),e};function N(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}let D=o.createContext(null),F=o.createContext(null),_=()=>{var e;return(null==(e=o.useContext(D))?void 0:e.id)||null};function B(e){let t=I(),n=o.useContext(F),r=_(),l=e||r;return(0,i.OS)(()=>{if(!t)return;let e={id:t,parentId:l};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,l]),t}function W(e){let{children:t,id:n}=e,r=_();return(0,l.jsx)(D.Provider,{value:o.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function z(e){let{children:t}=e,n=o.useRef([]),r=o.useCallback(e=>{n.current=[...n.current,e]},[]),i=o.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[u]=o.useState(()=>N());return(0,l.jsx)(F.Provider,{value:o.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:u}),[r,i,u]),children:t})}function j(e){return"data-floating-ui-"+e}function H(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let $=j("safe-polygon");function q(e,t,n){if(n&&!(0,i.Go)(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function U(e){return"function"==typeof e?e():e}function V(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:l,events:a,elements:s}=e,{enabled:c=!0,delay:f=0,handleClose:d=null,mouseOnly:m=!1,restMs:p=0,move:h=!0}=t,v=o.useContext(F),g=_(),y=(0,i.SE)(d),w=(0,i.SE)(f),b=(0,i.SE)(n),E=(0,i.SE)(p),R=o.useRef(),x=o.useRef(-1),C=o.useRef(),S=o.useRef(-1),M=o.useRef(!0),k=o.useRef(!1),A=o.useRef(()=>{}),T=o.useRef(!1),L=(0,i.Jt)(()=>{var e;let t=null==(e=l.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o.useEffect(()=>{if(c)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(H(x),H(S),M.current=!0,T.current=!1)}},[c,a]),o.useEffect(()=>{if(!c||!y.current||!n)return;function e(e){L()&&r(!1,e,"hover")}let t=(0,i.YE)(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,c,y,L]);let P=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=q(w.current,"close",R.current);o&&!C.current?(H(x),x.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(H(x),r(!1,e,n))},[w,r]),O=(0,i.Jt)(()=>{A.current(),C.current=void 0}),I=(0,i.Jt)(()=>{if(k.current){let e=(0,i.YE)(s.floating).body;e.style.pointerEvents="",e.removeAttribute($),k.current=!1}}),N=(0,i.Jt)(()=>!!l.current.openEvent&&["click","mousedown"].includes(l.current.openEvent.type));o.useEffect(()=>{if(c&&(0,u.vq)(s.domReference)){let r=s.domReference,i=s.floating;return n&&r.addEventListener("mouseleave",o),h&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",a),i.addEventListener("mouseleave",f)),()=>{n&&r.removeEventListener("mouseleave",o),h&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",a),i.removeEventListener("mouseleave",f))}}function e(e){if(H(x),M.current=!1,m&&!(0,i.Go)(R.current)||U(E.current)>0&&!q(w.current,"open"))return;let t=q(w.current,"open",R.current);t?x.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(N())return void I();A.current();let t=(0,i.YE)(s.floating);if(H(S),T.current=!1,y.current&&l.current.floatingContext){n||H(x),C.current=y.current({...l.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),O(),N()||P(e,!0,"safe-polygon")}});let r=C.current;t.addEventListener("mousemove",r),A.current=()=>{t.removeEventListener("mousemove",r)};return}"touch"===R.current&&(0,i.gR)(s.floating,e.relatedTarget)||P(e)}function o(e){N()||l.current.floatingContext&&(null==y.current||y.current({...l.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),O(),N()||P(e)}})(e))}function a(){H(x)}function f(e){N()||P(e,!1)}},[s,c,e,m,h,P,O,I,r,n,b,v,w,y,l,N,E]),(0,i.OS)(()=>{var e,t;if(c&&n&&null!=(e=y.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&L()){k.current=!0;let e=s.floating;if((0,u.vq)(s.domReference)&&e){let n=(0,i.YE)(s.floating).body;n.setAttribute($,"");let r=s.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[c,n,g,s,v,y,L]),(0,i.OS)(()=>{n||(R.current=void 0,T.current=!1,O(),I())},[n,O,I]),o.useEffect(()=>()=>{O(),H(x),H(S),I()},[c,s.domReference,O,I]);let D=o.useMemo(()=>{function e(e){R.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function o(){M.current||b.current||r(!0,t,"hover")}m&&!(0,i.Go)(R.current)||n||0===U(E.current)||T.current&&e.movementX**2+e.movementY**2<2||(H(S),"touch"===R.current?o():(T.current=!0,S.current=window.setTimeout(o,U(E.current))))}}},[m,r,n,b,E]);return o.useMemo(()=>c?{reference:D}:{},[c,D])}let Y=0;function J(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Y);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Y=requestAnimationFrame(i)}let K={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Q(e){return"inert"===e?K.inert:"aria-hidden"===e?K["aria-hidden"]:K.none}let X=new WeakSet,G={},Z=0;function ee(e,t,n){var r,o,i;let l,a,s,c,f,d,m;void 0===t&&(t=!1),void 0===n&&(n=!1);let p=((null==(r=e[0])?void 0:r.ownerDocument)||document).body;return o=e.concat(Array.from(p.querySelectorAll('[aria-live],[role="status"],output'))),i=t,l="data-floating-ui-inert",a=n?"inert":i?"aria-hidden":null,s=o.map(e=>{if(p.contains(e))return e;let t=function e(t){return t?(0,u.Ng)(t)?t.host:e(t.parentNode):null}(e);return p.contains(t)?t:null}).filter(e=>null!=e),c=new Set,f=new Set(s),d=[],G[l]||(G[l]=new WeakMap),m=G[l],s.forEach(function e(t){!(!t||c.has(t))&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||f.has(t)||[].forEach.call(t.children,t=>{if("script"!==(0,u.mq)(t))if(c.has(t))e(t);else{let e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=Q(a),o=(r.get(t)||0)+1,i=(m.get(t)||0)+1;r.set(t,o),m.set(t,i),d.push(t),1===o&&n&&X.add(t),1===i&&t.setAttribute(l,""),!n&&a&&t.setAttribute(a,"inert"===a?"":"true")}})}(p),c.clear(),Z++,()=>{d.forEach(e=>{let t=Q(a),n=(t.get(e)||0)-1,r=(m.get(e)||0)-1;t.set(e,n),m.set(e,r),n||(!X.has(e)&&a&&e.removeAttribute(a),X.delete(e)),r||e.removeAttribute(l)}),--Z||(K.inert=new WeakMap,K["aria-hidden"]=new WeakMap,K.none=new WeakMap,X=new WeakSet,G={})}}let et={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},en=o.forwardRef(function(e,t){let[n,r]=o.useState();(0,i.OS)(()=>{(0,i.nr)()&&r("button")},[]);let u={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[j("focus-guard")]:"",style:et};return(0,l.jsx)("span",{...e,...u})}),er={clipPath:"inset(50%)",position:"fixed",top:0,left:0},eo=o.createContext(null),ei=j("portal");function el(e){let{children:t,id:n,root:r,preserveTabOrder:a=!0}=e,c=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=I(),l=eu(),[a,s]=o.useState(null),c=o.useRef(null);return(0,i.OS)(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{c.current=null})},[a]),(0,i.OS)(()=>{if(!r||c.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(ei,""),e.appendChild(n),c.current=n,s(n)},[t,r]),(0,i.OS)(()=>{if(null===n||!r||c.current)return;let e=n||(null==l?void 0:l.portalNode);e&&!(0,u.Ll)(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let i=document.createElement("div");i.id=r,i.setAttribute(ei,""),(e=o||e).appendChild(i),c.current=i,s(i)},[t,n,r,l]),a}({id:n,root:r}),[f,d]=o.useState(null),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),v=o.useRef(null),g=null==f?void 0:f.modal,y=null==f?void 0:f.open,w=!!f&&!f.modal&&f.open&&a&&!!(r||c);return o.useEffect(()=>{if(c&&a&&!g)return c.addEventListener("focusin",e,!0),c.addEventListener("focusout",e,!0),()=>{c.removeEventListener("focusin",e,!0),c.removeEventListener("focusout",e,!0)};function e(e){c&&(0,i.Qp)(e)&&("focusin"===e.type?i.yV:i.N)(c)}},[c,a,g]),o.useEffect(()=>{!c||y||(0,i.yV)(c)},[y,c]),(0,l.jsxs)(eo.Provider,{value:o.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:h,afterInsideRef:v,portalNode:c,setFocusManagerState:d}),[a,c]),children:[w&&c&&(0,l.jsx)(en,{"data-type":"outside",ref:m,onFocus:e=>{if((0,i.Qp)(e,c)){var t;null==(t=h.current)||t.focus()}else{let e=f?f.domReference:null,t=(0,i.XJ)(e);null==t||t.focus()}}}),w&&c&&(0,l.jsx)("span",{"aria-owns":c.id,style:er}),c&&s.createPortal(t,c),w&&c&&(0,l.jsx)(en,{"data-type":"outside",ref:p,onFocus:e=>{if((0,i.Qp)(e,c)){var t;null==(t=v.current)||t.focus()}else{let t=f?f.domReference:null,n=(0,i.vF)(t);null==n||n.focus(),(null==f?void 0:f.closeOnFocusOut)&&(null==f||f.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let eu=()=>o.useContext(eo);function ea(e){return o.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let es=[];function ec(){es=es.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function ef(){ec();let e=es[es.length-1];return null==e?void 0:e.deref()}function ed(e,t){var n;if(!t.current.includes("floating")&&!(null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;let r=(0,i.kQ)(),o=(0,a.nq)(e,r).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,a.AO)(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===o.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let em=o.forwardRef(function(e,t){return(0,l.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:et})});function ep(e){let{context:t,children:n,disabled:r=!1,order:s=["content"],guards:c=!0,initialFocus:f=0,returnFocus:d=!0,restoreFocus:m=!1,modal:p=!0,visuallyHiddenDismiss:h=!1,closeOnFocusOut:v=!0,outsideElementsInert:g=!1,getInsideElements:y=()=>[]}=e,{open:w,onOpenChange:b,events:E,dataRef:R,elements:{domReference:x,floating:C}}=t,S=(0,i.Jt)(()=>{var e;return null==(e=R.current.floatingContext)?void 0:e.nodeId}),M=(0,i.Jt)(y),k="number"==typeof f&&f<0,A=(0,i.WZ)(x)&&k,T="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,L=!T||c,P=!L||T&&g,O=(0,i.SE)(s),I=(0,i.SE)(f),N=(0,i.SE)(d),D=o.useContext(F),_=eu(),B=o.useRef(null),W=o.useRef(null),z=o.useRef(!1),$=o.useRef(!1),q=o.useRef(-1),U=o.useRef(-1),V=null!=_,Y=(0,i.nd)(C),K=(0,i.Jt)(function(e){return void 0===e&&(e=Y),e?(0,a.Kr)(e,(0,i.kQ)()):[]}),Q=(0,i.Jt)(e=>{let t=K(e);return O.current.map(e=>x&&"reference"===e?x:Y&&"floating"===e?Y:t).filter(Boolean).flat()});o.useEffect(()=>{if(r||!p)return;function e(e){if("Tab"===e.key){(0,i.gR)(Y,(0,i.RS)((0,i.YE)(Y)))&&0===K().length&&!A&&(0,i.jo)(e);let t=Q(),n=(0,i.EW)(e);"reference"===O.current[0]&&n===x&&((0,i.jo)(e),e.shiftKey?J(t[t.length-1]):J(t[1])),"floating"===O.current[1]&&n===Y&&e.shiftKey&&((0,i.jo)(e),J(t[0]))}}let t=(0,i.YE)(Y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,x,Y,p,O,A,K,Q]),o.useEffect(()=>{if(!r&&C)return C.addEventListener("focusin",e),()=>{C.removeEventListener("focusin",e)};function e(e){let t=(0,i.EW)(e),n=K().indexOf(t);-1!==n&&(q.current=n)}},[r,C,K]),o.useEffect(()=>{if(r||!v)return;function e(){$.current=!0,setTimeout(()=>{$.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget,r=(0,i.EW)(e);queueMicrotask(()=>{let o=S(),l=!((0,i.gR)(x,t)||(0,i.gR)(C,t)||(0,i.gR)(t,C)||(0,i.gR)(null==_?void 0:_.portalNode,t)||null!=t&&t.hasAttribute(j("focus-guard"))||D&&((0,i.CM)(D.nodesRef.current,o).find(e=>{var n,r;return(0,i.gR)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,i.gR)(null==(r=e.context)?void 0:r.elements.domReference,t)})||(0,i.$4)(D.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,(0,i.nd)(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===x&&Y&&ed(Y,O),m&&n!==x&&!(null!=r&&r.isConnected)&&(0,i.RS)((0,i.YE)(Y))===(0,i.YE)(Y).body){(0,u.sb)(Y)&&Y.focus();let e=q.current,t=K(),n=t[e]||t[t.length-1]||Y;(0,u.sb)(n)&&n.focus()}if(R.current.insideReactTree){R.current.insideReactTree=!1;return}(A||!p)&&t&&l&&!$.current&&t!==ef()&&(z.current=!0,b(!1,e,"focus-out"))})}let n=!!(!D&&_);function o(){H(U),R.current.insideReactTree=!0,U.current=window.setTimeout(()=>{R.current.insideReactTree=!1})}if(C&&(0,u.sb)(x))return x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),C.addEventListener("focusout",t),n&&C.addEventListener("focusout",o,!0),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),C.removeEventListener("focusout",t),n&&C.removeEventListener("focusout",o,!0)}},[r,x,C,Y,p,D,_,b,v,m,K,A,S,O,R]);let X=o.useRef(null),G=o.useRef(null),Z=ea([X,null==_?void 0:_.beforeInsideRef]),er=ea([G,null==_?void 0:_.afterInsideRef]);function eo(e){return!r&&h&&p?(0,l.jsx)(em,{ref:"start"===e?B:W,onClick:e=>b(!1,e.nativeEvent),children:"string"==typeof h?h:"Dismiss"}):null}o.useEffect(()=>{var e,t;if(r||!C)return;let n=Array.from((null==_||null==(e=_.portalNode)?void 0:e.querySelectorAll("["+j("portal")+"]"))||[]),o=[C,null==(t=(D?(0,i.$4)(D.nodesRef.current,S()):[]).find(e=>{var t;return(0,i.WZ)((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...n,...M(),B.current,W.current,X.current,G.current,null==_?void 0:_.beforeOutsideRef.current,null==_?void 0:_.afterOutsideRef.current,O.current.includes("reference")||A?x:null].filter(e=>null!=e),l=p||A?ee(o,!P,P):ee(o);return()=>{l()}},[r,x,C,p,O,_,A,L,P,D,S,M]),(0,i.OS)(()=>{if(r||!(0,u.sb)(Y))return;let e=(0,i.YE)(Y),t=(0,i.RS)(e);queueMicrotask(()=>{let e=Q(Y),n=I.current,r=("number"==typeof n?e[n]:n.current)||Y,o=(0,i.gR)(Y,t);k||o||!w||J(r,{preventScroll:r===Y})})},[r,w,Y,k,Q,I]),(0,i.OS)(()=>{var e;if(r||!Y)return;let t=(0,i.YE)(Y);function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(z.current=!0),"outside-press"===t)if(r)z.current=!1;else if((0,i.YF)(n)||(0,i.Pg)(n))z.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?z.current=!1:z.current=!0}}e=(0,i.RS)(t),ec(),e&&"body"!==(0,u.mq)(e)&&(es.push(new WeakRef(e)),es.length>20&&(es=es.slice(-20))),E.on("openchange",n);let o=t.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,et),V&&x&&x.insertAdjacentElement("afterend",o),()=>{E.off("openchange",n);let e=(0,i.RS)(t),r=(0,i.gR)(C,e)||D&&(0,i.CM)(D.nodesRef.current,S(),!1).some(t=>{var n;return(0,i.gR)(null==(n=t.context)?void 0:n.elements.floating,e)}),l=function(){if("boolean"==typeof N.current){let e=x||ef();return e&&e.isConnected?e:o}return N.current.current||o}();queueMicrotask(()=>{let n,s=(n=(0,i.kQ)(),(0,a.AO)(l,n)?l:(0,a.Kr)(l,n)[0]||l);N.current&&!z.current&&(0,u.sb)(s)&&(s===e||e===t.body||r)&&s.focus({preventScroll:!0}),o.remove()})}},[r,C,Y,N,R,E,D,V,x,S]),o.useEffect(()=>(queueMicrotask(()=>{z.current=!1}),()=>{queueMicrotask(ec)}),[r]),(0,i.OS)(()=>{if(!r&&_)return _.setFocusManagerState({modal:p,closeOnFocusOut:v,open:w,onOpenChange:b,domReference:x}),()=>{_.setFocusManagerState(null)}},[r,_,p,w,b,v,x]),(0,i.OS)(()=>{r||Y&&ed(Y,O)},[r,Y,O]);let ei=!r&&L&&(!p||!A)&&(V||p);return(0,l.jsxs)(l.Fragment,{children:[ei&&(0,l.jsx)(en,{"data-type":"inside",ref:Z,onFocus:e=>{if(p){let e=Q();J("reference"===s[0]?e[0]:e[e.length-1])}else if(null!=_&&_.preserveTabOrder&&_.portalNode)if(z.current=!1,(0,i.Qp)(e,_.portalNode)){let e=(0,i.vF)(x);null==e||e.focus()}else{var t;null==(t=_.beforeOutsideRef.current)||t.focus()}}}),!A&&eo("start"),n,eo("end"),ei&&(0,l.jsx)(en,{"data-type":"inside",ref:er,onFocus:e=>{if(p)J(Q()[0]);else if(null!=_&&_.preserveTabOrder&&_.portalNode)if(v&&(z.current=!0),(0,i.Qp)(e,_.portalNode)){let e=(0,i.XJ)(x);null==e||e.focus()}else{var t;null==(t=_.afterOutsideRef.current)||t.focus()}}})]})}function eh(e){return(0,u.sb)(e.target)&&"BUTTON"===e.target.tagName}function ev(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:l,elements:{domReference:a}}=e,{enabled:s=!0,event:c="click",toggle:f=!0,ignoreMouse:d=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,h=o.useRef(),v=o.useRef(!1),g=o.useMemo(()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){let t=h.current;0!==e.button||"click"===c||(0,i.Go)(t,!0)&&d||(n&&f&&(!l.current.openEvent||!p||"mousedown"===l.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){let t=h.current;if("mousedown"===c&&h.current){h.current=void 0;return}(0,i.Go)(t,!0)&&d||(n&&f&&(!l.current.openEvent||!p||"click"===l.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,!(e.defaultPrevented||!m||eh(e))&&(" "!==e.key||(0,i.$u)(a)||(e.preventDefault(),v.current=!0),(0,u.sb)(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(n&&f?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!m||eh(e)||(0,i.$u)(a))&&" "===e.key&&v.current&&(v.current=!1,n&&f?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[l,a,c,d,m,r,n,p,f]);return o.useMemo(()=>s?{reference:g}:{},[s,g])}let eg={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ey={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ew=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function eb(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:l,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:h=!1,bubbles:v,capture:g}=t,y=o.useContext(F),w=(0,i.Jt)("function"==typeof f?f:()=>!1),b="function"==typeof f?w:f,E=o.useRef(!1),{escapeKey:R,outsidePress:x}=ew(v),{escapeKey:C,outsidePress:S}=ew(g),M=o.useRef(!1),k=(0,i.Jt)(e=>{var t;if(!n||!s||!c||"Escape"!==e.key||M.current)return;let o=null==(t=a.current.floatingContext)?void 0:t.nodeId,l=y?(0,i.CM)(y.nodesRef.current,o):[];if(!R&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,(0,i.O_)(e)?e.nativeEvent:e,"escape-key")}),A=(0,i.Jt)(e=>{var t;let n=()=>{var t;k(e),null==(t=(0,i.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,i.EW)(e))||t.addEventListener("keydown",n)}),T=(0,i.Jt)(e=>{var t;let n=a.current.insideReactTree;a.current.insideReactTree=!1;let o=E.current;if(E.current=!1,"click"===d&&o||n||"function"==typeof b&&!b(e))return;let s=(0,i.EW)(e),c="["+j("inert")+"]",f=(0,i.YE)(l.floating).querySelectorAll(c),m=(0,u.vq)(s)?s:null;for(;m&&!(0,u.eu)(m);){let e=(0,u.$4)(m);if((0,u.eu)(e)||!(0,u.vq)(e))break;m=e}if(f.length&&(0,u.vq)(s)&&!(0,i.tZ)(s)&&!(0,i.gR)(s,l.floating)&&Array.from(f).every(e=>!(0,i.gR)(m,e)))return;if((0,u.sb)(s)&&O){let t=(0,u.eu)(s),n=(0,u.L9)(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,a=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,f=a&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=l&&e.offsetY>s.clientHeight;if(f||d)return}let p=null==(t=a.current.floatingContext)?void 0:t.nodeId,h=y&&(0,i.CM)(y.nodesRef.current,p).some(t=>{var n;return(0,i.F2)(e,null==(n=t.context)?void 0:n.elements.floating)});if((0,i.F2)(e,l.floating)||(0,i.F2)(e,l.domReference)||h)return;let v=y?(0,i.CM)(y.nodesRef.current,p):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),L=(0,i.Jt)(e=>{var t;let n=()=>{var t;T(e),null==(t=(0,i.EW)(e))||t.removeEventListener(d,n)};null==(t=(0,i.EW)(e))||t.addEventListener(d,n)});o.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=R,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),M.current=!0}function f(){e=window.setTimeout(()=>{M.current=!1},5*!!(0,u.Tc)())}let m=(0,i.YE)(l.floating);c&&(m.addEventListener("keydown",C?A:k,C),m.addEventListener("compositionstart",o),m.addEventListener("compositionend",f)),b&&m.addEventListener(d,S?L:T,S);let p=[];return h&&((0,u.vq)(l.domReference)&&(p=(0,u.v9)(l.domReference)),(0,u.vq)(l.floating)&&(p=p.concat((0,u.v9)(l.floating))),!(0,u.vq)(l.reference)&&l.reference&&l.reference.contextElement&&(p=p.concat((0,u.v9)(l.reference.contextElement)))),(p=p.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t)}),()=>{c&&(m.removeEventListener("keydown",C?A:k,C),m.removeEventListener("compositionstart",o),m.removeEventListener("compositionend",f)),b&&m.removeEventListener(d,S?L:T,S),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[a,l,c,b,d,n,r,h,s,R,x,k,C,A,T,S,L]),o.useEffect(()=>{a.current.insideReactTree=!1},[a,b,d]);let P=o.useMemo(()=>({onKeyDown:k,...m&&{[eg[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[k,r,m,p]),O=o.useMemo(()=>{function e(e){0===e.button&&(E.current=!0)}return{onKeyDown:k,onMouseDown:e,onMouseUp:e,[ey[d]]:()=>{a.current.insideReactTree=!0}}},[k,d,a]);return o.useMemo(()=>s?{reference:P,floating:O}:{},[s,P,O])}function eE(e){var t,n;let{elements:r,...l}=void 0===e?{}:e,{nodeId:a}=l,s=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,l=I(),u=o.useRef({}),[a]=o.useState(()=>N()),s=null!=_(),[c,f]=o.useState(r.reference),d=(0,i.Jt)((e,t,r)=>{u.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),m=o.useMemo(()=>({setPositionReference:f}),[]),p=o.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return o.useMemo(()=>({dataRef:u,open:t,onOpenChange:d,elements:p,events:a,floatingId:l,refs:m}),[t,d,p,a,l,m])}({...l,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),f=l.rootContext||s,d=f.elements,[m,p]=o.useState(null),[h,v]=o.useState(null),g=(null==d?void 0:d.domReference)||m,y=o.useRef(null),w=o.useContext(F);(0,i.OS)(()=>{g&&(y.current=g)},[g]);let b=(0,c.we)({...l,elements:{...d,...h&&{reference:h}}}),E=o.useCallback(e=>{let t=(0,u.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;v(t),b.refs.setReference(t)},[b.refs]),R=o.useCallback(e=>{((0,u.vq)(e)||null===e)&&(y.current=e,p(e)),((0,u.vq)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!(0,u.vq)(e))&&b.refs.setReference(e)},[b.refs]),x=o.useMemo(()=>({...b.refs,setReference:R,setPositionReference:E,domReference:y}),[b.refs,R,E]),C=o.useMemo(()=>({...b.elements,domReference:g}),[b.elements,g]),S=o.useMemo(()=>({...b,...f,refs:x,elements:C,nodeId:a}),[b,x,C,a,f]);return(0,i.OS)(()=>{f.dataRef.current.floatingContext=S;let e=null==w?void 0:w.nodesRef.current.find(e=>e.id===a);e&&(e.context=S)}),o.useMemo(()=>({...b,context:S,refs:x,elements:C}),[b,x,C,S])}function eR(){return(0,i.cX)()&&(0,i.nr)()}function ex(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:l,dataRef:a,elements:s}=e,{enabled:c=!0,visibleOnly:f=!0}=t,d=o.useRef(!1),m=o.useRef(-1),p=o.useRef(!0);o.useEffect(()=>{if(!c)return;let e=(0,u.zk)(s.domReference);function t(){!n&&(0,u.sb)(s.domReference)&&s.domReference===(0,i.RS)((0,i.YE)(s.domReference))&&(d.current=!0)}function r(){p.current=!0}function o(){p.current=!1}return e.addEventListener("blur",t),eR()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),eR()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[s.domReference,n,c]),o.useEffect(()=>{if(c)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(d.current=!0)}},[l,c]),o.useEffect(()=>()=>{H(m)},[]);let h=o.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=(0,i.EW)(e.nativeEvent);if(f&&(0,u.vq)(t)){if(eR()&&!e.relatedTarget){if(!p.current&&!(0,i.$u)(t))return}else if(!(0,i.em)(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let t=e.relatedTarget,n=e.nativeEvent,o=(0,u.vq)(t)&&t.hasAttribute(j("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;let l=(0,i.RS)(s.domReference?s.domReference.ownerDocument:document);!t&&l===s.domReference||(0,i.gR)(null==(e=a.current.floatingContext)?void 0:e.refs.floating.current,l)||(0,i.gR)(s.domReference,l)||o||r(!1,n,"focus")})}}),[a,s.domReference,r,f]);return o.useMemo(()=>c?{reference:h}:{},[c,h])}function eC(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[v]:t,[g]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[v,g].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}function eS(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=o.useCallback(t=>eC(t,e,"reference"),t),l=o.useCallback(t=>eC(t,e,"floating"),n),u=o.useCallback(t=>eC(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])}function eM(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ek(e,t){return eM(t,e===b||e===E,e===y||e===w)}function eA(e,t,n){return eM(t,e===E,n?e===y:e===w)||"Enter"===e||" "===e||""===e}function eT(e,t,n){let r=e===E;return eM(t,n?e===y:e===w,r)}function eL(e,t,n,r){let o=e===b;return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:eM(t,n?e===w:e===y,o)}function eP(e,t){let{open:n,onOpenChange:r,elements:l,floatingId:a}=e,{listRef:s,activeIndex:c,onNavigate:f=()=>{},enabled:d=!0,selectedIndex:m=null,allowEscape:p=!1,loop:h=!1,nested:v=!1,rtl:g=!1,virtual:b=!1,focusItemOnOpen:R="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:C=!0,disabledIndices:S,orientation:M="vertical",parentOrientation:k,cols:A=1,scrollItemIntoView:T=!0,virtualItemRef:L,itemSizes:P,dense:O=!1}=t,I=(0,i.nd)(l.floating),N=(0,i.SE)(I),D=_(),B=o.useContext(F);(0,i.OS)(()=>{e.dataRef.current.orientation=M},[e,M]);let W=(0,i.Jt)(()=>{f(-1===H.current?null:H.current)}),z=(0,i.WZ)(l.domReference),j=o.useRef(R),H=o.useRef(null!=m?m:-1),$=o.useRef(null),q=o.useRef(!0),U=o.useRef(W),V=o.useRef(!!l.floating),Y=o.useRef(n),K=o.useRef(!1),Q=o.useRef(!1),X=(0,i.SE)(S),G=(0,i.SE)(n),Z=(0,i.SE)(T),ee=(0,i.SE)(m),[et,en]=o.useState(),[er,eo]=o.useState(),ei=(0,i.Jt)(()=>{function e(e){if(b){var t;null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=a+"-"+Math.random().toString(16).slice(2,10)),en(e.id),null==B||B.events.emit("virtualfocus",e),L&&(L.current=e)}else J(e,{sync:K.current,preventScroll:!0})}let t=s.current[H.current],n=Q.current;t&&e(t),(K.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[H.current]||t;if(!r)return;t||e(r);let o=Z.current;o&&eu&&(n||!q.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))})});(0,i.OS)(()=>{d&&(n&&l.floating?j.current&&null!=m&&(Q.current=!0,H.current=m,W()):V.current&&(H.current=-1,U.current()))},[d,n,l.floating,m,W]),(0,i.OS)(()=>{if(d&&n&&l.floating)if(null==c){if(K.current=!1,null!=ee.current)return;if(V.current&&(H.current=-1,ei()),(!Y.current||!V.current)&&j.current&&(null!=$.current||!0===j.current&&null==$.current)){let e=0,t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(H.current=null==$.current||eA($.current,M,g)||v?(0,i.Zb)(s,X.current):(0,i.vB)(s,X.current),$.current=null,W())};t()}}else(0,i.du)(s,c)||(H.current=c,ei(),Q.current=!1)},[d,n,l.floating,c,ee,v,s,M,g,W,ei,X]),(0,i.OS)(()=>{var e;if(!d||l.floating||!B||b||!V.current)return;let t=B.nodesRef.current,n=null==(e=t.find(e=>e.id===D))||null==(e=e.context)?void 0:e.elements.floating,r=(0,i.RS)((0,i.YE)(l.floating)),o=t.some(e=>e.context&&(0,i.gR)(e.context.elements.floating,r));n&&!o&&q.current&&n.focus({preventScroll:!0})},[d,l.floating,B,D,b]),(0,i.OS)(()=>{if(d&&B&&b&&!D)return B.events.on("virtualfocus",e),()=>{B.events.off("virtualfocus",e)};function e(e){eo(e.id),L&&(L.current=e)}},[d,B,b,D,L]),(0,i.OS)(()=>{U.current=W,Y.current=n,V.current=!!l.floating}),(0,i.OS)(()=>{n||($.current=null,j.current=R)},[n,R]);let el=null!=c,eu=o.useMemo(()=>{function e(e){if(!G.current)return;let t=s.current.indexOf(e);-1!==t&&H.current!==t&&(H.current=t,W())}return{onFocus(t){let{currentTarget:n}=t;K.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;K.current=!0,Q.current=!1,x&&e(n)},onPointerLeave(e){let{pointerType:t}=e;if(q.current&&"touch"!==t&&(K.current=!0,x&&(H.current=-1,W(),!b))){var n;null==(n=N.current)||n.focus({preventScroll:!0})}}}},[G,N,x,s,W,b]),ea=o.useCallback(()=>{var e;return null!=k?k:null==B||null==(e=B.nodesRef.current.find(e=>e.id===D))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[D,B,k]),es=(0,i.Jt)(e=>{if(q.current=!1,K.current=!0,229===e.which||!G.current&&e.currentTarget===N.current)return;if(v&&eL(e.key,M,g,A)){ek(e.key,ea())||(0,i.jo)(e),r(!1,e.nativeEvent,"list-navigation"),(0,u.sb)(l.domReference)&&(b?null==B||B.events.emit("virtualfocus",l.domReference):l.domReference.focus());return}let t=H.current,o=(0,i.Zb)(s,S),a=(0,i.vB)(s,S);if(z||("Home"===e.key&&((0,i.jo)(e),H.current=o,W()),"End"===e.key&&((0,i.jo)(e),H.current=a,W())),A>1){let t=P||Array.from({length:s.current.length},()=>({width:1,height:1})),n=(0,i.zf)(t,A,O),r=n.findIndex(e=>null!=e&&!(0,i.FP)(s,e,S)),l=n.reduce((e,t,n)=>null==t||(0,i.FP)(s,t,S)?e:n,-1),u=n[(0,i.Kg)({current:n.map(e=>null!=e?s.current[e]:null)},{event:e,orientation:M,loop:h,rtl:g,cols:A,disabledIndices:(0,i.Y3)([...("function"!=typeof S?S:null)||s.current.map((e,t)=>(0,i.FP)(s,t,S)?t:void 0),void 0],n),minIndex:r,maxIndex:l,prevIndex:(0,i.fl)(H.current>a?o:H.current,t,n,A,e.key===E?"bl":e.key===(g?y:w)?"tr":"tl"),stopEvent:!0})];if(null!=u&&(H.current=u,W()),"both"===M)return}if(ek(e.key,M)){if((0,i.jo)(e),n&&!b&&(0,i.RS)(e.currentTarget.ownerDocument)===e.currentTarget){H.current=eA(e.key,M,g)?o:a,W();return}eA(e.key,M,g)?h?H.current=t>=a?p&&t!==s.current.length?-1:o:(0,i.BF)(s,{startingIndex:t,disabledIndices:S}):H.current=Math.min(a,(0,i.BF)(s,{startingIndex:t,disabledIndices:S})):h?H.current=t<=o?p&&-1!==t?s.current.length:a:(0,i.BF)(s,{startingIndex:t,decrement:!0,disabledIndices:S}):H.current=Math.max(o,(0,i.BF)(s,{startingIndex:t,decrement:!0,disabledIndices:S})),(0,i.du)(s,H.current)&&(H.current=-1),W()}}),ec=o.useMemo(()=>b&&n&&el&&{"aria-activedescendant":er||et},[b,n,el,er,et]),ef=o.useMemo(()=>({"aria-orientation":"both"===M?void 0:M,...!z?ec:{},onKeyDown:es,onPointerMove(){q.current=!0}}),[ec,es,M,z]),ed=o.useMemo(()=>{function e(e){"auto"===R&&(0,i.YF)(e.nativeEvent)&&(j.current=!0)}function t(e){j.current=R,"auto"===R&&(0,i.Pg)(e.nativeEvent)&&(j.current=!0)}return{...ec,onKeyDown(e){q.current=!1;let t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),l=eT(e.key,M,g),u=eL(e.key,M,g,A),a=eT(e.key,ea(),g),c=ek(e.key,M),f=(v?a:c)||"Enter"===e.key||""===e.key.trim();if(b&&n){let n=null==B?void 0:B.nodesRef.current.find(e=>null==e.parentId),r=B&&n?(0,i.zG)(B.nodesRef.current,n.id):null;if((t||o)&&r&&L){var d,p,h;let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(l||u){let n=(null==(d=r.context)?void 0:d.elements.domReference)===e.currentTarget,o=u&&!n?null==(p=r.context)?void 0:p.elements.domReference:l?s.current.find(e=>(null==e?void 0:e.id)===et):null;o&&((0,i.jo)(e),o.dispatchEvent(t),eo(void 0))}if((c||o)&&r.context&&r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference){(0,i.jo)(e),null==(h=r.context.elements.domReference)||h.dispatchEvent(t);return}}return es(e)}if(n||C||!t){if(f){let t=ek(e.key,ea());$.current=v&&t?null:e.key}if(v){a&&((0,i.jo)(e),n?(H.current=(0,i.Zb)(s,X.current),W()):r(!0,e.nativeEvent,"list-navigation"));return}c&&(null!=m&&(H.current=m),(0,i.jo)(e),!n&&C?r(!0,e.nativeEvent,"list-navigation"):es(e),n&&W())}},onFocus(){n&&!b&&(H.current=-1,W())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[et,ec,A,es,X,R,s,v,W,r,n,C,M,ea,g,m,B,b,L]);return o.useMemo(()=>d?{reference:ed,floating:ef,item:eu}:{},[d,ed,ef,eu])}let eO=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function eI(e,t){var n,r;void 0===t&&(t={});let{open:l,elements:u,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=t,f=I(),d=(null==(n=u.domReference)?void 0:n.id)||f,m=o.useMemo(()=>{var e;return(null==(e=(0,i.nd)(u.floating))?void 0:e.id)||a},[u.floating,a]),p=null!=(r=eO.get(c))?r:c,h=null!=_(),v=o.useMemo(()=>"tooltip"===p||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:l?m:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":l?m:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&h&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[p,m,h,l,d,c]),g=o.useMemo(()=>{let e={id:m,...p&&{role:p}};return"tooltip"===p||"label"===c?e:{...e,..."menu"===p&&{"aria-labelledby":d}}},[p,m,d,c]),y=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:m+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[m,c]);return o.useMemo(()=>s?{reference:v,floating:g,item:y}:{},[s,v,g,y])}let eN=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function eD(e,t){return"function"==typeof e?e(t):e}function eF(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:r,close:l,common:u,duration:a=250}=t,c=e.placement,f=c.split("-")[0],d=o.useMemo(()=>({side:f,placement:c}),[f,c]),m="number"==typeof a,p=(m?a:a.open)||0,h=(m?a:a.close)||0,[v,g]=o.useState(()=>({...eD(u,d),...eD(n,d)})),{isMounted:y,status:w}=function(e,t){void 0===t&&(t={});let{open:n,elements:{floating:r}}=e,{duration:l=250}=t,u=("number"==typeof l?l:l.close)||0,[a,c]=o.useState("unmounted"),f=function(e,t){let[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,u);return f||"close"!==a||c("unmounted"),(0,i.OS)(()=>{if(r){if(n){c("initial");let e=requestAnimationFrame(()=>{s.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(e)}}c("close")}},[n,r]),{isMounted:f,status:a}}(e,{duration:a}),b=(0,i.SE)(n),E=(0,i.SE)(r),R=(0,i.SE)(l),x=(0,i.SE)(u);return(0,i.OS)(()=>{let e=eD(b.current,d),t=eD(R.current,d),n=eD(x.current,d),r=eD(E.current,d)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===w&&g(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===w&&g({transitionProperty:Object.keys(r).map(eN).join(","),transitionDuration:p+"ms",...n,...r}),"close"===w){let r=t||e;g({transitionProperty:Object.keys(r).map(eN).join(","),transitionDuration:h+"ms",...n,...r})}},[h,R,b,E,x,p,w,d]),{isMounted:y,styles:v}}n.d(t,{$c:()=>W,C1:()=>eP,DL:()=>eF,It:()=>eI,Mk:()=>V,P6:()=>z,SV:()=>f,XF:()=>el,bv:()=>eS,fI:()=>B,iQ:()=>ex,kp:()=>ev,ph:()=>p,rm:()=>h,s3:()=>ep,s9:()=>eb,we:()=>eE},{R1:_,eC:k,lb:A})},3128(e,t,n){"use strict";var r,o=n(2092),i=n(9701),l=n(6014),u=n(5181);function a(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function c(){return/apple/i.test(navigator.vendor)}function f(){let e=/android/i;return e.test(a())||e.test(s())}function d(){return a().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function m(){return s().includes("jsdom/")}let p="data-floating-ui-focusable",h="ArrowLeft",v="ArrowRight";function g(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function y(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function w(e){return"composedPath"in e?e.composedPath()[0]:e.target}function b(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function E(e){return e.matches("html,body")}function R(e){return(null==e?void 0:e.ownerDocument)||document}function x(e){return(0,o.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function C(e){return!!e&&"combobox"===e.getAttribute("role")&&x(e)}function S(e){if(!e||m())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function M(e){return e?e.hasAttribute(p)?e:e.querySelector("["+p+"]")||e:null}function k(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...k(e,t.id,n)])}function A(e,t){let n,r=-1;return!function t(o,i){i>r&&(n=o,r=i),k(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}function T(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function L(e){e.preventDefault(),e.stopPropagation()}function P(e){return"nativeEvent"in e}function O(e){return 0===e.mozInputSource&&!!e.isTrusted||(f()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function I(e){return!m()&&(!f()&&0===e.width&&0===e.height||f()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function N(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var D="u">typeof document?i.useLayoutEffect:function(){};function F(e){let t=i.useRef(e);return D(()=>{t.current=e}),t}let _={...r||(r=n.t(i,2))}.useInsertionEffect||(e=>e());function B(e){let t=i.useRef(()=>{});return _(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function W(e,t,n){return Math.floor(e/t)!==n}function z(e,t){return t<0||t>=e.current.length}function j(e,t){return $(e,{disabledIndices:t})}function H(e,t){return $(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function $(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,l=n;do l+=r?-i:i;while(l>=0&&l<=e.current.length-1&&J(e,l,o));return l}function q(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:u,disabledIndices:a,minIndex:s,maxIndex:c,prevIndex:f,stopEvent:d=!1}=t,m=f;if("ArrowUp"===n.key){if(d&&L(n),-1===f)m=c;else if(m=$(e,{startingIndex:m,amount:u,decrement:!0,disabledIndices:a}),o&&(f-u<s||m<0)){let e=f%u,t=c%u,n=c-(t-e);m=t===e?c:t>e?n:n-u}z(e,m)&&(m=f)}if("ArrowDown"===n.key&&(d&&L(n),-1===f?m=s:(m=$(e,{startingIndex:f,amount:u,disabledIndices:a}),o&&f+u>c&&(m=$(e,{startingIndex:f%u-u,amount:u,disabledIndices:a}))),z(e,m)&&(m=f)),"both"===r){let t=(0,l.RI)(f/u);n.key===(i?h:v)&&(d&&L(n),f%u!=u-1?(m=$(e,{startingIndex:f,disabledIndices:a}),o&&W(m,u,t)&&(m=$(e,{startingIndex:f-f%u-1,disabledIndices:a}))):o&&(m=$(e,{startingIndex:f-f%u-1,disabledIndices:a})),W(m,u,t)&&(m=f)),n.key===(i?v:h)&&(d&&L(n),f%u!=0?(m=$(e,{startingIndex:f,decrement:!0,disabledIndices:a}),o&&W(m,u,t)&&(m=$(e,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:a}))):o&&(m=$(e,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:a})),W(m,u,t)&&(m=f));let r=(0,l.RI)(c/u)===t;z(e,m)&&(m=o&&r?n.key===(i?v:h)?c:$(e,{startingIndex:f-f%u-1,disabledIndices:a}):f)}return m}function U(e,t,n){let r=[],o=0;return e.forEach((e,i)=>{let{width:l,height:u}=e,a=!1;for(n&&(o=0);!a;){let e=[];for(let n=0;n<l;n++)for(let r=0;r<u;r++)e.push(o+n+r*t);o%t+l<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),a=!0):o++}}),[...r]}function V(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e),l=t[e];switch(o){case"tl":return i;case"tr":if(!l)return i;return i+l.width-1;case"bl":if(!l)return i;return i+(l.height-1)*r;case"br":return n.lastIndexOf(e)}}function Y(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function J(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let K=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Q(e,t){let n=(0,u.Kr)(e,K()),r=n.length;if(0===r)return;let o=g(R(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function X(e){return Q(R(e).body,1)||e}function G(e){return Q(R(e).body,-1)||e}function Z(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!y(n,r)}function ee(e){(0,u.Kr)(e,K()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function et(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}n.d(t,{$4:()=>T,$u:()=>x,BF:()=>$,CM:()=>k,EW:()=>w,F2:()=>b,FP:()=>J,Go:()=>N,Jt:()=>B,Kg:()=>q,N:()=>ee,OS:()=>D,O_:()=>P,Pg:()=>I,Qp:()=>Z,RS:()=>g,SE:()=>F,WZ:()=>C,XJ:()=>G,Y3:()=>Y,YE:()=>R,YF:()=>O,Zb:()=>j,cX:()=>d,du:()=>z,em:()=>S,fl:()=>V,gR:()=>y,jo:()=>L,nd:()=>M,nr:()=>c,tZ:()=>E,vB:()=>H,vF:()=>X,yV:()=>et,zG:()=>A,zf:()=>U},{kQ:K})},2092(e,t,n){"use strict";let r;function o(){return"u">typeof window}function i(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!o()&&(e instanceof Node||e instanceof l(e).Node)}function s(e){return!!o()&&(e instanceof Element||e instanceof l(e).Element)}function c(e){return!!o()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function f(e){return!(!o()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function m(e){return/^(table|td|th)$/.test(i(e))}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let h=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;function y(e){let t=s(e)?R(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!b()&&(g(t.backdropFilter)||g(t.filter))||h.test(t.willChange||"")||v.test(t.contain||"")}function w(e){let t=C(e);for(;c(t)&&!E(t);){if(y(t))return t;if(p(t))break;t=C(t)}return null}function b(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function E(e){return/^(html|body|#document)$/.test(i(e))}function R(e){return l(e).getComputedStyle(e)}function x(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||f(e)&&e.host||u(e);return f(t)?t.host:t}function S(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>C,CP:()=>x,L9:()=>R,Ll:()=>a,Lv:()=>m,Ng:()=>f,Tc:()=>b,Tf:()=>p,ZU:()=>d,_m:()=>S,ep:()=>u,eu:()=>E,gJ:()=>w,mq:()=>i,sQ:()=>y,sb:()=>c,v9:()=>function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let i=function e(t){let n=C(t);return E(n)?(t.ownerDocument||t).body:c(n)&&d(n)?n:e(n)}(t),u=i===(null==(o=t.ownerDocument)?void 0:o.body),a=l(i);if(!u)return n.concat(i,e(i,[],r));{let t=S(a);return n.concat(a,a.visualViewport||[],d(i)?i:[],t&&r?e(t):[])}},vq:()=>s,zk:()=>l})},6014(e,t,n){"use strict";let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,u={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e,t,n){return o(e,r(t,n))}function s(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function d(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function p(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function h(e){return d(p(e))}function v(e,t,n){void 0===n&&(n=!1);let r=f(e),o=h(e),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=C(l)),[l,C(l)]}function g(e){let t=C(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],b=["right","left"],E=["top","bottom"],R=["bottom","top"];function x(e,t,n,r){let o=f(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:w;return t?w:b;case"left":case"right":return t?E:R;default:return[]}}(c(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}function C(e){let t=c(e);return u[t]+e.slice(t.length)}function S(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function M(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}n.d(t,{B1:()=>M,C0:()=>c,Dz:()=>h,PG:()=>d,Sg:()=>f,TV:()=>p,WJ:()=>g,_3:()=>s,bV:()=>C,lP:()=>x,nI:()=>S,qE:()=>a,sq:()=>m,w7:()=>v},{Jx:e=>({x:e,y:e}),LI:i,RI:l,T9:o,jk:r})},6850(e,t,n){"use strict";let r,o,i=new Set,l=new WeakMap,u=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap,f=new WeakMap,d=new WeakMap,m=new WeakMap,p=new WeakSet,h=0,v=0,g="__aa_tgt",y="__aa_del",w="__aa_new",b=e=>{var t;let n=!(t=e).reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]).every(e=>"#comment"===e.nodeName)&&t.reduce((e,t)=>{if(!1===e)return!1;if(t.target instanceof Element){if(S(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;n<t.target.children.length;n++){let r=t.target.children.item(n);if(r){if(y in r)return!1;S(t.target,r),e.add(r)}}}if(t.removedNodes.length)for(let n=0;n<t.removedNodes.length;n++){let r=t.removedNodes[n];if(y in r)return!1;r instanceof Element&&(e.add(r),S(t.target,r),u.set(r,[t.previousSibling,t.nextSibling]))}}return e},new Set);n&&n.forEach(e=>{var t,n;let o,i;return o=(t=e).isConnected,i=l.has(t),void(o&&u.has(t)&&u.delete(t),a.has(t)&&(null==(n=a.get(t))||n.cancel()),w in t?D(t):i&&o?function(e){let t,n=l.get(e),r=k(e);if(!P(e))return l.set(e,r);if(!n)return;let o=T(e);if("function"!=typeof o){let i=n.left-r.left,l=n.top-r.top,[u,a,s,c]=A(e,n,r),f={transform:`translate(${i}px, ${l}px)`},d={transform:"translate(0, 0)"};u!==a&&(f.width=`${u}px`,d.width=`${a}px`),s!==c&&(f.height=`${s}px`,d.height=`${c}px`),t=e.animate([f,d],{duration:o.duration,easing:o.easing})}else{let[i]=I(o(e,"remain",n,r));(t=new Animation(i)).play()}a.set(e,t),l.set(e,r),t.addEventListener("finish",()=>E(e),{once:!0})}(t):i&&!o?function(e){var t;let n;if(!u.has(e)||!l.has(e))return;let[o,i]=u.get(e);Object.defineProperty(e,y,{value:!0,configurable:!0});let s=window.scrollX,c=window.scrollY;if(i&&i.parentNode&&i.parentNode instanceof Element?i.parentNode.insertBefore(e,i):o&&o.parentNode?o.parentNode.appendChild(e):null==(t=L(e))||t.appendChild(e),!P(e))return F(e);let[f,d,m,p]=function(e){let t=l.get(e),[n,,r]=A(e,t,k(e)),o=e.parentElement;for(;o&&("static"===getComputedStyle(o).position||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);let i=getComputedStyle(o),u=l.get(o)||k(o);return[Math.round(t.top-u.top)-M(i.borderTopWidth),Math.round(t.left-u.left)-M(i.borderLeftWidth),n,r]}(e),g=T(e),w=l.get(e);(s!==h||c!==v)&&function(e,t,n,o){let i=h-t,l=v-n,u=document.documentElement.style.scrollBehavior;if("smooth"===getComputedStyle(r).scrollBehavior&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+i,window.scrollY+l),!e.parentElement)return;let a=e.parentElement,s=a.clientHeight,c=a.clientWidth,f=performance.now();!function e(){requestAnimationFrame(()=>{if(!N(o)){let t=s-a.clientHeight,n=c-a.clientWidth;f+o.duration>performance.now()?(window.scrollTo({left:window.scrollX-n,top:window.scrollY-t}),s=a.clientHeight,c=a.clientWidth,e()):document.documentElement.style.scrollBehavior=u}})}()}(e,s,c,g);let b={position:"absolute",top:`${f}px`,left:`${d}px`,width:`${m}px`,height:`${p}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(N(g)){let[t,r]=I(g(e,"remove",w));(null==r?void 0:r.styleReset)!==!1&&(b=(null==r?void 0:r.styleReset)||b,Object.assign(e.style,b)),(n=new Animation(t)).play()}else Object.assign(e.style,b),n=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:g.duration,easing:"ease-out"});a.set(e,n),n.addEventListener("finish",()=>F(e,b),{once:!0})}(t):D(t))})};function E(e){clearTimeout(m.get(e));let t=T(e),n=N(t)?500:t.duration;m.set(e,setTimeout(async()=>{let t=a.get(e);try{await (null==t?void 0:t.finished),l.set(e,k(e)),function(e){let t=s.get(e);null==t||t.disconnect();let n=l.get(e),o=0;n||(n=k(e),l.set(e,n));let{offsetWidth:i,offsetHeight:u}=r,a=[n.top-5,i-(n.left+5+n.width),u-(n.top+5+n.height),n.left-5].map(e=>`${-1*Math.floor(e)}px`).join(" "),c=new IntersectionObserver(()=>{++o>1&&E(e)},{root:r,threshold:1,rootMargin:a});c.observe(e),s.set(e,c)}(e)}catch{}},n))}function R(e){setTimeout(()=>{f.set(e,setInterval(()=>x(E.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function x(e){"function"==typeof requestIdleCallback?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let C="u">typeof window&&"ResizeObserver"in window;function S(e,t){t||g in e?!t||g in t||Object.defineProperty(t,g,{value:e}):Object.defineProperty(e,g,{value:e})}function M(e){return Number(e.replace(/[^0-9.\-]/g,""))}function k(e){let t=e.getBoundingClientRect(),{x:n,y:r}=function(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function A(e,t,n){let r=t.width,o=t.height,i=n.width,l=n.height,u=getComputedStyle(e);if("content-box"===u.getPropertyValue("box-sizing")){let e=M(u.paddingTop)+M(u.paddingBottom)+M(u.borderTopWidth)+M(u.borderBottomWidth),t=M(u.paddingLeft)+M(u.paddingRight)+M(u.borderRightWidth)+M(u.borderLeftWidth);r-=t,i-=t,o-=e,l-=e}return[r,i,o,l].map(Math.round)}function T(e){return g in e&&d.has(e[g])?d.get(e[g]):{duration:250,easing:"ease-in-out"}}function L(e){if(g in e)return e[g]}function P(e){let t=L(e);return!!t&&p.has(t)}function O(e,...t){t.forEach(t=>t(e,d.has(e)));for(let n=0;n<e.children.length;n++){let r=e.children.item(n);r&&t.forEach(e=>e(r,d.has(r)))}}function I(e){return Array.isArray(e)?e:[e]}function N(e){return"function"==typeof e}function D(e){let t;w in e&&delete e[w];let n=k(e);l.set(e,n);let r=T(e);if(P(e)){if("function"!=typeof r)t=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:1.5*r.duration,easing:"ease-in"});else{let[o]=I(r(e,"add",n));(t=new Animation(o)).play()}a.set(e,t),t.addEventListener("finish",()=>E(e),{once:!0})}}function F(e,t){var n;e.remove(),l.delete(e),u.delete(e),a.delete(e),null==(n=s.get(e))||n.disconnect(),setTimeout(()=>{if(y in e&&delete e[y],Object.defineProperty(e,w,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=""},0)}function _(e,t={}){if(C&&o&&!(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!N(t)&&!t.disrespectUserMotionPreference)){p.add(e),"static"===getComputedStyle(e).position&&Object.assign(e.style,{position:"relative"}),O(e,E,R,e=>null==o?void 0:o.observe(e)),N(t)?d.set(e,t):d.set(e,{duration:250,easing:"ease-in-out",...t});let n=new MutationObserver(b);n.observe(e,{childList:!0}),c.set(e,n),i.add(e)}return Object.freeze({parent:e,enable:()=>{p.add(e)},disable:()=>{p.delete(e)},isEnabled:()=>p.has(e),destroy:()=>{p.delete(e),i.delete(e),d.delete(e);let t=c.get(e);null==t||t.disconnect(),c.delete(e),O(e,e=>{null==o||o.unobserve(e);let t=a.get(e);try{null==t||t.cancel()}catch{}a.delete(e);let n=s.get(e);null==n||n.disconnect(),s.delete(e);let r=f.get(e);r&&clearInterval(r),f.delete(e);let i=m.get(e);i&&clearTimeout(i),m.delete(e),l.delete(e),u.delete(e)})}})}C&&(r=document.documentElement,new MutationObserver(b),o=new ResizeObserver(e=>{e.forEach(e=>{e.target===r&&(clearTimeout(m.get(r)),m.set(r,setTimeout(()=>{i.forEach(e=>O(e,e=>x(()=>E(e))))},100))),l.has(e.target)&&E(e.target)})}),window.addEventListener("scroll",()=>{v=window.scrollY,h=window.scrollX}),o.observe(r)),n.d(t,{Ay:()=>_})},9209(e,t,n){"use strict";var r=n(9701),o=Object.defineProperty,i=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=r.createContext({}),d=r.forwardRef((e,t)=>{let n;var o,d,h,v,g,{value:y,onChange:w,maxLength:b,textAlign:E="left",pattern:R,placeholder:x,inputMode:C="numeric",onComplete:S,pushPasswordManagerStrategy:M="increase-width",pasteTransformer:k,containerClassName:A,noScriptCSSFallback:T=p,render:L,children:P}=e,O=((e,t)=>{var n={};for(var r in e)a.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&u)for(var r of u(e))0>t.indexOf(r)&&s.call(e,r)&&(n[r]=e[r]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[I,N]=r.useState("string"==typeof O.defaultValue?O.defaultValue:""),D=null!=y?y:I,F=(n=r.useRef(),r.useEffect(()=>{n.current=D}),n.current),_=r.useCallback(e=>{null==w||w(e),N(e)},[w]),B=r.useMemo(()=>R?"string"==typeof R?new RegExp(R):R:null,[R]),W=r.useRef(null),z=r.useRef(null),j=r.useRef({value:D,onChange:_,isIOS:"u">typeof window&&(null==(d=null==(o=null==window?void 0:window.CSS)?void 0:o.supports)?void 0:d.call(o,"-webkit-touch-callout","none"))}),H=r.useRef({prev:[null==(h=W.current)?void 0:h.selectionStart,null==(v=W.current)?void 0:v.selectionEnd,null==(g=W.current)?void 0:g.selectionDirection]});r.useImperativeHandle(t,()=>W.current,[]),r.useEffect(()=>{let e=W.current,t=z.current;if(!e||!t)return;function n(){if(document.activeElement!==e){J(null),Q(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,o=e.maxLength,i=e.value,l=H.current.prev,u=-1,a=-1,s;if(0!==i.length&&null!==t&&null!==n){let e=t===n,r=t===i.length&&i.length<o;if(e&&!r){if(0===t)u=0,a=1,s="forward";else if(t===o)u=t-1,a=t,s="backward";else if(o>1&&i.length>1){let e=0;if(null!==l[0]&&null!==l[1]){s=t<l[1]?"backward":"forward";let n=l[0]===l[1]&&l[0]<o;"backward"!==s||n||(e=-1)}u=e+t,a=e+t+1}}-1!==u&&-1!==a&&u!==a&&W.current.setSelectionRange(u,a,s)}let c=-1!==u?u:t,f=-1!==a?a:n,d=null!=s?s:r;J(c),Q(f),H.current.prev=[c,f,d]}if(j.current.value!==e.value&&j.current.onChange(e.value),H.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&V(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";m(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),m(e.sheet,`[data-input-otp]:autofill { ${t} }`),m(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),m(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),m(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let o=new ResizeObserver(r);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}},[]);let[$,q]=r.useState(!1),[U,V]=r.useState(!1),[Y,J]=r.useState(null),[K,Q]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=W.current)||e.dispatchEvent(new Event("input"));let o=null==(t=W.current)?void 0:t.selectionStart,i=null==(n=W.current)?void 0:n.selectionEnd,l=null==(r=W.current)?void 0:r.selectionDirection;null!==o&&null!==i&&(J(o),Q(i),H.current.prev=[o,i,l])},0),setTimeout(e,10),setTimeout(e,50)},[D,U]),r.useEffect(()=>{void 0!==F&&D!==F&&F.length<b&&D.length===b&&(null==S||S(D))},[b,S,F,D]);let X=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[i,l]=r.useState(!1),[u,a]=r.useState(!1),[s,c]=r.useState(!1),f=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&u,[i,u,n]),d=r.useCallback(()=>{let r=e.current,o=t.current;if(!r||!o||s||"none"===n)return;let i=r.getBoundingClientRect().left+r.offsetWidth,u=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,u)===r||(l(!0),c(!0))},[e,t,s,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){a(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}},[e,n]),r.useEffect(()=>{let e=o||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(d,0),i=setTimeout(d,2e3),l=setTimeout(d,5e3),u=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(i),clearTimeout(l),clearTimeout(u)}},[t,o,n,d]),{hasPWMBadge:i,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:W,pushPasswordManagerStrategy:M,isFocused:U}),G=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,b);t.length>0&&B&&!B.test(t)?e.preventDefault():("string"==typeof F&&t.length<F.length&&document.dispatchEvent(new Event("selectionchange")),_(t))},[b,_,F,B]),Z=r.useCallback(()=>{var e;if(W.current){let t=Math.min(W.current.value.length,b-1),n=W.current.value.length;null==(e=W.current)||e.setSelectionRange(t,n),J(t),Q(n)}V(!0)},[b]),ee=r.useCallback(e=>{var t,n;let r=W.current;if(!k&&(!j.current.isIOS||!e.clipboardData||!r))return;let o=e.clipboardData.getData("text/plain"),i=k?k(o):o;e.preventDefault();let l=null==(t=W.current)?void 0:t.selectionStart,u=null==(n=W.current)?void 0:n.selectionEnd,a=(l!==u?D.slice(0,l)+i+D.slice(u):D.slice(0,l)+i+D.slice(l)).slice(0,b);if(a.length>0&&B&&!B.test(a))return;r.value=a,_(a);let s=Math.min(a.length,b-1),c=a.length;r.setSelectionRange(s,c),J(s),Q(c)},[b,_,B,D]),et=r.useMemo(()=>({position:"relative",cursor:O.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[O.disabled]),en=r.useMemo(()=>({position:"absolute",inset:0,width:X.willPushPWMBadge?`calc(100% + ${X.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:X.willPushPWMBadge?`inset(0 ${X.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:E,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[X.PWM_BADGE_SPACE_WIDTH,X.willPushPWMBadge,E]),er=r.useMemo(()=>r.createElement("input",i(((e,t)=>{for(var n in t||(t={}))a.call(t,n)&&c(e,n,t[n]);if(u)for(var n of u(t))s.call(t,n)&&c(e,n,t[n]);return e})({autoComplete:O.autoComplete||"one-time-code"},O),l({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===D.length||void 0,"data-input-otp-mss":Y,"data-input-otp-mse":K,inputMode:C,pattern:null==B?void 0:B.source,"aria-placeholder":x,style:en,maxLength:b,value:D,ref:W,onPaste:e=>{var t;ee(e),null==(t=O.onPaste)||t.call(O,e)},onChange:G,onMouseOver:e=>{var t;q(!0),null==(t=O.onMouseOver)||t.call(O,e)},onMouseLeave:e=>{var t;q(!1),null==(t=O.onMouseLeave)||t.call(O,e)},onFocus:e=>{var t;Z(),null==(t=O.onFocus)||t.call(O,e)},onBlur:e=>{var t;V(!1),null==(t=O.onBlur)||t.call(O,e)}}))),[G,Z,ee,C,en,b,K,Y,O,null==B?void 0:B.source,D]),eo=r.useMemo(()=>({slots:Array.from({length:b}).map((e,t)=>{var n;let r=U&&null!==Y&&null!==K&&(Y===K&&t===Y||t>=Y&&t<K),o=void 0!==D[t]?D[t]:null;return{char:o,placeholderChar:void 0!==D[0]?null:null!=(n=null==x?void 0:x[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}}),isFocused:U,isHovering:!O.disabled&&$}),[U,$,b,K,Y,O.disabled,D]),ei=r.useMemo(()=>L?L(eo):r.createElement(f.Provider,{value:eo},P),[P,eo,L]);return r.createElement(r.Fragment,null,null!==T&&r.createElement("noscript",null,r.createElement("style",null,T)),r.createElement("div",{ref:z,"data-input-otp-container":!0,style:et,className:A},ei,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},er)))});function m(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}d.displayName="Input";var p=` 2[data-input-otp] { 3 --nojs-bg: white !important; 4 --nojs-fg: black !important; 5 6 background-color: var(--nojs-bg) !important; 7 color: var(--nojs-fg) !important; 8 caret-color: var(--nojs-fg) !important; 9 letter-spacing: .25em !important; 10 text-align: center !important; 11 border: 1px solid var(--nojs-fg) !important; 12 border-radius: 4px !important; 13 width: 100% !important; 14} 15@media (prefers-color-scheme: dark) { 16 [data-input-otp] { 17 --nojs-bg: black !important; 18 --nojs-fg: white !important; 19 } 20}`;n.d(t,{UO:()=>"^\\d+$",wE:()=>d})},8753(e,t,n){"use strict";let r,o;var i,l,u,a,s,c=n(9701),f=Object.defineProperty,d=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&h(e,n,t[n]);if(d)for(var n of d(t))p.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>{var n={};for(var r in e)m.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)&&p.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 l=[];for(let e=0;e<this.size;e++)l.push(!1);for(let e=0;e<this.size;e++)this.modules.push(l.slice()),this.isFunction.push(l.slice());this.drawFunctionPatterns();const u=this.addEccAndInterleave(r);if(this.drawCodewords(u),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const 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,u=40,a=-1,s=!0){let c,f;if(!(t.MIN_VERSION<=i&&i<=u&&u<=t.MAX_VERSION)||a<-1||a>7)throw RangeError("Invalid value");for(c=i;;c++){let n=8*t.getNumDataCodewords(c,r),o=l.getTotalBits(e,c);if(o<=n){f=o;break}if(c>=u)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])s&&f<=8*t.getNumDataCodewords(c,e)&&(r=e);let d=[];for(let t of e)for(let e of(n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(c),d),t.getData()))d.push(e);o(d.length==f);let m=8*t.getNumDataCodewords(c,r);o(d.length<=m),n(0,Math.min(4,m-d.length),d),n(0,(8-d.length%8)%8,d),o(d.length%8==0);for(let e=236;d.length<m;e^=253)n(e,8,d);let p=[];for(;8*p.length<d.length;)p.push(0);return d.forEach((e,t)=>p[t>>>3]|=e<<7-(7&t)),new t(c,r,p,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 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,l=t+n;0<=i&&i<this.size&&0<=l&&l<this.size&&this.setFunctionModule(i,l,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],l=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],u=Math.floor(t.getNumRawDataModules(n)/8),a=i-u%i,s=Math.floor(u/i),c=[],f=t.reedSolomonComputeDivisor(l);for(let n=0,r=0;n<i;n++){let o=e.slice(r,r+s-l+(n<a?0:1));r+=o.length;let i=t.reedSolomonComputeRemainder(o,f);n<a&&o.push(0),c.push(o.concat(i))}let d=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!=s-l||n>=a)&&d.push(t[e])});return o(d.length==u),d}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 l=t-i,u=(t+1&2)==0?this.size-1-o:o;!this.isFunction[u][l]&&n<8*e.length&&(this.modules[u][l]=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 l=0;l<this.size;l++)this.modules[n][l]==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][l],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 l=0;l<this.size;l++)this.modules[l][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[l][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,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 l=i;e.QrSegment=i})(s||(s={})),l=(i=s||(s={})).QrCode||(i.QrCode={}),(r=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),l.Ecc=r,a=(u=s||(s={})).QrSegment||(u.QrSegment={}),(o=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new o(1,[10,12,14]),o.ALPHANUMERIC=new o(2,[9,11,13]),o.BYTE=new o(4,[8,16,16]),o.KANJI=new o(8,[8,10,12]),o.ECI=new o(7,[0,0,0]),a.Mode=o;var y=s,w={L:y.QrCode.Ecc.LOW,M:y.QrCode.Ecc.MEDIUM,Q:y.QrCode.Ecc.QUARTILE,H:y.QrCode.Ecc.HIGH},b="#FFFFFF",E="#000000";function R(e,t=0){let n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(i,l){if(!i&&null!==o){n.push(`M${o+t} ${r+t}h${l-o}v1H${o+t}z`),o=null;return}if(l===e.length-1){if(!i)return;null===o?n.push(`M${l+t},${r+t} h1v1H${l+t}z`):n.push(`M${o+t},${r+t} h${l+1-o}v1H${o+t}z`);return}i&&null===o&&(o=l)})}),n.join("")}function x(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 C({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:u}){let a=c.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...y.QrSegment.makeSegments(t)),e),[]);return y.QrCode.encodeSegments(r,w[t],n,void 0,void 0,u)},[e,t,n,u]),{cells:s,margin:f,numCells:d,calculatedImageSettings:m}=c.useMemo(()=>{let e=a.getModules(),t=null!=o?Math.max(Math.floor(o),0):4*!!r,n=e.length+2*t,u=function(e,t,n,r){if(null==r)return null;let o=e.length+2*n,i=Math.floor(.1*t),l=o/t,u=(r.width||i)*l,a=(r.height||i)*l,s=null==r.x?e.length/2-u/2:r.x*l,c=null==r.y?e.length/2-a/2:r.y*l,f=null==r.opacity?1:r.opacity,d=null;if(r.excavate){let e=Math.floor(s),t=Math.floor(c),n=Math.ceil(u+s-e),r=Math.ceil(a+c-t);d={x:e,y:t,w:n,h:r}}return{x:s,y:c,h:a,w:u,excavation:d,opacity:f,crossOrigin:r.crossOrigin}}(e,l,t,i);return{cells:e,margin:t,numCells:n,calculatedImageSettings:u}},[a,l,i,r,o]);return{qrcode:a,margin:f,cells:s,numCells:d,calculatedImageSettings:m}}var S=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();c.forwardRef(function(e,t){let{value:n,size:r=128,level:o="L",bgColor:i=b,fgColor:l=E,includeMargin:u=!1,minVersion:a=1,boostLevel:s,marginSize:f,imageSettings:d}=e,m=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:p}=m,h=g(m,["style"]),y=null==d?void 0:d.src,w=c.useRef(null),M=c.useRef(null),k=c.useCallback(e=>{w.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[A,T]=c.useState(!1),{margin:L,cells:P,numCells:O,calculatedImageSettings:I}=C({value:n,level:o,minVersion:a,boostLevel:s,includeMargin:u,marginSize:f,imageSettings:d,size:r});c.useEffect(()=>{if(null!=w.current){let e=w.current,t=e.getContext("2d");if(!t)return;let n=P,o=M.current,u=null!=I&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;u&&null!=I.excavation&&(n=x(P,I.excavation));let a=window.devicePixelRatio||1;e.height=e.width=r*a;let s=r/O*a;t.scale(s,s),t.fillStyle=i,t.fillRect(0,0,O,O),t.fillStyle=l,S?t.fill(new Path2D(R(n,L))):P.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+L,n+L,1,1)})}),I&&(t.globalAlpha=I.opacity),u&&t.drawImage(o,I.x+L,I.y+L,I.w,I.h)}}),c.useEffect(()=>{T(!1)},[y]);let N=v({height:r,width:r},p),D=null;return null!=y&&(D=c.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{T(!0)},ref:M,crossOrigin:null==I?void 0:I.crossOrigin})),c.createElement(c.Fragment,null,c.createElement("canvas",v({style:N,height:r,width:r,ref:k,role:"img"},h)),D)}).displayName="QRCodeCanvas";var M=c.forwardRef(function(e,t){let{value:n,size:r=128,level:o="L",bgColor:i=b,fgColor:l=E,includeMargin:u=!1,minVersion:a=1,boostLevel:s,title:f,marginSize:d,imageSettings:m}=e,p=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:y,numCells:w,calculatedImageSettings:S}=C({value:n,level:o,minVersion:a,boostLevel:s,includeMargin:u,marginSize:d,imageSettings:m,size:r}),M=y,k=null;null!=m&&null!=S&&(null!=S.excavation&&(M=x(y,S.excavation)),k=c.createElement("image",{href:m.src,height:S.h,width:S.w,x:S.x+h,y:S.y+h,preserveAspectRatio:"none",opacity:S.opacity,crossOrigin:S.crossOrigin}));let A=R(M,h);return c.createElement("svg",v({height:r,width:r,viewBox:`0 0 ${w} ${w}`,ref:t,role:"img"},p),!!f&&c.createElement("title",null,f),c.createElement("path",{fill:i,d:`M0,0 h${w}v${w}H0z`,shapeRendering:"crispEdges"}),c.createElement("path",{fill:l,d:A,shapeRendering:"crispEdges"}),k)});M.displayName="QRCodeSVG",n.d(t,{h:()=>M})}}]);
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.