keyring-chatbot-agent 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,73 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".chat-button{cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s ease;border-radius:16px}.chat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.chat-button:active{transform:scale(.95)}.chat-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;z-index:9999;pointer-events:all;animation:fadeIn .2s ease}#chat-modal-title{color:#0b3988;font-weight:900;font-style:Regular;font-size:18px}.chat-modal-overlay.chat-modal-overlay--left{justify-content:flex-start}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-modal{width:90%;max-width:480px;height:700px;max-height:calc(100dvh - 64px);background:#f5f5f7;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;margin:20px;pointer-events:all;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.chat-modal-header{background:#fff;padding:8px 8px 8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7;flex-flow:column}.chat-modal-header-title{width:100%;display:flex;align-items:center;justify-content:space-between}.chat-modal-header-left{display:flex;align-items:center;gap:6px}.keyring-logo{width:22px;height:30px}.chat-modal-header h3{margin:0;font-size:18px;font-weight:700;color:#1a1a1d}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:8px;color:#666;transition:all .2s}.close-button:hover{background:#f5f5f7;color:#000}.chat-user-info{display:flex;align-items:center;gap:6px;width:100%}.user-wallet,.user-wallet a{font-size:14px;font-weight:500;color:#0b3988}.copy-address-btn{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:3px;color:#999;border-radius:4px;transition:color .15s,background .15s;line-height:0}@media(min-width:640px){.copy-address-btn:hover{color:#1a1a1d;background:#f0f0f0}}.chat-modal-messages-wrapper{position:relative;flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-modal-messages{flex:1;padding:8px 16px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;align-self:center;width:fit-content;margin:0 auto 8px}.message{display:flex;animation:messageSlide .3s ease;position:relative}@media(min-width:640px){.message:hover .message-reply-button{opacity:1}}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-reply-button{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e5e5e7;border-radius:8px;padding:6px;cursor:pointer;opacity:0;transition:all .2s;box-shadow:0 2px 8px #0000001a;z-index:10}.message-bot .message-reply-button{right:20px}.message-user .message-reply-button{left:20px}.message-reply-button:hover{background:#f5f5f7;transform:translateY(-50%) scale(1.1)}.message-reply-button svg{display:block;width:16px;height:16px;color:#666}.message-bot{justify-content:flex-start}.message-user{justify-content:flex-end}.message-bubble{max-width:85%;padding:8px 16px;border-radius:20px}.message-bot .message-bubble{background:#fff;box-shadow:0 2px 8px #0000000f;border-bottom-left-radius:4px}.message-user .message-bubble{background:#5b7fff;color:#fff;border-bottom-right-radius:4px}.message-user .message-bubble a{color:#fff}.message-reply-to{background:#0000000d;padding:8px 12px;border-radius:6px;margin-bottom:8px;border-left:3px solid #5b7fff}.message-bot .message-reply-to{background:#f5f5f7}.message-user .message-reply-to{background:#ffffff26;border-left-color:#ffffff80}.message-reply-to-label{font-size:11px;font-weight:600;margin-bottom:4px}.message-bot .message-reply-to-label{color:#5b7fff}.message-user .message-reply-to-label{color:#ffffffe6}.message-reply-to-text{font-size:12px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-text{font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-line}.message-bot .message-text{color:#1a1a1d}.message-user .message-text{color:#fff}.message-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;margin-bottom:8px}.message-button{flex:1 1 calc(50% - 4px);min-width:100px;padding:6px 12px;background:#fffffff2;border:1px solid #e0e0e0;border-radius:12px;font-size:13px;font-weight:500;color:#1a1a1d;cursor:pointer;transition:all .2s ease;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-button.full-width{flex:1 1 100%;text-align:center;white-space:normal;font-size:14px}@media(min-width:640px){.message-button:hover{background:#fff;border-color:#007aff;color:#007aff;transform:translateY(-1px);box-shadow:0 2px 8px #007aff26}.message-button:active{transform:translateY(0);box-shadow:0 1px 4px #007aff1a}}.message-user .message-button{background:#fff3;border-color:#ffffff4d;color:#fff}.message-user .message-button:hover{background:#ffffff4d;border-color:#ffffff80}.message-timestamp{line-height:1;font-size:11px;color:#999;display:flex;align-items:center;gap:4px;justify-content:flex-end}.message-user .message-timestamp{color:#ffffffb3}.check-icon{width:14px;height:14px}.typing-indicator .message-bubble{padding:12px 18px;display:flex;gap:6px;min-width:60px}.typing-dot{width:8px;height:8px;border-radius:50%;background:#999;animation:typingDot 1.4s infinite ease-in-out}.typing-dot:nth-child(1){animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-8px);opacity:1}}.suggestions-container{display:flex;flex-direction:column;gap:10px;margin-top:8px}.suggestion-button{background:#d4d8f0;border:none;padding:6px 12px;border-radius:12px;display:flex;gap:12px;cursor:pointer;transition:all .2s;font-size:14px;font-weight:500;color:#1a1a1d;width:100%;text-align:center;align-items:center;justify-content:center}.suggestion-button:hover{background:#c5caeb;transform:translateY(-1px)}.suggestion-icon{font-size:18px}.chat-modal-input{padding:8px 16px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:8px;box-shadow:0 -5px 8px 4px #0000000d;border-radius:12px 12px 0 0}.reply-preview{background:#f5f5f7;padding:6px 6px 6px 12px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600}.reply-preview-text{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-preview-close{background:transparent;border:none;cursor:pointer;padding:2px;color:#999;transition:color .2s;flex-shrink:0}.reply-preview-close:hover{color:#666}.chat-modal-input-row{display:flex;gap:12px;align-items:center}.chat-modal-input input{flex:1;padding:14px 18px;border:1px solid #e5e5e7;border-radius:12px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s;height:44px}.chat-modal-input input::placeholder{color:#999}.chat-modal-input input:focus{border-color:#5b7fff;box-shadow:0 0 0 3px #5b7fff1a}.chat-modal-input input:disabled{opacity:.6;cursor:not-allowed;background:#f5f5f7}.send-button{width:40px;height:40px;border-radius:50%;background:#5b7fff;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.send-button:hover:not(:disabled){background:#4a6fee;transform:scale(1.05)}.send-button:disabled{opacity:.4;cursor:not-allowed}.chat-modal-messages::-webkit-scrollbar{width:6px}.chat-modal-messages::-webkit-scrollbar-thumb{background:#d1d1d6;border-radius:3px}@media(max-width:640px){.chat-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:12px 12px 0 0;margin:0}}.action-status{margin-top:8px;padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top:8px;margin-bottom:8px}.action-form-title{font-weight:600;font-size:.9em;margin-bottom:10px;color:#1a1a2e;display:flex;align-items:center;gap:6px}.action-form-general-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;margin-bottom:10px;font-size:.8em;color:#dc2626;font-weight:500;display:flex;align-items:center;gap:6px}.action-form-fields{display:flex;flex-direction:column;gap:8px}.action-form-field{display:flex;flex-direction:column;gap:3px}.action-form-field label{font-size:.75em;font-weight:500;color:#6b7280}.action-form-field input,.action-form-field textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;background:#fff;color:#1a1a2e;outline:none;transition:border-color .2s;font-family:inherit}.action-form-field textarea{resize:none;word-break:break-all}.action-form-field input:focus,.action-form-field textarea:focus{border-color:#0b3988;box-shadow:0 0 0 2px #6c5ce726}.action-form-field input.error,.action-form-field textarea.error{border-color:#ef4444}.action-form-field input.readonly,.action-form-field textarea.readonly{background:#f3f4f6;color:#6b7280;cursor:not-allowed;border-color:#e5e7eb}.action-form-field .field-error{font-size:.7em;color:#ef4444;margin-top:1px}.action-form-actions{display:flex;gap:8px;margin-top:10px}.action-form-submit{flex:1;padding:8px 14px;background:#0b3988;color:#fff;border:none;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:background .2s}.action-form-submit:hover:not(:disabled){background:#5a4bd1}.action-form-submit:disabled{background:#a5b4fc;cursor:not-allowed}.action-form-cancel{padding:8px 14px;background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:all .2s}.action-form-cancel:hover{background:#f3f4f6;color:#374151}.action-form-token-info{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:8px 10px;margin-bottom:10px}.token-info-row{display:flex;align-items:center;gap:8px}.token-info-logo{border-radius:50%;flex-shrink:0}.token-info-details{display:flex;flex-direction:column;gap:2px;min-width:0}.token-info-name{font-size:.8em;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.token-info-balance{font-size:.75em;color:#4b5563}.token-info-usd{color:#0b3988;font-weight:500}.action-form-field-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.action-form-field-header .action-form-field-label{margin-bottom:0;font-size:12px}.action-form-pct-btns{display:inline-flex;gap:4px}.action-form-pct-btn{padding:1px 6px;font-size:.7em;font-weight:600;color:#0b3988;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;cursor:pointer;transition:all .15s}@media(min-width:640px){.action-form-pct-btn:hover:not(:disabled){background:#0b3988;color:#fff}}.action-form-pct-btn:disabled{opacity:.5;cursor:not-allowed}.action-form-max-btn{font-weight:700}.action-form-nft-info{margin-bottom:10px;text-align:center;display:flex;align-items:center;justify-content:center}.nft-info-image{width:80px;height:80px;border-radius:8px;object-fit:contain;background:#e5e7eb;padding:4px}.scroll-to-bottom-btn{position:absolute;bottom:16px;right:20px;background:#1a1a1dd6;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000040;z-index:20;transition:background .15s,transform .15s,box-shadow .15s;animation:fadeInUp .18s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:640px){.scroll-to-bottom-btn:hover{background:#2d2d35;box-shadow:0 6px 16px #0000004d;transform:scale(1.08)}}.scroll-to-bottom-btn:active{transform:scale(.96)}.message-content{display:block;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden;font-size:inherit;line-height:1.5}.mc-line{min-height:1.2em;word-break:break-word}.mc-empty-line{height:.5em}.mc-heading{font-weight:600;margin:.3em 0;word-break:break-word}.mc-h1{font-size:1.4em}.mc-h2{font-size:1.2em}.mc-h3{font-size:1.05em}.mc-inline-code{background:#afb8c133;padding:1px 5px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.88em}.mc-codeblock{background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:6px 0;overflow:hidden;max-width:100%}.mc-codeblock-lang{background:#e8ecf0;padding:3px 10px;font-size:.75em;font-weight:600;color:#57606a;text-transform:uppercase;font-family:Monaco,Menlo,monospace;border-bottom:1px solid #d0d7de}.mc-codeblock pre{margin:0;padding:10px;overflow-x:auto}.mc-codeblock code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85em;line-height:1.5;color:#24292f;white-space:pre}.mc-link{color:#0969da;text-decoration:none;word-break:break-word}.mc-link:hover{text-decoration:underline}.mc-image{max-width:150px;width:150px;height:150px;object-fit:contain;border-radius:8px;margin:8px 0;display:block}.mc-image-inline{width:20px;height:20px;border-radius:50%;margin:0 4px;display:inline-block;vertical-align:middle;object-fit:cover}.mc-blockquote{margin:4px 0;padding:2px 0 2px 12px;color:#57606a;border-left:3px solid #d0d7de}.mc-hr{height:1px;border:0;background:#d0d7de;margin:.4em 0}.message-content strong{font-weight:600}.message-content del{text-decoration:line-through}.mc-link-previews{display:flex;flex-direction:column;gap:6px;margin-top:6px}.link-preview{display:flex;flex-direction:column;border:1px solid #e1e4e8;border-radius:10px;overflow:hidden;margin:8px 0 4px;text-decoration:none;color:inherit;background:#fafbfc;transition:box-shadow .2s ease,border-color .2s ease;max-width:100%;cursor:pointer}.link-preview:hover{border-color:#c8ccd1;box-shadow:0 2px 8px #00000014}.link-preview__image-wrapper{width:100%;max-height:160px;overflow:hidden;background:#f0f2f4;display:flex;align-items:center;justify-content:center}.link-preview__image{width:100%;height:auto;max-height:160px;object-fit:cover;display:block}.link-preview__content{padding:10px 12px;display:flex;flex-direction:column;gap:4px;min-width:0}.link-preview__title{font-weight:600;font-size:.88em;line-height:1.35;color:#1a1a2e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.link-preview__description{font-size:.8em;line-height:1.4;color:#57606a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.link-preview__url{display:flex;align-items:center;gap:5px;font-size:.73em;color:#8b949e;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview__favicon{width:14px;height:14px;border-radius:2px;flex-shrink:0;object-fit:contain}.link-preview--loading{pointer-events:none}.link-preview__skeleton{padding:10px 12px;display:flex;gap:10px}.link-preview__skeleton-text{flex:1;display:flex;flex-direction:column;gap:8px}.link-preview__skeleton-line{height:10px;background:linear-gradient(90deg,#e8e8e8 25%,#f5f5f5,#e8e8e8 75%);background-size:200% 100%;animation:linkPreviewShimmer 1.5s ease-in-out infinite;border-radius:4px}.link-preview__skeleton-line--title{width:75%;height:12px}.link-preview__skeleton-line--desc{width:90%}.link-preview__skeleton-line--url{width:40%}@keyframes linkPreviewShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.message-bot .link-preview{background:#ffffff8c;border-color:#00000014}.message-user .link-preview{background:#ffffff26;border-color:#fff3}.message-user .link-preview__title{color:#fff}.message-user .link-preview__description{color:#fffc}.message-user .link-preview__url{color:#fff9}.message-user .link-preview:hover{border-color:#ffffff59;box-shadow:0 2px 8px #00000026}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
+ function e(e){return e&&e.i&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if("function"==typeof n){var t=function e(){var t=!1;try{t=this instanceof e}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"i",{value:!0}),Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var t,r,i={exports:{}},o={},a={},s={exports:{}},l={};function u(){if(r)return l;r=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),n=/* @__PURE__ */Symbol.for("react.portal"),t=/* @__PURE__ */Symbol.for("react.fragment"),i=/* @__PURE__ */Symbol.for("react.strict_mode"),o=/* @__PURE__ */Symbol.for("react.profiler"),a=/* @__PURE__ */Symbol.for("react.consumer"),s=/* @__PURE__ */Symbol.for("react.context"),u=/* @__PURE__ */Symbol.for("react.forward_ref"),c=/* @__PURE__ */Symbol.for("react.suspense"),f=/* @__PURE__ */Symbol.for("react.memo"),d=/* @__PURE__ */Symbol.for("react.lazy"),h=/* @__PURE__ */Symbol.for("react.activity"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function y(e,n,t){this.props=e,this.context=n,this.refs=v,this.updater=t||m}function w(){}function g(e,n,t){this.props=e,this.context=n,this.refs=v,this.updater=t||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=y.prototype;var k=g.prototype=new w;k.constructor=g,b(k,y.prototype),k.isPureReactComponent=!0;var A=Array.isArray;function x(){}var E={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function C(n,t,r){var i=r.ref;return{$$typeof:e,type:n,key:t,ref:void 0!==i?i:null,props:r}}function T(n){return"object"==typeof n&&null!==n&&n.$$typeof===e}var I=/\/+/g;function M(e,n){return"object"==typeof e&&null!==e&&null!=e.key?(t=""+e.key,r={"=":"=0",":":"=2"},"$"+t.replace(/[=:]/g,function(e){return r[e]})):n.toString(36);var t,r}function O(t,r,i,o,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l,u,c=!1;if(null===t)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case e:case n:c=!0;break;case d:return O((c=t.o)(t.u),r,i,o,a)}}if(c)return a=a(t),c=""===o?"."+M(t,0):o,A(a)?(i="",null!=c&&(i=c.replace(I,"$&/")+"/"),O(a,r,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+c,a=C(l.type,u,l.props)),r.push(a)),1;c=0;var f,h=""===o?".":o+":";if(A(t))for(var m=0;m<t.length;m++)c+=O(o=t[m],r,i,s=h+M(o,m),a);else if("function"==typeof(m=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=p&&f[p]||f["@@iterator"])?f:null))for(t=m.call(t),m=0;!(o=t.next()).done;)c+=O(o=o.value,r,i,s=h+M(o,m++),a);else if("object"===s){if("function"==typeof t.then)return O(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(e.status="pending",e.then(function(n){"pending"===e.status&&(e.status="fulfilled",e.value=n)},function(n){"pending"===e.status&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,i,o,a);throw r=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function R(e,n,t){if(null==e)return e;var r=[],i=0;return O(e,r,"","",function(e){return n.call(t,e,i++)}),r}function N(e){if(-1===e.I){var n=e.O;(n=n()).then(function(n){0!==e.I&&-1!==e.I||(e.I=1,e.O=n)},function(n){0!==e.I&&-1!==e.I||(e.I=2,e.O=n)}),-1===e.I&&(e.I=0,e.O=n)}if(1===e.I)return e.O.default;throw e.O}var B="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},F={map:R,forEach:function(e,n,t){R(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return R(e,function(){n++}),n},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return l.Activity=h,l.Children=F,l.Component=y,l.Fragment=t,l.Profiler=o,l.PureComponent=g,l.StrictMode=i,l.Suspense=c,l.R=E,l.N={__proto__:null,c:function(e){return E.H.useMemoCache(e)}},l.cache=function(e){return function(){return e.apply(null,arguments)}},l.cacheSignal=function(){return null},l.cloneElement=function(e,n,t){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=b({},e.props),i=e.key;if(null!=n)for(o in void 0!==n.key&&(i=""+n.key),n)!S.call(n,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===n.ref||(r[o]=n[o]);var o=arguments.length-2;if(1===o)r.children=t;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return C(e.type,i,r)},l.createContext=function(e){return(e={$$typeof:s,U:e,P:e,j:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,V:e},e},l.createElement=function(e,n,t){var r,i={},o=null;if(null!=n)for(r in void 0!==n.key&&(o=""+n.key),n)S.call(n,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=n[r]);var a=arguments.length-2;if(1===a)i.children=t;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return C(e,o,i)},l.createRef=function(){return{current:null}},l.forwardRef=function(e){return{$$typeof:u,render:e}},l.isValidElement=T,l.lazy=function(e){return{$$typeof:d,u:{I:-1,O:e},o:N}},l.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},l.startTransition=function(e){var n=E.T,t={};E.T=t;try{var r=e(),i=E.S;null!==i&&i(t,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,B)}catch(o){B(o)}finally{null!==n&&null!==t.types&&(n.types=t.types),E.T=n}},l.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},l.use=function(e){return E.H.use(e)},l.useActionState=function(e,n,t){return E.H.useActionState(e,n,t)},l.useCallback=function(e,n){return E.H.useCallback(e,n)},l.useContext=function(e){return E.H.useContext(e)},l.useDebugValue=function(){},l.useDeferredValue=function(e,n){return E.H.useDeferredValue(e,n)},l.useEffect=function(e,n){return E.H.useEffect(e,n)},l.useEffectEvent=function(e){return E.H.useEffectEvent(e)},l.useId=function(){return E.H.useId()},l.useImperativeHandle=function(e,n,t){return E.H.useImperativeHandle(e,n,t)},l.useInsertionEffect=function(e,n){return E.H.useInsertionEffect(e,n)},l.useLayoutEffect=function(e,n){return E.H.useLayoutEffect(e,n)},l.useMemo=function(e,n){return E.H.useMemo(e,n)},l.useOptimistic=function(e,n){return E.H.useOptimistic(e,n)},l.useReducer=function(e,n,t){return E.H.useReducer(e,n,t)},l.useRef=function(e){return E.H.useRef(e)},l.useState=function(e){return E.H.useState(e)},l.useSyncExternalStore=function(e,n,t){return E.H.useSyncExternalStore(e,n,t)},l.useTransition=function(){return E.H.useTransition()},l.version="19.2.4",l}var c,f,d,h,p={exports:{}};function m(){return c||(c=1,e=p,n=p.exports,"production"!==process.env.NODE_ENV&&function(){function t(e,n){Object.defineProperty(i.prototype,e,{get:function(){}})}function r(e,n){var t=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+n;q[t]||(q[t]=!0)}function i(e,n,t){this.props=e,this.context=n,this.refs=J,this.updater=t||G}function o(){}function a(e,n,t){this.props=e,this.context=n,this.refs=J,this.updater=t||G}function s(){}function l(e){return""+e}function u(e){try{l(e);var n=!1}catch(i){n=!0}if(n){var t=(n=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),l(e)}}function c(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===_?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case N:return"Fragment";case F:return"Profiler";case B:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList";case z:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case R:return"Portal";case D:return e.displayName||"Context";case L:return(e.V.displayName||"Context")+".Consumer";case U:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case H:return null!==(n=e.displayName||null)?n:c(e.type)||"Memo";case V:n=e.u,e=e.o;try{return c(e(n))}catch(t){}}return null}function f(e){if(e===N)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===V)return"<...>";try{var n=c(e);return n?"<"+n+">":"<...>"}catch(t){return"<...>"}}function d(){var e=$.A;return null===e?null:e.getOwner()}function h(){return Error("react-stack-top-frame")}function p(e){if(ee.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function m(){var e=c(this.type);return te[e]||(te[e]=!0),void 0!==(e=this.props.ref)?e:null}function b(e,n,t,r,i,o){var a=t.ref;return e={$$typeof:O,type:e,key:n,props:t,W:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:m}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e.q={},Object.defineProperty(e.q,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"J",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"K",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function v(e){y(e)?e.q&&(e.q.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===V&&("fulfilled"===e.u.status?y(e.u.value)&&e.u.value.q&&(e.u.value.q.validated=1):e.q&&(e.q.validated=1))}function y(e){return"object"==typeof e&&null!==e&&e.$$typeof===O}function w(e,n){return"object"==typeof e&&null!==e&&null!=e.key?(u(e.key),t=""+e.key,r={"=":"=0",":":"=2"},"$"+t.replace(/[=:]/g,function(e){return r[e]})):n.toString(36);var t,r}function g(e,n,t,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a,l,c,f=!1;if(null===e)f=!0;else switch(o){case"bigint":case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case O:case R:f=!0;break;case V:return g((f=e.o)(e.u),n,t,r,i)}}if(f){i=i(f=e);var d=""===r?"."+w(f,0):r;return Z(i)?(t="",null!=d&&(t=d.replace(oe,"$&/")+"/"),g(i,n,t,"",function(e){return e})):null!=i&&(y(i)&&(null!=i.key&&(f&&f.key===i.key||u(i.key)),a=i,l=t+(null==i.key||f&&f.key===i.key?"":(""+i.key).replace(oe,"$&/")+"/")+d,l=b(a.type,l,a.props,a.W,a.K,a._),a.q&&(l.q.validated=a.q.validated),t=l,""!==r&&null!=f&&y(f)&&null==f.key&&f.q&&!f.q.validated&&(t.q.validated=2),i=t),n.push(i)),1}if(f=0,d=""===r?".":r+":",Z(e))for(var h=0;h<e.length;h++)f+=g(r=e[h],n,t,o=d+w(r,h),i);else if("function"==typeof(h=null===(c=e)||"object"!=typeof c?null:"function"==typeof(c=W&&c[W]||c["@@iterator"])?c:null))for(e.entries,e=h.call(e),h=0;!(r=e.next()).done;)f+=g(r=r.value,n,t,o=d+w(r,h++),i);else if("object"===o){if("function"==typeof e.then)return g(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(s,s):(e.status="pending",e.then(function(n){"pending"===e.status&&(e.status="fulfilled",e.value=n)},function(n){"pending"===e.status&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),n,t,r,i);throw n=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return f}function k(e,n,t){if(null==e)return e;var r=[],i=0;return g(e,r,"","",function(e){return n.call(t,e,i++)}),r}function A(e){if(-1===e.I){var n=e.$;null!=n&&(n.start=n.end=performance.now());var t=(n=e.O)();if(t.then(function(n){if(0===e.I||-1===e.I){e.I=1,e.O=n;var r=e.$;null!=r&&(r.end=performance.now()),void 0===t.status&&(t.status="fulfilled",t.value=n)}},function(n){if(0===e.I||-1===e.I){e.I=2,e.O=n;var r=e.$;null!=r&&(r.end=performance.now()),void 0===t.status&&(t.status="rejected",t.reason=n)}}),null!=(n=e.$)){n.value=t;var r=t.displayName;"string"==typeof r&&(n.name=r)}-1===e.I&&(e.I=0,e.O=t)}if(1===e.I)return(n=e.O).default;throw e.O}function x(){return $.H}function E(){$.asyncTransitions--}function S(n){if(null===le)try{var t=("require"+Math.random()).slice(0,7);le=(e&&e[t]).call(e,"timers").setImmediate}catch(r){le=function(e){!1===se&&(se=!0);var n=new MessageChannel;n.port1.onmessage=e,n.port2.postMessage(void 0)}}return le(n)}function C(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function T(e,n){ue=n}function I(e,n,t){var r=$.actQueue;if(null!==r)if(0!==r.length)try{return M(r),void S(function(){return I(e,n,t)})}catch(i){$.thrownErrors.push(i)}else $.actQueue=null;0<$.thrownErrors.length?(r=C($.thrownErrors),$.thrownErrors.length=0,t(r)):n(e)}function M(e){if(!fe){fe=!0;var n=0;try{for(;n<e.length;n++)for(var t=e[n];;){$.didUsePromise=!1;var r=t(!1);if(null===r)break;if($.didUsePromise)return e[n]=t,void e.splice(0,n);t=r}e.length=0}catch(i){e.splice(0,n+1),$.thrownErrors.push(i)}finally{fe=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var O=/* @__PURE__ */Symbol.for("react.transitional.element"),R=/* @__PURE__ */Symbol.for("react.portal"),N=/* @__PURE__ */Symbol.for("react.fragment"),B=/* @__PURE__ */Symbol.for("react.strict_mode"),F=/* @__PURE__ */Symbol.for("react.profiler"),L=/* @__PURE__ */Symbol.for("react.consumer"),D=/* @__PURE__ */Symbol.for("react.context"),U=/* @__PURE__ */Symbol.for("react.forward_ref"),P=/* @__PURE__ */Symbol.for("react.suspense"),j=/* @__PURE__ */Symbol.for("react.suspense_list"),H=/* @__PURE__ */Symbol.for("react.memo"),V=/* @__PURE__ */Symbol.for("react.lazy"),z=/* @__PURE__ */Symbol.for("react.activity"),W=Symbol.iterator,q={},G={isMounted:function(){return!1},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e){r(e,"replaceState")},enqueueSetState:function(e){r(e,"setState")}},Y=Object.assign,J={};Object.freeze(J),i.prototype.isReactComponent={},i.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var K={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(he in K)K.hasOwnProperty(he)&&t(he,K[he]);o.prototype=i.prototype,(K=a.prototype=new o).constructor=a,Y(K,i.prototype),K.isPureReactComponent=!0;var X,Q,Z=Array.isArray,_=/* @__PURE__ */Symbol.for("react.client.reference"),$={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,ne=console.createTask?console.createTask:function(){return null},te={},re=(K={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(K,h)(),ie=ne(f(h)),oe=/\/+/g,ae="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},se=!1,le=null,ue=0,ce=!1,fe=!1,de="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:S;K=Object.freeze({__proto__:null,c:function(e){return x().useMemoCache(e)}});var he={map:k,forEach:function(e,n,t){k(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return k(e,function(){n++}),n},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!y(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Activity=z,n.Children=he,n.Component=i,n.Fragment=N,n.Profiler=F,n.PureComponent=a,n.StrictMode=B,n.Suspense=P,n.R=$,n.N=K,n.act=function(e){var n=$.actQueue,t=ue;ue++;var r=$.actQueue=null!==n?n:[],i=!1;try{var o=e()}catch(l){$.thrownErrors.push(l)}if(0<$.thrownErrors.length)throw T(0,t),e=C($.thrownErrors),$.thrownErrors.length=0,e;if(null!==o&&"object"==typeof o&&"function"==typeof o.then){var a=o;return de(function(){i||ce||(ce=!0)}),{then:function(e,n){i=!0,a.then(function(i){if(T(0,t),0===t){try{M(r),S(function(){return I(i,e,n)})}catch(a){$.thrownErrors.push(a)}if(0<$.thrownErrors.length){var o=C($.thrownErrors);$.thrownErrors.length=0,n(o)}}else e(i)},function(e){T(0,t),0<$.thrownErrors.length?(e=C($.thrownErrors),$.thrownErrors.length=0,n(e)):n(e)})}}}var s=o;if(T(0,t),0===t&&(M(r),0!==r.length&&de(function(){i||ce||(ce=!0)}),$.actQueue=null),0<$.thrownErrors.length)throw e=C($.thrownErrors),$.thrownErrors.length=0,e;return{then:function(e,n){i=!0,0===t?($.actQueue=r,S(function(){return I(s,e,n)})):e(s)}}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.cacheSignal=function(){return null},n.captureOwnerStack=function(){var e=$.getCurrentStack;return null===e?null:e()},n.cloneElement=function(e,n,t){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r,i=Y({},e.props),o=e.key,a=e.W;if(null!=n)for(s in(r=!(ee.call(n,"ref")&&(r=Object.getOwnPropertyDescriptor(n,"ref").get)&&r.isReactWarning)&&void 0!==n.ref)&&(a=d()),p(n)&&(u(n.key),o=""+n.key),n)!ee.call(n,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===n.ref||(i[s]=n[s]);var s=arguments.length-2;if(1===s)i.children=t;else if(1<s){r=Array(s);for(var l=0;l<s;l++)r[l]=arguments[l+2];i.children=r}for(i=b(e.type,o,i,a,e.K,e._),o=2;o<arguments.length;o++)v(arguments[o]);return i},n.createContext=function(e){return(e={$$typeof:D,U:e,P:e,j:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:L,V:e},e.ee=null,e.ne=null,e},n.createElement=function(e,n,t){for(var r=2;r<arguments.length;r++)v(arguments[r]);r={};var i=null;if(null!=n)for(l in Q||!("te"in n)||"key"in n||(Q=!0),p(n)&&(u(n.key),i=""+n.key),n)ee.call(n,l)&&"key"!==l&&"__self"!==l&&"__source"!==l&&(r[l]=n[l]);var o=arguments.length-2;if(1===o)r.children=t;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];Object.freeze&&Object.freeze(a),r.children=a}if(e&&e.defaultProps)for(l in o=e.defaultProps)void 0===r[l]&&(r[l]=o[l]);i&&function(e){function n(){X||(X=!0)}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e&&(e.displayName||e.name));var l=1e4>$.recentlyCreatedOwnerStacks++;return b(e,i,r,d(),l?Error("react-stack-top-frame"):re,l?ne(f(e)):ie)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){null!=e&&e.$$typeof===H||"function"!=typeof e||0!==e.length&&e.length,null!=e&&e.defaultProps;var n,t={$$typeof:U,render:e};return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},n.isValidElement=y,n.lazy=function(e){var n={$$typeof:V,u:e={I:-1,O:e},o:A},t={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?void 0:null};return e.$=t,n.J=[{awaited:t}],n},n.memo=function(e,n){var t;return n={$$typeof:H,type:e,compare:void 0===n?null:n},Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),n},n.startTransition=function(e){var n=$.T,t={};t.re=/* @__PURE__ */new Set,$.T=t;try{var r=e(),i=$.S;null!==i&&i(t,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&($.asyncTransitions++,r.then(E,E),r.then(s,ae))}catch(o){ae(o)}finally{null===n&&t.re&&(e=t.re.size,t.re.clear()),null!==n&&null!==t.types&&(null!==n.types&&(n.types,t.types),n.types=t.types),$.T=n}},n.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},n.use=function(e){return x().use(e)},n.useActionState=function(e,n,t){return x().useActionState(e,n,t)},n.useCallback=function(e,n){return x().useCallback(e,n)},n.useContext=function(e){var n=x();return e.$$typeof,n.useContext(e)},n.useDebugValue=function(e,n){return x().useDebugValue(e,n)},n.useDeferredValue=function(e,n){return x().useDeferredValue(e,n)},n.useEffect=function(e,n){return x().useEffect(e,n)},n.useEffectEvent=function(e){return x().useEffectEvent(e)},n.useId=function(){return x().useId()},n.useImperativeHandle=function(e,n,t){return x().useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return x().useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return x().useLayoutEffect(e,n)},n.useMemo=function(e,n){return x().useMemo(e,n)},n.useOptimistic=function(e,n){return x().useOptimistic(e,n)},n.useReducer=function(e,n,t){return x().useReducer(e,n,t)},n.useRef=function(e){return x().useRef(e)},n.useState=function(e){return x().useState(e)},n.useSyncExternalStore=function(e,n,t){return x().useSyncExternalStore(e,n,t)},n.useTransition=function(){return x().useTransition()},n.version="19.2.4","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),p.exports;var e,n}function b(){return f||(f=1,"production"===process.env.NODE_ENV?s.exports=u():s.exports=m()),s.exports}var v,y,w,g=(h||(h=1,"production"===process.env.NODE_ENV?i.exports=function(){if(t)return o;t=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),n=/* @__PURE__ */Symbol.for("react.fragment");function r(n,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:i,ref:void 0!==t?t:null,props:r}}return o.Fragment=n,o.jsx=r,o.jsxs=r,o}():i.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===C?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case p:return"Fragment";case v:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case S:return"Activity"}if("object"==typeof n)switch(n.tag,n.$$typeof){case h:return"Portal";case w:return n.displayName||"Context";case y:return(n.V.displayName||"Context")+".Consumer";case g:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case x:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case E:t=n.u,n=n.o;try{return e(n(t))}catch(r){}}return null}function n(e){return""+e}function t(e){try{n(e);var t=!1}catch(o){t=!0}if(t){var r=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),n(e)}}function r(n){if(n===p)return"<>";if("object"==typeof n&&null!==n&&n.$$typeof===E)return"<...>";try{var t=e(n);return t?"<"+t+">":"<...>"}catch(r){return"<...>"}}function i(){return Error("react-stack-top-frame")}function o(){var n=e(this.type);return R[n]||(R[n]=!0),void 0!==(n=this.props.ref)?n:null}function s(n,r,i,a,s,u){var f,h=r.children;if(void 0!==h)if(a){if(M(h)){for(a=0;a<h.length;a++)l(h[a]);Object.freeze&&Object.freeze(h)}}else l(h);if(I.call(r,"key")){h=e(n);var p=Object.keys(r).filter(function(e){return"key"!==e});a=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",F[h+a]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",F[h+a]=!0)}if(h=null,void 0!==i&&(t(i),h=""+i),function(e){if(I.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),h=""+r.key),"key"in r)for(var m in i={},r)"key"!==m&&(i[m]=r[m]);else i=r;return h&&function(e){function n(){c||(c=!0)}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,"function"==typeof n&&(n.displayName||n.name)),function(e,n,t,r,i,a){var s=t.ref;return e={$$typeof:d,type:e,key:n,props:t,W:r},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e.q={},Object.defineProperty(e.q,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"J",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"K",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(n,h,i,null===(f=T.A)?null:f.getOwner(),s,u)}function l(e){u(e)?e.q&&(e.q.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===E&&("fulfilled"===e.u.status?u(e.u.value)&&e.u.value.q&&(e.u.value.q.validated=1):e.q&&(e.q.validated=1))}function u(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var c,f=b(),d=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),p=/* @__PURE__ */Symbol.for("react.fragment"),m=/* @__PURE__ */Symbol.for("react.strict_mode"),v=/* @__PURE__ */Symbol.for("react.profiler"),y=/* @__PURE__ */Symbol.for("react.consumer"),w=/* @__PURE__ */Symbol.for("react.context"),g=/* @__PURE__ */Symbol.for("react.forward_ref"),k=/* @__PURE__ */Symbol.for("react.suspense"),A=/* @__PURE__ */Symbol.for("react.suspense_list"),x=/* @__PURE__ */Symbol.for("react.memo"),E=/* @__PURE__ */Symbol.for("react.lazy"),S=/* @__PURE__ */Symbol.for("react.activity"),C=/* @__PURE__ */Symbol.for("react.client.reference"),T=f.R,I=Object.prototype.hasOwnProperty,M=Array.isArray,O=console.createTask?console.createTask:function(){return null},R={},N=(f={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(f,i)(),B=O(r(i)),F={};a.Fragment=p,a.jsx=function(e,n,t){var i=1e4>T.recentlyCreatedOwnerStacks++;return s(e,n,t,!1,i?Error("react-stack-top-frame"):N,i?O(r(e)):B)},a.jsxs=function(e,n,t){var i=1e4>T.recentlyCreatedOwnerStacks++;return s(e,n,t,!0,i?Error("react-stack-top-frame"):N,i?O(r(e)):B)}}()),a)),i.exports),k={exports:{}},A={},x={exports:{}},E={},S={};function C(){return w||(w=1,"production"===process.env.NODE_ENV?x.exports=(v||(v=1,function(e){function n(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,o=e[r];if(!(0<i(o,n)))break e;e[r]=n,e[t]=o,t=r}}function t(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,t))u<o&&0>i(c,l)?(e[r]=c,e[u]=t,r=u):(e[r]=l,e[s]=t,r=s);else{if(!(u<o&&0>i(c,t)))break e;e[r]=c,e[u]=t,r=u}}}return n}function i(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,m=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function g(e){for(var i=t(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,n(l,i)}i=t(u)}}function k(e){if(m=!1,g(e),!p)if(null!==t(l))p=!0,x||(x=!0,A());else{var n=t(u);null!==n&&R(k,n.startTime-e)}}var A,x=!1,E=-1,S=5,C=-1;function T(){return!(!b&&e.unstable_now()-C<S)}function I(){if(b=!1,x){var n=e.unstable_now();C=n;var i=!0;try{e:{p=!1,m&&(m=!1,y(E),E=-1),h=!0;var o=d;try{n:{for(g(n),f=t(l);null!==f&&!(f.expirationTime>n&&T());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof s){f.callback=s,g(n),i=!0;break n}f===t(l)&&r(l),g(n)}else r(l);f=t(l)}if(null!==f)i=!0;else{var c=t(u);null!==c&&R(k,c.startTime-n),i=!1}}break e}finally{f=null,d=o,h=!1}i=void 0}}finally{i?A():x=!1}}}if("function"==typeof w)A=function(){w(I)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,O=M.port2;M.port1.onmessage=I,A=function(){O.postMessage(null)}}else A=function(){v(I,0)};function R(n,t){E=v(function(){n(e.unstable_now())},t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(S=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var n=3;break;default:n=d}var t=d;d=n;try{return e()}finally{d=t}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=d;d=e;try{return n()}finally{d=t}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,n(u,r),null===t(l)&&r===t(u)&&(m?(y(E),E=-1):m=!0,R(k,o-a))):(r.sortIndex=s,n(l,r),p||h||(p=!0,x||(x=!0,A()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var n=d;return function(){var t=d;d=n;try{return e.apply(this,arguments)}finally{d=t}}}}(E)),E):x.exports=(y||(y=1,e=S,"production"!==process.env.NODE_ENV&&function(){function n(){if(k=!1,S){var n=e.unstable_now();I=n;var t=!0;try{e:{w=!1,g&&(g=!1,x(C),C=-1),y=!0;var o=v;try{n:{for(a(n),b=r(h);null!==b&&!(b.expirationTime>n&&l());){var c=b.callback;if("function"==typeof c){b.callback=null,v=b.priorityLevel;var f=c(b.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof f){b.callback=f,a(n),t=!0;break n}b===r(h)&&i(h),a(n)}else i(h);b=r(h)}if(null!==b)t=!0;else{var d=r(p);null!==d&&u(s,d.startTime-n),t=!1}}break e}finally{b=null,v=o,y=!1}t=void 0}}finally{t?M():S=!1}}}function t(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,i=e[r];if(!(0<o(i,n)))break e;e[r]=n,e[t]=i,t=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,t))u<i&&0>o(c,l)?(e[r]=c,e[u]=t,r=u):(e[r]=l,e[s]=t,r=s);else{if(!(u<i&&0>o(c,t)))break e;e[r]=c,e[u]=t,r=u}}}return n}function o(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}function a(e){for(var n=r(p);null!==n;){if(null===n.callback)i(p);else{if(!(n.startTime<=e))break;i(p),n.sortIndex=n.expirationTime,t(h,n)}n=r(p)}}function s(e){if(g=!1,a(e),!w)if(null!==r(h))w=!0,S||(S=!0,M());else{var n=r(p);null!==n&&u(s,n.startTime-e)}}function l(){return!(!k&&e.unstable_now()-I<T)}function u(n,t){C=A(function(){n(e.unstable_now())},t)}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var h=[],p=[],m=1,b=null,v=3,y=!1,w=!1,g=!1,k=!1,A="function"==typeof setTimeout?setTimeout:null,x="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null,S=!1,C=-1,T=5,I=-1;if("function"==typeof E)var M=function(){E(n)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,R=O.port2;O.port1.onmessage=n,M=function(){R.postMessage(null)}}else M=function(){A(n,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(T=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(e){switch(v){case 1:case 2:case 3:var n=3;break;default:n=v}var t=v;v=n;try{return e()}finally{v=t}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=v;v=e;try{return n()}finally{v=t}},e.unstable_scheduleCallback=function(n,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,n){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return n={id:m++,callback:i,priorityLevel:n,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(n.sortIndex=o,t(p,n),null===r(h)&&n===r(p)&&(g?(x(C),C=-1):g=!0,u(s,o-a))):(n.sortIndex=l,t(h,n),w||y||(w=!0,S||(S=!0,M()))),n},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var n=v;return function(){var t=v;v=n;try{return e.apply(this,arguments)}finally{v=t}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),S)),x.exports;var e}var T,I={exports:{}},M={};var O,R,N,B={};function F(){return R||(R=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){}}}(),I.exports=function(){if(T)return M;T=1;var e=b();function n(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var r={d:{f:t,r:function(){throw Error(n(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=/* @__PURE__ */Symbol.for("react.portal"),o=e.R;function a(e,n){return"font"===e?"":"string"==typeof n?"use-credentials"===n?n:"":void 0}return M.ie=r,M.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}(e,t,null,r)},M.flushSync=function(e){var n=o.T,t=r.p;try{if(o.T=null,r.p=2,e)return e()}finally{o.T=n,r.p=t,r.d.f()}},M.preconnect=function(e,n){"string"==typeof e&&(n=n?"string"==typeof(n=n.crossOrigin)?"use-credentials"===n?n:"":void 0:null,r.d.C(e,n))},M.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},M.preinit=function(e,n){if("string"==typeof e&&n&&"string"==typeof n.as){var t=n.as,i=a(t,n.crossOrigin),o="string"==typeof n.integrity?n.integrity:void 0,s="string"==typeof n.fetchPriority?n.fetchPriority:void 0;"style"===t?r.d.S(e,"string"==typeof n.precedence?n.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:s}):"script"===t&&r.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:s,nonce:"string"==typeof n.nonce?n.nonce:void 0})}},M.preinitModule=function(e,n){if("string"==typeof e)if("object"==typeof n&&null!==n){if(null==n.as||"script"===n.as){var t=a(n.as,n.crossOrigin);r.d.M(e,{crossOrigin:t,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0})}}else null==n&&r.d.M(e)},M.preload=function(e,n){if("string"==typeof e&&"object"==typeof n&&null!==n&&"string"==typeof n.as){var t=n.as,i=a(t,n.crossOrigin);r.d.L(e,t,{crossOrigin:i,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0,type:"string"==typeof n.type?n.type:void 0,fetchPriority:"string"==typeof n.fetchPriority?n.fetchPriority:void 0,referrerPolicy:"string"==typeof n.referrerPolicy?n.referrerPolicy:void 0,imageSrcSet:"string"==typeof n.imageSrcSet?n.imageSrcSet:void 0,imageSizes:"string"==typeof n.imageSizes?n.imageSizes:void 0,media:"string"==typeof n.media?n.media:void 0})}},M.preloadModule=function(e,n){if("string"==typeof e)if(n){var t=a(n.as,n.crossOrigin);r.d.m(e,{as:"string"==typeof n.as&&"script"!==n.as?n.as:void 0,crossOrigin:t,integrity:"string"==typeof n.integrity?n.integrity:void 0})}else r.d.m(e)},M.requestFormReset=function(e){r.d.r(e)},M.unstable_batchedUpdates=function(e,n){return e(n)},M.useFormState=function(e,n,t){return o.H.useFormState(e,n,t)},M.useFormStatus=function(){return o.H.useHostTransitionStatus()},M.version="19.2.4",M}()):I.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){function e(){}function n(e){return""+e}function t(e,n){return"font"===e?"":"string"==typeof n?"use-credentials"===n?n:"":void 0}function r(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function i(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function o(){return u.H}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=b(),s={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=/* @__PURE__ */Symbol.for("react.portal"),u=a.R;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&Set.prototype.forEach,B.ie=s,B.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error("Target container is not a DOM element.");return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{n(i);var o=!1}catch(a){o=!0}return o&&n(i),{$$typeof:l,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},B.flushSync=function(e){var n=u.T,t=s.p;try{if(u.T=null,s.p=2,e)return e()}finally{u.T=n,s.p=t,s.d.f()}},B.preconnect=function(e,n){"string"==typeof e&&e&&(null!=n&&"object"!=typeof n||null!=n&&n.crossOrigin),"string"==typeof e&&(n=n?"string"==typeof(n=n.crossOrigin)?"use-credentials"===n?n:"":void 0:null,s.d.C(e,n))},B.prefetchDNS=function(e){if("string"==typeof e&&e&&1<arguments.length){var n=arguments[1];"object"==typeof n&&n.hasOwnProperty("crossOrigin")}"string"==typeof e&&s.d.D(e)},B.preinit=function(e,n){if("string"==typeof e&&e&&(null==n||"object"!=typeof n||"style"!==n.as&&n.as),"string"==typeof e&&n&&"string"==typeof n.as){var r=n.as,i=t(r,n.crossOrigin),o="string"==typeof n.integrity?n.integrity:void 0,a="string"==typeof n.fetchPriority?n.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof n.precedence?n.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:a}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:a,nonce:"string"==typeof n.nonce?n.nonce:void 0})}},B.preinitModule=function(e,n){var o="";"string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),void 0!==n&&"object"!=typeof n?o+=" The `options` argument encountered was "+r(n)+".":n&&"as"in n&&"script"!==n.as&&(o+=" The `as` option encountered was "+i(n.as)+"."),o||"script"===(o=n&&"string"==typeof n.as?n.as:"script")||(o=i(o)),"string"==typeof e&&("object"==typeof n&&null!==n?null!=n.as&&"script"!==n.as||(o=t(n.as,n.crossOrigin),s.d.M(e,{crossOrigin:o,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0})):null==n&&s.d.M(e))},B.preload=function(e,n){var i="";if("string"==typeof e&&e||(i+=" The `href` argument encountered was "+r(e)+"."),null==n||"object"!=typeof n?i+=" The `options` argument encountered was "+r(n)+".":"string"==typeof n.as&&n.as||(i+=" The `as` option encountered was "+r(n.as)+"."),"string"==typeof e&&"object"==typeof n&&null!==n&&"string"==typeof n.as){var o=t(i=n.as,n.crossOrigin);s.d.L(e,i,{crossOrigin:o,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0,type:"string"==typeof n.type?n.type:void 0,fetchPriority:"string"==typeof n.fetchPriority?n.fetchPriority:void 0,referrerPolicy:"string"==typeof n.referrerPolicy?n.referrerPolicy:void 0,imageSrcSet:"string"==typeof n.imageSrcSet?n.imageSrcSet:void 0,imageSizes:"string"==typeof n.imageSizes?n.imageSizes:void 0,media:"string"==typeof n.media?n.media:void 0})}},B.preloadModule=function(e,n){var i="";"string"==typeof e&&e||(i+=" The `href` argument encountered was "+r(e)+"."),void 0!==n&&"object"!=typeof n?i+=" The `options` argument encountered was "+r(n)+".":n&&"as"in n&&"string"!=typeof n.as&&(i+=" The `as` option encountered was "+r(n.as)+"."),"string"==typeof e&&(n?(i=t(n.as,n.crossOrigin),s.d.m(e,{as:"string"==typeof n.as&&"script"!==n.as?n.as:void 0,crossOrigin:i,integrity:"string"==typeof n.integrity?n.integrity:void 0})):s.d.m(e))},B.requestFormReset=function(e){s.d.r(e)},B.unstable_batchedUpdates=function(e,n){return e(n)},B.useFormState=function(e,n,t){return o().useFormState(e,n,t)},B.useFormStatus=function(){return o().useHostTransitionStatus()},B.version="19.2.4","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),B)),I.exports}var L,D,U={};var P=(D||(D=1,"production"===process.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){}}}(),k.exports=function(){if(N)return A;N=1;var e=C(),n=b(),t=F();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{!!(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function a(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function s(e){if(31===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(r(188))}function u(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e;for(e=e.child;null!==e;){if(null!==(n=u(e)))return n;e=e.sibling}return null}var c=Object.assign,f=/* @__PURE__ */Symbol.for("react.element"),d=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),p=/* @__PURE__ */Symbol.for("react.fragment"),m=/* @__PURE__ */Symbol.for("react.strict_mode"),v=/* @__PURE__ */Symbol.for("react.profiler"),y=/* @__PURE__ */Symbol.for("react.consumer"),w=/* @__PURE__ */Symbol.for("react.context"),g=/* @__PURE__ */Symbol.for("react.forward_ref"),k=/* @__PURE__ */Symbol.for("react.suspense"),x=/* @__PURE__ */Symbol.for("react.suspense_list"),E=/* @__PURE__ */Symbol.for("react.memo"),S=/* @__PURE__ */Symbol.for("react.lazy"),T=/* @__PURE__ */Symbol.for("react.activity"),I=/* @__PURE__ */Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var R=/* @__PURE__ */Symbol.for("react.client.reference");function B(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case v:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case x:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case y:return(e.V.displayName||"Context")+".Consumer";case g:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(n=e.displayName||null)?n:B(e.type)||"Memo";case S:n=e.u,e=e.o;try{return B(e(n))}catch(t){}}return null}var L=Array.isArray,D=n.R,U=t.ie,P={pending:!1,data:null,method:null,action:null},j=[],H=-1;function V(e){return{current:e}}function z(e){0>H||(e.current=j[H],j[H]=null,H--)}function W(e,n){H++,j[H]=e.current,e.current=n}var q,G,Y=V(null),J=V(null),K=V(null),X=V(null);function Q(e,n){switch(W(K,n),W(J,e),W(Y,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?gf(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=kf(n=gf(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(Y),W(Y,e)}function Z(){z(Y),z(J),z(K)}function _(e){null!==e.memoizedState&&W(X,e);var n=Y.current,t=kf(n,e.type);n!==t&&(W(J,e),W(Y,t))}function $(e){J.current===e&&(z(Y),z(J)),X.current===e&&(z(X),hd.U=P)}function ee(e){if(void 0===q)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||"",G=-1<t.stack.indexOf("\n at")?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+G}var ne=!1;function te(e,n){if(!e||ne)return"";ne=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(o){r=o}e.call(t.prototype)}}else{try{throw Error()}catch(a){r=a}(t=e())&&"function"==typeof t.catch&&t.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{ne=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?ee(t):""}function re(e,n){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==n&&null!==n?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return te(e.type,!1);case 11:return te(e.type.render,!1);case 1:return te(e.type,!0);case 31:return ee("Activity");default:return""}}function ie(e){try{var n="",t=null;do{n+=re(e,t),t=e,e=e.return}while(e);return n}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var oe=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ue=e.unstable_requestPaint,ce=e.unstable_now,fe=e.unstable_getCurrentPriorityLevel,de=e.unstable_ImmediatePriority,he=e.unstable_UserBlockingPriority,pe=e.unstable_NormalPriority,me=e.unstable_LowPriority,be=e.unstable_IdlePriority,ve=e.log,ye=e.unstable_setDisableYieldValue,we=null,ge=null;function ke(e){if("function"==typeof ve&&ye(e),ge&&"function"==typeof ge.setStrictMode)try{ge.setStrictMode(we,e)}catch(n){}}var Ae=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Ee|0)|0},xe=Math.log,Ee=Math.LN2,Se=256,Ce=262144,Te=4194304;function Ie(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Me(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Ie(r):0!==(a&=s)?i=Ie(a):t||0!==(t=s&~e)&&(i=Ie(t)):0!==(s=r&~o)?i=Ie(s):0!==a?i=Ie(a):t||0!==(t=r&~e)&&(i=Ie(t)),0===i?0:0!==n&&n!==i&&0===(n&o)&&((o=i&-i)>=(t=n&-n)||32===o&&4194048&t)?n:i}function Oe(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function Re(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function Ne(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Be(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Fe(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-Ae(n);e.entangledLanes|=n,e.entanglements[r]=1073741824|e.entanglements[r]|261930&t}function De(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-Ae(t),i=1<<r;i&n|e[r]&n&&(e[r]|=n),t&=~i}}function Ue(e,n){var t=n&-n;return 0!==((t=42&t?1:Pe(t))&(e.suspendedLanes|n))?0:t}function Pe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function je(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function He(){var e=U.p;return 0!==e?e:void 0===(e=window.event)?32:Md(e.type)}function Ve(e,n){var t=U.p;try{return U.p=e,n()}finally{U.p=t}}var ze=Math.random().toString(36).slice(2),We="__reactFiber$"+ze,qe="__reactProps$"+ze,Ge="__reactContainer$"+ze,Ye="__reactEvents$"+ze,Je="__reactListeners$"+ze,Ke="__reactHandles$"+ze,Xe="__reactResources$"+ze,Qe="__reactMarker$"+ze;function Ze(e){delete e[We],delete e[qe],delete e[Ye],delete e[Je],delete e[Ke]}function _e(e){var n=e[We];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Ge]||t[We]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=jf(e);null!==e;){if(t=e[We])return t;e=jf(e)}return n}t=(e=t).parentNode}return null}function $e(e){if(e=e[We]||e[Ge]){var n=e.tag;if(5===n||6===n||13===n||31===n||26===n||27===n||3===n)return e}return null}function en(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e.stateNode;throw Error(r(33))}function nn(e){var n=e[Xe];return n||(n=e[Xe]={hoistableStyles:/* @__PURE__ */new Map,hoistableScripts:/* @__PURE__ */new Map}),n}function tn(e){e[Qe]=!0}var rn=/* @__PURE__ */new Set,on={};function an(e,n){sn(e,n),sn(e+"Capture",n)}function sn(e,n){for(on[e]=n,e=0;e<n.length;e++)rn.add(n[e])}var ln=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),un={},cn={};function fn(e,n,t){if(i=n,oe.call(cn,i)||!oe.call(un,i)&&(ln.test(i)?cn[i]=!0:(un[i]=!0,0)))if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":return void e.removeAttribute(n);case"boolean":var r=n.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(n)}e.setAttribute(n,""+t)}var i}function dn(e,n,t){if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttribute(n,""+t)}}function hn(e,n,t,r){if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttributeNS(n,t,""+r)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function mn(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function bn(e){if(!e.oe){var n=mn(e)?"checked":"value";e.oe=function(e,n,t){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(e){t=""+e,o.call(this,e)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return t},setValue:function(e){t=""+e},stopTracking:function(){e.oe=null,delete e[n]}}}}(e,n,""+e[n])}}function vn(e){if(!e)return!1;var n=e.oe;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=mn(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function yn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}var wn=/[\n"\\]/g;function gn(e){return e.replace(wn,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function kn(e,n,t,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=n?"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+pn(n)):e.value!==""+pn(n)&&(e.value=""+pn(n)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=n?xn(e,a,pn(n)):null!=t?xn(e,a,pn(t)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pn(s):e.removeAttribute("name")}function An(e,n,t,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=n||null!=t){if(("submit"===o||"reset"===o)&&null==n)return void bn(e);t=null!=t?""+pn(t):"",n=null!=n?""+pn(n):t,s||n===e.value||(e.value=n),e.defaultValue=n}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),bn(e)}function xn(e,n,t){"number"===n&&yn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function En(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+pn(t),n=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==n||e[i].disabled||(n=e[i])}null!==n&&(n.selected=!0)}}function Sn(e,n,t){null==n||((n=""+pn(n))!==e.value&&(e.value=n),null!=t)?e.defaultValue=null!=t?""+pn(t):"":e.defaultValue!==n&&(e.defaultValue=n)}function Cn(e,n,t,i){if(null==n){if(null!=i){if(null!=t)throw Error(r(92));if(L(i)){if(1<i.length)throw Error(r(93));i=i[0]}t=i}null==t&&(t=""),n=t}t=pn(n),e.defaultValue=t,(i=e.textContent)===t&&""!==i&&null!==i&&(e.value=i),bn(e)}function Tn(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var In=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mn(e,n,t){var r=0===n.indexOf("--");null==t||"boolean"==typeof t||""===t?r?e.setProperty(n,""):"float"===n?e.cssFloat="":e[n]="":r?e.setProperty(n,t):"number"!=typeof t||0===t||In.has(n)?"float"===n?e.cssFloat=t:e[n]=(""+t).trim():e[n]=t+"px"}function On(e,n,t){if(null!=n&&"object"!=typeof n)throw Error(r(62));if(e=e.style,null!=t){for(var i in t)!t.hasOwnProperty(i)||null!=n&&n.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var o in n)i=n[o],n.hasOwnProperty(o)&&t[o]!==i&&Mn(e,o,i)}else for(var a in n)n.hasOwnProperty(a)&&Mn(e,a,n[a])}function Rn(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nn=/* @__PURE__ */new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Bn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fn(e){return Bn.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Dn=null;function Un(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pn=null,jn=null;function Hn(e){var n=$e(e);if(n&&(e=n.stateNode)){var t=e[qe]||null;e:switch(e=n.stateNode,n.type){case"input":if(kn(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+gn(""+n)+'"][type="radio"]'),n=0;n<t.length;n++){var i=t[n];if(i!==e&&i.form===e.form){var o=i[qe]||null;if(!o)throw Error(r(90));kn(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<t.length;n++)(i=t[n]).form===e.form&&vn(i)}break e;case"textarea":Sn(e,t.value,t.defaultValue);break e;case"select":null!=(n=t.value)&&En(e,!!t.multiple,n,!1)}}}var Vn=!1;function zn(e,n,t){if(Vn)return e(n,t);Vn=!0;try{return e(n)}finally{if(Vn=!1,(null!==Pn||null!==jn)&&(nc(),Pn&&(n=Pn,e=jn,jn=Pn=null,Hn(n),e)))for(n=0;n<e.length;n++)Hn(e[n])}}function Wn(e,n){var t=e.stateNode;if(null===t)return null;var i=t[qe]||null;if(null===i)return null;t=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(r(231,n,typeof t));return t}var qn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Gn=!1;if(qn)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Gn=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch(eh){Gn=!1}var Jn=null,Kn=null,Xn=null;function Qn(){if(Xn)return Xn;var e,n,t=Kn,r=t.length,i="value"in Jn?Jn.value:Jn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return Xn=i.slice(e,1<n?1-n:void 0)}function Zn(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function _n(){return!0}function $n(){return!1}function et(e){function n(n,t,r,i,o){for(var a in this.ae=n,this.se=r,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?_n:$n,this.isPropagationStopped=$n,this}return c(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),n}var nt,tt,rt,it={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ot=et(it),at=c({},it,{view:0,detail:0}),st=et(at),lt=c({},at,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rt&&(rt&&"mousemove"===e.type?(nt=e.screenX-rt.screenX,tt=e.screenY-rt.screenY):tt=nt=0,rt=e),nt)},movementY:function(e){return"movementY"in e?e.movementY:tt}}),ut=et(lt),ct=et(c({},lt,{dataTransfer:0})),ft=et(c({},at,{relatedTarget:0})),dt=et(c({},it,{animationName:0,elapsedTime:0,pseudoElement:0})),ht=et(c({},it,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pt=et(c({},it,{data:0})),mt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yt(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=vt[e])&&!!n[e]}function wt(){return yt}var gt=et(c({},at,{key:function(e){if(e.key){var n=mt[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=Zn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wt,charCode:function(e){return"keypress"===e.type?Zn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),kt=et(c({},lt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),At=et(c({},at,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wt})),xt=et(c({},it,{propertyName:0,elapsedTime:0,pseudoElement:0})),Et=et(c({},lt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),St=et(c({},it,{newState:0,oldState:0})),Ct=[9,13,27,32],Tt=qn&&"CompositionEvent"in window,It=null;qn&&"documentMode"in document&&(It=document.documentMode);var Mt=qn&&"TextEvent"in window&&!It,Ot=qn&&(!Tt||It&&8<It&&11>=It),Rt=String.fromCharCode(32),Nt=!1;function Bt(e,n){switch(e){case"keyup":return-1!==Ct.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ft(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Lt=!1,Dt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ut(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Dt[e.type]:"textarea"===n}function Pt(e,n,t,r){Pn?jn?jn.push(r):jn=[r]:Pn=r,0<(n=af(n,"onChange")).length&&(t=new ot("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var jt=null,Ht=null;function Vt(e){Zc(e,0)}function zt(e){if(vn(en(e)))return e}function Wt(e,n){if("change"===e)return n}var qt=!1;if(qn){var Gt;if(qn){var Yt="oninput"in document;if(!Yt){var Jt=document.createElement("div");Jt.setAttribute("oninput","return;"),Yt="function"==typeof Jt.oninput}Gt=Yt}else Gt=!1;qt=Gt&&(!document.documentMode||9<document.documentMode)}function Kt(){jt&&(jt.detachEvent("onpropertychange",Xt),Ht=jt=null)}function Xt(e){if("value"===e.propertyName&&zt(Ht)){var n=[];Pt(n,Ht,e,Un(e)),zn(Vt,n)}}function Qt(e,n,t){"focusin"===e?(Kt(),Ht=t,(jt=n).attachEvent("onpropertychange",Xt)):"focusout"===e&&Kt()}function Zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zt(Ht)}function _t(e,n){if("click"===e)return zt(n)}function $t(e,n){if("input"===e||"change"===e)return zt(n)}var er="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function nr(e,n){if(er(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var i=t[r];if(!oe.call(n,i)||!er(e[i],n[i]))return!1}return!0}function tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,n){var t,r=tr(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tr(r)}}function ir(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?ir(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function or(e){for(var n=yn((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(r){t=!1}if(!t)break;n=yn((e=n.contentWindow).document)}return n}function ar(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var sr=qn&&"documentMode"in document&&11>=document.documentMode,lr=null,ur=null,cr=null,fr=!1;function dr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;fr||null==lr||lr!==yn(r)||(r="selectionStart"in(r=lr)&&ar(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},cr&&nr(cr,r)||(cr=r,0<(r=af(ur,"onSelect")).length&&(n=new ot("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=lr)))}function hr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var pr={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},mr={},br={};function vr(e){if(mr[e])return mr[e];if(!pr[e])return e;var n,t=pr[e];for(n in t)if(t.hasOwnProperty(n)&&n in br)return mr[e]=t[n];return e}qn&&(br=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);var yr=vr("animationend"),wr=vr("animationiteration"),gr=vr("animationstart"),kr=vr("transitionrun"),Ar=vr("transitionstart"),xr=vr("transitioncancel"),Er=vr("transitionend"),Sr=/* @__PURE__ */new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,n){Sr.set(e,n),an(n,[e])}Cr.push("scrollEnd");var Ir="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},Mr=[],Or=0,Rr=0;function Nr(){for(var e=Or,n=Rr=Or=0;n<e;){var t=Mr[n];Mr[n++]=null;var r=Mr[n];Mr[n++]=null;var i=Mr[n];Mr[n++]=null;var o=Mr[n];if(Mr[n++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Dr(t,i,o)}}function Br(e,n,t,r){Mr[Or++]=e,Mr[Or++]=n,Mr[Or++]=t,Mr[Or++]=r,Rr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Fr(e,n,t,r){return Br(e,n,t,r),Ur(e)}function Lr(e,n){return Br(e,null,null,n),Ur(e)}function Dr(e,n,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);for(var i=!1,o=e.return;null!==o;)o.childLanes|=t,null!==(r=o.alternate)&&(r.childLanes|=t),22===o.tag&&(null===(e=o.stateNode)||1&e.le||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==n&&(i=31-Ae(t),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[n]:r.push(n),n.lane=536870912|t),o):null}function Ur(e){if(50<Yu)throw Yu=0,Ju=null,Error(r(185));for(var n=e.return;null!==n;)n=(e=n).return;return 3===e.tag?e.stateNode:null}var Pr={};function jr(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hr(e,n,t,r){return new jr(e,n,t,r)}function Vr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zr(e,n){var t=e.alternate;return null===t?((t=Hr(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=65011712&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Wr(e,n){e.flags&=65011714;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function qr(e,n,t,i,o,a){var s=0;if(i=e,"function"==typeof e)Vr(e)&&(s=1);else if("string"==typeof e)s=function(e,n,t){if(1===t||null!=n.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof n.precedence||"string"!=typeof n.href||""===n.href)break;return!0;case"link":if("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onLoad||n.onError)break;return"stylesheet"!==n.rel||(e=n.disabled,"string"==typeof n.precedence&&null==e);case"script":if(n.async&&"function"!=typeof n.async&&"symbol"!=typeof n.async&&!n.onLoad&&!n.onError&&n.src&&"string"==typeof n.src)return!0}return!1}(e,t,Y.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Hr(31,t,n,o)).elementType=T,e.lanes=a,e;case p:return Gr(t.children,o,a,n);case m:s=8,o|=24;break;case v:return(e=Hr(12,t,n,2|o)).elementType=v,e.lanes=a,e;case k:return(e=Hr(13,t,n,o)).elementType=k,e.lanes=a,e;case x:return(e=Hr(19,t,n,o)).elementType=x,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case y:s=9;break e;case g:s=11;break e;case E:s=14;break e;case S:s=16,i=null;break e}s=29,t=Error(r(130,null===e?"null":typeof e,"")),i=null}return(n=Hr(s,t,n,o)).elementType=e,n.type=i,n.lanes=a,n}function Gr(e,n,t,r){return(e=Hr(7,e,r,n)).lanes=t,e}function Yr(e,n,t){return(e=Hr(6,e,null,n)).lanes=t,e}function Jr(e){var n=Hr(18,null,null,0);return n.stateNode=e,n}function Kr(e,n,t){return(n=Hr(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Xr=/* @__PURE__ */new WeakMap;function Qr(e,n){if("object"==typeof e&&null!==e){var t=Xr.get(e);return void 0!==t?t:(n={value:e,source:n,stack:ie(n)},Xr.set(e,n),n)}return{value:e,source:n,stack:ie(n)}}var Zr=[],_r=0,$r=null,ei=0,ni=[],ti=0,ri=null,ii=1,oi="";function ai(e,n){Zr[_r++]=ei,Zr[_r++]=$r,$r=e,ei=n}function si(e,n,t){ni[ti++]=ii,ni[ti++]=oi,ni[ti++]=ri,ri=e;var r=ii;e=oi;var i=32-Ae(r)-1;r&=~(1<<i),t+=1;var o=32-Ae(n)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ii=1<<32-Ae(n)+i|t<<i|r,oi=o+e}else ii=1<<o|t<<i|r,oi=e}function li(e){null!==e.return&&(ai(e,1),si(e,1,0))}function ui(e){for(;e===$r;)$r=Zr[--_r],Zr[_r]=null,ei=Zr[--_r],Zr[_r]=null;for(;e===ri;)ri=ni[--ti],ni[ti]=null,oi=ni[--ti],ni[ti]=null,ii=ni[--ti],ni[ti]=null}function ci(e,n){ni[ti++]=ii,ni[ti++]=oi,ni[ti++]=ri,ii=n.id,oi=n.overflow,ri=e}var fi=null,di=null,hi=!1,pi=null,mi=!1,bi=Error(r(519));function vi(e){throw xi(Qr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),bi}function yi(e){var n=e.stateNode,t=e.type,r=e.memoizedProps;switch(n[We]=e,n[qe]=r,t){case"dialog":_c("cancel",n),_c("close",n);break;case"iframe":case"object":case"embed":_c("load",n);break;case"video":case"audio":for(t=0;t<Xc.length;t++)_c(Xc[t],n);break;case"source":_c("error",n);break;case"img":case"image":case"link":_c("error",n),_c("load",n);break;case"details":_c("toggle",n);break;case"input":_c("invalid",n),An(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_c("invalid",n);break;case"textarea":_c("invalid",n),Cn(n,r.value,r.defaultValue,r.children)}"string"!=typeof(t=r.children)&&"number"!=typeof t&&"bigint"!=typeof t||n.textContent===""+t||!0===r.suppressHydrationWarning||df(n.textContent,t)?(null!=r.popover&&(_c("beforetoggle",n),_c("toggle",n)),null!=r.onScroll&&_c("scroll",n),null!=r.onScrollEnd&&_c("scrollend",n),null!=r.onClick&&(n.onclick=Ln),n=!0):n=!1,n||vi(e,!0)}function wi(e){for(fi=e.return;fi;)switch(fi.tag){case 5:case 31:case 13:return void(mi=!1);case 27:case 3:return void(mi=!0);default:fi=fi.return}}function gi(e){if(e!==fi)return!1;if(!hi)return wi(e),hi=!0,!1;var n,t=e.tag;if((n=3!==t&&27!==t)&&((n=5===t)&&(n=!("form"!==(n=e.type)&&"button"!==n)||Af(e.type,e.memoizedProps)),n=!n),n&&di&&vi(e),wi(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));di=Pf(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));di=Pf(e)}else 27===t?(t=di,Mf(e.type)?(e=Uf,Uf=null,di=e):di=t):di=fi?Df(e.stateNode.nextSibling):null;return!0}function ki(){di=fi=null,hi=!1}function Ai(){var e=pi;return null!==e&&(null===Nu?Nu=e:Nu.push.apply(Nu,e),pi=null),e}function xi(e){null===pi?pi=[e]:pi.push(e)}var Ei=V(null),Si=null,Ci=null;function Ti(e,n,t){W(Ei,n.U),n.U=t}function Ii(e){e.U=Ei.current,z(Ei)}function Mi(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Oi(e,n,t,i){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var u=0;u<n.length;u++)if(l.context===n[u]){a.lanes|=t,null!==(l=a.alternate)&&(l.lanes|=t),Mi(a.return,t,e),i||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(r(341));s.lanes|=t,null!==(a=s.alternate)&&(a.lanes|=t),Mi(s,t,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Ri(e,n,t,i){e=null;for(var o=n,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=o.type;er(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===X.current){if(null===(s=o.alternate))throw Error(r(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(hd):e=[hd])}o=o.return}null!==e&&Oi(n,e,t,i),n.flags|=262144}function Ni(e){for(e=e.firstContext;null!==e;){if(!er(e.context.U,e.memoizedValue))return!0;e=e.next}return!1}function Bi(e){Si=e,Ci=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Fi(e){return Di(Si,e)}function Li(e,n){return null===Si&&Bi(e),Di(e,n)}function Di(e,n){var t=n.U;if(n={context:n,memoizedValue:t,next:null},null===Ci){if(null===e)throw Error(r(308));Ci=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ci=Ci.next=n;return t}var Ui="undefined"!=typeof AbortController?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(n,t){e.push(t)}};this.abort=function(){n.aborted=!0,e.forEach(function(e){return e()})}},Pi=e.unstable_scheduleCallback,ji=e.unstable_NormalPriority,Hi={$$typeof:w,Consumer:null,Provider:null,U:null,P:null,j:0};function Vi(){return{controller:new Ui,data:/* @__PURE__ */new Map,refCount:0}}function zi(e){e.refCount--,0===e.refCount&&Pi(ji,function(){e.controller.abort()})}var Wi=null,qi=0,Gi=0,Yi=null;function Ji(){if(0===--qi&&null!==Wi){null!==Yi&&(Yi.status="fulfilled");var e=Wi;Wi=null,Gi=0,Yi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}var Ki=D.S;D.S=function(e,n){Lu=ce(),"object"==typeof n&&null!==n&&"function"==typeof n.then&&function(e,n){if(null===Wi){var t=Wi=[];qi=0,Gi=qc(),Yi={status:"pending",value:void 0,then:function(e){t.push(e)}}}qi++,n.then(Ji,Ji)}(0,n),null!==Ki&&Ki(e,n)};var Xi=V(null);function Qi(){var e=Xi.current;return null!==e?e:bu.pooledCache}function Zi(e,n){W(Xi,null===n?Xi.current:n.pool)}function _i(){var e=Qi();return null===e?null:{parent:Hi.U,pool:e}}var $i=Error(r(460)),eo=Error(r(474)),no=Error(r(542)),to={then:function(){}};function ro(e){return"fulfilled"===(e=e.status)||"rejected"===e}function io(e,n,t){switch(void 0===(t=e[t])?e.push(n):t!==n&&(n.then(Ln,Ln),n=t),n.status){case"fulfilled":return n.value;case"rejected":throw lo(e=n.reason),e;default:if("string"==typeof n.status)n.then(Ln,Ln);else{if(null!==(e=bu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=n).status="pending",e.then(function(e){if("pending"===n.status){var t=n;t.status="fulfilled",t.value=e}},function(e){if("pending"===n.status){var t=n;t.status="rejected",t.reason=e}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw lo(e=n.reason),e}throw ao=n,$i}}function oo(e){try{return(0,e.o)(e.u)}catch(n){if(null!==n&&"object"==typeof n&&"function"==typeof n.then)throw ao=n,$i;throw n}}var ao=null;function so(){if(null===ao)throw Error(r(459));var e=ao;return ao=null,e}function lo(e){if(e===$i||e===no)throw Error(r(483))}var uo=null,co=0;function fo(e){var n=co;return co+=1,null===uo&&(uo=[]),io(uo,e,n)}function ho(e,n){n=n.props.ref,e.ref=void 0!==n?n:null}function po(e,n){if(n.$$typeof===f)throw Error(r(525));throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function mo(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function i(e){for(var n=/* @__PURE__ */new Map;null!==e;)null!==e.key?n.set(e.key,e):n.set(e.index,e),e=e.sibling;return n}function o(e,n){return(e=zr(e,n)).index=0,e.sibling=null,e}function a(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=67108866,t):r:(n.flags|=67108866,t):(n.flags|=1048576,t)}function s(n){return e&&null===n.alternate&&(n.flags|=67108866),n}function l(e,n,t,r){return null===n||6!==n.tag?((n=Yr(t,e.mode,r)).return=e,n):((n=o(n,t)).return=e,n)}function u(e,n,t,r){var i=t.type;return i===p?f(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===S&&oo(i)===n.type)?(ho(n=o(n,t.props),t),n.return=e,n):(ho(n=qr(t.type,t.key,t.props,null,e.mode,r),t),n.return=e,n)}function c(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Kr(t,e.mode,r)).return=e,n):((n=o(n,t.children||[])).return=e,n)}function f(e,n,t,r,i){return null===n||7!==n.tag?((n=Gr(t,e.mode,r,i)).return=e,n):((n=o(n,t)).return=e,n)}function m(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return(n=Yr(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return ho(t=qr(n.type,n.key,n.props,null,e.mode,t),n),t.return=e,t;case h:return(n=Kr(n,e.mode,t)).return=e,n;case S:return m(e,n=oo(n),t)}if(L(n)||O(n))return(n=Gr(n,e.mode,t,null)).return=e,n;if("function"==typeof n.then)return m(e,fo(n),t);if(n.$$typeof===w)return m(e,Li(e,n),t);po(e,n)}return null}function b(e,n,t,r){var i=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==i?null:l(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return t.key===i?u(e,n,t,r):null;case h:return t.key===i?c(e,n,t,r):null;case S:return b(e,n,t=oo(t),r)}if(L(t)||O(t))return null!==i?null:f(e,n,t,r,null);if("function"==typeof t.then)return b(e,n,fo(t),r);if(t.$$typeof===w)return b(e,n,Li(e,t),r);po(e,t)}return null}function v(e,n,t,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(n,e=e.get(t)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return u(n,e=e.get(null===r.key?t:r.key)||null,r,i);case h:return c(n,e=e.get(null===r.key?t:r.key)||null,r,i);case S:return v(e,n,t,r=oo(r),i)}if(L(r)||O(r))return f(n,e=e.get(t)||null,r,i,null);if("function"==typeof r.then)return v(e,n,t,fo(r),i);if(r.$$typeof===w)return v(e,n,t,Li(n,r),i);po(n,r)}return null}function y(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===p&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case d:e:{for(var g=c.key;null!==u;){if(u.key===g){if((g=c.type)===p){if(7===u.tag){t(l,u.sibling),(f=o(u,c.props.children)).return=l,l=f;break e}}else if(u.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===S&&oo(g)===u.type){t(l,u.sibling),ho(f=o(u,c.props),c),f.return=l,l=f;break e}t(l,u);break}n(l,u),u=u.sibling}c.type===p?((f=Gr(c.props.children,l.mode,f,c.key)).return=l,l=f):(ho(f=qr(c.type,c.key,c.props,null,l.mode,f),c),f.return=l,l=f)}return s(l);case h:e:{for(g=c.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){t(l,u.sibling),(f=o(u,c.children||[])).return=l,l=f;break e}t(l,u);break}n(l,u),u=u.sibling}(f=Kr(c,l.mode,f)).return=l,l=f}return s(l);case S:return y(l,u,c=oo(c),f)}if(L(c))return function(r,o,s,l){for(var u=null,c=null,f=o,d=o=0,h=null;null!==f&&d<s.length;d++){f.index>d?(h=f,f=null):h=f.sibling;var p=b(r,f,s[d],l);if(null===p){null===f&&(f=h);break}e&&f&&null===p.alternate&&n(r,f),o=a(p,o,d),null===c?u=p:c.sibling=p,c=p,f=h}if(d===s.length)return t(r,f),hi&&ai(r,d),u;if(null===f){for(;d<s.length;d++)null!==(f=m(r,s[d],l))&&(o=a(f,o,d),null===c?u=f:c.sibling=f,c=f);return hi&&ai(r,d),u}for(f=i(f);d<s.length;d++)null!==(h=v(f,r,d,s[d],l))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),o=a(h,o,d),null===c?u=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return n(r,e)}),hi&&ai(r,d),u}(l,u,c,f);if(O(c)){if("function"!=typeof(g=O(c)))throw Error(r(150));return function(o,s,l,u){if(null==l)throw Error(r(151));for(var c=null,f=null,d=s,h=s=0,p=null,y=l.next();null!==d&&!y.done;h++,y=l.next()){d.index>h?(p=d,d=null):p=d.sibling;var w=b(o,d,y.value,u);if(null===w){null===d&&(d=p);break}e&&d&&null===w.alternate&&n(o,d),s=a(w,s,h),null===f?c=w:f.sibling=w,f=w,d=p}if(y.done)return t(o,d),hi&&ai(o,h),c;if(null===d){for(;!y.done;h++,y=l.next())null!==(y=m(o,y.value,u))&&(s=a(y,s,h),null===f?c=y:f.sibling=y,f=y);return hi&&ai(o,h),c}for(d=i(d);!y.done;h++,y=l.next())null!==(y=v(d,o,h,y.value,u))&&(e&&null!==y.alternate&&d.delete(null===y.key?h:y.key),s=a(y,s,h),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach(function(e){return n(o,e)}),hi&&ai(o,h),c}(l,u,c=g.call(c),f)}if("function"==typeof c.then)return y(l,u,fo(c),f);if(c.$$typeof===w)return y(l,u,Li(l,c),f);po(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(t(l,u.sibling),(f=o(u,c)).return=l,l=f):(t(l,u),(f=Yr(c,l.mode,f)).return=l,l=f),s(l)):t(l,u)}return function(e,n,t,r){try{co=0;var i=y(e,n,t,r);return uo=null,i}catch(a){if(a===$i||a===no)throw a;var o=Hr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var bo=mo(!0),vo=mo(!1),yo=!1;function wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ko(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ao(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&mu){var i=r.pending;return null===i?n.next=n:(n.next=i.next,i.next=n),r.pending=n,n=Ur(e),Dr(e,null,t),n}return Br(e,r,n,t),Ur(e)}function xo(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194048&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,De(e,t)}}function Eo(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=n:o=o.next=n}else i=o=n;return t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var So=!1;function Co(){if(So&&null!==Yi)throw Yi}function To(e,n,t,r){So=!1;var i=e.updateQueue;yo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var f=e.alternate;null!==f&&(s=(f=f.updateQueue).lastBaseUpdate)!==a&&(null===s?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,f=u=l=null,s=o;;){var h=-536870913&s.lane,p=h!==s.lane;if(p?(yu&h)===h:(r&h)===h){0!==h&&h===Gi&&(So=!0),null!==f&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,b=s;h=n;var v=t;switch(b.tag){case 1:if("function"==typeof(m=b.payload)){d=m.call(v,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(h="function"==typeof(m=b.payload)?m.call(v,d,h):m))break e;d=c({},d,h);break e;case 2:yo=!0}}null!==(h=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=i.callbacks)?i.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===f?(u=f=p,l=d):f=f.next=p,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,null===o&&(i.shared.lanes=0),Cu|=a,e.lanes=a,e.memoizedState=d}}function Io(e,n){if("function"!=typeof e)throw Error(r(191,e));e.call(n)}function Mo(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)Io(t[e],n)}var Oo=V(null),Ro=V(0);function No(e,n){W(Ro,e=Eu),W(Oo,n),Eu=e|n.baseLanes}function Bo(){W(Ro,Eu),W(Oo,Oo.current)}function Fo(){Eu=Ro.current,z(Oo),z(Ro)}var Lo=V(null),Do=null;function Uo(e){var n=e.alternate;W(zo,1&zo.current),W(Lo,e),null===Do&&(null===n||null!==Oo.current||null!==n.memoizedState)&&(Do=e)}function Po(e){W(zo,zo.current),W(Lo,e),null===Do&&(Do=e)}function jo(e){22===e.tag?(W(zo,zo.current),W(Lo,e),null===Do&&(Do=e)):Ho()}function Ho(){W(zo,zo.current),W(Lo,Lo.current)}function Vo(e){z(Lo),Do===e&&(Do=null),z(zo)}var zo=V(0);function Wo(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||Ff(t)||Lf(t)))return n}else if(19!==n.tag||"forwards"!==n.memoizedProps.revealOrder&&"backwards"!==n.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==n.memoizedProps.revealOrder&&"together"!==n.memoizedProps.revealOrder){if(null!==n.child){n.child.return=n,n=n.child;continue}}else if(128&n.flags)return n;if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var qo=0,Go=null,Yo=null,Jo=null,Ko=!1,Xo=!1,Qo=!1,Zo=0,_o=0,$o=null,ea=0;function na(){throw Error(r(321))}function ta(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!er(e[t],n[t]))return!1;return!0}function ra(e,n,t,r,i,o){return qo=o,Go=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=null===e||null===e.memoizedState?ys:ws,Qo=!1,o=t(r,i),Qo=!1,Xo&&(o=oa(n,t,r,i)),ia(e),o}function ia(e){D.H=vs;var n=null!==Yo&&null!==Yo.next;if(qo=0,Jo=Yo=Go=null,Ko=!1,_o=0,$o=null,n)throw Error(r(300));null===e||Ls||null!==(e=e.dependencies)&&Ni(e)&&(Ls=!0)}function oa(e,n,t,i){Go=e;var o=0;do{if(Xo&&($o=null),_o=0,Xo=!1,25<=o)throw Error(r(301));if(o+=1,Jo=Yo=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}D.H=gs,a=n(t,i)}while(Xo);return a}function aa(){var e=D.H,n=e.useState()[0];return n="function"==typeof n.then?da(n):n,e=e.useState()[0],(null!==Yo?Yo.memoizedState:null)!==e&&(Go.flags|=1024),n}function sa(){var e=0!==Zo;return Zo=0,e}function la(e,n,t){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~t}function ua(e){if(Ko){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}Ko=!1}qo=0,Jo=Yo=Go=null,Xo=!1,_o=Zo=0,$o=null}function ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Jo?Go.memoizedState=Jo=e:Jo=Jo.next=e,Jo}function fa(){if(null===Yo){var e=Go.alternate;e=null!==e?e.memoizedState:null}else e=Yo.next;var n=null===Jo?Go.memoizedState:Jo.next;if(null!==n)Jo=n,Yo=e;else{if(null===e){if(null===Go.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Yo=e).memoizedState,baseState:Yo.baseState,baseQueue:Yo.baseQueue,queue:Yo.queue,next:null},null===Jo?Go.memoizedState=Jo=e:Jo=Jo.next=e}return Jo}function da(e){var n=_o;return _o+=1,null===$o&&($o=[]),e=io($o,e,n),n=Go,null===(null===Jo?n.memoizedState:Jo.next)&&(n=n.alternate,D.H=null===n||null===n.memoizedState?ys:ws),e}function ha(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return da(e);if(e.$$typeof===w)return Fi(e)}throw Error(r(438,String(e)))}function pa(e){var n=null,t=Go.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=Go.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(n={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==n&&(n={data:[],index:0}),null===t&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Go.updateQueue=t),t.memoCache=n,void 0===(t=n.data[n.index]))for(t=n.data[n.index]=Array(e),r=0;r<e;r++)t[r]=I;return n.index++,t}function ma(e,n){return"function"==typeof n?n(e):n}function ba(e){return va(fa(),Yo,e)}function va(e,n,t){var i=e.queue;if(null===i)throw Error(r(311));i.lastRenderedReducer=t;var o=e.baseQueue,a=i.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}n.baseQueue=o=a,i.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,u=null,c=n=o.next,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(yu&d)===d:(qo&d)===d){var h=c.revertLane;if(0===h)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Gi&&(f=!0);else{if((qo&h)===h){c=c.next,h===Gi&&(f=!0);continue}d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=d,s=a):u=u.next=d,Go.lanes|=h,Cu|=h}d=c.action,Qo&&t(a,d),a=c.hasEagerState?c.eagerState:t(a,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,s=a):u=u.next=h,Go.lanes|=d,Cu|=d;c=c.next}while(null!==c&&c!==n);if(null===u?s=a:u.next=l,!er(a,e.memoizedState)&&(Ls=!0,f&&null!==(t=Yi)))throw t;e.memoizedState=a,e.baseState=s,e.baseQueue=u,i.lastRenderedState=a}return null===o&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ya(e){var n=fa(),t=n.queue;if(null===t)throw Error(r(311));t.lastRenderedReducer=e;var i=t.dispatch,o=t.pending,a=n.memoizedState;if(null!==o){t.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);er(a,n.memoizedState)||(Ls=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,i]}function wa(e,n,t){var i=Go,o=fa(),a=hi;if(a){if(void 0===t)throw Error(r(407));t=t()}else t=n();var s=!er((Yo||o).memoizedState,t);if(s&&(o.memoizedState=t,Ls=!0),o=o.queue,qa(Aa.bind(null,i,o,e),[e]),o.getSnapshot!==n||s||null!==Jo&&1&Jo.memoizedState.tag){if(i.flags|=2048,ja(9,{destroy:void 0},ka.bind(null,i,o,t,n),null),null===bu)throw Error(r(349));a||127&qo||ga(i,n,t)}return t}function ga(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=Go.updateQueue)?(n={lastEffect:null,events:null,stores:null,memoCache:null},Go.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function ka(e,n,t,r){n.value=t,n.getSnapshot=r,xa(n)&&Ea(e)}function Aa(e,n,t){return t(function(){xa(n)&&Ea(e)})}function xa(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!er(e,t)}catch(r){return!0}}function Ea(e){var n=Lr(e,2);null!==n&&Qu(n,0,2)}function Sa(e){var n=ca();if("function"==typeof e){var t=e;if(e=t(),Qo){ke(!0);try{t()}finally{ke(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},n}function Ca(e,n,t,r){return e.baseState=t,va(e,Yo,"function"==typeof r?r:ma)}function Ta(e,n,t,i,o){if(ps(e))throw Error(r(485));if(null!==(e=n.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==D.T?t(!0):a.isTransition=!1,i(a),null===(t=n.pending)?(a.next=n.pending=a,Ia(n,a)):(a.next=t.next,n.pending=t.next=a)}}function Ia(e,n){var t=n.action,r=n.payload,i=e.state;if(n.isTransition){var o=D.T,a={};D.T=a;try{var s=t(i,r),l=D.S;null!==l&&l(a,s),Ma(e,n,s)}catch(u){Ra(e,n,u)}finally{null!==o&&null!==a.types&&(o.types=a.types),D.T=o}}else try{Ma(e,n,o=t(i,r))}catch(c){Ra(e,n,c)}}function Ma(e,n,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(function(t){Oa(e,n,t)},function(t){return Ra(e,n,t)}):Oa(e,n,t)}function Oa(e,n,t){n.status="fulfilled",n.value=t,Na(n),e.state=t,null!==(n=e.pending)&&((t=n.next)===n?e.pending=null:(t=t.next,n.next=t,Ia(e,t)))}function Ra(e,n,t){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{n.status="rejected",n.reason=t,Na(n),n=n.next}while(n!==r)}e.action=null}function Na(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Ba(e,n){return n}function Fa(e,n){if(hi){var t=bu.formState;if(null!==t){e:{var r=Go;if(hi){if(di){n:{for(var i=di,o=mi;8!==i.nodeType;){if(!o){i=null;break n}if(null===(i=Df(i.nextSibling))){i=null;break n}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){di=Df(i.nextSibling),r="F!"===i.data;break e}}vi(r)}r=!1}r&&(n=t[0])}}return(t=ca()).memoizedState=t.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:n},t.queue=r,t=fs.bind(null,Go,r),r.dispatch=t,r=Sa(!1),o=hs.bind(null,Go,!1,r.queue),i={state:n,dispatch:null,action:e,pending:null},(r=ca()).queue=i,t=Ta.bind(null,Go,i,o,t),i.dispatch=t,r.memoizedState=e,[n,t,!1]}function La(e){return Da(fa(),Yo,e)}function Da(e,n,t){if(n=va(e,n,Ba)[0],e=ba(ma)[0],"object"==typeof n&&null!==n&&"function"==typeof n.then)try{var r=da(n)}catch(a){if(a===$i)throw no;throw a}else r=n;var i=(n=fa()).queue,o=i.dispatch;return t!==n.memoizedState&&(Go.flags|=2048,ja(9,{destroy:void 0},Ua.bind(null,i,t),null)),[r,o,e]}function Ua(e,n){e.action=n}function Pa(e){var n=fa(),t=Yo;if(null!==t)return Da(n,t,e);fa(),n=n.memoizedState;var r=(t=fa()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function ja(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=Go.updateQueue)&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Go.updateQueue=n),null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Ha(){return fa().memoizedState}function Va(e,n,t,r){var i=ca();Go.flags|=e,i.memoizedState=ja(1|n,{destroy:void 0},t,void 0===r?null:r)}function za(e,n,t,r){var i=fa();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==Yo&&null!==r&&ta(r,Yo.memoizedState.deps)?i.memoizedState=ja(n,o,t,r):(Go.flags|=e,i.memoizedState=ja(1|n,o,t,r))}function Wa(e,n){Va(8390656,8,e,n)}function qa(e,n){za(2048,8,e,n)}function Ga(e){var n=fa().memoizedState;return function(e){Go.flags|=4;var n=Go.updateQueue;if(null===n)n={lastEffect:null,events:null,stores:null,memoCache:null},Go.updateQueue=n,n.events=[e];else{var t=n.events;null===t?n.events=[e]:t.push(e)}}({ref:n,nextImpl:e}),function(){if(2&mu)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Ya(e,n){return za(4,2,e,n)}function Ja(e,n){return za(4,4,e,n)}function Ka(e,n){if("function"==typeof n){e=e();var t=n(e);return function(){"function"==typeof t?t():n(null)}}if(null!=n)return e=e(),n.current=e,function(){n.current=null}}function Xa(e,n,t){t=null!=t?t.concat([e]):null,za(4,4,Ka.bind(null,n,e),t)}function Qa(){}function Za(e,n){var t=fa();n=void 0===n?null:n;var r=t.memoizedState;return null!==n&&ta(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function _a(e,n){var t=fa();n=void 0===n?null:n;var r=t.memoizedState;if(null!==n&&ta(n,r[1]))return r[0];if(r=e(),Qo){ke(!0);try{e()}finally{ke(!1)}}return t.memoizedState=[r,n],r}function $a(e,n,t){return void 0===t||1073741824&qo&&!(261930&yu)?e.memoizedState=n:(e.memoizedState=t,e=Xu(),Go.lanes|=e,Cu|=e,t)}function es(e,n,t,r){return er(t,n)?t:null!==Oo.current?(e=$a(e,t,r),er(e,n)||(Ls=!0),e):42&qo&&(!(1073741824&qo)||261930&yu)?(e=Xu(),Go.lanes|=e,Cu|=e,n):(Ls=!0,e.memoizedState=t)}function ns(e,n,t,r,i){var o=U.p;U.p=0!==o&&8>o?o:8;var a,s,l,u=D.T,c={};D.T=c,hs(e,!1,n,t);try{var f=i(),d=D.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l);ds(e,n,h,Ku())}else ds(e,n,r,Ku())}catch(p){ds(e,n,{then:function(){},status:"rejected",reason:p},Ku())}finally{U.p=o,null!==u&&null!==c.types&&(u.types=c.types),D.T=u}}function ts(){}function rs(e,n,t,i){if(5!==e.tag)throw Error(r(476));var o=is(e).queue;ns(e,o,n,P,null===t?ts:function(){return os(e),t(i)})}function is(e){var n=e.memoizedState;if(null!==n)return n;var t={};return(n={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:P},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:t},next:null},e.memoizedState=n,null!==(e=e.alternate)&&(e.memoizedState=n),n}function os(e){var n=is(e);null===n.next&&(n=e.alternate.memoizedState),ds(e,n.next.queue,{},Ku())}function as(){return Fi(hd)}function ss(){return fa().memoizedState}function ls(){return fa().memoizedState}function us(e){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var t=Ku(),r=Ao(n,e=ko(t),t);return null!==r&&(Qu(r,0,t),xo(r,n,t)),n={cache:Vi()},void(e.payload=n)}n=n.return}}function cs(e,n,t){var r=Ku();t={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},ps(e)?ms(n,t):null!==(t=Fr(e,n,t,r))&&(Qu(t,0,r),bs(t,n,r))}function fs(e,n,t){ds(e,n,t,Ku())}function ds(e,n,t,r){var i={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(ps(e))ms(n,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=n.lastRenderedReducer))try{var a=n.lastRenderedState,s=o(a,t);if(i.hasEagerState=!0,i.eagerState=s,er(s,a))return Br(e,n,i,0),null===bu&&Nr(),!1}catch(l){}if(null!==(t=Fr(e,n,i,r)))return Qu(t,0,r),bs(t,n,r),!0}return!1}function hs(e,n,t,i){if(i={lane:2,revertLane:qc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ps(e)){if(n)throw Error(r(479))}else null!==(n=Fr(e,t,i,2))&&Qu(n,0,2)}function ps(e){var n=e.alternate;return e===Go||null!==n&&n===Go}function ms(e,n){Xo=Ko=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function bs(e,n,t){if(4194048&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,De(e,t)}}var vs={readContext:Fi,use:ha,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useInsertionEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useSyncExternalStore:na,useId:na,useHostTransitionStatus:na,useFormState:na,useActionState:na,useOptimistic:na,useMemoCache:na,useCacheRefresh:na};vs.useEffectEvent=na;var ys={readContext:Fi,use:ha,useCallback:function(e,n){return ca().memoizedState=[e,void 0===n?null:n],e},useContext:Fi,useEffect:Wa,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,Va(4194308,4,Ka.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Va(4194308,4,e,n)},useInsertionEffect:function(e,n){Va(4,2,e,n)},useMemo:function(e,n){var t=ca();n=void 0===n?null:n;var r=e();if(Qo){ke(!0);try{e()}finally{ke(!1)}}return t.memoizedState=[r,n],r},useReducer:function(e,n,t){var r=ca();if(void 0!==t){var i=t(n);if(Qo){ke(!0);try{t(n)}finally{ke(!1)}}}else i=n;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=cs.bind(null,Go,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ca().memoizedState=e},useState:function(e){var n=(e=Sa(e)).queue,t=fs.bind(null,Go,n);return n.dispatch=t,[e.memoizedState,t]},useDebugValue:Qa,useDeferredValue:function(e,n){return $a(ca(),e,n)},useTransition:function(){var e=Sa(!1);return e=ns.bind(null,Go,e.queue,!0,!1),ca().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,t){var i=Go,o=ca();if(hi){if(void 0===t)throw Error(r(407));t=t()}else{if(t=n(),null===bu)throw Error(r(349));127&yu||ga(i,n,t)}o.memoizedState=t;var a={value:t,getSnapshot:n};return o.queue=a,Wa(Aa.bind(null,i,a,e),[e]),i.flags|=2048,ja(9,{destroy:void 0},ka.bind(null,i,a,t,n),null),t},useId:function(){var e=ca(),n=bu.identifierPrefix;if(hi){var t=oi;n="_"+n+"R_"+(t=(ii&~(1<<32-Ae(ii)-1)).toString(32)+t),0<(t=Zo++)&&(n+="H"+t.toString(32)),n+="_"}else n="_"+n+"r_"+(t=ea++).toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:as,useFormState:Fa,useActionState:Fa,useOptimistic:function(e){var n=ca();n.memoizedState=n.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=t,n=hs.bind(null,Go,!0,t),t.dispatch=n,[e,n]},useMemoCache:pa,useCacheRefresh:function(){return ca().memoizedState=us.bind(null,Go)},useEffectEvent:function(e){var n=ca(),t={impl:e};return n.memoizedState=t,function(){if(2&mu)throw Error(r(440));return t.impl.apply(void 0,arguments)}}},ws={readContext:Fi,use:ha,useCallback:Za,useContext:Fi,useEffect:qa,useImperativeHandle:Xa,useInsertionEffect:Ya,useLayoutEffect:Ja,useMemo:_a,useReducer:ba,useRef:Ha,useState:function(){return ba(ma)},useDebugValue:Qa,useDeferredValue:function(e,n){return es(fa(),Yo.memoizedState,e,n)},useTransition:function(){var e=ba(ma)[0],n=fa().memoizedState;return["boolean"==typeof e?e:da(e),n]},useSyncExternalStore:wa,useId:ss,useHostTransitionStatus:as,useFormState:La,useActionState:La,useOptimistic:function(e,n){return Ca(fa(),0,e,n)},useMemoCache:pa,useCacheRefresh:ls};ws.useEffectEvent=Ga;var gs={readContext:Fi,use:ha,useCallback:Za,useContext:Fi,useEffect:qa,useImperativeHandle:Xa,useInsertionEffect:Ya,useLayoutEffect:Ja,useMemo:_a,useReducer:ya,useRef:Ha,useState:function(){return ya(ma)},useDebugValue:Qa,useDeferredValue:function(e,n){var t=fa();return null===Yo?$a(t,e,n):es(t,Yo.memoizedState,e,n)},useTransition:function(){var e=ya(ma)[0],n=fa().memoizedState;return["boolean"==typeof e?e:da(e),n]},useSyncExternalStore:wa,useId:ss,useHostTransitionStatus:as,useFormState:Pa,useActionState:Pa,useOptimistic:function(e,n){var t=fa();return null!==Yo?Ca(t,0,e,n):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:pa,useCacheRefresh:ls};function ks(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:c({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}gs.useEffectEvent=Ga;var As={enqueueSetState:function(e,n,t){e=e.ue;var r=Ku(),i=ko(r);i.payload=n,null!=t&&(i.callback=t),null!==(n=Ao(e,i,r))&&(Qu(n,0,r),xo(n,e,r))},enqueueReplaceState:function(e,n,t){e=e.ue;var r=Ku(),i=ko(r);i.tag=1,i.payload=n,null!=t&&(i.callback=t),null!==(n=Ao(e,i,r))&&(Qu(n,0,r),xo(n,e,r))},enqueueForceUpdate:function(e,n){e=e.ue;var t=Ku(),r=ko(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=Ao(e,r,t))&&(Qu(n,0,t),xo(n,e,t))}};function xs(e,n,t,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(n.prototype&&n.prototype.isPureReactComponent&&nr(t,r)&&nr(i,o))}function Es(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&As.enqueueReplaceState(n,n.state,null)}function Ss(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var i in t===n&&(t=c({},t)),e)void 0===t[i]&&(t[i]=e[i]);return t}function Cs(e){Ir(e)}function Ts(e){}function Is(e){Ir(e)}function Ms(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(t){setTimeout(function(){throw t})}}function Os(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Rs(e,n,t){return(t=ko(t)).tag=3,t.payload={element:null},t.callback=function(){Ms(e,n)},t}function Ns(e){return(e=ko(e)).tag=3,e}function Bs(e,n,t,r){var i=t.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Os(n,t,r)}}var a=t.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Os(n,t,r),"function"!=typeof i&&(null===Pu?Pu=/* @__PURE__ */new Set([this]):Pu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Fs=Error(r(461)),Ls=!1;function Ds(e,n,t,r){n.child=null===e?vo(n,null,t,r):bo(n,e.child,t,r)}function Us(e,n,t,r,i){t=t.render;var o=n.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Bi(n),r=ra(e,n,t,a,o,i),s=sa(),null===e||Ls?(hi&&s&&li(n),n.flags|=1,Ds(e,n,r,i),n.child):(la(e,n,i),al(e,n,i))}function Ps(e,n,t,r,i){if(null===e){var o=t.type;return"function"!=typeof o||Vr(o)||void 0!==o.defaultProps||null!==t.compare?((e=qr(t.type,null,r,n,n.mode,i)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=o,js(e,n,o,r,i))}if(o=e.child,!sl(e,i)){var a=o.memoizedProps;if((t=null!==(t=t.compare)?t:nr)(a,r)&&e.ref===n.ref)return al(e,n,i)}return n.flags|=1,(e=zr(o,r)).ref=n.ref,e.return=n,n.child=e}function js(e,n,t,r,i){if(null!==e){var o=e.memoizedProps;if(nr(o,r)&&e.ref===n.ref){if(Ls=!1,n.pendingProps=r=o,!sl(e,i))return n.lanes=e.lanes,al(e,n,i);131072&e.flags&&(Ls=!0)}}return Ys(e,n,t,r,i)}function Hs(e,n,t,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===n.stateNode&&(n.stateNode={le:1,ce:null,fe:null,de:null}),"hidden"===r.mode){if(128&n.flags){if(o=null!==o?o.baseLanes|t:t,null!==e){for(r=n.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,n.child=null;return zs(e,n,o,t,r)}if(!(536870912&t))return r=n.lanes=536870912,zs(e,n,null!==o?o.baseLanes|t:t,t,r);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&Zi(0,null!==o?o.cachePool:null),null!==o?No(n,o):Bo(),jo(n)}else null!==o?(Zi(0,o.cachePool),No(n,o),Ho(),n.memoizedState=null):(null!==e&&Zi(0,null),Bo(),Ho());return Ds(e,n,i,t),n.child}function Vs(e,n){return null!==e&&22===e.tag||null!==n.stateNode||(n.stateNode={le:1,ce:null,fe:null,de:null}),n.sibling}function zs(e,n,t,r,i){var o=Qi();return o=null===o?null:{parent:Hi.U,pool:o},n.memoizedState={baseLanes:t,cachePool:o},null!==e&&Zi(0,null),Bo(),jo(n),null!==e&&Ri(e,n,r,!0),n.childLanes=i,null}function Ws(e,n){return(n=nl({mode:n.mode,children:n.children},e.mode)).ref=e.ref,e.child=n,n.return=e,n}function qs(e,n,t){return bo(n,e.child,null,t),(e=Ws(n,n.pendingProps)).flags|=2,Vo(n),n.memoizedState=null,e}function Gs(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(r(284));null!==e&&e.ref===t||(n.flags|=4194816)}}function Ys(e,n,t,r,i){return Bi(n),t=ra(e,n,t,r,void 0,i),r=sa(),null===e||Ls?(hi&&r&&li(n),n.flags|=1,Ds(e,n,t,i),n.child):(la(e,n,i),al(e,n,i))}function Js(e,n,t,r,i,o){return Bi(n),n.updateQueue=null,t=oa(n,r,t,i),ia(e),r=sa(),null===e||Ls?(hi&&r&&li(n),n.flags|=1,Ds(e,n,t,o),n.child):(la(e,n,o),al(e,n,o))}function Ks(e,n,t,r,i){if(Bi(n),null===n.stateNode){var o=Pr,a=t.contextType;"object"==typeof a&&null!==a&&(o=Fi(a)),o=new t(r,o),n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=As,n.stateNode=o,o.ue=n,(o=n.stateNode).props=r,o.state=n.memoizedState,o.refs={},wo(n),a=t.contextType,o.context="object"==typeof a&&null!==a?Fi(a):Pr,o.state=n.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ks(n,t,a,r),o.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&As.enqueueReplaceState(o,o.state,null),To(n,r,o,i),Co(),o.state=n.memoizedState),"function"==typeof o.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){o=n.stateNode;var s=n.memoizedProps,l=Ss(t,s);o.props=l;var u=o.context,c=t.contextType;a=Pr,"object"==typeof c&&null!==c&&(a=Fi(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate,s=n.pendingProps!==s,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||u!==a)&&Es(n,o,r,a),yo=!1;var d=n.memoizedState;o.state=d,To(n,r,o,i),Co(),u=n.memoizedState,s||d!==u||yo?("function"==typeof f&&(ks(n,t,f,r),u=n.memoizedState),(l=yo||xs(n,t,l,r,d,u,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(n.flags|=4194308)):("function"==typeof o.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=u),o.props=r,o.state=u,o.context=a,r=l):("function"==typeof o.componentDidMount&&(n.flags|=4194308),r=!1)}else{o=n.stateNode,go(e,n),c=Ss(t,a=n.memoizedProps),o.props=c,f=n.pendingProps,d=o.context,u=t.contextType,l=Pr,"object"==typeof u&&null!==u&&(l=Fi(u)),(u="function"==typeof(s=t.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==f||d!==l)&&Es(n,o,r,l),yo=!1,d=n.memoizedState,o.state=d,To(n,r,o,i),Co();var h=n.memoizedState;a!==f||d!==h||yo||null!==e&&null!==e.dependencies&&Ni(e.dependencies)?("function"==typeof s&&(ks(n,t,s,r),h=n.memoizedState),(c=yo||xs(n,t,c,r,d,h,l)||null!==e&&null!==e.dependencies&&Ni(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(n.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),o.props=r,o.state=h,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return o=r,Gs(e,n),r=!!(128&n.flags),o||r?(o=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:o.render(),n.flags|=1,null!==e&&r?(n.child=bo(n,e.child,null,i),n.child=bo(n,null,t,i)):Ds(e,n,t,i),n.memoizedState=o.state,e=n.child):e=al(e,n,i),e}function Xs(e,n,t,r){return ki(),n.flags|=256,Ds(e,n,t,r),n.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:_i()}}function _s(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Mu),e}function $s(e,n,t){var i,o=n.pendingProps,a=!1,s=!!(128&n.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&zo.current)),i&&(a=!0,n.flags&=-129),i=!!(32&n.flags),n.flags&=-33,null===e){if(hi){if(a?Uo(n):Ho(),(e=di)?null!==(e=null!==(e=Bf(e,mi))&&"&"!==e.data?e:null)&&(n.memoizedState={dehydrated:e,treeContext:null!==ri?{id:ii,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},(t=Jr(e)).return=n,n.child=t,fi=n,di=null):e=null,null===e)throw vi(n);return Lf(e)?n.lanes=32:n.lanes=536870912,null}var l=o.children;return o=o.fallback,a?(Ho(),l=nl({mode:"hidden",children:l},a=n.mode),o=Gr(o,a,t,null),l.return=n,o.return=n,l.sibling=o,n.child=l,(o=n.child).memoizedState=Zs(t),o.childLanes=_s(e,i,t),n.memoizedState=Qs,Vs(null,o)):(Uo(n),el(n,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&n.flags?(Uo(n),n.flags&=-257,n=tl(e,n,t)):null!==n.memoizedState?(Ho(),n.child=e.child,n.flags|=128,n=null):(Ho(),l=o.fallback,a=n.mode,o=nl({mode:"visible",children:o.children},a),(l=Gr(l,a,t,null)).flags|=2,o.return=n,l.return=n,o.sibling=l,n.child=o,bo(n,e.child,null,t),(o=n.child).memoizedState=Zs(t),o.childLanes=_s(e,i,t),n.memoizedState=Qs,n=Vs(null,o));else if(Uo(n),Lf(l)){if(i=l.nextSibling&&l.nextSibling.dataset)var c=i.dgst;i=c,(o=Error(r(419))).stack="",o.digest=i,xi({value:o,source:null,stack:null}),n=tl(e,n,t)}else if(Ls||Ri(e,n,t,!1),i=0!==(t&e.childLanes),Ls||i){if(null!==(i=bu)&&0!==(o=Ue(i,t))&&o!==u.retryLane)throw u.retryLane=o,Lr(e,o),Qu(i,0,o),Fs;Ff(l)||lc(),n=tl(e,n,t)}else Ff(l)?(n.flags|=192,n.child=e.child,n=null):(e=u.treeContext,di=Df(l.nextSibling),fi=n,hi=!0,pi=null,mi=!1,null!==e&&ci(n,e),(n=el(n,o.children)).flags|=4096);return n}return a?(Ho(),l=o.fallback,a=n.mode,c=(u=e.child).sibling,(o=zr(u,{mode:"hidden",children:o.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=zr(c,l):(l=Gr(l,a,t,null)).flags|=2,l.return=n,o.return=n,o.sibling=l,n.child=o,Vs(null,o),o=n.child,null===(l=e.child.memoizedState)?l=Zs(t):(null!==(a=l.cachePool)?(u=Hi.U,a=a.parent!==u?{parent:u,pool:u}:a):a=_i(),l={baseLanes:l.baseLanes|t,cachePool:a}),o.memoizedState=l,o.childLanes=_s(e,i,t),n.memoizedState=Qs,Vs(e.child,o)):(Uo(n),e=(t=e.child).sibling,(t=zr(t,{mode:"visible",children:o.children})).return=n,t.sibling=null,null!==e&&(null===(i=n.deletions)?(n.deletions=[e],n.flags|=16):i.push(e)),n.child=t,n.memoizedState=null,t)}function el(e,n){return(n=nl({mode:"visible",children:n},e.mode)).return=e,e.child=n}function nl(e,n){return(e=Hr(22,e,null,n)).lanes=0,e}function tl(e,n,t){return bo(n,e.child,null,t),(e=el(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function rl(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Mi(e.return,n,t)}function il(e,n,t,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i,treeForkCount:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=i,a.treeForkCount=o)}function ol(e,n,t){var r=n.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=zo.current,s=!!(2&a);if(s?(a=1&a|2,n.flags|=128):a&=1,W(zo,a),Ds(e,n,r,t),r=hi?ei:0,!s&&null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,t,n);else if(19===e.tag)rl(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(t=n.child,i=null;null!==t;)null!==(e=t.alternate)&&null===Wo(e)&&(i=t),t=t.sibling;null===(t=i)?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),il(n,!1,i,t,o,r);break;case"backwards":case"unstable_legacy-backwards":for(t=null,i=n.child,n.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Wo(e)){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}il(n,!0,t,null,o,r);break;case"together":il(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function al(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Cu|=n.lanes,0===(t&n.childLanes)){if(null===e)return null;if(Ri(e,n,t,!1),0===(t&n.childLanes))return null}if(null!==e&&n.child!==e.child)throw Error(r(153));if(null!==n.child){for(t=zr(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=zr(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function sl(e,n){return 0!==(e.lanes&n)||!(null===(e=e.dependencies)||!Ni(e))}function ll(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)Ls=!0;else{if(!(sl(e,t)||128&n.flags))return Ls=!1,function(e,n,t){switch(n.tag){case 3:Q(n,n.stateNode.containerInfo),Ti(0,Hi,e.memoizedState.cache),ki();break;case 27:case 5:_(n);break;case 4:Q(n,n.stateNode.containerInfo);break;case 10:Ti(0,n.type,n.memoizedProps.value);break;case 31:if(null!==n.memoizedState)return n.flags|=128,Po(n),null;break;case 13:var r=n.memoizedState;if(null!==r)return null!==r.dehydrated?(Uo(n),n.flags|=128,null):0!==(t&n.child.childLanes)?$s(e,n,t):(Uo(n),null!==(e=al(e,n,t))?e.sibling:null);Uo(n);break;case 19:var i=!!(128&e.flags);if((r=0!==(t&n.childLanes))||(Ri(e,n,t,!1),r=0!==(t&n.childLanes)),i){if(r)return ol(e,n,t);n.flags|=128}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(zo,zo.current),r)break;return null;case 22:return n.lanes=0,Hs(e,n,t,n.pendingProps);case 24:Ti(0,Hi,e.memoizedState.cache)}return al(e,n,t)}(e,n,t);Ls=!!(131072&e.flags)}else Ls=!1,hi&&1048576&n.flags&&si(n,ei,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=oo(n.elementType),n.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===g){n.tag=11,n=Us(null,n,e,i,t);break e}if(o===E){n.tag=14,n=Ps(null,n,e,i,t);break e}}throw n=B(e)||e,Error(r(306,n,""))}Vr(e)?(i=Ss(e,i),n.tag=1,n=Ks(null,n,e,i,t)):(n.tag=0,n=Ys(null,n,e,i,t))}return n;case 0:return Ys(e,n,n.type,n.pendingProps,t);case 1:return Ks(e,n,i=n.type,o=Ss(i,n.pendingProps),t);case 3:e:{if(Q(n,n.stateNode.containerInfo),null===e)throw Error(r(387));i=n.pendingProps;var a=n.memoizedState;o=a.element,go(e,n),To(n,i,null,t);var s=n.memoizedState;if(i=s.cache,Ti(0,Hi,i),i!==a.cache&&Oi(n,[Hi],t,!0),Co(),i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){n=Xs(e,n,i,t);break e}if(i!==o){xi(o=Qr(Error(r(424)),n)),n=Xs(e,n,i,t);break e}for(e=9===(e=n.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,di=Df(e.firstChild),fi=n,hi=!0,pi=null,mi=!0,t=vo(n,null,i,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(ki(),i===o){n=al(e,n,t);break e}Ds(e,n,i,t)}n=n.child}return n;case 26:return Gs(e,n),null===e?(t=Kf(n.type,null,n.pendingProps,null))?n.memoizedState=t:hi||(t=n.type,e=n.pendingProps,(i=wf(K.current).createElement(t))[We]=n,i[qe]=e,mf(i,t,e),tn(i),n.stateNode=i):n.memoizedState=Kf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return _(n),null===e&&hi&&(i=n.stateNode=Hf(n.type,n.pendingProps,K.current),fi=n,mi=!0,o=di,Mf(n.type)?(Uf=o,di=Df(i.firstChild)):di=o),Ds(e,n,n.pendingProps.children,t),Gs(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&hi&&((o=i=di)&&(null!==(i=function(e,n,t,r){for(;1===e.nodeType;){var i=t;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Qe])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Df(e.nextSibling)))break}return null}(i,n.type,n.pendingProps,mi))?(n.stateNode=i,fi=n,di=Df(i.firstChild),mi=!1,o=!0):o=!1),o||vi(n)),_(n),o=n.type,a=n.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,Af(o,a)?i=null:null!==s&&Af(o,s)&&(n.flags|=32),null!==n.memoizedState&&(o=ra(e,n,aa,null,null,t),hd.U=o),Gs(e,n),Ds(e,n,i,t),n.child;case 6:return null===e&&hi&&((e=t=di)&&(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Df(e.nextSibling)))return null}return e}(t,n.pendingProps,mi))?(n.stateNode=t,fi=n,di=null,e=!0):e=!1),e||vi(n)),null;case 13:return $s(e,n,t);case 4:return Q(n,n.stateNode.containerInfo),i=n.pendingProps,null===e?n.child=bo(n,null,i,t):Ds(e,n,i,t),n.child;case 11:return Us(e,n,n.type,n.pendingProps,t);case 7:return Ds(e,n,n.pendingProps,t),n.child;case 8:case 12:return Ds(e,n,n.pendingProps.children,t),n.child;case 10:return i=n.pendingProps,Ti(0,n.type,i.value),Ds(e,n,i.children,t),n.child;case 9:return o=n.type.V,i=n.pendingProps.children,Bi(n),i=i(o=Fi(o)),n.flags|=1,Ds(e,n,i,t),n.child;case 14:return Ps(e,n,n.type,n.pendingProps,t);case 15:return js(e,n,n.type,n.pendingProps,t);case 19:return ol(e,n,t);case 31:return function(e,n,t){var i=n.pendingProps,o=!!(128&n.flags);if(n.flags&=-129,null===e){if(hi){if("hidden"===i.mode)return e=Ws(n,i),n.lanes=536870912,Vs(null,e);if(Po(n),(e=di)?null!==(e=null!==(e=Bf(e,mi))&&"&"===e.data?e:null)&&(n.memoizedState={dehydrated:e,treeContext:null!==ri?{id:ii,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},(t=Jr(e)).return=n,n.child=t,fi=n,di=null):e=null,null===e)throw vi(n);return n.lanes=536870912,null}return Ws(n,i)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Po(n),o)if(256&n.flags)n.flags&=-257,n=qs(e,n,t);else{if(null===n.memoizedState)throw Error(r(558));n.child=e.child,n.flags|=128,n=null}else if(Ls||Ri(e,n,t,!1),o=0!==(t&e.childLanes),Ls||o){if(null!==(i=bu)&&0!==(s=Ue(i,t))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Qu(i,0,s),Fs;lc(),n=qs(e,n,t)}else e=a.treeContext,di=Df(s.nextSibling),fi=n,hi=!0,pi=null,mi=!1,null!==e&&ci(n,e),(n=Ws(n,i)).flags|=4096;return n}return(e=zr(e.child,{mode:i.mode,children:i.children})).ref=n.ref,n.child=e,e.return=n,e}(e,n,t);case 22:return Hs(e,n,t,n.pendingProps);case 24:return Bi(n),i=Fi(Hi),null===e?(null===(o=Qi())&&(o=bu,a=Vi(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=t),o=a),n.memoizedState={parent:i,cache:o},wo(n),Ti(0,Hi,o)):(0!==(e.lanes&t)&&(go(e,n),To(n,null,null,t),Co()),o=e.memoizedState,a=n.memoizedState,o.parent!==i?(o={parent:i,cache:i},n.memoizedState=o,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=o),Ti(0,Hi,i)):(i=a.cache,Ti(0,Hi,i),i!==o.cache&&Oi(n,[Hi],t,!0))),Ds(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function ul(e){e.flags|=4}function cl(e,n,t,r,i){if((n=!!(32&e.mode))&&(n=!1),n){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!oc())throw ao=to,eo;e.flags|=8192}}else e.flags&=-16777217}function fl(e,n){if("stylesheet"!==n.type||4&n.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sd(n)){if(!oc())throw ao=to,eo;e.flags|=8192}}function dl(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?Ne():536870912,e.lanes|=n,Ou|=n)}function hl(e,n){if(!hi)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ml(e,n,t){var i=n.pendingProps;switch(ui(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return pl(n),null;case 3:return t=n.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Ii(Hi),Z(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(gi(n)?ul(n):null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,Ai())),pl(n),null;case 26:var o=n.type,a=n.memoizedState;return null===e?(ul(n),null!==a?(pl(n),fl(n,a)):(pl(n),cl(n,o,0,0,t))):a?a!==e.memoizedState?(ul(n),pl(n),fl(n,a)):(pl(n),n.flags&=-16777217):((e=e.memoizedProps)!==i&&ul(n),pl(n),cl(n,o,0,0,t)),null;case 27:if($(n),t=K.current,o=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==i&&ul(n);else{if(!i){if(null===n.stateNode)throw Error(r(166));return pl(n),null}e=Y.current,gi(n)?yi(n):(e=Hf(o,i,t),n.stateNode=e,ul(n))}return pl(n),null;case 5:if($(n),o=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==i&&ul(n);else{if(!i){if(null===n.stateNode)throw Error(r(166));return pl(n),null}if(a=Y.current,gi(n))yi(n);else{var s=wf(K.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof i.is?s.createElement("select",{is:i.is}):s.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a="string"==typeof i.is?s.createElement(o,{is:i.is}):s.createElement(o)}}a[We]=n,a[qe]=i;e:for(s=n.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===n)break e;for(;null===s.sibling;){if(null===s.return||s.return===n)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}n.stateNode=a;e:switch(mf(a,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ul(n)}}return pl(n),cl(n,n.type,null===e||e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==i&&ul(n);else{if("string"!=typeof i&&null===n.stateNode)throw Error(r(166));if(e=K.current,gi(n)){if(e=n.stateNode,t=n.memoizedProps,i=null,null!==(o=fi))switch(o.tag){case 27:case 5:i=o.memoizedProps}e[We]=n,(e=!!(e.nodeValue===t||null!==i&&!0===i.suppressHydrationWarning||df(e.nodeValue,t)))||vi(n,!0)}else(e=wf(e).createTextNode(i))[We]=n,n.stateNode=e}return pl(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(i=gi(n),null!==t){if(null===e){if(!i)throw Error(r(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(r(557));e[We]=n}else ki(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;pl(n),e=!1}else t=Ai(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&n.flags?(Vo(n),n):(Vo(n),null);if(128&n.flags)throw Error(r(558))}return pl(n),null;case 13:if(i=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=gi(n),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=n.memoizedState)?o.dehydrated:null))throw Error(r(317));o[We]=n}else ki(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;pl(n),o=!1}else o=Ai(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&n.flags?(Vo(n),n):(Vo(n),null)}return Vo(n),128&n.flags?(n.lanes=t,n):(t=null!==i,e=null!==e&&null!==e.memoizedState,t&&(o=null,null!==(i=n.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(o=i.alternate.memoizedState.cachePool.pool),a=null,null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(a=i.memoizedState.cachePool.pool),a!==o&&(i.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),dl(n,n.updateQueue),pl(n),null);case 4:return Z(),null===e&&nf(n.stateNode.containerInfo),pl(n),null;case 10:return Ii(n.type),pl(n),null;case 19:if(z(zo),null===(i=n.memoizedState))return pl(n),null;if(o=!!(128&n.flags),null===(a=i.rendering))if(o)hl(i,!1);else{if(0!==Su||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(a=Wo(e))){for(n.flags|=128,hl(i,!1),e=a.updateQueue,n.updateQueue=e,dl(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Wr(t,e),t=t.sibling;return W(zo,1&zo.current|2),hi&&ai(n,i.treeForkCount),n.child}e=e.sibling}null!==i.tail&&ce()>Du&&(n.flags|=128,o=!0,hl(i,!1),n.lanes=4194304)}else{if(!o)if(null!==(e=Wo(a))){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,dl(n,e),hl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!hi)return pl(n),null}else 2*ce()-i.renderingStartTime>Du&&536870912!==t&&(n.flags|=128,o=!0,hl(i,!1),n.lanes=4194304);i.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=i.last)?e.sibling=a:n.child=a,i.last=a)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ce(),e.sibling=null,t=zo.current,W(zo,o?1&t|2:1&t),hi&&ai(n,i.treeForkCount),e):(pl(n),null);case 22:case 23:return Vo(n),Fo(),i=null!==n.memoizedState,null!==e?null!==e.memoizedState!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?!!(536870912&t)&&!(128&n.flags)&&(pl(n),6&n.subtreeFlags&&(n.flags|=8192)):pl(n),null!==(t=n.updateQueue)&&dl(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),i=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(i=n.memoizedState.cachePool.pool),i!==t&&(n.flags|=2048),null!==e&&z(Xi),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Ii(Hi),pl(n),null;case 25:case 30:return null}throw Error(r(156,n.tag))}function bl(e,n){switch(ui(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Ii(Hi),Z(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return $(n),null;case 31:if(null!==n.memoizedState){if(Vo(n),null===n.alternate)throw Error(r(340));ki()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(Vo(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(r(340));ki()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return z(zo),null;case 4:return Z(),null;case 10:return Ii(n.type),null;case 22:case 23:return Vo(n),Fo(),null!==e&&z(Xi),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return Ii(Hi),null;default:return null}}function vl(e,n){switch(ui(n),n.tag){case 3:Ii(Hi),Z();break;case 26:case 27:case 5:$(n);break;case 4:Z();break;case 31:null!==n.memoizedState&&Vo(n);break;case 13:Vo(n);break;case 19:z(zo);break;case 10:Ii(n.type);break;case 22:case 23:Vo(n),Fo(),null!==e&&z(Xi);break;case 24:Ii(Hi)}}function yl(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var i=r.next;t=i;do{if((t.tag&e)===e){r=void 0;var o=t.create,a=t.inst;r=o(),a.destroy=r}t=t.next}while(t!==i)}}catch(s){Sc(n,n.return,s)}}function wl(e,n,t){try{var r=n.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=n;var l=t,u=s;try{u()}catch(c){Sc(i,l,c)}}}r=r.next}while(r!==o)}}catch(c){Sc(n,n.return,c)}}function gl(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Mo(n,t)}catch(r){Sc(e,e.return,r)}}}function kl(e,n,t){t.props=Ss(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(r){Sc(e,n,r)}}function Al(e,n){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(i){Sc(e,n,i)}}function xl(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(i){Sc(e,n,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(o){Sc(e,n,o)}else t.current=null}function El(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&r.focus();break e;case"img":t.src?r.src=t.src:t.srcSet&&(r.srcset=t.srcSet)}}catch(i){Sc(e,e.return,i)}}function Sl(e,n,t){try{var i=e.stateNode;!function(e,n,t,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,u=null,c=null,f=null;for(p in t){var d=t[p];if(t.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":u=d;default:i.hasOwnProperty(p)||hf(e,n,p,null,i,d)}}for(var h in i){var p=i[h];if(d=t[h],i.hasOwnProperty(h)&&(null!=p||null!=d))switch(h){case"type":a=p;break;case"name":o=p;break;case"checked":c=p;break;case"defaultChecked":f=p;break;case"value":s=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,n));break;default:p!==d&&hf(e,n,h,p,i,d)}}return void kn(e,s,l,u,c,f,a,o);case"select":for(a in p=s=l=h=null,t)if(u=t[a],t.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":p=u;default:i.hasOwnProperty(a)||hf(e,n,a,null,i,u)}for(o in i)if(a=i[o],u=t[o],i.hasOwnProperty(o)&&(null!=a||null!=u))switch(o){case"value":h=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&hf(e,n,o,a,i,u)}return n=l,t=s,i=p,void(null!=h?En(e,!!t,h,!1):!!i!=!!t&&(null!=n?En(e,!!t,n,!0):En(e,!!t,t?[]:"",!1)));case"textarea":for(l in p=h=null,t)if(o=t[l],t.hasOwnProperty(l)&&null!=o&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:hf(e,n,l,null,i,o)}for(s in i)if(o=i[s],a=t[s],i.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":h=o;break;case"defaultValue":p=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(r(91));break;default:o!==a&&hf(e,n,s,o,i,a)}return void Sn(e,h,p);case"option":for(var m in t)h=t[m],t.hasOwnProperty(m)&&null!=h&&!i.hasOwnProperty(m)&&("selected"===m?e.selected=!1:hf(e,n,m,null,i,h));for(u in i)h=i[u],p=t[u],!i.hasOwnProperty(u)||h===p||null==h&&null==p||("selected"===u?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:hf(e,n,u,h,i,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in t)h=t[b],t.hasOwnProperty(b)&&null!=h&&!i.hasOwnProperty(b)&&hf(e,n,b,null,i,h);for(c in i)if(h=i[c],p=t[c],i.hasOwnProperty(c)&&h!==p&&(null!=h||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,n));break;default:hf(e,n,c,h,i,p)}return;default:if(Rn(n)){for(var v in t)h=t[v],t.hasOwnProperty(v)&&void 0!==h&&!i.hasOwnProperty(v)&&pf(e,n,v,void 0,i,h);for(f in i)h=i[f],p=t[f],!i.hasOwnProperty(f)||h===p||void 0===h&&void 0===p||pf(e,n,f,h,i,p);return}}for(var y in t)h=t[y],t.hasOwnProperty(y)&&null!=h&&!i.hasOwnProperty(y)&&hf(e,n,y,null,i,h);for(d in i)h=i[d],p=t[d],!i.hasOwnProperty(d)||h===p||null==h&&null==p||hf(e,n,d,h,i,p)}(i,e.type,t,n),i[qe]=n}catch(o){Sc(e,e.return,o)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Mf(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Mf(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Il(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(e,n):((n=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(e),null!=(t=t.he)||null!==n.onclick||(n.onclick=Ln));else if(4!==r&&(27===r&&Mf(e.type)&&(t=e.stateNode,n=null),null!==(e=e.child)))for(Il(e,n,t),e=e.sibling;null!==e;)Il(e,n,t),e=e.sibling}function Ml(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&Mf(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(Ml(e,n,t),e=e.sibling;null!==e;)Ml(e,n,t),e=e.sibling}function Ol(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,i=n.attributes;i.length;)n.removeAttributeNode(i[0]);mf(n,r,t),n[We]=e,n[qe]=t}catch(o){Sc(e,e.return,o)}}var Rl=!1,Nl=!1,Bl=!1,Fl="function"==typeof WeakSet?WeakSet:Set,Ll=null;function Dl(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ql(e,t),4&r&&yl(5,t);break;case 1:if(Ql(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(a){Sc(t,t.return,a)}else{var i=Ss(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(i,n,e.pe)}catch(s){Sc(t,t.return,s)}}64&r&&gl(t),512&r&&Al(t,t.return);break;case 3:if(Ql(e,t),64&r&&null!==(e=t.updateQueue)){if(n=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:n=t.child.stateNode}try{Mo(e,n)}catch(a){Sc(t,t.return,a)}}break;case 27:null===n&&4&r&&Ol(t);case 26:case 5:Ql(e,t),null===n&&4&r&&El(t),512&r&&Al(t,t.return);break;case 12:Ql(e,t);break;case 31:Ql(e,t),4&r&&zl(e,t);break;case 13:Ql(e,t),4&r&&Wl(e,t),64&r&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,n){var t=e.ownerDocument;if("$~"===e.data)e.me=n;else if("$?"!==e.data||"loading"!==t.readyState)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e.me=r}}(e,t=Mc.bind(null,t));break;case 22:if(!(r=null!==t.memoizedState||Rl)){n=null!==n&&null!==n.memoizedState||Nl,i=Rl;var o=Nl;Rl=r,(Nl=n)&&!o?_l(e,t,!!(8772&t.subtreeFlags)):Ql(e,t),Rl=i,Nl=o}break;case 30:break;default:Ql(e,t)}}function Ul(e){var n=e.alternate;null!==n&&(e.alternate=null,Ul(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&Ze(n),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pl=null,jl=!1;function Hl(e,n,t){for(t=t.child;null!==t;)Vl(e,n,t),t=t.sibling}function Vl(e,n,t){if(ge&&"function"==typeof ge.onCommitFiberUnmount)try{ge.onCommitFiberUnmount(we,t)}catch(o){}switch(t.tag){case 26:Nl||xl(t,n),Hl(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:Nl||xl(t,n);var r=Pl,i=jl;Mf(t.type)&&(Pl=t.stateNode,jl=!1),Hl(e,n,t),Vf(t.stateNode),Pl=r,jl=i;break;case 5:Nl||xl(t,n);case 6:if(r=Pl,i=jl,Pl=null,Hl(e,n,t),jl=i,null!==(Pl=r))if(jl)try{(9===Pl.nodeType?Pl.body:"HTML"===Pl.nodeName?Pl.ownerDocument.body:Pl).removeChild(t.stateNode)}catch(a){Sc(t,n,a)}else try{Pl.removeChild(t.stateNode)}catch(a){Sc(t,n,a)}break;case 18:null!==Pl&&(jl?(Of(9===(e=Pl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),Jd(e)):Of(Pl,t.stateNode));break;case 4:r=Pl,i=jl,Pl=t.stateNode.containerInfo,jl=!0,Hl(e,n,t),Pl=r,jl=i;break;case 0:case 11:case 14:case 15:wl(2,t,n),Nl||wl(4,t,n),Hl(e,n,t);break;case 1:Nl||(xl(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount&&kl(t,n,r)),Hl(e,n,t);break;case 21:Hl(e,n,t);break;case 22:Nl=(r=Nl)||null!==t.memoizedState,Hl(e,n,t),Nl=r;break;default:Hl(e,n,t)}}function zl(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Jd(e)}catch(t){Sc(n,n.return,t)}}}function Wl(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Jd(e)}catch(t){Sc(n,n.return,t)}}function ql(e,n){var t=function(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new Fl),n;case 22:return null===(n=(e=e.stateNode).fe)&&(n=e.fe=new Fl),n;default:throw Error(r(435,e.tag))}}(e);n.forEach(function(n){if(!t.has(n)){t.add(n);var r=Oc.bind(null,e,n);n.then(r,r)}})}function Gl(e,n){var t=n.deletions;if(null!==t)for(var i=0;i<t.length;i++){var o=t[i],a=e,s=n,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Mf(l.type)){Pl=l.stateNode,jl=!1;break e}break;case 5:Pl=l.stateNode,jl=!1;break e;case 3:case 4:Pl=l.stateNode.containerInfo,jl=!0;break e}l=l.return}if(null===Pl)throw Error(r(160));Vl(a,s,o),Pl=null,jl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13886&n.subtreeFlags)for(n=n.child;null!==n;)Jl(n,e),n=n.sibling}var Yl=null;function Jl(e,n){var t=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gl(n,e),Kl(e),4&i&&(wl(3,e,e.return),yl(3,e),wl(5,e,e.return));break;case 1:Gl(n,e),Kl(e),512&i&&(Nl||null===t||xl(t,t.return)),64&i&&Rl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===t?i:t.concat(i));break;case 26:var o=Yl;if(Gl(n,e),Kl(e),512&i&&(Nl||null===t||xl(t,t.return)),4&i){var a=null!==t?t.memoizedState:null;if(i=e.memoizedState,null===t)if(null===i)if(null===e.stateNode){e:{i=e.type,t=e.memoizedProps,o=o.ownerDocument||o;n:switch(i){case"title":(!(a=o.getElementsByTagName("title")[0])||a[Qe]||a[We]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(i),o.head.insertBefore(a,o.querySelector("head > title"))),mf(a,i,t),a[We]=e,tn(a),i=a;break e;case"link":var s=od("link","href",o).get(i+(t.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==t.href||""===t.href?null:t.href)&&a.getAttribute("rel")===(null==t.rel?null:t.rel)&&a.getAttribute("title")===(null==t.title?null:t.title)&&a.getAttribute("crossorigin")===(null==t.crossOrigin?null:t.crossOrigin)){s.splice(l,1);break n}mf(a=o.createElement(i),i,t),o.head.appendChild(a);break;case"meta":if(s=od("meta","content",o).get(i+(t.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==t.content?null:""+t.content)&&a.getAttribute("name")===(null==t.name?null:t.name)&&a.getAttribute("property")===(null==t.property?null:t.property)&&a.getAttribute("http-equiv")===(null==t.httpEquiv?null:t.httpEquiv)&&a.getAttribute("charset")===(null==t.charSet?null:t.charSet)){s.splice(l,1);break n}mf(a=o.createElement(i),i,t),o.head.appendChild(a);break;default:throw Error(r(468,i))}a[We]=e,tn(a),i=a}e.stateNode=i}else ad(o,e.type,e.stateNode);else e.stateNode=ed(o,i,e.memoizedProps);else a!==i?(null===a?null!==t.stateNode&&(t=t.stateNode).parentNode.removeChild(t):a.count--,null===i?ad(o,e.type,e.stateNode):ed(o,i,e.memoizedProps)):null===i&&null!==e.stateNode&&Sl(e,e.memoizedProps,t.memoizedProps)}break;case 27:Gl(n,e),Kl(e),512&i&&(Nl||null===t||xl(t,t.return)),null!==t&&4&i&&Sl(e,e.memoizedProps,t.memoizedProps);break;case 5:if(Gl(n,e),Kl(e),512&i&&(Nl||null===t||xl(t,t.return)),32&e.flags){o=e.stateNode;try{Tn(o,"")}catch(m){Sc(e,e.return,m)}}4&i&&null!=e.stateNode&&Sl(e,o=e.memoizedProps,null!==t?t.memoizedProps:o),1024&i&&(Bl=!0);break;case 6:if(Gl(n,e),Kl(e),4&i){if(null===e.stateNode)throw Error(r(162));i=e.memoizedProps,t=e.stateNode;try{t.nodeValue=i}catch(m){Sc(e,e.return,m)}}break;case 3:if(id=null,o=Yl,Yl=qf(n.containerInfo),Gl(n,e),Yl=o,Kl(e),4&i&&null!==t&&t.memoizedState.isDehydrated)try{Jd(n.containerInfo)}catch(m){Sc(e,e.return,m)}Bl&&(Bl=!1,Xl(e));break;case 4:i=Yl,Yl=qf(e.stateNode.containerInfo),Gl(n,e),Kl(e),Yl=i;break;case 12:default:Gl(n,e),Kl(e);break;case 31:case 19:Gl(n,e),Kl(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,ql(e,i));break;case 13:Gl(n,e),Kl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==t&&null!==t.memoizedState)&&(Fu=ce()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,ql(e,i));break;case 22:o=null!==e.memoizedState;var u=null!==t&&null!==t.memoizedState,c=Rl,f=Nl;if(Rl=c||o,Nl=f||u,Gl(n,e),Nl=f,Rl=c,Kl(e),8192&i)e:for(n=e.stateNode,n.le=o?-2&n.le:1|n.le,o&&(null===t||u||Rl||Nl||Zl(e)),t=null,n=e;;){if(5===n.tag||26===n.tag){if(null===t){u=t=n;try{if(a=u.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var d=u.memoizedProps.style,h=null!=d&&d.hasOwnProperty("display")?d.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(m){Sc(u,u.return,m)}}}else if(6===n.tag){if(null===t){u=n;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(m){Sc(u,u.return,m)}}}else if(18===n.tag){if(null===t){u=n;try{var p=u.stateNode;o?Rf(p,!0):Rf(u.stateNode,!1)}catch(m){Sc(u,u.return,m)}}}else if((22!==n.tag&&23!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;null===n.sibling;){if(null===n.return||n.return===e)break e;t===n&&(t=null),n=n.return}t===n&&(t=null),n.sibling.return=n.return,n=n.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(t=i.retryQueue)&&(i.retryQueue=null,ql(e,t));case 30:case 21:}}function Kl(e){var n=e.flags;if(2&n){try{for(var t,i=e.return;null!==i;){if(Cl(i)){t=i;break}i=i.return}if(null==t)throw Error(r(160));switch(t.tag){case 27:var o=t.stateNode;Ml(e,Tl(e),o);break;case 5:var a=t.stateNode;32&t.flags&&(Tn(a,""),t.flags&=-33),Ml(e,Tl(e),a);break;case 3:case 4:var s=t.stateNode.containerInfo;Il(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Sc(e,e.return,l)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Xl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var n=e;Xl(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),e=e.sibling}}function Ql(e,n){if(8772&n.subtreeFlags)for(n=n.child;null!==n;)Dl(e,n.alternate,n),n=n.sibling}function Zl(e){for(e=e.child;null!==e;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:wl(4,n,n.return),Zl(n);break;case 1:xl(n,n.return);var t=n.stateNode;"function"==typeof t.componentWillUnmount&&kl(n,n.return,t),Zl(n);break;case 27:Vf(n.stateNode);case 26:case 5:xl(n,n.return),Zl(n);break;case 22:null===n.memoizedState&&Zl(n);break;default:Zl(n)}e=e.sibling}}function _l(e,n,t){for(t=t&&!!(8772&n.subtreeFlags),n=n.child;null!==n;){var r=n.alternate,i=e,o=n,a=o.flags;switch(o.tag){case 0:case 11:case 15:_l(i,o,t),yl(4,o);break;case 1:if(_l(i,o,t),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(u){Sc(r,r.return,u)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Io(l[i],s)}catch(u){Sc(r,r.return,u)}}t&&64&a&&gl(o),Al(o,o.return);break;case 27:Ol(o);case 26:case 5:_l(i,o,t),t&&null===r&&4&a&&El(o),Al(o,o.return);break;case 12:_l(i,o,t);break;case 31:_l(i,o,t),t&&4&a&&zl(i,o);break;case 13:_l(i,o,t),t&&4&a&&Wl(i,o);break;case 22:null===o.memoizedState&&_l(i,o,t),Al(o,o.return);break;case 30:break;default:_l(i,o,t)}n=n.sibling}}function $l(e,n){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(e=n.memoizedState.cachePool.pool),e!==t&&(null!=e&&e.refCount++,null!=t&&zi(t))}function eu(e,n){e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&zi(e))}function nu(e,n,t,r){if(10256&n.subtreeFlags)for(n=n.child;null!==n;)tu(e,n,t,r),n=n.sibling}function tu(e,n,t,r){var i=n.flags;switch(n.tag){case 0:case 11:case 15:nu(e,n,t,r),2048&i&&yl(9,n);break;case 1:case 31:case 13:default:nu(e,n,t,r);break;case 3:nu(e,n,t,r),2048&i&&(e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&zi(e)));break;case 12:if(2048&i){nu(e,n,t,r),e=n.stateNode;try{var o=n.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===n.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Sc(n,n.return,l)}}else nu(e,n,t,r);break;case 23:break;case 22:o=n.stateNode,a=n.alternate,null!==n.memoizedState?2&o.le?nu(e,n,t,r):iu(e,n):2&o.le?nu(e,n,t,r):(o.le|=2,ru(e,n,t,r,!!(10256&n.subtreeFlags)||!1)),2048&i&&$l(a,n);break;case 24:nu(e,n,t,r),2048&i&&eu(n.alternate,n)}}function ru(e,n,t,r,i){for(i=i&&(!!(10256&n.subtreeFlags)||!1),n=n.child;null!==n;){var o=e,a=n,s=t,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:ru(o,a,s,l,i),yl(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c.le?ru(o,a,s,l,i):iu(o,a):(c.le|=2,ru(o,a,s,l,i)),i&&2048&u&&$l(a.alternate,a);break;case 24:ru(o,a,s,l,i),i&&2048&u&&eu(a.alternate,a);break;default:ru(o,a,s,l,i)}n=n.sibling}}function iu(e,n){if(10256&n.subtreeFlags)for(n=n.child;null!==n;){var t=e,r=n,i=r.flags;switch(r.tag){case 22:iu(t,r),2048&i&&$l(r.alternate,r);break;case 24:iu(t,r),2048&i&&eu(r.alternate,r);break;default:iu(t,r)}n=n.sibling}}var ou=8192;function au(e,n,t){if(e.subtreeFlags&ou)for(e=e.child;null!==e;)su(e,n,t),e=e.sibling}function su(e,n,t){switch(e.tag){case 26:au(e,n,t),e.flags&ou&&null!==e.memoizedState&&function(e,n,t,r){if(!("stylesheet"!==t.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&t.state.loading)){if(null===t.instance){var i=Xf(r.href),o=n.querySelector(Qf(i));if(o)return null!==(n=o.be)&&"object"==typeof n&&"function"==typeof n.then&&(e.count++,e=ud.bind(e),n.then(e,e)),t.state.loading|=4,t.instance=o,void tn(o);o=n.ownerDocument||n,r=Zf(r),(i=zf.get(i))&&td(r,i),tn(o=o.createElement("link"));var a=o;a.be=new Promise(function(e,n){a.onload=e,a.onerror=n}),mf(o,"link",r),t.instance=o}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&!(3&t.state.loading)&&(e.count++,t=ud.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}(t,Yl,e.memoizedState,e.memoizedProps);break;case 5:default:au(e,n,t);break;case 3:case 4:var r=Yl;Yl=qf(e.stateNode.containerInfo),au(e,n,t),Yl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ou,ou=16777216,au(e,n,t),ou=r):au(e,n,t))}}function lu(e){var n=e.alternate;if(null!==n&&null!==(e=n.child)){n.child=null;do{n=e.sibling,e.sibling=null,e=n}while(null!==e)}}function uu(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Ll=r,du(r,e)}lu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)cu(e),e=e.sibling}function cu(e){switch(e.tag){case 0:case 11:case 15:uu(e),2048&e.flags&&wl(9,e,e.return);break;case 3:case 12:default:uu(e);break;case 22:var n=e.stateNode;null!==e.memoizedState&&2&n.le&&(null===e.return||13!==e.return.tag)?(n.le&=-3,fu(e)):uu(e)}}function fu(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Ll=r,du(r,e)}lu(e)}for(e=e.child;null!==e;){switch((n=e).tag){case 0:case 11:case 15:wl(8,n,n.return),fu(n);break;case 22:2&(t=n.stateNode).le&&(t.le&=-3,fu(n));break;default:fu(n)}e=e.sibling}}function du(e,n){for(;null!==Ll;){var t=Ll;switch(t.tag){case 0:case 11:case 15:wl(8,t,n);break;case 23:case 22:if(null!==t.memoizedState&&null!==t.memoizedState.cachePool){var r=t.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:zi(t.memoizedState.cache)}if(null!==(r=t.child))r.return=t,Ll=r;else e:for(t=e;null!==Ll;){var i=(r=Ll).sibling,o=r.return;if(Ul(r),r===t){Ll=null;break e}if(null!==i){i.return=o,Ll=i;break e}Ll=o}}}var hu={getCacheForType:function(e){var n=Fi(Hi),t=n.data.get(e);return void 0===t&&(t=e(),n.data.set(e,t)),t},cacheSignal:function(){return Fi(Hi).controller.signal}},pu="function"==typeof WeakMap?WeakMap:Map,mu=0,bu=null,vu=null,yu=0,wu=0,gu=null,ku=!1,Au=!1,xu=!1,Eu=0,Su=0,Cu=0,Tu=0,Iu=0,Mu=0,Ou=0,Ru=null,Nu=null,Bu=!1,Fu=0,Lu=0,Du=1/0,Uu=null,Pu=null,ju=0,Hu=null,Vu=null,zu=0,Wu=0,qu=null,Gu=null,Yu=0,Ju=null;function Ku(){return 2&mu&&0!==yu?yu&-yu:null!==D.T?qc():He()}function Xu(){if(0===Mu)if(536870912&yu&&!hi)Mu=536870912;else{var e=Ce;!(3932160&(Ce<<=1))&&(Ce=262144),Mu=e}return null!==(e=Lo.current)&&(e.flags|=32),Mu}function Qu(e,n,t){(e!==bu||2!==wu&&9!==wu)&&null===e.cancelPendingCommit||(rc(e,0),ec(e,yu,Mu,!1)),Fe(e,t),2&mu&&e===bu||(e===bu&&(!(2&mu)&&(Tu|=t),4===Su&&ec(e,yu,Mu,!1)),Uc(e))}function Zu(e,n,t){if(6&mu)throw Error(r(327));for(var i=!t&&!(127&n)&&0===(n&e.expiredLanes)||Oe(e,n),o=i?function(e,n){var t=mu;mu|=2;var i=ac(),o=sc();bu!==e||yu!==n?(Uu=null,Du=ce()+500,rc(e,n)):Au=Oe(e,n);e:for(;;)try{if(0!==wu&&null!==vu){n=vu;var a=gu;n:switch(wu){case 1:wu=0,gu=null,pc(e,n,a,1);break;case 2:case 9:if(ro(a)){wu=0,gu=null,hc(n);break}n=function(){2!==wu&&9!==wu||bu!==e||(wu=7),Uc(e)},a.then(n,n);break e;case 3:wu=7;break e;case 4:wu=5;break e;case 7:ro(a)?(wu=0,gu=null,hc(n)):(wu=0,gu=null,pc(e,n,a,7));break;case 5:var s=null;switch(vu.tag){case 26:s=vu.memoizedState;case 5:case 27:var l=vu;if(s?sd(s):l.stateNode.complete){wu=0,gu=null;var u=l.sibling;if(null!==u)vu=u;else{var c=l.return;null!==c?(vu=c,mc(c)):vu=null}break n}}wu=0,gu=null,pc(e,n,a,5);break;case 6:wu=0,gu=null,pc(e,n,a,6);break;case 8:tc(),Su=6;break e;default:throw Error(r(462))}}fc();break}catch(f){ic(e,f)}return Ci=Si=null,D.H=i,D.A=o,mu=t,null!==vu?0:(bu=null,yu=0,Nr(),Su)}(e,n):uc(e,n,!0),a=i;;){if(0===o){Au&&!i&&ec(e,n,0,!1);break}if(t=e.current.alternate,!a||$u(t)){if(2===o){if(a=n,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){n=s;e:{var l=e;o=Ru;var u=l.current.memoizedState.isDehydrated;if(u&&(rc(l,s).flags|=256),2!==(s=uc(l,s,!1))){if(xu&&!u){l.errorRecoveryDisabledLanes|=a,Tu|=a,o=4;break e}a=Nu,Nu=o,null!==a&&(null===Nu?Nu=a:Nu.push.apply(Nu,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){rc(e,0),ec(e,n,0,!0);break}e:{switch(i=e,a=o){case 0:case 1:throw Error(r(345));case 4:if((4194048&n)!==n)break;case 6:ec(i,n,Mu,!ku);break e;case 2:Nu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&n)===n&&10<(o=Fu+300-ce())){if(ec(i,n,Mu,!ku),0!==Me(i,0,!0))break e;zu=n,i.timeoutHandle=Ef(_u.bind(null,i,t,Nu,Uu,Bu,n,Mu,Tu,Ou,ku,a,"Throttled",-0,0),o)}else _u(i,t,Nu,Uu,Bu,n,Mu,Tu,Ou,ku,a,null,-0,0)}break}o=uc(e,n,!1),a=!1}Uc(e)}function _u(e,n,t,r,i,o,a,s,l,u,c,f,d,h){if(e.timeoutHandle=-1,8192&(f=n.subtreeFlags)||!(16785408&~f)){su(n,o,f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln});var p=(62914560&o)===o?Fu-ce():(4194048&o)===o?Lu-ce():0;if(p=function(e,n){return e.stylesheets&&0===e.count&&fd(e,e.stylesheets),0<e.count||0<e.imgCount?function(t){var r=setTimeout(function(){if(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+n);0<e.imgBytes&&0===ld&&(ld=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,n=0,t=performance.getEntriesByType("resource"),r=0;r<t.length;r++){var i=t[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&bf(a)){for(a=0,s=i.responseEnd,r+=1;r<t.length;r++){var l=t[r],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&bf(f)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,n+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return n/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>ld?50:800)+n);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(f,p),null!==p)return zu=o,e.cancelPendingCommit=p(vc.bind(null,e,n,o,t,r,i,a,s,l,c,f,null,d,h)),void ec(e,o,a,!u)}vc(e,n,o,t,r,i,a,s,l)}function $u(e){for(var n=e;;){var t=n.tag;if((0===t||11===t||15===t)&&16384&n.flags&&null!==(t=n.updateQueue)&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var i=t[r],o=i.getSnapshot;i=i.value;try{if(!er(o(),i))return!1}catch(a){return!1}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ec(e,n,t,r){n&=~Iu,n&=~Tu,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var i=n;0<i;){var o=31-Ae(i),a=1<<o;r[o]=-1,i&=~a}0!==t&&Le(e,t,n)}function nc(){return!!(6&mu)||(Pc(0),!1)}function tc(){if(null!==vu){if(0===wu)var e=vu.return;else Ci=Si=null,ua(e=vu),uo=null,co=0,e=vu;for(;null!==e;)vl(e.alternate,e),e=e.return;vu=null}}function rc(e,n){var t=e.timeoutHandle;-1!==t&&(e.timeoutHandle=-1,Sf(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),zu=0,tc(),bu=e,vu=t=zr(e.current,null),yu=n,wu=0,gu=null,ku=!1,Au=Oe(e,n),xu=!1,Ou=Mu=Iu=Tu=Cu=Su=0,Nu=Ru=null,Bu=!1,8&n&&(n|=32&n);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=n;0<r;){var i=31-Ae(r),o=1<<i;n|=e[i],r&=~o}return Eu=n,Nr(),t}function ic(e,n){Go=null,D.H=vs,n===$i||n===no?(n=so(),wu=3):n===eo?(n=so(),wu=4):wu=n===Fs?8:null!==n&&"object"==typeof n&&"function"==typeof n.then?6:1,gu=n,null===vu&&(Su=1,Ms(e,Qr(n,e.current)))}function oc(){var e=Lo.current;return null===e||((4194048&yu)===yu?null===Do:!!((62914560&yu)===yu||536870912&yu)&&e===Do)}function ac(){var e=D.H;return D.H=vs,null===e?vs:e}function sc(){var e=D.A;return D.A=hu,e}function lc(){Su=4,ku||(4194048&yu)!==yu&&null!==Lo.current||(Au=!0),!(134217727&Cu)&&!(134217727&Tu)||null===bu||ec(bu,yu,Mu,!1)}function uc(e,n,t){var r=mu;mu|=2;var i=ac(),o=sc();bu===e&&yu===n||(Uu=null,rc(e,n)),n=!1;var a=Su;e:for(;;)try{if(0!==wu&&null!==vu){var s=vu,l=gu;switch(wu){case 8:tc(),a=6;break e;case 3:case 2:case 9:case 6:null===Lo.current&&(n=!0);var u=wu;if(wu=0,gu=null,pc(e,s,l,u),t&&Au){a=0;break e}break;default:u=wu,wu=0,gu=null,pc(e,s,l,u)}}cc(),a=Su;break}catch(c){ic(e,c)}return n&&e.shellSuspendCounter++,Ci=Si=null,mu=r,D.H=i,D.A=o,null===vu&&(bu=null,yu=0,Nr()),a}function cc(){for(;null!==vu;)dc(vu)}function fc(){for(;null!==vu&&!le();)dc(vu)}function dc(e){var n=ll(e.alternate,e,Eu);e.memoizedProps=e.pendingProps,null===n?mc(e):vu=n}function hc(e){var n=e,t=n.alternate;switch(n.tag){case 15:case 0:n=Js(t,n,n.pendingProps,n.type,void 0,yu);break;case 11:n=Js(t,n,n.pendingProps,n.type.render,n.ref,yu);break;case 5:ua(n);default:vl(t,n),n=ll(t,n=vu=Wr(n,Eu),Eu)}e.memoizedProps=e.pendingProps,null===n?mc(e):vu=n}function pc(e,n,t,i){Ci=Si=null,ua(n),uo=null,co=0;var o=n.return;try{if(function(e,n,t,i,o){if(t.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(n=t.alternate)&&Ri(n,t,o,!0),null!==(t=Lo.current)){switch(t.tag){case 31:case 13:return null===Do?lc():null===t.alternate&&0===Su&&(Su=3),t.flags&=-257,t.flags|=65536,t.lanes=o,i===to?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=/* @__PURE__ */new Set([i]):n.add(i),Cc(e,i,o)),!1;case 22:return t.flags|=65536,i===to?t.flags|=16384:(null===(n=t.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([i])},t.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=/* @__PURE__ */new Set([i]):t.add(i),Cc(e,i,o)),!1}throw Error(r(435,t.tag))}return Cc(e,i,o),lc(),!1}if(hi)return null!==(n=Lo.current)?(!(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=o,i!==bi&&xi(Qr(e=Error(r(422),{cause:i}),t))):(i!==bi&&xi(Qr(n=Error(r(423),{cause:i}),t)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,i=Qr(i,t),Eo(e,o=Rs(e.stateNode,i,o)),4!==Su&&(Su=2)),!1;var a=Error(r(520),{cause:i});if(a=Qr(a,t),null===Ru?Ru=[a]:Ru.push(a),4!==Su&&(Su=2),null===n)return!0;i=Qr(i,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=o&-o,t.lanes|=e,Eo(t,e=Rs(t.stateNode,i,e)),!1;case 1:if(n=t.type,a=t.stateNode,!(128&t.flags||"function"!=typeof n.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Pu&&Pu.has(a))))return t.flags|=65536,o&=-o,t.lanes|=o,Bs(o=Ns(o),e,t,i),Eo(t,o),!1}t=t.return}while(null!==t);return!1}(e,o,n,t,yu))return Su=1,Ms(e,Qr(t,e.current)),void(vu=null)}catch(a){if(null!==o)throw vu=o,a;return Su=1,Ms(e,Qr(t,e.current)),void(vu=null)}32768&n.flags?(hi||1===i?e=!0:Au||536870912&yu?e=!1:(ku=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=Lo.current)&&13===i.tag&&(i.flags|=16384)),bc(n,e)):mc(n)}function mc(e){var n=e;do{if(32768&n.flags)return void bc(n,ku);e=n.return;var t=ml(n.alternate,n,Eu);if(null!==t)return void(vu=t);if(null!==(n=n.sibling))return void(vu=n);vu=n=e}while(null!==n);0===Su&&(Su=5)}function bc(e,n){do{var t=bl(e.alternate,e);if(null!==t)return t.flags&=32767,void(vu=t);if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling))return void(vu=e);vu=e=t}while(null!==e);Su=6,vu=null}function vc(e,n,t,i,o,a,s,l,u){e.cancelPendingCommit=null;do{Ac()}while(0!==ju);if(6&mu)throw Error(r(327));if(null!==n){if(n===e.current)throw Error(r(177));if(a=n.lanes|n.childLanes,function(e,n,t,r,i,o){var a=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-Ae(t),f=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(null!==d)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];null!==h&&(h.lane&=-536870913)}t&=~f}0!==r&&Le(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~n))}(e,t,a|=Rr,s,l,u),e===bu&&(vu=bu=null,yu=0),Vu=n,Hu=e,zu=t,Wu=a,qu=o,Gu=i,10256&n.subtreeFlags||10256&n.flags?(e.callbackNode=null,e.callbackPriority=0,ae(pe,function(){return xc(),null})):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&n.flags),13878&n.subtreeFlags||i){i=D.T,D.T=null,o=U.p,U.p=2,s=mu,mu|=4;try{!function(e,n){if(e=e.containerInfo,vf=Ad,ar(e=or(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(i&&0!==i.rangeCount){t=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{t.nodeType,a.nodeType}catch(b){t=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;n:for(;;){for(var p;d!==t||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==i&&3!==d.nodeType||(u=s+i),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break n;if(h===t&&++c===o&&(l=s),h===a&&++f===i&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}t=-1===l||-1===u?null:{start:l,end:u}}else t=null}t=t||{start:0,end:0}}else t=null;for(yf={focusedElem:e,selectionRange:t},Ad=!1,Ll=n;null!==Ll;)if(e=(n=Ll).child,1028&n.subtreeFlags&&null!==e)e.return=n,Ll=e;else for(;null!==Ll;){switch(a=(n=Ll).alternate,e=n.flags,n.tag){case 0:if(4&e&&null!==(e=null!==(e=n.updateQueue)?e.events:null))for(t=0;t<e.length;t++)(o=e[t]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,t=n,o=a.memoizedProps,a=a.memoizedState,i=t.stateNode;try{var m=Ss(t.type,o);e=i.getSnapshotBeforeUpdate(m,a),i.pe=e}catch(v){Sc(t,t.return,v)}}break;case 3:if(1024&e)if(9===(t=(e=n.stateNode.containerInfo).nodeType))Nf(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=n.sibling)){e.return=n.return,Ll=e;break}Ll=n.return}}(e,n)}finally{mu=s,U.p=o,D.T=i}}ju=1,yc(),wc(),gc()}}function yc(){if(1===ju){ju=0;var e=Hu,n=Vu,t=!!(13878&n.flags);if(13878&n.subtreeFlags||t){t=D.T,D.T=null;var r=U.p;U.p=2;var i=mu;mu|=4;try{Jl(n,e);var o=yf,a=or(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&ir(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var f=s.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),p=s.textContent.length,m=Math.min(l.start,p),b=void 0===l.end?m:Math.min(l.end,p);!h.extend&&m>b&&(a=b,b=m,m=a);var v=rr(s,m),y=rr(s,b);if(v&&y&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var w=f.createRange();w.setStart(v.node,v.offset),h.removeAllRanges(),m>b?(h.addRange(w),h.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),h.addRange(w))}}}}for(f=[],h=s;h=h.parentNode;)1===h.nodeType&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<f.length;s++){var g=f[s];g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}Ad=!!vf,yf=vf=null}finally{mu=i,U.p=r,D.T=t}}e.current=n,ju=2}}function wc(){if(2===ju){ju=0;var e=Hu,n=Vu,t=!!(8772&n.flags);if(8772&n.subtreeFlags||t){t=D.T,D.T=null;var r=U.p;U.p=2;var i=mu;mu|=4;try{Dl(e,n.alternate,n)}finally{mu=i,U.p=r,D.T=t}}ju=3}}function gc(){if(4===ju||3===ju){ju=0,ue();var e=Hu,n=Vu,t=zu,r=Gu;10256&n.subtreeFlags||10256&n.flags?ju=5:(ju=0,Vu=Hu=null,kc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pu=null),je(t),n=n.stateNode,ge&&"function"==typeof ge.onCommitFiberRoot)try{ge.onCommitFiberRoot(we,n,void 0,!(128&~n.current.flags))}catch(l){}if(null!==r){n=D.T,i=U.p,U.p=2,D.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{D.T=n,U.p=i}}3&zu&&Ac(),Uc(e),i=e.pendingLanes,261930&t&&42&i?e===Ju?Yu++:(Yu=0,Ju=e):Yu=0,Pc(0)}}function kc(e,n){0===(e.pooledCacheLanes&=n)&&null!=(n=e.pooledCache)&&(e.pooledCache=null,zi(n))}function Ac(){return yc(),wc(),gc(),xc()}function xc(){if(5!==ju)return!1;var e=Hu,n=Wu;Wu=0;var t=je(zu),i=D.T,o=U.p;try{U.p=32>t?32:t,D.T=null,t=qu,qu=null;var a=Hu,s=zu;if(ju=0,Vu=Hu=null,zu=0,6&mu)throw Error(r(331));var l=mu;if(mu|=4,cu(a.current),tu(a,a.current,s,t),mu=l,Pc(0),ge&&"function"==typeof ge.onPostCommitFiberRoot)try{ge.onPostCommitFiberRoot(we,a)}catch(u){}return!0}finally{U.p=o,D.T=i,kc(e,n)}}function Ec(e,n,t){n=Qr(t,n),null!==(e=Ao(e,n=Rs(e.stateNode,n,2),2))&&(Fe(e,2),Uc(e))}function Sc(e,n,t){if(3===e.tag)Ec(e,e,t);else for(;null!==n;){if(3===n.tag){Ec(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){e=Qr(t,e),null!==(r=Ao(n,t=Ns(2),2))&&(Bs(t,r,n,e),Fe(r,2),Uc(r));break}}n=n.return}}function Cc(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var i=/* @__PURE__ */new Set;r.set(n,i)}else void 0===(i=r.get(n))&&(i=/* @__PURE__ */new Set,r.set(n,i));i.has(t)||(xu=!0,i.add(t),e=Tc.bind(null,e,n,t),n.then(e,e))}function Tc(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,bu===e&&(yu&t)===t&&(4===Su||3===Su&&(62914560&yu)===yu&&300>ce()-Fu?!(2&mu)&&rc(e,0):Iu|=t,Ou===yu&&(Ou=0)),Uc(e)}function Ic(e,n){0===n&&(n=Ne()),null!==(e=Lr(e,n))&&(Fe(e,n),Uc(e))}function Mc(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Ic(e,t)}function Oc(e,n){var t=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(t=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode.fe;break;default:throw Error(r(314))}null!==i&&i.delete(n),Ic(e,t)}var Rc=null,Nc=null,Bc=!1,Fc=!1,Lc=!1,Dc=0;function Uc(e){e!==Nc&&null===e.next&&(null===Nc?Rc=Nc=e:Nc=Nc.next=e),Fc=!0,Bc||(Bc=!0,Tf(function(){6&mu?ae(de,jc):Hc()}))}function Pc(e,n){if(!Lc&&Fc){Lc=!0;do{for(var t=!1,r=Rc;null!==r;){if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-Ae(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(t=!0,Wc(r,o))}else o=yu,!(3&(o=Me(r,r===bu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Oe(r,o)||(t=!0,Wc(r,o));r=r.next}}while(t);Lc=!1}}function jc(){Hc()}function Hc(){Fc=Bc=!1;var e,n=0;0!==Dc&&((e=window.event)&&"popstate"===e.type?e!==xf&&(xf=e,1):(xf=null,0))&&(n=Dc);for(var t=ce(),r=null,i=Rc;null!==i;){var o=i.next,a=Vc(i,t);0===a?(i.next=null,null===r?Rc=o:r.next=o,null===o&&(Nc=r)):(r=i,(0!==n||3&a)&&(Fc=!0)),i=o}0!==ju&&5!==ju||Pc(n),0!==Dc&&(Dc=0)}function Vc(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-Ae(o),s=1<<a,l=i[a];-1===l?0!==(s&t)&&0===(s&r)||(i[a]=Re(s,n)):l<=n&&(e.expiredLanes|=s),o&=~s}if(t=yu,t=Me(e,e===(n=bu)?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===t||e===n&&(2===wu||9===wu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&t)||Oe(e,t)){if((n=t&-t)===e.callbackPriority)return n;switch(null!==r&&se(r),je(t)){case 2:case 8:t=he;break;case 32:default:t=pe;break;case 268435456:t=be}return r=zc.bind(null,e),t=ae(t,r),e.callbackPriority=n,e.callbackNode=t,n}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function zc(e,n){if(0!==ju&&5!==ju)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Ac()&&e.callbackNode!==t)return null;var r=yu;return 0===(r=Me(e,e===bu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zu(e,r,n),Vc(e,ce()),null!=e.callbackNode&&e.callbackNode===t?zc.bind(null,e):null)}function Wc(e,n){if(Ac())return null;Zu(e,n,!0)}function qc(){if(0===Dc){var e=Gi;0===e&&(e=Se,!(261888&(Se<<=1))&&(Se=256)),Dc=e}return Dc}function Gc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Fn(""+e)}function Yc(e,n){var t=n.ownerDocument.createElement("input");return t.name=n.name,t.value=n.value,e.id&&t.setAttribute("form",e.id),n.parentNode.insertBefore(t,n),e=new FormData(e),t.parentNode.removeChild(t),e}for(var Jc=0;Jc<Cr.length;Jc++){var Kc=Cr[Jc];Tr(Kc.toLowerCase(),"on"+(Kc[0].toUpperCase()+Kc.slice(1)))}Tr(yr,"onAnimationEnd"),Tr(wr,"onAnimationIteration"),Tr(gr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(kr,"onTransitionRun"),Tr(Ar,"onTransitionStart"),Tr(xr,"onTransitionCancel"),Tr(Er,"onTransitionEnd"),sn("onMouseEnter",["mouseout","mouseover"]),sn("onMouseLeave",["mouseout","mouseover"]),sn("onPointerEnter",["pointerout","pointerover"]),sn("onPointerLeave",["pointerout","pointerover"]),an("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),an("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),an("onBeforeInput",["compositionend","keypress","textInput","paste"]),an("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),an("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),an("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xc));function Zc(e,n){n=!!(4&n);for(var t=0;t<e.length;t++){var r=e[t],i=r.event;r=r.listeners;e:{var o=void 0;if(n)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(c){Ir(c)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(c){Ir(c)}i.currentTarget=null,o=l}}}}function _c(e,n){var t=n[Ye];void 0===t&&(t=n[Ye]=/* @__PURE__ */new Set);var r=e+"__bubble";t.has(r)||(tf(n,e,2,!1),t.add(r))}function $c(e,n,t){var r=0;n&&(r|=4),tf(t,e,r,n)}var ef="_reactListening"+Math.random().toString(36).slice(2);function nf(e){if(!e[ef]){e[ef]=!0,rn.forEach(function(n){"selectionchange"!==n&&(Qc.has(n)||$c(n,!1,e),$c(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[ef]||(n[ef]=!0,$c("selectionchange",!1,n))}}function tf(e,n,t,r){switch(Md(n)){case 2:var i=xd;break;case 8:i=Ed;break;default:i=Sd}t=i.bind(null,n,t,e),i=void 0,!Gn||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(i=!0),r?void 0!==i?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):void 0!==i?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function rf(e,n,t,r,i){var a=r;if(!(1&n||2&n||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=_e(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=a=s;continue e}l=l.parentNode}}r=r.return}zn(function(){var r=a,i=Un(t),s=[];e:{var l=Sr.get(e);if(void 0!==l){var u=ot,c=e;switch(e){case"keypress":if(0===Zn(t))break e;case"keydown":case"keyup":u=gt;break;case"focusin":c="focus",u=ft;break;case"focusout":c="blur",u=ft;break;case"beforeblur":case"afterblur":u=ft;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=ut;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ct;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=At;break;case yr:case wr:case gr:u=dt;break;case Er:u=xt;break;case"scroll":case"scrollend":u=st;break;case"wheel":u=Et;break;case"copy":case"cut":case"paste":u=ht;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=kt;break;case"toggle":case"beforetoggle":u=St}var f=!!(4&n),d=!f&&("scroll"===e||"scrollend"===e),h=f?null!==l?l+"Capture":null:l;f=[];for(var p,m=r;null!==m;){var b=m;if(p=b.stateNode,5!==(b=b.tag)&&26!==b&&27!==b||null===p||null===h||null!=(b=Wn(m,h))&&f.push(of(m,b,p)),d)break;m=m.return}0<f.length&&(l=new u(l,c,null,t,i),s.push({event:l,listeners:f}))}}if(!(7&n)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||t===Dn||!(c=t.relatedTarget||t.fromElement)||!_e(c)&&!c[Ge])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=t.relatedTarget||t.toElement)?_e(c):null)&&(d=o(c),f=c.tag,c!==d||5!==f&&27!==f&&6!==f)&&(c=null)):(u=null,c=r),u!==c)){if(f=ut,b="onMouseLeave",h="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(f=kt,b="onPointerLeave",h="onPointerEnter",m="pointer"),d=null==u?l:en(u),p=null==c?l:en(c),(l=new f(b,m+"leave",u,t,i)).target=d,l.relatedTarget=p,b=null,_e(i)===r&&((f=new f(h,m+"enter",c,t,i)).target=p,f.relatedTarget=d,b=f),d=b,u&&c)e:{for(f=sf,m=c,p=0,b=h=u;b;b=f(b))p++;b=0;for(var v=m;v;v=f(v))b++;for(;0<p-b;)h=f(h),p--;for(;0<b-p;)m=f(m),b--;for(;p--;){if(h===m||null!==m&&h===m.alternate){f=h;break e}h=f(h),m=f(m)}f=null}else f=null;null!==u&&lf(s,l,u,f,!1),null!==c&&null!==d&&lf(s,d,c,f,!0)}if("select"===(u=(l=r?en(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Wt;else if(Ut(l))if(qt)y=$t;else{y=Zt;var w=Qt}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rn(r.elementType)&&(y=Wt):y=_t;switch(y&&(y=y(e,r))?Pt(s,y,t,i):(w&&w(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&xn(l,"number",l.value)),w=r?en(r):window,e){case"focusin":(Ut(w)||"true"===w.contentEditable)&&(lr=w,ur=r,cr=null);break;case"focusout":cr=ur=lr=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,dr(s,t,i);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":dr(s,t,i)}var g;if(Tt)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Lt?Bt(e,t)&&(k="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(k="onCompositionStart");k&&(Ot&&"ko"!==t.locale&&(Lt||"onCompositionStart"!==k?"onCompositionEnd"===k&&Lt&&(g=Qn()):(Kn="value"in(Jn=i)?Jn.value:Jn.textContent,Lt=!0)),0<(w=af(r,k)).length&&(k=new pt(k,e,null,t,i),s.push({event:k,listeners:w}),(g||null!==(g=Ft(t)))&&(k.data=g))),(g=Mt?function(e,n){switch(e){case"compositionend":return Ft(n);case"keypress":return 32!==n.which?null:(Nt=!0,Rt);case"textInput":return(e=n.data)===Rt&&Nt?null:e;default:return null}}(e,t):function(e,n){if(Lt)return"compositionend"===e||!Tt&&Bt(e,n)?(e=Qn(),Xn=Kn=Jn=null,Lt=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ot&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(k=af(r,"onBeforeInput")).length&&(w=new pt("onBeforeInput","beforeinput",null,t,i),s.push({event:w,listeners:k}),w.data=g),function(e,n,t,r,i){if("submit"===n&&t&&t.stateNode===i){var o=Gc((i[qe]||null).action),a=r.submitter;a&&null!==(n=(n=a[qe]||null)?Gc(n.formAction):a.getAttribute("formAction"))&&(o=n,a=null);var s=new ot("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Dc){var e=a?Yc(i,a):new FormData(i);rs(t,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?Yc(i,a):new FormData(i),rs(t,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,t,i)}Zc(s,n)})}function of(e,n,t){return{instance:e,listener:n,currentTarget:t}}function af(e,n){for(var t=n+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=Wn(e,t))&&r.unshift(of(e,i,o)),null!=(i=Wn(e,n))&&r.push(of(e,i,o))),3===e.tag)return r;e=e.return}return[]}function sf(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function lf(e,n,t,r,i){for(var o=n.ae,a=[];null!==t&&t!==r;){var s=t,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=Wn(t,o))&&a.unshift(of(t,u,l)):i||null!=(u=Wn(t,o))&&a.push(of(t,u,l))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}var uf=/\r\n?/g,cf=/\u0000|\uFFFD/g;function ff(e){return("string"==typeof e?e:""+e).replace(uf,"\n").replace(cf,"")}function df(e,n){return n=ff(n),ff(e)===n}function hf(e,n,t,i,o,a){switch(t){case"children":"string"==typeof i?"body"===n||"textarea"===n&&""===i||Tn(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==n&&Tn(e,""+i);break;case"className":dn(e,"class",i);break;case"tabIndex":dn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":dn(e,t,i);break;case"style":On(e,i,a);break;case"data":if("object"!==n){dn(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==n||"href"!==t)){e.removeAttribute(t);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=Fn(""+i),e.setAttribute(t,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===t?("input"!==n&&hf(e,n,"name",o.name,o,null),hf(e,n,"formEncType",o.formEncType,o,null),hf(e,n,"formMethod",o.formMethod,o,null),hf(e,n,"formTarget",o.formTarget,o,null)):(hf(e,n,"encType",o.encType,o,null),hf(e,n,"method",o.method,o,null),hf(e,n,"target",o.target,o,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=Fn(""+i),e.setAttribute(t,i);break;case"onClick":null!=i&&(e.onclick=Ln);break;case"onScroll":null!=i&&_c("scroll",e);break;case"onScrollEnd":null!=i&&_c("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("ve"in i))throw Error(r(61));if(null!=(t=i.ve)){if(null!=o.children)throw Error(r(60));e.innerHTML=t}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}t=Fn(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,""+i):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===i?e.setAttribute(t,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,i):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(t,i):e.removeAttribute(t);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(t):e.setAttribute(t,i);break;case"popover":_c("beforetoggle",e),_c("toggle",e),fn(e,"popover",i);break;case"xlinkActuate":hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":hn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":hn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":hn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":hn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":fn(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&fn(e,t=Nn.get(t)||t,i)}}function pf(e,n,t,i,o,a){switch(t){case"style":On(e,i,a);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("ve"in i))throw Error(r(61));if(null!=(t=i.ve)){if(null!=o.children)throw Error(r(60));e.innerHTML=t}}break;case"children":"string"==typeof i?Tn(e,i):("number"==typeof i||"bigint"==typeof i)&&Tn(e,""+i);break;case"onScroll":null!=i&&_c("scroll",e);break;case"onScrollEnd":null!=i&&_c("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:on.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(o=t.endsWith("Capture"),n=t.slice(2,o?t.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[t]:null)&&e.removeEventListener(n,a,o),"function"!=typeof i)?t in e?e[t]=i:!0===i?e.setAttribute(t,""):fn(e,t,i):("function"!=typeof a&&null!==a&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,i,o)))}}function mf(e,n,t){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_c("error",e),_c("load",e);var i,o=!1,a=!1;for(i in t)if(t.hasOwnProperty(i)){var s=t[i];if(null!=s)switch(i){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:hf(e,n,i,s,t,null)}}return a&&hf(e,n,"srcSet",t.srcSet,t,null),void(o&&hf(e,n,"src",t.src,t,null));case"input":_c("invalid",e);var l=i=s=a=null,u=null,c=null;for(o in t)if(t.hasOwnProperty(o)){var f=t[o];if(null!=f)switch(o){case"name":a=f;break;case"type":s=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,n));break;default:hf(e,n,o,f,t,null)}}return void An(e,i,l,u,c,s,a,!1);case"select":for(a in _c("invalid",e),o=s=i=null,t)if(t.hasOwnProperty(a)&&null!=(l=t[a]))switch(a){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:hf(e,n,a,l,t,null)}return n=i,t=s,e.multiple=!!o,void(null!=n?En(e,!!o,n,!1):null!=t&&En(e,!!o,t,!0));case"textarea":for(s in _c("invalid",e),i=a=o=null,t)if(t.hasOwnProperty(s)&&null!=(l=t[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:hf(e,n,s,l,t,null)}return void Cn(e,o,a,i);case"option":for(u in t)t.hasOwnProperty(u)&&null!=(o=t[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:hf(e,n,u,o,t,null));return;case"dialog":_c("beforetoggle",e),_c("toggle",e),_c("cancel",e),_c("close",e);break;case"iframe":case"object":_c("load",e);break;case"video":case"audio":for(o=0;o<Xc.length;o++)_c(Xc[o],e);break;case"image":_c("error",e),_c("load",e);break;case"details":_c("toggle",e);break;case"embed":case"source":case"link":_c("error",e),_c("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in t)if(t.hasOwnProperty(c)&&null!=(o=t[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:hf(e,n,c,o,t,null)}return;default:if(Rn(n)){for(f in t)t.hasOwnProperty(f)&&void 0!==(o=t[f])&&pf(e,n,f,o,t,void 0);return}}for(l in t)t.hasOwnProperty(l)&&null!=(o=t[l])&&hf(e,n,l,o,t,null)}function bf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var vf=null,yf=null;function wf(e){return 9===e.nodeType?e:e.ownerDocument}function gf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kf(e,n){if(0===e)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===n?0:e}function Af(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"bigint"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.ve}var xf=null,Ef="function"==typeof setTimeout?setTimeout:void 0,Sf="function"==typeof clearTimeout?clearTimeout:void 0,Cf="function"==typeof Promise?Promise:void 0,Tf="function"==typeof queueMicrotask?queueMicrotask:void 0!==Cf?function(e){return Cf.resolve(null).then(e).catch(If)}:Ef;function If(e){setTimeout(function(){throw e})}function Mf(e){return"head"===e}function Of(e,n){var t=n,r=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&8===i.nodeType)if("/$"===(t=i.data)||"/&"===t){if(0===r)return e.removeChild(i),void Jd(n);r--}else if("$"===t||"$?"===t||"$~"===t||"$!"===t||"&"===t)r++;else if("html"===t)Vf(e.ownerDocument.documentElement);else if("head"===t){Vf(t=e.ownerDocument.head);for(var o=t.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=a}}else"body"===t&&Vf(e.ownerDocument.body);t=i}while(t);Jd(n)}function Rf(e,n){var t=e;e=0;do{var r=t.nextSibling;if(1===t.nodeType?n?(t.ye=t.style.display,t.style.display="none"):(t.style.display=t.ye||"",""===t.getAttribute("style")&&t.removeAttribute("style")):3===t.nodeType&&(n?(t.we=t.nodeValue,t.nodeValue=""):t.nodeValue=t.we||""),r&&8===r.nodeType)if("/$"===(t=r.data)){if(0===e)break;e--}else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||e++;t=r}while(t)}function Nf(e){var n=e.firstChild;for(n&&10===n.nodeType&&(n=n.nextSibling);n;){var t=n;switch(n=n.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Nf(t),Ze(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Bf(e,n){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Df(e.nextSibling)))return null}return e}function Ff(e){return"$?"===e.data||"$~"===e.data}function Lf(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Df(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n||"$~"===n||"&"===n||"F!"===n||"F"===n)break;if("/$"===n||"/&"===n)return null}}return e}var Uf=null;function Pf(e){e=e.nextSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t||"/&"===t){if(0===n)return Df(e.nextSibling);n--}else"$"!==t&&"$!"!==t&&"$?"!==t&&"$~"!==t&&"&"!==t||n++}e=e.nextSibling}return null}function jf(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t||"$~"===t||"&"===t){if(0===n)return e;n--}else"/$"!==t&&"/&"!==t||n++}e=e.previousSibling}return null}function Hf(e,n,t){switch(n=wf(t),e){case"html":if(!(e=n.documentElement))throw Error(r(452));return e;case"head":if(!(e=n.head))throw Error(r(453));return e;case"body":if(!(e=n.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Vf(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ze(e)}var zf=/* @__PURE__ */new Map,Wf=/* @__PURE__ */new Set;function qf(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Gf=U.d;U.d={f:function(){var e=Gf.f(),n=nc();return e||n},r:function(e){var n=$e(e);null!==n&&5===n.tag&&"form"===n.type?os(n):Gf.r(e)},D:function(e){Gf.D(e),Jf("dns-prefetch",e,null)},C:function(e,n){Gf.C(e,n),Jf("preconnect",e,n)},L:function(e,n,t){Gf.L(e,n,t);var r=Yf;if(r&&e&&n){var i='link[rel="preload"][as="'+gn(n)+'"]';"image"===n&&t&&t.imageSrcSet?(i+='[imagesrcset="'+gn(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(i+='[imagesizes="'+gn(t.imageSizes)+'"]')):i+='[href="'+gn(e)+'"]';var o=i;switch(n){case"style":o=Xf(e);break;case"script":o=_f(e)}zf.has(o)||(e=c({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),zf.set(o,e),null!==r.querySelector(i)||"style"===n&&r.querySelector(Qf(o))||"script"===n&&r.querySelector($f(o))||(mf(n=r.createElement("link"),"link",e),tn(n),r.head.appendChild(n)))}},m:function(e,n){Gf.m(e,n);var t=Yf;if(t&&e){var r=n&&"string"==typeof n.as?n.as:"script",i='link[rel="modulepreload"][as="'+gn(r)+'"][href="'+gn(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=_f(e)}if(!zf.has(o)&&(e=c({rel:"modulepreload",href:e},n),zf.set(o,e),null===t.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector($f(o)))return}mf(r=t.createElement("link"),"link",e),tn(r),t.head.appendChild(r)}}},X:function(e,n){Gf.X(e,n);var t=Yf;if(t&&e){var r=nn(t).hoistableScripts,i=_f(e),o=r.get(i);o||((o=t.querySelector($f(i)))||(e=c({src:e,async:!0},n),(n=zf.get(i))&&rd(e,n),tn(o=t.createElement("script")),mf(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,n,t){Gf.S(e,n,t);var r=Yf;if(r&&e){var i=nn(r).hoistableStyles,o=Xf(e);n=n||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qf(o)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":n},t),(t=zf.get(o))&&td(e,t);var l=a=r.createElement("link");tn(l),mf(l,"link",e),l.be=new Promise(function(e,n){l.onload=e,l.onerror=n}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,nd(a,n,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,n){Gf.M(e,n);var t=Yf;if(t&&e){var r=nn(t).hoistableScripts,i=_f(e),o=r.get(i);o||((o=t.querySelector($f(i)))||(e=c({src:e,async:!0,type:"module"},n),(n=zf.get(i))&&rd(e,n),tn(o=t.createElement("script")),mf(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Yf="undefined"==typeof document?null:document;function Jf(e,n,t){var r=Yf;if(r&&"string"==typeof n&&n){var i=gn(n);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof t&&(i+='[crossorigin="'+t+'"]'),Wf.has(i)||(Wf.add(i),e={rel:e,crossOrigin:t,href:n},null===r.querySelector(i)&&(mf(n=r.createElement("link"),"link",e),tn(n),r.head.appendChild(n)))}}function Kf(e,n,t,i){var o,a,s,l,u=(u=K.current)?qf(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(n=Xf(t.href),(i=(t=nn(u).hoistableStyles).get(n))||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=Xf(t.href);var c=nn(u).hoistableStyles,f=c.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=u.querySelector(Qf(e)))&&!c.be&&(f.instance=c,f.state.loading=5),zf.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},zf.set(e,t),c||(o=u,a=e,s=t,l=f.state,o.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=o.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),mf(a,"link",s),tn(a),o.head.appendChild(a))))),n&&null===i)throw Error(r(528,""));return f}if(n&&null!==i)throw Error(r(529,""));return null;case"script":return n=t.async,"string"==typeof(t=t.src)&&n&&"function"!=typeof n&&"symbol"!=typeof n?(n=_f(t),(i=(t=nn(u).hoistableScripts).get(n))||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Xf(e){return'href="'+gn(e)+'"'}function Qf(e){return'link[rel="stylesheet"]['+e+"]"}function Zf(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function _f(e){return'[src="'+gn(e)+'"]'}function $f(e){return"script[async]"+e}function ed(e,n,t){if(n.count++,null===n.instance)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+gn(t.href)+'"]');if(i)return n.instance=i,tn(i),i;var o=c({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return tn(i=(e.ownerDocument||e).createElement("style")),mf(i,"style",o),nd(i,t.precedence,e),n.instance=i;case"stylesheet":o=Xf(t.href);var a=e.querySelector(Qf(o));if(a)return n.state.loading|=4,n.instance=a,tn(a),a;i=Zf(t),(o=zf.get(o))&&td(i,o),tn(a=(e.ownerDocument||e).createElement("link"));var s=a;return s.be=new Promise(function(e,n){s.onload=e,s.onerror=n}),mf(a,"link",i),n.state.loading|=4,nd(a,t.precedence,e),n.instance=a;case"script":return a=_f(t.src),(o=e.querySelector($f(a)))?(n.instance=o,tn(o),o):(i=t,(o=zf.get(a))&&rd(i=c({},t),o),tn(o=(e=e.ownerDocument||e).createElement("script")),mf(o,"link",i),e.head.appendChild(o),n.instance=o);case"void":return null;default:throw Error(r(443,n.type))}else"stylesheet"===n.type&&!(4&n.state.loading)&&(i=n.instance,n.state.loading|=4,nd(i,t.precedence,e));return n.instance}function nd(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===n)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(n=9===t.nodeType?t.head:t).insertBefore(e,n.firstChild)}function td(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.title&&(e.title=n.title)}function rd(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.integrity&&(e.integrity=n.integrity)}var id=null;function od(e,n,t){if(null===id){var r=/* @__PURE__ */new Map,i=id=/* @__PURE__ */new Map;i.set(t,r)}else(r=(i=id).get(t))||(r=/* @__PURE__ */new Map,i.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),i=0;i<t.length;i++){var o=t[i];if(!(o[Qe]||o[We]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(n)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function ad(e,n,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===n?e.querySelector("head > title"):null)}function sd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var ld=0;function ud(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)fd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var cd=null;function fd(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cd=/* @__PURE__ */new Map,n.forEach(dd,e),cd=null,ud.call(e))}function dd(e,n){if(!(4&n.state.loading)){var t=cd.get(e);if(t)var r=t.get(null);else{t=/* @__PURE__ */new Map,cd.set(e,t);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),r=a)}r&&t.set(null,r)}a=(i=n.instance).getAttribute("data-precedence"),(o=t.get(a)||r)===r&&t.set(null,i),t.set(a,i),this.count++,r=ud.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),n.state.loading|=4}}var hd={$$typeof:w,Provider:null,Consumer:null,U:P,P:P,j:0};function pd(e,n,t,r,i,o,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Be(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Be(0),this.hiddenUpdates=Be(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=/* @__PURE__ */new Map}function md(e,n,t,r,i,o,a,s,l,u,c,f){return e=new pd(e,n,t,a,l,u,c,f,s),n=1,!0===o&&(n|=24),o=Hr(3,null,null,n),e.current=o,o.stateNode=e,(n=Vi()).refCount++,e.pooledCache=n,n.refCount++,o.memoizedState={element:r,isDehydrated:t,cache:n},wo(o),e}function bd(e){return e?e=Pr:Pr}function vd(e,n,t,r,i,o){i=bd(i),null===r.context?r.context=i:r.pendingContext=i,(r=ko(n)).payload={element:t},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(t=Ao(e,r,n))&&(Qu(t,0,n),xo(t,e,n))}function yd(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function wd(e,n){yd(e,n),(e=e.alternate)&&yd(e,n)}function gd(e){if(13===e.tag||31===e.tag){var n=Lr(e,67108864);null!==n&&Qu(n,0,67108864),wd(e,67108864)}}function kd(e){if(13===e.tag||31===e.tag){var n=Ku(),t=Lr(e,n=Pe(n));null!==t&&Qu(t,0,n),wd(e,n)}}var Ad=!0;function xd(e,n,t,r){var i=D.T;D.T=null;var o=U.p;try{U.p=2,Sd(e,n,t,r)}finally{U.p=o,D.T=i}}function Ed(e,n,t,r){var i=D.T;D.T=null;var o=U.p;try{U.p=8,Sd(e,n,t,r)}finally{U.p=o,D.T=i}}function Sd(e,n,t,r){if(Ad){var i=Cd(r);if(null===i)rf(e,n,r,Td,t),Pd(e,r);else if(function(e,n,t,r,i){switch(n){case"focusin":return Rd=jd(Rd,e,n,t,r,i),!0;case"dragenter":return Nd=jd(Nd,e,n,t,r,i),!0;case"mouseover":return Bd=jd(Bd,e,n,t,r,i),!0;case"pointerover":var o=i.pointerId;return Fd.set(o,jd(Fd.get(o)||null,e,n,t,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ld.set(o,jd(Ld.get(o)||null,e,n,t,r,i)),!0}return!1}(i,e,n,t,r))r.stopPropagation();else if(Pd(e,r),4&n&&-1<Ud.indexOf(e)){for(;null!==i;){var o=$e(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=Ie(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ae(a);s.entanglements[1]|=l,a&=~l}Uc(o),!(6&mu)&&(Du=ce()+500,Pc(0))}}break;case 31:case 13:null!==(s=Lr(o,2))&&Qu(s,0,2),nc(),wd(o,2)}if(null===(o=Cd(r))&&rf(e,n,r,Td,t),o===i)break;i=o}null!==i&&r.stopPropagation()}else rf(e,n,r,null,t)}}function Cd(e){return Id(e=Un(e))}var Td=null;function Id(e){if(Td=null,null!==(e=_e(e))){var n=o(e);if(null===n)e=null;else{var t=n.tag;if(13===t){if(null!==(e=a(n)))return e;e=null}else if(31===t){if(null!==(e=s(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Td=e,null}function Md(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fe()){case de:return 2;case he:return 8;case pe:case me:return 32;case be:return 268435456;default:return 32}default:return 32}}var Od=!1,Rd=null,Nd=null,Bd=null,Fd=/* @__PURE__ */new Map,Ld=/* @__PURE__ */new Map,Dd=[],Ud="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Pd(e,n){switch(e){case"focusin":case"focusout":Rd=null;break;case"dragenter":case"dragleave":Nd=null;break;case"mouseover":case"mouseout":Bd=null;break;case"pointerover":case"pointerout":Fd.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ld.delete(n.pointerId)}}function jd(e,n,t,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==n&&null!==(n=$e(n))&&gd(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==i&&-1===n.indexOf(i)&&n.push(i),e)}function Hd(e){var n=_e(e.target);if(null!==n){var t=o(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=a(t)))return e.blockedOn=n,void Ve(e.priority,function(){kd(t)})}else if(31===n){if(null!==(n=s(t)))return e.blockedOn=n,void Ve(e.priority,function(){kd(t)})}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Vd(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=Cd(e.nativeEvent);if(null!==t)return null!==(n=$e(t))&&gd(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Dn=r,t.target.dispatchEvent(r),Dn=null,n.shift()}return!0}function zd(e,n,t){Vd(e)&&t.delete(n)}function Wd(){Od=!1,null!==Rd&&Vd(Rd)&&(Rd=null),null!==Nd&&Vd(Nd)&&(Nd=null),null!==Bd&&Vd(Bd)&&(Bd=null),Fd.forEach(zd),Ld.forEach(zd)}function qd(n,t){n.blockedOn===t&&(n.blockedOn=null,Od||(Od=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Wd)))}var Gd=null;function Yd(n){Gd!==n&&(Gd=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gd===n&&(Gd=null);for(var e=0;e<n.length;e+=3){var t=n[e],r=n[e+1],i=n[e+2];if("function"!=typeof r){if(null===Id(r||t))continue;break}var o=$e(t);null!==o&&(n.splice(e,3),e-=3,rs(o,{pending:!0,data:i,method:t.method,action:r},r,i))}}))}function Jd(e){function n(n){return qd(n,e)}null!==Rd&&qd(Rd,e),null!==Nd&&qd(Nd,e),null!==Bd&&qd(Bd,e),Fd.forEach(n),Ld.forEach(n);for(var t=0;t<Dd.length;t++){var r=Dd[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dd.length&&null===(t=Dd[0]).blockedOn;)Hd(t),null===t.blockedOn&&Dd.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var i=t[r],o=t[r+1],a=i[qe]||null;if("function"==typeof o)a||Yd(t);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[qe]||null)s=a.formAction;else if(null!==Id(i))continue}else s=a.action;"function"==typeof s?t[r+1]=s:(t.splice(r,3),r-=3),Yd(t)}}}function Kd(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function n(){null!==i&&(i(),i=null),r||setTimeout(t,20)}function t(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(t,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),null!==i&&(i(),i=null)}}}function Xd(e){this.ge=e}function Qd(e){this.ge=e}Qd.prototype.render=Xd.prototype.render=function(e){var n=this.ge;if(null===n)throw Error(r(409));vd(n.current,Ku(),e,n,null,null)},Qd.prototype.unmount=Xd.prototype.unmount=function(){var e=this.ge;if(null!==e){this.ge=null;var n=e.containerInfo;vd(e.current,2,null,e,null,null),nc(),n[Ge]=null}},Qd.prototype.unstable_scheduleHydration=function(e){if(e){var n=He();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Dd.length&&0!==n&&n<Dd[t].priority;t++);Dd.splice(t,0,e),0===t&&Hd(e)}};var Zd=n.version;if("19.2.4"!==Zd)throw Error(r(527,Zd,"19.2.4"));U.findDOMNode=function(e){var n=e.ue;if(void 0===n){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var n=e.alternate;if(!n){if(null===(n=o(e)))throw Error(r(188));return n!==e?null:e}for(var t=e,i=n;;){var a=t.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(i=a.return)){t=i;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===t)return l(a),e;if(s===i)return l(a),n;s=s.sibling}throw Error(r(188))}if(t.return!==i.return)t=a,i=s;else{for(var u=!1,c=a.child;c;){if(c===t){u=!0,t=a,i=s;break}if(c===i){u=!0,i=a,t=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===t){u=!0,t=s,i=a;break}if(c===i){u=!0,i=s,t=a;break}c=c.sibling}if(!u)throw Error(r(189))}}if(t.alternate!==i)throw Error(r(190))}if(3!==t.tag)throw Error(r(188));return t.stateNode.current===t?e:n}(n),null===(e=null!==e?u(e):null)?null:e.stateNode};var _d={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{we=$d.inject(_d),ge=$d}catch(nh){}}return A.createRoot=function(e,n){if(!i(e))throw Error(r(299));var t=!1,o="",a=Cs,s=Ts,l=Is;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=md(e,1,!1,null,0,t,o,null,a,s,l,Kd),e[Ge]=n.current,nf(e),new Xd(n)},A.hydrateRoot=function(e,n,t){if(!i(e))throw Error(r(299));var o=!1,a="",s=Cs,l=Ts,u=Is,c=null;return null!=t&&(!0===t.unstable_strictMode&&(o=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(s=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(u=t.onRecoverableError),void 0!==t.formState&&(c=t.formState)),(n=md(e,1,!0,n,0,o,a,c,s,l,u,Kd)).context=bd(null),t=n.current,(a=ko(o=Pe(o=Ku()))).callback=null,Ao(t,a,o),t=o,n.current.lanes=t,Fe(n,t),Uc(n),e[Ge]=n.current,nf(e),new Qd(n)},A.version="19.2.4",A}()):k.exports=(L||(L=1,"production"!==process.env.NODE_ENV&&function(){function e(e,n){for(e=e.memoizedState;null!==e&&0<n;)e=e.next,n--;return e}function n(e,t,r,i){if(r>=t.length)return i;var o=t[r],a=Nf(e)?e.slice():pf({},e);return a[o]=n(e[o],t,r+1,i),a}function t(e,n,t){if(n.length===t.length){for(var i=0;i<t.length-1;i++)if(n[i]!==t[i])return;return r(e,n,t,0)}}function r(e,n,t,i){var o=n[i],a=Nf(e)?e.slice():pf({},e);return i+1===n.length?(a[t[i]]=a[o],Nf(a)?a.splice(o,1):delete a[o]):a[o]=r(e[o],n,t,i+1),a}function i(e,n,t){var r=n[t],o=Nf(e)?e.slice():pf({},e);return t+1===n.length?(Nf(o)?o.splice(r,1):delete o[r],o):(o[r]=i(e[r],n,t+1),o)}function o(){return!1}function a(){return null}function s(){}function l(){}function u(e){var n=[];return e.forEach(function(e){n.push(e)}),n.sort().join(", ")}function c(e,n,t,r){return new kt(e,n,t,r)}function f(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function d(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{!!(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function h(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function p(e){if(31===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function m(e){if(d(e)!==e)throw Error("Unable to find node on an unmounted component.")}function v(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e;for(e=e.child;null!==e;){if(null!==(n=v(e)))return n;e=e.sibling}return null}function y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Of&&e[Of]||e["@@iterator"])?e:null}function w(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Rf?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case yf:return"Fragment";case gf:return"Profiler";case wf:return"StrictMode";case Ef:return"Suspense";case Sf:return"SuspenseList";case If:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case vf:return"Portal";case Af:return e.displayName||"Context";case kf:return(e.V.displayName||"Context")+".Consumer";case xf:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Cf:return null!==(n=e.displayName||null)?n:w(e.type)||"Memo";case Tf:n=e.u,e=e.o;try{return w(e(n))}catch(t){}}return null}function g(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n.V.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w(n);case 8:return n===wf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n;break;case 29:if(null!=(n=e.J))for(var t=n.length-1;0<=t;t--)if("string"==typeof n[t].name)return n[t].name;if(null!==e.return)return g(e.return)}return null}function k(e){return{current:e}}function A(e,n){0>Pf||(Uf[Pf],e.current=Df[Pf],Df[Pf]=null,Uf[Pf]=null,Pf--)}function x(e,n,t){Pf++,Df[Pf]=e.current,Uf[Pf]=t,e.current=n}function E(e,n){x(Vf,n,e),x(Hf,e,e),x(jf,null,e);var t=n.nodeType;switch(t){case 9:case 11:t=9===t?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?Tu(n):Ek;break;default:if(t=n.tagName,n=n.namespaceURI)n=Iu(n=Tu(n),t);else switch(t){case"svg":n=Sk;break;case"math":n=Ck;break;default:n=Ek}}t={context:n,ancestorInfo:t=tn(null,t=t.toLowerCase())},A(jf),x(jf,t,e)}function S(e){A(jf),A(Hf),A(Vf)}function T(){return jf.current}function I(e){null!==e.memoizedState&&x(zf,e,e);var n=jf.current,t=e.type,r=Iu(n.context,t);n!==(r={context:r,ancestorInfo:t=tn(n.ancestorInfo,t)})&&(x(Hf,e,e),x(jf,r,e))}function M(e){Hf.current===e&&(A(jf),A(Hf)),zf.current===e&&(A(zf),fA.U=cA)}function O(){}function R(e){var n=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(n=e.indexOf("\n"))&&(e=e.slice(n+1)),-1!==(n=e.indexOf("react_stack_bottom_frame"))&&(n=e.lastIndexOf("\n",n)),-1===n?"":e=e.slice(0,n)}function N(e){if(void 0===qf)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);qf=n&&n[1]||"",Gf=-1<t.stack.indexOf("\n at")?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+qf+e+Gf}function B(e,n){if(!e||Yf)return"";var t,r=Jf.get(e);if(void 0!==r)return r;Yf=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0,t=Bf.H,Bf.H=null,function(){if(0===Wf){rf=console.log,of=console.info,af=console.warn,sf=console.error,lf=console.group,uf=console.groupCollapsed,cf=console.groupEnd;var e={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Wf++}();try{var i={DetermineComponentFrameRoot:function(){try{if(n){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(o){r=o}e.call(t.prototype)}}else{try{throw Error()}catch(a){r=a}(t=e())&&"function"==typeof t.catch&&t.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),s=a[0],l=a[1];if(s&&l){var u=s.split("\n"),c=l.split("\n");for(a=o=0;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(o===u.length||a===c.length)for(o=u.length-1,a=c.length-1;1<=o&&0<=a&&u[o]!==c[a];)a--;for(;1<=o&&0<=a;o--,a--)if(u[o]!==c[a]){if(1!==o||1!==a)do{if(o--,0>--a||u[o]!==c[a]){var f="\n"+u[o].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Jf.set(e,f),f}}while(1<=o&&0<=a);break}}}finally{Yf=!1,Bf.H=t,function(){if(0===--Wf){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pf({},e,{value:rf}),info:pf({},e,{value:of}),warn:pf({},e,{value:af}),error:pf({},e,{value:sf}),group:pf({},e,{value:lf}),groupCollapsed:pf({},e,{value:uf}),groupEnd:pf({},e,{value:cf})})}}(),Error.prepareStackTrace=r}return u=(u=e?e.displayName||e.name:"")?N(u):"","function"==typeof e&&Jf.set(e,u),u}function L(e,n){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return e.child!==n&&null!==n?N("Suspense Fallback"):N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);case 31:return N("Activity");default:return""}}function D(e){try{var n="",t=null;do{n+=L(e,t);var r=e.J;if(r)for(var i=r.length-1;0<=i;i--){var o=r[i];if("string"==typeof o.name){var a=n;e:{var s=o.name,l=o.env,u=o.debugLocation;if(null!=u){var c=R(u),f=c.lastIndexOf("\n"),d=-1===f?c:c.slice(f+1);if(-1!==d.indexOf(s)){var h="\n"+d;break e}}h=N(s+(l?" ["+l+"]":""))}n=a+h}}t=e,e=e.return}while(e);return n}catch(p){return"\nError generating stack: "+p.message+"\n"+p.stack}}function P(e){return(e=e?e.displayName||e.name:"")?N(e):""}function j(){if(null===Kf)return"";var e=Kf;try{var n="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:n+=N(e.type);break;case 13:n+=N("Suspense");break;case 19:n+=N("SuspenseList");break;case 31:n+=N("Activity");break;case 30:case 0:case 15:case 1:e.ke||""!==n||(n+=P(e.type));break;case 11:e.ke||""!==n||(n+=P(e.type.render))}for(;e;)if("number"==typeof e.tag){var t=e;e=t.ke;var r=t.K;if(e&&r){var i=R(r);""!==i&&(n+="\n"+i)}}else{if(null==e.debugStack)break;var o=e.debugStack;(e=e.owner)&&o&&(n+="\n"+R(o))}var a=n}catch(s){a="\nError generating stack: "+s.message+"\n"+s.stack}return a}function H(e,n,t,r,i,o,a){var s=Kf;V(e);try{return null!==e&&e._?e._.run(n.bind(null,t,r,i,o,a)):n(t,r,i,o,a)}finally{V(s)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function V(e){Bf.getCurrentStack=null===e?null:j,Xf=!1,Kf=e}function z(e){try{return W(e),!1}catch(n){return!0}}function W(e){return""+e}function q(e,n){if(z(e))return W(e)}function G(e,n){if(z(e))return W(e)}function Y(e){if(z(e))return W(e)}function J(e){if("function"==typeof ld&&ud(e),fd&&"function"==typeof fd.setStrictMode)try{fd.setStrictMode(cd,e)}catch(n){dd||(dd=!0)}}function K(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function X(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=K(r):0!==(a&=s)?i=K(a):t||0!==(t=s&~e)&&(i=K(t)):0!==(s=r&~o)?i=K(s):0!==a?i=K(a):t||0!==(t=r&~e)&&(i=K(t)),0===i?0:0!==n&&n!==i&&0===(n&o)&&((o=i&-i)>=(t=n&-n)||32===o&&4194048&t)?n:i}function Q(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function Z(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function _(){var e=wd;return!(62914560&(wd<<=1))&&(wd=4194304),e}function $(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function ee(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ne(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-pd(n);e.entangledLanes|=n,e.entanglements[r]=1073741824|e.entanglements[r]|261930&t}function te(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-pd(t),i=1<<r;i&n|e[r]&n&&(e[r]|=n),t&=~i}}function re(e,n){var t=n&-n;return 0!==((t=42&t?1:ie(t))&(e.suspendedLanes|n))?0:t}function ie(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function oe(e,n,t){if(hd)for(e=e.pendingUpdatersLaneMap;0<t;){var r=31-pd(t),i=1<<r;e[r].add(n),t&=~i}}function ae(e,n){if(hd)for(var t=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<n;){var i=31-pd(n);e=1<<i,0<(i=t[i]).size&&(i.forEach(function(e){var n=e.alternate;null!==n&&r.has(n)||r.add(e)}),i.clear()),n&=~e}}function se(e){return gd<(e&=-e)?kd<e?134217727&e?Ad:xd:kd:gd}function le(){var e=Ff.p;return 0!==e?e:void 0===(e=window.event)?Ad:Wc(e.type)}function ue(e,n){var t=Ff.p;try{return Ff.p=e,n()}finally{Ff.p=t}}function ce(e){delete e[Sd],delete e[Cd],delete e[Id],delete e[Md],delete e[Od]}function fe(e){var n=e[Sd];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Td]||t[Sd]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=ic(e);null!==e;){if(t=e[Sd])return t;e=ic(e)}return n}t=(e=t).parentNode}return null}function de(e){if(e=e[Sd]||e[Td]){var n=e.tag;if(5===n||6===n||13===n||31===n||26===n||27===n||3===n)return e}return null}function he(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function pe(e){var n=e[Rd];return n||(n=e[Rd]={hoistableStyles:/* @__PURE__ */new Map,hoistableScripts:/* @__PURE__ */new Map}),n}function me(e){e[Nd]=!0}function be(e,n){ve(e,n),ve(e+"Capture",n)}function ve(e,n){Fd[e],Fd[e]=n;var t=e.toLowerCase();for(Ld[t]=e,"onDoubleClick"===e&&(Ld.ondblclick=e),e=0;e<n.length;e++)Bd.add(n[e])}function ye(e,n){Dd[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value,n.onChange||n.readOnly||n.disabled||n.checked}function we(e){return!!Qf.call(jd,e)||!Qf.call(Pd,e)&&(Ud.test(e)?jd[e]=!0:(Pd[e]=!0,!1))}function ge(e,n,t){if(we(n)){if(!e.hasAttribute(n)){switch(typeof t){case"symbol":case"object":case"function":return t;case"boolean":if(!1===t)return t}return void 0===t?void 0:null}return""===(e=e.getAttribute(n))&&!0===t||(q(t),e===""+t?t:e)}}function ke(e,n,t){if(we(n))if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":return void e.removeAttribute(n);case"boolean":var r=n.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(n)}q(t),e.setAttribute(n,""+t)}}function Ae(e,n,t){if(null===t)e.removeAttribute(n);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}q(t),e.setAttribute(n,""+t)}}function xe(e,n,t,r){if(null===r)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}q(r),e.setAttributeNS(n,t,""+r)}}function Ee(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Y(e),e;default:return""}}function Se(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Ce(e){if(!e.oe){var n=Se(e)?"checked":"value";e.oe=function(e,n,t){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(e){Y(e),t=""+e,o.call(this,e)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return t},setValue:function(e){Y(e),t=""+e},stopTracking:function(){e.oe=null,delete e[n]}}}}(e,n,""+e[n])}}function Te(e){if(!e)return!1;var n=e.oe;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Se(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function Ie(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Me(e){return e.replace(Hd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Oe(e,n){void 0===n.checked||void 0===n.defaultChecked||zd||(zd=!0),void 0===n.value||void 0===n.defaultValue||Vd||(Vd=!0)}function Re(e,n,t,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?(q(a),e.type=a):e.removeAttribute("type"),null!=n?"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+Ee(n)):e.value!==""+Ee(n)&&(e.value=""+Ee(n)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=n?Be(e,a,Ee(n)):null!=t?Be(e,a,Ee(t)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?(q(s),e.name=""+Ee(s)):e.removeAttribute("name")}function Ne(e,n,t,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(q(o),e.type=o),null!=n||null!=t){if(("submit"===o||"reset"===o)&&null==n)return void Ce(e);t=null!=t?""+Ee(t):"",n=null!=n?""+Ee(n):t,s||n===e.value||(e.value=n),e.defaultValue=n}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(q(a),e.name=a),Ce(e)}function Be(e,n,t){"number"===n&&Ie(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Fe(e,n){null==n.value&&("object"==typeof n.children&&null!==n.children?df.Children.forEach(n.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||qd||(qd=!0)}):null==n.dangerouslySetInnerHTML||Gd||(Gd=!0)),null==n.selected||Wd||(Wd=!0)}function Le(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Ee(t),n=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==n||e[i].disabled||(n=e[i])}null!==n&&(n.selected=!0)}}function De(e,n){for(e=0;e<Jd.length;e++){var t=Jd[e];if(null!=n[t]){var r=Nf(n[t]);n.multiple&&!r||n.multiple}}void 0===n.value||void 0===n.defaultValue||Yd||(Yd=!0)}function Ue(e,n){void 0===n.value||void 0===n.defaultValue||Kd||(Kd=!0),null!=n.children&&n.value}function Pe(e,n,t){null==n||((n=""+Ee(n))!==e.value&&(e.value=n),null!=t)?e.defaultValue=null!=t?""+Ee(t):"":e.defaultValue!==n&&(e.defaultValue=n)}function je(e,n,t,r){if(null==n){if(null!=r){if(null!=t)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Nf(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}t=r}null==t&&(t=""),n=t}t=Ee(n),e.defaultValue=t,(r=e.textContent)===t&&""!==r&&null!==r&&(e.value=r),Ce(e)}function He(e,n){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?He(e.children[0],n):e}function Ve(e){return" "+" ".repeat(e)}function ze(e){return"+ "+" ".repeat(e)}function We(e){return"- "+" ".repeat(e)}function qe(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function Ge(e,n){return Xd.test(e)?(e=JSON.stringify(e)).length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}":e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function Ye(e,n,t){var r=120-2*t;if(null===n)return ze(t)+Ge(e,r)+"\n";if("string"==typeof n){for(var i=0;i<n.length&&i<e.length&&n.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e="..."+e.slice(i-8),n="..."+n.slice(i-8)),ze(t)+Ge(e,r)+"\n"+We(t)+Ge(n,r)+"\n"}return Ve(t)+Ge(e,r)+"\n"}function Je(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,n){return n})}function Ke(e,n){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(null===e)return"null";if(Nf(e))return"[...]";if(e.$$typeof===bf)return(n=w(e.type))?"<"+n+">":"<...>";var t=Je(e);if("Object"===t){for(var r in t="",n-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!=='"'+r+'"'&&(r=i),n-=r.length-2,0>(n-=(i=Ke(e[r],15>n?n:15)).length)){t+=""===t?"...":", ...";break}t+=(""===t?"":",")+r+":"+i}return"{"+t+"}"}return t;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Xe(e,n){return"string"!=typeof e||Xd.test(e)?"{"+Ke(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function Qe(e,n,t){var r,i=120-t.length-e.length,o=[];for(r in n)if(n.hasOwnProperty(r)&&"children"!==r){var a=Xe(n[r],120-t.length-r.length-1);i-=r.length+a.length+2,o.push(r+"="+a)}return 0===o.length?t+"<"+e+">\n":0<i?t+"<"+e+" "+o.join(" ")+">\n":t+"<"+e+"\n"+t+" "+o.join("\n"+t+" ")+"\n"+t+">\n"}function Ze(e,n,t){var r,i="",o=pf({},n);for(r in e)if(e.hasOwnProperty(r)){delete o[r];var a=120-2*t-r.length-2,s=Ke(e[r],a);n.hasOwnProperty(r)?(a=Ke(n[r],a),i+=ze(t)+r+": "+s+"\n",i+=We(t)+r+": "+a+"\n"):i+=ze(t)+r+": "+s+"\n"}for(var l in o)o.hasOwnProperty(l)&&(e=Ke(o[l],120-2*t-l.length-2),i+=We(t)+l+": "+e+"\n");return i}function _e(e,n){var t=qe(e);if(null===t){for(t="",e=e.child;e;)t+=_e(e,n),e=e.sibling;return t}return Ve(n)+"<"+t+">\n"}function $e(e,n){var t=He(e,n);if(t!==e&&(1!==e.children.length||e.children[0]!==t))return Ve(n)+"...\n"+$e(t,n+1);t="";var r=e.fiber.J;if(r)for(var i=0;i<r.length;i++){var o=r[i].name;"string"==typeof o&&(t+=Ve(n)+"<"+o+">\n",n++)}if(r="",i=e.fiber.pendingProps,6===e.fiber.tag)r=Ye(i,e.serverProps,n),n++;else if(null!==(o=qe(e.fiber)))if(void 0===e.serverProps){var a=120-2*(r=n)-o.length-2,s="";for(u in i)if(i.hasOwnProperty(u)&&"children"!==u){var l=Xe(i[u],15);if(0>(a-=u.length+l.length+2)){s+=" ...";break}s+=" "+u+"="+l}r=Ve(r)+"<"+o+s+">\n",n++}else null===e.serverProps?(r=Qe(o,i,ze(n)),n++):"string"==typeof e.serverProps||(r=function(e,n,t,r){var i="",o=/* @__PURE__ */new Map;for(u in t)t.hasOwnProperty(u)&&o.set(u.toLowerCase(),u);if(1===o.size&&o.has("children"))i+=Qe(e,n,Ve(r));else{for(var a in n)if(n.hasOwnProperty(a)&&"children"!==a){var s=120-2*(r+1)-a.length-1,l=o.get(a.toLowerCase());if(void 0!==l){o.delete(a.toLowerCase());var u=n[a];l=t[l];var c=Xe(u,s);s=Xe(l,s),"object"==typeof u&&null!==u&&"object"==typeof l&&null!==l&&"Object"===Je(u)&&"Object"===Je(l)&&(2<Object.keys(u).length||2<Object.keys(l).length||-1<c.indexOf("...")||-1<s.indexOf("..."))?i+=Ve(r+1)+a+"={{\n"+Ze(u,l,r+2)+Ve(r+1)+"}}\n":(i+=ze(r+1)+a+"="+c+"\n",i+=We(r+1)+a+"="+s+"\n")}else i+=Ve(r+1)+a+"="+Xe(n[a],s)+"\n"}o.forEach(function(e){if("children"!==e){var n=120-2*(r+1)-e.length-1;i+=We(r+1)+e+"="+Xe(t[e],n)+"\n"}}),i=""===i?Ve(r)+"<"+e+">\n":Ve(r)+"<"+e+"\n"+i+Ve(r)+">\n"}return e=t.children,n=n.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(o="","string"!=typeof n&&"number"!=typeof n&&"bigint"!=typeof n||(o=""+n),i+=Ye(o,""+e,r+1)):"string"!=typeof n&&"number"!=typeof n&&"bigint"!=typeof n||(i=null==e?i+Ye(""+n,null,r+1):i+Ye(""+n,void 0,r+1)),i}(o,i,e.serverProps,n),n++);var u="";for(i=e.fiber.child,o=0;i&&o<e.children.length;)(a=e.children[o]).fiber===i?(u+=$e(a,n),o++):u+=_e(i,n),i=i.sibling;for(i&&0<e.children.length&&(u+=Ve(n)+"...\n"),i=e.serverTail,null===e.serverProps&&n--,e=0;e<i.length;e++)u="string"==typeof(o=i[e])?u+(We(n)+Ge(o,120-2*n)+"\n"):u+Qe(o.type,o.props,We(n));return t+r+u}function en(e){try{return"\n\n"+$e(e,0)}catch(n){return""}}function nn(e,n,t){for(var r=n,i=null,o=0;r;)r===e&&(o=0),i={fiber:r,children:null!==i?[i]:[],serverProps:r===n?t:r===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,r=r.return;return null!==i?en(i).replaceAll(/^[+-]/gm,">"):""}function tn(e,n){var t=pf({},e||eh),r={tag:n};return-1!==Zd.indexOf(n)&&(t.aTagInScope=null,t.buttonTagInScope=null,t.nobrTagInScope=null),-1!==_d.indexOf(n)&&(t.pTagInButtonScope=null),-1!==Qd.indexOf(n)&&"address"!==n&&"div"!==n&&"p"!==n&&(t.listItemTagAutoclosing=null,t.dlItemTagAutoclosing=null),t.current=r,"form"===n&&(t.formTag=r),"a"===n&&(t.aTagInScope=r),"button"===n&&(t.buttonTagInScope=r),"nobr"===n&&(t.nobrTagInScope=r),"p"===n&&(t.pTagInButtonScope=r),"li"===n&&(t.listItemTagAutoclosing=r),"dd"!==n&&"dt"!==n||(t.dlItemTagAutoclosing=r),"#document"===n||"html"===n?t.containerTagInScope=null:t.containerTagInScope||(t.containerTagInScope=r),null!==e||"#document"!==n&&"html"!==n&&"body"!==n?!0===t.implicitRootScope&&(t.implicitRootScope=!1):t.implicitRootScope=!0,t}function rn(e,n,t){switch(n){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(t)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!t)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==n&&"h2"!==n&&"h3"!==n&&"h4"!==n&&"h5"!==n&&"h6"!==n;case"rp":case"rt":return-1===$d.indexOf(n);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==n;case"head":return t||null===n;case"html":return t&&"#document"===n||null===n;case"body":return t&&("#document"===n||"html"===n)||null===n}return!0}function on(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function an(e,n){var t=(n=n||eh).current;if(n=(t=rn(e,t&&t.tag,n.implicitRootScope)?null:t)?null:function(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}(e,n),!(n=t||n))return!0;var r=n.tag;if(n=String(!!t)+"|"+e+"|"+r,nh[n])return!1;nh[n]=!0;var i=(n=Kf)?on(n.return,r):null;return null!==n&&null!==i&&nn(i,n,null),t&&(t="","table"===r&&"tr"===e&&(t+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.")),n&&(e=n.return,null===i||null===e||i===e&&e.ke===n.ke||H(i,function(){})),!1}function sn(e,n,t){if(t||rn("#text",n,!1))return!0;if(nh[t="#text|"+n])return!1;nh[t]=!0;var r=(t=Kf)?on(t,n):null;return t=null!==t&&null!==r?nn(r,t,6!==t.tag?{children:null}:null):"",/\S/.test(e),!1}function ln(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}function un(e,n,t){var r=0===n.indexOf("--");r||(-1<n.indexOf("-")||oh.test(n)?sh.hasOwnProperty(n)&&sh[n]||(sh[n]=!0):!ah.test(t)||lh.hasOwnProperty(t)&&lh[t]||(lh[t]=!0),"number"==typeof t&&(isNaN(t)?uh||(uh=!0):isFinite(t)||ch||(ch=!0))),null==t||"boolean"==typeof t||""===t?r?e.setProperty(n,""):"float"===n?e.cssFloat="":e[n]="":r?e.setProperty(n,t):"number"!=typeof t||0===t||fh.has(n)?"float"===n?e.cssFloat=t:(G(t),e[n]=(""+t).trim()):e[n]=t+"px"}function cn(e,n,t){if(null!=n&&"object"!=typeof n)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,null!=t){if(n){var r={};if(t)for(var i in t)if(t.hasOwnProperty(i)&&!n.hasOwnProperty(i))for(var o=th[i]||[i],a=0;a<o.length;a++)r[o[a]]=i;for(var s in n)if(n.hasOwnProperty(s)&&(!t||t[s]!==n[s]))for(i=th[s]||[s],o=0;o<i.length;o++)r[i[o]]=s;for(var l in s={},n)for(i=th[l]||[l],o=0;o<i.length;o++)s[i[o]]=l;for(var u in l={},r)if(i=r[u],(o=s[u])&&i!==o&&!l[a=i+","+o]){l[a]=!0,a=console;var c=n[i];a.error.call(a,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==c||"boolean"==typeof c||""===c?"Removing":"Updating",i,o)}}for(var f in t)!t.hasOwnProperty(f)||null!=n&&n.hasOwnProperty(f)||(0===f.indexOf("--")?e.setProperty(f,""):"float"===f?e.cssFloat="":e[f]="");for(var d in n)u=n[d],n.hasOwnProperty(d)&&t[d]!==u&&un(e,d,u)}else for(r in n)n.hasOwnProperty(r)&&un(e,r,n[r])}function fn(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function dn(e){return ph.get(e)||e}function hn(e,n){if(Qf.call(vh,n)&&vh[n])return!0;if(wh.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),null==(e=bh.hasOwnProperty(e)?e:null))return vh[n]=!0;if(n!==e)return vh[n]=!0}if(yh.test(n)){if(e=n.toLowerCase(),null==(e=bh.hasOwnProperty(e)?e:null))return vh[n]=!0,!1;n!==e&&(vh[n]=!0)}return!0}function pn(e,n,t,r){if(Qf.call(kh,n)&&kh[n])return!0;var i=n.toLowerCase();if("onfocusin"===i||"onfocusout"===i)return kh[n]=!0;if("function"==typeof t&&("form"===e&&"action"===n||"input"===e&&"formAction"===n||"button"===e&&"formAction"===n))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(n))return!0;if(null!=(r=e.hasOwnProperty(i)?e[i]:null))return kh[n]=!0;if(Ah.test(n))return kh[n]=!0}else if(Ah.test(n))return xh.test(n),kh[n]=!0;if(Eh.test(n)||Sh.test(n))return!0;if("innerhtml"===i)return kh[n]=!0;if("aria"===i)return kh[n]=!0;if("is"===i&&null!=t&&"string"!=typeof t)return kh[n]=!0;if("number"==typeof t&&isNaN(t))return kh[n]=!0;if(mh.hasOwnProperty(i)){if((i=mh[i])!==n)return kh[n]=!0}else if(n!==i)return kh[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof t){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(i=n.toLowerCase().slice(0,5))||"aria-"===i||(kh[n]=!0)}case"function":case"symbol":return kh[n]=!0,!1;case"string":if("false"===t||"true"===t){switch(n){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}kh[n]=!0}}return!0}function mn(e){return Ch.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}function vn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function yn(e){var n=de(e);if(n&&(e=n.stateNode)){var t=e[Cd]||null;e:switch(e=n.stateNode,n.type){case"input":if(Re(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(q(n),t=t.querySelectorAll('input[name="'+Me(""+n)+'"][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var i=r[Cd]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Re(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<t.length;n++)(r=t[n]).form===e.form&&Te(r)}break e;case"textarea":Pe(e,t.value,t.defaultValue);break e;case"select":null!=(n=t.value)&&Le(e,!!t.multiple,n,!1)}}}function wn(e,n,t){if(Oh)return e(n,t);Oh=!0;try{return e(n)}finally{if(Oh=!1,(null!==Ih||null!==Mh)&&($s(),Ih&&(n=Ih,e=Mh,Mh=Ih=null,yn(n),e)))for(n=0;n<e.length;n++)yn(e[n])}}function gn(e,n){var t=e.stateNode;if(null===t)return null;var r=t[Cd]||null;if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof t+"` type.");return t}function kn(){if(jh)return jh;var e,n,t=Ph,r=t.length,i="value"in Uh?Uh.value:Uh.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return jh=i.slice(e,1<n?1-n:void 0)}function An(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function xn(){return!0}function En(){return!1}function Sn(e){function n(n,t,r,i,o){for(var a in this.ae=n,this.se=r,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?xn:En,this.isPropagationStopped=En,this}return pf(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=xn)},persist:function(){},isPersistent:xn}),n}function Cn(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=ep[e])&&!!n[e]}function Tn(){return Cn}function In(e,n){switch(e){case"keyup":return-1!==sp.indexOf(n.keyCode);case"keydown":return n.keyCode!==lp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function On(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!vp[e.type]:"textarea"===n}function Rn(e,n,t,r){Ih?Mh?Mh.push(r):Mh=[r]:Ih=r,0<(n=iu(n,"onChange")).length&&(t=new Vh("onChange","change",null,t,r),e.push({event:t,listeners:n}))}function Nn(e){Zl(e,0)}function Bn(e){if(Te(he(e)))return e}function Fn(e,n){if("change"===e)return n}function Ln(){yp&&(yp.detachEvent("onpropertychange",Dn),wp=yp=null)}function Dn(e){if("value"===e.propertyName&&Bn(wp)){var n=[];Rn(n,wp,e,vn(e)),wn(Nn,n)}}function Un(e,n,t){"focusin"===e?(Ln(),wp=t,(yp=n).attachEvent("onpropertychange",Dn)):"focusout"===e&&Ln()}function Pn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(wp)}function jn(e,n){if("click"===e)return Bn(n)}function Hn(e,n){if("input"===e||"change"===e)return Bn(n)}function Vn(e,n){if(kp(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var i=t[r];if(!Qf.call(n,i)||!kp(e[i],n[i]))return!1}return!0}function zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,n){var t,r=zn(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zn(r)}}function qn(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?qn(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function Gn(e){for(var n=Ie((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(r){t=!1}if(!t)break;n=Ie((e=n.contentWindow).document)}return n}function Yn(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function Jn(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Cp||null==xp||xp!==Ie(r)||(r="selectionStart"in(r=xp)&&Yn(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Sp&&Vn(Sp,r)||(Sp=r,0<(r=iu(Ep,"onSelect")).length&&(n=new Vh("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=xp)))}function Kn(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}function Xn(e){if(Ip[e])return Ip[e];if(!Tp[e])return e;var n,t=Tp[e];for(n in t)if(t.hasOwnProperty(n)&&n in Mp)return Ip[e]=t[n];return e}function Qn(e,n){Up.set(e,n),be(n,[e])}function Zn(e,n,t,r){for(var i in e)Qf.call(e,i)&&"_"!==i[0]&&_n(i,e[i],n,t,r)}function _n(e,n,t,r,i){switch(typeof n){case"object":if(null===n){n="null";break}if(n.$$typeof===bf){var o=w(n.type)||"…",a=n.key;n=n.props;var s=Object.keys(n),l=s.length;if(null==a&&0===l){n="<"+o+" />";break}if(3>r||1===l&&"children"===s[0]&&null==a){n="<"+o+" … />";break}for(var u in t.push([i+"  ".repeat(r)+e,"<"+o]),null!==a&&_n("key",a,t,r+1,i),e=!1,n)"children"===u?null!=n.children&&(!Nf(n.children)||0<n.children.length)&&(e=!0):Qf.call(n,u)&&"_"!==u[0]&&_n(u,n[u],t,r+1,i);return void t.push(["",e?">…</"+o+">":"/>"])}if("Array"===(o=(o=Object.prototype.toString.call(n)).slice(8,o.length-1))){if(u=function(e){for(var n=Gp,t=0;t<e.length;t++){var r=e[t];if("object"==typeof r&&null!==r){if(!Nf(r)||2!==r.length||"string"!=typeof r[0])return Yp;if(n!==Gp&&n!==Kp)return Yp;n=Kp}else{if("function"==typeof r||"string"==typeof r&&50<r.length||n!==Gp&&n!==Jp)return Yp;n=Jp}}return n}(n),u===Jp||u===Gp){n=JSON.stringify(n);break}if(u===Kp){for(t.push([i+"  ".repeat(r)+e,""]),e=0;e<n.length;e++)_n((o=n[e])[0],o[1],t,r+1,i);return}}if("Promise"===o){if("fulfilled"===n.status){if(o=t.length,_n(e,n.value,t,r,i),t.length>o)return void((t=t[o])[1]="Promise<"+(t[1]||"Object")+">")}else if("rejected"===n.status&&(o=t.length,_n(e,n.reason,t,r,i),t.length>o))return void((t=t[o])[1]="Rejected Promise<"+t[1]+">");return void t.push(["  ".repeat(r)+e,"Promise"])}return"Object"===o&&(u=Object.getPrototypeOf(n))&&"function"==typeof u.constructor&&(o=u.constructor.name),t.push([i+"  ".repeat(r)+e,"Object"===o?3>r?"":"…":o]),void(3>r&&Zn(n,t,r+1,i));case"function":n=""===n.name?"() => {}":n.name+"() {}";break;case"string":n=n===qp?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}t.push([i+"  ".repeat(r)+e,n])}function $n(e,n,t,r){var i=!0;for(a in e)a in n||(t.push([Xp+"  ".repeat(r)+a,"…"]),i=!1);for(var o in n)if(o in e){var a=e[o],s=n[o];if(a!==s){if(0===r&&"children"===o)i="  ".repeat(r)+o,t.push([Xp+i,"…"],[Qp+i,"…"]);else{if(!(3<=r))if("object"==typeof a&&"object"==typeof s&&null!==a&&null!==s&&a.$$typeof===s.$$typeof)if(s.$$typeof===bf){if(a.type===s.type&&a.key===s.key){a=w(s.type)||"…",i="  ".repeat(r)+o,a="<"+a+" … />",t.push([Xp+i,a],[Qp+i,a]),i=!1;continue}}else{var l=Object.prototype.toString.call(a),u=Object.prototype.toString.call(s);if(l===u&&("[object Object]"===u||"[object Array]"===u)){l=[Zp+"  ".repeat(r)+o,"[object Array]"===u?"Array":""],t.push(l),u=t.length,$n(a,s,t,r+1)?u===t.length&&(l[1]="Referentially unequal but deeply equal objects. Consider memoization."):i=!1;continue}}else if("function"==typeof a&&"function"==typeof s&&a.name===s.name&&a.length===s.length&&(l=Function.prototype.toString.call(a))===(u=Function.prototype.toString.call(s))){a=""===s.name?"() => {}":s.name+"() {}",t.push([Zp+"  ".repeat(r)+o,a+" Referentially unequal function closure. Consider memoization."]);continue}_n(o,a,t,r,Xp),_n(o,s,t,r,Qp)}i=!1}}else t.push([Qp+"  ".repeat(r)+o,"…"]),i=!1;return i}function et(e){nm=63&e?"Blocking":64&e?"Gesture":4194176&e?"Transition":62914560&e?"Suspense":2080374784&e?"Idle":"Other"}function nt(e,n,t,r){_p&&(im.start=n,im.end=t,rm.color="warning",rm.tooltipText=r,rm.properties=null,(e=e._)?e.run(performance.measure.bind(performance,r,im)):performance.measure(r,im))}function tt(e,n,t){nt(e,n,t,"Reconnect")}function rt(e,n,t,r,i){var o=g(e);if(null!==o&&_p){var a=e.alternate,s=e.actualDuration;if(null===a||a.child!==e.child)for(var l=e.child;null!==l;l=l.sibling)s-=l.actualDuration;r=.5>s?r?"tertiary-light":"primary-light":10>s?r?"tertiary":"primary":100>s?r?"tertiary-dark":"primary-dark":"error";var u=e.memoizedProps;s=e._,null!==u&&null!==a&&a.memoizedProps!==u?(l=[om],u=$n(a.memoizedProps,u,l,0),1<l.length&&(u&&!tm&&0===(a.lanes&i)&&100<e.actualDuration?(tm=!0,l[0]=sm,rm.color="warning",rm.tooltipText=am):(rm.color=r,rm.tooltipText=o),rm.properties=l,im.start=n,im.end=t,null!=s?s.run(performance.measure.bind(performance,"​"+o,im)):performance.measure("​"+o,im))):null!=s&&s.run(function(){}.bind())}}function it(e,n,t,r){if(_p){var i=g(e);if(null!==i){for(var o=null,a=[],s=0;s<r.length;s++){var l=r[s];null==o&&null!==l.source&&(o=l.source._),l=l.value,a.push(["Error","object"==typeof l&&null!==l&&"string"==typeof l.message?String(l.message):String(l)])}null!==e.key&&_n("key",e.key,a,0,""),null!==e.memoizedProps&&Zn(e.memoizedProps,a,0,""),null==o&&(o=e._),e={start:n,end:t,detail:{devtools:{color:"error",track:$p,tooltipText:13===e.tag?"Hydration failed":"Error boundary caught an error",properties:a}}},o?o.run(performance.measure.bind(performance,"​"+i,e)):performance.measure("​"+i,e)}}}function ot(e,n,t,r,i){if(null!==i){if(_p){var o=g(e);if(null!==o){r=[];for(var a=0;a<i.length;a++){var s=i[a].value;r.push(["Error","object"==typeof s&&null!==s&&"string"==typeof s.message?String(s.message):String(s)])}null!==e.key&&_n("key",e.key,r,0,""),null!==e.memoizedProps&&Zn(e.memoizedProps,r,0,""),n={start:n,end:t,detail:{devtools:{color:"error",track:$p,tooltipText:"A lifecycle or effect errored",properties:r}}},(e=e._)?e.run(performance.measure.bind(performance,"​"+o,n)):performance.measure("​"+o,n)}}}else null!==(o=g(e))&&_p&&(i=1>r?"secondary-light":100>r?"secondary":500>r?"secondary-dark":"error",(e=e._)&&e.run(function(){}.bind()))}function at(e,n,t,r){!_p||n<=e||(t=(738197653&t)===t?"tertiary-dark":"primary-dark",r&&r.run(function(){}.bind()))}function st(e,n,t,r){!_p||n<=e||(t=(738197653&t)===t?"tertiary-dark":"primary-dark",r&&r.run(function(){}.bind()))}function lt(e,n,t,r){!_p||n<=e||r&&r.run(function(){}.bind())}function ut(e,n,t,r,i){if(_p&&!(n<=e)){for(var o=[],a=0;a<t.length;a++){var s=t[a].value;o.push(["Error","object"==typeof s&&null!==s&&"string"==typeof s.message?String(s.message):String(s)])}e={start:e,end:n,detail:{devtools:{color:"error",track:nm,trackGroup:em,tooltipText:r?"Remaining Effects Errored":"Commit Errored",properties:o}}},i?i.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function ct(){for(var e=fm,n=dm=fm=0;n<e;){var t=cm[n];cm[n++]=null;var r=cm[n];cm[n++]=null;var i=cm[n];cm[n++]=null;var o=cm[n];if(cm[n++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&pt(t,i,o)}}function ft(e,n,t,r){cm[fm++]=e,cm[fm++]=n,cm[fm++]=t,cm[fm++]=r,dm|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function dt(e,n,t,r){return ft(e,n,t,r),mt(e)}function ht(e,n){return ft(e,null,null,n),mt(e)}function pt(e,n,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);for(var i=!1,o=e.return;null!==o;)o.childLanes|=t,null!==(r=o.alternate)&&(r.childLanes|=t),22===o.tag&&(null===(e=o.stateNode)||e.le&lm||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==n&&(i=31-pd(t),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[n]:r.push(n),n.lane=536870912|t),o):null}function mt(e){if(Mg>Ig)throw Fg=Mg=0,Lg=Og=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Fg>Bg&&(Fg=0,Lg=null),null===e.alternate&&4098&e.flags&&Dl(e);for(var n=e,t=n.return;null!==t;)null===n.alternate&&!!(4098&n.flags)&&Dl(e),t=(n=t).return;return 3===n.tag?n.stateNode:null}function bt(e){if(null===pm)return e;var n=pm(e);return void 0===n?e:n.current}function vt(e){if(null===pm)return e;var n=pm(e);return void 0===n?null!=e&&"function"==typeof e.render&&(n=bt(e.render),e.render!==n)?(n={$$typeof:xf,render:n},void 0!==e.displayName&&(n.displayName=e.displayName),n):e:n.current}function yt(e,n){if(null===pm)return!1;var t=e.elementType,r=!1,i="object"==typeof(n=n.type)&&null!==n?n.$$typeof:null;switch(e.tag){case 1:"function"==typeof n&&(r=!0);break;case 0:("function"==typeof n||i===Tf)&&(r=!0);break;case 11:(i===xf||i===Tf)&&(r=!0);break;case 14:case 15:(i===Cf||i===Tf)&&(r=!0);break;default:return!1}return!(!r||(e=pm(t),void 0===e||e!==pm(n)))}function wt(e){null!==pm&&"function"==typeof WeakSet&&(null===mm&&(mm=/* @__PURE__ */new WeakSet),mm.add(e))}function gt(e,n,t){for(;;){var r=e,i=r.alternate,o=r.child,a=r.sibling,s=r.tag;r=r.type;var l=null;switch(s){case 0:case 15:case 1:l=r;break;case 11:l=r.render}if(null===pm)throw Error("Expected resolveFamily to be set during hot reload.");var u=!1;if(r=!1,null!==l&&void 0!==(l=pm(l))&&(t.has(l)?r=!0:n.has(l)&&(1===s?r=!0:u=!0)),null!==mm&&(mm.has(e)||null!==i&&mm.has(i))&&(r=!0),r&&(e.Ae=!0),(r||u)&&null!==(i=ht(e,2))&&Ks(i,e,2),null===o||r||gt(o,n,t),null===a)break;e=a}}function kt(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._=this.K=this.ke=this.J=null,this.Ae=!1,this.xe=null,Am||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function At(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xt(e,n){var t=e.alternate;switch(null===t?((t=c(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.ke=e.ke,t.K=e.K,t._=e._,t.xe=e.xe,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null,t.actualDuration=-0,t.actualStartTime=-1.1),t.flags=65011712&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext,Ee:n.Ee},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t.selfBaseDuration=e.selfBaseDuration,t.treeBaseDuration=e.treeBaseDuration,t.J=e.J,t.Ae=e.Ae,t.tag){case 0:case 15:case 1:t.type=bt(e.type);break;case 11:t.type=vt(e.type)}return t}function Et(e,n){e.flags&=65011714;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext,Ee:n.Ee},e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration),e}function St(e,n,t,r,i,o){var a=0,s=e;if("function"==typeof e)At(e)&&(a=1),s=bt(s);else if("string"==typeof e)a=function(e,n,t){var r=!t.ancestorInfo.containerTagInScope;if(t.context===Sk||null!=n.itemProp)return!r||n.itemProp,!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof n.precedence||"string"!=typeof n.href||""===n.href)break;return!0;case"link":if("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onLoad||n.onError){if("stylesheet"===n.rel&&"string"==typeof n.precedence){e=n.href;var i=n.onError,o=n.disabled;t=[],n.onLoad&&t.push("`onLoad`"),i&&t.push("`onError`"),null!=o&&t.push("`disabled`"),i=function(e){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" and "+e[1];default:return e.slice(0,-1).join(", ")+", and "+e[e.length-1]}}(t),i+=1===t.length?" prop":" props",o=1===t.length?"an "+i:"the "+i,t.length}r&&("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onError||n.onLoad);break}return"stylesheet"!==n.rel||(e=n.precedence,n=n.disabled,"string"==typeof e&&null==n);case"script":if(!(e=n.async&&"function"!=typeof n.async&&"symbol"!=typeof n.async)||n.onLoad||n.onError||!n.src||"string"!=typeof n.src){r&&e&&(n.onLoad||n.onError);break}return!0}return!1}(e,t,a=T())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case If:return(n=c(31,t,n,i)).elementType=If,n.lanes=o,n;case yf:return Tt(t.children,i,o,n);case wf:a=8,i|=wm,i|=gm;break;case gf:return r=i,(e=t).id,(n=c(12,e,n,r|ym)).elementType=gf,n.lanes=o,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Ef:return(n=c(13,t,n,i)).elementType=Ef,n.lanes=o,n;case Sf:return(n=c(19,t,n,i)).elementType=Sf,n.lanes=o,n;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Af:a=10;break e;case kf:a=9;break e;case xf:a=11,s=vt(s);break e;case Cf:a=14;break e;case Tf:a=16,s=null;break e}s="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?t="null":Nf(e)?t="array":void 0!==e&&e.$$typeof===bf?(t="<"+(w(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):t=typeof e,(a=r?function(e){return"number"==typeof e.tag?g(e):"string"==typeof e.name?e.name:null}(r):null)&&(s+="\n\nCheck the render method of `"+a+"`."),a=29,t=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+t+"."+s),s=null}return(n=c(a,t,n,i)).elementType=e,n.type=s,n.lanes=o,n.ke=r,n}function Ct(e,n,t){return(n=St(e.type,e.key,e.props,e.W,n,t)).ke=e.W,n.K=e.K,n._=e._,n}function Tt(e,n,t,r){return(e=c(7,e,r,n)).lanes=t,e}function It(e,n,t){return(e=c(6,e,null,n)).lanes=t,e}function Mt(e){var n=c(18,null,null,bm);return n.stateNode=e,n}function Ot(e,n,t){return(n=c(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Rt(e,n){if("object"==typeof e&&null!==e){var t=xm.get(e);return void 0!==t?t:(n={value:e,source:n,stack:D(n)},xm.set(e,n),n)}return{value:e,source:n,stack:D(n)}}function Nt(e,n){Em[Sm++]=Tm,Em[Sm++]=Cm,Cm=e,Tm=n}function Bt(e,n,t){Im[Mm++]=Rm,Im[Mm++]=Nm,Im[Mm++]=Om,Om=e;var r=Rm;e=Nm;var i=32-pd(r)-1;r&=~(1<<i),t+=1;var o=32-pd(n)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Rm=1<<32-pd(n)+i|t<<i|r,Nm=o+e}else Rm=1<<o|t<<i|r,Nm=e}function Ft(e){null!==e.return&&(Nt(e,1),Bt(e,1,0))}function Lt(e){for(;e===Cm;)Cm=Em[--Sm],Em[Sm]=null,Tm=Em[--Sm],Em[Sm]=null;for(;e===Om;)Om=Im[--Mm],Im[Mm]=null,Nm=Im[--Mm],Im[Mm]=null,Rm=Im[--Mm],Im[Mm]=null}function Dt(){return null!==Om?{id:Rm,overflow:Nm}:null}function Ut(e,n){Im[Mm++]=Rm,Im[Mm++]=Nm,Im[Mm++]=Om,Rm=n.id,Nm=n.overflow,Om=e}function Pt(e,n){if(null===e.return){if(null===Um)Um={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Um.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Um.distanceFromLeaf>n&&(Um.distanceFromLeaf=n)}return Um}var t=Pt(e.return,n+1).children;return 0<t.length&&t[t.length-1].fiber===e?((t=t[t.length-1]).distanceFromLeaf>n&&(t.distanceFromLeaf=n),t):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},t.push(n),n)}function jt(e,n){Dm||((e=Pt(e,0)).serverProps=null,null!==n&&(n=nc(n),e.serverTail.push(n)))}function Ht(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t="",r=Um;throw null!==r&&(Um=null,t=en(r)),Yt(Rt(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+" didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),Hm}function Vt(e){var n=e.stateNode,t=e.type,r=e.memoizedProps;switch(n[Sd]=e,n[Cd]=r,su(t,r),t){case"dialog":_l("cancel",n),_l("close",n);break;case"iframe":case"object":case"embed":_l("load",n);break;case"video":case"audio":for(t=0;t<Jg.length;t++)_l(Jg[t],n);break;case"source":_l("error",n);break;case"img":case"image":case"link":_l("error",n),_l("load",n);break;case"details":_l("toggle",n);break;case"input":ye(0,r),_l("invalid",n),Oe(0,r),Ne(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"option":Fe(0,r);break;case"select":ye(0,r),_l("invalid",n),De(n,r);break;case"textarea":ye(0,r),_l("invalid",n),Ue(0,r),je(n,r.value,r.defaultValue,r.children)}"string"!=typeof(t=r.children)&&"number"!=typeof t&&"bigint"!=typeof t||n.textContent===""+t||!0===r.suppressHydrationWarning||du(n.textContent,t)?(null!=r.popover&&(_l("beforetoggle",n),_l("toggle",n)),null!=r.onScroll&&_l("scroll",n),null!=r.onScrollEnd&&_l("scrollend",n),null!=r.onClick&&(n.onclick=bn),n=!0):n=!1,n||Ht(e,!0)}function zt(e){for(Bm=e.return;Bm;)switch(Bm.tag){case 5:case 31:case 13:return void(jm=!1);case 27:case 3:return void(jm=!0);default:Bm=Bm.return}}function Wt(e){if(e!==Bm)return!1;if(!Lm)return zt(e),Lm=!0,!1;var n,t=e.tag;if((n=3!==t&&27!==t)&&((n=5===t)&&(n=!("form"!==(n=e.type)&&"button"!==n)||Mu(e.type,e.memoizedProps)),n=!n),n&&Fm){for(n=Fm;n;){var r=Pt(e,0),i=nc(n);r.serverTail.push(i),n="Suspense"===i.type?rc(n):ec(n.nextSibling)}Ht(e)}if(zt(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Fm=rc(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Fm=rc(e)}else 27===t?(t=Fm,ju(e.type)?(e=Uk,Uk=null,Fm=e):Fm=t):Fm=Bm?ec(e.stateNode.nextSibling):null;return!0}function qt(){Fm=Bm=null,Dm=Lm=!1}function Gt(){var e=Pm;return null!==e&&(null===Zw?Zw=e:Zw.push.apply(Zw,e),Pm=null),e}function Yt(e){null===Pm?Pm=[e]:Pm.push(e)}function Jt(){var e=Um;if(null!==e){for(Um=null,en(e);0<e.children.length;)e=e.children[0];H(e.fiber,function(){})}}function Kt(){Gm=qm=null}function Xt(e,n,t){x(Vm,n.U,e),n.U=t,x(zm,n.ee,e),void 0!==n.ee&&null!==n.ee&&n.ee,n.ee=Wm}function Qt(e,n){e.U=Vm.current;var t=zm.current;A(zm),e.ee=t,A(Vm)}function Zt(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function _t(e,n,t,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var a=i.child;o=o.firstContext;e:for(;null!==o;){var s=o;o=i;for(var l=0;l<n.length;l++)if(s.context===n[l]){o.lanes|=t,null!==(s=o.alternate)&&(s.lanes|=t),Zt(o.return,t,e),r||(a=null);break e}o=s.next}}else if(18===i.tag){if(null===(a=i.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");a.lanes|=t,null!==(o=a.alternate)&&(o.lanes|=t),Zt(a,t,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function $t(e,n,t,r){e=null;for(var i=n,o=!1;null!==i;){if(!o)if(524288&i.flags)o=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(a=a.memoizedProps)){var s=i.type;kp(i.pendingProps.value,a.value)||(null!==e?e.push(s):e=[s])}}else if(i===zf.current){if(null===(a=i.alternate))throw Error("Should have a current fiber. This is a bug in React.");a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(fA):e=[fA])}i=i.return}null!==e&&_t(n,e,t,r),n.flags|=262144}function er(e){for(e=e.firstContext;null!==e;){if(!kp(e.context.U,e.memoizedValue))return!0;e=e.next}return!1}function nr(e){qm=e,Gm=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function tr(e){return ir(qm,e)}function rr(e,n){return null===qm&&nr(e),ir(e,n)}function ir(e,n){var t=n.U;if(n={context:n,memoizedValue:t,next:null},null===Gm){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Gm=n,e.dependencies={lanes:0,firstContext:n,Ee:null},e.flags|=524288}else Gm=Gm.next=n;return t}function or(){return{controller:new Ym,data:/* @__PURE__ */new Map,refCount:0}}function ar(e){e.controller.signal.aborted,e.refCount++}function sr(e){e.refCount--,e.refCount,0===e.refCount&&Jm(Km,function(){e.controller.abort()})}function lr(e,n,t){127&e?0>db&&(db=Qm(),hb=Zm(n),mb=n,null!=t&&(bb=g(t)),(Ew&(mw|bw))!==pw&&(cb=!0,pb=_m),e=Ru(),n=Ou(),e!==wb||n!==yb?wb=-1.1:null!==n&&(pb=_m),vb=e,yb=n):4194048&e&&0>xb&&(xb=Qm(),Sb=Zm(n),Cb=n,null!=t&&(Tb=g(t)),0>Ab)&&(e=Ru(),n=Ou(),e===Ob&&n===Mb||(Ob=-1.1),Ib=e,Mb=n)}function ur(){var e=ob;return ob=0,e}function cr(e){var n=ob;return ob=e,n}function fr(e){var n=ob;return ob+=e,n}function dr(){lb=sb=-1.1}function hr(){var e=sb;return sb=-1.1,e}function pr(e){0<=e&&(sb=e)}function mr(){var e=ab;return ab=-0,e}function br(e){0<=e&&(ab=e)}function vr(){var e=ub;return ub=null,e}function yr(){var e=cb;return cb=!1,e}function wr(e){ib=Qm(),0>e.actualStartTime&&(e.actualStartTime=ib)}function gr(e){if(0<=ib){var n=Qm()-ib;e.actualDuration+=n,e.selfBaseDuration=n,ib=-1}}function kr(e){if(0<=ib){var n=Qm()-ib;e.actualDuration+=n,ib=-1}}function Ar(){if(0<=ib){var e=Qm(),n=e-ib;ib=-1,ob+=n,ab+=n,lb=e}}function xr(e){null===ub&&(ub=[]),ub.push(e),null===rb&&(rb=[]),rb.push(e)}function Er(){ib=Qm(),0>sb&&(sb=ib)}function Sr(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function Cr(){if(0===--Pb&&(-1<xb||(Ab=-1.1),null!==Ub)){null!==Hb&&(Hb.status="fulfilled");var e=Ub;Ub=null,jb=0,Hb=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Tr(){var e=zb.current;return null!==e?e:Sw.pooledCache}function Ir(e,n){x(zb,null===n?zb.current:n.pool,e)}function Mr(){var e=Tr();return null===e?null:{parent:Xm.U,pool:e}}function Or(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Rr(e,n,t){null!==Bf.actQueue&&(Bf.didUsePromise=!0);var r=e.thenables;if(void 0===(t=r[t])?r.push(n):t!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0),n.then(bn,bn),n=t),void 0===n.J){e=performance.now();var i={name:"string"==typeof(r=n.displayName)?r:"Promise",start:e,end:e,value:n};n.J=[{awaited:i}],"fulfilled"!==n.status&&"rejected"!==n.status&&(e=function(){i.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw Fr(e=n.reason),e;default:if("string"==typeof n.status)n.then(bn,bn);else{if(null!==(e=Sw)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=n).status="pending",e.then(function(e){if("pending"===n.status){var t=n;t.status="fulfilled",t.value=e}},function(e){if("pending"===n.status){var t=n;t.status="rejected",t.reason=e}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw Fr(e=n.reason),e}throw Av=n,xv=!0,yv}}function Nr(e){try{return vv(e)}catch(n){if(null!==n&&"object"==typeof n&&"function"==typeof n.then)throw Av=n,xv=!0,yv;throw n}}function Br(){if(null===Av)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Av;return Av=null,xv=!1,e}function Fr(e){if(e===yv||e===gv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Lr(e){var n=Cv;return null!=e&&(Cv=null===n?e:n.concat(e)),n}function Dr(){var e=Cv;if(null!=e)for(var n=e.length-1;0<=n;n--)if(null!=e[n].name){var t=e[n].debugTask;if(null!=t)return t}return null}function Ur(e,n,t){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var o=r[i];if("children"!==o&&"key"!==o){null===n&&((n=Ct(e,t.mode,0)).J=Cv,n.return=t),H(n,function(e){},o);break}}}function Pr(e){var n=Sv;return Sv+=1,null===Ev&&(Ev={didWarnAboutUncachedPromise:!1,thenables:[]}),Rr(Ev,e,n)}function jr(e,n){n=n.props.ref,e.ref=void 0!==n?n:null}function Hr(e,n){if(n.$$typeof===mf)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function Vr(e,n){var t=Dr();null!==t?t.run(Hr.bind(null,e,n)):Hr(e,n)}function zr(e,n){var t=g(e)||"Component";Iv[t]||(Iv[t]=!0,n=n.displayName||n.name||"Component",e.tag)}function Wr(e,n){var t=Dr();null!==t?t.run(zr.bind(null,e,n)):zr(e,n)}function qr(e,n){var t=g(e)||"Component";Mv[t]||(Mv[t]=!0,n=String(n),e.tag)}function Gr(e,n){var t=Dr();null!==t?t.run(qr.bind(null,e,n)):qr(e,n)}function Yr(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e){for(var n=/* @__PURE__ */new Map;null!==e;)null!==e.key?n.set(e.key,e):n.set(e.index,e),e=e.sibling;return n}function i(e,n){return(e=xt(e,n)).index=0,e.sibling=null,e}function o(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=67108866,t):r:(n.flags|=67108866,t):(n.flags|=1048576,t)}function a(n){return e&&null===n.alternate&&(n.flags|=67108866),n}function s(e,n,t,r){return null===n||6!==n.tag?((n=It(t,e.mode,r)).return=e,n.ke=e,n._=e._,n.J=Cv,n):((n=i(n,t)).return=e,n.J=Cv,n)}function u(e,n,t,r){var o=t.type;return o===yf?(Ur(t,n=d(e,n,t.props.children,r,t.key),e),n):null!==n&&(n.elementType===o||yt(n,t)||"object"==typeof o&&null!==o&&o.$$typeof===Tf&&Nr(o)===n.type)?(jr(n=i(n,t.props),t),n.return=e,n.ke=t.W,n.J=Cv,n):(jr(n=Ct(t,e.mode,r),t),n.return=e,n.J=Cv,n)}function f(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Ot(t,e.mode,r)).return=e,n.J=Cv,n):((n=i(n,t.children||[])).return=e,n.J=Cv,n)}function d(e,n,t,r,o){return null===n||7!==n.tag?((n=Tt(t,e.mode,r,o)).return=e,n.ke=e,n._=e._,n.J=Cv,n):((n=i(n,t)).return=e,n.J=Cv,n)}function h(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return(n=It(""+n,e.mode,t)).return=e,n.ke=e,n._=e._,n.J=Cv,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case bf:return jr(t=Ct(n,e.mode,t),n),t.return=e,e=Lr(n.J),t.J=Cv,Cv=e,t;case vf:return(n=Ot(n,e.mode,t)).return=e,n.J=Cv,n;case Tf:var r=Lr(n.J);return e=h(e,n=Nr(n),t),Cv=r,e}if(Nf(n)||y(n))return(t=Tt(n,e.mode,t,null)).return=e,t.ke=e,t._=e._,e=Lr(n.J),t.J=Cv,Cv=e,t;if("function"==typeof n.then)return r=Lr(n.J),e=h(e,Pr(n),t),Cv=r,e;if(n.$$typeof===Af)return h(e,rr(e,n),t);Vr(e,n)}return"function"==typeof n&&Wr(e,n),"symbol"==typeof n&&Gr(e,n),null}function p(e,n,t,r){var i=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==i?null:s(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case bf:return t.key===i?(i=Lr(t.J),e=u(e,n,t,r),Cv=i,e):null;case vf:return t.key===i?f(e,n,t,r):null;case Tf:return i=Lr(t.J),e=p(e,n,t=Nr(t),r),Cv=i,e}if(Nf(t)||y(t))return null!==i?null:(i=Lr(t.J),e=d(e,n,t,r,null),Cv=i,e);if("function"==typeof t.then)return i=Lr(t.J),e=p(e,n,Pr(t),r),Cv=i,e;if(t.$$typeof===Af)return p(e,n,rr(e,t),r);Vr(e,t)}return"function"==typeof t&&Wr(e,t),"symbol"==typeof t&&Gr(e,t),null}function m(e,n,t,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(n,e=e.get(t)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case bf:return t=e.get(null===r.key?t:r.key)||null,e=Lr(r.J),n=u(n,t,r,i),Cv=e,n;case vf:return f(n,e=e.get(null===r.key?t:r.key)||null,r,i);case Tf:var o=Lr(r.J);return n=m(e,n,t,r=Nr(r),i),Cv=o,n}if(Nf(r)||y(r))return t=e.get(t)||null,e=Lr(r.J),n=d(n,t,r,i,null),Cv=e,n;if("function"==typeof r.then)return o=Lr(r.J),n=m(e,n,t,Pr(r),i),Cv=o,n;if(r.$$typeof===Af)return m(e,n,t,rr(n,r),i);Vr(n,r)}return"function"==typeof r&&Wr(n,r),"symbol"==typeof r&&Gr(n,r),null}function b(e,n,t,r){if("object"!=typeof t||null===t)return r;switch(t.$$typeof){case bf:case vf:l(e,n,t);var i=t.key;if("string"!=typeof i)break;if(null===r){(r=/* @__PURE__ */new Set).add(i);break}if(!r.has(i)){r.add(i);break}H(n,function(){});break;case Tf:b(e,n,t=Nr(t),r)}return r}function v(s,l,u,c){if("object"==typeof u&&null!==u&&u.type===yf&&null===u.key&&(Ur(u,null,s),u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case bf:var f=Lr(u.J);e:{for(var d=u.key;null!==l;){if(l.key===d){if((d=u.type)===yf){if(7===l.tag){t(s,l.sibling),(c=i(l,u.props.children)).return=s,c.ke=u.W,c.J=Cv,Ur(u,c,s),s=c;break e}}else if(l.elementType===d||yt(l,u)||"object"==typeof d&&null!==d&&d.$$typeof===Tf&&Nr(d)===l.type){t(s,l.sibling),jr(c=i(l,u.props),u),c.return=s,c.ke=u.W,c.J=Cv,s=c;break e}t(s,l);break}n(s,l),l=l.sibling}u.type===yf?((c=Tt(u.props.children,s.mode,c,u.key)).return=s,c.ke=s,c._=s._,c.J=Cv,Ur(u,c,s),s=c):(jr(c=Ct(u,s.mode,c),u),c.return=s,c.J=Cv,s=c)}return s=a(s),Cv=f,s;case vf:e:{for(u=(f=u).key;null!==l;){if(l.key===u){if(4===l.tag&&l.stateNode.containerInfo===f.containerInfo&&l.stateNode.implementation===f.implementation){t(s,l.sibling),(c=i(l,f.children||[])).return=s,s=c;break e}t(s,l);break}n(s,l),l=l.sibling}(c=Ot(f,s.mode,c)).return=s,s=c}return a(s);case Tf:return f=Lr(u.J),s=v(s,l,u=Nr(u),c),Cv=f,s}if(Nf(u))return f=Lr(u.J),s=function(i,a,s,l){for(var u=null,c=null,f=null,d=a,v=a=0,y=null;null!==d&&v<s.length;v++){d.index>v?(y=d,d=null):y=d.sibling;var w=p(i,d,s[v],l);if(null===w){null===d&&(d=y);break}u=b(i,w,s[v],u),e&&d&&null===w.alternate&&n(i,d),a=o(w,a,v),null===f?c=w:f.sibling=w,f=w,d=y}if(v===s.length)return t(i,d),Lm&&Nt(i,v),c;if(null===d){for(;v<s.length;v++)null!==(d=h(i,s[v],l))&&(u=b(i,d,s[v],u),a=o(d,a,v),null===f?c=d:f.sibling=d,f=d);return Lm&&Nt(i,v),c}for(d=r(d);v<s.length;v++)null!==(y=m(d,i,v,s[v],l))&&(u=b(i,y,s[v],u),e&&null!==y.alternate&&d.delete(null===y.key?v:y.key),a=o(y,a,v),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach(function(e){return n(i,e)}),Lm&&Nt(i,v),c}(s,l,u,c),Cv=f,s;if(y(u)){if(f=Lr(u.J),"function"!=typeof(d=y(u)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var w=d.call(u);return w===u?0===s.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(s.type)&&Object.prototype.toString.call(w):u.entries!==d||$b||($b=!0),s=function(i,a,s,l){if(null==s)throw Error("An iterable object provided no iterator.");for(var u=null,c=null,f=a,d=a=0,v=null,y=null,w=s.next();null!==f&&!w.done;d++,w=s.next()){f.index>d?(v=f,f=null):v=f.sibling;var g=p(i,f,w.value,l);if(null===g){null===f&&(f=v);break}y=b(i,g,w.value,y),e&&f&&null===g.alternate&&n(i,f),a=o(g,a,d),null===c?u=g:c.sibling=g,c=g,f=v}if(w.done)return t(i,f),Lm&&Nt(i,d),u;if(null===f){for(;!w.done;d++,w=s.next())null!==(f=h(i,w.value,l))&&(y=b(i,f,w.value,y),a=o(f,a,d),null===c?u=f:c.sibling=f,c=f);return Lm&&Nt(i,d),u}for(f=r(f);!w.done;d++,w=s.next())null!==(v=m(f,i,d,w.value,l))&&(y=b(i,v,w.value,y),e&&null!==v.alternate&&f.delete(null===v.key?d:v.key),a=o(v,a,d),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return n(i,e)}),Lm&&Nt(i,d),u}(s,l,w,c),Cv=f,s}if("function"==typeof u.then)return f=Lr(u.J),s=v(s,l,Pr(u),c),Cv=f,s;if(u.$$typeof===Af)return v(s,l,rr(s,u),c);Vr(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(f=""+u,null!==l&&6===l.tag?(t(s,l.sibling),(c=i(l,f)).return=s,s=c):(t(s,l),(c=It(f,s.mode,c)).return=s,c.ke=s,c._=s._,c.J=Cv,s=c),a(s)):("function"==typeof u&&Wr(s,u),"symbol"==typeof u&&Gr(s,u),t(s,l))}return function(e,n,t,r){var i=Cv;Cv=null;try{Sv=0;var o=v(e,n,t,r);return Ev=null,o}catch(u){if(u===yv||u===gv)throw u;var a=c(29,u,null,e.mode);a.lanes=r,a.return=e;var s=a.J=Cv;if(a.ke=e.ke,a._=e._,null!=s)for(var l=s.length-1;0<=l;l--)if("string"==typeof s[l].stack){a.ke=s[l],a._=s[l].debugTask;break}return a}finally{Cv=i}}}function Jr(e,n){var t=Nf(e);return e=!t&&"function"==typeof y(e),!t&&!e||(t=t?"array":"iterable",!1)}function Kr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xr(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qr(e){return{lane:e,tag:Bv,payload:null,callback:null,next:null}}function Zr(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,jv===r&&!Pv){var i=g(e);Pv=!0}return(Ew&mw)!==pw?(null===(i=r.pending)?n.next=n:(n.next=i.next,i.next=n),r.pending=n,n=mt(e),pt(e,null,t),n):(ft(e,r,n,t),mt(e))}function _r(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194048&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,te(e,t)}}function $r(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=n:o=o.next=n}else i=o=n;return t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function ei(){if(Hv&&null!==Hb)throw Hb}function ni(e,n,t,r){Hv=!1;var i=e.updateQueue;Uv=!1,jv=i.shared;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(a=0,c=u=l=null,s=o;;){var d=-536870913&s.lane,h=d!==s.lane;if(h?(Tw&d)===d:(r&d)===d){0!==d&&d===jb&&(Hv=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{d=e;var p=s,m=n,b=t;switch(p.tag){case Fv:if("function"==typeof(p=p.payload)){var v=p.call(b,f,m);if(d.mode&wm){J(!0);try{p.call(b,f,m)}finally{J(!1)}}f=v;break e}f=p;break e;case Dv:d.flags=-65537&d.flags|128;case Bv:if("function"==typeof(v=p.payload)){if(p=v.call(b,f,m),d.mode&wm){J(!0);try{v.call(b,f,m)}finally{J(!1)}}}else p=v;if(null==p)break e;f=pf({},f,p);break e;case Lv:Uv=!0}}null!==(d=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),Gw|=a,e.lanes=a,e.memoizedState=f}jv=null}function ti(e,n){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function ri(e,n){var t=e.shared.hiddenCallbacks;if(null!==t)for(e.shared.hiddenCallbacks=null,e=0;e<t.length;e++)ti(t[e],n)}function ii(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)ti(t[e],n)}function oi(e,n){var t=Ww;x(zv,t,e),x(Vv,n,e),Ww=t|n.baseLanes}function ai(e){x(zv,Ww,e),x(Vv,Vv.current,e)}function si(e){Ww=zv.current,A(Vv),A(zv)}function li(e){var n=e.alternate;x(Jv,Jv.current&Gv,e),x(Wv,e,e),null===qv&&(null===n||null!==Vv.current||null!==n.memoizedState)&&(qv=e)}function ui(e){x(Jv,Jv.current,e),x(Wv,e,e),null===qv&&(qv=e)}function ci(e){22===e.tag?(x(Jv,Jv.current,e),x(Wv,e,e),null===qv&&(qv=e)):fi(e)}function fi(e){x(Jv,Jv.current,e),x(Wv,Wv.current,e)}function di(e){A(Wv),qv===e&&(qv=null),A(Jv)}function hi(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||_u(t)||$u(t)))return n}else if(19!==n.tag||"forwards"!==n.memoizedProps.revealOrder&&"backwards"!==n.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==n.memoizedProps.revealOrder&&"together"!==n.memoizedProps.revealOrder){if(null!==n.child){n.child.return=n,n=n.child;continue}}else if(128&n.flags)return n;if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function pi(){var e=py;null===my?my=[e]:my.push(e)}function mi(){var e=py;if(null!==my&&(by++,my[by]!==e)){var n=g(ry);if(!_v.has(n)&&(_v.add(n),null!==my))for(var t=0;t<=by;t++){var r=my[t],i=t===by?e:r;for(r=t+1+". "+r;30>r.length;)r+=" ";r+=i+"\n"}}}function bi(e){null==e||Nf(e)}function vi(){var e=g(ry);ny.has(e)||ny.add(e)}function yi(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function wi(e,n){if(vy)return!1;if(null===n)return!1;e.length,n.length;for(var t=0;t<n.length&&t<e.length;t++)if(!kp(e[t],n[t]))return!1;return!0}function gi(e,n,t,r,i,o){ty=o,ry=n,my=null!==e?e.xe:null,by=-1,vy=null!==e&&e.type!==n.type,"[object AsyncFunction]"!==Object.prototype.toString.call(t)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(t)||(o=g(ry),ey.has(o)||ey.add(o)),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Bf.H=null!==e&&null!==e.memoizedState?ky:null!==my?gy:wy,ly=o=(n.mode&wm)!==bm;var a=nv(t,r,i);if(ly=!1,sy&&(a=Ai(n,t,r,i)),o){J(!0);try{a=Ai(n,t,r,i)}finally{J(!1)}}return ki(e,n),a}function ki(e,n){n.xe=my,null===n.dependencies?null!==fy&&(n.dependencies={lanes:0,firstContext:null,Ee:fy}):n.dependencies.Ee=fy,Bf.H=yy;var t=null!==iy&&null!==iy.next;if(ty=0,my=py=oy=iy=ry=null,by=-1,null!==e&&(e.flags,n.flags),ay=!1,cy=0,fy=null,t)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||Vy||null!==(e=e.dependencies)&&er(e)&&(Vy=!0),xv?(xv=!1,e=!0):e=!1,e&&(n=g(n)||"Unknown",$v.has(n)||ey.has(n)||$v.add(n))}function Ai(e,n,t,r){ry=e;var i=0;do{if(sy&&(fy=null),cy=0,sy=!1,i>=hy)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(i+=1,vy=!1,oy=iy=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}by=-1,Bf.H=Ay,o=nv(n,t,r)}while(sy);return o}function xi(){var e=Bf.H,n=e.useState()[0];return n="function"==typeof n.then?Mi(n):n,e=e.useState()[0],(null!==iy?iy.memoizedState:null)!==e&&(ry.flags|=1024),n}function Ei(){var e=0!==uy;return uy=0,e}function Si(e,n,t){n.updateQueue=e.updateQueue,n.flags=(n.mode&gm)!==bm?-402655237&n.flags:-2053&n.flags,e.lanes&=~t}function Ci(e){if(ay){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}ay=!1}ty=0,my=oy=iy=ry=null,by=-1,py=null,sy=!1,cy=uy=0,fy=null}function Ti(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oy?ry.memoizedState=oy=e:oy=oy.next=e,oy}function Ii(){if(null===iy){var e=ry.alternate;e=null!==e?e.memoizedState:null}else e=iy.next;var n=null===oy?ry.memoizedState:oy.next;if(null!==n)oy=n,iy=e;else{if(null===e){if(null===ry.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(iy=e).memoizedState,baseState:iy.baseState,baseQueue:iy.baseQueue,queue:iy.queue,next:null},null===oy?ry.memoizedState=oy=e:oy=oy.next=e}return oy}function Mi(e){var n=cy;return cy+=1,null===fy&&(fy={didWarnAboutUncachedPromise:!1,thenables:[]}),e=Rr(fy,e,n),n=ry,null===(null===oy?n.memoizedState:oy.next)&&(n=n.alternate,Bf.H=null!==n&&null!==n.memoizedState?ky:wy),e}function Oi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Mi(e);if(e.$$typeof===Af)return tr(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ri(e){var n=null,t=ry.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=ry.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(n={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==n&&(n={data:[],index:0}),null===t&&(t={lastEffect:null,events:null,stores:null,memoCache:null},ry.updateQueue=t),t.memoCache=n,void 0===(t=n.data[n.index])||vy)for(t=n.data[n.index]=Array(e),r=0;r<e;r++)t[r]=Mf;else t.length;return n.index++,t}function Ni(e,n){return"function"==typeof n?n(e):n}function Bi(e,n,t){var r=Ti();if(void 0!==t){var i=t(n);if(ly){J(!0);try{t(n)}finally{J(!1)}}}else i=n;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Vo.bind(null,ry,e),[r.memoizedState,e]}function Fi(e){return Li(Ii(),iy,e)}function Li(e,n,t){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=t;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}n.baseQueue,n.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var s=a=null,l=null,u=n=i.next,c=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(Tw&f)===f:(ty&f)===f){var d=u.revertLane;if(0===d)null!==l&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===jb&&(c=!0);else{if((ty&d)===d){u=u.next,d===jb&&(c=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===l?(s=l=f,a=o):l=l.next=f,ry.lanes|=d,Gw|=d}f=u.action,ly&&t(o,f),o=u.hasEagerState?u.eagerState:t(o,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===l?(s=l=d,a=o):l=l.next=d,ry.lanes|=f,Gw|=f;u=u.next}while(null!==u&&u!==n);if(null===l?a=o:l.next=s,!kp(o,e.memoizedState)&&(Vy=!0,c&&null!==(t=Hb)))throw t;e.memoizedState=o,e.baseState=a,e.baseQueue=l,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Di(e){var n=Ii(),t=n.queue;if(null===t)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,o=n.memoizedState;if(null!==i){t.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);kp(o,n.memoizedState)||(Vy=!0),n.memoizedState=o,null===n.baseQueue&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function Ui(e,n,t){var r=ry,i=Ti();if(Lm){if(void 0===t)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=t();Ov||o===t()||(Ov=!0)}else{if(o=n(),Ov||(t=n(),kp(o,t)||(Ov=!0)),null===Sw)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");127&Tw||ji(r,n,o)}return i.memoizedState=o,t={value:o,getSnapshot:n},i.queue=t,ho(Vi.bind(null,r,t,e),[e]),r.flags|=2048,lo(Kv|Zv,{destroy:void 0},Hi.bind(null,r,t,o,n),null),o}function Pi(e,n,t){var r=ry,i=Ii(),o=Lm;if(o){if(void 0===t)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");t=t()}else if(t=n(),!Ov){var a=n();kp(t,a)||(Ov=!0)}(a=!kp((iy||i).memoizedState,t))&&(i.memoizedState=t,Vy=!0),i=i.queue;var s=Vi.bind(null,r,i,e);if(fo(2048,Zv,s,[e]),i.getSnapshot!==n||a||null!==oy&&oy.memoizedState.tag&Kv){if(r.flags|=2048,lo(Kv|Zv,{destroy:void 0},Hi.bind(null,r,i,t,n),null),null===Sw)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||127&ty||ji(r,n,t)}return t}function ji(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=ry.updateQueue)?(n={lastEffect:null,events:null,stores:null,memoCache:null},ry.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function Hi(e,n,t,r){n.value=t,n.getSnapshot=r,zi(n)&&Wi(e)}function Vi(e,n,t){return t(function(){zi(n)&&(lr(2,"updateSyncExternalStore()",e),Wi(e))})}function zi(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!kp(e,t)}catch(r){return!0}}function Wi(e){var n=ht(e,2);null!==n&&Ks(n,e,2)}function qi(e){var n=Ti();if("function"==typeof e){var t=e;if(e=t(),ly){J(!0);try{t()}finally{J(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:e},n}function Gi(e){var n=(e=qi(e)).queue,t=zo.bind(null,ry,n);return n.dispatch=t,[e.memoizedState,t]}function Yi(e){var n=Ti();n.memoizedState=n.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=t,n=qo.bind(null,ry,!0,t),t.dispatch=n,[e,n]}function Ji(e,n){return Ki(Ii(),0,e,n)}function Ki(e,n,t,r){return e.baseState=t,Li(e,iy,"function"==typeof r?r:Ni)}function Xi(e,n){var t=Ii();return null!==iy?Ki(t,0,e,n):(t.baseState=e,[e,t.queue.dispatch])}function Qi(e,n,t,r,i){if(Go(e))throw Error("Cannot update form state while rendering.");if(null!==(e=n.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==Bf.T?t(!0):o.isTransition=!1,r(o),null===(t=n.pending)?(o.next=n.pending=o,Zi(n,o)):(o.next=t.next,n.pending=t.next=o)}}function Zi(e,n){var t=n.action,r=n.payload,i=e.state;if(n.isTransition){var o=Bf.T,a={};a.re=/* @__PURE__ */new Set,Bf.T=a;try{var s=t(i,r),l=Bf.S;null!==l&&l(a,s),_i(e,n,s)}catch(u){eo(e,n,u)}finally{null!==o&&null!==a.types&&(null!==o.types&&(o.types,a.types),o.types=a.types),Bf.T=o,null===o&&a.re&&(e=a.re.size,a.re.clear())}}else try{_i(e,n,a=t(i,r))}catch(c){eo(e,n,c)}}function _i(e,n,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?(Bf.asyncTransitions++,t.then(Mo,Mo),t.then(function(t){$i(e,n,t)},function(t){return eo(e,n,t)}),n.isTransition):$i(e,n,t)}function $i(e,n,t){n.status="fulfilled",n.value=t,no(n),e.state=t,null!==(n=e.pending)&&((t=n.next)===n?e.pending=null:(t=t.next,n.next=t,Zi(e,t)))}function eo(e,n,t){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{n.status="rejected",n.reason=t,no(n),n=n.next}while(n!==r)}e.action=null}function no(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function to(e,n){return n}function ro(e,n){if(Lm){var t=Sw.formState;if(null!==t){e:{var r=ry;if(Lm){if(Fm){n:{for(var i=Fm,o=jm;8!==i.nodeType;){if(!o){i=null;break n}if(null===(i=ec(i.nextSibling))){i=null;break n}}i=(o=i.data)===gk||o===kk?i:null}if(i){Fm=ec(i.nextSibling),r=i.data===gk;break e}}Ht(r)}r=!1}r&&(n=t[0])}}return(t=Ti()).memoizedState=t.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:n},t.queue=r,t=zo.bind(null,ry,r),r.dispatch=t,r=qi(!1),o=qo.bind(null,ry,!1,r.queue),i={state:n,dispatch:null,action:e,pending:null},(r=Ti()).queue=i,t=Qi.bind(null,ry,i,o,t),i.dispatch=t,r.memoizedState=e,[n,t,!1]}function io(e){return oo(Ii(),iy,e)}function oo(e,n,t){if(n=Li(e,n,to)[0],e=Fi(Ni)[0],"object"==typeof n&&null!==n&&"function"==typeof n.then)try{var r=Mi(n)}catch(a){if(a===yv)throw gv;throw a}else r=n;var i=(n=Ii()).queue,o=i.dispatch;return t!==n.memoizedState&&(ry.flags|=2048,lo(Kv|Zv,{destroy:void 0},ao.bind(null,i,t),null)),[r,o,e]}function ao(e,n){e.action=n}function so(e){var n=Ii(),t=iy;if(null!==t)return oo(n,t,e);Ii(),n=n.memoizedState;var r=(t=Ii()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function lo(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=ry.updateQueue)&&(n={lastEffect:null,events:null,stores:null,memoCache:null},ry.updateQueue=n),null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function uo(e){return e={current:e},Ti().memoizedState=e}function co(e,n,t,r){var i=Ti();ry.flags|=e,i.memoizedState=lo(Kv|n,{destroy:void 0},t,void 0===r?null:r)}function fo(e,n,t,r){var i=Ii();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==iy&&null!==r&&wi(r,iy.memoizedState.deps)?i.memoizedState=lo(n,o,t,r):(ry.flags|=e,i.memoizedState=lo(Kv|n,o,t,r))}function ho(e,n){(ry.mode&gm)!==bm?co(276826112,Zv,e,n):co(8390656,Zv,e,n)}function po(e){var n=Ti(),t={impl:e};return n.memoizedState=t,function(){if((Ew&mw)!==pw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function mo(e){var n=Ii().memoizedState;return function(e){ry.flags|=4;var n=ry.updateQueue;if(null===n)n={lastEffect:null,events:null,stores:null,memoCache:null},ry.updateQueue=n,n.events=[e];else{var t=n.events;null===t?n.events=[e]:t.push(e)}}({ref:n,nextImpl:e}),function(){if((Ew&mw)!==pw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function bo(e,n){var t=4194308;return(ry.mode&gm)!==bm&&(t|=134217728),co(t,Qv,e,n)}function vo(e,n){if("function"==typeof n){e=e();var t=n(e);return function(){"function"==typeof t?t():n(null)}}if(null!=n)return n.hasOwnProperty("current"),e=e(),n.current=e,function(){n.current=null}}function yo(e,n,t){t=null!=t?t.concat([e]):null;var r=4194308;(ry.mode&gm)!==bm&&(r|=134217728),co(r,Qv,vo.bind(null,n,e),t)}function wo(e,n,t){t=null!=t?t.concat([e]):null,fo(4,Qv,vo.bind(null,n,e),t)}function go(e,n){return Ti().memoizedState=[e,void 0===n?null:n],e}function ko(e,n){var t=Ii();n=void 0===n?null:n;var r=t.memoizedState;return null!==n&&wi(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Ao(e,n){var t=Ti();n=void 0===n?null:n;var r=e();if(ly){J(!0);try{e()}finally{J(!1)}}return t.memoizedState=[r,n],r}function xo(e,n){var t=Ii();n=void 0===n?null:n;var r=t.memoizedState;if(null!==n&&wi(n,r[1]))return r[0];if(r=e(),ly){J(!0);try{e()}finally{J(!1)}}return t.memoizedState=[r,n],r}function Eo(e,n){return To(Ti(),e,n)}function So(e,n){return Io(Ii(),iy.memoizedState,e,n)}function Co(e,n){var t=Ii();return null===iy?To(t,e,n):Io(t,iy.memoizedState,e,n)}function To(e,n,t){return void 0===t||1073741824&ty&&!(261930&Tw)?e.memoizedState=n:(e.memoizedState=t,e=Js(),ry.lanes|=e,Gw|=e,t)}function Io(e,n,t,r){return kp(t,n)?t:null!==Vv.current?(e=To(e,t,r),kp(e,n)||(Vy=!0),e):42&ty&&(!(1073741824&ty)||261930&Tw)?(e=Js(),ry.lanes|=e,Gw|=e,n):(Vy=!0,e.memoizedState=t)}function Mo(){Bf.asyncTransitions--}function Oo(e,n,t,r,i){var o=Ff.p;Ff.p=0!==o&&o<kd?o:kd;var a,s,l,u=Bf.T,c={};c.re=/* @__PURE__ */new Set,Bf.T=c,qo(e,!1,n,t);try{var f=i(),d=Bf.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){Bf.asyncTransitions++,f.then(Mo,Mo);var h=(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l);Wo(e,n,h,Ys(e))}else Wo(e,n,r,Ys(e))}catch(p){Wo(e,n,{then:function(){},status:"rejected",reason:p},Ys(e))}finally{Ff.p=o,null!==u&&null!==c.types&&(null!==u.types&&(u.types,c.types),u.types=c.types),Bf.T=u,null===u&&c.re&&(e=c.re.size,c.re.clear())}}function Ro(e,n,t,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var i=No(e).queue;!function(e){if(0>db){db=Qm(),hb=null!=e._?e._:null,(Ew&(mw|bw))!==pw&&(pb=_m);var n=Ru(),t=Ou();n!==wb||t!==yb?wb=-1.1:null!==t&&(pb=_m),vb=n,yb=t}0>xb&&(xb=Qm(),Sb=null!=e._?e._:null,0>Ab)&&(e=Ru(),n=Ou(),e===Ob&&n===Mb||(Ob=-1.1),Ib=e,Mb=n)}(e),Oo(e,i,n,cA,null===t?s:function(){return Bo(e),t(r)})}function No(e){var n=e.memoizedState;if(null!==n)return n;var t={};return(n={memoizedState:cA,baseState:cA,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:cA},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:t},next:null},e.memoizedState=n,null!==(e=e.alternate)&&(e.memoizedState=n),n}function Bo(e){Bf.T;var n=No(e);null===n.next&&(n=e.alternate.memoizedState),Wo(e,n.next.queue,{},Ys(e))}function Fo(){var e=qi(!1);return e=Oo.bind(null,ry,e.queue,!0,!1),Ti().memoizedState=e,[!1,e]}function Lo(){var e=Fi(Ni)[0],n=Ii().memoizedState;return["boolean"==typeof e?e:Mi(e),n]}function Do(){var e=Di(Ni)[0],n=Ii().memoizedState;return["boolean"==typeof e?e:Mi(e),n]}function Uo(){return tr(fA)}function Po(){var e=Ti(),n=Sw.identifierPrefix;if(Lm){var t=Nm;n="_"+n+"R_"+(t=(Rm&~(1<<32-pd(Rm)-1)).toString(32)+t),0<(t=uy++)&&(n+="H"+t.toString(32)),n+="_"}else n="_"+n+"r_"+(t=dy++).toString(32)+"_";return e.memoizedState=n}function jo(){return Ti().memoizedState=Ho.bind(null,ry)}function Ho(e,n){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var r=Ys(t),i=Qr(r),o=Zr(t,i,r);return null!==o&&(lr(r,"refresh()",e),Ks(o,t,r),_r(o,t,r)),e=or(),void(i.payload={cache:e})}t=t.return}}function Vo(e,n,t){var r=arguments;r[3];var i={lane:r=Ys(e),revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};Go(e)?Yo(n,i):null!==(i=dt(e,n,i,r))&&(lr(r,"dispatch()",e),Ks(i,e,r),Jo(i,n,r))}function zo(e,n,t){var r=arguments;r[3],Wo(e,n,t,r=Ys(e))&&lr(r,"setState()",e)}function Wo(e,n,t,r){var i={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Go(e))Yo(n,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=n.lastRenderedReducer)){var a=Bf.H;Bf.H=Ey;try{var s=n.lastRenderedState,l=o(s,t);if(i.hasEagerState=!0,i.eagerState=l,kp(l,s))return ft(e,n,i,0),null===Sw&&ct(),!1}catch(u){}finally{Bf.H=a}}if(null!==(t=dt(e,n,i,r)))return Ks(t,e,r),Jo(t,n,r),!0}return!1}function qo(e,n,t,r){if(Bf.T,r={lane:2,revertLane:Jl(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Go(e)){if(n)throw Error("Cannot update optimistic state while rendering.")}else null!==(n=dt(e,t,r,2))&&(lr(2,"setOptimistic()",e),Ks(n,e,2))}function Go(e){var n=e.alternate;return e===ry||null!==n&&n===ry}function Yo(e,n){sy=ay=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Jo(e,n,t){if(4194048&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,te(e,t)}}function Ko(e){if(null!==e&&"function"!=typeof e){var n=String(e);Dy.has(n)||Dy.add(n)}}function Xo(e,n,t,r){var i=e.memoizedState,o=t(r,i);if(e.mode&wm){J(!0);try{o=t(r,i)}finally{J(!1)}}void 0===o&&(n=w(n)||"Component",Ny.has(n)||Ny.add(n)),i=null==o?i:pf({},i,o),e.memoizedState=i,0===e.lanes&&(e.updateQueue.baseState=i)}function Qo(e,n,t,r,i,o,a){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){if(t=s.shouldComponentUpdate(r,o,a),e.mode&wm){J(!0);try{t=s.shouldComponentUpdate(r,o,a)}finally{J(!1)}}return t}return!(n.prototype&&n.prototype.isPureReactComponent&&Vn(t,r)&&Vn(i,o))}function Zo(e,n,t,r){var i=n.state;"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==i&&(e=g(e)||"Component",Ty.has(e)||Ty.add(e),Uy.enqueueReplaceState(n,n.state,null))}function _o(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var i in t===n&&(t=pf({},t)),e)void 0===t[i]&&(t[i]=e[i]);return t}function $o(e){Wp(e)}function ea(e){var n=Py?"The above error occurred in the <"+Py+"> component.":"The above error occurred in one of your React components.",t="React will try to recreate this component tree from scratch using the error boundary you provided, "+(jy||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,n,t].slice(0))[0]?e.splice(0,1,dA+" "+e[0],hA,mA+r+mA,pA):e.splice(0,0,dA,hA,mA+r+mA,pA),e.unshift(console),(r=bA.apply(console.error,e))()}}function na(e){Wp(e)}function ta(e,n){try{Py=n.source?g(n.source):null,jy=null;var t=n.value;null!==Bf.actQueue?Bf.thrownErrors.push(t):(0,e.onUncaughtError)(t,{componentStack:n.stack})}catch(r){setTimeout(function(){throw r})}}function ra(e,n,t){try{Py=t.source?g(t.source):null,jy=g(n),(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ia(e,n,t){return(t=Qr(t)).tag=Dv,t.payload={element:null},t.callback=function(){H(n.source,ta,e,n)},t}function oa(e){return(e=Qr(e)).tag=Dv,e}function aa(e,n,t,r){var i=t.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){wt(t),H(r.source,ra,n,t,r)}}var a=t.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){wt(t),H(r.source,ra,n,t,r),"function"!=typeof i&&(null===ag?ag=/* @__PURE__ */new Set([this]):ag.add(this)),uv(this,r),"function"==typeof i||t.lanes})}function sa(e,n,t,r){n.child=null===e?Nv(n,null,t,r):Rv(n,e.child,t,r)}function la(e,n,t,r,i){t=t.render;var o=n.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return nr(n),r=gi(e,n,t,a,o,i),s=Ei(),null===e||Vy?(Lm&&s&&Ft(n),n.flags|=1,sa(e,n,r,i),n.child):(Si(e,n,i),Ra(e,n,i))}function ua(e,n,t,r,i){if(null===e){var o=t.type;return"function"!=typeof o||At(o)||void 0!==o.defaultProps||null!==t.compare?((e=St(t.type,null,r,n,n.mode,i)).ref=n.ref,e.return=n,n.child=e):(t=bt(o),n.tag=15,n.type=t,ka(n,o),ca(e,n,t,r,i))}if(o=e.child,!Na(e,i)){var a=o.memoizedProps;if((t=null!==(t=t.compare)?t:Vn)(a,r)&&e.ref===n.ref)return Ra(e,n,i)}return n.flags|=1,(e=xt(o,r)).ref=n.ref,e.return=n,n.child=e}function ca(e,n,t,r,i){if(null!==e){var o=e.memoizedProps;if(Vn(o,r)&&e.ref===n.ref&&n.type===e.type){if(Vy=!1,n.pendingProps=r=o,!Na(e,i))return n.lanes=e.lanes,Ra(e,n,i);131072&e.flags&&(Vy=!0)}}return va(e,n,t,r,i)}function fa(e,n,t,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===n.stateNode&&(n.stateNode={le:lm,ce:null,fe:null,de:null}),"hidden"===r.mode){if(128&n.flags){if(o=null!==o?o.baseLanes|t:t,null!==e){for(r=n.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,n.child=null;return ha(e,n,o,t,r)}if(!(536870912&t))return r=n.lanes=536870912,ha(e,n,null!==o?o.baseLanes|t:t,t,r);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ir(n,null!==o?o.cachePool:null),null!==o?oi(n,o):ai(n),ci(n)}else null!==o?(Ir(n,o.cachePool),oi(n,o),fi(n),n.memoizedState=null):(null!==e&&Ir(n,null),ai(n),fi(n));return sa(e,n,i,t),n.child}function da(e,n){return null!==e&&22===e.tag||null!==n.stateNode||(n.stateNode={le:lm,ce:null,fe:null,de:null}),n.sibling}function ha(e,n,t,r,i){var o=Tr();return o=null===o?null:{parent:Xm.U,pool:o},n.memoizedState={baseLanes:t,cachePool:o},null!==e&&Ir(n,null),ai(n),ci(n),null!==e&&$t(e,n,r,!0),n.childLanes=i,null}function pa(e,n){return n.hidden,(n=Ca({mode:n.mode,children:n.children},e.mode)).ref=e.ref,e.child=n,n.return=e,n}function ma(e,n,t){return Rv(n,e.child,null,t),(e=pa(n,n.pendingProps)).flags|=2,di(n),n.memoizedState=null,e}function ba(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===t||(n.flags|=4194816)}}function va(e,n,t,r,i){if(t.prototype&&"function"==typeof t.prototype.render){var o=w(t)||"Unknown";zy[o]||(zy[o]=!0)}return n.mode&wm&&Wb.recordLegacyContextWarning(n,null),null===e&&(ka(n,n.type),t.contextTypes&&(o=w(t)||"Unknown",qy[o]||(qy[o]=!0))),nr(n),t=gi(e,n,t,r,void 0,i),r=Ei(),null===e||Vy?(Lm&&r&&Ft(n),n.flags|=1,sa(e,n,t,i),n.child):(Si(e,n,i),Ra(e,n,i))}function ya(e,n,t,r,i,o){return nr(n),by=-1,vy=null!==e&&e.type!==n.type,n.updateQueue=null,t=Ai(n,r,t,i),ki(e,n),r=Ei(),null===e||Vy?(Lm&&r&&Ft(n),n.flags|=1,sa(e,n,t,o),n.child):(Si(e,n,o),Ra(e,n,o))}function wa(e,n,t,r,i){switch(a(n)){case!1:var o=n.stateNode,s=new n.type(n.memoizedProps,o.context).state;o.updater.enqueueSetState(o,s,null);break;case!0:n.flags|=128,n.flags|=65536,o=Error("Simulated error coming from DevTools");var l=i&-i;if(n.lanes|=l,null===(s=Sw))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");aa(l=oa(l),s,n,Rt(o,n)),$r(n,l)}if(nr(n),null===n.stateNode){if(s=hm,o=t.contextType,"contextType"in t&&null!==o&&(void 0===o||o.$$typeof!==Af)&&!Ly.has(t)&&(Ly.add(t),l=void 0===o?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===kf?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}."),"object"==typeof o&&null!==o&&(s=tr(o)),o=new t(r,s),n.mode&wm){J(!0);try{o=new t(r,s)}finally{J(!1)}}if(s=n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=Uy,n.stateNode=o,o.ue=n,o.Se=Cy,"function"==typeof t.getDerivedStateFromProps&&null===s&&(s=w(t)||"Component",Iy.has(s)||Iy.add(s)),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate){var u=l=s=null;if("function"==typeof o.componentWillMount&&!0!==o.componentWillMount.Ce?s="componentWillMount":"function"==typeof o.UNSAFE_componentWillMount&&(s="UNSAFE_componentWillMount"),"function"==typeof o.componentWillReceiveProps&&!0!==o.componentWillReceiveProps.Ce?l="componentWillReceiveProps":"function"==typeof o.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof o.componentWillUpdate&&!0!==o.componentWillUpdate.Ce?u="componentWillUpdate":"function"==typeof o.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==s||null!==l||null!==u){o=w(t)||"Component";var c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Oy.has(o)||Oy.add(o)}}o=n.stateNode,s=w(t)||"Component",o.render||t.prototype&&t.prototype.render,!o.getInitialState||o.getInitialState.isReactClassApproved||o.state,o.getDefaultProps&&o.getDefaultProps.isReactClassApproved,o.contextType,t.childContextTypes&&!Fy.has(t)&&Fy.add(t),t.contextTypes&&!By.has(t)&&By.add(t),o.componentShouldUpdate,t.prototype&&t.prototype.isPureReactComponent&&o.shouldComponentUpdate,o.componentDidUnmount,o.componentDidReceiveProps,o.componentWillRecieveProps,o.UNSAFE_componentWillRecieveProps,l=o.props!==r,o.props,o.defaultProps,"function"!=typeof o.getSnapshotBeforeUpdate||"function"==typeof o.componentDidUpdate||My.has(t)||My.add(t),o.getDerivedStateFromProps,o.getDerivedStateFromError,t.getSnapshotBeforeUpdate,(l=o.state)&&("object"!=typeof l||Nf(l)),"function"==typeof o.getChildContext&&t.childContextTypes,(o=n.stateNode).props=r,o.state=n.memoizedState,o.refs={},Kr(n),s=t.contextType,o.context="object"==typeof s&&null!==s?tr(s):hm,o.state===r&&(s=w(t)||"Component",Ry.has(s)||Ry.add(s)),n.mode&wm&&Wb.recordLegacyContextWarning(n,o),Wb.recordUnsafeLifecycleWarnings(n,o),o.state=n.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(Xo(n,t,s,r),o.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(s=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),s!==o.state&&Uy.enqueueReplaceState(o,o.state,null),ni(n,r,o,i),ei(),o.state=n.memoizedState),"function"==typeof o.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==bm&&(n.flags|=134217728),o=!0}else if(null===e){o=n.stateNode;var f=n.memoizedProps;l=_o(t,f),o.props=l;var d=o.context;u=t.contextType,s=hm,"object"==typeof u&&null!==u&&(s=tr(u)),u="function"==typeof(c=t.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate,f=n.pendingProps!==f,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(f||d!==s)&&Zo(n,o,r,s),Uv=!1;var h=n.memoizedState;o.state=h,ni(n,r,o,i),ei(),d=n.memoizedState,f||h!==d||Uv?("function"==typeof c&&(Xo(n,t,c,r),d=n.memoizedState),(l=Uv||Qo(n,t,l,r,h,d,s))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==bm&&(n.flags|=134217728)):("function"==typeof o.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==bm&&(n.flags|=134217728),n.memoizedProps=r,n.memoizedState=d),o.props=r,o.state=d,o.context=s,o=l):("function"==typeof o.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==bm&&(n.flags|=134217728),o=!1)}else{o=n.stateNode,Xr(e,n),u=_o(t,s=n.memoizedProps),o.props=u,c=n.pendingProps,h=o.context,d=t.contextType,l=hm,"object"==typeof d&&null!==d&&(l=tr(d)),(d="function"==typeof(f=t.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==c||h!==l)&&Zo(n,o,r,l),Uv=!1,h=n.memoizedState,o.state=h,ni(n,r,o,i),ei();var p=n.memoizedState;s!==c||h!==p||Uv||null!==e&&null!==e.dependencies&&er(e.dependencies)?("function"==typeof f&&(Xo(n,t,f,r),p=n.memoizedState),(u=Uv||Qo(n,t,u,r,h,p,l)||null!==e&&null!==e.dependencies&&er(e.dependencies))?(d||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(n.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),o.props=r,o.state=p,o.context=l,o=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),o=!1)}if(l=o,ba(e,n),s=!!(128&n.flags),l||s){if(l=n.stateNode,V(n),s&&"function"!=typeof t.getDerivedStateFromError)t=null,ib=-1;else if(t=rv(l),n.mode&wm){J(!0);try{rv(l)}finally{J(!1)}}n.flags|=1,null!==e&&s?(n.child=Rv(n,e.child,null,i),n.child=Rv(n,null,t,i)):sa(e,n,t,i),n.memoizedState=l.state,e=n.child}else e=Ra(e,n,i);return i=n.stateNode,o&&i.props!==r&&(Yy=!0),e}function ga(e,n,t,r){return qt(),n.flags|=256,sa(e,n,t,r),n.child}function ka(e,n){n&&n.childContextTypes,"function"==typeof n.getDerivedStateFromProps&&(e=w(n)||"Unknown",Gy[e]||(Gy[e]=!0)),"object"==typeof n.contextType&&null!==n.contextType&&(n=w(n)||"Unknown",Wy[n]||(Wy[n]=!0))}function Aa(e){return{baseLanes:e,cachePool:Mr()}}function xa(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Kw),e}function Ea(e,n,t){var r,i=n.pendingProps;o(n)&&(n.flags|=128);var a=!1,s=!!(128&n.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(Jv.current&Yv)),r&&(a=!0,n.flags&=-129),r=!!(32&n.flags),n.flags&=-33,null===e){if(Lm){if(a?li(n):fi(n),(e=Fm)?null!==(t=null!==(t=Zu(e,jm))&&t.data!==ck?t:null)&&(r={dehydrated:t,treeContext:Dt(),retryLane:536870912,hydrationErrors:null},n.memoizedState=r,(r=Mt(t)).return=n,n.child=r,Bm=n,Fm=null):t=null,null===t)throw jt(n,e),Ht(n);return $u(t)?n.lanes=32:n.lanes=536870912,null}var l=i.children;if(i=i.fallback,a){fi(n);var u=n.mode;return l=Ca({mode:"hidden",children:l},u),i=Tt(i,u,t,null),l.return=n,i.return=n,l.sibling=i,n.child=l,(i=n.child).memoizedState=Aa(t),i.childLanes=xa(e,r,t),n.memoizedState=Xy,da(null,i)}return li(n),Sa(n,l)}var c=e.memoizedState;if(null!==c){var f=c.dehydrated;if(null!==f){if(s)256&n.flags?(li(n),n.flags&=-257,n=Ta(e,n,t)):null!==n.memoizedState?(fi(n),n.child=e.child,n.flags|=128,n=null):(fi(n),l=i.fallback,u=n.mode,i=Ca({mode:"visible",children:i.children},u),(l=Tt(l,u,t,null)).flags|=2,i.return=n,l.return=n,i.sibling=l,n.child=i,Rv(n,e.child,null,t),(i=n.child).memoizedState=Aa(t),i.childLanes=xa(e,r,t),n.memoizedState=Xy,n=da(null,i));else if(li(n),!!(536870912&t)&&sl(n),$u(f)){if(r=f.nextSibling&&f.nextSibling.dataset){l=r.dgst;var d=r.msg;u=r.stck;var h=r.cstck}r=l,i=u,u=f=h,(l=(l=a=d)?Error(l):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=i||"",l.digest=r,i={value:l,source:null,stack:r=void 0===u?null:u},"string"==typeof r&&xm.set(l,i),Yt(i),n=Ta(e,n,t)}else if(Vy||$t(e,n,t,!1),r=0!==(t&e.childLanes),Vy||r){if(null!==(r=Sw)&&0!==(i=re(r,t))&&i!==c.retryLane)throw c.retryLane=i,ht(e,i),Ks(r,e,i),Hy;_u(f)||ll(),n=Ta(e,n,t)}else _u(f)?(n.flags|=192,n.child=e.child,n=null):(e=c.treeContext,Fm=ec(f.nextSibling),Bm=n,Lm=!0,Pm=null,Dm=!1,Um=null,jm=!1,null!==e&&Ut(n,e),(n=Sa(n,i.children)).flags|=4096);return n}}return a?(fi(n),l=i.fallback,u=n.mode,f=(h=e.child).sibling,(i=xt(h,{mode:"hidden",children:i.children})).subtreeFlags=65011712&h.subtreeFlags,null!==f?l=xt(f,l):(l=Tt(l,u,t,null)).flags|=2,l.return=n,i.return=n,i.sibling=l,n.child=i,da(null,i),i=n.child,null===(l=e.child.memoizedState)?l=Aa(t):(null!==(u=l.cachePool)?(h=Xm.U,u=u.parent!==h?{parent:h,pool:h}:u):u=Mr(),l={baseLanes:l.baseLanes|t,cachePool:u}),i.memoizedState=l,i.childLanes=xa(e,r,t),n.memoizedState=Xy,da(e.child,i)):(null!==c&&(62914560&t)===t&&0!==(t&e.lanes)&&sl(n),li(n),e=(t=e.child).sibling,(t=xt(t,{mode:"visible",children:i.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function Sa(e,n){return(n=Ca({mode:"visible",children:n},e.mode)).return=e,e.child=n}function Ca(e,n){return(e=c(22,e,null,n)).lanes=0,e}function Ta(e,n,t){return Rv(n,e.child,null,t),(e=Sa(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Ia(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Zt(e.return,n,t)}function Ma(e,n,t,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i,treeForkCount:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=i,a.treeForkCount=o)}function Oa(e,n,t){var r=n.pendingProps,i=r.revealOrder,o=r.tail,a=r.children,s=Jv.current;(r=0!==(s&Yv))?(s=s&Gv|Yv,n.flags|=128):s&=Gv,x(Jv,s,n),s=null==i?"null":i,"forwards"===i||"unstable_legacy-backwards"===i||"together"===i||"independent"===i||Jy[s]||(Jy[s]=!0,null==i||"backwards"===i||"string"==typeof i&&i.toLowerCase()),Ky[s=null==o?"null":o]||(null==o?"forwards"!==i&&"backwards"!==i&&"unstable_legacy-backwards"!==i||(Ky[s]=!0):("visible"!==o&&"collapsed"!==o&&"hidden"!==o||"forwards"!==i&&"backwards"!==i&&"unstable_legacy-backwards"!==i)&&(Ky[s]=!0));e:if(("forwards"===i||"backwards"===i||"unstable_legacy-backwards"===i)&&null!=a&&!1!==a)if(Nf(a)){for(s=0;s<a.length;s++)if(!Jr(a[s]))break e}else if(s=y(a),"function"==typeof s&&(s=s.call(a)))for(var l=s.next();!l.done;l=s.next())if(!Jr(l.value))break e;if(sa(e,n,a,t),a=Lm?Tm:0,!r&&null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ia(e,t,n);else if(19===e.tag)Ia(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(t=n.child,i=null;null!==t;)null!==(e=t.alternate)&&null===hi(e)&&(i=t),t=t.sibling;null===(t=i)?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),Ma(n,!1,i,t,o,a);break;case"backwards":case"unstable_legacy-backwards":for(t=null,i=n.child,n.child=null;null!==i;){if(null!==(e=i.alternate)&&null===hi(e)){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}Ma(n,!0,t,null,o,a);break;case"together":Ma(n,!1,null,null,void 0,a);break;default:n.memoizedState=null}return n.child}function Ra(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ib=-1,Gw|=n.lanes,0===(t&n.childLanes)){if(null===e)return null;if($t(e,n,t,!1),0===(t&n.childLanes))return null}if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=xt(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=xt(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Na(e,n){return 0!==(e.lanes&n)||!(null===(e=e.dependencies)||!er(e))}function Ba(e,n,t){if(n.Ae&&null!==e){(t=St(n.type,n.key,n.pendingProps,n.ke||null,n.mode,n.lanes)).K=n.K,t._=n._;var r=n.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,t.index=n.index,t.sibling=n.sibling,t.return=n.return,t.ref=n.ref,t.J=n.J,n===r.child)r.child=t;else{var i=r.child;if(null===i)throw Error("Expected parent to have a child.");for(;i.sibling!==n;)if(null===(i=i.sibling))throw Error("Expected to find the previous sibling.");i.sibling=t}return null===(n=r.deletions)?(r.deletions=[e],r.flags|=16):n.push(e),t.flags|=2,t}if(null!==e)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)Vy=!0;else{if(!(Na(e,t)||128&n.flags))return Vy=!1,function(e,n,t){switch(n.tag){case 3:E(n,n.stateNode.containerInfo),Xt(n,Xm,e.memoizedState.cache),qt();break;case 27:case 5:I(n);break;case 4:E(n,n.stateNode.containerInfo);break;case 10:Xt(n,n.type,n.memoizedProps.value);break;case 12:0!==(t&n.childLanes)&&(n.flags|=4),n.flags|=2048;var r=n.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(null!==n.memoizedState)return n.flags|=128,ui(n),null;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(li(n),n.flags|=128,null):0!==(t&n.child.childLanes)?Ea(e,n,t):(li(n),null!==(e=Ra(e,n,t))?e.sibling:null);li(n);break;case 19:var i=!!(128&e.flags);if((r=0!==(t&n.childLanes))||($t(e,n,t,!1),r=0!==(t&n.childLanes)),i){if(r)return Oa(e,n,t);n.flags|=128}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),x(Jv,Jv.current,n),r)break;return null;case 22:return n.lanes=0,fa(e,n,t,n.pendingProps);case 24:Xt(n,Xm,e.memoizedState.cache)}return Ra(e,n,t)}(e,n,t);Vy=!!(131072&e.flags)}else Vy=!1,(r=Lm)&&(r=!!(1048576&n.flags)),r&&(r=n.index,Bt(n,Tm,r));switch(n.lanes=0,n.tag){case 16:e:{if(r=n.pendingProps,e=Nr(n.elementType),n.type=e,"function"!=typeof e){if(null!=e){if((i=e.$$typeof)===xf){n.tag=11,n.type=e=vt(e),n=la(null,n,e,r,t);break e}if(i===Cf){n.tag=14,n=ua(null,n,e,r,t);break e}}throw n="",null!==e&&"object"==typeof e&&e.$$typeof===Tf&&(n=" Did you wrap a component in React.lazy() more than once?"),t=w(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+n)}At(e)?(r=_o(e,r),n.tag=1,n.type=e=bt(e),n=wa(null,n,e,r,t)):(n.tag=0,ka(n,e),n.type=e=bt(e),n=va(null,n,e,r,t))}return n;case 0:return va(e,n,n.type,n.pendingProps,t);case 1:return wa(e,n,r=n.type,i=_o(r,n.pendingProps),t);case 3:e:{if(E(n,n.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=n.pendingProps;var o=n.memoizedState;i=o.element,Xr(e,n),ni(n,r,null,t);var a=n.memoizedState;if(r=a.cache,Xt(n,Xm,r),r!==o.cache&&_t(n,[Xm],t,!0),ei(),r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache},n.updateQueue.baseState=o,n.memoizedState=o,256&n.flags){n=ga(e,n,r,t);break e}if(r!==i){Yt(i=Rt(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n)),n=ga(e,n,r,t);break e}for(e=9===(e=n.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Fm=ec(e.firstChild),Bm=n,Lm=!0,Pm=null,Dm=!1,Um=null,jm=!0,t=Nv(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(qt(),r===i){n=Ra(e,n,t);break e}sa(e,n,r,t)}n=n.child}return n;case 26:return ba(e,n),null===e?(t=hc(n.type,null,n.pendingProps,null))?n.memoizedState=t:Lm||(t=n.type,e=n.pendingProps,(r=Cu(r=Vf.current).createElement(t))[Sd]=n,r[Cd]=e,mu(r,t,e),me(r),n.stateNode=r):n.memoizedState=hc(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return I(n),null===e&&Lm&&(r=Vf.current,i=T(),r=n.stateNode=lc(n.type,n.pendingProps,r,i,!1),Dm||null!==(i=Eu(r,n.type,n.pendingProps,i))&&(Pt(n,0).serverProps=i),Bm=n,jm=!0,i=Fm,ju(n.type)?(Uk=i,Fm=ec(r.firstChild)):Fm=i),sa(e,n,n.pendingProps.children,t),ba(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&Lm&&(o=T(),r=an(n.type,o.ancestorInfo),(a=!(i=Fm))||(null!==(a=function(e,n,t,r){for(;1===e.nodeType;){var i=t;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Nd])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;q(i.name);var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=ec(e.nextSibling)))break}return null}(i,n.type,n.pendingProps,jm))?(n.stateNode=a,Dm||null!==(o=Eu(a,n.type,n.pendingProps,o))&&(Pt(n,0).serverProps=o),Bm=n,Fm=ec(a.firstChild),jm=!1,o=!0):o=!1,a=!o),a&&(r&&jt(n,i),Ht(n))),I(n),i=n.type,o=n.pendingProps,a=null!==e?e.memoizedProps:null,r=o.children,Mu(i,o)?r=null:null!==a&&Mu(i,a)&&(n.flags|=32),null!==n.memoizedState&&(i=gi(e,n,xi,null,null,t),fA.U=i),ba(e,n),sa(e,n,r,t),n.child;case 6:return null===e&&Lm&&(t=n.pendingProps,t=null==(r=(e=T()).ancestorInfo.current)||sn(t,r.tag,e.ancestorInfo.implicitRootScope),(r=!(e=Fm))||(null!==(r=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=ec(e.nextSibling)))return null}return e}(e,n.pendingProps,jm))?(n.stateNode=r,Bm=n,Fm=null,r=!0):r=!1,r=!r),r&&(t&&jt(n,e),Ht(n))),null;case 13:return Ea(e,n,t);case 4:return E(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Rv(n,null,r,t):sa(e,n,r,t),n.child;case 11:return la(e,n,n.type,n.pendingProps,t);case 7:return sa(e,n,n.pendingProps,t),n.child;case 8:return sa(e,n,n.pendingProps.children,t),n.child;case 12:return n.flags|=4,n.flags|=2048,(r=n.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,sa(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.type,o=(i=n.pendingProps).value,"value"in i||Qy||(Qy=!0),Xt(n,r,o),sa(e,n,i.children,t),n.child;case 9:return i=n.type.V,r=n.pendingProps.children,nr(n),i=tr(i),r=nv(r,i,void 0),n.flags|=1,sa(e,n,r,t),n.child;case 14:return ua(e,n,n.type,n.pendingProps,t);case 15:return ca(e,n,n.type,n.pendingProps,t);case 19:return Oa(e,n,t);case 31:return function(e,n,t){var r=n.pendingProps,i=!!(128&n.flags);if(n.flags&=-129,null===e){if(Lm){if("hidden"===r.mode)return e=pa(n,r),n.lanes=536870912,da(null,e);if(ui(n),(e=Fm)?null!==(t=null!==(t=Zu(e,jm))&&t.data===ck?t:null)&&(r={dehydrated:t,treeContext:Dt(),retryLane:536870912,hydrationErrors:null},n.memoizedState=r,(r=Mt(t)).return=n,n.child=r,Bm=n,Fm=null):t=null,null===t)throw jt(n,e),Ht(n);return n.lanes=536870912,null}return pa(n,r)}var o=e.memoizedState;if(null!==o){var a=o.dehydrated;if(ui(n),i)if(256&n.flags)n.flags&=-257,n=ma(e,n,t);else{if(null===n.memoizedState)throw Error("Client rendering an Activity suspended it again. This is a bug in React.");n.child=e.child,n.flags|=128,n=null}else if(!!(536870912&t)&&sl(n),Vy||$t(e,n,t,!1),i=0!==(t&e.childLanes),Vy||i){if(null!==(r=Sw)&&0!==(a=re(r,t))&&a!==o.retryLane)throw o.retryLane=a,ht(e,a),Ks(r,e,a),Hy;ll(),n=ma(e,n,t)}else e=o.treeContext,Fm=ec(a.nextSibling),Bm=n,Lm=!0,Pm=null,Dm=!1,Um=null,jm=!1,null!==e&&Ut(n,e),(n=pa(n,r)).flags|=4096;return n}return o=e.child,r={mode:r.mode,children:r.children},536870912&t&&0!==(t&e.lanes)&&sl(n),(e=xt(o,r)).ref=n.ref,n.child=e,e.return=n,e}(e,n,t);case 22:return fa(e,n,t,n.pendingProps);case 24:return nr(n),r=tr(Xm),null===e?(null===(i=Tr())&&(i=Sw,o=or(),i.pooledCache=o,ar(o),null!==o&&(i.pooledCacheLanes|=t),i=o),n.memoizedState={parent:r,cache:i},Kr(n),Xt(n,Xm,i)):(0!==(e.lanes&t)&&(Xr(e,n),ni(n,null,null,t),ei()),i=e.memoizedState,o=n.memoizedState,i.parent!==r?(i={parent:r,cache:r},n.memoizedState=i,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=i),Xt(n,Xm,r)):(r=o.cache,Xt(n,Xm,r),r!==i.cache&&_t(n,[Xm],t,!0))),sa(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Fa(e){e.flags|=4}function La(e,n,t,r,i){if((n=(e.mode&km)!==bm)&&(n=!1),n){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!il())throw Av=kv,wv;e.flags|=8192}}else e.flags&=-16777217}function Da(e,n){if("stylesheet"!==n.type||(n.state.loading&zk)!==Pk)e.flags&=-16777217;else if(e.flags|=16777216,!Cc(n)){if(!il())throw Av=kv,wv;e.flags|=8192}}function Ua(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?_():536870912,e.lanes|=n,Xw|=n)}function Pa(e,n){if(!Lm)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ja(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)if((e.mode&ym)!==bm){for(var i=e.selfBaseDuration,o=e.child;null!==o;)t|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,i+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=i}else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else if((e.mode&ym)!==bm){i=e.actualDuration,o=e.selfBaseDuration;for(var a=e.child;null!==a;)t|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,i+=a.actualDuration,o+=a.treeBaseDuration,a=a.sibling;e.actualDuration=i,e.treeBaseDuration=o}else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Ha(e,n,t){var r=n.pendingProps;switch(Lt(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ja(n),null;case 3:return t=n.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Qt(Xm),S(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(Wt(n)?(Jt(),Fa(n)):null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,Gt())),ja(n),null;case 26:var i=n.type,o=n.memoizedState;return null===e?(Fa(n),null!==o?(ja(n),Da(n,o)):(ja(n),La(n,i,0,0,t))):o?o!==e.memoizedState?(Fa(n),ja(n),Da(n,o)):(ja(n),n.flags&=-16777217):((e=e.memoizedProps)!==r&&Fa(n),ja(n),La(n,i,0,0,t)),null;case 27:if(M(n),t=Vf.current,i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&Fa(n);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ja(n),null}e=T(),Wt(n)?Vt(n):(e=lc(i,r,t,e,!0),n.stateNode=e,Fa(n))}return ja(n),null;case 5:if(M(n),i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&Fa(n);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ja(n),null}var a=T();if(Wt(n))Vt(n);else{switch(o=Vf.current,an(i,a.ancestorInfo),a=a.context,o=Cu(o),a){case Sk:o=o.createElementNS(hh,i);break;case Ck:o=o.createElementNS(dh,i);break;default:switch(i){case"svg":o=o.createElementNS(hh,i);break;case"math":o=o.createElementNS(dh,i);break;case"script":(o=o.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?o.createElement(i,{is:r.is}):o.createElement(i),-1===i.indexOf("-")&&(i.toLowerCase(),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(o)||Qf.call(Mk,i)||(Mk[i]=!0))}}o[Sd]=n,o[Cd]=r;e:for(a=n.child;null!==a;){if(5===a.tag||6===a.tag)o.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;null===a.sibling;){if(null===a.return||a.return===n)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}n.stateNode=o;e:switch(mu(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Fa(n)}}return ja(n),La(n,n.type,null===e||e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&Fa(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Vf.current,t=T(),Wt(n)){if(e=n.stateNode,t=n.memoizedProps,i=!Dm,r=null,null!==(o=Bm))switch(o.tag){case 3:i&&null!==(i=tc(e,t,r))&&(Pt(n,0).serverProps=i);break;case 27:case 5:r=o.memoizedProps,i&&null!==(i=tc(e,t,r))&&(Pt(n,0).serverProps=i)}e[Sd]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||du(e.nodeValue,t)))||Ht(n,!0)}else null!=(i=t.ancestorInfo.current)&&sn(r,i.tag,t.ancestorInfo.implicitRootScope),(e=Cu(e).createTextNode(r))[Sd]=n,n.stateNode=e}return ja(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(r=Wt(n),null!==t){if(null===e){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Sd]=n,ja(n),(n.mode&ym)!==bm&&null!==t&&null!==(e=n.child)&&(n.treeBaseDuration-=e.treeBaseDuration)}else Jt(),qt(),!(128&n.flags)&&(t=n.memoizedState=null),n.flags|=4,ja(n),(n.mode&ym)!==bm&&null!==t&&null!==(e=n.child)&&(n.treeBaseDuration-=e.treeBaseDuration);e=!1}else t=Gt(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&n.flags?(di(n),n):(di(n),null);if(128&n.flags)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ja(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=r,o=Wt(n),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(o=null!==(o=n.memoizedState)?o.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");o[Sd]=n,ja(n),(n.mode&ym)!==bm&&null!==i&&null!==(i=n.child)&&(n.treeBaseDuration-=i.treeBaseDuration)}else Jt(),qt(),!(128&n.flags)&&(i=n.memoizedState=null),n.flags|=4,ja(n),(n.mode&ym)!==bm&&null!==i&&null!==(i=n.child)&&(n.treeBaseDuration-=i.treeBaseDuration);i=!1}else i=Gt(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&n.flags?(di(n),n):(di(n),null)}return di(n),128&n.flags?(n.lanes=t,(n.mode&ym)!==bm&&Sr(n),n):(t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(i=null,null!==(r=n.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),Ua(n,n.updateQueue),ja(n),(n.mode&ym)!==bm&&t&&null!==(e=n.child)&&(n.treeBaseDuration-=e.treeBaseDuration),null);case 4:return S(),null===e&&eu(n.stateNode.containerInfo),ja(n),null;case 10:return Qt(n.type),ja(n),null;case 19:if(A(Jv),null===(r=n.memoizedState))return ja(n),null;if(i=!!(128&n.flags),null===(o=r.rendering))if(i)Pa(r,!1);else{if(qw!==vw||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(o=hi(e))){for(n.flags|=128,Pa(r,!1),e=o.updateQueue,n.updateQueue=e,Ua(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Et(t,e),t=t.sibling;return x(Jv,Jv.current&Gv|Yv,n),Lm&&Nt(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&nd()>tg&&(n.flags|=128,i=!0,Pa(r,!1),n.lanes=4194304)}else{if(!i)if(null!==(e=hi(o))){if(n.flags|=128,i=!0,e=e.updateQueue,n.updateQueue=e,Ua(n,e),Pa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!Lm)return ja(n),null}else 2*nd()-r.renderingStartTime>tg&&536870912!==t&&(n.flags|=128,i=!0,Pa(r,!1),n.lanes=4194304);r.isBackwards?(o.sibling=n.child,n.child=o):(null!==(e=r.last)?e.sibling=o:n.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=nd(),e.sibling=null,t=Jv.current,x(Jv,t=i?t&Gv|Yv:t&Gv,n),Lm&&Nt(n,r.treeForkCount),e):(ja(n),null);case 22:case 23:return di(n),si(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?!!(536870912&t)&&!(128&n.flags)&&(ja(n),6&n.subtreeFlags&&(n.flags|=8192)):ja(n),null!==(t=n.updateQueue)&&Ua(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&A(zb),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Qt(Xm),ja(n),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Va(e,n){switch(Lt(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&ym)!==bm&&Sr(n),n):null;case 3:return Qt(Xm),S(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return M(n),null;case 31:if(null!==n.memoizedState){if(di(n),null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");qt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&ym)!==bm&&Sr(n),n):null;case 13:if(di(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");qt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&ym)!==bm&&Sr(n),n):null;case 19:return A(Jv),null;case 4:return S(),null;case 10:return Qt(n.type),null;case 22:case 23:return di(n),si(),null!==e&&A(zb),65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&ym)!==bm&&Sr(n),n):null;case 24:return Qt(Xm),null;default:return null}}function za(e,n){switch(Lt(n),n.tag){case 3:Qt(Xm),S();break;case 26:case 27:case 5:M(n);break;case 4:S();break;case 31:null!==n.memoizedState&&di(n);break;case 13:di(n);break;case 19:A(Jv);break;case 10:Qt(n.type);break;case 22:case 23:di(n),si(),null!==e&&A(zb);break;case 24:Qt(Xm)}}function Wa(e){return(e.mode&ym)!==bm}function qa(e,n){Wa(e)?(Er(),Ya(n,e),Ar()):Ya(n,e)}function Ga(e,n,t){Wa(e)?(Er(),Ja(t,e,n),Ar()):Ja(t,e,n)}function Ya(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var i=r.next;t=i;do{var o;(t.tag&e)===e&&(r=void 0,void 0!==(r=H(n,hv,t))&&"function"!=typeof r)&&H(n,function(e,n){},o=0!==(t.tag&Qv)?"useLayoutEffect":0!==(t.tag&Xv)?"useInsertionEffect":"useEffect",null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+o+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+o+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r),t=t.next}while(t!==i)}}catch(a){Tl(n,n.return,a)}}function Ja(e,n,t){try{var r=n.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;void 0!==s&&(a.destroy=void 0,H(i=n,mv,i,t,s))}r=r.next}while(r!==o)}}catch(l){Tl(n,n.return,l)}}function Ka(e,n){Wa(e)?(Er(),Ya(n,e),Ar()):Ya(n,e)}function Xa(e,n,t){Wa(e)?(Er(),Ja(t,e,n),Ar()):Ja(t,e,n)}function Qa(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Yy||(t.props,e.memoizedProps,t.state,e.memoizedState);try{H(e,ii,n,t)}catch(r){Tl(e,e.return,r)}}}function Za(e,n,t){return e.getSnapshotBeforeUpdate(n,t)}function _a(e,n){var t=n.memoizedProps,r=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Yy||(n.props,e.memoizedProps,n.state,e.memoizedState);try{var i=H(e,Za,n,_o(e.type,t),r);t=Zy,void 0!==i||t.has(e.type)||(t.add(e.type),H(e,function(){})),n.pe=i}catch(o){Tl(e,e.return,o)}}function $a(e,n,t){t.props=_o(e.type,e.memoizedProps),t.state=e.memoizedState,Wa(e)?(Er(),H(e,fv,e,n,t),Ar()):H(e,fv,e,n,t)}function es(e){var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var t=e.stateNode;break;default:t=e.stateNode}if("function"==typeof n)if(Wa(e))try{Er(),e.refCleanup=n(t)}finally{Ar()}else e.refCleanup=n(t);else"string"==typeof n||n.hasOwnProperty("current"),n.current=t}}function ns(e,n){try{H(e,es,e)}catch(t){Tl(e,n,t)}}function ts(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{if(Wa(e))try{Er(),H(e,r)}finally{Ar()}else H(e,r)}catch(i){Tl(e,n,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{if(Wa(e))try{Er(),H(e,t,null)}finally{Ar()}else H(e,t,null)}catch(o){Tl(e,n,o)}else t.current=null}function rs(e,n,t,r){var i=e.memoizedProps,o=i.id,a=i.onCommit;i=i.onRender,n=null===n?"mount":"update",Lb&&(n="nested-update"),"function"==typeof i&&i(o,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,t),"function"==typeof a&&a(o,n,r,t)}function is(e,n,t,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,n=null===n?"mount":"update",Lb&&(n="nested-update"),"function"==typeof i&&i(e,n,r,t)}function os(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{H(e,Bu,r,n,t,e)}catch(i){Tl(e,e.return,i)}}function as(e,n,t){try{H(e,Lu,e.stateNode,e.type,t,n,e)}catch(r){Tl(e,e.return,r)}}function ss(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&ju(e.type)||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ss(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&ju(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(Pu(t),(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(e,n)):(Pu(t),(n=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(e),null!=(t=t.he)||null!==n.onclick||(n.onclick=bn));else if(4!==r&&(27===r&&ju(e.type)&&(t=e.stateNode,n=null),null!==(e=e.child)))for(us(e,n,t),e=e.sibling;null!==e;)us(e,n,t),e=e.sibling}function cs(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&ju(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(cs(e,n,t),e=e.sibling;null!==e;)cs(e,n,t),e=e.sibling}function fs(e){for(var n,t=e.return;null!==t;){if(ss(t)){n=t;break}t=t.return}if(null==n)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,cs(e,t=ls(e),n);break;case 5:t=n.stateNode,32&n.flags&&(Du(t),n.flags&=-33),cs(e,n=ls(e),t);break;case 3:case 4:n=n.stateNode.containerInfo,us(e,t=ls(e),n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ds(e){var n=e.stateNode,t=e.memoizedProps;try{H(e,uc,e.type,t,n,e)}catch(r){Tl(e,e.return,r)}}function hs(e,n){return 31===n.tag?(n=n.memoizedState,null!==e.memoizedState&&null===n):13===n.tag?(e=e.memoizedState,n=n.memoizedState,null!==e&&null!==e.dehydrated&&(null===n||null===n.dehydrated)):3===n.tag&&e.memoizedState.isDehydrated&&!(256&n.flags)}function ps(e,n,t){var r=hr(),i=mr(),o=vr(),a=yr(),s=t.flags;switch(t.tag){case 0:case 11:case 15:Ss(e,t),4&s&&qa(t,Qv|Kv);break;case 1:if(Ss(e,t),4&s)if(e=t.stateNode,null===n)t.type.defaultProps||"ref"in t.memoizedProps||Yy||(e.props,t.memoizedProps,e.state,t.memoizedState),Wa(t)?(Er(),H(t,ov,t,e),Ar()):H(t,ov,t,e);else{var l=_o(t.type,n.memoizedProps);n=n.memoizedState,t.type.defaultProps||"ref"in t.memoizedProps||Yy||(e.props,t.memoizedProps,e.state,t.memoizedState),Wa(t)?(Er(),H(t,sv,t,e,l,n,e.pe),Ar()):H(t,sv,t,e,l,n,e.pe)}64&s&&Qa(t),512&s&&ns(t,t.return);break;case 3:if(n=ur(),Ss(e,t),64&s&&null!==(s=t.updateQueue)){if(l=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:l=t.child.stateNode}try{H(t,ii,s,l)}catch(c){Tl(t,t.return,c)}}e.effectDuration+=cr(n);break;case 27:null===n&&4&s&&ds(t);case 26:case 5:if(Ss(e,t),null===n)if(4&s)os(t);else if(64&s){e=t.type,n=t.memoizedProps,l=t.stateNode;try{H(t,Fu,l,e,n,t)}catch(c){Tl(t,t.return,c)}}512&s&&ns(t,t.return);break;case 12:if(4&s){s=ur(),Ss(e,t),(e=t.stateNode).effectDuration+=fr(s);try{H(t,rs,t,n,nb,e.effectDuration)}catch(c){Tl(t,t.return,c)}}else Ss(e,t);break;case 31:Ss(e,t),4&s&&ys(e,t);break;case 13:Ss(e,t),4&s&&ws(e,t),64&s&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,n){var t=e.ownerDocument;if(e.data===mk)e.me=n;else if(e.data!==pk||t.readyState!==Ak)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e.me=r}}(e,s=Rl.bind(null,t));break;case 22:if(!(s=null!==t.memoizedState||_y)){n=null!==n&&null!==n.memoizedState||$y,l=_y;var u=$y;_y=s,($y=n)&&!u?(Ms(e,t,!!(8772&t.subtreeFlags)),(t.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&tt(t,sb,lb)):Ss(e,t),_y=l,$y=u}break;case 30:break;default:Ss(e,t)}(t.mode&ym)!==bm&&0<=sb&&0<=lb&&((cb||.05<ab)&&ot(t,sb,lb,ab,ub),null===t.alternate&&null!==t.return&&null!==t.return.alternate&&.05<lb-sb&&(hs(t.return.alternate,t.return)||nt(t,sb,lb,"Mount"))),pr(r),br(i),ub=o,cb=a}function ms(e){var n=e.alternate;null!==n&&(e.alternate=null,ms(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&ce(n),e.stateNode=null,e.ke=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bs(e,n,t){for(t=t.child;null!==t;)vs(e,n,t),t=t.sibling}function vs(e,n,t){if(fd&&"function"==typeof fd.onCommitFiberUnmount)try{fd.onCommitFiberUnmount(cd,t)}catch(u){dd||(dd=!0)}var r=hr(),i=mr(),o=vr(),a=yr();switch(t.tag){case 26:$y||ts(t,n),bs(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(e=t.stateNode).parentNode.removeChild(e);break;case 27:$y||ts(t,n);var s=ow,l=aw;ju(t.type)&&(ow=t.stateNode,aw=!1),bs(e,n,t),H(t,cc,t.stateNode),ow=s,aw=l;break;case 5:$y||ts(t,n);case 6:if(s=ow,l=aw,ow=null,bs(e,n,t),aw=l,null!==(ow=s))if(aw)try{H(t,Vu,ow,t.stateNode)}catch(c){Tl(t,n,c)}else try{H(t,Hu,ow,t.stateNode)}catch(c){Tl(t,n,c)}break;case 18:null!==ow&&(aw?(zu(9===(e=ow).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),_c(e)):zu(ow,t.stateNode));break;case 4:s=ow,l=aw,ow=t.stateNode.containerInfo,aw=!0,bs(e,n,t),ow=s,aw=l;break;case 0:case 11:case 14:case 15:Ja(Xv,t,n),$y||Ga(t,n,Qv),bs(e,n,t);break;case 1:$y||(ts(t,n),"function"==typeof(s=t.stateNode).componentWillUnmount&&$a(t,n,s)),bs(e,n,t);break;case 21:bs(e,n,t);break;case 22:$y=(s=$y)||null!==t.memoizedState,bs(e,n,t),$y=s;break;default:bs(e,n,t)}(t.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(t,sb,lb,ab,ub),pr(r),br(i),ub=o,cb=a}function ys(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{H(n,ac,e)}catch(t){Tl(n,n.return,t)}}}function ws(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{H(n,sc,e)}catch(t){Tl(n,n.return,t)}}function gs(e,n){var t=function(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new nw),n;case 22:return null===(n=(e=e.stateNode).fe)&&(n=e.fe=new nw),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);n.forEach(function(n){if(!t.has(n)){if(t.add(n),hd){if(null===rw||null===iw)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Ul(iw,rw)}var r=Nl.bind(null,e,n);n.then(r,r)}})}function ks(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var i=e,o=n,a=t[r],s=hr(),l=o;e:for(;null!==l;){switch(l.tag){case 27:if(ju(l.type)){ow=l.stateNode,aw=!1;break e}break;case 5:ow=l.stateNode,aw=!1;break e;case 3:case 4:ow=l.stateNode.containerInfo,aw=!0;break e}l=l.return}if(null===ow)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vs(i,o,a),ow=null,aw=!1,(a.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&nt(a,sb,lb,"Unmount"),pr(s),null!==(o=(i=a).alternate)&&(o.return=null),i.return=null}if(13886&n.subtreeFlags)for(n=n.child;null!==n;)As(n,e),n=n.sibling}function As(e,n){var t=hr(),r=mr(),i=vr(),o=yr(),a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ks(n,e),xs(e),4&s&&(Ja(Xv|Kv,e,e.return),Ya(Xv|Kv,e),Ga(e,e.return,Qv|Kv));break;case 1:if(ks(n,e),xs(e),512&s&&($y||null===a||ts(a,a.return)),64&s&&_y&&null!==(s=e.updateQueue)&&null!==(a=s.callbacks)){var l=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=null===l?a:l.concat(a)}break;case 26:if(l=sw,ks(n,e),xs(e),512&s&&($y||null===a||ts(a,a.return)),4&s){var u=null!==a?a.memoizedState:null;if(s=e.memoizedState,null===a)if(null===s)if(null===e.stateNode){e:{s=e.type,a=e.memoizedProps,l=l.ownerDocument||l;n:switch(s){case"title":(!(u=l.getElementsByTagName("title")[0])||u[Nd]||u[Sd]||u.namespaceURI===hh||u.hasAttribute("itemprop"))&&(u=l.createElement(s),l.head.insertBefore(u,l.querySelector("head > title"))),mu(u,s,a),u[Sd]=e,me(u),s=u;break e;case"link":var c=Ec("link","href",l).get(s+(a.href||""));if(c)for(var f=0;f<c.length;f++)if((u=c[f]).getAttribute("href")===(null==a.href||""===a.href?null:a.href)&&u.getAttribute("rel")===(null==a.rel?null:a.rel)&&u.getAttribute("title")===(null==a.title?null:a.title)&&u.getAttribute("crossorigin")===(null==a.crossOrigin?null:a.crossOrigin)){c.splice(f,1);break n}mu(u=l.createElement(s),s,a),l.head.appendChild(u);break;case"meta":if(c=Ec("meta","content",l).get(s+(a.content||"")))for(f=0;f<c.length;f++)if(u=c[f],q(a.content),u.getAttribute("content")===(null==a.content?null:""+a.content)&&u.getAttribute("name")===(null==a.name?null:a.name)&&u.getAttribute("property")===(null==a.property?null:a.property)&&u.getAttribute("http-equiv")===(null==a.httpEquiv?null:a.httpEquiv)&&u.getAttribute("charset")===(null==a.charSet?null:a.charSet)){c.splice(f,1);break n}mu(u=l.createElement(s),s,a),l.head.appendChild(u);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}u[Sd]=e,me(u),s=u}e.stateNode=s}else Sc(l,e.type,e.stateNode);else e.stateNode=gc(l,s,e.memoizedProps);else u!==s?(null===u?null!==a.stateNode&&(a=a.stateNode).parentNode.removeChild(a):u.count--,null===s?Sc(l,e.type,e.stateNode):gc(l,s,e.memoizedProps)):null===s&&null!==e.stateNode&&as(e,e.memoizedProps,a.memoizedProps)}break;case 27:ks(n,e),xs(e),512&s&&($y||null===a||ts(a,a.return)),null!==a&&4&s&&as(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ks(n,e),xs(e),512&s&&($y||null===a||ts(a,a.return)),32&e.flags){l=e.stateNode;try{H(e,Du,l)}catch(m){Tl(e,e.return,m)}}4&s&&null!=e.stateNode&&as(e,l=e.memoizedProps,null!==a?a.memoizedProps:l),1024&s&&(ew=!0,e.type);break;case 6:if(ks(n,e),xs(e),4&s){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");s=e.memoizedProps,a=null!==a?a.memoizedProps:s,l=e.stateNode;try{H(e,Uu,l,a,s)}catch(m){Tl(e,e.return,m)}}break;case 3:if(l=ur(),rA=null,u=sw,sw=fc(n.containerInfo),ks(n,e),sw=u,xs(e),4&s&&null!==a&&a.memoizedState.isDehydrated)try{H(e,oc,n.containerInfo)}catch(m){Tl(e,e.return,m)}ew&&(ew=!1,Es(e)),n.effectDuration+=cr(l);break;case 4:s=sw,sw=fc(e.stateNode.containerInfo),ks(n,e),xs(e),sw=s;break;case 12:s=ur(),ks(n,e),xs(e),e.stateNode.effectDuration+=fr(s);break;case 31:case 19:ks(n,e),xs(e),4&s&&null!==(s=e.updateQueue)&&(e.updateQueue=null,gs(e,s));break;case 13:ks(n,e),xs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==a&&null!==a.memoizedState)&&($w=nd()),4&s&&null!==(s=e.updateQueue)&&(e.updateQueue=null,gs(e,s));break;case 22:l=null!==e.memoizedState;var d=null!==a&&null!==a.memoizedState,h=_y,p=$y;if(_y=h||l,$y=p||d,ks(n,e),$y=p,_y=h,d&&!l&&!h&&!p&&(e.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&tt(e,sb,lb),xs(e),8192&s)e:for(n=e.stateNode,n.le=l?n.le&~lm:n.le|lm,!l||null===a||d||_y||$y||(Ts(e),(e.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&nt(e,sb,lb,"Disconnect")),a=null,n=e;;){if(5===n.tag||26===n.tag){if(null===a){d=a=n;try{u=d.stateNode,l?H(d,Gu,u):H(d,Ku,d.stateNode,d.memoizedProps)}catch(m){Tl(d,d.return,m)}}}else if(6===n.tag){if(null===a){d=n;try{c=d.stateNode,l?H(d,Yu,c):H(d,Xu,c,d.memoizedProps)}catch(m){Tl(d,d.return,m)}}}else if(18===n.tag){if(null===a){d=n;try{f=d.stateNode,l?H(d,qu,f):H(d,Ju,d.stateNode)}catch(m){Tl(d,d.return,m)}}}else if((22!==n.tag&&23!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;null===n.sibling;){if(null===n.return||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}4&s&&null!==(s=e.updateQueue)&&null!==(a=s.retryQueue)&&(s.retryQueue=null,gs(e,a));break;case 30:case 21:break;default:ks(n,e),xs(e)}(e.mode&ym)!==bm&&0<=sb&&0<=lb&&((cb||.05<ab)&&ot(e,sb,lb,ab,ub),null===e.alternate&&null!==e.return&&null!==e.return.alternate&&.05<lb-sb&&(hs(e.return.alternate,e.return)||nt(e,sb,lb,"Mount"))),pr(t),br(r),ub=i,cb=o}function xs(e){var n=e.flags;if(2&n){try{H(e,fs,e)}catch(t){Tl(e,e.return,t)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Es(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var n=e;Es(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),e=e.sibling}}function Ss(e,n){if(8772&n.subtreeFlags)for(n=n.child;null!==n;)ps(e,n.alternate,n),n=n.sibling}function Cs(e){var n=hr(),t=mr(),r=vr(),i=yr();switch(e.tag){case 0:case 11:case 14:case 15:Ga(e,e.return,Qv),Ts(e);break;case 1:ts(e,e.return);var o=e.stateNode;"function"==typeof o.componentWillUnmount&&$a(e,e.return,o),Ts(e);break;case 27:H(e,cc,e.stateNode);case 26:case 5:ts(e,e.return),Ts(e);break;case 22:null===e.memoizedState&&Ts(e);break;default:Ts(e)}(e.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(e,sb,lb,ab,ub),pr(n),br(t),ub=r,cb=i}function Ts(e){for(e=e.child;null!==e;)Cs(e),e=e.sibling}function Is(e,n,t,r){var i=hr(),o=mr(),a=vr(),s=yr(),l=t.flags;switch(t.tag){case 0:case 11:case 15:Ms(e,t,r),qa(t,Qv);break;case 1:if(Ms(e,t,r),"function"==typeof(n=t.stateNode).componentDidMount&&H(t,ov,t,n),null!==(n=t.updateQueue)){e=t.stateNode;try{H(t,ri,n,e)}catch(u){Tl(t,t.return,u)}}r&&64&l&&Qa(t),ns(t,t.return);break;case 27:ds(t);case 26:case 5:Ms(e,t,r),r&&null===n&&4&l&&os(t),ns(t,t.return);break;case 12:if(r&&4&l){l=ur(),Ms(e,t,r),(r=t.stateNode).effectDuration+=fr(l);try{H(t,rs,t,n,nb,r.effectDuration)}catch(u){Tl(t,t.return,u)}}else Ms(e,t,r);break;case 31:Ms(e,t,r),r&&4&l&&ys(e,t);break;case 13:Ms(e,t,r),r&&4&l&&ws(e,t);break;case 22:null===t.memoizedState&&Ms(e,t,r),ns(t,t.return);break;case 30:break;default:Ms(e,t,r)}(t.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(t,sb,lb,ab,ub),pr(i),br(o),ub=a,cb=s}function Ms(e,n,t){for(t=t&&!!(8772&n.subtreeFlags),n=n.child;null!==n;)Is(e,n.alternate,n,t),n=n.sibling}function Os(e,n){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(e=n.memoizedState.cachePool.pool),e!==t&&(null!=e&&ar(e),null!=t&&sr(t))}function Rs(e,n){e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(ar(n),null!=e&&sr(e))}function Ns(e,n,t,r,i){if(10256&n.subtreeFlags||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child))for(n=n.child;null!==n;){var o=n.sibling;Bs(e,n,t,r,null!==o?o.actualStartTime:i),n=o}}function Bs(e,n,t,r,i){var o=hr(),a=mr(),s=vr(),l=yr(),u=tm,c=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&ym)!==bm&&0<n.actualStartTime&&1&n.flags&&rt(n,n.actualStartTime,i,lw,t),Ns(e,n,t,r,i),2048&c&&Ka(n,Zv|Kv);break;case 1:(n.mode&ym)!==bm&&0<n.actualStartTime&&(128&n.flags?it(n,n.actualStartTime,i,[]):1&n.flags&&rt(n,n.actualStartTime,i,lw,t)),Ns(e,n,t,r,i);break;case 3:var f=ur(),d=lw;lw=null!==n.alternate&&n.alternate.memoizedState.isDehydrated&&!(256&n.flags),Ns(e,n,t,r,i),lw=d,2048&c&&(t=null,null!==n.alternate&&(t=n.alternate.memoizedState.cache),(r=n.memoizedState.cache)!==t&&(ar(r),null!=t&&sr(t))),e.passiveEffectDuration+=cr(f);break;case 12:if(2048&c){c=ur(),Ns(e,n,t,r,i),(e=n.stateNode).passiveEffectDuration+=fr(c);try{H(n,is,n,n.alternate,nb,e.passiveEffectDuration)}catch(h){Tl(n,n.return,h)}}else Ns(e,n,t,r,i);break;case 31:c=lw,f=null!==n.alternate?n.alternate.memoizedState:null,d=n.memoizedState,null!==f&&null===d?null!==(d=n.deletions)&&0<d.length&&18===d[0].tag?(lw=!1,null!==(f=f.hydrationErrors)&&it(n,n.actualStartTime,i,f)):lw=!0:lw=!1,Ns(e,n,t,r,i),lw=c;break;case 13:c=lw,f=null!==n.alternate?n.alternate.memoizedState:null,d=n.memoizedState,null===f||null===f.dehydrated||null!==d&&null!==d.dehydrated?lw=!1:null!==(d=n.deletions)&&0<d.length&&18===d[0].tag?(lw=!1,null!==(f=f.hydrationErrors)&&it(n,n.actualStartTime,i,f)):lw=!0,Ns(e,n,t,r,i),lw=c;break;case 23:break;case 22:d=n.stateNode,f=n.alternate,null!==n.memoizedState?d.le&um?Ns(e,n,t,r,i):Ds(e,n,t,r,i):d.le&um?Ns(e,n,t,r,i):(d.le|=um,Fs(e,n,t,r,!!(10256&n.subtreeFlags)||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child),i),(n.mode&ym)===bm||lw||(0<=(e=n.actualStartTime)&&.05<i-e&&tt(n,e,i),0<=sb&&0<=lb&&.05<lb-sb&&tt(n,sb,lb))),2048&c&&Os(f,n);break;case 24:Ns(e,n,t,r,i),2048&c&&Rs(n.alternate,n);break;default:Ns(e,n,t,r,i)}(n.mode&ym)!==bm&&((e=!lw&&null===n.alternate&&null!==n.return&&null!==n.return.alternate)&&0<=(t=n.actualStartTime)&&.05<i-t&&nt(n,t,i,"Mount"),0<=sb&&0<=lb&&((cb||.05<ab)&&ot(n,sb,lb,ab,ub),e&&.05<lb-sb&&nt(n,sb,lb,"Mount"))),pr(o),br(a),ub=s,cb=l,tm=u}function Fs(e,n,t,r,i,o){for(i=i&&(!!(10256&n.subtreeFlags)||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child)),n=n.child;null!==n;){var a=n.sibling;Ls(e,n,t,r,i,null!==a?a.actualStartTime:o),n=a}}function Ls(e,n,t,r,i,o){var a=hr(),s=mr(),l=vr(),u=yr(),c=tm;i&&(n.mode&ym)!==bm&&0<n.actualStartTime&&1&n.flags&&rt(n,n.actualStartTime,o,lw,t);var f=n.flags;switch(n.tag){case 0:case 11:case 15:Fs(e,n,t,r,i,o),Ka(n,Zv);break;case 23:break;case 22:var d=n.stateNode;null!==n.memoizedState?d.le&um?Fs(e,n,t,r,i,o):Ds(e,n,t,r,o):(d.le|=um,Fs(e,n,t,r,i,o)),i&&2048&f&&Os(n.alternate,n);break;case 24:Fs(e,n,t,r,i,o),i&&2048&f&&Rs(n.alternate,n);break;default:Fs(e,n,t,r,i,o)}(n.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(n,sb,lb,ab,ub),pr(a),br(s),ub=l,cb=u,tm=c}function Ds(e,n,t,r,i){if(10256&n.subtreeFlags||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child))for(var o=n.child;null!==o;){var a=e,s=t,l=r,u=null!==(n=o.sibling)?n.actualStartTime:i,c=tm;(o.mode&ym)!==bm&&0<o.actualStartTime&&1&o.flags&&rt(o,o.actualStartTime,u,lw,s);var f=o.flags;switch(o.tag){case 22:Ds(a,o,s,l,u),2048&f&&Os(o.alternate,o);break;case 24:Ds(a,o,s,l,u),2048&f&&Rs(o.alternate,o);break;default:Ds(a,o,s,l,u)}tm=c,o=n}}function Us(e,n,t){if(e.subtreeFlags&uw)for(e=e.child;null!==e;)Ps(e,n,t),e=e.sibling}function Ps(e,n,t){switch(e.tag){case 26:Us(e,n,t),e.flags&uw&&null!==e.memoizedState&&function(e,n,t,r){if("stylesheet"===t.type&&("string"!=typeof r.media||!1!==matchMedia(r.media).matches)&&(t.state.loading&zk)===Pk){if(null===t.instance){var i=mc(r.href),o=n.querySelector(bc(i));if(o)return null!==(n=o.be)&&"object"==typeof n&&"function"==typeof n.then&&(e.count++,e=Tc.bind(e),n.then(e,e)),t.state.loading|=zk,t.instance=o,void me(o);o=n.ownerDocument||n,r=vc(r),(i=Wk.get(i))&&Ac(r,i),me(o=o.createElement("link"));var a=o;a.be=new Promise(function(e,n){a.onload=e,a.onerror=n}),mu(o,"link",r),t.instance=o}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&(t.state.loading&Vk)===Pk&&(e.count++,t=Tc.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}(t,sw,e.memoizedState,e.memoizedProps);break;case 5:default:Us(e,n,t);break;case 3:case 4:var r=sw;sw=fc(e.stateNode.containerInfo),Us(e,n,t),sw=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=uw,uw=16777216,Us(e,n,t),uw=r):Us(e,n,t))}}function js(e){var n=e.alternate;if(null!==n&&null!==(e=n.child)){n.child=null;do{n=e.sibling,e.sibling=null,e=n}while(null!==e)}}function Hs(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t],i=hr();tw=r,qs(r,e),(r.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&nt(r,sb,lb,"Unmount"),pr(i)}js(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Vs(e),e=e.sibling}function Vs(e){var n=hr(),t=mr(),r=vr(),i=yr();switch(e.tag){case 0:case 11:case 15:Hs(e),2048&e.flags&&Xa(e,e.return,Zv|Kv);break;case 3:var o=ur();Hs(e),e.stateNode.passiveEffectDuration+=cr(o);break;case 12:o=ur(),Hs(e),e.stateNode.passiveEffectDuration+=fr(o);break;case 22:o=e.stateNode,null!==e.memoizedState&&o.le&um&&(null===e.return||13!==e.return.tag)?(o.le&=~um,zs(e),(e.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&nt(e,sb,lb,"Disconnect")):Hs(e);break;default:Hs(e)}(e.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(e,sb,lb,ab,ub),pr(n),br(t),cb=i,ub=r}function zs(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t],i=hr();tw=r,qs(r,e),(r.mode&ym)!==bm&&0<=sb&&0<=lb&&.05<lb-sb&&nt(r,sb,lb,"Unmount"),pr(i)}js(e)}for(e=e.child;null!==e;)Ws(e),e=e.sibling}function Ws(e){var n=hr(),t=mr(),r=vr(),i=yr();switch(e.tag){case 0:case 11:case 15:Xa(e,e.return,Zv),zs(e);break;case 22:var o=e.stateNode;o.le&um&&(o.le&=~um,zs(e));break;default:zs(e)}(e.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(e,sb,lb,ab,ub),pr(n),br(t),cb=i,ub=r}function qs(e,n){for(;null!==tw;){var t=tw,r=t,i=n,o=hr(),a=mr(),s=vr(),l=yr();switch(r.tag){case 0:case 11:case 15:Xa(r,i,Zv);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&null!=(i=r.memoizedState.cachePool.pool)&&ar(i);break;case 24:sr(r.memoizedState.cache)}if((r.mode&ym)!==bm&&0<=sb&&0<=lb&&(cb||.05<ab)&&ot(r,sb,lb,ab,ub),pr(o),br(a),cb=l,ub=s,null!==(r=t.child))r.return=t,tw=r;else e:for(t=e;null!==tw;){if(o=(r=tw).sibling,a=r.return,ms(r),r===t){tw=null;break e}if(null!==o){o.return=a,tw=o;break e}tw=a}}}function Gs(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Bf.actQueue,e}function Ys(e){if((Ew&mw)!==pw&&0!==Tw)return Tw&-Tw;var n=Bf.T;return null!==n?(n.re||(n.re=/* @__PURE__ */new Set),n.re.add(e),Jl()):le()}function Js(){if(0===Kw)if(536870912&Tw&&!Lm)Kw=536870912;else{var e=yd;!(3932160&(yd<<=1))&&(yd=262144),Kw=e}return null!==(e=Wv.current)&&(e.flags|=32),Kw}function Ks(e,n,t){if(Rg&&(Ng=!0),(e!==Sw||Pw!==Ow&&Pw!==Uw)&&null===e.cancelPendingCommit||(tl(e,0),_s(e,Tw,Kw,!1)),ee(e,t),(Ew&mw)!==pw&&e===Sw){if(Xf)switch(n.tag){case 0:case 11:case 15:e=Cw&&g(Cw)||"Unknown",Pg.has(e)||(Pg.add(e),n=g(n)||"Unknown");break;case 1:Ug||(Ug=!0)}}else hd&&oe(e,n,t),function(e){Gs()&&null===Bf.actQueue&&H(e,function(){})}(n),e===Sw&&((Ew&mw)===pw&&(Yw|=t),qw===kw&&_s(e,Tw,Kw,!1)),Pl(e)}function Xs(e,n,t){if((Ew&(mw|bw))!==pw)throw Error("Should not already be working.");if(0!==Tw&&null!==Cw){var r=Cw,i=nd();switch(Bb){case Rw:case Ow:var o=Fb;_p&&(r=r._)&&r.run(function(){}.bind());break;case Uw:o=Fb,_p&&(r=r._)&&r.run(function(){}.bind());break;default:_p&&(r=i-Fb)}}o=(t=!t&&!(127&n)&&0===(n&e.expiredLanes)||Q(e,n))?function(e,n){var t=Ew;Ew|=mw;var r=ol(),i=al();if(Sw!==e||Tw!==n){if(hd){var o=e.memoizedUpdaters;0<o.size&&(Ul(e,Tw),o.clear()),ae(e,n)}ig=null,tg=nd()+rg,tl(e,n)}else Vw=Q(e,n);e:for(;;)try{if(Pw!==Iw&&null!==Cw)n:switch(n=Cw,o=jw,Pw){case Mw:Pw=Iw,jw=null,ml(e,n,o,Mw);break;case Ow:case Uw:if(Or(o)){Pw=Iw,jw=null,hl(n);break}n=function(){Pw!==Ow&&Pw!==Uw||Sw!==e||(Pw=Lw),Pl(e)},o.then(n,n);break e;case Rw:Pw=Lw;break e;case Nw:Pw=Bw;break e;case Lw:Or(o)?(Pw=Iw,jw=null,hl(n)):(Pw=Iw,jw=null,ml(e,n,o,Lw));break;case Bw:var a=null;switch(Cw.tag){case 26:a=Cw.memoizedState;case 5:case 27:var s=Cw;if(a?Cc(a):s.stateNode.complete){Pw=Iw,jw=null;var l=s.sibling;if(null!==l)Cw=l;else{var u=s.return;null!==u?(Cw=u,bl(u)):Cw=null}break n}}Pw=Iw,jw=null,ml(e,n,o,Bw);break;case Fw:Pw=Iw,jw=null,ml(e,n,o,Fw);break;case Dw:el(),qw=Aw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==Bf.actQueue?cl():fl();break}catch(c){rl(e,c)}return Kt(),Bf.H=r,Bf.A=i,Ew=t,null!==Cw?vw:(Sw=null,Tw=0,ct(),qw)}(e,n):ul(e,n,!0);for(var a=t;;){if(o===vw){Vw&&!t&&_s(e,n,0,!1),n=Pw,Fb=Qm(),Bb=n;break}if(r=nd(),i=e.current.alternate,!a||Zs(i)){if(o===ww){if(a=n,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){et(n),lt(eb,r,0,og),nl(n,r),n=s;e:{o=a,a=Qw;var l=(r=e).current.memoizedState.isDehydrated;if(l&&(tl(r,s).flags|=256),(s=ul(r,s,!1))!==ww){if(zw&&!l){r.errorRecoveryDisabledLanes|=o,Yw|=o,o=kw;break e}r=Zw,Zw=a,null!==r&&(null===Zw?Zw=r:Zw.push.apply(Zw,r))}o=s}if(a=!1,o!==ww)continue;r=nd()}}if(o===yw){et(n),lt(eb,r,0,og),nl(n,r),tl(e,0),_s(e,n,0,!0);break}e:{switch(t=e,o){case vw:case yw:throw Error("Root did not complete. This is a bug in React.");case kw:if((4194048&n)!==n)break;case Aw:et(n),at(eb,r,n,og),nl(n,r),127&(i=n)?gb=r:4194048&i&&(Rb=r),_s(t,n,Kw,!Hw);break e;case ww:Zw=null;break;case gw:case xw:break;default:throw Error("Unknown root exit status.")}if(null!==Bf.actQueue)yl(t,i,n,Zw,ig,_w,Kw,Yw,Xw,o,0,null,eb,r);else{if((62914560&n)===n&&10<(a=$w+ng-nd())){if(_s(t,n,Kw,!Hw),0!==X(t,0,!0))break e;gg=n,t.timeoutHandle=Nk(Qs.bind(null,t,i,Zw,ig,_w,n,Kw,Yw,Xw,Hw,o,"Throttled",eb,r),a);break e}Qs(t,i,Zw,ig,_w,n,Kw,Yw,Xw,Hw,o,null,eb,r)}}break}et(n),i=eb,o=r,!_p||o<=i||og&&og.run(function(){}.bind()),nl(n,r),o=ul(e,n,!1),a=!1}Pl(e)}function Qs(e,n,t,r,i,o,a,s,l,u,c,f,d,h){e.timeoutHandle=Fk;var p,m,b=n.subtreeFlags,v=null;if((8192&b||!(16785408&~b))&&(Ps(n,o,v={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn}),b=(62914560&o)===o?$w-nd():(4194048&o)===o?eg-nd():0,m=b,(p=v).stylesheets&&0===p.count&&Ic(p,p.stylesheets),b=0<p.count||0<p.imgCount?function(e){var n=setTimeout(function(){if(p.stylesheets&&Ic(p,p.stylesheets),p.unsuspend){var e=p.unsuspend;p.unsuspend=null,e()}},iA+m);0<p.imgBytes&&0===sA&&(sA=125*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,n=0,t=performance.getEntriesByType("resource"),r=0;r<t.length;r++){var i=t[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&Su(a)){for(a=0,s=i.responseEnd,r+=1;r<t.length;r++){var l=t[r],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&Su(f)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,n+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return n/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}()*aA);var t=setTimeout(function(){if(p.waitingForImages=!1,0===p.count&&(p.stylesheets&&Ic(p,p.stylesheets),p.unsuspend)){var e=p.unsuspend;p.unsuspend=null,e()}},(p.imgBytes>sA?50:oA)+m);return p.unsuspend=e,function(){p.unsuspend=null,clearTimeout(n),clearTimeout(t)}}:null,null!==b))return gg=o,e.cancelPendingCommit=b(yl.bind(null,e,n,o,t,r,i,a,s,l,c,v,v.waitingForViewTransition?"Waiting for the previous Animation":0<v.count?0<v.imgCount?"Suspended on CSS and Images":"Suspended on CSS":1===v.imgCount?"Suspended on an Image":0<v.imgCount?"Suspended on Images":null,d,h)),void _s(e,o,a,!u);yl(e,n,o,t,r,i,a,s,l,c,0,f,d,h)}function Zs(e){for(var n=e;;){var t=n.tag;if((0===t||11===t||15===t)&&16384&n.flags&&null!==(t=n.updateQueue)&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var i=t[r],o=i.getSnapshot;i=i.value;try{if(!kp(o(),i))return!1}catch(a){return!1}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _s(e,n,t,r){n&=~Jw,n&=~Yw,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var i=n;0<i;){var o=31-pd(i),a=1<<o;r[o]=-1,i&=~a}0!==t&&ne(e,t,n)}function $s(){return(Ew&(mw|bw))!==pw||(jl(0),!1)}function el(){if(null!==Cw){if(Pw===Iw)var e=Cw.return;else e=Cw,Kt(),Ci(e),Ev=null,Sv=0,e=Cw;for(;null!==e;)za(e.alternate,e),e=e.return;Cw=null}}function nl(e,n){127&e&&(fb=n),4194048&e&&(kb=n)}function tl(e,n){var t=eb;if(eb=Qm(),0!==Tw&&0<t){if(et(Tw),qw===gw||qw===kw)at(t,eb,n,og);else{var r=eb,i=og;if(_p&&!(r<=t)){var o=(738197653&n)===n?"tertiary-dark":"primary-dark",a=(536870912&n)===n?"Prewarm":(201326741&n)===n?"Interrupted Hydration":"Interrupted Render";i&&i.run(function(){}.bind())}}nl(Tw,eb)}if(t=og,og=null,127&n){og=hb,i=0<=db&&db<fb?fb:db,o=0<=(r=0<=vb&&vb<fb?fb:vb)?r:0<=i?i:eb,0<=gb&&(et(2),st(gb,o,n,t)),t=i;var s=r,l=yb,u=0<wb,c=pb===_m,f=pb===$m;i=eb,r=hb,o=mb,a=bb,_p&&(nm="Blocking",0<t?t>i&&(t=i):t=i,0<s?s>t&&(s=t):s=t,null!==l&&t>s&&r&&r.run(function(){}.bind()),i>t&&(s=c?"error":(738197653&n)===n?"tertiary-light":"primary-light",c=f?"Promise Resolved":c?"Cascading Update":5<i-t?"Update Blocked":"Update",f=[],null!=a&&f.push(["Component name",a]),null!=o&&f.push(["Method name",o]),t={start:t,end:i,detail:{devtools:{properties:f,track:nm,trackGroup:em,color:s}}},r?r.run(performance.measure.bind(performance,c,t)):performance.measure(c,t))),db=-1.1,pb=0,bb=mb=null,gb=-1.1,wb=vb,vb=-1.1,fb=Qm()}if(4194048&n&&(og=Sb,i=0<=Ab&&Ab<kb?kb:Ab,t=0<=xb&&xb<kb?kb:xb,o=0<=(r=0<=Ib&&Ib<kb?kb:Ib)?r:0<=t?t:eb,0<=Rb&&(et(256),st(Rb,o,n,og)),f=r,s=Mb,l=0<Ob,u=Eb===$m,o=eb,r=Sb,a=Cb,c=Tb,_p&&(nm="Transition",0<t?t>o&&(t=o):t=o,0<i?i>t&&(i=t):i=t,0<f?f>i&&(f=i):f=i,i>f&&null!==s&&r&&r.run(function(){}.bind()),t>i&&r&&r.run(function(){}.bind()),o>t&&(i=u?"Promise Resolved":5<o-t?"Update Blocked":"Update",f=[],null!=c&&f.push(["Component name",c]),null!=a&&f.push(["Method name",a]),t={start:t,end:o,detail:{devtools:{properties:f,track:nm,trackGroup:em,color:"primary-light"}}},r?r.run(performance.measure.bind(performance,i,t)):performance.measure(i,t))),xb=Ab=-1.1,Eb=0,Rb=-1.1,Ob=Ib,Ib=-1.1,kb=Qm()),62914560&n&&62914560&Nb&&et(4194304),2080374784&n&&2080374784&Nb&&et(268435456),(t=e.timeoutHandle)!==Fk&&(e.timeoutHandle=Fk,Bk(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),gg=0,el(),Sw=e,Cw=t=xt(e.current,null),Tw=n,Pw=Iw,jw=null,Hw=!1,Vw=Q(e,n),zw=!1,qw=vw,Xw=Kw=Jw=Yw=Gw=0,Zw=Qw=null,_w=!1,8&n&&(n|=32&n),0!==(r=e.entangledLanes))for(e=e.entanglements,r&=n;0<r;)o=1<<(i=31-pd(r)),n|=e[i],r&=~o;return Ww=n,ct(),1e3<(e=Vp())-jp&&(Bf.recentlyCreatedOwnerStacks=0,jp=e),Wb.discardPendingWarnings(),t}function rl(e,n){ry=null,Bf.H=yy,Bf.getCurrentStack=null,Xf=!1,Kf=null,n===yv||n===gv?(n=Br(),Pw=Rw):n===wv?(n=Br(),Pw=Nw):Pw=n===Hy?Dw:null!==n&&"object"==typeof n&&"function"==typeof n.then?Fw:Mw,jw=n;var t=Cw;null===t?(qw=yw,ta(e,Rt(n,e.current))):t.mode&ym&&gr(t)}function il(){var e=Wv.current;return null===e||((4194048&Tw)===Tw?null===qv:!!((62914560&Tw)===Tw||536870912&Tw)&&e===qv)}function ol(){var e=Bf.H;return Bf.H=yy,null===e?yy:e}function al(){var e=Bf.A;return Bf.A=cw,e}function sl(e){null===og&&(og=null==e._?null:e._)}function ll(){qw=kw,Hw||(4194048&Tw)!==Tw&&null!==Wv.current||(Vw=!0),!(134217727&Gw)&&!(134217727&Yw)||null===Sw||_s(Sw,Tw,Kw,!1)}function ul(e,n,t){var r=Ew;Ew|=mw;var i=ol(),o=al();if(Sw!==e||Tw!==n){if(hd){var a=e.memoizedUpdaters;0<a.size&&(Ul(e,Tw),a.clear()),ae(e,n)}ig=null,tl(e,n)}n=!1,a=qw;e:for(;;)try{if(Pw!==Iw&&null!==Cw){var s=Cw,l=jw;switch(Pw){case Dw:el(),a=Aw;break e;case Rw:case Ow:case Uw:case Fw:null===Wv.current&&(n=!0);var u=Pw;if(Pw=Iw,jw=null,ml(e,s,l,u),t&&Vw){a=vw;break e}break;default:u=Pw,Pw=Iw,jw=null,ml(e,s,l,u)}}cl(),a=qw;break}catch(c){rl(e,c)}return n&&e.shellSuspendCounter++,Kt(),Ew=r,Bf.H=i,Bf.A=o,null===Cw&&(Sw=null,Tw=0,ct()),a}function cl(){for(;null!==Cw;)dl(Cw)}function fl(){for(;null!==Cw&&!$f();)dl(Cw)}function dl(e){var n=e.alternate;(e.mode&ym)!==bm?(wr(e),n=H(e,Ba,n,e,Ww),gr(e)):n=H(e,Ba,n,e,Ww),e.memoizedProps=e.pendingProps,null===n?bl(e):Cw=n}function hl(e){var n=H(e,pl,e);e.memoizedProps=e.pendingProps,null===n?bl(e):Cw=n}function pl(e){var n=e.alternate,t=(e.mode&ym)!==bm;switch(t&&wr(e),e.tag){case 15:case 0:n=ya(n,e,e.pendingProps,e.type,void 0,Tw);break;case 11:n=ya(n,e,e.pendingProps,e.type.render,e.ref,Tw);break;case 5:Ci(e);default:za(n,e),n=Ba(n,e=Cw=Et(e,Ww),Ww)}return t&&gr(e),n}function ml(e,n,t,r){Kt(),Ci(n),Ev=null,Sv=0;var i=n.return;try{if(function(e,n,t,r,i){if(t.flags|=32768,hd&&Ul(e,i),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(n=t.alternate)&&$t(n,t,i,!0),Lm&&(Dm=!0),null!==(t=Wv.current)){switch(t.tag){case 31:case 13:return null===qv?ll():null===t.alternate&&qw===vw&&(qw=gw),t.flags&=-257,t.flags|=65536,t.lanes=i,r===kv?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=/* @__PURE__ */new Set([r]):n.add(r),Il(e,r,i)),!1;case 22:return t.flags|=65536,r===kv?t.flags|=16384:(null===(n=t.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([r])},t.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=/* @__PURE__ */new Set([r]):t.add(r),Il(e,r,i)),!1}throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}return Il(e,r,i),ll(),!1}if(Lm)return Dm=!0,null!==(n=Wv.current)?(!(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=i,r!==Hm&&Yt(Rt(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),t))):(r!==Hm&&Yt(Rt(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),t)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Rt(r,t),$r(e,i=ia(e.stateNode,r,i)),qw!==kw&&(qw=ww)),!1;var o=Rt(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),t);if(null===Qw?Qw=[o]:Qw.push(o),qw!==kw&&(qw=ww),null===n)return!0;r=Rt(r,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=i&-i,t.lanes|=e,$r(t,e=ia(t.stateNode,r,e)),!1;case 1:if(n=t.type,o=t.stateNode,!(128&t.flags||"function"!=typeof n.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==ag&&ag.has(o))))return t.flags|=65536,i&=-i,t.lanes|=i,aa(i=oa(i),e,t,r),$r(t,i),!1}t=t.return}while(null!==t);return!1}(e,i,n,t,Tw))return qw=yw,ta(e,Rt(t,e.current)),void(Cw=null)}catch(o){if(null!==i)throw Cw=i,o;return qw=yw,ta(e,Rt(t,e.current)),void(Cw=null)}32768&n.flags?(Lm||r===Mw?e=!0:Vw||536870912&Tw?e=!1:(Hw=e=!0,(r===Ow||r===Uw||r===Rw||r===Fw)&&null!==(r=Wv.current)&&13===r.tag&&(r.flags|=16384)),vl(n,e)):bl(n)}function bl(e){var n=e;do{if(32768&n.flags)return void vl(n,Hw);var t=n.alternate;if(e=n.return,wr(n),t=H(n,Ha,t,n,Ww),(n.mode&ym)!==bm&&kr(n),null!==t)return void(Cw=t);if(null!==(n=n.sibling))return void(Cw=n);Cw=n=e}while(null!==n);qw===vw&&(qw=xw)}function vl(e,n){do{var t=Va(e.alternate,e);if(null!==t)return t.flags&=32767,void(Cw=t);if((e.mode&ym)!==bm){kr(e),t=e.actualDuration;for(var r=e.child;null!==r;)t+=r.actualDuration,r=r.sibling;e.actualDuration=t}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling))return void(Cw=e);Cw=e=t}while(null!==e);qw=Aw,Cw=null}function yl(e,n,t,r,i,o,a,s,l,u,c,f,d,h){e.cancelPendingCommit=null;do{El()}while(vg!==fg);if(Wb.flushLegacyContextWarning(),Wb.flushPendingUnsafeLifecycleWarnings(),(Ew&(mw|bw))!==pw)throw Error("Should not already be working.");if(et(t),u===ww?lt(d,h,0,og):null!==r?function(e,n,t,r,i,o){if(_p&&!(n<=e)){t=[];for(var a=0;a<r.length;a++){var s=r[a].value;t.push(["Recoverable Error","object"==typeof s&&null!==s&&"string"==typeof s.message?String(s.message):String(s)])}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:nm,trackGroup:em,tooltipText:i?"Hydration Failed":"Recovered after Error",properties:t}}},o?o.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}(d,h,t,r,null!==n&&null!==n.alternate&&n.alternate.memoizedState.isDehydrated&&!!(256&n.flags),og):function(e,n,t,r){!_p||n<=e||(t=(536870912&t)===t?"Prepared":(201326741&t)===t?"Hydrated":"Render",r&&r.run(function(){}.bind()))}(d,h,t,og),null!==n){if(n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=n.lanes|n.childLanes,function(e,n,t,r,i,o){var a=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-pd(t),f=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(null!==d)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];null!==h&&(h.lane&=-536870913)}t&=~f}0!==r&&ne(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~n))}(e,t,o|=dm,a,s,l),e===Sw&&(Cw=Sw=null,Tw=0),wg=n,yg=e,gg=t,kg=o,xg=i,Eg=r,Ag=h,Sg=f,Cg=sg,Tg=null,0!==n.actualDuration||10256&n.subtreeFlags||10256&n.flags?(e.callbackNode=null,e.callbackPriority=0,m=od,b=function(){return Rk=window.event,Cg===sg&&(Cg=ug),Sl(),null},null!==(v=Bf.actQueue)?v.push(b):Zf(m,b)):(e.callbackNode=null,e.callbackPriority=0),rb=null,nb=Qm(),null!==f&&(p=og,!_p||nb<=h||p&&p.run(function(){}.bind())),r=!!(13878&n.flags),13878&n.subtreeFlags||r){r=Bf.T,Bf.T=null,i=Ff.p,Ff.p=gd,a=Ew,Ew|=bw;try{!function(e,n){if(e=e.containerInfo,Tk=wA,Yn(e=Gn(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch(p){t=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;n:for(;;){for(var h;f!==t||0!==i&&3!==f.nodeType||(s=a+i),f!==o||0!==r&&3!==f.nodeType||(l=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(h=f.firstChild);)d=f,f=h;for(;;){if(f===e)break n;if(d===t&&++u===i&&(s=a),d===o&&++c===r&&(l=a),null!==(h=f.nextSibling))break;d=(f=d).parentNode}f=h}t=-1===s||-1===l?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(Ik={focusedElem:e,selectionRange:t},wA=!1,tw=n;null!==tw;)if(e=(n=tw).child,1028&n.subtreeFlags&&null!==e)e.return=n,tw=e;else for(;null!==tw;){switch(t=(e=n=tw).alternate,i=e.flags,e.tag){case 0:if(4&i&&null!==(e=null!==(e=e.updateQueue)?e.events:null))for(t=0;t<e.length;t++)(i=e[t]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&i&&null!==t&&_a(e,t);break;case 3:if(1024&i)if(9===(t=(e=e.stateNode.containerInfo).nodeType))Qu(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qu(e);break;default:e.textContent=""}break;default:if(1024&i)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(e=n.sibling)){e.return=n.return,tw=e;break}tw=n.return}}(e,n)}finally{Ew=a,Ff.p=i,Bf.T=r}}vg=dg,wl(),gl(),kl()}var p,m,b,v}function wl(){if(vg===dg){vg=fg;var e=yg,n=wg,t=gg,r=!!(13878&n.flags);if(13878&n.subtreeFlags||r){r=Bf.T,Bf.T=null;var i=Ff.p;Ff.p=gd;var o=Ew;Ew|=bw;try{rw=t,iw=e,dr(),As(n,e),iw=rw=null,t=Ik;var a=Gn(e.containerInfo),s=t.focusedElem,l=t.selectionRange;if(a!==s&&s&&s.ownerDocument&&qn(s.ownerDocument.documentElement,s)){if(null!==l&&Yn(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var f=s.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),p=s.textContent.length,m=Math.min(l.start,p),b=void 0===l.end?m:Math.min(l.end,p);!h.extend&&m>b&&(a=b,b=m,m=a);var v=Wn(s,m),y=Wn(s,b);if(v&&y&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var w=f.createRange();w.setStart(v.node,v.offset),h.removeAllRanges(),m>b?(h.addRange(w),h.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),h.addRange(w))}}}}for(f=[],h=s;h=h.parentNode;)1===h.nodeType&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<f.length;s++){var g=f[s];g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}wA=!!Tk,Ik=Tk=null}finally{Ew=o,Ff.p=i,Bf.T=r}}e.current=n,vg=hg}}function gl(){if(vg===hg){vg=fg;var e=Tg;if(null!==e){nb=Qm();var n=tb,t=nb}e=yg,t=gg;var r=!!(8772&(n=wg).flags);if(8772&n.subtreeFlags||r){r=Bf.T,Bf.T=null;var i=Ff.p;Ff.p=gd;var o=Ew;Ew|=bw;try{rw=t,iw=e,dr(),ps(e,n.alternate,n),iw=rw=null}finally{Ew=o,Ff.p=i,Bf.T=r}}e=Ag,n=Sg,tb=Qm(),e=null===n?e:nb,n=tb,t=Cg===lg,r=og,null!==rb?ut(e,n,rb,!1,r):!_p||n<=e||r&&r.run(function(){}.bind()),vg=pg}}function kl(){if(vg===mg||vg===pg){if(vg===mg){var e=tb,n=tb=Qm(),t=Cg===lg;Cg!==lg&&(Cg=cg)}vg=fg,ed(),e=yg;var r=wg;n=gg,t=Eg;var i=0!==r.actualDuration||!!(10256&r.subtreeFlags)||!!(10256&r.flags);i?vg=bg:(vg=fg,wg=yg=null,xl(e,e.pendingLanes),Fg=0,Lg=null);var o=e.pendingLanes;if(0===o&&(ag=null),i||Ll(e),o=se(n),r=r.stateNode,fd&&"function"==typeof fd.onCommitFiberRoot)try{var a=!(128&~r.current.flags);switch(o){case gd:var s=rd;break;case kd:s=id;break;case Ad:s=od;break;case xd:s=sd;break;default:s=od}fd.onCommitFiberRoot(cd,r,s,a)}catch(f){dd||(dd=!0)}if(hd&&e.memoizedUpdaters.clear(),dw.forEach(function(e){return e()}),null!==t){a=Bf.T,s=Ff.p,Ff.p=gd,Bf.T=null;try{var l=e.onRecoverableError;for(r=0;r<t.length;r++){var u=t[r],c=Al(u.stack);H(u.source,l,u.value,c)}}finally{Bf.T=a,Ff.p=s}}3&gg&&El(),Pl(e),o=e.pendingLanes,261930&n&&42&o?(Db=!0,e===Og?Mg++:(Mg=0,Og=e)):Mg=0,i||nl(n,tb),jl(0)}}function Al(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){}}),e}function xl(e,n){0===(e.pooledCacheLanes&=n)&&null!=(n=e.pooledCache)&&(e.pooledCache=null,sr(n))}function El(){return wl(),gl(),kl(),Sl()}function Sl(){if(vg!==bg)return!1;var e=yg,n=kg;kg=0;var t=se(gg),r=Ad>t?Ad:t;t=Bf.T;var i=Ff.p;try{Ff.p=r,Bf.T=null;var o=xg;xg=null,r=yg;var a,s=gg;if(vg=fg,wg=yg=null,gg=0,(Ew&(mw|bw))!==pw)throw Error("Cannot flush passive effects while already rendering.");if(et(s),Rg=!0,Ng=!1,rb=null,a=nd(),Cg===cg);else{var l=tb;!_p||a<=l||og&&og.run(function(){}.bind())}l=Ew,Ew|=bw;var u=r.current;dr(),Vs(u);var c=r.current;u=Ag,dr(),Bs(r,c,s,o,u),Ll(r),Ew=l;var f=nd();if(c=a,u=og,null!==rb?ut(c,f,rb,!0,u):!_p||f<=c||u&&u.run(function(){}.bind()),nl(s,f),jl(0),Ng?r===Lg?Fg++:(Fg=0,Lg=r):Fg=0,Ng=Rg=!1,fd&&"function"==typeof fd.onPostCommitFiberRoot)try{fd.onPostCommitFiberRoot(cd,r)}catch(h){dd||(dd=!0)}var d=r.current.stateNode;return d.effectDuration=0,d.passiveEffectDuration=0,!0}finally{Ff.p=i,Bf.T=t,xl(e,n)}}function Cl(e,n,t){xr(n=Rt(t,n)),null!==(e=Zr(e,n=ia(e.stateNode,n,2),2))&&(ee(e,2),Pl(e))}function Tl(e,n,t){if(3===e.tag)Cl(e,e,t);else for(;null!==n;){if(3===n.tag)return void Cl(n,e,t);if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ag||!ag.has(r)))return xr(e=Rt(t,e)),void(null!==(r=Zr(n,t=oa(2),2))&&(aa(t,r,n,e),ee(r,2),Pl(r)))}n=n.return}}function Il(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new hw;var i=/* @__PURE__ */new Set;r.set(n,i)}else void 0===(i=r.get(n))&&(i=/* @__PURE__ */new Set,r.set(n,i));i.has(t)||(zw=!0,i.add(t),r=Ml.bind(null,e,n,t),hd&&Ul(e,t),n.then(r,r))}function Ml(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,127&t?0>db&&(fb=db=Qm(),hb=Zm("Promise Resolved"),pb=$m):4194048&t&&0>xb&&(kb=xb=Qm(),Sb=Zm("Promise Resolved"),Eb=$m),Gs()&&Bf.actQueue,Sw===e&&(Tw&t)===t&&(qw===kw||qw===gw&&(62914560&Tw)===Tw&&nd()-$w<ng?(Ew&mw)===pw&&tl(e,0):Jw|=t,Xw===Tw&&(Xw=0)),Pl(e)}function Ol(e,n){0===n&&(n=_()),null!==(e=ht(e,n))&&(ee(e,n),Pl(e))}function Rl(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Ol(e,t)}function Nl(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(t=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode.fe;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Ol(e,t)}function Bl(e,n,t){if(67117056&n.subtreeFlags)for(n=n.child;null!==n;){var r=e,i=n,o=i.type===wf;o=t||o,22!==i.tag?67108864&i.flags?o&&H(i,Fl,r,i):Bl(r,i,o):null===i.memoizedState&&(o&&8192&i.flags?H(i,Fl,r,i):67108864&i.subtreeFlags&&H(i,Bl,r,i,o)),n=n.sibling}}function Fl(e,n){J(!0);try{Cs(n),Ws(n),Is(e,n.alternate,n,!1),Ls(e,n,0,null,!1,0)}finally{J(!1)}}function Ll(e){var n=!0;e.current.mode&(wm|gm)||(n=!1),Bl(e,e.current,n)}function Dl(e){if((Ew&mw)===pw){var n=e.tag;if(3===n||1===n||0===n||11===n||14===n||15===n){if(n=g(e)||"ReactComponent",null!==Dg){if(Dg.has(n))return;Dg.add(n)}else Dg=/* @__PURE__ */new Set([n]);H(e,function(){})}}}function Ul(e,n){hd&&e.memoizedUpdaters.forEach(function(t){oe(e,t,n)})}function Pl(e){e!==Hg&&null===e.next&&(null===Hg?jg=Hg=e:Hg=Hg.next=e),Wg=!0,null!==Bf.actQueue?zg||(zg=!0,Yl()):Vg||(Vg=!0,Yl())}function jl(e,n){if(!qg&&Wg){qg=!0;do{for(var t=!1,r=jg;null!==r;){if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-pd(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(t=!0,ql(r,o))}else o=Tw,!(3&(o=X(r,r===Sw?o:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Fk)))||Q(r,o)||(t=!0,ql(r,o));r=r.next}}while(t);qg=!1}}function Hl(){Rk=window.event,Vl()}function Vl(){Wg=zg=Vg=!1;var e,n=0;0!==Gg&&((e=window.event)&&"popstate"===e.type?e!==Ok&&(Ok=e,1):(Ok=null,0))&&(n=Gg);for(var t=nd(),r=null,i=jg;null!==i;){var o=i.next,a=zl(i,t);0===a?(i.next=null,null===r?jg=o:r.next=o,null===o&&(Hg=r)):(r=i,(0!==n||3&a)&&(Wg=!0)),i=o}vg!==fg&&vg!==bg||jl(n),0!==Gg&&(Gg=0)}function zl(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-pd(o),s=1<<a,l=i[a];-1===l?0!==(s&t)&&0===(s&r)||(i[a]=Z(s,n)):l<=n&&(e.expiredLanes|=s),o&=~s}if(t=Tw,t=X(e,e===(n=Sw)?t:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Fk),r=e.callbackNode,0===t||e===n&&(Pw===Ow||Pw===Uw)||null!==e.cancelPendingCommit)return null!==r&&Gl(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&t)||Q(e,t)){if((n=t&-t)===e.callbackPriority&&(null===Bf.actQueue||r===Yg))return n;switch(Gl(r),se(t)){case gd:case kd:t=id;break;case Ad:t=od;break;case xd:t=sd;break;default:t=od}return r=Wl.bind(null,e),null!==Bf.actQueue?(Bf.actQueue.push(r),t=Yg):t=Zf(t,r),e.callbackPriority=n,e.callbackNode=t,n}return null!==r&&Gl(r),e.callbackPriority=2,e.callbackNode=null,2}function Wl(e,n){if(Db=Lb=!1,Rk=window.event,vg!==fg&&vg!==bg)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Cg===sg&&(Cg=ug),El()&&e.callbackNode!==t)return null;var r=Tw;return 0===(r=X(e,e===Sw?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Fk))?null:(Xs(e,r,n),zl(e,nd()),null!=e.callbackNode&&e.callbackNode===t?Wl.bind(null,e):null)}function ql(e,n){if(El())return null;Lb=Db,Db=!1,Xs(e,n,!0)}function Gl(e){e!==Yg&&null!==e&&_f(e)}function Yl(){null!==Bf.actQueue&&Bf.actQueue.push(function(){return Vl(),null}),Dk(function(){(Ew&(mw|bw))!==pw?Zf(rd,Hl):Vl()})}function Jl(){if(0===Gg){var e=jb;0===e&&(e=vd,!(261888&(vd<<=1))&&(vd=256)),Gg=e}return Gg}function Kl(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(q(e),mn(""+e))}function Xl(e,n){var t=n.ownerDocument.createElement("input");return t.name=n.name,t.value=n.value,e.id&&t.setAttribute("form",e.id),n.parentNode.insertBefore(t,n),e=new FormData(e),t.parentNode.removeChild(t),e}function Ql(e,n,t){e.currentTarget=t;try{n(e)}catch(r){Wp(r)}e.currentTarget=null}function Zl(e,n){n=!!(4&n);for(var t=0;t<e.length;t++){var r=e[t];e:{var i=void 0,o=r.event;if(r=r.listeners,n)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;null!==l?H(l,Ql,o,s,u):Ql(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;null!==l?H(l,Ql,o,s,u):Ql(o,s,u),i=l}}}}function _l(e,n){Kg.has(e);var t=n[Id];void 0===t&&(t=n[Id]=/* @__PURE__ */new Set);var r=e+"__bubble";t.has(r)||(nu(n,e,2,!1),t.add(r))}function $l(e,n,t){Kg.has(e);var r=0;n&&(r|=4),nu(t,e,r,n)}function eu(e){if(!e[Xg]){e[Xg]=!0,Bd.forEach(function(n){"selectionchange"!==n&&(Kg.has(n)||$l(n,!1,e),$l(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[Xg]||(n[Xg]=!0,$l("selectionchange",!1,n))}}function nu(e,n,t,r){switch(Wc(n)){case gd:var i=Pc;break;case kd:i=jc;break;default:i=Hc}t=i.bind(null,n,t,e),i=void 0,!Nh||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(i=!0),r?void 0!==i?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):void 0!==i?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function tu(e,n,t,r,i){var o=r;if(!(1&n||2&n||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&a.stateNode.containerInfo===i)return;a=a.return}for(;null!==s;){if(null===(a=fe(s)))return;if(5===(l=a.tag)||6===l||26===l||27===l){r=o=a;continue e}s=s.parentNode}}r=r.return}wn(function(){var r=o,i=vn(t),a=[];e:{var s=Up.get(e);if(void 0!==s){var l=Vh,u=e;switch(e){case"keypress":if(0===An(t))break e;case"keydown":case"keyup":l=np;break;case"focusin":u="focus",l=Jh;break;case"focusout":u="blur",l=Jh;break;case"beforeblur":case"afterblur":l=Jh;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Yh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=rp;break;case Op:case Rp:case Np:l=Kh;break;case Dp:l=ip;break;case"scroll":case"scrollend":l=Wh;break;case"wheel":l=op;break;case"copy":case"cut":case"paste":l=Xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=tp;break;case"toggle":case"beforetoggle":l=ap}var c=!!(4&n),f=!c&&("scroll"===e||"scrollend"===e),h=c?null!==s?s+"Capture":null:s;c=[];for(var p,m=r;null!==m;){var b=m;if(p=b.stateNode,5!==(b=b.tag)&&26!==b&&27!==b||null===p||null===h||null!=(b=gn(m,h))&&c.push(ru(m,b,p)),f)break;m=m.return}0<c.length&&(s=new l(s,u,null,t,i),a.push({event:s,listeners:c}))}}if(!(7&n)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||t===Th||!(u=t.relatedTarget||t.fromElement)||!fe(u)&&!u[Td])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=t.relatedTarget||t.toElement)?fe(u):null)&&(f=d(u),c=u.tag,u!==f||5!==c&&27!==c&&6!==c)&&(u=null)):(l=null,u=r),l!==u)){if(c=Gh,b="onMouseLeave",h="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=tp,b="onPointerLeave",h="onPointerEnter",m="pointer"),f=null==l?s:he(l),p=null==u?s:he(u),(s=new c(b,m+"leave",l,t,i)).target=f,s.relatedTarget=p,b=null,fe(i)===r&&((c=new c(h,m+"enter",u,t,i)).target=p,c.relatedTarget=f,b=c),f=b,l&&u)e:{for(c=ou,m=u,p=0,b=h=l;b;b=c(b))p++;b=0;for(var v=m;v;v=c(v))b++;for(;0<p-b;)h=c(h),p--;for(;0<b-p;)m=c(m),b--;for(;p--;){if(h===m||null!==m&&h===m.alternate){c=h;break e}h=c(h),m=c(m)}c=null}else c=null;null!==l&&au(a,s,l,c,!1),null!==u&&null!==f&&au(a,f,u,c,!0)}if("select"===(l=(s=r?he(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var y=Fn;else if(On(s))if(gp)y=Hn;else{y=Pn;var w=Un}else!(l=s.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&fn(r.elementType)&&(y=Fn):y=jn;switch(y&&(y=y(e,r))?Rn(a,y,t,i):(w&&w(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&Be(s,"number",s.value)),w=r?he(r):window,e){case"focusin":(On(w)||"true"===w.contentEditable)&&(xp=w,Ep=r,Sp=null);break;case"focusout":Sp=Ep=xp=null;break;case"mousedown":Cp=!0;break;case"contextmenu":case"mouseup":case"dragend":Cp=!1,Jn(a,t,i);break;case"selectionchange":if(Ap)break;case"keydown":case"keyup":Jn(a,t,i)}var g;if(up)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else bp?In(e,t)&&(k="onCompositionEnd"):"keydown"===e&&t.keyCode===lp&&(k="onCompositionStart");k&&(dp&&"ko"!==t.locale&&(bp||"onCompositionStart"!==k?"onCompositionEnd"===k&&bp&&(g=kn()):(Ph="value"in(Uh=i)?Uh.value:Uh.textContent,bp=!0)),0<(w=iu(r,k)).length&&(k=new Qh(k,e,null,t,i),a.push({event:k,listeners:w}),(g||null!==(g=Mn(t)))&&(k.data=g))),(g=fp?function(e,n){switch(e){case"compositionend":return Mn(n);case"keypress":return n.which!==hp?null:(mp=!0,pp);case"textInput":return(e=n.data)===pp&&mp?null:e;default:return null}}(e,t):function(e,n){if(bp)return"compositionend"===e||!up&&In(e,n)?(e=kn(),jh=Ph=Uh=null,bp=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return dp&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(k=iu(r,"onBeforeInput")).length&&(w=new Zh("onBeforeInput","beforeinput",null,t,i),a.push({event:w,listeners:k}),w.data=g),function(e,n,t,r,i){if("submit"===n&&t&&t.stateNode===i){var o=Kl((i[Cd]||null).action),a=r.submitter;a&&null!==(n=(n=a[Cd]||null)?Kl(n.formAction):a.getAttribute("formAction"))&&(o=n,a=null);var s=new Vh("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Gg){var e=a?Xl(i,a):new FormData(i),n={pending:!0,data:e,method:i.method,action:o};Object.freeze(n),Ro(t,n,null,e)}}else"function"==typeof o&&(s.preventDefault(),n={pending:!0,data:e=a?Xl(i,a):new FormData(i),method:i.method,action:o},Object.freeze(n),Ro(t,n,o,e))},currentTarget:i}]})}}(a,e,r,t,i)}Zl(a,n)})}function ru(e,n,t){return{instance:e,listener:n,currentTarget:t}}function iu(e,n){for(var t=n+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=gn(e,t))&&r.unshift(ru(e,i,o)),null!=(i=gn(e,n))&&r.push(ru(e,i,o))),3===e.tag)return r;e=e.return}return[]}function ou(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function au(e,n,t,r,i){for(var o=n.ae,a=[];null!==t&&t!==r;){var s=t,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=gn(t,o))&&a.unshift(ru(t,u,l)):i||null!=(u=gn(t,o))&&a.push(ru(t,u,l))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}function su(e,n){!function(e,n){var t,r=[];for(t in n)hn(e,t)||r.push(t);n=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length||r.length}(e,n),"input"!==e&&"textarea"!==e&&"select"!==e||null==n||null!==n.value||gh||(gh=!0,"select"===e&&n.multiple);var t={registrationNameDependencies:Fd,possibleRegistrationNames:Ld};fn(e)||"string"==typeof n.is||function(e,n,t){var r,i=[];for(r in n)pn(e,r,n[r],t)||i.push(r);n=i.map(function(e){return"`"+e+"`"}).join(", "),1===i.length||i.length}(e,n,t),n.contentEditable&&!n.suppressContentEditableWarning&&n.children}function lu(e,n,t,r){n!==t&&(t=fu(t),fu(n)!==t&&(r[e]=n))}function uu(e,n){}function cu(e,n){return(e=e.namespaceURI===dh||e.namespaceURI===hh?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=n,e.innerHTML}function fu(e){return z(e)&&W(e),("string"==typeof e?e:""+e).replace(ik,"\n").replace(ok,"")}function du(e,n){return n=fu(n),fu(e)===n}function hu(e,n,t,r,i,o){switch(t){case"children":"string"==typeof r?(sn(r,n,!1),"body"===n||"textarea"===n&&""===r||ln(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(sn(""+r,n,!1),"body"!==n&&ln(e,""+r));break;case"className":Ae(e,"class",r);break;case"tabIndex":Ae(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ae(e,t,r);break;case"style":cn(e,r,o);break;case"data":if("object"!==n){Ae(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==n||"href"!==t)){e.removeAttribute(t);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(t);break}q(r),r=mn(""+r),e.setAttribute(t,r);break;case"action":case"formAction":if(null!=r&&("form"===n?"formAction"===t||"function"==typeof r&&(null==i.encType&&null==i.method||nk||(nk=!0),null==i.target||ek||(ek=!0)):("input"===n||"button"===n)&&("action"===t||("input"===n&&"submit"!==i.type&&"image"!==i.type&&!_g||"button"===n&&null!=i.type&&"submit"!==i.type&&!_g?_g=!0:"function"==typeof r&&(null==i.name||$g||($g=!0),null==i.formEncType&&null==i.formMethod||nk||(nk=!0),null==i.formTarget||ek||(ek=!0))))),"function"==typeof r){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===t?("input"!==n&&hu(e,n,"name",i.name,i,null),hu(e,n,"formEncType",i.formEncType,i,null),hu(e,n,"formMethod",i.formMethod,i,null),hu(e,n,"formTarget",i.formTarget,i,null)):(hu(e,n,"encType",i.encType,i,null),hu(e,n,"method",i.method,i,null),hu(e,n,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(t);break}q(r),r=mn(""+r),e.setAttribute(t,r);break;case"onClick":null!=r&&(e.onclick=bn);break;case"onScroll":null!=r&&_l("scroll",e);break;case"onScrollEnd":null!=r&&_l("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("ve"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(t=r.ve)){if(null!=i.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=t}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}q(r),t=mn(""+r),e.setAttributeNS(ak,"xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(q(r),e.setAttribute(t,""+r)):e.removeAttribute(t);break;case"inert":""!==r||rk[t]||(rk[t]=!0);case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===r?e.setAttribute(t,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(q(r),e.setAttribute(t,r)):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(q(r),e.setAttribute(t,r)):e.removeAttribute(t);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(t):(q(r),e.setAttribute(t,r));break;case"popover":_l("beforetoggle",e),_l("toggle",e),ke(e,"popover",r);break;case"xlinkActuate":xe(e,ak,"xlink:actuate",r);break;case"xlinkArcrole":xe(e,ak,"xlink:arcrole",r);break;case"xlinkRole":xe(e,ak,"xlink:role",r);break;case"xlinkShow":xe(e,ak,"xlink:show",r);break;case"xlinkTitle":xe(e,ak,"xlink:title",r);break;case"xlinkType":xe(e,ak,"xlink:type",r);break;case"xmlBase":xe(e,sk,"xml:base",r);break;case"xmlLang":xe(e,sk,"xml:lang",r);break;case"xmlSpace":xe(e,sk,"xml:space",r);break;case"is":ke(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":tk||null==r||"object"!=typeof r||(tk=!0);default:!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1]?ke(e,t=dn(t),r):Fd.hasOwnProperty(t)}}function pu(e,n,t,r,i,o){switch(t){case"style":cn(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("ve"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(t=r.ve)){if(null!=i.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=t}}break;case"children":"string"==typeof r?ln(e,r):("number"==typeof r||"bigint"==typeof r)&&ln(e,""+r);break;case"onScroll":null!=r&&_l("scroll",e);break;case"onScrollEnd":null!=r&&_l("scrollend",e);break;case"onClick":null!=r&&(e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Fd.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(i=t.endsWith("Capture"),n=t.slice(2,i?t.length-7:void 0),"function"==typeof(o=null!=(o=e[Cd]||null)?o[t]:null)&&e.removeEventListener(n,o,i),"function"!=typeof r)?t in e?e[t]=r:!0===r?e.setAttribute(t,""):ke(e,t,r):("function"!=typeof o&&null!==o&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,r,i)))}}function mu(e,n,t){switch(su(n,t),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_l("error",e),_l("load",e);var r,i=!1,o=!1;for(r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hu(e,n,r,a,t,null)}}return o&&hu(e,n,"srcSet",t.srcSet,t,null),void(i&&hu(e,n,"src",t.src,t,null));case"input":ye(0,t),_l("invalid",e);var s=r=a=o=null,l=null,u=null;for(i in t)if(t.hasOwnProperty(i)){var c=t[i];if(null!=c)switch(i){case"name":o=c;break;case"type":a=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(null!=c)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:hu(e,n,i,c,t,null)}}return Oe(0,t),void Ne(e,r,s,l,u,a,o,!1);case"select":for(o in ye(0,t),_l("invalid",e),i=a=r=null,t)if(t.hasOwnProperty(o)&&null!=(s=t[o]))switch(o){case"value":r=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:hu(e,n,o,s,t,null)}return De(e,t),n=r,t=a,e.multiple=!!i,void(null!=n?Le(e,!!i,n,!1):null!=t&&Le(e,!!i,t,!0));case"textarea":for(a in ye(0,t),_l("invalid",e),r=o=i=null,t)if(t.hasOwnProperty(a)&&null!=(s=t[a]))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:hu(e,n,a,s,t,null)}return Ue(0,t),void je(e,i,o,r);case"option":for(l in Fe(0,t),t)t.hasOwnProperty(l)&&null!=(i=t[l])&&("selected"===l?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:hu(e,n,l,i,t,null));return;case"dialog":_l("beforetoggle",e),_l("toggle",e),_l("cancel",e),_l("close",e);break;case"iframe":case"object":_l("load",e);break;case"video":case"audio":for(i=0;i<Jg.length;i++)_l(Jg[i],e);break;case"image":_l("error",e),_l("load",e);break;case"details":_l("toggle",e);break;case"embed":case"source":case"link":_l("error",e),_l("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in t)if(t.hasOwnProperty(u)&&null!=(i=t[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hu(e,n,u,i,t,null)}return;default:if(fn(n)){for(c in t)t.hasOwnProperty(c)&&void 0!==(i=t[c])&&pu(e,n,c,i,t,void 0);return}}for(s in t)t.hasOwnProperty(s)&&null!=(i=t[s])&&hu(e,n,s,i,t,null)}function bu(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function vu(e){var n={};e=e.style;for(var t=0;t<e.length;t++){var r=e[t];n[r]=e.getPropertyValue(r)}return n}function yu(e,n,t){if(null!=n&&"object"!=typeof n);else{var r,i,o=r="";for(i in n)if(n.hasOwnProperty(i)){var a=n[i];null!=a&&"boolean"!=typeof a&&""!==a&&(0===i.indexOf("--")?(G(a),r+=o+i+":"+(""+a).trim()):"number"!=typeof a||0===a||fh.has(i)?(G(a),r+=o+i.replace(rh,"-$1").toLowerCase().replace(ih,"-ms-")+":"+(""+a).trim()):r+=o+i.replace(rh,"-$1").toLowerCase().replace(ih,"-ms-")+":"+a+"px",o=";")}r=r||null,(n=e.getAttribute("style"))!==r&&(r=fu(r),fu(n)!==r&&(t.style=vu(e)))}}function wu(e,n,t,r,i,o){if(i.delete(t),null===(e=e.getAttribute(t)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(q(r),e===""+r)return}lu(n,e,r,o)}function gu(e,n,t,r,i,o){if(i.delete(t),null===(e=e.getAttribute(t))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}lu(n,e,r,o)}function ku(e,n,t,r,i,o){if(i.delete(t),null===(e=e.getAttribute(t)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(q(r),e===""+r)return}lu(n,e,r,o)}function Au(e,n,t,r,i,o){if(i.delete(t),null===(e=e.getAttribute(t)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(q(r),e===""+r))return}lu(n,e,r,o)}function xu(e,n,t,r,i,o){if(i.delete(t),null===(e=e.getAttribute(t)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(q(r),e===(t=mn(""+r)))return}lu(n,e,r,o)}function Eu(e,n,t,r){for(var i={},o=/* @__PURE__ */new Set,a=e.attributes,s=0;s<a.length;s++)switch(a[s].name.toLowerCase()){case"value":case"checked":case"selected":break;default:o.add(a[s].name)}if(fn(n)){for(var l in t)if(t.hasOwnProperty(l)){var u=t[l];if(null!=u)if(Fd.hasOwnProperty(l))"function"!=typeof u&&uu();else if(!0!==t.suppressHydrationWarning)switch(l){case"children":"string"!=typeof u&&"number"!=typeof u||lu("children",e.textContent,u,i);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":a=e.innerHTML,null!=(u=u?u.ve:void 0)&&lu(l,a,u=cu(e,u),i);continue;case"style":o.delete(l),yu(e,u,i);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(l.toLowerCase());continue;case"className":o.delete("class"),lu("className",a=ge(e,"class",u),u,i);continue;default:r.context===Ek&&"svg"!==n&&"math"!==n?o.delete(l.toLowerCase()):o.delete(l),lu(l,a=ge(e,l,u),u,i)}}}else for(u in t)if(t.hasOwnProperty(u)&&null!=(l=t[u]))if(Fd.hasOwnProperty(u))"function"!=typeof l&&uu();else if(!0!==t.suppressHydrationWarning)switch(u){case"children":"string"!=typeof l&&"number"!=typeof l||lu("children",e.textContent,l,i);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":a=e.innerHTML,null!=(l=l?l.ve:void 0)&&a!==(l=cu(e,l))&&(i[u]={ve:a});continue;case"className":wu(e,u,"class",l,o,i);continue;case"tabIndex":wu(e,u,"tabindex",l,o,i);continue;case"style":o.delete(u),yu(e,l,i);continue;case"multiple":o.delete(u),lu(u,e.multiple,l,i);continue;case"muted":o.delete(u),lu(u,e.muted,l,i);continue;case"autoFocus":o.delete("autofocus"),lu(u,e.autofocus,l,i);continue;case"data":if("object"!==n){o.delete(u),lu(u,a=e.getAttribute("data"),l,i);continue}case"src":case"href":if(!(""!==l||"a"===n&&"href"===u||"object"===n&&"data"===u))continue;xu(e,u,u,l,o,i);continue;case"action":case"formAction":if(a=e.getAttribute(u),"function"==typeof l){o.delete(u.toLowerCase()),"formAction"===u?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}if(a===lk){o.delete(u.toLowerCase()),lu(u,"function",l,i);continue}xu(e,u,u.toLowerCase(),l,o,i);continue;case"xlinkHref":xu(e,u,"xlink:href",l,o,i);continue;case"contentEditable":ku(e,u,"contenteditable",l,o,i);continue;case"spellCheck":ku(e,u,"spellcheck",l,o,i);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":ku(e,u,u,l,o,i);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":gu(e,u,u.toLowerCase(),l,o,i);continue;case"capture":case"download":e:{s=e;var c=a=u,f=i;if(o.delete(c),null===(s=s.getAttribute(c)))switch(typeof l){case"undefined":case"function":case"symbol":break e;default:if(!1===l)break e}else if(null!=l)switch(typeof l){case"function":case"symbol":break;case"boolean":if(!0===l&&""===s)break e;break;default:if(q(l),s===""+l)break e}lu(a,s,l,f)}continue;case"cols":case"rows":case"size":case"span":e:{if(s=e,c=a=u,f=i,o.delete(c),null===(s=s.getAttribute(c)))switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(l)||1>l)break e}else if(null!=l)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(l)||1>l)&&(q(l),s===""+l))break e}lu(a,s,l,f)}continue;case"rowSpan":Au(e,u,"rowspan",l,o,i);continue;case"start":Au(e,u,u,l,o,i);continue;case"xHeight":wu(e,u,"x-height",l,o,i);continue;case"xlinkActuate":wu(e,u,"xlink:actuate",l,o,i);continue;case"xlinkArcrole":wu(e,u,"xlink:arcrole",l,o,i);continue;case"xlinkRole":wu(e,u,"xlink:role",l,o,i);continue;case"xlinkShow":wu(e,u,"xlink:show",l,o,i);continue;case"xlinkTitle":wu(e,u,"xlink:title",l,o,i);continue;case"xlinkType":wu(e,u,"xlink:type",l,o,i);continue;case"xmlBase":wu(e,u,"xml:base",l,o,i);continue;case"xmlLang":wu(e,u,"xml:lang",l,o,i);continue;case"xmlSpace":wu(e,u,"xml:space",l,o,i);continue;case"inert":""!==l||rk[u]||(rk[u]=!0),gu(e,u,u,l,o,i);continue;default:if(!(2<u.length)||"o"!==u[0]&&"O"!==u[0]||"n"!==u[1]&&"N"!==u[1]){s=dn(u),a=!1,r.context===Ek&&"svg"!==n&&"math"!==n?o.delete(s.toLowerCase()):(c=u.toLowerCase(),null!==(c=mh.hasOwnProperty(c)&&mh[c]||null)&&c!==u&&(a=!0,o.delete(c)),o.delete(s));e:if(c=e,f=s,s=l,we(f))if(c.hasAttribute(f))c=c.getAttribute(f),q(s),s=c===""+s?s:c;else{switch(typeof s){case"function":case"symbol":break e;case"boolean":if("data-"!==(c=f.toLowerCase().slice(0,5))&&"aria-"!==c)break e}s=void 0===s?void 0:null}else s=void 0;a||lu(u,s,l,i)}}return 0<o.size&&!0!==t.suppressHydrationWarning&&function(e,n,t){n.forEach(function(n){t[bu(n)]="style"===n?vu(e):e.getAttribute(n)})}(e,o,i),0===Object.keys(i).length?null:i}function Su(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Cu(e){return 9===e.nodeType?e:e.ownerDocument}function Tu(e){switch(e){case hh:return Sk;case dh:return Ck;default:return Ek}}function Iu(e,n){if(e===Ek)switch(n){case"svg":return Sk;case"math":return Ck;default:return Ek}return e===Sk&&"foreignObject"===n?Ek:e}function Mu(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"bigint"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.ve}function Ou(){var e=window.event;return e&&e!==Rk?e.type:null}function Ru(){var e=window.event;return e&&e!==Rk?e.timeStamp:-1.1}function Nu(e){setTimeout(function(){throw e})}function Bu(e,n,t){switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&e.focus();break;case"img":t.src?e.src=t.src:t.srcSet&&(e.srcset=t.srcSet)}}function Fu(){}function Lu(e,n,t,r){!function(e,n,t,r){switch(su(n,r),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,s=null,l=null,u=null,c=null;for(h in t){var f=t[h];if(t.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(h)||hu(e,n,h,null,r,f)}}for(var d in r){var h=r[d];if(f=t[d],r.hasOwnProperty(d)&&(null!=h||null!=f))switch(d){case"type":o=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":a=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:h!==f&&hu(e,n,d,h,r,f)}}return n="checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,n||!r||Zg||(Zg=!0),!n||r||Qg||(Qg=!0),void Re(e,a,s,l,u,c,o,i);case"select":for(o in h=a=s=d=null,t)if(l=t[o],t.hasOwnProperty(o)&&null!=l)switch(o){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(o)||hu(e,n,o,null,r,l)}for(i in r)if(o=r[i],l=t[i],r.hasOwnProperty(i)&&(null!=o||null!=l))switch(i){case"value":d=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:o!==l&&hu(e,n,i,o,r,l)}return r=s,n=a,t=h,void(null!=d?Le(e,!!n,d,!1):!!t!=!!n&&(null!=r?Le(e,!!n,r,!0):Le(e,!!n,n?[]:"",!1)));case"textarea":for(s in h=d=null,t)if(i=t[s],t.hasOwnProperty(s)&&null!=i&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:hu(e,n,s,null,r,i)}for(a in r)if(i=r[a],o=t[a],r.hasOwnProperty(a)&&(null!=i||null!=o))switch(a){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==o&&hu(e,n,a,i,r,o)}return void Pe(e,d,h);case"option":for(var p in t)d=t[p],t.hasOwnProperty(p)&&null!=d&&!r.hasOwnProperty(p)&&("selected"===p?e.selected=!1:hu(e,n,p,null,r,d));for(l in r)d=r[l],h=t[l],!r.hasOwnProperty(l)||d===h||null==d&&null==h||("selected"===l?e.selected=d&&"function"!=typeof d&&"symbol"!=typeof d:hu(e,n,l,d,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in t)d=t[m],t.hasOwnProperty(m)&&null!=d&&!r.hasOwnProperty(m)&&hu(e,n,m,null,r,d);for(u in r)if(d=r[u],h=t[u],r.hasOwnProperty(u)&&d!==h&&(null!=d||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:hu(e,n,u,d,r,h)}return;default:if(fn(n)){for(var b in t)d=t[b],t.hasOwnProperty(b)&&void 0!==d&&!r.hasOwnProperty(b)&&pu(e,n,b,void 0,r,d);for(c in r)d=r[c],h=t[c],!r.hasOwnProperty(c)||d===h||void 0===d&&void 0===h||pu(e,n,c,d,r,h);return}}for(var v in t)d=t[v],t.hasOwnProperty(v)&&null!=d&&!r.hasOwnProperty(v)&&hu(e,n,v,null,r,d);for(f in r)d=r[f],h=t[f],!r.hasOwnProperty(f)||d===h||null==d&&null==h||hu(e,n,f,d,r,h)}(e,n,t,r),e[Cd]=r}function Du(e){ln(e,"")}function Uu(e,n,t){e.nodeValue=t}function Pu(e){if(!e.Te){var n=e[Cd]||null;if(null!==n){var t=de(e);null!==t&&("string"==typeof n.children||"number"==typeof n.children||null!=n.dangerouslySetInnerHTML)&&(e.Te=!0,H(t,function(){}))}}}function ju(e){return"head"===e}function Hu(e,n){e.removeChild(n)}function Vu(e,n){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(n)}function zu(e,n){var t=n,r=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&8===i.nodeType)if((t=i.data)===hk||t===fk){if(0===r)return e.removeChild(i),void _c(n);r--}else if(t===dk||t===pk||t===mk||t===bk||t===ck)r++;else if(t===vk)cc(e.ownerDocument.documentElement);else if(t===wk){cc(t=e.ownerDocument.head);for(var o=t.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Nd]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=a}}else t===yk&&cc(e.ownerDocument.body);t=i}while(t);_c(n)}function Wu(e,n){var t=e;e=0;do{var r=t.nextSibling;if(1===t.nodeType?n?(t.ye=t.style.display,t.style.display="none"):(t.style.display=t.ye||"",""===t.getAttribute("style")&&t.removeAttribute("style")):3===t.nodeType&&(n?(t.we=t.nodeValue,t.nodeValue=""):t.nodeValue=t.we||""),r&&8===r.nodeType)if((t=r.data)===hk){if(0===e)break;e--}else t!==dk&&t!==pk&&t!==mk&&t!==bk||e++;t=r}while(t)}function qu(e){Wu(e,!0)}function Gu(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function Yu(e){e.nodeValue=""}function Ju(e){Wu(e,!1)}function Ku(e,n){n=null!=(n=n[xk])&&n.hasOwnProperty("display")?n.display:null,e.style.display=null==n||"boolean"==typeof n?"":(""+n).trim()}function Xu(e,n){e.nodeValue=n}function Qu(e){var n=e.firstChild;for(n&&10===n.nodeType&&(n=n.nextSibling);n;){var t=n;switch(n=n.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Qu(t),ce(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Zu(e,n){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ec(e.nextSibling)))return null}return e}function _u(e){return e.data===pk||e.data===mk}function $u(e){return e.data===bk||e.data===pk&&e.ownerDocument.readyState!==Ak}function ec(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if((n=e.data)===dk||n===bk||n===pk||n===mk||n===ck||n===gk||n===kk)break;if(n===hk||n===fk)return null}}return e}function nc(e){if(1===e.nodeType){for(var n=e.nodeName.toLowerCase(),t={},r=e.attributes,i=0;i<r.length;i++){var o=r[i];t[bu(o.name)]="style"===o.name.toLowerCase()?vu(e):o.value}return{type:n,props:t}}return 8===e.nodeType?e.data===ck?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function tc(e,n,t){return null===t||!0!==t[uk]?(e.nodeValue===n?e=null:(n=fu(n),e=fu(e.nodeValue)===n?null:e.nodeValue),e):null}function rc(e){e=e.nextSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(t===hk||t===fk){if(0===n)return ec(e.nextSibling);n--}else t!==dk&&t!==bk&&t!==pk&&t!==mk&&t!==ck||n++}e=e.nextSibling}return null}function ic(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(t===dk||t===bk||t===pk||t===mk||t===ck){if(0===n)return e;n--}else t!==hk&&t!==fk||n++}e=e.previousSibling}return null}function oc(e){_c(e)}function ac(e){_c(e)}function sc(e){_c(e)}function lc(e,n,t,r,i){switch(i&&an(e,r.ancestorInfo),n=Cu(t),e){case"html":if(!(e=n.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=n.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=n.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function uc(e,n,t,r){if(!t[Td]&&de(t))var i=t.tagName.toLowerCase();for(i=t.attributes;i.length;)t.removeAttributeNode(i[0]);mu(t,e,n),t[Sd]=r,t[Cd]=n}function cc(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ce(e)}function fc(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function dc(e,n,t){var r=tA;if(r&&"string"==typeof n&&n){var i=Me(n);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof t&&(i+='[crossorigin="'+t+'"]'),qk.has(i)||(qk.add(i),e={rel:e,crossOrigin:t,href:n},null===r.querySelector(i)&&(mu(n=r.createElement("link"),"link",e),me(n),r.head.appendChild(n)))}}function hc(e,n,t,r){var i=(i=Vf.current)?fc(i):null;if(!i)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(t=mc(t.href),(r=(n=pe(i).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=mc(t.href);var o=pe(i).hoistableStyles,a=o.get(e);if(!a&&(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:Pk,preload:null}},o.set(e,a),(o=i.querySelector(bc(e)))&&!o.be&&(a.instance=o,a.state.loading=jk|zk),!Wk.has(e))){var s={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy};Wk.set(e,s),o||function(e,n,t,r){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?r.loading=jk:(n=e.createElement("link"),r.preload=n,n.addEventListener("load",function(){return r.loading|=jk}),n.addEventListener("error",function(){return r.loading|=Hk}),mu(n,"link",t),me(n),e.head.appendChild(n))}(i,e,s,a.state)}if(n&&null===r)throw t="\n\n - "+pc(n)+"\n + "+pc(t),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+t);return a}if(n&&null!==r)throw t="\n\n - "+pc(n)+"\n + "+pc(t),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+t);return null;case"script":return n=t.async,"string"==typeof(t=t.src)&&n&&"function"!=typeof n&&"symbol"!=typeof n?(t=yc(t),(r=(n=pe(i).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function pc(e){var n=0,t="<link";return"string"==typeof e.rel?(n++,t+=' rel="'+e.rel+'"'):Qf.call(e,"rel")&&(n++,t+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(n++,t+=' href="'+e.href+'"'):Qf.call(e,"href")&&(n++,t+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(n++,t+=' precedence="'+e.precedence+'"'):Qf.call(e,"precedence")&&(n++,t+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(t+=" ..."),t+" />"}function mc(e){return'href="'+Me(e)+'"'}function bc(e){return'link[rel="stylesheet"]['+e+"]"}function vc(e){return pf({},e,{"data-precedence":e.precedence,precedence:null})}function yc(e){return'[src="'+Me(e)+'"]'}function wc(e){return"script[async]"+e}function gc(e,n,t){if(n.count++,null===n.instance)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+Me(t.href)+'"]');if(r)return n.instance=r,me(r),r;var i=pf({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return me(r=(e.ownerDocument||e).createElement("style")),mu(r,"style",i),kc(r,t.precedence,e),n.instance=r;case"stylesheet":i=mc(t.href);var o=e.querySelector(bc(i));if(o)return n.state.loading|=zk,n.instance=o,me(o),o;r=vc(t),(i=Wk.get(i))&&Ac(r,i),me(o=(e.ownerDocument||e).createElement("link"));var a=o;return a.be=new Promise(function(e,n){a.onload=e,a.onerror=n}),mu(o,"link",r),n.state.loading|=zk,kc(o,t.precedence,e),n.instance=o;case"script":return o=yc(t.src),(i=e.querySelector(wc(o)))?(n.instance=i,me(i),i):(r=t,(i=Wk.get(o))&&xc(r=pf({},t),i),me(i=(e=e.ownerDocument||e).createElement("script")),mu(i,"link",r),e.head.appendChild(i),n.instance=i);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else"stylesheet"===n.type&&(n.state.loading&zk)===Pk&&(r=n.instance,n.state.loading|=zk,kc(r,t.precedence,e));return n.instance}function kc(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===n)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(n=9===t.nodeType?t.head:t).insertBefore(e,n.firstChild)}function Ac(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.title&&(e.title=n.title)}function xc(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.integrity&&(e.integrity=n.integrity)}function Ec(e,n,t){if(null===rA){var r=/* @__PURE__ */new Map,i=rA=/* @__PURE__ */new Map;i.set(t,r)}else(r=(i=rA).get(t))||(r=/* @__PURE__ */new Map,i.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),i=0;i<t.length;i++){var o=t[i];if(!(o[Nd]||o[Sd]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&o.namespaceURI!==hh){var a=o.getAttribute(n)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function Sc(e,n,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===n?e.querySelector("head > title"):null)}function Cc(e){return"stylesheet"!==e.type||(e.state.loading&Vk)!==Pk}function Tc(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)Ic(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Ic(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uA=/* @__PURE__ */new Map,n.forEach(Mc,e),uA=null,Tc.call(e))}function Mc(e,n){if(!(n.state.loading&zk)){var t=uA.get(e);if(t)var r=t.get(lA);else{t=/* @__PURE__ */new Map,uA.set(e,t);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),r=a)}r&&t.set(lA,r)}a=(i=n.instance).getAttribute("data-precedence"),(o=t.get(a)||r)===r&&t.set(lA,i),t.set(a,i),this.count++,r=Tc.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),n.state.loading|=zk}}function Oc(e,n,t,r,i,o,a,s,l){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Fk,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$(0),this.hiddenUpdates=$(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=/* @__PURE__ */new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=/* @__PURE__ */new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(/* @__PURE__ */new Set);this.Me=t?"hydrateRoot()":"createRoot()"}function Rc(e,n,t,r,i,o,a,s,l,u,f,d){return e=new Oc(e,n,t,a,l,u,f,d,s),n=vm,!0===o&&(n|=wm|gm),o=c(3,null,null,n|=ym),e.current=o,o.stateNode=e,ar(n=or()),e.pooledCache=n,ar(n),o.memoizedState={element:r,isDehydrated:t,cache:n},Kr(o),e}function Nc(e){return e?e=hm:hm}function Bc(e,n,t,r,i,o){if(fd&&"function"==typeof fd.onScheduleFiberRoot)try{fd.onScheduleFiberRoot(cd,r,t)}catch(a){dd||(dd=!0)}i=Nc(i),null===r.context?r.context=i:r.pendingContext=i,Xf&&null!==Kf&&!vA&&(vA=!0),(r=Qr(n)).payload={element:t},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(t=Zr(e,r,n))&&(lr(n,"root.render()",null),Ks(t,e,n),_r(t,e,n))}function Fc(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function Lc(e,n){Fc(e,n),(e=e.alternate)&&Fc(e,n)}function Dc(e){if(13===e.tag||31===e.tag){var n=ht(e,67108864);null!==n&&Ks(n,e,67108864),Lc(e,67108864)}}function Uc(e){if(13===e.tag||31===e.tag){var n=Ys(e),t=ht(e,n=ie(n));null!==t&&Ks(t,e,n),Lc(e,n)}}function Pc(e,n,t,r){var i=Bf.T;Bf.T=null;var o=Ff.p;try{Ff.p=gd,Hc(e,n,t,r)}finally{Ff.p=o,Bf.T=i}}function jc(e,n,t,r){var i=Bf.T;Bf.T=null;var o=Ff.p;try{Ff.p=kd,Hc(e,n,t,r)}finally{Ff.p=o,Bf.T=i}}function Hc(e,n,t,r){if(wA){var i=Vc(r);if(null===i)tu(e,n,r,gA,t),qc(e,r);else if(function(e,n,t,r,i){switch(n){case"focusin":return AA=Gc(AA,e,n,t,r,i),!0;case"dragenter":return xA=Gc(xA,e,n,t,r,i),!0;case"mouseover":return EA=Gc(EA,e,n,t,r,i),!0;case"pointerover":var o=i.pointerId;return SA.set(o,Gc(SA.get(o)||null,e,n,t,r,i)),!0;case"gotpointercapture":return o=i.pointerId,CA.set(o,Gc(CA.get(o)||null,e,n,t,r,i)),!0}return!1}(i,e,n,t,r))r.stopPropagation();else if(qc(e,r),4&n&&-1<IA.indexOf(e)){for(;null!==i;){var o=de(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=K(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-pd(a);s.entanglements[1]|=l,a&=~l}Pl(o),(Ew&(mw|bw))===pw&&(tg=nd()+rg,jl(0))}}break;case 31:case 13:null!==(s=ht(o,2))&&Ks(s,o,2),$s(),Lc(o,2)}if(null===(o=Vc(r))&&tu(e,n,r,gA,t),o===i)break;i=o}null!==i&&r.stopPropagation()}else tu(e,n,r,null,t)}}function Vc(e){return zc(e=vn(e))}function zc(e){if(gA=null,null!==(e=fe(e))){var n=d(e);if(null===n)e=null;else{var t=n.tag;if(13===t){if(null!==(e=h(n)))return e;e=null}else if(31===t){if(null!==(e=p(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return gA=e,null}function Wc(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return gd;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return kd;case"message":switch(td()){case rd:return gd;case id:return kd;case od:case ad:return Ad;case sd:return xd;default:return Ad}default:return Ad}}function qc(e,n){switch(e){case"focusin":case"focusout":AA=null;break;case"dragenter":case"dragleave":xA=null;break;case"mouseover":case"mouseout":EA=null;break;case"pointerover":case"pointerout":SA.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":CA.delete(n.pointerId)}}function Gc(e,n,t,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==n&&null!==(n=de(n))&&Dc(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==i&&-1===n.indexOf(i)&&n.push(i),e)}function Yc(e){var n=fe(e.target);if(null!==n){var t=d(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=h(t)))return e.blockedOn=n,void ue(e.priority,function(){Uc(t)})}else if(31===n){if(null!==(n=p(t)))return e.blockedOn=n,void ue(e.priority,function(){Uc(t)})}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Jc(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=Vc(e.nativeEvent);if(null!==t)return null!==(n=de(t))&&Dc(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Th=r,t.target.dispatchEvent(r),Th=null,n.shift()}return!0}function Kc(e,n,t){Jc(e)&&t.delete(n)}function Xc(){kA=!1,null!==AA&&Jc(AA)&&(AA=null),null!==xA&&Jc(xA)&&(xA=null),null!==EA&&Jc(EA)&&(EA=null),SA.forEach(Kc),CA.forEach(Kc)}function Qc(e,n){e.blockedOn===n&&(e.blockedOn=null,kA||(kA=!0,ff.unstable_scheduleCallback(ff.unstable_NormalPriority,Xc)))}function Zc(e){MA!==e&&(MA=e,ff.unstable_scheduleCallback(ff.unstable_NormalPriority,function(){MA===e&&(MA=null);for(var n=0;n<e.length;n+=3){var t=e[n],r=e[n+1],i=e[n+2];if("function"!=typeof r){if(null===zc(r||t))continue;break}var o=de(t);null!==o&&(e.splice(n,3),n-=3,t={pending:!0,data:i,method:t.method,action:r},Object.freeze(t),Ro(o,t,r,i))}}))}function _c(e){function n(n){return Qc(n,e)}null!==AA&&Qc(AA,e),null!==xA&&Qc(xA,e),null!==EA&&Qc(EA,e),SA.forEach(n),CA.forEach(n);for(var t=0;t<TA.length;t++){var r=TA[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<TA.length&&null===(t=TA[0]).blockedOn;)Yc(t),null===t.blockedOn&&TA.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var i=t[r],o=t[r+1],a=i[Cd]||null;if("function"==typeof o)a||Zc(t);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Cd]||null)s=a.formAction;else if(null!==zc(i))continue}else s=a.action;"function"==typeof s?t[r+1]=s:(t.splice(r,3),r-=3),Zc(t)}}}function $c(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function n(){null!==i&&(i(),i=null),r||setTimeout(t,20)}function t(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(t,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),null!==i&&(i(),i=null)}}}function ef(e){this.ge=e}function nf(e){this.ge=e}function tf(e){e[Td]&&e.he}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rf,of,af,sf,lf,uf,cf,ff=C(),df=b(),hf=F(),pf=Object.assign,mf=/* @__PURE__ */Symbol.for("react.element"),bf=/* @__PURE__ */Symbol.for("react.transitional.element"),vf=/* @__PURE__ */Symbol.for("react.portal"),yf=/* @__PURE__ */Symbol.for("react.fragment"),wf=/* @__PURE__ */Symbol.for("react.strict_mode"),gf=/* @__PURE__ */Symbol.for("react.profiler"),kf=/* @__PURE__ */Symbol.for("react.consumer"),Af=/* @__PURE__ */Symbol.for("react.context"),xf=/* @__PURE__ */Symbol.for("react.forward_ref"),Ef=/* @__PURE__ */Symbol.for("react.suspense"),Sf=/* @__PURE__ */Symbol.for("react.suspense_list"),Cf=/* @__PURE__ */Symbol.for("react.memo"),Tf=/* @__PURE__ */Symbol.for("react.lazy"),If=/* @__PURE__ */Symbol.for("react.activity"),Mf=/* @__PURE__ */Symbol.for("react.memo_cache_sentinel"),Of=Symbol.iterator,Rf=/* @__PURE__ */Symbol.for("react.client.reference"),Nf=Array.isArray,Bf=df.R,Ff=hf.ie,Lf=Object.freeze({pending:!1,data:null,method:null,action:null}),Df=[],Uf=[],Pf=-1,jf=k(null),Hf=k(null),Vf=k(null),zf=k(null),Wf=0;O.Oe=!0;var qf,Gf,Yf=!1,Jf=new("function"==typeof WeakMap?WeakMap:Map),Kf=null,Xf=!1,Qf=Object.prototype.hasOwnProperty,Zf=ff.unstable_scheduleCallback,_f=ff.unstable_cancelCallback,$f=ff.unstable_shouldYield,ed=ff.unstable_requestPaint,nd=ff.unstable_now,td=ff.unstable_getCurrentPriorityLevel,rd=ff.unstable_ImmediatePriority,id=ff.unstable_UserBlockingPriority,od=ff.unstable_NormalPriority,ad=ff.unstable_LowPriority,sd=ff.unstable_IdlePriority,ld=ff.log,ud=ff.unstable_setDisableYieldValue,cd=null,fd=null,dd=!1,hd="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,pd=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(md(e)/bd|0)|0},md=Math.log,bd=Math.LN2,vd=256,yd=262144,wd=4194304,gd=2,kd=8,Ad=32,xd=268435456,Ed=Math.random().toString(36).slice(2),Sd="__reactFiber$"+Ed,Cd="__reactProps$"+Ed,Td="__reactContainer$"+Ed,Id="__reactEvents$"+Ed,Md="__reactListeners$"+Ed,Od="__reactHandles$"+Ed,Rd="__reactResources$"+Ed,Nd="__reactMarker$"+Ed,Bd=/* @__PURE__ */new Set,Fd={},Ld={},Dd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Ud=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Pd={},jd={},Hd=/[\n"\\]/g,Vd=!1,zd=!1,Wd=!1,qd=!1,Gd=!1,Yd=!1,Jd=["value","defaultValue"],Kd=!1,Xd=/["'&<>\n\t]|^\s|\s$/,Qd="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Zd="applet caption html table td th marquee object template foreignObject desc title".split(" "),_d=Zd.concat(["button"]),$d="dd dt li option optgroup p rp rt".split(" "),eh={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},nh={},th={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},rh=/([A-Z])/g,ih=/^ms-/,oh=/^(?:webkit|moz|o)[A-Z]/,ah=/;\s*$/,sh={},lh={},uh=!1,ch=!1,fh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),dh="http://www.w3.org/1998/Math/MathML",hh="http://www.w3.org/2000/svg",ph=/* @__PURE__ */new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),mh={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bh={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},vh={},yh=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wh=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gh=!1,kh={},Ah=/^on./,xh=/^on[^A-Z]/,Eh=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sh=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ch=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Th=null,Ih=null,Mh=null,Oh=!1,Rh=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Nh=!1;if(Rh)try{var Bh={};Object.defineProperty(Bh,"passive",{get:function(){Nh=!0}}),window.addEventListener("test",Bh,Bh),window.removeEventListener("test",Bh,Bh)}catch(RA){Nh=!1}var Fh,Lh,Dh,Uh=null,Ph=null,jh=null,Hh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vh=Sn(Hh),zh=pf({},Hh,{view:0,detail:0}),Wh=Sn(zh),qh=pf({},zh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Dh&&(Dh&&"mousemove"===e.type?(Fh=e.screenX-Dh.screenX,Lh=e.screenY-Dh.screenY):Lh=Fh=0,Dh=e),Fh)},movementY:function(e){return"movementY"in e?e.movementY:Lh}}),Gh=Sn(qh),Yh=Sn(pf({},qh,{dataTransfer:0})),Jh=Sn(pf({},zh,{relatedTarget:0})),Kh=Sn(pf({},Hh,{animationName:0,elapsedTime:0,pseudoElement:0})),Xh=Sn(pf({},Hh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Qh=Sn(pf({},Hh,{data:0})),Zh=Qh,_h={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$h={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ep={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},np=Sn(pf({},zh,{key:function(e){if(e.key){var n=_h[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=An(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?$h[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?An(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?An(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),tp=Sn(pf({},qh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rp=Sn(pf({},zh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),ip=Sn(pf({},Hh,{propertyName:0,elapsedTime:0,pseudoElement:0})),op=Sn(pf({},qh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ap=Sn(pf({},Hh,{newState:0,oldState:0})),sp=[9,13,27,32],lp=229,up=Rh&&"CompositionEvent"in window,cp=null;Rh&&"documentMode"in document&&(cp=document.documentMode);var fp=Rh&&"TextEvent"in window&&!cp,dp=Rh&&(!up||cp&&8<cp&&11>=cp),hp=32,pp=String.fromCharCode(hp),mp=!1,bp=!1,vp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},yp=null,wp=null,gp=!1;Rh&&(gp=function(e){if(!Rh)return!1;var n=(e="on"+e)in document;return n||((n=document.createElement("div")).setAttribute(e,"return;"),n="function"==typeof n[e]),n}("input")&&(!document.documentMode||9<document.documentMode));var kp="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Ap=Rh&&"documentMode"in document&&11>=document.documentMode,xp=null,Ep=null,Sp=null,Cp=!1,Tp={animationend:Kn("Animation","AnimationEnd"),animationiteration:Kn("Animation","AnimationIteration"),animationstart:Kn("Animation","AnimationStart"),transitionrun:Kn("Transition","TransitionRun"),transitionstart:Kn("Transition","TransitionStart"),transitioncancel:Kn("Transition","TransitionCancel"),transitionend:Kn("Transition","TransitionEnd")},Ip={},Mp={};Rh&&(Mp=document.createElement("div").style,"AnimationEvent"in window||(delete Tp.animationend.animation,delete Tp.animationiteration.animation,delete Tp.animationstart.animation),"TransitionEvent"in window||delete Tp.transitionend.transition);var Op=Xn("animationend"),Rp=Xn("animationiteration"),Np=Xn("animationstart"),Bp=Xn("transitionrun"),Fp=Xn("transitionstart"),Lp=Xn("transitioncancel"),Dp=Xn("transitionend"),Up=/* @__PURE__ */new Map,Pp="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pp.push("scrollEnd");var jp=0;if("object"==typeof performance&&"function"==typeof performance.now)var Hp=performance,Vp=function(){return Hp.now()};else{var zp=Date;Vp=function(){return zp.now()}}var Wp="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},qp="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Gp=0,Yp=1,Jp=2,Kp=3,Xp="– ",Qp="+ ",Zp="  ",_p="undefined"!=typeof console&&"function"==typeof console.timeStamp&&"undefined"!=typeof performance&&"function"==typeof performance.measure,$p="Components ⚛",em="Scheduler ⚛",nm="Blocking",tm=!1,rm={color:"primary",properties:null,tooltipText:"",track:$p},im={start:-0,end:-0,detail:{devtools:rm}},om=["Changed Props",""],am="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",sm=["Changed Props",am],lm=1,um=2,cm=[],fm=0,dm=0,hm={};Object.freeze(hm);var pm=null,mm=null,bm=0,vm=1,ym=2,wm=8,gm=16,km=32,Am=!1;try{Object.preventExtensions({});
3
+ /* @__PURE__ */}catch(NA){Am=!0}var xm=/* @__PURE__ */new WeakMap,Em=[],Sm=0,Cm=null,Tm=0,Im=[],Mm=0,Om=null,Rm=1,Nm="",Bm=null,Fm=null,Lm=!1,Dm=!1,Um=null,Pm=null,jm=!1,Hm=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vm=k(null),zm=k(null),Wm={},qm=null,Gm=null,Ym="undefined"!=typeof AbortController?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(n,t){e.push(t)}};this.abort=function(){n.aborted=!0,e.forEach(function(e){return e()})}},Jm=ff.unstable_scheduleCallback,Km=ff.unstable_NormalPriority,Xm={$$typeof:Af,Consumer:null,Provider:null,U:null,P:null,j:0,ee:null,ne:null},Qm=ff.unstable_now,Zm=console.createTask?console.createTask:function(){return null},_m=1,$m=2,eb=-0,nb=-0,tb=-0,rb=null,ib=-1.1,ob=-0,ab=-0,sb=-1.1,lb=-1.1,ub=null,cb=!1,fb=-0,db=-1.1,hb=null,pb=0,mb=null,bb=null,vb=-1.1,yb=null,wb=-1.1,gb=-1.1,kb=-0,Ab=-1.1,xb=-1.1,Eb=0,Sb=null,Cb=null,Tb=null,Ib=-1.1,Mb=null,Ob=-1.1,Rb=-1.1,Nb=0,Bb=0,Fb=-1.1,Lb=!1,Db=!1,Ub=null,Pb=0,jb=0,Hb=null,Vb=Bf.S;Bf.S=function(e,n){if(eg=nd(),"object"==typeof n&&null!==n&&"function"==typeof n.then){if(0>Ab&&0>xb){Ab=Qm();var t=Ru(),r=Ou();t===Ob&&r===Mb||(Ob=-1.1),Ib=t,Mb=r}!function(e,n){if(null===Ub){var t=Ub=[];Pb=0,jb=Jl(),Hb={status:"pending",value:void 0,then:function(e){t.push(e)}}}Pb++,n.then(Cr,Cr)}(0,n)}null!==Vb&&Vb(e,n)};var zb=k(null),Wb={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},qb=[],Gb=[],Yb=[],Jb=[],Kb=[],Xb=[],Qb=/* @__PURE__ */new Set;Wb.recordUnsafeLifecycleWarnings=function(e,n){Qb.has(e.type)||("function"==typeof n.componentWillMount&&!0!==n.componentWillMount.Ce&&qb.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillMount&&Gb.push(e),"function"==typeof n.componentWillReceiveProps&&!0!==n.componentWillReceiveProps.Ce&&Yb.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillReceiveProps&&Jb.push(e),"function"==typeof n.componentWillUpdate&&!0!==n.componentWillUpdate.Ce&&Kb.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillUpdate&&Xb.push(e))},Wb.flushPendingUnsafeLifecycleWarnings=function(){var e=/* @__PURE__ */new Set;0<qb.length&&(qb.forEach(function(n){e.add(g(n)||"Component"),Qb.add(n.type)}),qb=[]);var n=/* @__PURE__ */new Set;0<Gb.length&&(Gb.forEach(function(e){n.add(g(e)||"Component"),Qb.add(e.type)}),Gb=[]);var t=/* @__PURE__ */new Set;0<Yb.length&&(Yb.forEach(function(e){t.add(g(e)||"Component"),Qb.add(e.type)}),Yb=[]);var r=/* @__PURE__ */new Set;0<Jb.length&&(Jb.forEach(function(e){r.add(g(e)||"Component"),Qb.add(e.type)}),Jb=[]);var i=/* @__PURE__ */new Set;0<Kb.length&&(Kb.forEach(function(e){i.add(g(e)||"Component"),Qb.add(e.type)}),Kb=[]);var o=/* @__PURE__ */new Set;0<Xb.length&&(Xb.forEach(function(e){o.add(g(e)||"Component"),Qb.add(e.type)}),Xb=[]),0<n.size&&u(n),0<r.size&&u(r),0<o.size&&u(o),0<e.size&&u(e),0<t.size&&u(t),0<i.size&&u(i)};var Zb=/* @__PURE__ */new Map,_b=/* @__PURE__ */new Set;Wb.recordLegacyContextWarning=function(e,n){for(var t=null,r=e;null!==r;)r.mode&wm&&(t=r),r=r.return;null===t||!_b.has(e.type)&&(r=Zb.get(t),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==n&&"function"==typeof n.getChildContext)&&(void 0===r&&(r=[],Zb.set(t,r)),r.push(e))},Wb.flushLegacyContextWarning=function(){Zb.forEach(function(e){if(0!==e.length){var n=e[0],t=/* @__PURE__ */new Set;e.forEach(function(e){t.add(g(e)||"Component"),_b.add(e.type)}),u(t),H(n,function(){})}})},Wb.discardPendingWarnings=function(){qb=[],Gb=[],Yb=[],Jb=[],Kb=[],Xb=[],Zb=/* @__PURE__ */new Map};var $b,ev={react_stack_bottom_frame:function(e,n,t){var r=Xf;Xf=!0;try{return e(n,t)}finally{Xf=r}}},nv=ev.react_stack_bottom_frame.bind(ev),tv={react_stack_bottom_frame:function(e){var n=Xf;Xf=!0;try{return e.render()}finally{Xf=n}}},rv=tv.react_stack_bottom_frame.bind(tv),iv={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(t){Tl(e,e.return,t)}}},ov=iv.react_stack_bottom_frame.bind(iv),av={react_stack_bottom_frame:function(e,n,t,r,i){try{n.componentDidUpdate(t,r,i)}catch(o){Tl(e,e.return,o)}}},sv=av.react_stack_bottom_frame.bind(av),lv={react_stack_bottom_frame:function(e,n){var t=n.stack;e.componentDidCatch(n.value,{componentStack:null!==t?t:""})}},uv=lv.react_stack_bottom_frame.bind(lv),cv={react_stack_bottom_frame:function(e,n,t){try{t.componentWillUnmount()}catch(r){Tl(e,n,r)}}},fv=cv.react_stack_bottom_frame.bind(cv),dv={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},hv=dv.react_stack_bottom_frame.bind(dv),pv={react_stack_bottom_frame:function(e,n,t){try{t()}catch(r){Tl(e,n,r)}}},mv=pv.react_stack_bottom_frame.bind(pv),bv={react_stack_bottom_frame:function(e){return(0,e.o)(e.u)}},vv=bv.react_stack_bottom_frame.bind(bv),yv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),wv=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),gv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),kv={then:function(){}},Av=null,xv=!1,Ev=null,Sv=0,Cv=null,Tv=($b=!1,{}),Iv={},Mv={};l=function(e,n,t){if(null!==t&&"object"==typeof t&&t.q&&(!t.q.validated&&null==t.key||2===t.q.validated)){if("object"!=typeof t.q)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");t.q.validated=1;var r=g(e),i=r||"null";if(!Tv[i]){Tv[i]=!0,t=t.W;var o="";(e=e.ke)&&"number"==typeof e.tag&&(i=g(e))&&(o="\n\nCheck the render method of `"+i+"`."),o||r&&(o="\n\nCheck the top-level render call using <"+r+">."),null!=t&&e!==t&&(r=null,"number"==typeof t.tag?r=g(t):"string"==typeof t.name&&(r=t.name)),H(n,function(){})}}};var Ov,Rv=Yr(!0),Nv=Yr(!1),Bv=0,Fv=1,Lv=2,Dv=3,Uv=!1,Pv=!1,jv=null,Hv=!1,Vv=k(null),zv=k(0),Wv=k(null),qv=null,Gv=1,Yv=2,Jv=k(0),Kv=1,Xv=2,Qv=4,Zv=8,_v=/* @__PURE__ */new Set,$v=/* @__PURE__ */new Set,ey=/* @__PURE__ */new Set,ny=/* @__PURE__ */new Set,ty=0,ry=null,iy=null,oy=null,ay=!1,sy=!1,ly=!1,uy=0,cy=0,fy=null,dy=0,hy=25,py=null,my=null,by=-1,vy=!1,yy={readContext:tr,use:Oi,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useLayoutEffect:yi,useInsertionEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useSyncExternalStore:yi,useId:yi,useHostTransitionStatus:yi,useFormState:yi,useActionState:yi,useOptimistic:yi,useMemoCache:yi,useCacheRefresh:yi};yy.useEffectEvent=yi;var wy=null,gy=null,ky=null,Ay=null,xy=null,Ey=null,Sy=null;wy={readContext:function(e){return tr(e)},use:Oi,useCallback:function(e,n){return py="useCallback",pi(),bi(n),go(e,n)},useContext:function(e){return py="useContext",pi(),tr(e)},useEffect:function(e,n){return py="useEffect",pi(),bi(n),ho(e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",pi(),bi(t),yo(e,n,t)},useInsertionEffect:function(e,n){py="useInsertionEffect",pi(),bi(n),co(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",pi(),bi(n),bo(e,n)},useMemo:function(e,n){py="useMemo",pi(),bi(n);var t=Bf.H;Bf.H=xy;try{return Ao(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",pi();var r=Bf.H;Bf.H=xy;try{return Bi(e,n,t)}finally{Bf.H=r}},useRef:function(e){return py="useRef",pi(),uo(e)},useState:function(e){py="useState",pi();var n=Bf.H;Bf.H=xy;try{return Gi(e)}finally{Bf.H=n}},useDebugValue:function(){py="useDebugValue",pi()},useDeferredValue:function(e,n){return py="useDeferredValue",pi(),Eo(e,n)},useTransition:function(){return py="useTransition",pi(),Fo()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",pi(),Ui(e,n,t)},useId:function(){return py="useId",pi(),Po()},useFormState:function(e,n){return py="useFormState",pi(),vi(),ro(e,n)},useActionState:function(e,n){return py="useActionState",pi(),ro(e,n)},useOptimistic:function(e){return py="useOptimistic",pi(),Yi(e)},useHostTransitionStatus:Uo,useMemoCache:Ri,useCacheRefresh:function(){return py="useCacheRefresh",pi(),jo()},useEffectEvent:function(e){return py="useEffectEvent",pi(),po(e)}},gy={readContext:function(e){return tr(e)},use:Oi,useCallback:function(e,n){return py="useCallback",mi(),go(e,n)},useContext:function(e){return py="useContext",mi(),tr(e)},useEffect:function(e,n){return py="useEffect",mi(),ho(e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",mi(),yo(e,n,t)},useInsertionEffect:function(e,n){py="useInsertionEffect",mi(),co(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",mi(),bo(e,n)},useMemo:function(e,n){py="useMemo",mi();var t=Bf.H;Bf.H=xy;try{return Ao(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",mi();var r=Bf.H;Bf.H=xy;try{return Bi(e,n,t)}finally{Bf.H=r}},useRef:function(e){return py="useRef",mi(),uo(e)},useState:function(e){py="useState",mi();var n=Bf.H;Bf.H=xy;try{return Gi(e)}finally{Bf.H=n}},useDebugValue:function(){py="useDebugValue",mi()},useDeferredValue:function(e,n){return py="useDeferredValue",mi(),Eo(e,n)},useTransition:function(){return py="useTransition",mi(),Fo()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",mi(),Ui(e,n,t)},useId:function(){return py="useId",mi(),Po()},useActionState:function(e,n){return py="useActionState",mi(),ro(e,n)},useFormState:function(e,n){return py="useFormState",mi(),vi(),ro(e,n)},useOptimistic:function(e){return py="useOptimistic",mi(),Yi(e)},useHostTransitionStatus:Uo,useMemoCache:Ri,useCacheRefresh:function(){return py="useCacheRefresh",mi(),jo()},useEffectEvent:function(e){return py="useEffectEvent",mi(),po(e)}},ky={readContext:function(e){return tr(e)},use:Oi,useCallback:function(e,n){return py="useCallback",mi(),ko(e,n)},useContext:function(e){return py="useContext",mi(),tr(e)},useEffect:function(e,n){py="useEffect",mi(),fo(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",mi(),wo(e,n,t)},useInsertionEffect:function(e,n){return py="useInsertionEffect",mi(),fo(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",mi(),fo(4,Qv,e,n)},useMemo:function(e,n){py="useMemo",mi();var t=Bf.H;Bf.H=Ey;try{return xo(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",mi();var r=Bf.H;Bf.H=Ey;try{return Fi(e)}finally{Bf.H=r}},useRef:function(){return py="useRef",mi(),Ii().memoizedState},useState:function(){py="useState",mi();var e=Bf.H;Bf.H=Ey;try{return Fi(Ni)}finally{Bf.H=e}},useDebugValue:function(){py="useDebugValue",mi()},useDeferredValue:function(e,n){return py="useDeferredValue",mi(),So(e,n)},useTransition:function(){return py="useTransition",mi(),Lo()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",mi(),Pi(e,n,t)},useId:function(){return py="useId",mi(),Ii().memoizedState},useFormState:function(e){return py="useFormState",mi(),vi(),io(e)},useActionState:function(e){return py="useActionState",mi(),io(e)},useOptimistic:function(e,n){return py="useOptimistic",mi(),Ji(e,n)},useHostTransitionStatus:Uo,useMemoCache:Ri,useCacheRefresh:function(){return py="useCacheRefresh",mi(),Ii().memoizedState},useEffectEvent:function(e){return py="useEffectEvent",mi(),mo(e)}},Ay={readContext:function(e){return tr(e)},use:Oi,useCallback:function(e,n){return py="useCallback",mi(),ko(e,n)},useContext:function(e){return py="useContext",mi(),tr(e)},useEffect:function(e,n){py="useEffect",mi(),fo(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",mi(),wo(e,n,t)},useInsertionEffect:function(e,n){return py="useInsertionEffect",mi(),fo(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",mi(),fo(4,Qv,e,n)},useMemo:function(e,n){py="useMemo",mi();var t=Bf.H;Bf.H=Sy;try{return xo(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",mi();var r=Bf.H;Bf.H=Sy;try{return Di(e)}finally{Bf.H=r}},useRef:function(){return py="useRef",mi(),Ii().memoizedState},useState:function(){py="useState",mi();var e=Bf.H;Bf.H=Sy;try{return Di(Ni)}finally{Bf.H=e}},useDebugValue:function(){py="useDebugValue",mi()},useDeferredValue:function(e,n){return py="useDeferredValue",mi(),Co(e,n)},useTransition:function(){return py="useTransition",mi(),Do()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",mi(),Pi(e,n,t)},useId:function(){return py="useId",mi(),Ii().memoizedState},useFormState:function(e){return py="useFormState",mi(),vi(),so(e)},useActionState:function(e){return py="useActionState",mi(),so(e)},useOptimistic:function(e,n){return py="useOptimistic",mi(),Xi(e,n)},useHostTransitionStatus:Uo,useMemoCache:Ri,useCacheRefresh:function(){return py="useCacheRefresh",mi(),Ii().memoizedState},useEffectEvent:function(e){return py="useEffectEvent",mi(),mo(e)}},xy={readContext:function(e){return tr(e)},use:function(e){return Oi(e)},useCallback:function(e,n){return py="useCallback",pi(),go(e,n)},useContext:function(e){return py="useContext",pi(),tr(e)},useEffect:function(e,n){return py="useEffect",pi(),ho(e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",pi(),yo(e,n,t)},useInsertionEffect:function(e,n){py="useInsertionEffect",pi(),co(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",pi(),bo(e,n)},useMemo:function(e,n){py="useMemo",pi();var t=Bf.H;Bf.H=xy;try{return Ao(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",pi();var r=Bf.H;Bf.H=xy;try{return Bi(e,n,t)}finally{Bf.H=r}},useRef:function(e){return py="useRef",pi(),uo(e)},useState:function(e){py="useState",pi();var n=Bf.H;Bf.H=xy;try{return Gi(e)}finally{Bf.H=n}},useDebugValue:function(){py="useDebugValue",pi()},useDeferredValue:function(e,n){return py="useDeferredValue",pi(),Eo(e,n)},useTransition:function(){return py="useTransition",pi(),Fo()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",pi(),Ui(e,n,t)},useId:function(){return py="useId",pi(),Po()},useFormState:function(e,n){return py="useFormState",pi(),ro(e,n)},useActionState:function(e,n){return py="useActionState",pi(),ro(e,n)},useOptimistic:function(e){return py="useOptimistic",pi(),Yi(e)},useMemoCache:function(e){return Ri(e)},useHostTransitionStatus:Uo,useCacheRefresh:function(){return py="useCacheRefresh",pi(),jo()},useEffectEvent:function(e){return py="useEffectEvent",pi(),po(e)}},Ey={readContext:function(e){return tr(e)},use:function(e){return Oi(e)},useCallback:function(e,n){return py="useCallback",mi(),ko(e,n)},useContext:function(e){return py="useContext",mi(),tr(e)},useEffect:function(e,n){py="useEffect",mi(),fo(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",mi(),wo(e,n,t)},useInsertionEffect:function(e,n){return py="useInsertionEffect",mi(),fo(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",mi(),fo(4,Qv,e,n)},useMemo:function(e,n){py="useMemo",mi();var t=Bf.H;Bf.H=Ey;try{return xo(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",mi();var r=Bf.H;Bf.H=Ey;try{return Fi(e)}finally{Bf.H=r}},useRef:function(){return py="useRef",mi(),Ii().memoizedState},useState:function(){py="useState",mi();var e=Bf.H;Bf.H=Ey;try{return Fi(Ni)}finally{Bf.H=e}},useDebugValue:function(){py="useDebugValue",mi()},useDeferredValue:function(e,n){return py="useDeferredValue",mi(),So(e,n)},useTransition:function(){return py="useTransition",mi(),Lo()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",mi(),Pi(e,n,t)},useId:function(){return py="useId",mi(),Ii().memoizedState},useFormState:function(e){return py="useFormState",mi(),io(e)},useActionState:function(e){return py="useActionState",mi(),io(e)},useOptimistic:function(e,n){return py="useOptimistic",mi(),Ji(e,n)},useMemoCache:function(e){return Ri(e)},useHostTransitionStatus:Uo,useCacheRefresh:function(){return py="useCacheRefresh",mi(),Ii().memoizedState},useEffectEvent:function(e){return py="useEffectEvent",mi(),mo(e)}},Sy={readContext:function(e){return tr(e)},use:function(e){return Oi(e)},useCallback:function(e,n){return py="useCallback",mi(),ko(e,n)},useContext:function(e){return py="useContext",mi(),tr(e)},useEffect:function(e,n){py="useEffect",mi(),fo(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return py="useImperativeHandle",mi(),wo(e,n,t)},useInsertionEffect:function(e,n){return py="useInsertionEffect",mi(),fo(4,Xv,e,n)},useLayoutEffect:function(e,n){return py="useLayoutEffect",mi(),fo(4,Qv,e,n)},useMemo:function(e,n){py="useMemo",mi();var t=Bf.H;Bf.H=Ey;try{return xo(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){py="useReducer",mi();var r=Bf.H;Bf.H=Ey;try{return Di(e)}finally{Bf.H=r}},useRef:function(){return py="useRef",mi(),Ii().memoizedState},useState:function(){py="useState",mi();var e=Bf.H;Bf.H=Ey;try{return Di(Ni)}finally{Bf.H=e}},useDebugValue:function(){py="useDebugValue",mi()},useDeferredValue:function(e,n){return py="useDeferredValue",mi(),Co(e,n)},useTransition:function(){return py="useTransition",mi(),Do()},useSyncExternalStore:function(e,n,t){return py="useSyncExternalStore",mi(),Pi(e,n,t)},useId:function(){return py="useId",mi(),Ii().memoizedState},useFormState:function(e){return py="useFormState",mi(),so(e)},useActionState:function(e){return py="useActionState",mi(),so(e)},useOptimistic:function(e,n){return py="useOptimistic",mi(),Xi(e,n)},useMemoCache:function(e){return Ri(e)},useHostTransitionStatus:Uo,useCacheRefresh:function(){return py="useCacheRefresh",mi(),Ii().memoizedState},useEffectEvent:function(e){return py="useEffectEvent",mi(),mo(e)}};var Cy={},Ty=/* @__PURE__ */new Set,Iy=/* @__PURE__ */new Set,My=/* @__PURE__ */new Set,Oy=/* @__PURE__ */new Set,Ry=/* @__PURE__ */new Set,Ny=/* @__PURE__ */new Set,By=/* @__PURE__ */new Set,Fy=/* @__PURE__ */new Set,Ly=/* @__PURE__ */new Set,Dy=/* @__PURE__ */new Set;Object.freeze(Cy);var Uy={enqueueSetState:function(e,n,t){var r=Ys(e=e.ue),i=Qr(r);i.payload=n,null!=t&&(Ko(t),i.callback=t),null!==(n=Zr(e,i,r))&&(lr(r,"this.setState()",e),Ks(n,e,r),_r(n,e,r))},enqueueReplaceState:function(e,n,t){var r=Ys(e=e.ue),i=Qr(r);i.tag=Fv,i.payload=n,null!=t&&(Ko(t),i.callback=t),null!==(n=Zr(e,i,r))&&(lr(r,"this.replaceState()",e),Ks(n,e,r),_r(n,e,r))},enqueueForceUpdate:function(e,n){var t=Ys(e=e.ue),r=Qr(t);r.tag=Lv,null!=n&&(Ko(n),r.callback=n),null!==(n=Zr(e,r,t))&&(lr(t,"this.forceUpdate()",e),Ks(n,e,t),_r(n,e,t))}},Py=null,jy=null,Hy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Vy=!1,zy={},Wy={},qy={},Gy={},Yy=!1,Jy={},Ky={},Xy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Qy=!1,Zy=null;Zy=/* @__PURE__ */new Set;var _y=!1,$y=!1,ew=!1,nw="function"==typeof WeakSet?WeakSet:Set,tw=null,rw=null,iw=null,ow=null,aw=!1,sw=null,lw=!1,uw=8192,cw={getCacheForType:function(e){var n=tr(Xm),t=n.data.get(e);return void 0===t&&(t=e(),n.data.set(e,t)),t},cacheSignal:function(){return tr(Xm).controller.signal},getOwner:function(){return Kf}};if("function"==typeof Symbol&&Symbol.for){var fw=Symbol.for;fw("selector.component"),fw("selector.has_pseudo_class"),fw("selector.role"),fw("selector.test_id"),fw("selector.text")}var dw=[],hw="function"==typeof WeakMap?WeakMap:Map,pw=0,mw=2,bw=4,vw=0,yw=1,ww=2,gw=3,kw=4,Aw=6,xw=5,Ew=pw,Sw=null,Cw=null,Tw=0,Iw=0,Mw=1,Ow=2,Rw=3,Nw=4,Bw=5,Fw=6,Lw=7,Dw=8,Uw=9,Pw=Iw,jw=null,Hw=!1,Vw=!1,zw=!1,Ww=0,qw=vw,Gw=0,Yw=0,Jw=0,Kw=0,Xw=0,Qw=null,Zw=null,_w=!1,$w=0,eg=0,ng=300,tg=1/0,rg=500,ig=null,og=null,ag=null,sg=0,lg=1,ug=2,cg=3,fg=0,dg=1,hg=2,pg=3,mg=4,bg=5,vg=0,yg=null,wg=null,gg=0,kg=0,Ag=-0,xg=null,Eg=null,Sg=null,Cg=sg,Tg=null,Ig=50,Mg=0,Og=null,Rg=!1,Ng=!1,Bg=50,Fg=0,Lg=null,Dg=null,Ug=!1,Pg=/* @__PURE__ */new Set,jg=null,Hg=null,Vg=!1,zg=!1,Wg=!1,qg=!1,Gg=0,Yg={};!function(){for(var e=0;e<Pp.length;e++){var n=Pp[e];Qn(n.toLowerCase(),"on"+(n=n[0].toUpperCase()+n.slice(1)))}Qn(Op,"onAnimationEnd"),Qn(Rp,"onAnimationIteration"),Qn(Np,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(Bp,"onTransitionRun"),Qn(Fp,"onTransitionStart"),Qn(Lp,"onTransitionCancel"),Qn(Dp,"onTransitionEnd")}(),ve("onMouseEnter",["mouseout","mouseover"]),ve("onMouseLeave",["mouseout","mouseover"]),ve("onPointerEnter",["pointerout","pointerover"]),ve("onPointerLeave",["pointerout","pointerover"]),be("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),be("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),be("onBeforeInput",["compositionend","keypress","textInput","paste"]),be("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jg)),Xg="_reactListening"+Math.random().toString(36).slice(2),Qg=!1,Zg=!1,_g=!1,$g=!1,ek=!1,nk=!1,tk=!1,rk={},ik=/\r\n?/g,ok=/\u0000|\uFFFD/g,ak="http://www.w3.org/1999/xlink",sk="http://www.w3.org/XML/1998/namespace",lk="javascript:throw new Error('React form unexpectedly submitted.')",uk="suppressHydrationWarning",ck="&",fk="/&",dk="$",hk="/$",pk="$?",mk="$~",bk="$!",vk="html",yk="body",wk="head",gk="F!",kk="F",Ak="loading",xk="style",Ek=0,Sk=1,Ck=2,Tk=null,Ik=null,Mk={dialog:!0,webview:!0},Ok=null,Rk=void 0,Nk="function"==typeof setTimeout?setTimeout:void 0,Bk="function"==typeof clearTimeout?clearTimeout:void 0,Fk=-1,Lk="function"==typeof Promise?Promise:void 0,Dk="function"==typeof queueMicrotask?queueMicrotask:void 0!==Lk?function(e){return Lk.resolve(null).then(e).catch(Nu)}:Nk,Uk=null,Pk=0,jk=1,Hk=2,Vk=3,zk=4,Wk=/* @__PURE__ */new Map,qk=/* @__PURE__ */new Set,Gk=Ff.d;Ff.d={f:function(){var e=Gk.f(),n=$s();return e||n},r:function(e){var n=de(e);null!==n&&5===n.tag&&"form"===n.type?Bo(n):Gk.r(e)},D:function(e){Gk.D(e),dc("dns-prefetch",e,null)},C:function(e,n){Gk.C(e,n),dc("preconnect",e,n)},L:function(e,n,t){Gk.L(e,n,t);var r=tA;if(r&&e&&n){var i='link[rel="preload"][as="'+Me(n)+'"]';"image"===n&&t&&t.imageSrcSet?(i+='[imagesrcset="'+Me(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(i+='[imagesizes="'+Me(t.imageSizes)+'"]')):i+='[href="'+Me(e)+'"]';var o=i;switch(n){case"style":o=mc(e);break;case"script":o=yc(e)}Wk.has(o)||(e=pf({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),Wk.set(o,e),null!==r.querySelector(i)||"style"===n&&r.querySelector(bc(o))||"script"===n&&r.querySelector(wc(o))||(mu(n=r.createElement("link"),"link",e),me(n),r.head.appendChild(n)))}},m:function(e,n){Gk.m(e,n);var t=tA;if(t&&e){var r=n&&"string"==typeof n.as?n.as:"script",i='link[rel="modulepreload"][as="'+Me(r)+'"][href="'+Me(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=yc(e)}if(!Wk.has(o)&&(e=pf({rel:"modulepreload",href:e},n),Wk.set(o,e),null===t.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(wc(o)))return}mu(r=t.createElement("link"),"link",e),me(r),t.head.appendChild(r)}}},X:function(e,n){Gk.X(e,n);var t=tA;if(t&&e){var r=pe(t).hoistableScripts,i=yc(e),o=r.get(i);o||((o=t.querySelector(wc(i)))||(e=pf({src:e,async:!0},n),(n=Wk.get(i))&&xc(e,n),me(o=t.createElement("script")),mu(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,n,t){Gk.S(e,n,t);var r=tA;if(r&&e){var i=pe(r).hoistableStyles,o=mc(e);n=n||"default";var a=i.get(o);if(!a){var s={loading:Pk,preload:null};if(a=r.querySelector(bc(o)))s.loading=jk|zk;else{e=pf({rel:"stylesheet",href:e,"data-precedence":n},t),(t=Wk.get(o))&&Ac(e,t);var l=a=r.createElement("link");me(l),mu(l,"link",e),l.be=new Promise(function(e,n){l.onload=e,l.onerror=n}),l.addEventListener("load",function(){s.loading|=jk}),l.addEventListener("error",function(){s.loading|=Hk}),s.loading|=zk,kc(a,n,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,n){Gk.M(e,n);var t=tA;if(t&&e){var r=pe(t).hoistableScripts,i=yc(e),o=r.get(i);o||((o=t.querySelector(wc(i)))||(e=pf({src:e,async:!0,type:"module"},n),(n=Wk.get(i))&&xc(e,n),me(o=t.createElement("script")),mu(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Yk,Jk,Kk,Xk,Qk,Zk,_k,$k,eA,nA,tA="undefined"==typeof document?null:document,rA=null,iA=6e4,oA=800,aA=500,sA=0,lA=null,uA=null,cA=Lf,fA={$$typeof:Af,Provider:null,Consumer:null,U:cA,P:cA,j:0},dA="%c%s%c",hA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",pA="",mA=" ",bA=Function.prototype.bind,vA=!1;Yk=function(t,r,i,o){null!==(r=e(t,r))&&(i=n(r.memoizedState,i,0,o),r.memoizedState=i,r.baseState=i,t.memoizedProps=pf({},t.memoizedProps),null!==(i=ht(t,2))&&Ks(i,t,2))},Jk=function(n,t,r){null!==(t=e(n,t))&&(r=i(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,n.memoizedProps=pf({},n.memoizedProps),null!==(r=ht(n,2))&&Ks(r,n,2))},Kk=function(n,r,i,o){null!==(r=e(n,r))&&(i=t(r.memoizedState,i,o),r.memoizedState=i,r.baseState=i,n.memoizedProps=pf({},n.memoizedProps),null!==(i=ht(n,2))&&Ks(i,n,2))},Xk=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=ht(e,2))&&Ks(t,e,2)},Qk=function(e,n){e.pendingProps=i(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(n=ht(e,2))&&Ks(n,e,2)},Zk=function(e,n,r){e.pendingProps=t(e.memoizedProps,n,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(n=ht(e,2))&&Ks(n,e,2)},_k=function(e){var n=ht(e,2);null!==n&&Ks(n,e,2)},$k=function(e){var n=_(),t=ht(e,n);null!==t&&Ks(t,e,n)},eA=function(e){a=e},nA=function(e){o=e};var yA,wA=!0,gA=null,kA=!1,AA=null,xA=null,EA=null,SA=/* @__PURE__ */new Map,CA=/* @__PURE__ */new Map,TA=[],IA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),MA=null;if(nf.prototype.render=ef.prototype.render=function(e){var n=this.ge;if(null===n)throw Error("Cannot update an unmounted root.");var t=arguments;"function"==typeof t[1]||f(t[1])||t[1],t=e;var r=n.current;Bc(r,Ys(r),t,n,null,null)},nf.prototype.unmount=ef.prototype.unmount=function(){var e=arguments;if(e[0],null!==(e=this.ge)){this.ge=null;var n=e.containerInfo;Bc(e.current,2,null,e,null,null),$s(),n[Td]=null}},nf.prototype.unstable_scheduleHydration=function(e){if(e){var n=le();e={blockedOn:null,target:e,priority:n};for(var t=0;t<TA.length&&0!==n&&n<TA[t].priority;t++);TA.splice(t,0,e),0===t&&Yc(e)}},function(){var e=df.version;if("19.2.4"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.2.4\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&Set.prototype.forEach,Ff.findDOMNode=function(e){var n=e.ue;if(void 0===n){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var n=e.alternate;if(!n){if(null===(n=d(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){t=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return m(i),e;if(o===r)return m(i),n;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===t){a=!0,t=i,r=o;break}if(s===r){a=!0,r=i,t=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===t){a=!0,t=o,r=i;break}if(s===r){a=!0,r=o,t=i;break}s=s.sibling}if(!a)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}(n),null===(e=null!==e?v(e):null)?null:e.stateNode},(yA={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Bf,reconcilerVersion:"19.2.4"}).overrideHookState=Yk,yA.overrideHookStateDeletePath=Jk,yA.overrideHookStateRenamePath=Kk,yA.overrideProps=Xk,yA.overridePropsDeletePath=Qk,yA.overridePropsRenamePath=Zk,yA.scheduleUpdate=_k,yA.scheduleRetry=$k,yA.setErrorHandler=eA,yA.setSuspenseHandler=nA,yA.scheduleRefresh=function(e,n){if(null!==pm){var t=n.staleFamilies;n=n.updatedFamilies,El(),gt(e.current,n,t),$s()}},yA.scheduleRoot=function(e,n){e.context===hm&&(Bc(e.current,2,n,e,null,null),$s())},yA.setRefreshHandler=function(e){pm=e},yA.getCurrentFiber=function(){return Kf},!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return!0;try{cd=n.inject(e),fd=n}catch(t){}return!!n.checkDCE}(yA)&&Rh&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var OA=window.location.protocol;/^(https?|file):$/.test(OA)}U.createRoot=function(e,n){if(!f(e))throw Error("Target container is not a DOM element.");tf(e);var t=!1,r="",i=$o,o=ea,a=na;return null!=n&&(n.hydrate||"object"==typeof n&&null!==n&&n.$$typeof,!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(o=n.onCaughtError),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),n=Rc(e,1,!1,null,0,t,r,null,i,o,a,$c),e[Td]=n.current,eu(e),new ef(n)},U.hydrateRoot=function(e,n,t){if(!f(e))throw Error("Target container is not a DOM element.");tf(e);var r=!1,i="",o=$o,a=ea,s=na,l=null;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.formState&&(l=t.formState)),(n=Rc(e,1,!0,n,0,r,i,l,o,a,s,$c)).context=Nc(null),(i=Qr(r=ie(r=Ys(t=n.current)))).callback=null,Zr(t,i,r),lr(r,"hydrateRoot()",null),t=r,n.current.lanes=t,ee(n,t),Pl(n),e[Td]=n.current,eu(e),new nf(n)},U.version="19.2.4","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),U)),k.exports),j=b();const H={en:{chatTitle:"Keyring Agent",closeChat:"Close chat",messagePlaceholder:"Message ....",sendMessage:"Send message",botIsTyping:"Bot is typing",canIHelpYou:"Can I help you with anything?",replyToMessage:"Reply to message",replyingTo:"Replying to",replyingToYou:"You",replyingToAgent:"Keyring Agent",cancelReply:"Cancel reply",suggestionAskText:"Ask a question",suggestionAskUserMessage:"I have a question",suggestionAskBotReply:"Ask me anything",suggestionBuyText:"Buy trending token",walletConnectedChainUnsupported:"Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.",walletNotConnected:"Please connect your wallet to see trending tokens.",actionProcessing:"⏳ Processing transaction...",actionSuccess:"✅ Transaction completed",actionFail:"❌ Action cancelled or failed",txSubmitted:"⏳ Transaction submitted. Waiting for confirmation...",txConfirmed:"✅ Transaction confirmed!",txReverted:"❌ Transaction reverted on-chain.",txTimeout:"⚠️ Transaction submitted but confirmation timed out. Please check manually.",txSuccessful:"✅ Transaction successful!",txFailed:"❌ Transaction failed. Please try again.",txNoHandler:"⚠️ No transaction handler configured.",txInsufficientGas:"⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.",txError:"❌ Error: {message}",swapConfirmButton:"Confirm",swapConfirmValue:"Confirm swap",swapReadyToProceed:"Ready to proceed with the swap?",swapEstimationError:"⚠️ Unable to get swap estimation. Error: {error}",formCancel:"Cancel",formExecute:"Execute",formProcessing:"⏳ Processing...",formBalance:"Balance:",formTokenNotFound:"Token not found in your wallet.",formNoBalance:"You have no {symbol} balance in your wallet.",formInsufficientBalance:"Insufficient balance. Spendable: {balance} {symbol}",formFieldRequired:"{field} is required",formInvalidAddress:"Invalid address (Must contain 0x and 40 hex chars)",formMustBePositive:"Must be a positive number",formMustBeValidNumber:"Must be a valid number",openChat:"Open chat",openChatTitle:"Open chat support",walletBalanceSpendable:"This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.",walletNoTokensFound:"Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.",walletFetchFailed:"Sorry, I could not fetch your wallet balance. Please try again.",walletFetchError:"Sorry, I encountered an error fetching your wallet balance.",insufficientFeeToken:"Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.",selectAmountOf:"Select the amount of {symbol} to use:\n\nSpendable: {balance} {symbol}",swapFeeWarning:"\n⚠️ **Insufficient {symbol} for fees!**\n You have {balance} {symbol} but need ~{needed} {symbol}.\n",swapNeedApprove:"You need to approve {symbol} first before swapping.",swapApproveButton:"Approve {symbol}",swapApproveValue:"Approve {symbol} for swap",swapNoSourceToken:"⚠️ You don't have the source token in your wallet or balance is 0.",swapSelectAmount:"Swap {from} → {to}\n\nSelect the amount of {from} to swap:\n\nSpendable: {balance} {from}",swapApprovalRequired:"⚠️ Token approval required before swapping.\n\nStep 1: Approve {symbol}\nStep 2: Confirm Swap",swapEstimationFailed:"⚠️ Failed to get swap estimation. Please try again.",swapInsufficientNativeBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please top up your wallet or reduce the amount.",swapTokenNotInWallet:"⚠️ You don't have {symbol} in your wallet. Please acquire some first before swapping.",swapInsufficientTokenBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please reduce the amount or add more tokens.",selectAmountToSwap:"Select the amount of {symbol} to swap:\n\nSpendable: {balance} {symbol}",couldNotLoadTokenList:"⚠️ Could not load token list. Please specify the destination token.",trendingTokensForReceive:"📈 Trending tokens on {chain} chain. Pick the token you want to receive or type the token you want to receive:",txProcessing:"⏳ Transaction processing... Please confirm in your wallet.",txConfirmedSwap:"✅ Transaction confirmed! Your swap has been completed.",txRevertedSwap:"❌ Transaction reverted on-chain. Please try again.",txSuccessfulSwap:"✅ Transaction successful! Your swap has been completed.",txSuccessfulSendToken:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNative:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNft:"✅ Sent successfully NFT **{name}** (#{tokenId}) to {to}",txSuccessfulWrapNative:"✅ Wrapped successfully **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ Unwrapped successfully **{amount} {from}** → **{to}**",txDataNotAvailable:"⚠️ Transaction data not available.",approvalDataNotAvailable:"⚠️ Approval data not available.",approving:"Approving {symbol}... Please confirm in your wallet.",approvalSuccess:"✅ {symbol} approved successfully!",approvalConfirmSwap:"Now you can execute the swap.",confirmSwapButton:"Confirm Swap",approvalFailed:"❌ Approval failed. Please try again.",couldNotFetchBalance:"⚠️ Could not fetch your wallet balance.",couldNotLoadBalance:"⚠️ Could not load balance. Please try again.",couldNotFetchBalanceRetry:"⚠️ Could not fetch your balance. Please try again.",nftSendReview:"📤 Send **{name}** ({standard} #{tokenId})\n\nPlease review and fill in the recipient address below:",nftCollectionHeader:"Your NFTs :\n\n{list}",nftMoreItems:"\n\nAnd {count} more NFTs...",nftSelectBelow:"\n\nSelect an NFT below to send",nftNoCollection:"You don't have any NFTs in your wallet on this chain.",nftMultipleMatchesForTokenId:"I found {count} NFTs with Token ID #{tokenId} in your wallet. Please select the one you want to send:",nftNotFoundInWallet:"I couldn't find \"{name}\" in your NFT collection. You don't own this NFT on this chain.",nftFetchError:"Sorry, I encountered an error fetching your NFTs.",trendingTokensHeader:"📈 Here is the list of tokens that are currently trending upwards on {chain} chain",trendingTokensQuestion:"\nIs there any token you want to buy?",trendingTokensError:"Sorry, I encountered an error fetching trending tokens.",errorProcessingRequest:"Sorry, I encountered an error processing your request.Please try again in a few moments.",buttonBuyWith:"Buy with {symbol}",buttonUsePercent:"Use {percent}% of {symbol}",buttonBuyToken:"Buy {name} ({symbol})",buttonSendNft:"Send {name}",buttonSwapTo:"Swap to {name} ({symbol})",buttonBuySymbol:"Buy {symbol}",viewBalancesLoading:"Fetching your wallet balances...",viewBalancesHeader:"Your token balances on {chain}:\n\n{list}",viewBalancesEmpty:"You don't have any tokens in your wallet on this chain.",viewBalancesFetchError:"Sorry, I encountered an error fetching your balances.",buttonSendToken:"Send {symbol}",formMax:"MAX",buttonSwapToken:"Swap {symbol}",buttonBuyMoreToken:"Buy more {symbol}",actionSendNativeLabel:"Send Native Token",actionSendNativeDesc:"Send native token (ETH, BNB, MATIC, etc.) to an address",actionSendTokenLabel:"Send Token (ERC20)",actionSendTokenDesc:"Send an ERC20 token to an address",actionSwapTokenLabel:"Swap Token",actionSwapTokenDesc:"Swap one token for another",actionApproveTokenLabel:"Approve Token",actionApproveTokenDesc:"Approve a spender to use your tokens",actionWrapNativeLabel:"Wrap Native Token",actionWrapNativeDesc:"Wrap native token (ETH → WETH)",actionUnwrapNativeLabel:"Unwrap Native Token",actionUnwrapNativeDesc:"Unwrap native token (WETH → ETH)",actionSendNftLabel:"Send NFT",actionSendNftDesc:"Transfer an ERC721 or ERC1155 NFT to another address",fieldToAddress:"Recipient Address",fieldAmount:"Amount",fieldTokenContract:"Token Contract",fieldTokenSymbol:"Token Symbol",fieldDecimals:"Decimals",fieldTokenIn:"From Token",fieldTokenInSymbol:"From Symbol",fieldTokenOut:"To Token",fieldTokenOutSymbol:"To Symbol",fieldTokenInDecimals:"From Decimals",fieldTokenOutDecimals:"To Decimals",fieldSpenderAddress:"Spender Address",fieldAmountUnlimited:"Amount (empty = unlimited)",fieldNftContract:"NFT Contract",fieldTokenId:"Token ID",fieldTokenStandard:"Token Standard",fieldNftName:"NFT Name",formMustBePositiveInteger:"Must be a positive integer",formAmountExceedsNft:"Amount cannot exceed available balance {max}",receivedButtonValue:"Received: {value}",actionExecutedFor:'Action "{action}" executed for: {value}',buyTokenHelp:"I'll help you buy {symbol}. Let me show your available tokens to trade with.",tokenNotFoundOnChain:'I couldn\'t find the token "{symbol}" on this chain. Here are the trending tokens you can buy',swapPreparing:"Preparing your swap...",swapConfirmYes:"Yes",swapChooseFrom:"Please choose which token you want to swap from:",swapChooseTo:"You want to swap {symbol}. Please choose which token you want to receive:",swapNeedDetails:'I need more details for your swap. Please specify which tokens you want to swap (e.g. "Swap 1 ETH to USDC").',viewNftsLoading:"Let me show you your NFT collection!",sendTokenNotInWallet:"You don't have {symbol} in your wallet on this chain. Please acquire some first before sending.",sendTokenChoose:"Which token would you like to send?",sendNftChoose:"Which NFT would you like to send?",swapChooseToken:"Which token would you like to swap? Here are your current balances:",spendable:"Spendable",welcomeMessage:"**Welcome! 🚀**\nYou're connected and ready to explore DeFi! I can assist you with trading, checking prices, and analyzing your portfolio any time.",sendOtherNfts:"\nIf the NFT you want to send is not in the list above, please visit our website to send it.",sendNftViaWebsite:"Please select the NFT you would like to send from the list and proceed via this website.",viewNftViaWebsite:"Please view your NFT collection on this website for more details.",buyingOnChain:"Buying {symbol} on {chain}"},ja:{chatTitle:"Keyring Agent",closeChat:"チャットを閉じる",messagePlaceholder:"メッセージを入力...",sendMessage:"メッセージを送信",botIsTyping:"ボットが入力中...",canIHelpYou:"何かお手伝いできることはございますか?",replyToMessage:"メッセージに返信",replyingTo:"返信先:",replyingToYou:"あなた",replyingToAgent:"Keyring Agent",cancelReply:"返信をキャンセル",suggestionAskText:"質問・調査のお願い",suggestionAskUserMessage:"質問があります",suggestionAskBotReply:"何でも聞いてください",suggestionBuyText:"トレンドトークンを購入",walletConnectedChainUnsupported:"ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。",walletNotConnected:"トレンドのトークンを表示するには、ウォレットを接続してください。",actionProcessing:"⏳ トランザクションを処理中...",actionSuccess:"✅ トランザクションが完了しました",actionFail:"❌ アクションがキャンセルされたか、失敗しました",txSubmitted:"⏳ トランザクションを送信しました。確認を待機中...",txConfirmed:"✅ トランザクションが確認されました!",txReverted:"❌ オンチェーンでトランザクションがリバートされました。",txTimeout:"⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。",txSuccessful:"✅ トランザクションに成功しました!",txFailed:"❌ トランザクションに失敗しました。もう一度お試しください。",txNoHandler:"⚠️ トランザクションハンドラーが設定されていません。",txInsufficientGas:"⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。",txError:"❌ エラー: {message}",swapConfirmButton:"確定",swapConfirmValue:"スワップを確定する",swapReadyToProceed:"スワップを実行しますか?",swapEstimationError:"⚠️ スワップの見積もりを取得できません。エラー: {error}",formCancel:"キャンセル",formExecute:"実行",formProcessing:"⏳ 処理中...",formBalance:"残高:",formTokenNotFound:"ウォレット内にトークンが見つかりません。",formNoBalance:"ウォレットに {symbol} の残高がありません。",formInsufficientBalance:"残高不足です。利用可能: {balance} {symbol}",formFieldRequired:"{field} は必須項目です",formInvalidAddress:"無効なアドレスです(0x + 40文字である必要があります)",formMustBePositive:"正の数値を入力してください",formMustBeValidNumber:"有効な数値を入力してください",openChat:"チャットを開く",openChatTitle:"チャットサポートを開く",walletBalanceSpendable:"これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。",walletNoTokensFound:"申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。",walletFetchFailed:"ウォレット残高を取得できませんでした。もう一度お試しください。",walletFetchError:"ウォレット残高の取得中にエラーが発生しました。",insufficientFeeToken:"手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。",selectAmountOf:"使用する {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手数料の {symbol} が不足しています!**\n 保有量は {balance} {symbol} ですが、~{needed} {symbol} 必要です。\n",swapNeedApprove:"スワップを行う前に、まず {symbol} の承認が必要です。",swapApproveButton:"{symbol} を承認する",swapApproveValue:"スワップのために {symbol} を承認",swapNoSourceToken:"⚠️ ウォレットにソーストークンがないか、残高が 0 です。",swapSelectAmount:"スワップ {from} → {to}\n\nスワップする {from} の数量を選択してください:\n\n利用可能: {balance} {from}",swapApprovalRequired:"⚠️ スワップの前にトークンの承認が必要です。\n\nステップ 1: {symbol} を承認\nステップ 2: スワップを確定",swapEstimationFailed:"⚠️ スワップの見積もり取得に失敗しました。もう一度お試しください。",swapInsufficientNativeBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。ウォレットにチャージするか、数量を減らしてください。",swapTokenNotInWallet:"⚠️ ウォレットに {symbol} がありません。スワップする前にまず入手してください。",swapInsufficientTokenBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。数量を減らすか、トークンを追加してください。",selectAmountToSwap:"スwaップする {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",couldNotLoadTokenList:"⚠️ トークンリストを読み込めませんでした。受け取り希望のトークンを指定してください。",trendingTokensForReceive:"📈 {chain} チェーンのトレンドトークン。受け取りたいトークンを選択するか、入力してください:",txProcessing:"⏳ トランザクション処理中... ウォレットで承認してください。",txConfirmedSwap:"✅ トランザクションが確認されました!スワップが完了しました。",txRevertedSwap:"❌ オンチェーンでトランザクションがリバートされました。もう一度お試しください。",txSuccessfulSwap:"✅ トランザクションに成功しました!スワップが完了しました。",txSuccessfulSendToken:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulSendNative:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulWrapNative:"✅ **{amount} {from}** を **{to}** にラップしました",txSuccessfulUnwrapNative:"✅ **{amount} {from}** を **{to}** にアンラップしました",txSuccessfulSendNft:"✅ NFT **{name}** (#{tokenId}) を {to} に送信しました",txDataNotAvailable:"⚠️ トランザクションデータが利用できません。",approvalDataNotAvailable:"⚠️ 承認データが利用できません。",approving:"{symbol} を承認中... ウォレットで確認してください。",approvalSuccess:"✅ {symbol} の承認に成功しました!",approvalConfirmSwap:"これでスワップを実行できます。",confirmSwapButton:"スワップを確定する",approvalFailed:"❌ 承認に失敗しました。もう一度お試しください。",couldNotFetchBalance:"⚠️ ウォレット残高を取得できませんでした。",couldNotLoadBalance:"⚠️ 残高を読み込めませんでした。もう一度お試しください。",couldNotFetchBalanceRetry:"⚠️ 残高を取得できませんでした。もう一度お試しください。",nftSendReview:"📤 **{name}** ({standard} #{tokenId}) を送信\n\n内容を確認し、以下に受信者のアドレスを入力してください:",nftCollectionHeader:"您的 NFT 资产:\n\n{list}",nftMoreItems:"\n\n以及其他 {count} 件 NFT...",nftSelectBelow:"\n\n请在下方选择要发送的 NFT",nftNoCollection:"このチェーン上のウォレットにNFTは見つかりませんでした。",nftMultipleMatchesForTokenId:"ウォレット内にToken ID #{tokenId} のNFTが{count}件見つかりました。送信したいNFTを選択してください:",nftNotFoundInWallet:'あなたのNFTコレクションに "{name}" が見つかりませんでした。このチェーンでこのNFTを所有していません。',nftFetchError:"申し訳ありませんが、NFTの取得中にエラーが発生しました。",trendingTokensHeader:"📈 {chain} チェーンで現在価格が上昇中のトレンドトークン一覧です:",trendingTokensQuestion:"\n購入したいトークンはありますか?",trendingTokensError:"トレンドトークンの取得中にエラーが発生しました。",errorProcessingRequest:"リクエストの処理中にエラーが発生しました。しばらく時間を置いてからもう一度お試しください。",buttonBuyWith:"{symbol} で購入",buttonUsePercent:"{symbol}の{percent}%を使用",buttonBuyToken:"{name} ({symbol}) を購入",buttonSendNft:"{name} を送信",buttonSwapTo:"{name} ({symbol}) にスワップ",buttonBuySymbol:"{symbol} を購入",viewBalancesLoading:"ウォレットの残高を取得中...",viewBalancesHeader:"{chain} 上のトークン残高:\n\n{list}",viewBalancesEmpty:"このチェーン上のウォレットにトークンは見つかりませんでした。",viewBalancesFetchError:"残高の取得中にエラーが発生しました。",buttonSendToken:"{symbol} を送信",formMax:"最大",buttonSwapToken:"{symbol} をスワップ",buttonBuyMoreToken:"{symbol} をさらに入手",actionSendNativeLabel:"ネイティブトークンを送信",actionSendNativeDesc:"ネイティブトークン (ETH, BNB, MATIC など) をアドレスに送信します",actionSendTokenLabel:"トークンを送信 (ERC20)",actionSendTokenDesc:"ERC20トークンをアドレスに送信します",actionSwapTokenLabel:"トークンをスワップ",actionSwapTokenDesc:"トークンを別のトークンに交換します",actionApproveTokenLabel:"トークンを承認",actionApproveTokenDesc:"支出元(Spender)によるトークンの使用を許可します",actionWrapNativeLabel:"ネイティブトークンをラップ",actionWrapNativeDesc:"ネイティブトークンをラップします (ETH → WETH)",actionUnwrapNativeLabel:"ネイティブトークンをアンラップ",actionUnwrapNativeDesc:"ネイティブトークンをアンラップします (WETH → ETH)",actionSendNftLabel:"NFTを送信",actionSendNftDesc:"ERC721またはERC1155 NFTを別のアドレスに転送します",fieldToAddress:"受信者アドレス",fieldAmount:"数量",fieldTokenContract:"トークンコントラクト",fieldTokenSymbol:"トークンシンボル",fieldDecimals:"デシマル (小数桁数)",fieldTokenIn:"元のトークン",fieldTokenInSymbol:"元のシンボル",fieldTokenOut:"先のトークン",fieldTokenOutSymbol:"先のシンボル",fieldTokenInDecimals:"元のデシマル",fieldTokenOutDecimals:"先のデシマル",fieldSpenderAddress:"支出元 (Spender) アドレス",fieldAmountUnlimited:"数量 (空欄 = 無制限)",fieldNftContract:"NFTコントラクト",fieldTokenId:"トークンID",fieldTokenStandard:"トークン規格",fieldNftName:"NFT名",formMustBePositiveInteger:"正の整数を入力してください",formAmountExceedsNft:"数量は利用可能な残高 {max} を超えることはできません",receivedButtonValue:"受取額: {value}",actionExecutedFor:"アクション「{action}」が {value} に対して実行されました",buyTokenHelp:"{symbol} の購入をお手伝いします。まず、交換に使用可能なトークンを表示します。",tokenNotFoundOnChain:"このチェーン上でトークン「{symbol}」が見つかりませんでした。購入可能なトレンドトークンはこちらです",swapPreparing:"スワップの準備中...",swapConfirmYes:"はい",swapChooseFrom:"交換元(支払う)トークンを選択してください:",swapChooseTo:"{symbol} をスワップします。受け取りたいトークンを選択してください:",swapNeedDetails:"スワップの詳細が必要です。交換したいトークンを指定してください(例:「1 ETH を USDC にスワップ」)。",viewNftsLoading:"あなたのNFTコレクションを表示します!",sendTokenNotInWallet:"このチェーンのウォレットに {symbol} がありません。送信する前にまず入手してください。",sendTokenChoose:"どのトークンを送信しますか?",sendNftChoose:"どのNFTを送信しますか?",swapChooseToken:"どのトークンをスワップしますか?現在の残高はこちらです:",spendable:"利用可能",welcomeMessage:"**ようこそ! 🚀**\n新時代の金融へ。DeFiの世界を解き放て!トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。",sendOtherNfts:"\n送信したいNFTが上記のリストにない場合は、当ウェブサイトにアクセスして送信してください。",sendNftViaWebsite:"送信したいNFTをリストから選択し、当ウェブサイトで手続きを進めてください。",viewNftViaWebsite:"NFTコレクションの詳細は、当ウェブサイトでご確認ください。",buyingOnChain:"{chain} チェーンで {symbol} を購入中"},cn:{chatTitle:"Keyring Agent",closeChat:"关闭聊天",messagePlaceholder:"请输入消息....",sendMessage:"发送消息",botIsTyping:"机器人正在输入",canIHelpYou:"有什么我可以帮您的吗?",replyToMessage:"回复消息",replyingTo:"正在回复",replyingToYou:"您",replyingToAgent:"Keyring Agent",cancelReply:"取消回复",suggestionAskText:"提问",suggestionAskUserMessage:"我有一个问题",suggestionAskBotReply:"随便问我任何事情",suggestionBuyText:"购买热门代币",walletConnectedChainUnsupported:"您的钱包已连接,但当前链不支持交易。请切换到支持的链以查看热门代币。",walletNotConnected:"请连接您的钱包以查看热门代币。",actionProcessing:"⏳ 正在处理交易...",actionSuccess:"✅ 交易已完成",actionFail:"❌ 操作取消或失败",txSubmitted:"⏳ 交易已提交。正在等待确认...",txConfirmed:"✅ 交易已确认!",txReverted:"❌ 交易在链上被退回(Reverted)。",txTimeout:"⚠️ 交易已提交但确认超时。请手动检查。",txSuccessful:"✅ 交易成功!",txFailed:"❌ 交易失败。请重试。",txNoHandler:"⚠️ 未配置交易处理器。",txInsufficientGas:"⚠️ **{symbol} 余额不足以支付 Gas 费!** 您当前有 {balance} {symbol},但交易费预计需要 ~{fee} {symbol}。请充值钱包后重试。",txError:"❌ 错误: {message}",swapConfirmButton:"确认",swapConfirmValue:"确认兑换",swapReadyToProceed:"准备好进行兑换了吗?",swapEstimationError:"⚠️ 无法获取兑换估算。错误: {error}",formCancel:"取消",formExecute:"执行",formProcessing:"⏳ 正在处理...",formBalance:"余额:",formTokenNotFound:"您的钱包中未找到该代币。",formNoBalance:"您的钱包中没有 {symbol} 余额。",formInsufficientBalance:"余额不足。可用余额: {balance} {symbol}",formFieldRequired:"{field} 是必填项",formInvalidAddress:"无效地址(必须是 0x + 40 个字符)",formMustBePositive:"必须为正数",formMustBeValidNumber:"必须为有效数字",openChat:"打开聊天",openChatTitle:"打开聊天支持",walletBalanceSpendable:"这是您在 {chain} 链上钱包的可选余额。请选择您想用于此次交易的代币。",walletNoTokensFound:"抱歉,我在 {chain} 链上的钱包中没找到任何代币。请确保您有代币可以进行交易。",walletFetchFailed:"抱歉,无法获取您的钱包余额。请重试。",walletFetchError:"抱歉,获取钱包余额时出错。",insufficientFeeToken:"手续费不足。请确保您有足够的 {symbol} 来支付交易费用,或选择其他代币。",selectAmountOf:"选择要使用的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手续费所需的 {symbol} 不足!**\n 您当前有 {balance} {symbol},但需要 ~{needed} {symbol}。\n",swapNeedApprove:"在兑换之前,您需要先授权 {symbol}。",swapApproveButton:"授权 {symbol}",swapApproveValue:"授权 {symbol} 以进行兑换",swapNoSourceToken:"⚠️ 您的钱包中没有源代币或余额为 0。",swapSelectAmount:"兑换 {from} → {to}\n\n选择要兑换的 {from} 数量:\n\n可用余额: {balance} {from}",swapApprovalRequired:"⚠️ 兑换前需要代币授权。\n\n第 1 步:授权 {symbol}\n第 2 步:确认兑换",swapEstimationFailed:"⚠️ 获取兑换估算失败。请重试。",swapInsufficientNativeBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请充值钱包或减少金额。",swapTokenNotInWallet:"⚠️ 您的钱包中没有 {symbol}。请在兑换前先获取一些代币。",swapInsufficientTokenBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请减少金额或添加更多代币。",selectAmountToSwap:"选择要兑换的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",couldNotLoadTokenList:"⚠️ 无法加载代币列表。请指定目标代币。",trendingTokensForReceive:"📈 {chain} 链上的热门代币。请选择您想收到的代币或输入代币名称:",txProcessing:"⏳ 交易处理中... 请在钱包中确认。",txConfirmedSwap:"✅ 交易已确认!您的兑换已完成。",txRevertedSwap:"❌ 交易在链上被退回。请重试。",txSuccessfulSwap:"✅ 交易成功!您的兑换已完成。",txSuccessfulSendToken:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulSendNative:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulWrapNative:"✅ 成功封装 **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ 成功解封装 **{amount} {from}** → **{to}**",txSuccessfulSendNft:"✅ 已成功发送 NFT **{name}** (#{tokenId}) 至 {to}",txDataNotAvailable:"⚠️ 交易数据不可用。",approvalDataNotAvailable:"⚠️ 授权数据不可用。",approving:"正在授权 {symbol}... 请在钱包中确认。",approvalSuccess:"✅ {symbol} 授权成功!",approvalConfirmSwap:"现在您可以执行兑换了。",confirmSwapButton:"确认兑换",approvalFailed:"❌ 授权失败。请重试。",couldNotFetchBalance:"⚠️ 无法获取您的钱包余额。",couldNotLoadBalance:"⚠️ 无法加载余额。请重试。",couldNotFetchBalanceRetry:"⚠️ 无法获取您的余额。请重试。",nftSendReview:"📤 发送 **{name}** ({standard} #{tokenId})\n\n请核对并在下方填写接收者地址:",nftCollectionHeader:"保有中のNFT一覧 :\n\n{list}",nftMoreItems:"\n\n他 {count} 件のNFT...",nftSelectBelow:"\n\n送信するNFTを以下から選択してください",nftNoCollection:"您在该链的钱包中没有任何 NFT。",nftMultipleMatchesForTokenId:"在您的钱包中找到了 {count} 个 Token ID #{tokenId} 的 NFT。请选择您要发送的 NFT:",nftNotFoundInWallet:'我在您的 NFT 收藏中没找到 "{name}"。您在此链上不拥有此 NFT。',nftFetchError:"抱歉,获取您的 NFT 时出错。",trendingTokensHeader:"📈 以下是 {chain} 链上目前呈上升趋势的热门代币列表",trendingTokensQuestion:"\n有您想购买的代币吗?",trendingTokensError:"抱歉,获取热门代币时出错。",errorProcessingRequest:"抱歉,处理您的请求时出错。请稍后再试。",buttonBuyWith:"使用 {symbol} 购买",buttonUsePercent:"使用{percent}%的{symbol}",buttonBuyToken:"购买 {name} ({symbol})",buttonSendNft:"发送 {name}",buttonSwapTo:"兑换为 {name} ({symbol})",buttonBuySymbol:"购买 {symbol}",viewBalancesLoading:"正在获取您的钱包余额...",viewBalancesHeader:"您在 {chain} 上的代币余额:\n\n{list}",viewBalancesEmpty:"您在该链的钱包中没有任何代币。",viewBalancesFetchError:"抱歉,获取您的余额时出错。",buttonSendToken:"发送 {symbol}",formMax:"最多",buttonSwapToken:"兑换 {symbol}",buttonBuyMoreToken:"购买更多 {symbol}",actionSendNativeLabel:"发送原生代币",actionSendNativeDesc:"将原生代币 (ETH, BNB, MATIC 等) 发送到指定地址",actionSendTokenLabel:"发送代币 (ERC20)",actionSendTokenDesc:"将 ERC20 代币发送到指定地址",actionSwapTokenLabel:"兑换代币",actionSwapTokenDesc:"将一种代币兑换为另一种",actionApproveTokenLabel:"授权代币",actionApproveTokenDesc:"授权支出方使用您的代币",actionWrapNativeLabel:"包装 (Wrap) 原生代币",actionWrapNativeDesc:"包装原生代币 (例如 ETH → WETH)",actionUnwrapNativeLabel:"解包 (Unwrap) 原生代币",actionUnwrapNativeDesc:"解包原生代币 (例如 WETH → ETH)",actionSendNftLabel:"发送 NFT",actionSendNftDesc:"将 ERC721 或 ERC1155 NFT 转移到另一个地址",fieldToAddress:"接收者地址",fieldAmount:"金额",fieldTokenContract:"代币合约",fieldTokenSymbol:"代币符号",fieldDecimals:"精度 (Decimals)",fieldTokenIn:"源代币 (From)",fieldTokenInSymbol:"源代币符号",fieldTokenOut:"目标代币 (To)",fieldTokenOutSymbol:"目标代币符号",fieldTokenInDecimals:"源代币精度",fieldTokenOutDecimals:"目标代币精度",fieldSpenderAddress:"支出方 (Spender) 地址",fieldAmountUnlimited:"金额 (留空 = 无限制)",fieldNftContract:"NFT 合约",fieldTokenId:"代币 ID",fieldTokenStandard:"代币标准",fieldNftName:"NFT 名称",formMustBePositiveInteger:"必须为正整数",formAmountExceedsNft:"金额不能超过可用余额 {max}",receivedButtonValue:"收到: {value}",actionExecutedFor:'操作 "{action}" 已执行,对象为: {value}',buyTokenHelp:"我会帮您购买 {symbol}。让我为您显示可用于交易的代币。",tokenNotFoundOnChain:'我在该链上没找到代币 "{symbol}"。以下是您可以购买的热门代币',swapPreparing:"正在准备兑换...",swapConfirmYes:"是",swapChooseFrom:"请选择您想从哪个代币进行兑换:",swapChooseTo:"您想兑换 {symbol}。请选择您想收到的代币:",swapNeedDetails:"我需要更多关于兑换的细节。请指定您想兑换的代币(例如 “将 1 ETH 兑换为 USDC”)。",viewNftsLoading:"正在为您展示 NFT 收藏!",sendTokenNotInWallet:"您的钱包中在此链上没有 {symbol}。请在发送前先获取一些代币。",sendTokenChoose:"您想发送哪个代币?",sendNftChoose:"您想发送哪个 NFT?",swapChooseToken:"您想兑换哪个代币?以下是您的当前余额:",spendable:"可用余额",welcomeMessage:"**欢迎! 🚀**\n您已连接并准备好探索 DeFi!我可以帮您进行交易、查询价格,并在需要时分析您的资产组合。",sendOtherNfts:"\n如果您想发送的NFT不在上述列表中,请访问我们的网站进行发送。",sendNftViaWebsite:"请从列表中选择您想发送的NFT,并通过这个网站继续操作。",viewNftViaWebsite:"如需查看更多详情,请在这个网站查看您的NFT收藏。",buyingOnChain:"正在 {chain} 链上购买 {symbol}"}};function V(e,n){return H[n]?.[e]??H.en[e]??e}const z=j.createContext(void 0),W=({children:e,initialLanguage:n="en"})=>{const[t,r]=j.useState(n);j.useEffect(()=>{n&&r(n)},[n]);const i=j.useCallback(e=>V(e,t),[t]),o=j.useCallback((e,n)=>function(e,n){return e.replace(/\{(\w+)\}/g,(e,t)=>n[t]??`{${t}}`)}(V(e,t),n),[t]);/* @__PURE__ */
4
+ return g.jsx(z.Provider,{value:{language:t,setLanguage:r,t:i,ti:o},children:e})},q=()=>{const e=j.useContext(z);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},G=j.memo(({onClick:e,buttonSize:n=56})=>{const{t:t}=q();/* @__PURE__ */
5
+ return g.jsx("button",{className:"chat-button",onClick:e,onKeyDown:n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e())},"aria-label":t("openChat"),title:t("openChatTitle"),type:"button",children:/* @__PURE__ */g.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6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SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",width:n,height:n,alt:"Ask AI"})})}),Y=/^tuple(?<array>(\[(\d*)\])*)$/;function J(e){let n=e.type;if(Y.test(e.type)&&"components"in e){n="(";const t=e.components.length;for(let i=0;i<t;i++)n+=J(e.components[i]),i<t-1&&(n+=", ");const r=function(e,n){const t=e.exec(n);return t?.groups}(Y,e.type);return n+=`)${r?.array||""}`,J({...e,type:n})}return"indexed"in e&&e.indexed&&(n=`${n} indexed`),e.name?`${n} ${e.name}`:n}function K(e){let n="";const t=e.length;for(let r=0;r<t;r++)n+=J(e[r]),r!==t-1&&(n+=", ");return n}function X(e,{includeName:n=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new ce(e.type);return`${e.name}(${Q(e.inputs,{includeName:n})})`}function Q(e,{includeName:n=!1}={}){return e?e.map(e=>function(e,{includeName:n}){return e.type.startsWith("tuple")?`(${Q(e.components,{includeName:n})})${e.type.slice(5)}`:e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:n})).join(n?", ":","):""}function Z(e,{strict:n=!0}={}){return!!e&&"string"==typeof e&&(n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function _(e){return Z(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const $="2.47.0";let ee=`viem@${$}`;class ne extends Error{constructor(e,n={}){const t=n.cause instanceof ne?n.cause.details:n.cause?.message?n.cause.message:n.details,r=n.cause instanceof ne&&n.cause.docsPath||n.docsPath,i=(({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0)?.({...n,docsPath:r});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...t?[`Details: ${t}`]:[],...ee?[`Version: ${ee}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=t,this.docsPath=r,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=$}walk(e){return te(this,e)}}function te(e,n){return n?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?te(e.cause,n):n?null:e}class re extends ne{constructor({expectedLength:e,givenLength:n,type:t}){super([`ABI encoding array length mismatch for type ${t}.`,`Expected length: ${e}`,`Given length: ${n}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class ie extends ne{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${_(n)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class oe extends ne{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${n}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class ae extends ne{constructor(e,{docsPath:n}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class se extends ne{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${X(e.abiItem)}\`, and`,`\`${n.type}\` in \`${X(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class le extends ne{constructor(e,{docsPath:n}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n,name:"InvalidAbiEncodingType"})}}class ue extends ne{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class ce extends ne{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class fe extends ne{constructor({offset:e,position:n,size:t}){super(`Slice ${"start"===n?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${t}).`,{name:"SliceOffsetOutOfBoundsError"})}}class de extends ne{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}function he(e,{dir:n,size:t=32}={}){return"string"==typeof e?pe(e,{dir:n,size:t}):function(e,{dir:n,size:t=32}={}){if(null===t)return e;if(e.length>t)throw new de({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let i=0;i<t;i++){const o="right"===n;r[o?i:t-i-1]=e[o?i:e.length-i-1]}return r}(e,{dir:n,size:t})}function pe(e,{dir:n,size:t=32}={}){if(null===t)return e;const r=e.replace("0x","");if(r.length>2*t)throw new de({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r["right"===n?"padEnd":"padStart"](2*t,"0")}`}class me extends ne{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class be extends ne{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ve(e,{dir:n="left"}={}){let t="string"==typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<t.length-1&&"0"===t["left"===n?i:t.length-i-1].toString();i++)r++;return t="left"===n?t.slice(r):t.slice(0,t.length-r),"string"==typeof e?(1===t.length&&"right"===n&&(t=`${t}0`),`0x${t.length%2==1?`0${t}`:t}`):t}function ye(e,{size:n}){if(_(e)>n)throw new be({givenSize:_(e),maxSize:n})}function we(e,n={}){const{signed:t}=n;n.size&&ye(e,{size:n.size});const r=BigInt(e);if(!t)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function ge(e,n={}){const t=we(e,n),r=Number(t);if(!Number.isSafeInteger(r))throw new me({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:n.signed,size:n.size,value:`${t}n`});return r}const ke=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Ae(e,n={}){return"number"==typeof e||"bigint"==typeof e?Se(e,n):"string"==typeof e?Te(e,n):"boolean"==typeof e?xe(e,n):Ee(e,n)}function xe(e,n={}){const t=`0x${Number(e)}`;return"number"==typeof n.size?(ye(t,{size:n.size}),he(t,{size:n.size})):t}function Ee(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=ke[e[i]];const r=`0x${t}`;return"number"==typeof n.size?(ye(r,{size:n.size}),he(r,{dir:"right",size:n.size})):r}function Se(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let o;r?o=t?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"==typeof o&&t?-o-1n:0;if(o&&i>o||i<a){const n="bigint"==typeof e?"n":"";throw new me({max:o?`${o}${n}`:void 0,min:`${a}${n}`,signed:t,size:r,value:`${e}${n}`})}const s=`0x${(t&&i<0?(1n<<BigInt(8*r))+BigInt(i):i).toString(16)}`;return r?he(s,{size:r}):s}const Ce=/* @__PURE__ */new TextEncoder;function Te(e,n={}){return Ee(Ce.encode(e),n)}const Ie=/* @__PURE__ */new TextEncoder;function Me(e,n={}){return"number"==typeof e||"bigint"==typeof e?function(e,n){return Ne(Se(e,n))}(e,n):"boolean"==typeof e?function(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),"number"==typeof n.size?(ye(t,{size:n.size}),he(t,{size:n.size})):t}(e,n):Z(e)?Ne(e,n):Be(e,n)}const Oe={zero:48,nine:57,A:65,F:70,a:97,f:102};function Re(e){return e>=Oe.zero&&e<=Oe.nine?e-Oe.zero:e>=Oe.A&&e<=Oe.F?e-(Oe.A-10):e>=Oe.a&&e<=Oe.f?e-(Oe.a-10):void 0}function Ne(e,n={}){let t=e;n.size&&(ye(t,{size:n.size}),t=he(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,o=new Uint8Array(i);for(let a=0,s=0;a<i;a++){const e=Re(r.charCodeAt(s++)),n=Re(r.charCodeAt(s++));if(void 0===e||void 0===n)throw new ne(`Invalid byte sequence ("${r[s-2]}${r[s-1]}" in "${r}").`);o[a]=16*e+n}return o}function Be(e,n={}){const t=Ie.encode(e);return"number"==typeof n.size?(ye(t,{size:n.size}),he(t,{dir:"right",size:n.size})):t}const Fe=/* @__PURE__ */BigInt(2**32-1),Le=/* @__PURE__ */BigInt(32);function De(e,n=!1){return n?{h:Number(e&Fe),l:Number(e>>Le&Fe)}:{h:0|Number(e>>Le&Fe),l:0|Number(e&Fe)}}function Ue(e,n=!1){const t=e.length;let r=new Uint32Array(t),i=new Uint32Array(t);for(let o=0;o<t;o++){const{h:t,l:a}=De(e[o],n);[r[o],i[o]]=[t,a]}return[r,i]}const Pe=(e,n,t)=>e>>>t,je=(e,n,t)=>e<<32-t|n>>>t,He=(e,n,t)=>e>>>t|n<<32-t,Ve=(e,n,t)=>e<<32-t|n>>>t,ze=(e,n,t)=>e<<64-t|n>>>t-32,We=(e,n,t)=>e>>>t-32|n<<64-t;function qe(e,n,t,r){const i=(n>>>0)+(r>>>0);return{h:e+t+(i/2**32|0)|0,l:0|i}}const Ge=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),Ye=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,Je=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),Ke=(e,n,t,r,i)=>n+t+r+i+(e/2**32|0)|0,Xe=(e,n,t,r,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(i>>>0),Qe=(e,n,t,r,i,o)=>n+t+r+i+o+(e/2**32|0)|0,Ze="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function _e(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function $e(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function en(e,...n){if(!_e(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function nn(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");$e(e.outputLen),$e(e.blockLen)}function tn(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function rn(e,n){en(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function on(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function an(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function sn(e,n){return e<<32-n|e>>>n}function ln(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const un=/* @__PURE__ */(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let n=0;n<e.length;n++)e[n]=ln(e[n]);return e},cn=/* @__PURE__ */(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),fn=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function dn(e){if(en(e),cn)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=fn[e[t]];return n}function hn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function pn(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(cn)return Uint8Array.fromHex(e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const r=new Uint8Array(t);for(let i=0,o=0;i<t;i++,o+=2){const n=hn(e.charCodeAt(o)),t=hn(e.charCodeAt(o+1));if(void 0===n||void 0===t){const n=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+n+'" at index '+o)}r[i]=16*n+t}return r}function mn(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e)),en(e),e}function bn(...e){let n=0;for(let r=0;r<e.length;r++){const t=e[r];en(t),n+=t.length}const t=new Uint8Array(n);for(let r=0,i=0;r<e.length;r++){const n=e[r];t.set(n,i),i+=n.length}return t}class vn{}function yn(e){const n=n=>e().update(mn(n)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function wn(e=32){if(Ze&&"function"==typeof Ze.getRandomValues)return Ze.getRandomValues(new Uint8Array(e));if(Ze&&"function"==typeof Ze.randomBytes)return Uint8Array.from(Ze.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const gn=BigInt(0),kn=BigInt(1),An=BigInt(2),xn=BigInt(7),En=BigInt(256),Sn=BigInt(113),Cn=[],Tn=[],In=[];for(let Ip=0,Mp=kn,Op=1,Rp=0;Ip<24;Ip++){[Op,Rp]=[Rp,(2*Op+3*Rp)%5],Cn.push(2*(5*Rp+Op)),Tn.push((Ip+1)*(Ip+2)/2%64);let e=gn;for(let n=0;n<7;n++)Mp=(Mp<<kn^(Mp>>xn)*Sn)%En,Mp&An&&(e^=kn<<(kn<</* @__PURE__ */BigInt(n))-kn);In.push(e)}const Mn=Ue(In,!0),On=Mn[0],Rn=Mn[1],Nn=(e,n,t)=>t>32?((e,n,t)=>n<<t-32|e>>>64-t)(e,n,t):((e,n,t)=>e<<t|n>>>32-t)(e,n,t),Bn=(e,n,t)=>t>32?((e,n,t)=>e<<t-32|n>>>64-t)(e,n,t):((e,n,t)=>n<<t|e>>>32-t)(e,n,t);class Fn extends vn{constructor(e,n,t,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=n,this.outputLen=t,this.enableXOF=r,this.rounds=i,$e(t),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this.Re()}keccak(){un(this.state32),function(e,n=24){const t=new Uint32Array(10);for(let r=24-n;r<24;r++){for(let r=0;r<10;r++)t[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const n=(r+8)%10,i=(r+2)%10,o=t[i],a=t[i+1],s=Nn(o,a,1)^t[n],l=Bn(o,a,1)^t[n+1];for(let t=0;t<50;t+=10)e[r+t]^=s,e[r+t+1]^=l}let n=e[2],i=e[3];for(let t=0;t<24;t++){const r=Tn[t],o=Nn(n,i,r),a=Bn(n,i,r),s=Cn[t];n=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let r=0;r<50;r+=10){for(let n=0;n<10;n++)t[n]=e[r+n];for(let n=0;n<10;n++)e[r+n]^=~t[(n+2)%10]&t[(n+4)%10]}e[0]^=On[r],e[1]^=Rn[r]}on(t)}(this.state32,this.rounds),un(this.state32),this.posOut=0,this.pos=0}update(e){tn(this),en(e=mn(e));const{blockLen:n,state:t}=this,r=e.length;for(let i=0;i<r;){const o=Math.min(n-this.pos,r-i);for(let n=0;n<o;n++)t[this.pos++]^=e[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:n,pos:t,blockLen:r}=this;e[t]^=n,128&n&&t===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){tn(this,!1),en(e),this.finish();const n=this.state,{blockLen:t}=this;for(let r=0,i=e.length;r<i;){this.posOut>=t&&this.keccak();const o=Math.min(t-this.posOut,i-r);e.set(n.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return $e(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(rn(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,on(this.state)}Re(e){const{blockLen:n,suffix:t,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new Fn(n,t,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=t,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Ln=/* @__PURE__ */(()=>yn(()=>new Fn(136,1,32)))();function Dn(e,n){const t=n||"hex",r=Ln(Z(e,{strict:!1})?Me(e):e);return"bytes"===t?r:Ae(r)}function Un(e){return n=function(e){let n=!0,t="",r=0,i="",o=!1;for(let a=0;a<e.length;a++){const s=e[a];if(["(",")",","].includes(s)&&(n=!0),"("===s&&r++,")"===s&&r--,n)if(0!==r)" "!==s?(i+=s,t+=s):","!==e[a-1]&&","!==t&&",("!==t&&(t="",n=!1);else if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){o=!0;break}}if(!o)throw new ne("Unable to normalize signature.");return i}("string"==typeof(t=e)?t:"function"===(r=t).type?`function ${r.name}(${K(r.inputs)})${r.stateMutability&&"nonpayable"!==r.stateMutability?` ${r.stateMutability}`:""}${r.outputs?.length?` returns (${K(r.outputs)})`:""}`:"event"===r.type?`event ${r.name}(${K(r.inputs)})`:"error"===r.type?`error ${r.name}(${K(r.inputs)})`:"constructor"===r.type?`constructor(${K(r.inputs)})${"payable"===r.stateMutability?" payable":""}`:"fallback"===r.type?"fallback() external"+("payable"===r.stateMutability?" payable":""):"receive() external payable"),Dn(Me(n));var n,t,r}const Pn=Un;class jn extends ne{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class Hn extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&void 0!==n&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}const Vn=/* @__PURE__ */new Hn(8192),zn=/^0x[a-fA-F0-9]{40}$/,Wn=/* @__PURE__ */new Hn(8192);function qn(e,n){const{strict:t=!0}=n??{},r=`${e}.${t}`;if(Wn.has(r))return Wn.get(r);const i=!(!zn.test(e)||e.toLowerCase()!==e&&t&&function(e){if(Vn.has(`${e}.undefined`))return Vn.get(`${e}.undefined`);const n=e.substring(2).toLowerCase(),t=Dn(Be(n),"bytes"),r=n.split("");for(let o=0;o<40;o+=2)t[o>>1]>>4>=8&&r[o]&&(r[o]=r[o].toUpperCase()),(15&t[o>>1])>=8&&r[o+1]&&(r[o+1]=r[o+1].toUpperCase());const i=`0x${r.join("")}`;return Vn.set(`${e}.undefined`,i),i}(e)!==e);return Wn.set(r,i),i}function Gn(e){return"string"==typeof e[0]?Yn(e):function(e){let n=0;for(const i of e)n+=i.length;const t=new Uint8Array(n);let r=0;for(const i of e)t.set(i,r),r+=i.length;return t}(e)}function Yn(e){return`0x${e.reduce((e,n)=>e+n.replace("0x",""),"")}`}function Jn(e,n,t,{strict:r}={}){return Z(e,{strict:!1})?function(e,n,t,{strict:r}={}){Kn(e,n);const i=`0x${e.replace("0x","").slice(2*(n??0),2*(t??e.length))}`;return r&&Xn(i,n,t),i}(e,n,t,{strict:r}):function(e,n,t,{strict:r}={}){Kn(e,n);const i=e.slice(n,t);return r&&Xn(i,n,t),i}(e,n,t,{strict:r})}function Kn(e,n){if("number"==typeof n&&n>0&&n>_(e)-1)throw new fe({offset:n,position:"start",size:_(e)})}function Xn(e,n,t){if("number"==typeof n&&"number"==typeof t&&_(e)!==t-n)throw new fe({offset:t,position:"end",size:_(e)})}const Qn=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Zn(e,n){if(e.length!==n.length)throw new oe({expectedLength:e.length,givenLength:n.length});const t=function({params:e,values:n}){const t=[];for(let r=0;r<e.length;r++)t.push(_n({param:e[r],value:n[r]}));return t}({params:e,values:n}),r=$n(t);return 0===r.length?"0x":r}function _n({param:e,value:n}){const t=function(e){const n=e.match(/^(.*)\[(\d+)?\]$/);return n?[n[2]?Number(n[2]):null,n[1]]:void 0}(e.type);if(t){const[r,i]=t;return function(e,{length:n,param:t}){const r=null===n;if(!Array.isArray(e))throw new ue(e);if(!r&&e.length!==n)throw new re({expectedLength:n,givenLength:e.length,type:`${t.type}[${n}]`});let i=!1;const o=[];for(let a=0;a<e.length;a++){const n=_n({param:t,value:e[a]});n.dynamic&&(i=!0),o.push(n)}if(r||i){const e=$n(o);if(r){const n=Se(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?Gn([n,e]):n}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:Gn(o.map(({encoded:e})=>e))}}(n,{length:r,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:n}){let t=!1;const r=[];for(let i=0;i<n.components.length;i++){const o=n.components[i],a=_n({param:o,value:e[Array.isArray(e)?i:o.name]});r.push(a),a.dynamic&&(t=!0)}return{dynamic:t,encoded:t?$n(r):Gn(r.map(({encoded:e})=>e))}}(n,{param:e});if("address"===e.type)return function(e){if(!qn(e))throw new jn({address:e});return{dynamic:!1,encoded:pe(e.toLowerCase())}}(n);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new ne(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:pe(xe(e))}}(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const t=e.type.startsWith("int"),[,,r="256"]=Qn.exec(e.type)??[];return function(e,{signed:n,size:t=256}){if("number"==typeof t){const r=2n**(BigInt(t)-(n?1n:0n))-1n,i=n?-r-1n:0n;if(e>r||e<i)throw new me({max:r.toString(),min:i.toString(),signed:n,size:t/8,value:e.toString()})}return{dynamic:!1,encoded:Se(e,{size:32,signed:n})}}(n,{signed:t,size:Number(r)})}if(e.type.startsWith("bytes"))return function(e,{param:n}){const[,t]=n.type.split("bytes"),r=_(e);if(!t){let n=e;return r%32!=0&&(n=pe(n,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:Gn([pe(Se(r,{size:32})),n])}}if(r!==Number.parseInt(t,10))throw new ie({expectedSize:Number.parseInt(t,10),value:e});return{dynamic:!1,encoded:pe(e,{dir:"right"})}}(n,{param:e});if("string"===e.type)return function(e){const n=Te(e),t=Math.ceil(_(n)/32),r=[];for(let i=0;i<t;i++)r.push(pe(Jn(n,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:Gn([pe(Se(_(n),{size:32})),...r])}}(n);throw new le(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function $n(e){let n=0;for(let o=0;o<e.length;o++){const{dynamic:t,encoded:r}=e[o];n+=t?32:_(r)}const t=[],r=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:a,encoded:s}=e[o];a?(t.push(Se(n+i,{size:32})),r.push(s),i+=_(s)):t.push(s)}return Gn([...t,...r])}const et=e=>Jn(Un(e),0,4);function nt(e,n){const t=typeof e,r=n.type;switch(r){case"address":return qn(e,{strict:!1});case"bool":return"boolean"===t;case"function":case"string":return"string"===t;default:return"tuple"===r&&"components"in n?Object.values(n.components).every((n,r)=>"object"===t&&nt(Object.values(e)[r],n)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===t||"bigint"===t:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===t||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&Array.isArray(e)&&e.every(e=>nt(e,{...n,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))}}function tt(e,n,t){for(const r in e){const i=e[r],o=n[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return tt(i.components,o.components,t[r]);const a=[i.type,o.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&qn(t[r],{strict:!1}))())return a}}function rt(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const it="/docs/contract/encodeFunctionData";function ot(e){const{args:n}=e,{abi:t,functionName:r}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){const{abi:n,args:t,functionName:r}=e;let i=n[0];if(r){const e=function(e){const{abi:n,args:t=[],name:r}=e,i=Z(r,{strict:!1}),o=n.filter(e=>i?"function"===e.type?et(e)===r:"event"===e.type&&Pn(e)===r:"name"in e&&e.name===r);if(0===o.length)return;if(1===o.length)return o[0];let a;for(const s of o)if("inputs"in s)if(t&&0!==t.length){if(s.inputs&&0!==s.inputs.length&&s.inputs.length===t.length&&t.every((e,n)=>{const t="inputs"in s&&s.inputs[n];return!!t&&nt(e,t)})){if(a&&"inputs"in a&&a.inputs){const e=tt(s.inputs,a.inputs,t);if(e)throw new se({abiItem:s,type:e[0]},{abiItem:a,type:e[1]})}a=s}}else if(!s.inputs||0===s.inputs.length)return s;return a||o[0]}({abi:n,args:t,name:r});if(!e)throw new ae(r,{docsPath:it});i=e}if("function"!==i.type)throw new ae(void 0,{docsPath:it});return{abi:[i],functionName:et(X(i))}}(e),i=t[0];return Yn([r,("inputs"in i&&i.inputs?Zn(i.inputs,n??[]):void 0)??"0x"])}class at extends ne{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class st extends ne{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class lt extends ne{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const ut={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:/* @__PURE__ */new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new lt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new st({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new at({offset:e});const n=this.position-e;this.assertPosition(n),this.position=n},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new at({offset:e});const n=this.position+e;this.assertPosition(n),this.position=n},inspectByte(e){const n=e??this.position;return this.assertPosition(n),this.bytes[n]},inspectBytes(e,n){const t=n??this.position;return this.assertPosition(t+e-1),this.bytes.subarray(t,t+e)},inspectUint8(e){const n=e??this.position;return this.assertPosition(n),this.bytes[n]},inspectUint16(e){const n=e??this.position;return this.assertPosition(n+1),this.dataView.getUint16(n)},inspectUint24(e){const n=e??this.position;return this.assertPosition(n+2),(this.dataView.getUint16(n)<<8)+this.dataView.getUint8(n+2)},inspectUint32(e){const n=e??this.position;return this.assertPosition(n+3),this.dataView.getUint32(n)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this.Ne();const e=this.inspectByte();return this.position++,e},readBytes(e,n){this.assertReadLimit(),this.Ne();const t=this.inspectBytes(e);return this.position+=n??e,t},readUint8(){this.assertReadLimit(),this.Ne();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.Ne();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.Ne();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.Ne();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const n=this.position;return this.assertPosition(e),this.position=e,()=>this.position=n},Ne(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function ct(e,{recursiveReadLimit:n=8192}={}){const t=Object.create(ut);return t.bytes=e,t.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),t.positionReadCount=/* @__PURE__ */new Map,t.recursiveReadLimit=n,t}const ft={gwei:9,wei:18},dt={ether:-9,wei:9};function ht(e,n){let t=e.toString();const r=t.startsWith("-");r&&(t=t.slice(1)),t=t.padStart(n,"0");let[i,o]=[t.slice(0,t.length-n),t.slice(t.length-n)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}function pt(e,n="wei"){return ht(e,ft[n])}function mt(e,n="wei"){return ht(e,dt[n])}function bt(e){return e.reduce((e,{slot:n,value:t})=>`${e} ${n}: ${t}\n`,"")}function vt(e){const n=Object.entries(e).map(([e,n])=>void 0===n||!1===n?null:[e,n]).filter(Boolean),t=n.reduce((e,[n])=>Math.max(e,n.length),0);return n.map(([e,n])=>` ${`${e}:`.padEnd(t+1)} ${n}`).join("\n")}class yt extends ne{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class wt extends ne{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",vt(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class gt extends ne{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class kt extends ne{constructor(e,{account:n,docsPath:t,chain:r,data:i,gas:o,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:l,nonce:u,to:c,value:f,stateOverride:d}){const h=n?rt(n):void 0;let p=vt({from:h?.address,to:c,value:void 0!==f&&`${pt(f)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==a&&`${mt(a)} gwei`,maxFeePerGas:void 0!==s&&`${mt(s)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${mt(l)} gwei`,nonce:u});d&&(p+=`\n${function(e){return e.reduce((e,{address:n,...t})=>{let r=`${e} ${n}:\n`;return t.nonce&&(r+=` nonce: ${t.nonce}\n`),t.balance&&(r+=` balance: ${t.balance}\n`),t.code&&(r+=` code: ${t.code}\n`),t.state&&(r+=" state:\n",r+=bt(t.state)),t.stateDiff&&(r+=" stateDiff:\n",r+=bt(t.stateDiff)),r}," State Override:\n").slice(0,-1)}(d)}`),super(e.shortMessage,{cause:e,docsPath:t,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}function At(e,n="hex"){const t=xt(e),r=ct(new Uint8Array(t.length));return t.encode(r),"hex"===n?Ee(r.bytes):r.bytes}function xt(e){return Array.isArray(e)?function(e){const n=e.reduce((e,n)=>e+n.length,0),t=Et(n);return{length:n<=55?1+n:1+t+n,encode(r){n<=55?r.pushByte(192+n):(r.pushByte(247+t),1===t?r.pushUint8(n):2===t?r.pushUint16(n):3===t?r.pushUint24(n):r.pushUint32(n));for(const{encode:n}of e)n(r)}}}(e.map(e=>xt(e))):function(e){const n="string"==typeof e?Ne(e):e,t=Et(n.length);return{length:1===n.length&&n[0]<128?1:n.length<=55?1+n.length:1+t+n.length,encode(e){1===n.length&&n[0]<128?e.pushBytes(n):n.length<=55?(e.pushByte(128+n.length),e.pushBytes(n)):(e.pushByte(183+t),1===t?e.pushUint8(n.length):2===t?e.pushUint16(n.length):3===t?e.pushUint24(n.length):e.pushUint32(n.length),e.pushBytes(n))}}}(e)}function Et(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ne("Length is too large.")}class St extends ne{constructor({cause:e,message:n}={}){const t=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${t?`with reason: ${t}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(St,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(St,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Ct extends ne{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${mt(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Ct,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Tt extends ne{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${mt(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Tt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class It extends ne{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(It,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Mt extends ne{constructor({cause:e,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(Mt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Ot extends ne{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Ot,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Rt extends ne{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Rt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Nt extends ne{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Nt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Bt extends ne{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Bt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ft extends ne{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ft,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Lt extends ne{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:t}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${mt(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${mt(t)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(Lt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Dt extends ne{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function Ut(e,{format:n}){if(!n)return{};const t={};return function n(r){const i=Object.keys(r);for(const o of i)o in e&&(t[o]=e[o]),r[o]&&"object"==typeof r[o]&&!Array.isArray(r[o])&&n(r[o])}(n(e||{})),t}function Pt(e,n){return({exclude:t,format:r})=>({exclude:t,format:(e,i)=>{const o=n(e,i);if(t)for(const n of t)delete o[n];return{...o,...r(e,i)}},type:e})}const jt={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ht(e,n){const t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?Se(BigInt(e.r)):e.r,s:e.s?Se(BigInt(e.s)):e.s,chainId:Se(e.chainId),nonce:Se(e.nonce),...void 0!==e.yParity?{yParity:Se(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Se(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>Ee(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),e.account&&(t.from=e.account.address),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=Se(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=Se(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=Se(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=Se(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=Se(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=Se(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=jt[e.type]),void 0!==e.value&&(t.value=Se(e.value)),t}const Vt=2n**256n-1n,zt={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Wt(e,n){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ge(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?ge(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?zt[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n==0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}const qt=/* @__PURE__ */Pt("transaction",Wt);function Gt(e,n){const t=(e.transactions??[]).map(e=>"string"==typeof e?e:Wt(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Yt=/* @__PURE__ */Pt("block",Gt);function Jt(e){const{kzg:n}=e,t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>Ne(e)):e.blobs,i=[];for(const o of r)i.push(Uint8Array.from(n.blobToKzgCommitment(o)));return"bytes"===t?i:i.map(e=>Ee(e))}function Kt(e){const{kzg:n}=e,t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>Ne(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>Ne(e)):e.commitments,o=[];for(let a=0;a<r.length;a++){const e=r[a],t=i[a];o.push(Uint8Array.from(n.computeBlobKzgProof(e,t)))}return"bytes"===t?o:o.map(e=>Ee(e))}function Xt(e,n,t){return e&n^~e&t}function Qt(e,n,t){return e&n^e&t^n&t}class Zt extends vn{constructor(e,n,t,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=r,this.buffer=new Uint8Array(e),this.view=an(this.buffer)}update(e){tn(this),en(e=mn(e));const{view:n,buffer:t,blockLen:r}=this,i=e.length;for(let o=0;o<i;){const a=Math.min(r-this.pos,i-o);if(a===r){const n=an(e);for(;r<=i-o;o+=r)this.process(n,o);continue}t.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){tn(this),rn(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:i}=this;let{pos:o}=this;n[o++]=128,on(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(t,0),o=0);for(let c=o;c<r;c++)n[c]=0;!function(e,n,t,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(n,t,r);const i=BigInt(32),o=BigInt(4294967295),a=Number(t>>i&o),s=Number(t&o),l=r?4:0,u=r?0:4;e.setUint32(n+l,a,r),e.setUint32(n+u,s,r)}(t,r-8,BigInt(8*this.length),i),this.process(t,0);const a=an(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=s/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<l;c++)a.setUint32(4*c,u[c],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}Re(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:r,finished:i,destroyed:o,pos:a}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this.Re()}}const _t=/* @__PURE__ */Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),$t=/* @__PURE__ */Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),er=/* @__PURE__ */Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nr=/* @__PURE__ */new Uint32Array(64);class tr extends Zt{constructor(e=32){super(64,e,8,!1),this.A=0|_t[0],this.B=0|_t[1],this.C=0|_t[2],this.D=0|_t[3],this.E=0|_t[4],this.F=0|_t[5],this.G=0|_t[6],this.H=0|_t[7]}get(){const{A:e,B:n,C:t,D:r,E:i,F:o,G:a,H:s}=this;return[e,n,t,r,i,o,a,s]}set(e,n,t,r,i,o,a,s){this.A=0|e,this.B=0|n,this.C=0|t,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,n){for(let c=0;c<16;c++,n+=4)nr[c]=e.getUint32(n,!1);for(let c=16;c<64;c++){const e=nr[c-15],n=nr[c-2],t=sn(e,7)^sn(e,18)^e>>>3,r=sn(n,17)^sn(n,19)^n>>>10;nr[c]=r+nr[c-7]+t+nr[c-16]|0}let{A:t,B:r,C:i,D:o,E:a,F:s,G:l,H:u}=this;for(let c=0;c<64;c++){const e=u+(sn(a,6)^sn(a,11)^sn(a,25))+Xt(a,s,l)+er[c]+nr[c]|0,n=(sn(t,2)^sn(t,13)^sn(t,22))+Qt(t,r,i)|0;u=l,l=s,s=a,a=o+e|0,o=i,i=r,r=t,t=e+n|0}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(t,r,i,o,a,s,l,u)}roundClean(){on(nr)}destroy(){this.set(0,0,0,0,0,0,0,0),on(this.buffer)}}const rr=/* @__PURE__ */(()=>Ue(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),ir=/* @__PURE__ */(()=>rr[0])(),or=/* @__PURE__ */(()=>rr[1])(),ar=/* @__PURE__ */new Uint32Array(80),sr=/* @__PURE__ */new Uint32Array(80);class lr extends Zt{constructor(e=64){super(128,e,16,!1),this.Ah=0|$t[0],this.Al=0|$t[1],this.Bh=0|$t[2],this.Bl=0|$t[3],this.Ch=0|$t[4],this.Cl=0|$t[5],this.Dh=0|$t[6],this.Dl=0|$t[7],this.Eh=0|$t[8],this.El=0|$t[9],this.Fh=0|$t[10],this.Fl=0|$t[11],this.Gh=0|$t[12],this.Gl=0|$t[13],this.Hh=0|$t[14],this.Hl=0|$t[15]}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:i,Cl:o,Dh:a,Dl:s,Eh:l,El:u,Fh:c,Fl:f,Gh:d,Gl:h,Hh:p,Hl:m}=this;return[e,n,t,r,i,o,a,s,l,u,c,f,d,h,p,m]}set(e,n,t,r,i,o,a,s,l,u,c,f,d,h,p,m){this.Ah=0|e,this.Al=0|n,this.Bh=0|t,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,n){for(let y=0;y<16;y++,n+=4)ar[y]=e.getUint32(n),sr[y]=e.getUint32(n+=4);for(let y=16;y<80;y++){const e=0|ar[y-15],n=0|sr[y-15],t=He(e,n,1)^He(e,n,8)^Pe(e,0,7),r=Ve(e,n,1)^Ve(e,n,8)^je(e,n,7),i=0|ar[y-2],o=0|sr[y-2],a=He(i,o,19)^ze(i,o,61)^Pe(i,0,6),s=Ve(i,o,19)^We(i,o,61)^je(i,o,6),l=Je(r,s,sr[y-7],sr[y-16]),u=Ke(l,t,a,ar[y-7],ar[y-16]);ar[y]=0|u,sr[y]=0|l}let{Ah:t,Al:r,Bh:i,Bl:o,Ch:a,Cl:s,Dh:l,Dl:u,Eh:c,El:f,Fh:d,Fl:h,Gh:p,Gl:m,Hh:b,Hl:v}=this;for(let y=0;y<80;y++){const e=He(c,f,14)^He(c,f,18)^ze(c,f,41),n=Ve(c,f,14)^Ve(c,f,18)^We(c,f,41),w=c&d^~c&p,g=Xe(v,n,f&h^~f&m,or[y],sr[y]),k=Qe(g,b,e,w,ir[y],ar[y]),A=0|g,x=He(t,r,28)^ze(t,r,34)^ze(t,r,39),E=Ve(t,r,28)^We(t,r,34)^We(t,r,39),S=t&i^t&a^i&a,C=r&o^r&s^o&s;b=0|p,v=0|m,p=0|d,m=0|h,d=0|c,h=0|f,({h:c,l:f}=qe(0|l,0|u,0|k,0|A)),l=0|a,u=0|s,a=0|i,s=0|o,i=0|t,o=0|r;const T=Ge(A,E,C);t=Ye(T,k,x,S),r=0|T}({h:t,l:r}=qe(0|this.Ah,0|this.Al,0|t,0|r)),({h:i,l:o}=qe(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=qe(0|this.Ch,0|this.Cl,0|a,0|s)),({h:l,l:u}=qe(0|this.Dh,0|this.Dl,0|l,0|u)),({h:c,l:f}=qe(0|this.Eh,0|this.El,0|c,0|f)),({h:d,l:h}=qe(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:m}=qe(0|this.Gh,0|this.Gl,0|p,0|m)),({h:b,l:v}=qe(0|this.Hh,0|this.Hl,0|b,0|v)),this.set(t,r,i,o,a,s,l,u,c,f,d,h,p,m,b,v)}roundClean(){on(ar,sr)}destroy(){on(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ur=/* @__PURE__ */yn(()=>new tr),cr=/* @__PURE__ */yn(()=>new lr),fr=ur;function dr(e){const{commitment:n,version:t=1}=e,r=e.to??("string"==typeof n?"hex":"bytes"),i=fr(Z(o=n,{strict:!1})?Me(o):o);var o;return i.set([t],0),"bytes"===r?i:Ee(i)}const hr=761855;class pr extends ne{constructor({maxSize:e,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class mr extends ne{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class br extends ne{constructor({hash:e,size:n}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class vr extends ne{constructor({hash:e,version:n}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}class yr extends ne{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class wr extends ne{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}const gr={"0x0":"reverted","0x1":"success"};function kr(e,n){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e,{args:n,eventName:t}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...t?{args:n,eventName:t}:{}}}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ge(e.transactionIndex):null,status:e.status?gr[e.status]:null,type:e.type?zt[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const Ar=/* @__PURE__ */Pt("transactionReceipt",kr);function xr(e){const{chainId:n,maxPriorityFeePerGas:t,maxFeePerGas:r,to:i}=e;if(n<=0)throw new yr({chainId:n});if(i&&!qn(i))throw new jn({address:i});if(r&&r>Vt)throw new Ct({maxFeePerGas:r});if(t&&r&&t>r)throw new Lt({maxFeePerGas:r,maxPriorityFeePerGas:t})}function Er(e){if(!e||0===e.length)return[];const n=[];for(let t=0;t<e.length;t++){const{address:r,storageKeys:i}=e[t];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new gt({storageKey:i[e]});if(!qn(r,{strict:!1}))throw new jn({address:r});n.push([r,i])}return n}function Sr(e,n){const t=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new wt({transaction:e})}(e);return"eip1559"===t?function(e,n){const{chainId:t,gas:r,nonce:i,to:o,value:a,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:u,data:c}=e;xr(e);const f=Er(u);return Yn(["0x02",At([Se(t),i?Se(i):"0x",l?Se(l):"0x",s?Se(s):"0x",r?Se(r):"0x",o??"0x",a?Se(a):"0x",c??"0x",f,...Cr(e,n)])])}(e,n):"eip2930"===t?function(e,n){const{chainId:t,gas:r,data:i,nonce:o,to:a,value:s,accessList:l,gasPrice:u}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:i,to:o}=e;if(n<=0)throw new yr({chainId:n});if(o&&!qn(o))throw new jn({address:o});if(t||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Vt)throw new Ct({maxFeePerGas:r})}(e);const c=Er(l);return Yn(["0x01",At([Se(t),o?Se(o):"0x",u?Se(u):"0x",r?Se(r):"0x",a??"0x",s?Se(s):"0x",i??"0x",c,...Cr(e,n)])])}(e,n):"eip4844"===t?function(e,n){const{chainId:t,gas:r,nonce:i,to:o,value:a,maxFeePerBlobGas:s,maxFeePerGas:l,maxPriorityFeePerGas:u,accessList:c,data:f}=e;!function(e){const{blobVersionedHashes:n}=e;if(n){if(0===n.length)throw new mr;for(const e of n){const n=_(e),t=ge(Jn(e,0,1));if(32!==n)throw new br({hash:e,size:n});if(1!==t)throw new vr({hash:e,version:t})}}xr(e)}(e);let d=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(void 0===d||void 0===h)){const n="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>Ee(e)),t=e.kzg,r=Jt({blobs:n,kzg:t});void 0===d&&(d=function(e){const{commitments:n,version:t}=e,r=e.to??("string"==typeof n[0]?"hex":"bytes"),i=[];for(const o of n)i.push(dr({commitment:o,to:r,version:t}));return i}({commitments:r})),void 0===h&&(h=function(e){const{data:n,kzg:t,to:r}=e,i=e.blobs??function(e){const n=e.to??("string"==typeof e.data?"hex":"bytes"),t="string"==typeof e.data?Ne(e.data):e.data,r=_(t);if(!r)throw new mr;if(r>hr)throw new pr({maxSize:hr,size:r});const i=[];let o=!0,a=0;for(;o;){const e=ct(new Uint8Array(131072));let n=0;for(;n<4096;){const r=t.slice(a,a+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),o=!1;break}n++,a+=31}i.push(e)}return"bytes"===n?i.map(e=>e.bytes):i.map(e=>Ee(e.bytes))}({data:n,to:r}),o=e.commitments??Jt({blobs:i,kzg:t,to:r}),a=e.proofs??Kt({blobs:i,commitments:o,kzg:t,to:r}),s=[];for(let l=0;l<i.length;l++)s.push({blob:i[l],commitment:o[l],proof:a[l]});return s}({blobs:n,commitments:r,proofs:Kt({blobs:n,commitments:r,kzg:t})}))}const p=Er(c),m=[Se(t),i?Se(i):"0x",u?Se(u):"0x",l?Se(l):"0x",r?Se(r):"0x",o??"0x",a?Se(a):"0x",f??"0x",p,s?Se(s):"0x",d??[],...Cr(e,n)],b=[],v=[],y=[];if(h)for(let w=0;w<h.length;w++){const{blob:e,commitment:n,proof:t}=h[w];b.push(e),v.push(n),y.push(t)}return Yn(["0x03",At(h?[m,b,v,y]:m)])}(e,n):"eip7702"===t?function(e,n){const{authorizationList:t,chainId:r,gas:i,nonce:o,to:a,value:s,maxFeePerGas:l,maxPriorityFeePerGas:u,accessList:c,data:f}=e;!function(e){const{authorizationList:n}=e;if(n)for(const t of n){const{chainId:e}=t,n=t.address;if(!qn(n))throw new jn({address:n});if(e<0)throw new yr({chainId:e})}xr(e)}(e);const d=Er(c),h=function(e){if(!e||0===e.length)return[];const n=[];for(const t of e){const{chainId:e,nonce:r,...i}=t,o=t.address;n.push([e?Ae(e):"0x",o,r?Ae(r):"0x",...Cr({},i)])}return n}(t);return Yn(["0x04",At([Se(r),o?Se(o):"0x",u?Se(u):"0x",l?Se(l):"0x",i?Se(i):"0x",a??"0x",s?Se(s):"0x",f??"0x",d,h,...Cr(e,n)])])}(e,n):function(e,n){const{chainId:t=0,gas:r,data:i,nonce:o,to:a,value:s,gasPrice:l}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:i,to:o}=e;if(o&&!qn(o))throw new jn({address:o});if(void 0!==n&&n<=0)throw new yr({chainId:n});if(t||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Vt)throw new Ct({maxFeePerGas:r})}(e);let u=[o?Se(o):"0x",l?Se(l):"0x",r?Se(r):"0x",a??"0x",s?Se(s):"0x",i??"0x"];if(n){const e=(()=>{if(n.v>=35n)return(n.v-35n)/2n>0?n.v:27n+(35n===n.v?0n:1n);if(t>0)return BigInt(2*t)+BigInt(35n+n.v-27n);const e=27n+(27n===n.v?0n:1n);if(n.v!==e)throw new yt({v:n.v});return e})(),r=ve(n.r),i=ve(n.s);u=[...u,Se(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else t>0&&(u=[...u,Se(t),"0x","0x"]);return At(u)}(e,n)}function Cr(e,n){const t=n??e,{v:r,yParity:i}=t;if(void 0===t.r)return[];if(void 0===t.s)return[];if(void 0===r&&void 0===i)return[];const o=ve(t.r),a=ve(t.s);return["number"==typeof i?i?Se(1):"0x":0n===r?"0x":1n===r?Se(1):27n===r?"0x":Se(1),"0x00"===o?"0x":o,"0x00"===a?"0x":a]}function Tr(e){const n={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(n,{extend:function e(n){return t=>{const r="function"==typeof t?t(n):t,i={...n,...r};return Object.assign(i,{extend:e(i)})}}(n)})}class Ir extends vn{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,nn(e);const t=mn(n);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),on(i)}update(e){return tn(this),this.iHash.update(e),this}digestInto(e){tn(this),en(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}Re(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:r,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=n.Re(e.oHash),e.iHash=t.Re(e.iHash),e}clone(){return this.Re()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Mr=(e,n,t)=>new Ir(e,n).update(t).digest();Mr.create=(e,n)=>new Ir(e,n);class Or extends ne{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Rr(e,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Or({value:e});let[t,r="0"]=e.split(".");const i=t.startsWith("-");if(i&&(t=t.slice(1)),r=r.replace(/(0+)$/,""),0===n)1===Math.round(Number(`.${r}`))&&(t=`${BigInt(t)+1n}`),r="";else if(r.length>n){const[e,i,o]=[r.slice(0,n-1),r.slice(n-1,n),r.slice(n)],a=Math.round(Number(`${i}.${o}`));r=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,r.length>n&&(r=r.slice(1),t=`${BigInt(t)+1n}`),r=r.slice(0,n)}else r=r.padEnd(n,"0");return BigInt(`${i?"-":""}${t}${r}`)}const Nr="0x0000000000000000000000000000000000000000",Br={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:/* @__PURE__ */Yt({format(e){const n=e.transactions?.map(e=>{if("string"==typeof e)return e;const n=Wt(e);return"0x7e"===n.typeHex&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?we(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n});return{transactions:n,stateRoot:e.stateRoot}}}),transaction:/* @__PURE__ */qt({format(e){const n={};return"0x7e"===e.type&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?we(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n}}),transactionReceipt:/* @__PURE__ */Ar({format:e=>({l1GasPrice:e.l1GasPrice?we(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?we(e.l1GasUsed):null,l1Fee:e.l1Fee?we(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:function(e,n){return function(e){return"deposit"===e.type||void 0!==e.sourceHash}(e)?function(e){!function(e){const{from:n,to:t}=e;if(n&&!qn(n))throw new jn({address:n});if(t&&!qn(t))throw new jn({address:t})}(e);const{sourceHash:n,data:t,from:r,gas:i,isSystemTx:o,mint:a,to:s,value:l}=e;return Yn(["0x7e",At([n,r,s??"0x",a?Ae(a):"0x",l?Ae(l):"0x",i?Ae(i):"0x",o?"0x1":"0x",t??"0x"])])}(e):Sr(e,n)}}},Fr=/* @__PURE__ */Tr({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Lr=/* @__PURE__ */Tr({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Dr=1,Ur=/* @__PURE__ */Tr({...Br,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...Br.contracts,disputeGameFactory:{[Dr]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Dr]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Dr]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Dr]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),Pr=/* @__PURE__ */Tr({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});async function jr(e,n){const{account:t=e.account}=n;if(!t)throw new wr;const r=rt(t);try{const{accessList:t,blockNumber:i,blockTag:o,data:a,gas:s,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:d,value:h,...p}=n,m=("bigint"==typeof i?Se(i):void 0)||o;!function(e){const{account:n,maxFeePerGas:t,maxPriorityFeePerGas:r,to:i}=e,o=n?rt(n):void 0;if(o&&!qn(o.address))throw new jn({address:o.address});if(i&&!qn(i))throw new jn({address:i});if(t&&t>Vt)throw new Ct({maxFeePerGas:t});if(r&&t&&r>t)throw new Lt({maxFeePerGas:t,maxPriorityFeePerGas:r})}(n);const b=e.chain?.formatters?.transactionRequest?.format,v=(b||Ht)({...Ut(p,{format:b}),account:r,accessList:t,data:a,gas:s,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:d,value:h},"estimateGas"),{baseFeePerGas:y,gasLimit:w,priorityFeePerGas:g}=await e.request({method:"linea_estimateGas",params:m?[v,m]:[v]});return{baseFeePerGas:BigInt(y),gasLimit:BigInt(w),priorityFeePerGas:BigInt(g)}}catch(i){throw function(e,{docsPath:n,...t}){const r=(()=>{const n=function(e,n){const t=(e.details||"").toLowerCase(),r=e instanceof ne?e.walk(e=>e?.code===St.code):e;return r instanceof ne?new St({cause:e,message:r.details}):St.nodeMessage.test(t)?new St({cause:e,message:e.details}):Ct.nodeMessage.test(t)?new Ct({cause:e,maxFeePerGas:n?.maxFeePerGas}):Tt.nodeMessage.test(t)?new Tt({cause:e,maxFeePerGas:n?.maxFeePerGas}):It.nodeMessage.test(t)?new It({cause:e,nonce:n?.nonce}):Mt.nodeMessage.test(t)?new Mt({cause:e,nonce:n?.nonce}):Ot.nodeMessage.test(t)?new Ot({cause:e,nonce:n?.nonce}):Rt.nodeMessage.test(t)?new Rt({cause:e}):Nt.nodeMessage.test(t)?new Nt({cause:e,gas:n?.gas}):Bt.nodeMessage.test(t)?new Bt({cause:e,gas:n?.gas}):Ft.nodeMessage.test(t)?new Ft({cause:e}):Lt.nodeMessage.test(t)?new Lt({cause:e,maxFeePerGas:n?.maxFeePerGas,maxPriorityFeePerGas:n?.maxPriorityFeePerGas}):new Dt({cause:e})}(e,t);return n instanceof Dt?e:n})();return new kt(r,{docsPath:n,...t})}(i,{...n,account:r,chain:e.chain})}}async function Hr({client:e,multiply:n,request:t,type:r}){try{const i=await jr(e,{...t,account:t?.account}),{priorityFeePerGas:o}=i,a=n(BigInt(i.baseFeePerGas))+o;return"legacy"===r?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:o}}catch{return null}}const Vr=/* @__PURE__ */Tr({fees:{estimateFeesPerGas:Hr,async maxPriorityFeePerGas({block:e,client:n,request:t}){const r=await Hr({block:e,client:n,multiply:e=>e,request:t,type:"eip1559"});return r?.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}},id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),zr=1,Wr=1,qr={1:{.../* @__PURE__ */Tr({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca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o3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",tokenTrendingDefault:["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"],isSupported:!0},10:{.../* @__PURE__ */Tr({...Br,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...Br.contracts,disputeGameFactory:{[zr]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[zr]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[zr]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[zr]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjo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PnyYImz4uSbAzEx7+faPZG3XNeqoicW0IGBwxhNuyI4gqMNY0oI6W2eQf60cMVwiTpsqX4x1yeqoPuMY6QeLrpa3disExQEgXBtc7GR5TX6EL5KiGHp0Y3DQkCCuGfLhNDrtsYB3ALc80KvIszxTvaLE4tc1JsQ6QtcRfK7YStwCmSTS3tUidKKcyrtXhoOMozWzWUrH6dXub/nVyK5Oaou2tBLuydtBPJV2hveQ6i+UJ1dpYe3W7aQVR5uVcV3kasptSiiZbe6sBSiou6yrOPI93iK7lEy/IFGddiCf21kXZigxUc3WIL0dQWdcKvWtkZHG7EKe4ed5S7JZH0VJOrn+SBYJ4z/Itj4D6AE+p7jKvNCIxCt3TsPht86Ib1SOmOEtJ8liM6m6bt/bZTpT1lBQDuFuvmsLQrVdLX/SpDgCZxPbOvjqmbk5s5CpcHEica2/HzuN8fFu8gAxgfKXesOEfZpmxQvbWjiuIFyiHCHvgUqwsnRz3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x68f180fcce6836688e9084f035309e29bf0a2095","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},56:{...Pr,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZ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WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",tokenTrendingDefault:["0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"],isSupported:!0},137:{.../* @__PURE__ */Tr({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),rpcUrls:{default:{http:["https://polygon-bor-rpc.publicnode.com"]}},logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLkFL84tbRRHUaqklVpIeuLCn14wqMKOVCoiVVmnJypRrwVN7DYpCzHJ2njn5X3f7phde3bnzcyb2Z1hP9LKa7PGu/N97/f3zXuMGpz03q9SZN7rS7DkdpMKPYwS2znxFCPqJC4eTDzK4ZQTP8txYtniDwrTBiVmCqwwTfnlTHqyJ0cNDKMGAwIkON/PiQaJ88E1F9w/WfGxM4yzswWDptIXHs1SA9EQgqT33hhknEYYGfvFtykKlywn8xw32cn0pa0ZqjN1EyQ9ONNptLQeJWYeovBFqEaWcSNdz5kTuiByNpjsECO2PwBzpJOTJjNOhC1MaI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sQAWu7UkaIsLj2FBIgeMPCZ+eKSFjGA9taaLLNwNhp7vyLvzeQnjk9s1XokVCC9Tnm+ummeYTHay7EcVG05SxzWNSvKCXTnsrG9Nw/J2RIXhx/QrCgn8K3kirOlkGaMHaQIU/QVy+lqh3npIrS9/aIqTJDmyY7QN1uMhDBoJjHzFGfJ8bCEsKjb7pcyoaTCYCP5GDEbMsJHnOP55fGgTVM16iZIOVgtieMySic0pChcsrg/A7djlO4AqCsNIUg5qI8lDGOAFxdWBHFqQ1Y8JhmxTIGxc2GbJCcaTpDVyK3QW5N9CZ7oNanQQ6VN68UFTZX2i6xMQIub6eREdzMn8iCM/lmDEjMFvjxLS4XJepkiVX4AbuLqSV+48XkAAAAASUVORK5CYII=",chainId:137,chainType:"matic",chainTypeMoralis:"polygon",tokenTrendingDefault:["0x7ceb23fd6bc0add59e62ac25578270cff1b9f619","0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"],isSupported:!0},8453:{...Ur,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoLQFYV4qC2BQiyiGET6WFrack60OBFyIHtBVtWi/tRN/djAsP8vEvvaanazFiY7QRgbAjzTjybKRabC+BfEuKYd/eoRyk0mwvgV5AvFGNFCsV3TNJgY80dwAE/4EaS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LT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},42161:{...Fr,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEuFJREFUeAHlXQ1sFOeZfmd2ba+NbWwwBv8QbAjY/BuKayeQsE5Acmp0NiRcepe0IVV71zvpjnA65VRdq8JdTydFOsXRnYh6rZqgUpoqTbDbEJwG4qUtDcZOMBiojQleEv5iSGPw7/7MfP3ez5717O7MzuzszOw6fSKz49lvN+N55n2f932/+d7hIMVR5m7KyxnzuQlxLBJ5sZwHWATAlXFA8gjh8oCDvLAPEBjiODJEgPPiryKQs7zIDwAJnh3JdnV7PS1DkMLgIMVQWVtf5hScjYQnVTwQNz2xZWAiCICXktlNyWwhxH/2Yue73ZBCSAlCVtXWu0XCNzkAGs0mQAtIEH3xcIJw4HxXmweSjKQRgq4oe8y/mx5CEz2KKkgBMHII7BX4tBO9p1q8kATYTsiK6q9UAQ+7eMI9E+X/UwiUnFcFLm2f3cTYRkhlbVOZkwReoZtumEGwmxjLCWFR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/WoVMDZucTmtAp4pGYUQ8FQ+glxn6dkIGSIRKbHgomIdmPzcNuoNjYXyiYds9IAn/3JovYMLFLyjMNEyADMeMfLInAMBl/kvTcQtmBJEYGwoRHr9ov9KkIIwKuhIQXfeIB4IEQi+4PngmgKWq3GWQgzGu0CPYmj6kD8tJI5ther87H4mnB1AfcD16/1EbLLHdphbjWyI0SMwpUL7AcQpO+vUNer2nRg6kWImFqxhGfXeWGLyY8dMbvWTNcVCQsIUTCitqv7KJFye9/YQR/0ir2Xeg40gwWwVSXFYnb1/q75y5c0soRPp+zqQZmHahWZI1t7z/5rgcshKUWIgcLj0XHXkrMMzCzYJl7UoJthEiYEcRggseRAyDCq4kkeUZgOyESkBgeeHeKaQytt3CtI66RZrPC2HiRNELkWFW7zU1Esgs4stlucnChEp3GauU5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",tokenTrendingDefault:["0x82af49447d8a07e3bd95bd0d56f35241523fbab1","0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],isSupported:!0},43114:{...Lr,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQH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5YUboXpdnAFENQa4fo3VHT8bHVLHlyy5T0cC6Jq48YW2KUNbdMScvoXBIxVhSOFjV6fB1TtKK+7CfHPZ5YjPcUbNnMFVa8bASg60kXJEgUJRyoJDqPKRqg1tMR/ZJBUpWtTpsxPXCzlab4MXUt8dv+xkX1skaqXl4Gwj5JyuuoZCrwVkp/NM0v2QnzyIhOYhyZRGGlpRKm6AzlywU10+SRfjIvhXjL95sqv3yBKSmgFrcuWYvoc18oTQ3DnHPlahFuEgqS60JpuRcNqTdbIcK0xz+S/IIwhS++OY2YQYoJwhReXscRIyiYJv8QahYVhNGy5lENrq2p5P/uy2yXCbS6o0EQZnrpcw3ETVblRasoEfe9U8uuXOrDLGH+OD9Y+FAUI6Iw3ajZKGvbKtNwL/3pmImqIhgTJWL/RY2Z6OjH+OYGh/z1ZaLgiPpDMhf5uQS7S+6X8by6SUE672WRvzyvMSPE1UkyAixGQOL6LoJrNvYc6LxnCXQvnKM6neVfFiSOMsR48d4lEl5HEoJzzglnDAGRLyHXnqC9aluMiFJF6edF9JQgkBKCIO4oT7Wio/NXFGdE6adzNerKCeJtxgV5vDEZ9NJSXXAlBO6o5mmtrIiIw0lRBmGR1AdYF6gcfo7gSLiPMqEGIWqq7a8NihY6JYgtFQHqwxZN1af4p7OBQ9Di5emuiTDI/4Da9NgV2sBcAAAAAElFTkSuQmCC",chainId:43114,chainType:"avax",chainTypeMoralis:"avalanche",tokenTrendingDefault:["0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB","0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"],isSupported:!0},59144:{...Vr,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABkCAYAAACWy14QAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABydJREFUeAHtnT1MHEcUxx8HEuAGYxdOY+fcpbBl6CJR+NI5FAR3o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mXWt2p61sP53vmoRIJMnvIMYYhJhuFjGU6VnAEMT7RjtC6STSDIRJFyPqwreJJQ0kM6arXUsSsWmGsvmzdhb3qIk1F6favSSH2jca9cwOFjx+53bUtb4eiUmIqnJ2s4UMo4BeVSf01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",tokenTrendingDefault:["0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f","0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4"],isSupported:!0},130:{.../* @__PURE__ */Tr({...Br,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...Br.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Wr]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Wr]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Wr]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg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u+mR5vJUE+lnur0KDl36+uKkk0/uHn3iUrfP8RBm9qr4F1LlabPjgHa621G0NOYnmPBTzqF+Rpb0qyL1upmYFtKAKEUUM1mRlv9wdSsyA4hR5XCIpoWeF1FoN3OOl568657yx5d9t7zu/KrjLv2N6U9sgZ/h9jNngG1nw9l+urjx8KP8umNPaZ9wDCL7F7Rje280CG3X6zDsHM9s1VKgh+bvBXCen4jdzSQs7dfPIbVjIv8MBiKqrIB8cqnIb5/x5XDox7ciurzunNF/XL4hrv/+5cONd1wKl5bwDGzPGAOaG/1s7mGwZPffzk9du4dbfsiWYvjcdsz33aNYsbJXdLtYB+jgSNtorilUoh/UbUXCox0veH4UIqYMKGzGgDqO8PshpubHiN2H24fb5+6vtjyIKOmO5ePeTbfGe274RHn+HSOYWP9MEb25/VwwYMftBbDfosWwdPGHDnvX7geu2H/dtmJuHchvpC5Dek9hjXkVeu4J1BVJZaDdwr9Yna+GWBLdgJ77p3mWbVpdLb77e3dfcfOZt/3dfYshm74UfjwLP2fb/wd5ICT31PZzFAAAAABJRU5ErkJggg==",chainId:130,chainType:"unichain",chainTypeMoralis:"unichain",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x0555e30da8f98308edb960aa94c0db47230d2b9c"],isSupported:!1},7565164:{id:7565164,name:"Solana",nativeCurrency:{decimals:18,name:"Solana",symbol:"SOL"},rpcUrls:{default:{http:[""]}},logo:"https://ipfs.pantograph.app/ipfs/QmZhKcFZVvw5r3cGLfSLsLcd1GzbQK5Vf7aoVYvgktzUUA?filename=Solana_logo.png",chainId:7565164,isSupported:!1}},Gr=e=>{const n=Object.values(qr).find(n=>n.chainTypeMoralis===e);return n?.chainType||null};var Yr,Jr,Kr,Xr={},Qr={},Zr={};function _r(){return Kr||(Kr=1,function(e){const n=function(){if(Yr)return Qr;Yr=1,Qr.byteLength=function(e){var n=o(e),t=n[0],r=n[1];return 3*(t+r)/4-r},Qr.toByteArray=function(e){var r,i,a=o(e),s=a[0],l=a[1],u=new t(function(e,n,t){return 3*(n+t)/4-t}(0,s,l)),c=0,f=l>0?s-4:s;for(i=0;i<f;i+=4)r=n[e.charCodeAt(i)]<<18|n[e.charCodeAt(i+1)]<<12|n[e.charCodeAt(i+2)]<<6|n[e.charCodeAt(i+3)],u[c++]=r>>16&255,u[c++]=r>>8&255,u[c++]=255&r;return 2===l&&(r=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,u[c++]=255&r),1===l&&(r=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,u[c++]=r>>8&255,u[c++]=255&r),u},Qr.fromByteArray=function(n){for(var t,r=n.length,i=r%3,o=[],a=16383,l=0,u=r-i;l<u;l+=a)o.push(s(n,l,l+a>u?u:l+a));return 1===i?(t=n[r-1],o.push(e[t>>2]+e[t<<4&63]+"==")):2===i&&(t=(n[r-2]<<8)+n[r-1],o.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"=")),o.join("")};for(var e=[],n=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=r[i],n[r.charCodeAt(i)]=i;function o(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=n),[t,t===n?0:4-t%4]}function a(n){return e[n>>18&63]+e[n>>12&63]+e[n>>6&63]+e[63&n]}function s(e,n,t){for(var r,i=[],o=n;o<t;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(a(r));return i.join("")}return n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63,Qr}(),t=(Jr||(Jr=1,Zr.read=function(e,n,t,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=t?i-1:0,d=t?-1:1,h=e[n+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[n+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[n+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},Zr.write=function(e,n,t,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,a=c):(a=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-a))<1&&(a--,l*=2),(n+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(n*l-1)*Math.pow(2,i),a+=f):(s=n*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[t+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[t+h]=255&a,h+=p,a/=256,u-=8);e[t+h-p]|=128*m}),Zr),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const n=new Uint8Array(e);return Object.setPrototypeOf(n,a.prototype),n}function a(e,n,t){if("number"==typeof e){if("string"==typeof n)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,n,t)}function s(e,n,t){if("string"==typeof e)return function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const t=0|h(e,n);let r=o(t);const i=r.write(e,n);return i!==t&&(r=r.slice(0,i)),r}(e,n);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const n=new Uint8Array(e);return f(n.buffer,n.byteOffset,n.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return f(e,n,t);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return f(e,n,t);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,n,t);const i=function(e){if(a.isBuffer(e)){const n=0|d(e.length),t=o(n);return 0===t.length||e.copy(t,0,0,n),t}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),n,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),o(e<0?0:0|d(e))}function c(e){const n=e.length<0?0:0|d(e.length),t=o(n);for(let r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(e,n,t){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===n&&void 0===t?new Uint8Array(e):void 0===t?new Uint8Array(e,n):new Uint8Array(e,n,t),Object.setPrototypeOf(r,a.prototype),r}function d(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,n){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const t=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===t)return 0;let i=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return G(e).length;default:if(i)return r?-1:q(e).length;n=(""+n).toLowerCase(),i=!0}}function p(e,n,t){let r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,n,t);case"utf8":case"utf-8":return E(this,n,t);case"ascii":return C(this,n,t);case"latin1":case"binary":return T(this,n,t);case"base64":return x(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,n,t){const r=e[n];e[n]=e[t],e[t]=r}function b(e,n,t,r,i){if(0===e.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),K(t=+t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0){if(!i)return-1;t=0}if("string"==typeof n&&(n=a.from(n,r)),a.isBuffer(n))return 0===n.length?-1:v(e,n,t,r,i);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):v(e,[n],t,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,n,t,r,i){let o,a=1,s=e.length,l=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;a=2,s/=2,l/=2,t/=2}function u(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(i){let r=-1;for(o=t;o<s;o++)if(u(e,o)===u(n,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(t+l>s&&(t=s-l),o=t;o>=0;o--){let t=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(n,r)){t=!1;break}if(t)return o}return-1}function y(e,n,t,r){t=Number(t)||0;const i=e.length-t;r?(r=Number(r))>i&&(r=i):r=i;const o=n.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(n.substr(2*a,2),16);if(K(r))return a;e[t+a]=r}return a}function w(e,n,t,r){return Y(q(n,e.length-t),e,t,r)}function g(e,n,t,r){return Y(function(e){const n=[];for(let t=0;t<e.length;++t)n.push(255&e.charCodeAt(t));return n}(n),e,t,r)}function k(e,n,t,r){return Y(G(n),e,t,r)}function A(e,n,t,r){return Y(function(e,n){let t,r,i;const o=[];for(let a=0;a<e.length&&!((n-=2)<0);++a)t=e.charCodeAt(a),r=t>>8,i=t%256,o.push(i),o.push(r);return o}(n,e.length-t),e,t,r)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,n,t){t=Math.min(e.length,t);const r=[];let i=n;for(;i<t;){const n=e[i];let o=null,a=n>239?4:n>223?3:n>191?2:1;if(i+a<=t){let t,r,s,l;switch(a){case 1:n<128&&(o=n);break;case 2:t=e[i+1],128==(192&t)&&(l=(31&n)<<6|63&t,l>127&&(o=l));break;case 3:t=e[i+1],r=e[i+2],128==(192&t)&&128==(192&r)&&(l=(15&n)<<12|(63&t)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:t=e[i+1],r=e[i+2],s=e[i+3],128==(192&t)&&128==(192&r)&&128==(192&s)&&(l=(15&n)<<18|(63&t)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const n=e.length;if(n<=S)return String.fromCharCode.apply(String,e);let t="",r=0;for(;r<n;)t+=String.fromCharCode.apply(String,e.slice(r,r+=S));return t}(r)}e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,n,t){return s(e,n,t)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,n,t){return function(e,n,t){return l(e),e<=0?o(e):void 0!==n?"string"==typeof t?o(e).fill(n,t):o(e).fill(n):o(e)}(e,n,t)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e.Be&&e!==a.prototype},a.compare=function(e,n){if(J(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),J(n,Uint8Array)&&(n=a.from(n,n.offset,n.byteLength)),!a.isBuffer(e)||!a.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let t=e.length,r=n.length;for(let i=0,o=Math.min(t,r);i<o;++i)if(e[i]!==n[i]){t=e[i],r=n[i];break}return t<r?-1:r<t?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let t;if(void 0===n)for(n=0,t=0;t<e.length;++t)n+=e[t].length;const r=a.allocUnsafe(n);let i=0;for(t=0;t<e.length;++t){let n=e[t];if(J(n,Uint8Array))i+n.length>r.length?(a.isBuffer(n)||(n=a.from(n)),n.copy(r,i)):Uint8Array.prototype.set.call(r,n,i);else{if(!a.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(r,i)}i+=n.length}return r},a.byteLength=h,a.prototype.Be=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<e;n+=2)m(this,n,n+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<e;n+=4)m(this,n,n+3),m(this,n+1,n+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<e;n+=8)m(this,n,n+7),m(this,n+1,n+6),m(this,n+2,n+5),m(this,n+3,n+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let n="";const t=e.INSPECT_MAX_BYTES;return n=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(n+=" ... "),"<Buffer "+n+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(e,n,t,r,i){if(J(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),n<0||t>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&n>=t)return 0;if(r>=i)return-1;if(n>=t)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(t>>>=0)-(n>>>=0);const l=Math.min(o,s),u=this.slice(r,i),c=e.slice(n,t);for(let a=0;a<l;++a)if(u[a]!==c[a]){o=u[a],s=c[a];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,n,t){return-1!==this.indexOf(e,n,t)},a.prototype.indexOf=function(e,n,t){return b(this,e,n,t,!0)},a.prototype.lastIndexOf=function(e,n,t){return b(this,e,n,t,!1)},a.prototype.write=function(e,n,t,r){if(void 0===n)r="utf8",t=this.length,n=0;else if(void 0===t&&"string"==typeof n)r=n,t=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(t)?(t>>>=0,void 0===r&&(r="utf8")):(r=t,t=void 0)}const i=this.length-n;if((void 0===t||t>i)&&(t=i),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return y(this,e,n,t);case"utf8":case"utf-8":return w(this,e,n,t);case"ascii":case"latin1":case"binary":return g(this,e,n,t);case"base64":return k(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n,t);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.Fe||this,0)}};const S=4096;function C(e,n,t){let r="";t=Math.min(e.length,t);for(let i=n;i<t;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,n,t){let r="";t=Math.min(e.length,t);for(let i=n;i<t;++i)r+=String.fromCharCode(e[i]);return r}function I(e,n,t){const r=e.length;(!n||n<0)&&(n=0),(!t||t<0||t>r)&&(t=r);let i="";for(let o=n;o<t;++o)i+=X[e[o]];return i}function M(e,n,t){const r=e.slice(n,t);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,n,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>t)throw new RangeError("Trying to access beyond buffer length")}function R(e,n,t,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<o)throw new RangeError('"value" argument is out of bounds');if(t+r>e.length)throw new RangeError("Index out of range")}function N(e,n,t,r,i){H(n,r,i,e,t,7);let o=Number(n&BigInt(4294967295));e[t++]=o,o>>=8,e[t++]=o,o>>=8,e[t++]=o,o>>=8,e[t++]=o;let a=Number(n>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a>>=8,e[t++]=a,a>>=8,e[t++]=a,a>>=8,e[t++]=a,t}function B(e,n,t,r,i){H(n,r,i,e,t,7);let o=Number(n&BigInt(4294967295));e[t+7]=o,o>>=8,e[t+6]=o,o>>=8,e[t+5]=o,o>>=8,e[t+4]=o;let a=Number(n>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a>>=8,e[t+2]=a,a>>=8,e[t+1]=a,a>>=8,e[t]=a,t+8}function F(e,n,t,r,i,o){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function L(e,n,r,i,o){return n=+n,r>>>=0,o||F(e,0,r,4),t.write(e,n,r,i,23,4),r+4}function D(e,n,r,i,o){return n=+n,r>>>=0,o||F(e,0,r,8),t.write(e,n,r,i,52,8),r+8}a.prototype.slice=function(e,n){const t=this.length;(e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(n=void 0===n?t:~~n)<0?(n+=t)<0&&(n=0):n>t&&(n=t),n<e&&(n=e);const r=this.subarray(e,n);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=this[e],i=1,o=0;for(;++o<n&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=this[e+--n],i=1;for(;n>0&&(i*=256);)r+=this[e+--n]*i;return r},a.prototype.readUint8=a.prototype.readUInt8=function(e,n){return e>>>=0,n||O(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,n){return e>>>=0,n||O(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,n){return e>>>=0,n||O(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,n){return e>>>=0,n||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,n){return e>>>=0,n||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=Q(function(e){V(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||z(e,this.length-8);const r=n+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+t*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=Q(function(e){V(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||z(e,this.length-8);const r=n*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+t;return(BigInt(r)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=this[e],i=1,o=0;for(;++o<n&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*n)),r},a.prototype.readIntBE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=n,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o},a.prototype.readInt8=function(e,n){return e>>>=0,n||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,n){e>>>=0,n||O(e,2,this.length);const t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},a.prototype.readInt16BE=function(e,n){e>>>=0,n||O(e,2,this.length);const t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},a.prototype.readInt32LE=function(e,n){return e>>>=0,n||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,n){return e>>>=0,n||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=Q(function(e){V(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(t<<24);return(BigInt(r)<<BigInt(32))+BigInt(n+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),a.prototype.readBigInt64BE=Q(function(e){V(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||z(e,this.length-8);const r=(n<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+t)}),a.prototype.readFloatLE=function(e,n){return e>>>=0,n||O(e,4,this.length),t.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,n){return e>>>=0,n||O(e,4,this.length),t.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,n){return e>>>=0,n||O(e,8,this.length),t.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,n){return e>>>=0,n||O(e,8,this.length),t.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,n,t,r){e=+e,n>>>=0,t>>>=0,r||R(this,e,n,t,Math.pow(2,8*t)-1,0);let i=1,o=0;for(this[n]=255&e;++o<t&&(i*=256);)this[n+o]=e/i&255;return n+t},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,n,t,r){e=+e,n>>>=0,t>>>=0,r||R(this,e,n,t,Math.pow(2,8*t)-1,0);let i=t-1,o=1;for(this[n+i]=255&e;--i>=0&&(o*=256);)this[n+i]=e/o&255;return n+t},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,1,255,0),this[n]=255&e,n+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},a.prototype.writeBigUInt64LE=Q(function(e,n=0){return N(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Q(function(e,n=0){return B(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n>>>=0,!r){const r=Math.pow(2,8*t-1);R(this,e,n,t,r-1,-r)}let i=0,o=1,a=0;for(this[n]=255&e;++i<t&&(o*=256);)e<0&&0===a&&0!==this[n+i-1]&&(a=1),this[n+i]=(e/o|0)-a&255;return n+t},a.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n>>>=0,!r){const r=Math.pow(2,8*t-1);R(this,e,n,t,r-1,-r)}let i=t-1,o=1,a=0;for(this[n+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[n+i+1]&&(a=1),this[n+i]=(e/o|0)-a&255;return n+t},a.prototype.writeInt8=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},a.prototype.writeInt16LE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},a.prototype.writeInt16BE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},a.prototype.writeInt32LE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},a.prototype.writeInt32BE=function(e,n,t){return e=+e,n>>>=0,t||R(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},a.prototype.writeBigInt64LE=Q(function(e,n=0){return N(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Q(function(e,n=0){return B(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,n,t){return L(this,e,n,!0,t)},a.prototype.writeFloatBE=function(e,n,t){return L(this,e,n,!1,t)},a.prototype.writeDoubleLE=function(e,n,t){return D(this,e,n,!0,t)},a.prototype.writeDoubleBE=function(e,n,t){return D(this,e,n,!1,t)},a.prototype.copy=function(e,n,t,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r<t&&(r=t),r===t)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n<r-t&&(r=e.length-n+t);const i=r-t;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(n,t,r):Uint8Array.prototype.set.call(e,this.subarray(t,r),n),i},a.prototype.fill=function(e,n,t,r){if("string"==typeof e){if("string"==typeof n?(r=n,n=0,t=this.length):"string"==typeof t&&(r=t,t=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const n=e.charCodeAt(0);("utf8"===r&&n<128||"latin1"===r)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(n<0||this.length<n||this.length<t)throw new RangeError("Out of range index");if(t<=n)return this;let i;if(n>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(i=n;i<t;++i)this[i]=e;else{const o=a.isBuffer(e)?e:a.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<t-n;++i)this[i+n]=o[i%s]}return this};const U={};function P(e,n,t){U[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function j(e){let n="",t=e.length;const r="-"===e[0]?1:0;for(;t>=r+4;t-=3)n=`_${e.slice(t-3,t)}${n}`;return`${e.slice(0,t)}${n}`}function H(e,n,t,r,i,o){if(e>t||e<n){const t="bigint"==typeof n?"n":"";let r;throw r=0===n||n===BigInt(0)?`>= 0${t} and < 2${t} ** ${8*(o+1)}${t}`:`>= -(2${t} ** ${8*(o+1)-1}${t}) and < 2 ** ${8*(o+1)-1}${t}`,new U.ERR_OUT_OF_RANGE("value",r,e)}!function(e,n,t){V(n,"offset"),void 0!==e[n]&&void 0!==e[n+t]||z(n,e.length-(t+1))}(r,i,o)}function V(e,n){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(n,"number",e)}function z(e,n,t){if(Math.floor(e)!==e)throw V(e,t),new U.ERR_OUT_OF_RANGE("offset","an integer",e);if(n<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,e)}P("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),P("ERR_INVALID_ARG_TYPE",function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`},TypeError),P("ERR_OUT_OF_RANGE",function(e,n,t){let r=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=j(String(t)):"bigint"==typeof t&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=j(i)),i+="n"),r+=` It must be ${n}. Received ${i}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function q(e,n){let t;n=n||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(n-=3)>-1&&o.push(239,191,189),i=t;continue}t=65536+(i-55296<<10|t-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((n-=1)<0)break;o.push(t)}else if(t<2048){if((n-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,n,t,r){let i;for(i=0;i<r&&!(i+t>=n.length||i>=e.length);++i)n[i+t]=e[i];return i}function J(e,n){return e instanceof n||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===n.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",n=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let i=0;i<16;++i)n[r+i]=e[t]+e[i]}return n}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(Xr)),Xr}var $r=_r();const ei=/* @__PURE__ */BigInt(0),ni=/* @__PURE__ */BigInt(1);function ti(e,n=""){if("boolean"!=typeof e)throw new Error((n&&`"${n}"`)+"expected boolean, got type="+typeof e);return e}function ri(e,n,t=""){const r=_e(e),i=e?.length,o=void 0!==n;if(!r||o&&i!==n)throw new Error((t&&`"${t}" `)+"expected Uint8Array"+(o?` of length ${n}`:"")+", got "+(r?`length=${i}`:"type="+typeof e));return e}function ii(e){const n=e.toString(16);return 1&n.length?"0"+n:n}function oi(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?ei:BigInt("0x"+e)}function ai(e){return oi(dn(e))}function si(e){return en(e),oi(dn(Uint8Array.from(e).reverse()))}function li(e,n){return pn(e.toString(16).padStart(2*n,"0"))}function ui(e,n){return li(e,n).reverse()}function ci(e,n,t){let r;if("string"==typeof n)try{r=pn(n)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else{if(!_e(n))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(n)}const i=r.length;if("number"==typeof t&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return r}function fi(e){return Uint8Array.from(e)}const di=e=>"bigint"==typeof e&&ei<=e;function hi(e,n,t,r){if(!function(e,n,t){return di(e)&&di(n)&&di(t)&&n<=e&&e<t}(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function pi(e){let n;for(n=0;e>ei;e>>=ni,n+=1);return n}const mi=e=>(ni<<BigInt(e))-ni;function bi(e,n,t={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(n,t,r){const i=e[n];if(r&&void 0===i)return;const o=typeof i;if(o!==t||null===i)throw new Error(`param "${n}" is invalid: expected ${t}, got ${o}`)}Object.entries(n).forEach(([e,n])=>r(e,n,!1)),Object.entries(t).forEach(([e,n])=>r(e,n,!0))}function vi(e){const n=/* @__PURE__ */new WeakMap;return(t,...r)=>{const i=n.get(t);if(void 0!==i)return i;const o=e(t,...r);return n.set(t,o),o}}const yi=BigInt(0),wi=BigInt(1),gi=/* @__PURE__ */BigInt(2),ki=/* @__PURE__ */BigInt(3),Ai=/* @__PURE__ */BigInt(4),xi=/* @__PURE__ */BigInt(5),Ei=/* @__PURE__ */BigInt(7),Si=/* @__PURE__ */BigInt(8),Ci=/* @__PURE__ */BigInt(9),Ti=/* @__PURE__ */BigInt(16);function Ii(e,n){const t=e%n;return t>=yi?t:n+t}function Mi(e,n,t){let r=e;for(;n-- >yi;)r*=r,r%=t;return r}function Oi(e,n){if(e===yi)throw new Error("invert: expected non-zero number");if(n<=yi)throw new Error("invert: expected positive modulus, got "+n);let t=Ii(e,n),r=n,i=yi,o=wi;for(;t!==yi;){const e=r%t,n=i-o*(r/t);r=t,t=e,i=o,o=n}if(r!==wi)throw new Error("invert: does not exist");return Ii(i,n)}function Ri(e,n,t){if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root")}function Ni(e,n){const t=(e.ORDER+wi)/Ai,r=e.pow(n,t);return Ri(e,r,n),r}function Bi(e,n){const t=(e.ORDER-xi)/Si,r=e.mul(n,gi),i=e.pow(r,t),o=e.mul(n,i),a=e.mul(e.mul(o,gi),i),s=e.mul(o,e.sub(a,e.ONE));return Ri(e,s,n),s}function Fi(e){if(e<ki)throw new Error("sqrt is not defined for small field");let n=e-wi,t=0;for(;n%gi===yi;)n/=gi,t++;let r=gi;const i=ji(e);for(;1===Ui(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===t)return Ni;let o=i.pow(r,n);const a=(n+wi)/gi;return function(e,r){if(e.is0(r))return r;if(1!==Ui(e,r))throw new Error("Cannot find square root");let i=t,s=e.mul(e.ONE,o),l=e.pow(r,n),u=e.pow(r,a);for(;!e.eql(l,e.ONE);){if(e.is0(l))return e.ZERO;let n=1,t=e.sqr(l);for(;!e.eql(t,e.ONE);)if(n++,t=e.sqr(t),n===i)throw new Error("Cannot find square root");const r=wi<<BigInt(i-n-1),o=e.pow(s,r);i=n,s=e.sqr(o),l=e.mul(l,s),u=e.mul(u,o)}return u}}const Li=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Di(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((n,t,i)=>e.is0(t)?n:(r[i]=n,e.mul(n,t)),e.ONE),o=e.inv(i);return n.reduceRight((n,t,i)=>e.is0(t)?n:(r[i]=e.mul(n,r[i]),e.mul(n,t)),o),r}function Ui(e,n){const t=(e.ORDER-wi)/gi,r=e.pow(n,t),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!a)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function Pi(e,n){void 0!==n&&$e(n);const t=void 0!==n?n:e.toString(2).length;return{nBitLength:t,nByteLength:Math.ceil(t/8)}}function ji(e,n,t=!1,r={}){if(e<=yi)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,o,a,s=!1;if("object"==typeof n&&null!=n){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const e=n;e.BITS&&(i=e.BITS),e.sqrt&&(o=e.sqrt),"boolean"==typeof e.isLE&&(t=e.isLE),"boolean"==typeof e.modFromBytes&&(s=e.modFromBytes),a=e.allowedLengths}else"number"==typeof n&&(i=n),r.sqrt&&(o=r.sqrt);const{nBitLength:l,nByteLength:u}=Pi(e,i);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:e,isLE:t,BITS:l,BYTES:u,MASK:mi(l),ZERO:yi,ONE:wi,allowedLengths:a,create:n=>Ii(n,e),isValid:n=>{if("bigint"!=typeof n)throw new Error("invalid field element: expected bigint, got "+typeof n);return yi<=n&&n<e},is0:e=>e===yi,isValidNot0:e=>!f.is0(e)&&f.isValid(e),isOdd:e=>(e&wi)===wi,neg:n=>Ii(-n,e),eql:(e,n)=>e===n,sqr:n=>Ii(n*n,e),add:(n,t)=>Ii(n+t,e),sub:(n,t)=>Ii(n-t,e),mul:(n,t)=>Ii(n*t,e),pow:(e,n)=>function(e,n,t){if(t<yi)throw new Error("invalid exponent, negatives unsupported");if(t===yi)return e.ONE;if(t===wi)return n;let r=e.ONE,i=n;for(;t>yi;)t&wi&&(r=e.mul(r,i)),i=e.sqr(i),t>>=wi;return r}(f,e,n),div:(n,t)=>Ii(n*Oi(t,e),e),sqrN:e=>e*e,addN:(e,n)=>e+n,subN:(e,n)=>e-n,mulN:(e,n)=>e*n,inv:n=>Oi(n,e),sqrt:o||(n=>{return c||(c=(t=e)%Ai===ki?Ni:t%Si===xi?Bi:t%Ti===Ci?function(e){const n=ji(e),t=Fi(e),r=t(n,n.neg(n.ONE)),i=t(n,r),o=t(n,n.neg(r)),a=(e+Ei)/Ti;return(e,n)=>{let t=e.pow(n,a),s=e.mul(t,r);const l=e.mul(t,i),u=e.mul(t,o),c=e.eql(e.sqr(s),n),f=e.eql(e.sqr(l),n);t=e.cmov(t,s,c),s=e.cmov(u,l,f);const d=e.eql(e.sqr(s),n),h=e.cmov(t,s,d);return Ri(e,h,n),h}}(t):Fi(t)),c(f,n);var t}),toBytes:e=>t?ui(e,u):li(e,u),fromBytes:(n,r=!0)=>{if(a){if(!a.includes(n.length)||n.length>u)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+n.length);const e=new Uint8Array(u);e.set(n,t?0:e.length-n.length),n=e}if(n.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+n.length);let i=t?si(n):ai(n);if(s&&(i=Ii(i,e)),!r&&!f.isValid(i))throw new Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:e=>Di(f,e),cmov:(e,n,t)=>t?n:e});return Object.freeze(f)}function Hi(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function Vi(e){const n=Hi(e);return n+Math.ceil(n/2)}const zi=BigInt(0),Wi=BigInt(1);function qi(e,n){const t=n.negate();return e?t:n}function Gi(e,n){const t=Di(e.Fp,n.map(e=>e.Z));return n.map((n,r)=>e.fromAffine(n.toAffine(t[r])))}function Yi(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Ji(e,n){Yi(e,n);const t=2**e;return{windows:Math.ceil(n/e)+1,windowSize:2**(e-1),mask:mi(e),maxNumber:t,shiftBy:BigInt(e)}}function Ki(e,n,t){const{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=t;let s=Number(e&i),l=e>>a;s>r&&(s-=o,l+=Wi);const u=n*r;return{nextN:l,offset:u+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:n%2!=0,offsetF:u}}const Xi=/* @__PURE__ */new WeakMap,Qi=/* @__PURE__ */new WeakMap;function Zi(e){return Qi.get(e)||1}function _i(e){if(e!==zi)throw new Error("invalid wNAF")}class $i{constructor(e,n){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=n}Le(e,n,t=this.ZERO){let r=e;for(;n>zi;)n&Wi&&(t=t.add(r)),r=r.double(),n>>=Wi;return t}precomputeWindow(e,n){const{windows:t,windowSize:r}=Ji(n,this.bits),i=[];let o=e,a=o;for(let s=0;s<t;s++){a=o,i.push(a);for(let e=1;e<r;e++)a=a.add(o),i.push(a);o=a.double()}return i}wNAF(e,n,t){if(!this.Fn.isValid(t))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const o=Ji(e,this.bits);for(let a=0;a<o.windows;a++){const{nextN:e,offset:s,isZero:l,isNeg:u,isNegF:c,offsetF:f}=Ki(t,a,o);t=e,l?i=i.add(qi(c,n[f])):r=r.add(qi(u,n[s]))}return _i(t),{p:r,f:i}}wNAFUnsafe(e,n,t,r=this.ZERO){const i=Ji(e,this.bits);for(let o=0;o<i.windows&&t!==zi;o++){const{nextN:e,offset:a,isZero:s,isNeg:l}=Ki(t,o,i);if(t=e,!s){const e=n[a];r=r.add(l?e.negate():e)}}return _i(t),r}getPrecomputes(e,n,t){let r=Xi.get(n);return r||(r=this.precomputeWindow(n,e),1!==e&&("function"==typeof t&&(r=t(r)),Xi.set(n,r))),r}cached(e,n,t){const r=Zi(e);return this.wNAF(r,this.getPrecomputes(r,e,t),n)}unsafe(e,n,t,r){const i=Zi(e);return 1===i?this.Le(e,n,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,t),n,r)}createCache(e,n){Yi(n,this.bits),Qi.set(e,n),Xi.delete(e)}hasCache(e){return 1!==Zi(e)}}function eo(e,n,t,r){!function(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,t)=>{if(!(e instanceof n))throw new Error("invalid point at index "+t)})}(t,e),function(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,t)=>{if(!n.isValid(e))throw new Error("invalid scalar at index "+t)})}(r,n);const i=t.length,o=r.length;if(i!==o)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=pi(BigInt(i));let l=1;s>12?l=s-3:s>4?l=s-2:s>0&&(l=2);const u=mi(l),c=new Array(Number(u)+1).fill(a);let f=a;for(let d=Math.floor((n.BITS-1)/l)*l;d>=0;d-=l){c.fill(a);for(let n=0;n<o;n++){const e=r[n],i=Number(e>>BigInt(d)&u);c[i]=c[i].add(t[n])}let e=a;for(let n=c.length-1,t=a;n>0;n--)t=t.add(c[n]),e=e.add(t);if(f=f.add(e),0!==d)for(let n=0;n<l;n++)f=f.double()}return f}function no(e,n,t){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return function(e){bi(e,Li.reduce((e,n)=>(e[n]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"}))}(n),n}return ji(e,{isLE:t})}function to(e,n,t={},r){if(void 0===r&&(r="edwards"===e),!n||"object"!=typeof n)throw new Error(`expected valid ${e} CURVE object`);for(const s of["p","n","h"]){const e=n[s];if(!("bigint"==typeof e&&e>zi))throw new Error(`CURVE.${s} must be positive bigint`)}const i=no(n.p,t.Fp,r),o=no(n.n,t.Fn,r),a=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const s of a)if(!i.isValid(n[s]))throw new Error(`CURVE.${s} must be valid field element of CURVE.Fp`);return{CURVE:n=Object.freeze(Object.assign({},n)),Fp:i,Fn:o}}const ro=BigInt(0),io=BigInt(1),oo=BigInt(2),ao=BigInt(8);function so(e){const{CURVE:n,curveOpts:t,hash:r,eddsaOpts:i}=function(e){const n={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t={Fp:e.Fp,Fn:ji(n.n,e.nBitLength,!0),uvRatio:e.uvRatio},r={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:n,curveOpts:t,hash:e.hash,eddsaOpts:r}}(e),o=function(e,n={}){const t=to("edwards",e,n,n.FpFnLE),{Fp:r,Fn:i}=t;let o=t.CURVE;const{h:a}=o;bi(n,{},{uvRatio:"function"});const s=oo<<BigInt(8*i.BYTES)-io,l=e=>r.create(e),u=n.uvRatio||((e,n)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,n))}}catch(t){return{isValid:!1,value:ro}}});if(!function(e,n,t,r){const i=e.sqr(t),o=e.sqr(r),a=e.add(e.mul(n.a,i),o),s=e.add(e.ONE,e.mul(n.d,e.mul(i,o)));return e.eql(a,s)}(r,o,o.Gx,o.Gy))throw new Error("bad curve params: generator point");function c(e,n,t=!1){return hi("coordinate "+e,n,t?io:ro,s),n}function f(e){if(!(e instanceof p))throw new Error("ExtendedPoint expected")}const d=vi((e,n)=>{const{X:t,Y:i,Z:o}=e,a=e.is0();null==n&&(n=a?ao:r.inv(o));const s=l(t*n),u=l(i*n),c=r.mul(o,n);if(a)return{x:ro,y:io};if(c!==io)throw new Error("invZ was invalid");return{x:s,y:u}}),h=vi(e=>{const{a:n,d:t}=o;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:i,Z:a,T:s}=e,u=l(r*r),c=l(i*i),f=l(a*a),d=l(f*f),h=l(u*n);if(l(f*l(h+c))!==l(d+l(t*l(u*c))))throw new Error("bad point: equation left != right (1)");if(l(r*i)!==l(a*s))throw new Error("bad point: equation left != right (2)");return!0});class p{constructor(e,n,t,r){this.X=c("x",e),this.Y=c("y",n),this.Z=c("z",t,!0),this.T=c("t",r),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){if(e instanceof p)throw new Error("extended point not allowed");const{x:n,y:t}=e||{};return c("x",n),c("y",t),new p(n,t,io,l(n*t))}static fromBytes(e,n=!1){const t=r.BYTES,{a:i,d:a}=o;e=fi(ri(e,t,"point")),ti(n,"zip215");const c=fi(e),f=e[t-1];c[t-1]=-129&f;const d=si(c),h=n?s:r.ORDER;hi("point.y",d,ro,h);const m=l(d*d),b=l(m-io),v=l(a*m-i);let{isValid:y,value:w}=u(b,v);if(!y)throw new Error("bad point: invalid y coordinate");const g=(w&io)===io,k=!!(128&f);if(!n&&w===ro&&k)throw new Error("bad point: x=0 and x_0=1");return k!==g&&(w=l(-w)),p.fromAffine({x:w,y:d})}static fromHex(e,n=!1){return p.fromBytes(ci("point",e),n)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,n=!0){return m.createCache(this,e),n||this.multiply(oo),this}assertValidity(){h(this)}equals(e){f(e);const{X:n,Y:t,Z:r}=this,{X:i,Y:o,Z:a}=e,s=l(n*a),u=l(i*r),c=l(t*a),d=l(o*r);return s===u&&c===d}is0(){return this.equals(p.ZERO)}negate(){return new p(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:e}=o,{X:n,Y:t,Z:r}=this,i=l(n*n),a=l(t*t),s=l(oo*l(r*r)),u=l(e*i),c=n+t,f=l(l(c*c)-i-a),d=u+a,h=d-s,m=u-a,b=l(f*h),v=l(d*m),y=l(f*m),w=l(h*d);return new p(b,v,w,y)}add(e){f(e);const{a:n,d:t}=o,{X:r,Y:i,Z:a,T:s}=this,{X:u,Y:c,Z:d,T:h}=e,m=l(r*u),b=l(i*c),v=l(s*t*h),y=l(a*d),w=l((r+i)*(u+c)-m-b),g=y-v,k=y+v,A=l(b-n*m),x=l(w*g),E=l(k*A),S=l(w*A),C=l(g*k);return new p(x,E,C,S)}subtract(e){return this.add(e.negate())}multiply(e){if(!i.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:n,f:t}=m.cached(this,e,e=>Gi(p,e));return Gi(p,[n,t])[0]}multiplyUnsafe(e,n=p.ZERO){if(!i.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===ro?p.ZERO:this.is0()||e===io?this:m.unsafe(this,e,e=>Gi(p,e),n)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}isTorsionFree(){return m.unsafe(this,o.n).is0()}toAffine(e){return d(this,e)}clearCofactor(){return a===io?this:this.multiplyUnsafe(a)}toBytes(){const{x:e,y:n}=this.toAffine(),t=r.toBytes(n);return t[t.length-1]|=e&io?128:0,t}toHex(){return dn(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return Gi(p,e)}static msm(e,n){return eo(p,i,e,n)}De(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}p.BASE=new p(o.Gx,o.Gy,io,l(o.Gx*o.Gy)),p.ZERO=new p(ro,io,io,ro),p.Fp=r,p.Fn=i;const m=new $i(p,i.BITS);return p.BASE.precompute(8),p}(n,t);return function(e,n){const t=n.Point;return Object.assign({},n,{ExtendedPoint:t,CURVE:e,nBitLength:t.Fn.BITS,nByteLength:t.Fn.BYTES})}(e,function(e,n,t={}){if("function"!=typeof n)throw new Error('"hash" function param is required');bi(t,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=t,{BASE:i,Fp:o,Fn:a}=e,s=t.randomBytes||wn,l=t.adjustScalarBytes||(e=>e),u=t.domain||((e,n,t)=>{if(ti(t,"phflag"),n.length||t)throw new Error("Contexts/pre-hash are not supported");return e});function c(e){return a.create(si(e))}function f(e){const{head:t,prefix:r,scalar:o}=function(e){const t=b.secretKey;e=ci("private key",e,t);const r=ci("hashed private key",n(e),2*t),i=l(r.slice(0,t));return{head:i,prefix:r.slice(t,2*t),scalar:c(i)}}(e),a=i.multiply(o),s=a.toBytes();return{head:t,prefix:r,scalar:o,point:a,pointBytes:s}}function d(e){return f(e).pointBytes}function h(e=Uint8Array.of(),...t){const i=bn(...t);return c(n(u(i,ci("context",e),!!r)))}const p={zip215:!0},m=o.BYTES,b={secretKey:m,publicKey:m,signature:2*m,seed:m};function v(e=s(b.seed)){return ri(e,b.seed,"seed")}const y={getExtendedPublicKey:f,randomSecretKey:v,isValidSecretKey:function(e){return _e(e)&&e.length===a.BYTES},isValidPublicKey:function(n,t){try{return!!e.fromBytes(n,t)}catch(r){return!1}},toMontgomery(n){const{y:t}=e.fromBytes(n),r=b.publicKey,i=32===r;if(!i&&57!==r)throw new Error("only defined for 25519 and 448");const a=i?o.div(io+t,io-t):o.div(t-io,t+io);return o.toBytes(a)},toMontgomerySecret(e){const t=b.secretKey;ri(e,t);const r=n(e.subarray(0,t));return l(r).subarray(0,t)},randomPrivateKey:v,precompute:(n=8,t=e.BASE)=>t.precompute(n,!1)};return Object.freeze({keygen:function(e){const n=y.randomSecretKey(e);return{secretKey:n,publicKey:d(n)}},getPublicKey:d,sign:function(e,n,t={}){e=ci("message",e),r&&(e=r(e));const{prefix:o,scalar:s,pointBytes:l}=f(n),u=h(t.context,o,e),c=i.multiply(u).toBytes(),d=h(t.context,c,l,e),p=a.create(u+d*s);if(!a.isValid(p))throw new Error("sign failed: invalid s");return ri(bn(c,a.toBytes(p)),b.signature,"result")},verify:function(n,t,o,a=p){const{context:s,zip215:l}=a,u=b.signature;n=ci("signature",n,u),t=ci("message",t),o=ci("publicKey",o,b.publicKey),void 0!==l&&ti(l,"zip215"),r&&(t=r(t));const c=u/2,f=n.subarray(0,c),d=si(n.subarray(c,u));let m,v,y;try{m=e.fromBytes(o,l),v=e.fromBytes(f,l),y=i.multiplyUnsafe(d)}catch(g){return!1}if(!l&&m.isSmallOrder())return!1;const w=h(s,v.toBytes(),m.toBytes(),t);return v.add(m.multiplyUnsafe(w)).subtract(y).clearCofactor().is0()},utils:y,Point:e,lengths:b})}(o,r,i))}const lo=BigInt(1),uo=BigInt(2);BigInt(3);const co=BigInt(5),fo=BigInt(8),ho=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),po=/* @__PURE__ */(()=>({p:ho,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:fo,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function mo(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const bo=/* @__PURE__ */BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function vo(e,n){const t=ho,r=Ii(n*n*n,t),i=function(e){const n=BigInt(10),t=BigInt(20),r=BigInt(40),i=BigInt(80),o=ho,a=e*e%o*e%o,s=Mi(a,uo,o)*a%o,l=Mi(s,lo,o)*e%o,u=Mi(l,co,o)*l%o,c=Mi(u,n,o)*u%o,f=Mi(c,t,o)*c%o,d=Mi(f,r,o)*f%o,h=Mi(d,i,o)*d%o,p=Mi(h,i,o)*d%o,m=Mi(p,n,o)*u%o;return{pow_p_5_8:Mi(m,uo,o)*e%o,b2:a}}(e*Ii(r*r*n,t)).pow_p_5_8;let o=Ii(e*r*i,t);const a=Ii(n*o*o,t),s=o,l=Ii(o*bo,t),u=a===e,c=a===Ii(-e,t),f=a===Ii(-e*bo,t);return u&&(o=s),(c||f)&&(o=l),(Ii(o,t)&wi)===wi&&(o=Ii(-o,t)),{isValid:u||c,value:o}}const yo=/* @__PURE__ */(()=>ji(po.p,{isLE:!0}))(),wo=/* @__PURE__ */(()=>({...po,Fp:yo,hash:cr,adjustScalarBytes:mo,uvRatio:vo}))(),go=/* @__PURE__ */(()=>so(wo))();var ko={exports:{}};const Ao=/* @__PURE__ */n(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xo,Eo=ko.exports;function So(){return xo||(xo=1,function(e,n){function t(e,n){if(!e)throw new Error(n||"Assertion failed")}function r(e,n){e.super_=n;var t=function(){};t.prototype=n.prototype,e.prototype=new t,e.prototype.constructor=e}function i(e,n,t){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==n&&"be"!==n||(t=n,n=10),this.o(e||0,n||10,t||"be"))}var o;"object"==typeof ko?ko.exports=i:n.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Ao.Buffer}catch(C){}function a(e,n){var r=e.charCodeAt(n);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void t(!1,"Invalid character in "+e)}function s(e,n,t){var r=a(e,t);return t-1>=n&&(r|=a(e,t-1)<<4),r}function l(e,n,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=n;l<s;l++){var u=e.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,t(u>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,n){e.words=n.words,e.length=n.length,e.negative=n.negative,e.red=n.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,n){return e.cmp(n)>0?e:n},i.min=function(e,n){return e.cmp(n)<0?e:n},i.prototype.o=function(e,n,r){if("number"==typeof e)return this.Ue(e,n,r);if("object"==typeof e)return this.Pe(e,n,r);"hex"===n&&(n=16),t(n===(0|n)&&n>=2&&n<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===n?this.je(e,i,r):(this.He(e,n,i),"le"===r&&this.Pe(this.toArray(),n,r)))},i.prototype.Ue=function(e,n,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(t(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this.Pe(this.toArray(),n,r)},i.prototype.Pe=function(e,n,r){if(t("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.Ve()},i.prototype.je=function(e,n,t){this.length=Math.ceil((e.length-n)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===t)for(r=e.length-1;r>=n;r-=2)i=s(e,n,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-n)%2==0?n+1:n;r<e.length;r+=2)i=s(e,n,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.Ve()},i.prototype.He=function(e,n,t){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=n)r++;r--,i=i/n|0;for(var o=e.length-t,a=o%r,s=Math.min(o,o-a)+t,u=0,c=t;c<s;c+=r)u=l(e,c,c+r,n),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this.ze(u);if(0!==a){var f=1;for(u=l(e,c,e.length,n),c=0;c<a;c++)f*=n;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this.ze(u)}this.Ve()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var n=0;n<this.length;n++)e.words[n]=this.words[n];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.We=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype.qe=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.Ve=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.Ge()},i.prototype.Ge=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=c}catch(C){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,n,t){t.negative=n.negative^e.negative;var r=e.length+n.length|0;t.length=r,r=r-1|0;var i=0|e.words[0],o=0|n.words[0],a=i*o,s=67108863&a,l=a/67108864|0;t.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,f=67108863&l,d=Math.min(u,n.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|n.words[h])+f)/67108864|0,f=67108863&a}t.words[u]=0|f,l=0|c}return 0!==l?t.words[u]=0|l:t.length--,t.Ve()}i.prototype.toString=function(e,n){var r;if(n=0|n||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?f[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%n!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:f[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%n!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,n){return this.toArrayLike(o,e,n)}),i.prototype.toArray=function(e,n){return this.toArrayLike(Array,e,n)},i.prototype.toArrayLike=function(e,n,r){this.Ve();var i=this.byteLength(),o=r||Math.max(1,i);t(i<=o,"byte array longer than desired length"),t(o>0,"Requested array length <= 0");var a=function(e,n){return e.allocUnsafe?e.allocUnsafe(n):new e(n)}(e,o);return this["_toArrayLike"+("le"===n?"LE":"BE")](a,i),a},i.prototype.Ye=function(e,n){for(var t=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[t++]=255&a,t<e.length&&(e[t++]=a>>8&255),t<e.length&&(e[t++]=a>>16&255),6===o?(t<e.length&&(e[t++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(t<e.length)for(e[t++]=r;t<e.length;)e[t++]=0},i.prototype.Je=function(e,n){for(var t=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[t--]=255&a,t>=0&&(e[t--]=a>>8&255),t>=0&&(e[t--]=a>>16&255),6===o?(t>=0&&(e[t--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(t>=0)for(e[t--]=r;t>=0;)e[t--]=0},Math.clz32?i.prototype.Ke=function(e){return 32-Math.clz32(e)}:i.prototype.Ke=function(e){var n=e,t=0;return n>=4096&&(t+=13,n>>>=13),n>=64&&(t+=7,n>>>=7),n>=8&&(t+=4,n>>>=4),n>=2&&(t+=2,n>>>=2),t+n},i.prototype.Xe=function(e){if(0===e)return 26;var n=e,t=0;return 8191&n||(t+=13,n>>>=13),127&n||(t+=7,n>>>=7),15&n||(t+=4,n>>>=4),3&n||(t+=2,n>>>=2),1&n||t++,t},i.prototype.bitLength=function(){var e=this.words[this.length-1],n=this.Ke(e);return 26*(this.length-1)+n},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,n=0;n<this.length;n++){var t=this.Xe(this.words[n]);if(e+=t,26!==t)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]|e.words[n];return this.Ve()},i.prototype.ior=function(e){return t(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var n;n=this.length>e.length?e:this;for(var t=0;t<n.length;t++)this.words[t]=this.words[t]&e.words[t];return this.length=n.length,this.Ve()},i.prototype.iand=function(e){return t(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var n,t;this.length>e.length?(n=this,t=e):(n=e,t=this);for(var r=0;r<t.length;r++)this.words[r]=n.words[r]^t.words[r];if(this!==n)for(;r<n.length;r++)this.words[r]=n.words[r];return this.length=n.length,this.Ve()},i.prototype.ixor=function(e){return t(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){t("number"==typeof e&&e>=0);var n=0|Math.ceil(e/26),r=e%26;this.qe(n),r>0&&n--;for(var i=0;i<n;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.Ve()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,n){t("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this.qe(r+1),this.words[r]=n?this.words[r]|1<<i:this.words[r]&~(1<<i),this.Ve()},i.prototype.iadd=function(e){var n,t,r;if(0!==this.negative&&0===e.negative)return this.negative=0,n=this.isub(e),this.negative^=1,this.Ge();if(0===this.negative&&0!==e.negative)return e.negative=0,n=this.isub(e),e.negative=1,n.Ge();this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0,o=0;o<r.length;o++)n=(0|t.words[o])+(0|r.words[o])+i,this.words[o]=67108863&n,i=n>>>26;for(;0!==i&&o<t.length;o++)n=(0|t.words[o])+i,this.words[o]=67108863&n,i=n>>>26;if(this.length=t.length,0!==i)this.words[this.length]=i,this.length++;else if(t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this},i.prototype.add=function(e){var n;return 0!==e.negative&&0===this.negative?(e.negative=0,n=this.sub(e),e.negative^=1,n):0===e.negative&&0!==this.negative?(this.negative=0,n=e.sub(this),this.negative=1,n):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var n=this.iadd(e);return e.negative=1,n.Ge()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.Ge();var t,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.Ve()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,n,t){var r,i,o,a=e.words,s=n.words,l=t.words,u=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,b=0|a[2],v=8191&b,y=b>>>13,w=0|a[3],g=8191&w,k=w>>>13,A=0|a[4],x=8191&A,E=A>>>13,S=0|a[5],C=8191&S,T=S>>>13,I=0|a[6],M=8191&I,O=I>>>13,R=0|a[7],N=8191&R,B=R>>>13,F=0|a[8],L=8191&F,D=F>>>13,U=0|a[9],P=8191&U,j=U>>>13,H=0|s[0],V=8191&H,z=H>>>13,W=0|s[1],q=8191&W,G=W>>>13,Y=0|s[2],J=8191&Y,K=Y>>>13,X=0|s[3],Q=8191&X,Z=X>>>13,_=0|s[4],$=8191&_,ee=_>>>13,ne=0|s[5],te=8191&ne,re=ne>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ue=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;t.negative=e.negative^n.negative,t.length=19;var be=(u+(r=Math.imul(f,V))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,V)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(p,V),i=(i=Math.imul(p,z))+Math.imul(m,V)|0,o=Math.imul(m,z);var ve=(u+(r=r+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,V),i=(i=Math.imul(v,z))+Math.imul(y,V)|0,o=Math.imul(y,z),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var ye=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(g,V),i=(i=Math.imul(g,z))+Math.imul(k,V)|0,o=Math.imul(k,z),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,K)|0;var we=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,V),i=(i=Math.imul(x,z))+Math.imul(E,V)|0,o=Math.imul(E,z),r=r+Math.imul(g,q)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,G)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var ge=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(C,V),i=(i=Math.imul(C,z))+Math.imul(T,V)|0,o=Math.imul(T,z),r=r+Math.imul(x,q)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var ke=(u+(r=r+Math.imul(f,te)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,te)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,z))+Math.imul(O,V)|0,o=Math.imul(O,z),r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,Z)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,te)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,te)|0,o=o+Math.imul(m,re)|0;var Ae=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,V),i=(i=Math.imul(N,z))+Math.imul(B,V)|0,o=Math.imul(B,z),r=r+Math.imul(M,q)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,K)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(v,te)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,te)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(u+(r=r+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,le)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,z))+Math.imul(D,V)|0,o=Math.imul(D,z),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(g,te)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(k,te)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ue)|0;var Ee=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(P,V),i=(i=Math.imul(P,z))+Math.imul(j,V)|0,o=Math.imul(j,z),r=r+Math.imul(L,q)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,G)|0,r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,K)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,te)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(E,te)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ue)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Se=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,G))+Math.imul(j,q)|0,o=Math.imul(j,G),r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(C,te)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(T,te)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,de)|0;var Ce=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(P,J),i=(i=Math.imul(P,K))+Math.imul(j,J)|0,o=Math.imul(j,K),r=r+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(M,te)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(O,te)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ue)|0,r=r+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,de)|0;var Te=(u+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(P,Q),i=(i=Math.imul(P,Z))+Math.imul(j,Q)|0,o=Math.imul(j,Z),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(N,te)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(B,te)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(C,le)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ue)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ie=(u+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(k,pe)|0))<<13)|0;u=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(P,$),i=(i=Math.imul(P,ee))+Math.imul(j,$)|0,o=Math.imul(j,ee),r=r+Math.imul(L,te)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(D,te)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(u+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(P,te),i=(i=Math.imul(P,re))+Math.imul(j,te)|0,o=Math.imul(j,re),r=r+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(N,le)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Oe=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(P,oe),i=(i=Math.imul(P,ae))+Math.imul(j,oe)|0,o=Math.imul(j,ae),r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,ue)|0)+Math.imul(D,le)|0,o=o+Math.imul(D,ue)|0,r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Re=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(P,le),i=(i=Math.imul(P,ue))+Math.imul(j,le)|0,o=Math.imul(j,ue),r=r+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var Ne=(u+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(B,pe)|0))<<13)|0;u=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(P,fe),i=(i=Math.imul(P,de))+Math.imul(j,fe)|0,o=Math.imul(j,de);var Be=(u+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(D,pe)|0))<<13)|0;u=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Fe=(u+(r=Math.imul(P,pe))|0)+((8191&(i=(i=Math.imul(P,me))+Math.imul(j,pe)|0))<<13)|0;return u=((o=Math.imul(j,me))+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=be,l[1]=ve,l[2]=ye,l[3]=we,l[4]=ge,l[5]=ke,l[6]=Ae,l[7]=xe,l[8]=Ee,l[9]=Se,l[10]=Ce,l[11]=Te,l[12]=Ie,l[13]=Me,l[14]=Oe,l[15]=Re,l[16]=Ne,l[17]=Be,l[18]=Fe,0!==u&&(l[19]=u,t.length++),t};function b(e,n,t){t.negative=n.negative^e.negative,t.length=e.length+n.length;for(var r=0,i=0,o=0;o<t.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,n.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,f=(0|e.words[c])*(0|n.words[u]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}t.words[o]=s,r=a,a=i}return 0!==r?t.words[o]=r:t.length--,t.Ve()}function v(e,n,t){return b(e,n,t)}Math.imul||(m=p),i.prototype.mulTo=function(e,n){var t=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,n):t<63?p(this,e,n):t<1024?b(this,e,n):v(this,e,n)},i.prototype.mul=function(e){var n=new i(null);return n.words=new Array(this.length+e.length),this.mulTo(e,n)},i.prototype.mulf=function(e){var n=new i(null);return n.words=new Array(this.length+e.length),v(this,e,n)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var n=e<0;n&&(e=-e),t("number"==typeof e),t(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,n?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var n=function(e){for(var n=new Array(e.bitLength()),t=0;t<n.length;t++){var r=t/26|0,i=t%26;n[t]=e.words[r]>>>i&1}return n}(e);if(0===n.length)return new i(1);for(var t=this,r=0;r<n.length&&0===n[r];r++,t=t.sqr());if(++r<n.length)for(var o=t.sqr();r<n.length;r++,o=o.sqr())0!==n[r]&&(t=t.mul(o));return t},i.prototype.iushln=function(e){t("number"==typeof e&&e>=0);var n,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(n=0;n<this.length;n++){var s=this.words[n]&o,l=(0|this.words[n])-s<<r;this.words[n]=l|a,a=s>>>26-r}a&&(this.words[n]=a,this.length++)}if(0!==i){for(n=this.length-1;n>=0;n--)this.words[n+i]=this.words[n];for(n=0;n<i;n++)this.words[n]=0;this.length+=i}return this.Ve()},i.prototype.ishln=function(e){return t(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,n,r){var i;t("number"==typeof e&&e>=0),i=n?(n-n%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var f=0|this.words[u];this.words[u]=c<<26-o|f>>>o,c=f&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.Ve()},i.prototype.ishrn=function(e,n,r){return t(0===this.negative),this.iushrn(e,n,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){t("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26,i=1<<n;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){t("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26;if(t(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==n&&r++,this.length=Math.min(r,this.length),0!==n){var i=67108863^67108863>>>n<<n;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.Ve()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return t("number"==typeof e),t(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this.ze(e)},i.prototype.ze=function(e){this.words[0]+=e;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},i.prototype.isubn=function(e){if(t("number"==typeof e),t(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this.Ve()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype.Qe=function(e,n,r){var i,o,a=e.length+r;this.qe(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*n;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.Ve();for(t(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.Ve()},i.prototype.Ze=function(e,n){var t=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(t=26-this.Ke(a))&&(o=o.ushln(t),r.iushln(t),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==n){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone().Qe(o,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var f=l-1;f>=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/a|0,67108863),r.Qe(o,d,f);0!==r.negative;)d--,r.negative=0,r.Qe(o,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.Ve(),r.Ve(),"div"!==n&&0!==t&&r.iushrn(t),{div:s||null,mod:r}},i.prototype.divmod=function(e,n,r){return t(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,n),"mod"!==n&&(o=s.div.neg()),"div"!==n&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),n),"mod"!==n&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),n),"div"!==n&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===n?{div:this.divn(e.words[0]),mod:null}:"mod"===n?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this.Ze(e,n);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var n=this.divmod(e);if(n.mod.isZero())return n.div;var t=0!==n.div.negative?n.mod.isub(e):n.mod,r=e.ushrn(1),i=e.andln(1),o=t.cmp(r);return o<0||1===i&&0===o?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},i.prototype.modrn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return n?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this.Ve(),n?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){t(0===e.negative),t(!e.isZero());var n=this,r=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),u=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),f=n.clone();!n.isZero();){for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(f)),s.iushrn(1),l.iushrn(1);n.cmp(r)>=0?(n.isub(r),o.isub(s),a.isub(l)):(r.isub(n),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._e=function(e){t(0===e.negative),t(!e.isZero());var n=this,r=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o,a=new i(1),s=new i(0),l=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(n.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),a.isub(s)):(r.isub(n),s.isub(a))}return(o=0===n.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var n=this.clone(),t=e.clone();n.negative=0,t.negative=0;for(var r=0;n.isEven()&&t.isEven();r++)n.iushrn(1),t.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;t.isEven();)t.iushrn(1);var i=n.cmp(t);if(i<0){var o=n;n=t,t=o}else if(0===i||0===t.cmpn(1))break;n.isub(t)}return t.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){t("number"==typeof e);var n=e%26,r=(e-n)/26,i=1<<n;if(this.length<=r)return this.qe(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var n,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.Ve(),this.length>1)n=1;else{r&&(e=-e),t(e<=67108863,"Number is too big");var i=0|this.words[0];n=i===e?0:i<e?-1:1}return 0!==this.negative?0|-n:n},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var n=this.ucmp(e);return 0!==this.negative?0|-n:n},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var n=0,t=this.length-1;t>=0;t--){var r=0|this.words[t],i=0|e.words[t];if(r!==i){r<i?n=-1:r>i&&(n=1);break}}return n},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return t(!this.red,"Already a number in reduction context"),t(0===this.negative,"red works only with positives"),e.convertTo(this).$e(e)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype.$e=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return t(!this.red,"Already a number in reduction context"),this.$e(e)},i.prototype.redAdd=function(e){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.nn(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.nn(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red.tn(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red.tn(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red.tn(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red.tn(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red.tn(this),this.red.neg(this)},i.prototype.redPow=function(e){return t(this.red&&!e.red,"redPow(normalNum)"),this.red.tn(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,n){this.name=e,this.p=new i(n,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this.rn()}function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var n=i.an(e);this.m=n.p,this.prime=n}else t(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._e(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype.rn=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var n,t=e;do{this.split(t,this.tmp),n=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(n>this.n);var r=n<this.n?-1:t.ucmp(this.p);return 0===r?(t.words[0]=0,t.length=1):r>0?t.isub(this.p):void 0!==t.strip?t.strip():t.Ve(),t},w.prototype.split=function(e,n){e.iushrn(this.n,0,n)},w.prototype.imulK=function(e){return e.imul(this.k)},r(g,w),g.prototype.split=function(e,n){for(var t=4194303,r=Math.min(e.length,9),i=0;i<r;i++)n.words[i]=e.words[i];if(n.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(n.words[n.length++]=o&t,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&t)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var n=0,t=0;t<e.length;t++){var r=0|e.words[t];n+=977*r,e.words[t]=67108863&n,n=64*r+(n/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(k,w),r(A,w),r(x,w),x.prototype.imulK=function(e){for(var n=0,t=0;t<e.length;t++){var r=19*(0|e.words[t])+n,i=67108863&r;r>>>=26,e.words[t]=i,n=r}return 0!==n&&(e.words[e.length++]=n),e},i.an=function(e){if(y[e])return y[e];var n;if("k256"===e)n=new g;else if("p224"===e)n=new k;else if("p192"===e)n=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);n=new x}return y[e]=n,n},E.prototype.tn=function(e){t(0===e.negative,"red works only with positives"),t(e.red,"red works only with red numbers")},E.prototype.nn=function(e,n){t(0===(e.negative|n.negative),"red works only with positives"),t(e.red&&e.red===n.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e).$e(this):(u(e,e.umod(this.m).$e(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e).$e(this)},E.prototype.add=function(e,n){this.nn(e,n);var t=e.add(n);return t.cmp(this.m)>=0&&t.isub(this.m),t.$e(this)},E.prototype.iadd=function(e,n){this.nn(e,n);var t=e.iadd(n);return t.cmp(this.m)>=0&&t.isub(this.m),t},E.prototype.sub=function(e,n){this.nn(e,n);var t=e.sub(n);return t.cmpn(0)<0&&t.iadd(this.m),t.$e(this)},E.prototype.isub=function(e,n){this.nn(e,n);var t=e.isub(n);return t.cmpn(0)<0&&t.iadd(this.m),t},E.prototype.shl=function(e,n){return this.tn(e),this.imod(e.ushln(n))},E.prototype.imul=function(e,n){return this.nn(e,n),this.imod(e.imul(n))},E.prototype.mul=function(e,n){return this.nn(e,n),this.imod(e.mul(n))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var n=this.m.andln(3);if(t(n%2==1),3===n){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);t(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var f=this.pow(c,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();t(b<p);var v=this.pow(f,new i(1).iushln(p-b-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=b}return d},E.prototype.invm=function(e){var n=e._e(this.m);return 0!==n.negative?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},E.prototype.pow=function(e,n){if(n.isZero())return new i(1).toRed(this);if(0===n.cmpn(1))return e.clone();var t=new Array(16);t[0]=new i(1).toRed(this),t[1]=e;for(var r=2;r<t.length;r++)t[r]=this.mul(t[r-1],e);var o=t[0],a=0,s=0,l=n.bitLength()%26;for(0===l&&(l=26),r=n.length-1;r>=0;r--){for(var u=n.words[r],c=l-1;c>=0;c--){var f=u>>c&1;o!==t[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(o=this.mul(o,t[a]),s=0,a=0)):s=0}l=26}return o},E.prototype.convertTo=function(e){var n=e.umod(this.m);return n===e?n.clone():n},E.prototype.convertFrom=function(e){var n=e.clone();return n.red=null,n},i.mont=function(e){return new S(e)},r(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var n=this.imod(e.mul(this.rinv));return n.red=null,n},S.prototype.imul=function(e,n){if(e.isZero()||n.isZero())return e.words[0]=0,e.length=1,e;var t=e.imul(n),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=t.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o.$e(this)},S.prototype.mul=function(e,n){if(e.isZero()||n.isZero())return new i(0).$e(this);var t=e.mul(n),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=t.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a.$e(this)},S.prototype.invm=function(e){return this.imod(e._e(this.m).mul(this.r2)).$e(this)}}(0,Eo)),ko.exports}const Co=/* @__PURE__ */e(So());var To,Io,Mo,Oo,Ro,No={exports:{}};function Bo(){if(Ro)return Oo;Ro=1;var e=function(){if(Mo)return Io;Mo=1;var e=(To||(To=1,function(e,n){var t=_r(),r=t.Buffer;function i(e,n){for(var t in e)n[t]=e[t]}function o(e,n,t){return r(e,n,t)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(i(t,n),n.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,n,t){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,n,t)},o.alloc=function(e,n,t){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==n?"string"==typeof t?i.fill(n,t):i.fill(n):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return t.SlowBuffer(e)}}(No,No.exports)),No.exports).Buffer;return Io=function(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<n.length;i++){var o=n.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=n.length,l=n.charAt(0),u=Math.log(s)/Math.log(256),c=Math.log(256)/Math.log(s);function f(n){if("string"!=typeof n)throw new TypeError("Expected String");if(0===n.length)return e.alloc(0);for(var r=0,i=0,o=0;n[r]===l;)i++,r++;for(var a=(n.length-r)*u+1>>>0,c=new Uint8Array(a);r<n.length;){var f=n.charCodeAt(r);if(f>255)return;var d=t[f];if(255===d)return;for(var h=0,p=a-1;(0!==d||h<o)&&-1!==p;p--,h++)d+=s*c[p]>>>0,c[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,r++}for(var m=a-o;m!==a&&0===c[m];)m++;var b=e.allocUnsafe(i+(a-m));b.fill(0,0,i);for(var v=i;m!==a;)b[v++]=c[m++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=e.from(t)),!e.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var u=(a-o)*c+1>>>0,f=new Uint8Array(u);o!==a;){for(var d=t[o],h=0,p=u-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*f[p]>>>0,f[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var m=u-i;m!==u&&0===f[m];)m++;for(var b=l.repeat(r);m<u;++m)b+=n.charAt(f[m]);return b},decodeUnsafe:f,decode:function(e){var n=f(e);if(n)return n;throw new Error("Non-base"+s+" character")}}},Io}();return Oo=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const Fo=/* @__PURE__ */e(Bo());var Lo={};function Do(e,n,t){return n<=e&&e<=t}function Uo(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Po(e){this.tokens=[].slice.call(e)}Po.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var n=e;n.length;)this.tokens.unshift(n.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var n=e;n.length;)this.tokens.push(n.shift());else this.tokens.push(e)}};var jo=-1;function Ho(e,n){if(e)throw TypeError("Decoder error");return n||65533}var Vo="utf-8";function zo(e,n){if(!(this instanceof zo))return new zo(e,n);if((e=void 0!==e?String(e).toLowerCase():Vo)!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");n=Uo(n),this.sn=!1,this.ln=!1,this.un=null,this.dn=Boolean(n.fatal),this.hn=Boolean(n.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.dn}),Object.defineProperty(this,"ignoreBOM",{value:this.hn})}function Wo(e,n){if(!(this instanceof Wo))return new Wo(e,n);if((e=void 0!==e?String(e).toLowerCase():Vo)!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");n=Uo(n),this.sn=!1,this.pn=null,this.mn={fatal:Boolean(n.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function qo(e){var n=e.fatal,t=0,r=0,i=0,o=128,a=191;this.handler=function(e,s){if(-1===s&&0!==i)return i=0,Ho(n);if(-1===s)return jo;if(0===i){if(Do(s,0,127))return s;if(Do(s,194,223))i=1,t=s-192;else if(Do(s,224,239))224===s&&(o=160),237===s&&(a=159),i=2,t=s-224;else{if(!Do(s,240,244))return Ho(n);240===s&&(o=144),244===s&&(a=143),i=3,t=s-240}return t<<=6*i,null}if(!Do(s,o,a))return t=i=r=0,o=128,a=191,e.prepend(s),Ho(n);if(o=128,a=191,t+=s-128<<6*(i-(r+=1)),r!==i)return null;var l=t;return t=i=r=0,l}}function Go(e){e.fatal,this.handler=function(e,n){if(-1===n)return jo;if(Do(n,0,127))return n;var t,r;Do(n,128,2047)?(t=1,r=192):Do(n,2048,65535)?(t=2,r=224):Do(n,65536,1114111)&&(t=3,r=240);for(var i=[(n>>6*t)+r];t>0;){var o=n>>6*(t-1);i.push(128|63&o),t-=1}return i}}zo.prototype={decode:function(e,n){var t;t="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),n=Uo(n),this.sn||(this.un=new qo({fatal:this.dn}),this.ln=!1),this.sn=Boolean(n.stream);for(var r,i=new Po(t),o=[];!i.endOfStream()&&(r=this.un.handler(i,i.read()))!==jo;)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this.sn){do{if((r=this.un.handler(i,i.read()))===jo)break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this.un=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this.hn||this.ln||(65279===o[0]?(this.ln=!0,o.shift()):this.ln=!0)),function(e){for(var n="",t=0;t<e.length;++t){var r=e[t];r<=65535?n+=String.fromCharCode(r):(r-=65536,n+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return n}(o)}},Wo.prototype={encode:function(e,n){e=e?String(e):"",n=Uo(n),this.sn||(this.pn=new Go(this.mn)),this.sn=Boolean(n.stream);for(var t,r=[],i=new Po(function(e){for(var n=String(e),t=n.length,r=0,i=[];r<t;){var o=n.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===t-1)i.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,l=1023&a;i.push(65536+(s<<10)+l),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&(t=this.pn.handler(i,i.read()))!==jo;)Array.isArray(t)?r.push.apply(r,t):r.push(t);if(!this.sn){for(;(t=this.pn.handler(i,i.read()))!==jo;)Array.isArray(t)?r.push.apply(r,t):r.push(t);this.pn=null}return new Uint8Array(r)}};const Yo=/* @__PURE__ */n(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,TextDecoder:zo,TextEncoder:Wo},Symbol.toStringTag,{value:"Module"})));var Jo,Ko,Xo=function(){if(Jo)return Lo;Jo=1;var e=Lo&&Lo.bn||(Object.create?function(e,n,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),n=Lo&&Lo.vn||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),t=Lo&&Lo.yn||function(e,n,t,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},r=Lo&&Lo.wn||function(t){if(t&&t.i)return t;var r={};if(null!=t)for(var i in t)"default"!==i&&Object.hasOwnProperty.call(t,i)&&e(r,t,i);return n(r,t),r},i=Lo&&Lo.gn||function(e){return e&&e.i?e:{default:e}};Object.defineProperty(Lo,"i",{value:!0}),Lo.deserializeUnchecked=Lo.deserialize=Lo.serialize=Lo.BinaryReader=Lo.BinaryWriter=Lo.BorshError=Lo.baseDecode=Lo.baseEncode=void 0;const o=i(So()),a=i(Bo()),s=r(Yo),l=new("function"!=typeof TextDecoder?s.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Lo.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),a.default.encode(Buffer.from(e))},Lo.baseDecode=function(e){return Buffer.from(a.default.decode(e))};const u=1024;class c extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Lo.BorshError=c;class f{constructor(){this.buf=Buffer.alloc(u),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(u)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(u)]),this.length+=e.length}writeString(e){this.maybeResize();const n=Buffer.from(e,"utf8");this.writeU32(n.length),this.writeBuffer(n)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,n){this.maybeResize(),this.writeU32(e.length);for(const t of e)this.maybeResize(),n(t)}toArray(){return this.buf.subarray(0,this.length)}}function d(e,n,t){const r=t.value;t.value=function(...e){try{return r.apply(this,e)}catch(n){if(n instanceof RangeError){const e=n.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new c("Reached the end of buffer when deserializing")}throw n}}}Lo.BinaryWriter=f;class h{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new o.default(e,"le")}readU128(){const e=this.readBuffer(16);return new o.default(e,"le")}readU256(){const e=this.readBuffer(32);return new o.default(e,"le")}readU512(){const e=this.readBuffer(64);return new o.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new c(`Expected buffer length ${e} isn't within bounds`);const n=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,n}readString(){const e=this.readU32(),n=this.readBuffer(e);try{return l.decode(n)}catch(t){throw new c(`Error decoding UTF-8 string: ${t}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const n=this.readU32(),t=Array();for(let r=0;r<n;++r)t.push(e());return t}}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function m(e,n,t,r,i){try{if("string"==typeof r)i[`write${p(r)}`](t);else if(r instanceof Array)if("number"==typeof r[0]){if(t.length!==r[0])throw new c(`Expecting byte array of length ${r[0]}, but got ${t.length} bytes`);i.writeFixedArray(t)}else if(2===r.length&&"number"==typeof r[1]){if(t.length!==r[1])throw new c(`Expecting byte array of length ${r[1]}, but got ${t.length} bytes`);for(let n=0;n<r[1];n++)m(e,null,t[n],r[0],i)}else i.writeArray(t,t=>{m(e,n,t,r[0],i)});else if(void 0!==r.kind)switch(r.kind){case"option":null==t?i.writeU8(0):(i.writeU8(1),m(e,n,t,r.type,i));break;case"map":i.writeU32(t.size),t.forEach((t,o)=>{m(e,n,o,r.key,i),m(e,n,t,r.value,i)});break;default:throw new c(`FieldType ${r} unrecognized`)}else b(e,t,i)}catch(o){throw o instanceof c&&o.addToFieldPath(n),o}}function b(e,n,t){if("function"==typeof n.borshSerialize)return void n.borshSerialize(t);const r=e.get(n.constructor);if(!r)throw new c(`Class ${n.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map(([r,i])=>{m(e,r,n[r],i,t)});else{if("enum"!==r.kind)throw new c(`Unexpected schema kind: ${r.kind} for ${n.constructor.name}`);{const i=n[r.field];for(let o=0;o<r.values.length;++o){const[a,s]=r.values[o];if(a===i){t.writeU8(o),m(e,a,n[a],s,t);break}}}}}function v(e,n,t,r){try{if("string"==typeof t)return r[`read${p(t)}`]();if(t instanceof Array){if("number"==typeof t[0])return r.readFixedArray(t[0]);if("number"==typeof t[1]){const n=[];for(let i=0;i<t[1];i++)n.push(v(e,null,t[0],r));return n}return r.readArray(()=>v(e,n,t[0],r))}if("option"===t.kind)return r.readU8()?v(e,n,t.type,r):void 0;if("map"===t.kind){let i=/* @__PURE__ */new Map;const o=r.readU32();for(let a=0;a<o;a++){const o=v(e,n,t.key,r),a=v(e,n,t.value,r);i.set(o,a)}return i}return y(e,t,r)}catch(i){throw i instanceof c&&i.addToFieldPath(n),i}}function y(e,n,t){if("function"==typeof n.borshDeserialize)return n.borshDeserialize(t);const r=e.get(n);if(!r)throw new c(`Class ${n.name} is missing in schema`);if("struct"===r.kind){const r={};for(const[i,o]of e.get(n).fields)r[i]=v(e,i,o,t);return new n(r)}if("enum"===r.kind){const i=t.readU8();if(i>=r.values.length)throw new c(`Enum index: ${i} is out of range`);const[o,a]=r.values[i],s=v(e,o,a,t);return new n({[o]:s})}throw new c(`Unexpected schema kind: ${r.kind} for ${n.constructor.name}`)}return t([d],h.prototype,"readU8",null),t([d],h.prototype,"readU16",null),t([d],h.prototype,"readU32",null),t([d],h.prototype,"readU64",null),t([d],h.prototype,"readU128",null),t([d],h.prototype,"readU256",null),t([d],h.prototype,"readU512",null),t([d],h.prototype,"readString",null),t([d],h.prototype,"readFixedArray",null),t([d],h.prototype,"readArray",null),Lo.BinaryReader=h,Lo.serialize=function(e,n,t=f){const r=new t;return b(e,n,r),r.toArray()},Lo.deserialize=function(e,n,t,r=h){const i=new r(t),o=y(e,n,i);if(i.offset<t.length)throw new c(`Unexpected ${t.length-i.offset} bytes after deserialized data`);return o},Lo.deserializeUnchecked=function(e,n,t,r=h){return y(e,n,new r(t))},Lo}(),Qo={},Zo=function(){if(Ko)return Qo;Ko=1,Object.defineProperty(Qo,"i",{value:!0}),Qo.s16=Qo.s8=Qo.nu64be=Qo.u48be=Qo.u40be=Qo.u32be=Qo.u24be=Qo.u16be=Qo.nu64=Qo.u48=Qo.u40=Qo.u32=Qo.u24=Qo.u16=Qo.u8=Qo.offset=Qo.greedy=Qo.Constant=Qo.UTF8=Qo.CString=Qo.Blob=Qo.Boolean=Qo.BitField=Qo.BitStructure=Qo.VariantLayout=Qo.Union=Qo.UnionLayoutDiscriminator=Qo.UnionDiscriminator=Qo.Structure=Qo.Sequence=Qo.DoubleBE=Qo.Double=Qo.FloatBE=Qo.Float=Qo.NearInt64BE=Qo.NearInt64=Qo.NearUInt64BE=Qo.NearUInt64=Qo.IntBE=Qo.Int=Qo.UIntBE=Qo.UInt=Qo.OffsetLayout=Qo.GreedyCount=Qo.ExternalLayout=Qo.bindConstructorLayout=Qo.nameWithProperty=Qo.Layout=Qo.uint8ArrayToBuffer=Qo.checkUint8Array=void 0,Qo.constant=Qo.utf8=Qo.cstr=Qo.blob=Qo.unionLayoutDiscriminator=Qo.union=Qo.seq=Qo.bits=Qo.struct=Qo.f64be=Qo.f64=Qo.f32be=Qo.f32=Qo.ns64be=Qo.s48be=Qo.s40be=Qo.s32be=Qo.s24be=Qo.s16be=Qo.ns64=Qo.s48=Qo.s40=Qo.s32=Qo.s24=void 0;const e=_r();function n(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function t(t){return n(t),e.Buffer.from(t.buffer,t.byteOffset,t.length)}Qo.checkUint8Array=n,Qo.uint8ArrayToBuffer=t;let r=class{constructor(e,n){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=n}makeDestinationObject(){return{}}getSpan(e,n){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const n=Object.create(this.constructor.prototype);return Object.assign(n,this),n.property=e,n}fromArray(e){}};function i(e,n){return n.property?e+"["+n.property+"]":e}Qo.Layout=r,Qo.nameWithProperty=i,Qo.bindConstructorLayout=function(e,n){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(n&&n instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(n,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=n,n.boundConstructor_=e,n.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,t){return n.encode(this,e,t)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,t)=>n.decode(e,t),writable:!0})};class o extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Qo.ExternalLayout=o;class a extends o{constructor(e=1,n){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,n),this.elementSpan=e}isCount(){return!0}decode(e,t=0){n(e);const r=e.length-t;return Math.floor(r/this.elementSpan)}encode(e,n,t){return 0}}Qo.GreedyCount=a;class s extends o{constructor(e,n=0,t){if(!(e instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(n))throw new TypeError("offset must be integer or undefined");super(e.span,t||e.property),this.layout=e,this.offset=n}isCount(){return this.layout instanceof l||this.layout instanceof u}decode(e,n=0){return this.layout.decode(e,n+this.offset)}encode(e,n,t=0){return this.layout.encode(e,n,t+this.offset)}}Qo.OffsetLayout=s;class l extends r{constructor(e,n){if(super(e,n),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,n=0){return t(e).readUIntLE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntLE(e,r,this.span),this.span}}Qo.UInt=l;class u extends r{constructor(e,n){if(super(e,n),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,n=0){return t(e).readUIntBE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntBE(e,r,this.span),this.span}}Qo.UIntBE=u;class c extends r{constructor(e,n){if(super(e,n),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,n=0){return t(e).readIntLE(n,this.span)}encode(e,n,r=0){return t(n).writeIntLE(e,r,this.span),this.span}}Qo.Int=c;class f extends r{constructor(e,n){if(super(e,n),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,n=0){return t(e).readIntBE(n,this.span)}encode(e,n,r=0){return t(n).writeIntBE(e,r,this.span),this.span}}Qo.IntBE=f;const d=Math.pow(2,32);function h(e){const n=Math.floor(e/d);return{hi32:n,lo32:e-n*d}}function p(e,n){return e*d+n}class m extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e),i=r.readUInt32LE(n);return p(r.readUInt32LE(n+4),i)}encode(e,n,r=0){const i=h(e),o=t(n);return o.writeUInt32LE(i.lo32,r),o.writeUInt32LE(i.hi32,r+4),8}}Qo.NearUInt64=m;class b extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e);return p(r.readUInt32BE(n),r.readUInt32BE(n+4))}encode(e,n,r=0){const i=h(e),o=t(n);return o.writeUInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Qo.NearUInt64BE=b;class v extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e),i=r.readUInt32LE(n);return p(r.readInt32LE(n+4),i)}encode(e,n,r=0){const i=h(e),o=t(n);return o.writeUInt32LE(i.lo32,r),o.writeInt32LE(i.hi32,r+4),8}}Qo.NearInt64=v;class y extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e);return p(r.readInt32BE(n),r.readUInt32BE(n+4))}encode(e,n,r=0){const i=h(e),o=t(n);return o.writeInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Qo.NearInt64BE=y;class w extends r{constructor(e){super(4,e)}decode(e,n=0){return t(e).readFloatLE(n)}encode(e,n,r=0){return t(n).writeFloatLE(e,r),4}}Qo.Float=w;class g extends r{constructor(e){super(4,e)}decode(e,n=0){return t(e).readFloatBE(n)}encode(e,n,r=0){return t(n).writeFloatBE(e,r),4}}Qo.FloatBE=g;class k extends r{constructor(e){super(8,e)}decode(e,n=0){return t(e).readDoubleLE(n)}encode(e,n,r=0){return t(n).writeDoubleLE(e,r),8}}Qo.Double=k;class A extends r{constructor(e){super(8,e)}decode(e,n=0){return t(e).readDoubleBE(n)}encode(e,n,r=0){return t(n).writeDoubleBE(e,r),8}}Qo.DoubleBE=A;class x extends r{constructor(e,n,t){if(!(e instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof o&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;!(n instanceof o)&&0<e.span&&(i=n*e.span),super(i,t),this.elementLayout=e,this.count=n}getSpan(e,n=0){if(0<=this.span)return this.span;let t=0,r=this.count;if(r instanceof o&&(r=r.decode(e,n)),0<this.elementLayout.span)t=r*this.elementLayout.span;else{let i=0;for(;i<r;)t+=this.elementLayout.getSpan(e,n+t),++i}return t}decode(e,n=0){const t=[];let r=0,i=this.count;for(i instanceof o&&(i=i.decode(e,n));r<i;)t.push(this.elementLayout.decode(e,n)),n+=this.elementLayout.getSpan(e,n),r+=1;return t}encode(e,n,t=0){const r=this.elementLayout,i=e.reduce((e,i)=>e+r.encode(i,n,t+e),0);return this.count instanceof o&&this.count.encode(e.length,n,t),i}}Qo.Sequence=x;class E extends r{constructor(e,n,t){if(!Array.isArray(e)||!e.reduce((e,n)=>e&&n instanceof r,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof n&&void 0===t&&(t=n,n=void 0);for(const r of e)if(0>r.span&&void 0===r.property)throw new Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=e.reduce((e,n)=>e+n.getSpan(),0)}catch(o){}super(i,n),this.fields=e,this.decodePrefixes=!!t}getSpan(e,n=0){if(0<=this.span)return this.span;let t=0;try{t=this.fields.reduce((t,r)=>{const i=r.getSpan(e,n);return n+=i,t+i},0)}catch(r){throw new RangeError("indeterminate span")}return t}decode(e,t=0){n(e);const r=this.makeDestinationObject();for(const n of this.fields)if(void 0!==n.property&&(r[n.property]=n.decode(e,t)),t+=n.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return r}encode(e,n,t=0){const r=t;let i=0,o=0;for(const a of this.fields){let r=a.span;if(o=0<r?r:0,void 0!==a.property){const i=e[a.property];void 0!==i&&(o=a.encode(i,n,t),0>r&&(r=a.getSpan(n,t)))}i=t,t+=r}return i+o-r}fromArray(e){const n=this.makeDestinationObject();for(const t of this.fields)void 0!==t.property&&0<e.length&&(n[t.property]=e.shift());return n}layoutFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const n of this.fields)if(n.property===e)return n}offsetOf(e){if("string"!=typeof e)throw new TypeError("property must be string");let n=0;for(const t of this.fields){if(t.property===e)return n;0>t.span?n=-1:0<=n&&(n+=t.span)}}}Qo.Structure=E;class S{constructor(e){this.property=e}decode(e,n){throw new Error("UnionDiscriminator is abstract")}encode(e,n,t){throw new Error("UnionDiscriminator is abstract")}}Qo.UnionDiscriminator=S;class C extends S{constructor(e,n){if(!(e instanceof o&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(n||e.property||"variant"),this.layout=e}decode(e,n){return this.layout.decode(e,n)}encode(e,n,t){return this.layout.encode(e,n,t)}}Qo.UnionLayoutDiscriminator=C;class T extends r{constructor(e,n,t){let i;if(e instanceof l||e instanceof u)i=new C(new s(e));else if(e instanceof o&&e.isCount())i=new C(e);else{if(!(e instanceof S))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===n&&(n=null),!(null===n||n instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(null!==n){if(0>n.span)throw new Error("defaultLayout must have constant span");void 0===n.property&&(n=n.replicate("content"))}let a=-1;n&&(a=n.span,0<=a&&(e instanceof l||e instanceof u)&&(a+=i.layout.span)),super(a,t),this.discriminator=i,this.usesPrefixDiscriminator=e instanceof l||e instanceof u,this.defaultLayout=n,this.registry={};let c=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return c(e)},this.configGetSourceVariant=function(e){c=e.bind(this)}}getSpan(e,n=0){if(0<=this.span)return this.span;const t=this.getVariant(e,n);if(!t)throw new Error("unable to determine span for unrecognized variant");return t.getSpan(e,n)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const n=this.registry[e[this.discriminator.property]];if(n&&(!n.layout||n.property&&Object.prototype.hasOwnProperty.call(e,n.property)))return n}else for(const n in this.registry){const t=this.registry[n];if(t.property&&Object.prototype.hasOwnProperty.call(e,t.property))return t}throw new Error("unable to infer src variant")}decode(e,n=0){let t;const r=this.discriminator,i=r.decode(e,n),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let a=0;this.usesPrefixDiscriminator&&(a=r.layout.span),t=this.makeDestinationObject(),t[r.property]=i,t[o.property]=o.decode(e,n+a)}else t=o.decode(e,n);return t}encode(e,n,t=0){const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(e[r.property],n,t),o+i.encode(e[i.property],n,t+o)}return r.encode(e,n,t)}addVariant(e,n,t){const r=new I(this,e,n,t);return this.registry[e]=r,r}getVariant(e,n=0){let t;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}Qo.Union=T;class I extends r{constructor(e,n,t,i){if(!(e instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(n)||0>n)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof t&&void 0===i&&(i=t,t=null),t){if(!(t instanceof r))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=t.span&&t.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}let o=e.span;0>e.span&&(o=t?t.span:0,0<=o&&e.usesPrefixDiscriminator&&(o+=e.discriminator.layout.span)),super(o,i),this.union=e,this.variant=n,this.layout=t||null}getSpan(e,n=0){if(0<=this.span)return this.span;let t=0;this.union.usesPrefixDiscriminator&&(t=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(e,n+t)),t+r}decode(e,n=0){const t=this.makeDestinationObject();if(this!==this.union.getVariant(e,n))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?t[this.property]=this.layout.decode(e,n+r):this.property?t[this.property]=!0:this.union.usesPrefixDiscriminator&&(t[this.union.discriminator.property]=this.variant),t}encode(e,n,t=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,n,t);let i=r;if(this.layout&&(this.layout.encode(e[this.property],n,t+r),i+=this.layout.getSpan(n,t+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function M(e){return 0>e&&(e+=4294967296),e}Qo.VariantLayout=I;class O extends r{constructor(e,n,t){if(!(e instanceof l||e instanceof u))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof n&&void 0===t&&(t=n,n=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,t),this.word=e,this.msb=!!n,this.fields=[];let r=0;this.kn=function(e){return r=M(e),this},this.An=function(){return r}}decode(e,n=0){const t=this.makeDestinationObject(),r=this.word.decode(e,n);this.kn(r);for(const i of this.fields)void 0!==i.property&&(t[i.property]=i.decode(e));return t}encode(e,n,t=0){const r=this.word.decode(n,t);this.kn(r);for(const i of this.fields)if(void 0!==i.property){const n=e[i.property];void 0!==n&&i.encode(n)}return this.word.encode(this.An(),n,t)}addField(e,n){const t=new R(this,e,n);return this.fields.push(t),t}addBoolean(e){const n=new N(this,e);return this.fields.push(n),n}fieldFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const n of this.fields)if(n.property===e)return n}}Qo.BitStructure=O;class R{constructor(e,n,t){if(!(e instanceof O))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");const r=8*e.span,i=e.fields.reduce((e,n)=>e+n.bits,0);if(n+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=e,this.bits=n,this.valueMask=(1<<n)-1,32===n&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-n),this.wordMask=M(this.valueMask<<this.start),this.property=t}decode(e,n){return M(this.container.An()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==M(e&this.valueMask))throw new TypeError(i("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const n=this.container.An(),t=M(e<<this.start);this.container.kn(M(n&~this.wordMask)|t)}}Qo.BitField=R;class N extends R{constructor(e,n){super(e,1,n)}decode(e,n){return!!super.decode(e,n)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}Qo.Boolean=N;class B extends r{constructor(e,n){if(!(e instanceof o&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let t=-1;e instanceof o||(t=e),super(t,n),this.length=e}getSpan(e,n){let t=this.span;return 0>t&&(t=this.length.decode(e,n)),t}decode(e,n=0){let r=this.span;return 0>r&&(r=this.length.decode(e,n)),t(e).slice(n,n+r)}encode(e,n,r){let a=this.length;if(this.length instanceof o&&(a=e.length),!(e instanceof Uint8Array&&a===e.length))throw new TypeError(i("Blob.encode",this)+" requires (length "+a+") Uint8Array as src");if(r+a>n.length)throw new RangeError("encoding overruns Uint8Array");const s=t(e);return t(n).write(s.toString("hex"),r,a,"hex"),this.length instanceof o&&this.length.encode(a,n,r),a}}Qo.Blob=B;class F extends r{constructor(e){super(-1,e)}getSpan(e,t=0){n(e);let r=t;for(;r<e.length&&0!==e[r];)r+=1;return 1+r-t}decode(e,n=0){const r=this.getSpan(e,n);return t(e).slice(n,n+r-1).toString("utf-8")}encode(n,r,i=0){"string"!=typeof n&&(n=String(n));const o=e.Buffer.from(n,"utf8"),a=o.length;if(i+a>r.length)throw new RangeError("encoding overruns Buffer");const s=t(r);return o.copy(s,i),s[i+a]=0,a+1}}Qo.CString=F;class L extends r{constructor(e,n){if("string"==typeof e&&void 0===n&&(n=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,n),this.maxSpan=e}getSpan(e,t=0){return n(e),e.length-t}decode(e,n=0){const r=this.getSpan(e,n);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return t(e).slice(n,n+r).toString("utf-8")}encode(n,r,i=0){"string"!=typeof n&&(n=String(n));const o=e.Buffer.from(n,"utf8"),a=o.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(i+a>r.length)throw new RangeError("encoding overruns Buffer");return o.copy(t(r),i),a}}Qo.UTF8=L;class D extends r{constructor(e,n){super(0,n),this.value=e}decode(e,n){return this.value}encode(e,n,t){return 0}}return Qo.Constant=D,Qo.greedy=(e,n)=>new a(e,n),Qo.offset=(e,n,t)=>new s(e,n,t),Qo.u8=e=>new l(1,e),Qo.u16=e=>new l(2,e),Qo.u24=e=>new l(3,e),Qo.u32=e=>new l(4,e),Qo.u40=e=>new l(5,e),Qo.u48=e=>new l(6,e),Qo.nu64=e=>new m(e),Qo.u16be=e=>new u(2,e),Qo.u24be=e=>new u(3,e),Qo.u32be=e=>new u(4,e),Qo.u40be=e=>new u(5,e),Qo.u48be=e=>new u(6,e),Qo.nu64be=e=>new b(e),Qo.s8=e=>new c(1,e),Qo.s16=e=>new c(2,e),Qo.s24=e=>new c(3,e),Qo.s32=e=>new c(4,e),Qo.s40=e=>new c(5,e),Qo.s48=e=>new c(6,e),Qo.ns64=e=>new v(e),Qo.s16be=e=>new f(2,e),Qo.s24be=e=>new f(3,e),Qo.s32be=e=>new f(4,e),Qo.s40be=e=>new f(5,e),Qo.s48be=e=>new f(6,e),Qo.ns64be=e=>new y(e),Qo.f32=e=>new w(e),Qo.f32be=e=>new g(e),Qo.f64=e=>new k(e),Qo.f64be=e=>new A(e),Qo.struct=(e,n,t)=>new E(e,n,t),Qo.bits=(e,n,t)=>new O(e,n,t),Qo.seq=(e,n,t)=>new x(e,n,t),Qo.union=(e,n,t)=>new T(e,n,t),Qo.unionLayoutDiscriminator=(e,n)=>new C(e,n),Qo.blob=(e,n)=>new B(e,n),Qo.cstr=e=>new F(e),Qo.utf8=(e,n)=>new L(e,n),Qo.constant=(e,n)=>new D(e,n),Qo}(),_o=1,$o=2,ea=3,na=4,ta=5,ra=6,ia=7,oa=8,aa=9,sa=10,la=-32700,ua=-32603,ca=-32602,fa=-32601,da=-32600,ha=-32016,pa=-32015,ma=-32014,ba=-32013,va=-32012,ya=-32011,wa=-32010,ga=-32009,ka=-32008,Aa=-32007,xa=-32006,Ea=-32005,Sa=-32004,Ca=-32003,Ta=-32002,Ia=-32001,Ma=28e5,Oa=2800001,Ra=2800002,Na=2800003,Ba=2800004,Fa=2800005,La=2800006,Da=2800007,Ua=2800008,Pa=2800009,ja=2800010,Ha=2800011,Va=323e4,za=32300001,Wa=3230002,qa=3230003,Ga=3230004,Ya=361e4,Ja=3610001,Ka=3610002,Xa=3610003,Qa=3610004,Za=3610005,_a=3610006,$a=3610007,es=3611e3,ns=3704e3,ts=3704001,rs=3704002,is=3704003,os=3704004,as=4128e3,ss=4128001,ls=4128002,us=4615e3,cs=4615001,fs=4615002,ds=4615003,hs=4615004,ps=4615005,ms=4615006,bs=4615007,vs=4615008,ys=4615009,ws=4615010,gs=4615011,ks=4615012,As=4615013,xs=4615014,Es=4615015,Ss=4615016,Cs=4615017,Ts=4615018,Is=4615019,Ms=4615020,Os=4615021,Rs=4615022,Ns=4615023,Bs=4615024,Fs=4615025,Ls=4615026,Ds=4615027,Us=4615028,Ps=4615029,js=4615030,Hs=4615031,Vs=4615032,zs=4615033,Ws=4615034,qs=4615035,Gs=4615036,Ys=4615037,Js=4615038,Ks=4615039,Xs=4615040,Qs=4615041,Zs=4615042,_s=4615043,$s=4615044,el=4615045,nl=4615046,tl=4615047,rl=4615048,il=4615049,ol=4615050,al=4615051,sl=4615052,ll=4615053,ul=4615054,cl=5508e3,fl=5508001,dl=5508002,hl=5508003,pl=5508004,ml=5508005,bl=5508006,vl=5508007,yl=5508008,wl=5508009,gl=5508010,kl=5508011,Al=5663e3,xl=5663001,El=5663002,Sl=5663003,Cl=5663004,Tl=5663005,Il=5663006,Ml=5663007,Ol=5663008,Rl=5663009,Nl=5663010,Bl=5663011,Fl=5663012,Ll=5663013,Dl=5663014,Ul=5663015,Pl=5663016,jl=5663017,Hl=5663018,Vl=5663019,zl=5663020,Wl=705e4,ql=7050001,Gl=7050002,Yl=7050003,Jl=7050004,Kl=7050005,Xl=7050006,Ql=7050007,Zl=7050008,_l=7050009,$l=7050010,eu=7050011,nu=7050012,tu=7050013,ru=7050014,iu=7050015,ou=7050016,au=7050017,su=7050018,lu=7050019,uu=7050020,cu=7050021,fu=7050022,du=7050023,hu=7050024,pu=7050025,mu=7050026,bu=7050027,vu=7050028,yu=7050029,wu=7050030,gu=7050031,ku=7050032,Au=7050033,xu=7050034,Eu=7050035,Su=7050036,Cu=8078e3,Tu=8078001,Iu=8078002,Mu=8078003,Ou=8078004,Ru=8078005,Nu=8078006,Bu=8078007,Fu=8078008,Lu=8078009,Du=8078010,Uu=8078011,Pu=8078012,ju=8078013,Hu=8078014,Vu=8078015,zu=8078016,Wu=8078017,qu=8078018,Gu=8078019,Yu=8078020,Ju=8078021,Ku=8078022,Xu=81e5,Qu=8100001,Zu=8100002,_u=8100003,$u=819e4,ec=8190001,nc=8190002,tc=8190003,rc=8190004,ic=99e5,oc=9900001,ac=9900002,sc=9900003,lc=9900004;function uc(e){return Array.isArray(e)?"%5B"+e.map(uc).join("%2C%20")+"%5D":"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function cc([e,n]){return`${e}=${uc(n)}`}var fc={[Va]:"Account not found at address: $address",[Ga]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[qa]:"Expected decoded account at address: $address",[Wa]:"Failed to decode account data at address: $address",[za]:"Accounts not found at addresses: $addresses",[Pa]:"Unable to find a viable program address bump seed.",[Ra]:"$putativeAddress is not a base58-encoded address.",[Ma]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Na]:"The `CryptoKey` must be an `Ed25519` public key.",[Ha]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Ua]:"Invalid seeds; point must fall off the Ed25519 curve.",[Ba]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[La]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Da]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Fa]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[ja]:"Program address cannot end with PDA marker.",[Oa]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[na]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[_o]:"The network has progressed past the last block for which this transaction could have been committed.",[Cu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ku]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Yu]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Ru]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Nu]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Ou]:"Encoder and decoder must either both be fixed-size or variable-size.",[Fu]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Iu]:"Expected a fixed-size codec, got a variable-size one.",[ju]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Mu]:"Expected a variable-size codec, got a fixed-size one.",[Gu]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Tu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[qu]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Lu]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Du]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Vu]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Bu]:"Expected [$codecDescription] to have $expected items, got $actual.",[Pu]:"Invalid value $value for base $base with alphabet $alphabet.",[zu]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Uu]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Hu]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Ju]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Wu]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[es]:"No random values implementation could be found.",[ys]:"instruction requires an uninitialized account",[Ns]:"instruction tries to borrow reference for an account which is already borrowed",[Bs]:"instruction left account with an outstanding borrowed reference",[Os]:"program other than the account's owner changed the size of the account data",[ps]:"account data too small for instruction",[Rs]:"instruction expected an executable account",[nl]:"An account does not have enough lamports to be rent-exempt",[rl]:"Program arithmetic overflowed",[el]:"Failed to serialize or deserialize account data: $encodedData",[ul]:"Builtin programs must consume compute units",[Vs]:"Cross-program invocation call depth too deep",[Js]:"Computational budget exceeded",[Ls]:"custom program error: #$code",[Cs]:"instruction contains duplicate accounts",[Fs]:"instruction modifications of multiply-passed account differ",[js]:"executable accounts must be rent exempt",[Us]:"instruction changed executable accounts data",[Ps]:"instruction changed the balance of an executable account",[Ts]:"instruction changed executable bit of an account",[xs]:"instruction modified data of an account it does not own",[As]:"instruction spent from the balance of an account it does not own",[cs]:"generic instruction error",[ol]:"Provided owner is not allowed",[_s]:"Account is immutable",[$s]:"Incorrect authority provided",[bs]:"incorrect program id for instruction",[ms]:"insufficient funds for instruction",[hs]:"invalid account data for instruction",[tl]:"Invalid account owner",[fs]:"invalid program argument",[Ds]:"program returned invalid error code",[ds]:"invalid instruction data",[Ys]:"Failed to reallocate account data",[Gs]:"Provided seeds do not result in a valid address",[al]:"Accounts data allocations exceeded the maximum allowed per transaction",[sl]:"Max accounts exceeded",[ll]:"Max instruction trace length exceeded",[qs]:"Length of the seed is too long for address generation",[zs]:"An account required by the instruction is missing",[vs]:"missing required signature for instruction",[ks]:"instruction illegally modified the program id of an account",[Ms]:"insufficient account keys for instruction",[Ks]:"Cross-program invocation with unauthorized signer or writable account",[Xs]:"Failed to create program execution environment",[Zs]:"Program failed to compile",[Qs]:"Program failed to complete",[Ss]:"instruction modified data of a read-only account",[Es]:"instruction changed the balance of a read-only account",[Ws]:"Cross-program invocation reentrancy not allowed for this instruction",[Is]:"instruction modified rent epoch of an account",[gs]:"sum of account balances before and after instruction do not match",[ws]:"instruction requires an initialized account",[us]:"",[Hs]:"Unsupported program id",[il]:"Unsupported sysvar",[as]:"The instruction does not have any accounts.",[ss]:"The instruction does not have any data.",[ls]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[ta]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[$o]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[ac]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[lc]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[oc]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[ic]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[sc]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[ua]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[ca]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[da]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[fa]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[la]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[va]:"$__serverMessage",[Ia]:"$__serverMessage",[Sa]:"$__serverMessage",[ma]:"$__serverMessage",[wa]:"$__serverMessage",[ga]:"$__serverMessage",[ha]:"Minimum context slot has not been reached",[Ea]:"Node is unhealthy; behind by $numSlotsBehind slots",[ka]:"No snapshot",[Ta]:"Transaction simulation failed",[Aa]:"$__serverMessage",[ya]:"Transaction history is not available from this node",[xa]:"$__serverMessage",[ba]:"Transaction signature length mismatch",[Ca]:"Transaction signature verification failure",[pa]:"$__serverMessage",[ns]:"Key pair bytes must be of length 64, got $byteLength.",[ts]:"Expected private key bytes with length 32. Actual length: $actualLength.",[rs]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[os]:"The provided private key does not match the provided public key.",[is]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[ra]:"Lamports value must be in the range [0, 2e64-1]",[ia]:"`$value` cannot be parsed as a `BigInt`",[sa]:"$message",[oa]:"`$value` cannot be parsed as a `Number`",[ea]:"No nonce account could be found at address `$nonceAccountAddress`",[$u]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[nc]:"WebSocket was closed before payload could be added to the send buffer",[tc]:"WebSocket connection closed",[rc]:"WebSocket failed to connect",[ec]:"Failed to obtain a subscription id from the server",[_u]:"Could not find an API plan for RPC method: `$method`",[Xu]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Zu]:"HTTP error ($statusCode): $message",[Qu]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[cl]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[fl]:"The provided value does not implement the `KeyPairSigner` interface",[hl]:"The provided value does not implement the `MessageModifyingSigner` interface",[pl]:"The provided value does not implement the `MessagePartialSigner` interface",[dl]:"The provided value does not implement any of the `MessageSigner` interfaces",[bl]:"The provided value does not implement the `TransactionModifyingSigner` interface",[vl]:"The provided value does not implement the `TransactionPartialSigner` interface",[yl]:"The provided value does not implement the `TransactionSendingSigner` interface",[ml]:"The provided value does not implement any of the `TransactionSigner` interfaces",[wl]:"More than one `TransactionSendingSigner` was identified.",[gl]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[kl]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[$a]:"Cannot export a non-extractable key.",[Ja]:"No digest implementation could be found.",[Ya]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Ka]:"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",[Xa]:"No signature verification implementation could be found.",[Qa]:"No key generation implementation could be found.",[Za]:"No signing implementation could be found.",[_a]:"No key export implementation could be found.",[aa]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[ou]:"Transaction processing left an account with an outstanding borrowed reference",[ql]:"Account in use",[Gl]:"Account loaded twice",[Yl]:"Attempt to debit an account but found no record of a prior credit.",[du]:"Transaction loads an address table account that doesn't exist",[Ql]:"This transaction has already been processed",[Zl]:"Blockhash not found",[_l]:"Loader call chain is too deep",[iu]:"Transactions are currently disabled due to cluster maintenance",[wu]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Kl]:"Insufficient funds for fee",[gu]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Xl]:"This account may not be used to pay transaction fees",[eu]:"Transaction contains an invalid account reference",[pu]:"Transaction loads an address table account with invalid data",[mu]:"Transaction address table lookup uses an invalid index",[hu]:"Transaction loads an address table account with an invalid owner",[Au]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[tu]:"This program may not be used for executing instructions",[bu]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[lu]:"Transaction loads a writable account that cannot be written",[ku]:"Transaction exceeded max loaded accounts data size cap",[$l]:"Transaction requires a fee but has no signature present",[Jl]:"Attempt to load a program that does not exist",[Eu]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[xu]:"ResanitizationNeeded",[ru]:"Transaction failed to sanitize accounts offsets correctly",[nu]:"Transaction did not pass signature verification",[fu]:"Transaction locked too many accounts",[Su]:"Sum of account balances before and after transaction do not match",[Wl]:"The transaction failed with the error `$errorName`",[su]:"Transaction version is unsupported",[cu]:"Transaction would exceed account data limit within the block",[yu]:"Transaction would exceed total account data limit",[uu]:"Transaction would exceed max account limit within the block",[au]:"Transaction would exceed max Block Cost Limit",[vu]:"Transaction would exceed max Vote Cost Limit",[Ul]:"Attempted to sign a transaction with an address that is not a signer for it",[Nl]:"Transaction is missing an address at index: $index.",[Pl]:"Transaction has no expected signers therefore it cannot be encoded",[zl]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[El]:"Transaction does not have a blockhash lifetime",[Sl]:"Transaction is not a durable nonce transaction",[Tl]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Il]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Ol]:"No fee payer set in CompiledTransaction",[Ml]:"Could not find program address at index $index",[Hl]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Vl]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Bl]:"Transaction is missing a fee payer.",[Fl]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Dl]:"Transaction first instruction is not advance nonce account instruction.",[Ll]:"Transaction with no instructions cannot be durable nonce transaction.",[Al]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[xl]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[jl]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[Rl]:"Transaction is missing signatures for addresses: $addresses.",[Cl]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},dc="i",hc="t";var pc=class extends Error{cause=this.cause;context;constructor(...[e,n]){let t,r;if(n){const{cause:e,...i}=n;e&&(r={cause:e}),Object.keys(i).length>0&&(t=i)}super(function(e,n={}){if("production"!==process.env.NODE_ENV)return function(e,n={}){const t=fc[e];if(0===t.length)return"";let r;function i(e){if(2===r[hc]){const i=t.slice(r[dc]+1,e);o.push(i in n?`${n[i]}`:`$${i}`)}else 1===r[hc]&&o.push(t.slice(r[dc],e))}const o=[];return t.split("").forEach((e,n)=>{if(0===n)return void(r={[dc]:0,[hc]:"\\"===t[0]?0:"$"===t[0]?2:1});let o;switch(r[hc]){case 0:o={[dc]:n,[hc]:1};break;case 1:"\\"===e?o={[dc]:n,[hc]:0}:"$"===e&&(o={[dc]:n,[hc]:2});break;case 2:"\\"===e?o={[dc]:n,[hc]:0}:"$"===e?o={[dc]:n,[hc]:2}:e.match(/\w/)||(o={[dc]:n,[hc]:1})}o&&(r!==o&&i(n),r=o)}),i(),o.join("")}(e,n);{let t=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(n).length&&(t+=` '${function(e){const n=Object.entries(e).map(cc).join("&");return btoa(n)}(n)}'`),`${t}\``}}(e,t),r),this.context={xn:e,...t},this.name="SolanaError"}};function mc(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function bc(e){return 1!==e?.endian}var vc=(e={})=>function(e,n){if(mc(e)!==mc(n))throw new pc(Ou);if(mc(e)&&mc(n)&&e.fixedSize!==n.fixedSize)throw new pc(Ru,{decoderFixedSize:n.fixedSize,encoderFixedSize:e.fixedSize});if(!mc(e)&&!mc(n)&&e.maxSize!==n.maxSize)throw new pc(Nu,{decoderMaxSize:n.maxSize,encoderMaxSize:e.maxSize});return{...n,...e,decode:n.decode,encode:e.encode,read:n.read,write:e.write}}(((e={})=>{return n={config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,n,t)=>e.setBigUint64(0,BigInt(n),t),size:8},t={fixedSize:n.size,write(e,t,r){n.range&&function(e,n,t,r){if(r<n||r>t)throw new pc(Uu,{codecDescription:e,max:t,min:n,value:r})}(n.name,n.range[0],n.range[1],e);const i=new ArrayBuffer(n.size);return n.set(new DataView(i),e,bc(n.config)),t.set(new Uint8Array(i),r),r+n.size}},Object.freeze({...t,encode:e=>{const n=new Uint8Array(function(e,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(e)}(e,t));return t.write(e,n,0),n}});var n,t})(e),((e={})=>{return t={fixedSize:(n={config:e,get:(e,n)=>e.getBigUint64(0,n),name:"u64",size:8}).size,read(e,t=0){!function(e,n,t=0){if(n.length-t<=0)throw new pc(Cu,{codecDescription:e})}(n.name,e,t),function(e,n,t,r=0){const i=t.length-r;if(i<n)throw new pc(Tu,{bytesLength:i,codecDescription:e,expected:n})}(n.name,n.size,e,t);const r=new DataView(function(e,n,t){const r=e.byteOffset+(n??0),i=t??e.byteLength;return e.buffer.slice(r,r+i)}(e,t,n.size));return[n.get(r,bc(n.config)),t+n.size]}},Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]});var n,t})(e));class yc extends TypeError{constructor(e,n){let t;const{message:r,explanation:i,...o}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>t??(t=[e,...n()])}}function wc(e){return"object"==typeof e&&null!=e}function gc(e){return wc(e)&&!Array.isArray(e)}function kc(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function Ac(e,n,t,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:o}=n,{type:a}=t,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${kc(r)}\``}=e;return{value:r,type:a,refinement:s,key:i[i.length-1],path:i,branch:o,...e,message:l}}function*xc(e,n,t,r){var i;wc(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=Ac(o,n,t,r);e&&(yield e)}}function*Ec(e,n,t={}){const{path:r=[],branch:i=[e],coerce:o=!1,mask:a=!1}=t,s={path:r,branch:i,mask:a};o&&(e=n.coercer(e,s));let l="valid";for(const u of n.validator(e,s))u.explanation=t.message,l="not_valid",yield[u,void 0];for(let[u,c,f]of n.entries(e,s)){const n=Ec(c,f,{path:void 0===u?r:[...r,u],branch:void 0===u?i:[...i,c],coerce:o,mask:a,message:t.message});for(const t of n)t[0]?(l=null!=t[0].refinement?"not_refined":"not_valid",yield[t[0],void 0]):o&&(c=t[1],void 0===u?e=c:e instanceof Map?e.set(u,c):e instanceof Set?e.add(c):wc(e)&&(void 0!==c||u in e)&&(e[u]=c))}if("not_valid"!==l)for(const u of n.refiner(e,s))u.explanation=t.message,l="not_refined",yield[u,void 0];"valid"===l&&(yield[void 0,e])}let Sc=class{constructor(e){const{type:n,schema:t,validator:r,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=n,this.schema=t,this.entries=a,this.coercer=o,this.validator=r?(e,n)=>xc(r(e,n),n,this,e):()=>[],this.refiner=i?(e,n)=>xc(i(e,n),n,this,e):()=>[]}assert(e,n){return function(e,n,t){const r=Ic(e,n,{message:t});if(r[0])throw r[0]}(e,this,n)}create(e,n){return Cc(e,this,n)}is(e){return Tc(e,this)}mask(e,n){return function(e,n,t){const r=Ic(e,n,{coerce:!0,mask:!0,message:t});if(r[0])throw r[0];return r[1]}(e,this,n)}validate(e,n={}){return Ic(e,this,n)}};function Cc(e,n,t){const r=Ic(e,n,{coerce:!0,message:t});if(r[0])throw r[0];return r[1]}function Tc(e,n){return!Ic(e,n)[0]}function Ic(e,n,t={}){const r=Ec(e,n,t),i=function(e){const{done:n,value:t}=e.next();return n?void 0:t}(r);return i[0]?[new yc(i[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]:[void 0,i[1]]}function Mc(e,n){return new Sc({type:e,schema:null,validator:n})}function Oc(e){return new Sc({type:"array",schema:e,*entries(n){if(e&&Array.isArray(n))for(const[t,r]of n.entries())yield[t,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${kc(e)}`})}function Rc(){return Mc("boolean",e=>"boolean"==typeof e)}function Nc(e){return Mc("instance",n=>n instanceof e||`Expected a \`${e.name}\` instance, but received: ${kc(n)}`)}function Bc(e){const n=kc(e),t=typeof e;return new Sc({type:"literal",schema:"string"===t||"number"===t||"boolean"===t?e:null,validator:t=>t===e||`Expected the literal \`${n}\`, but received: ${kc(t)}`})}function Fc(e){return new Sc({...e,validator:(n,t)=>null===n||e.validator(n,t),refiner:(n,t)=>null===n||e.refiner(n,t)})}function Lc(){return Mc("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${kc(e)}`)}function Dc(e){return new Sc({...e,validator:(n,t)=>void 0===n||e.validator(n,t),refiner:(n,t)=>void 0===n||e.refiner(n,t)})}function Uc(e,n){return new Sc({type:"record",schema:null,*entries(t){if(wc(t))for(const r in t){const i=t[r];yield[r,r,e],yield[r,i,n]}},validator:e=>gc(e)||`Expected an object, but received: ${kc(e)}`,coercer:e=>gc(e)?{...e}:e})}function Pc(){return Mc("string",e=>"string"==typeof e||`Expected a string, but received: ${kc(e)}`)}function jc(e){const n=Mc("never",()=>!1);return new Sc({type:"tuple",schema:null,*entries(t){if(Array.isArray(t)){const r=Math.max(e.length,t.length);for(let i=0;i<r;i++)yield[i,t[i],e[i]||n]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${kc(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function Hc(e){const n=Object.keys(e);return new Sc({type:"type",schema:e,*entries(t){if(wc(t))for(const r of n)yield[r,t[r],e[r]]},validator:e=>gc(e)||`Expected an object, but received: ${kc(e)}`,coercer:e=>gc(e)?{...e}:e})}function Vc(e){const n=e.map(e=>e.type).join(" | ");return new Sc({type:"union",schema:null,coercer(n,t){for(const r of e){const[e,i]=r.validate(n,{coerce:!0,mask:t.mask});if(!e)return i}return n},validator(t,r){const i=[];for(const n of e){const[...e]=Ec(t,n,r),[o]=e;if(!o[0])return[];for(const[n]of e)n&&i.push(n)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${kc(t)}`,...i]}})}function zc(){return Mc("unknown",()=>!0)}function Wc(e,n,t){return new Sc({...e,coercer:(r,i)=>Tc(r,n)?e.coercer(t(r,i),i):e.coercer(r,i)})}var qc,Gc=new Uint8Array(16);function Yc(){if(!qc&&!(qc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qc(Gc)}const Jc=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Kc(e){return"string"==typeof e&&Jc.test(e)}for(var Xc,Qc,Zc=[],_c=0;_c<256;++_c)Zc.push((_c+256).toString(16).substr(1));function $c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(Zc[e[n+0]]+Zc[e[n+1]]+Zc[e[n+2]]+Zc[e[n+3]]+"-"+Zc[e[n+4]]+Zc[e[n+5]]+"-"+Zc[e[n+6]]+Zc[e[n+7]]+"-"+Zc[e[n+8]]+Zc[e[n+9]]+"-"+Zc[e[n+10]]+Zc[e[n+11]]+Zc[e[n+12]]+Zc[e[n+13]]+Zc[e[n+14]]+Zc[e[n+15]]).toLowerCase();if(!Kc(t))throw TypeError("Stringified UUID is invalid");return t}var ef=0,nf=0;function tf(e){if(!Kc(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=255&n,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=255&n,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=255&n,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=255&n,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=255&n,t}function rf(e,n,t){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}(e)),"string"==typeof r&&(r=tf(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=t(a))[6]=15&a[6]|n,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return $c(a)}try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function of(e){return 14+(e+64>>>9<<4)+1}function af(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function sf(e,n,t,r,i,o){return af((a=af(af(n,e),af(r,o)))<<(s=i)|a>>>32-s,t);var a,s}function lf(e,n,t,r,i,o,a){return sf(n&t|~n&r,e,n,i,o,a)}function uf(e,n,t,r,i,o,a){return sf(n&r|t&~r,e,n,i,o,a)}function cf(e,n,t,r,i,o,a){return sf(n^t^r,e,n,i,o,a)}function ff(e,n,t,r,i,o,a){return sf(t^(n|~r),e,n,i,o,a)}var df=rf("v3",48,function(e){if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return function(e){for(var n=[],t=32*e.length,r="0123456789abcdef",i=0;i<t;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);n.push(a)}return n}(function(e,n){e[n>>5]|=128<<n%32,e[of(n)-1]=n;for(var t=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=t,l=r,u=i,c=o;t=lf(t,r,i,o,e[a],7,-680876936),o=lf(o,t,r,i,e[a+1],12,-389564586),i=lf(i,o,t,r,e[a+2],17,606105819),r=lf(r,i,o,t,e[a+3],22,-1044525330),t=lf(t,r,i,o,e[a+4],7,-176418897),o=lf(o,t,r,i,e[a+5],12,1200080426),i=lf(i,o,t,r,e[a+6],17,-1473231341),r=lf(r,i,o,t,e[a+7],22,-45705983),t=lf(t,r,i,o,e[a+8],7,1770035416),o=lf(o,t,r,i,e[a+9],12,-1958414417),i=lf(i,o,t,r,e[a+10],17,-42063),r=lf(r,i,o,t,e[a+11],22,-1990404162),t=lf(t,r,i,o,e[a+12],7,1804603682),o=lf(o,t,r,i,e[a+13],12,-40341101),i=lf(i,o,t,r,e[a+14],17,-1502002290),t=uf(t,r=lf(r,i,o,t,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=uf(o,t,r,i,e[a+6],9,-1069501632),i=uf(i,o,t,r,e[a+11],14,643717713),r=uf(r,i,o,t,e[a],20,-373897302),t=uf(t,r,i,o,e[a+5],5,-701558691),o=uf(o,t,r,i,e[a+10],9,38016083),i=uf(i,o,t,r,e[a+15],14,-660478335),r=uf(r,i,o,t,e[a+4],20,-405537848),t=uf(t,r,i,o,e[a+9],5,568446438),o=uf(o,t,r,i,e[a+14],9,-1019803690),i=uf(i,o,t,r,e[a+3],14,-187363961),r=uf(r,i,o,t,e[a+8],20,1163531501),t=uf(t,r,i,o,e[a+13],5,-1444681467),o=uf(o,t,r,i,e[a+2],9,-51403784),i=uf(i,o,t,r,e[a+7],14,1735328473),t=cf(t,r=uf(r,i,o,t,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=cf(o,t,r,i,e[a+8],11,-2022574463),i=cf(i,o,t,r,e[a+11],16,1839030562),r=cf(r,i,o,t,e[a+14],23,-35309556),t=cf(t,r,i,o,e[a+1],4,-1530992060),o=cf(o,t,r,i,e[a+4],11,1272893353),i=cf(i,o,t,r,e[a+7],16,-155497632),r=cf(r,i,o,t,e[a+10],23,-1094730640),t=cf(t,r,i,o,e[a+13],4,681279174),o=cf(o,t,r,i,e[a],11,-358537222),i=cf(i,o,t,r,e[a+3],16,-722521979),r=cf(r,i,o,t,e[a+6],23,76029189),t=cf(t,r,i,o,e[a+9],4,-640364487),o=cf(o,t,r,i,e[a+12],11,-421815835),i=cf(i,o,t,r,e[a+15],16,530742520),t=ff(t,r=cf(r,i,o,t,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=ff(o,t,r,i,e[a+7],10,1126891415),i=ff(i,o,t,r,e[a+14],15,-1416354905),r=ff(r,i,o,t,e[a+5],21,-57434055),t=ff(t,r,i,o,e[a+12],6,1700485571),o=ff(o,t,r,i,e[a+3],10,-1894986606),i=ff(i,o,t,r,e[a+10],15,-1051523),r=ff(r,i,o,t,e[a+1],21,-2054922799),t=ff(t,r,i,o,e[a+8],6,1873313359),o=ff(o,t,r,i,e[a+15],10,-30611744),i=ff(i,o,t,r,e[a+6],15,-1560198380),r=ff(r,i,o,t,e[a+13],21,1309151649),t=ff(t,r,i,o,e[a+4],6,-145523070),o=ff(o,t,r,i,e[a+11],10,-1120210379),i=ff(i,o,t,r,e[a+2],15,718787259),r=ff(r,i,o,t,e[a+9],21,-343485551),t=af(t,s),r=af(r,l),i=af(i,u),o=af(o,c)}return[t,r,i,o]}(function(e){if(0===e.length)return[];for(var n=8*e.length,t=new Uint32Array(of(n)),r=0;r<n;r+=8)t[r>>5]|=(255&e[r/8])<<r%32;return t}(e),8*e.length))});function hf(e,n,t,r){switch(e){case 0:return n&t^~n&r;case 1:case 3:return n^t^r;case 2:return n&t^n&r^t&r}}function pf(e,n){return e<<n|e>>>32-n}var mf=rf("v5",80,function(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),l=0;l<a;++l){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];s[l]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=s[f][h];for(var p=16;p<80;++p)d[p]=pf(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=t[0],b=t[1],v=t[2],y=t[3],w=t[4],g=0;g<80;++g){var k=Math.floor(g/20),A=pf(m,5)+hf(k,b,v,y)+w+n[k]+d[g]>>>0;w=y,y=v,v=pf(b,30)>>>0,b=m,m=A}t[0]=t[0]+m>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+v>>>0,t[3]=t[3]+y>>>0,t[4]=t[4]+w>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]});const bf=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:tf,stringify:$c,v1:function(e,n,t){var r=n&&t||0,i=n||new Array(16),o=(e=e||{}).node||Xc,a=void 0!==e.clockseq?e.clockseq:Qc;if(null==o||null==a){var s=e.random||(e.rng||Yc)();null==o&&(o=Xc=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Qc=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:nf+1,c=l-ef+(u-nf)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||l>ef)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ef=l,nf=u,Qc=a;var f=(1e4*(268435455&(l+=122192928e5))+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var d=l/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var h=0;h<6;++h)i[r+h]=o[h];return n||$c(i)},v3:df,v4:function(e,n,t){var r=(e=e||{}).random||(e.rng||Yc)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return $c(r)},v5:mf,validate:Kc,version:function(e){if(!Kc(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})),vf=/* @__PURE__ */n(bf);var yf,wf,gf,kf;!function(){if(kf)return gf;kf=1;const e=vf.v4,n=function(){if(wf)return yf;wf=1;const e=vf.v4;return yf=function(n,t,r,i){if("string"!=typeof n)throw new TypeError(n+" must be a string");const o="number"==typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const a={method:n};if(2===o&&(a.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");a.params=t}if(void 0===r){const n="function"==typeof i.generator?i.generator:function(){return e()};a.id=n(a,i)}else 2===o&&null===r?i.notificationIdNull&&(a.id=null):a.id=r;return a}}(),t=function(n,r){if(!(this instanceof t))return new t(n,r);r||(r={}),this.options={reviver:void 0!==r.reviver?r.reviver:null,replacer:void 0!==r.replacer?r.replacer:null,generator:void 0!==r.generator?r.generator:function(){return e()},version:void 0!==r.version?r.version:2,notificationIdNull:"boolean"==typeof r.notificationIdNull&&r.notificationIdNull},this.callServer=n};gf=t,t.prototype.request=function(e,t,r,i){const o=this;let a=null;const s=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&e&&"object"==typeof e&&"function"==typeof t)i=t,a=e;else{"function"==typeof r&&(i=r,r=void 0);const o="function"==typeof i;try{a=n(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(u){if(o)return void i(u);throw u}if(!o)return a}let l;try{l=JSON.stringify(a,this.options.replacer)}catch(u){return void i(u)}return this.callServer(l,function(e,n){o.En(e,n,i)}),a},t.prototype.En=function(e,n,t){if(e)return void t(e);if(!n)return void t();let r;try{r=JSON.parse(n,this.options.reviver)}catch(i){return void t(i)}if(3!==t.length)t(null,r);else{if(Array.isArray(r)){const e=function(e){return void 0!==e.error},n=function(n){return!e(n)};return void t(null,r.filter(e),r.filter(n))}t(null,r.error,r.result)}}}();var Af;Af||(Af=1,function(e){var n=Object.prototype.hasOwnProperty,t="~";function r(){}function i(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function o(e,n,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=t?t+n:n;return e.Sn[l]?e.Sn[l].fn?e.Sn[l]=[e.Sn[l],s]:e.Sn[l].push(s):(e.Sn[l]=s,e.Cn++),e}function a(e,n){0===--e.Cn?e.Sn=new r:delete e.Sn[n]}function s(){this.Sn=new r,this.Cn=0}Object.create&&(r.prototype=/* @__PURE__ */Object.create(null),(new r).__proto__||(t=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this.Cn)return i;for(r in e=this.Sn)n.call(e,r)&&i.push(t?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var n=t?t+e:e,r=this.Sn[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var n=t?t+e:e,r=this.Sn[n];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,n,r,i,o,a){var s=t?t+e:e;if(!this.Sn[s])return!1;var l,u,c=this.Sn[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,n),!0;case 3:return c.fn.call(c.context,n,r),!0;case 4:return c.fn.call(c.context,n,r,i),!0;case 5:return c.fn.call(c.context,n,r,i,o),!0;case 6:return c.fn.call(c.context,n,r,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,n);break;case 3:c[u].fn.call(c[u].context,n,r);break;case 4:c[u].fn.call(c[u].context,n,r,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,n,t){return o(this,e,n,t,!1)},s.prototype.once=function(e,n,t){return o(this,e,n,t,!0)},s.prototype.removeListener=function(e,n,r,i){var o=t?t+e:e;if(!this.Sn[o])return this;if(!n)return a(this,o),this;var s=this.Sn[o];if(s.fn)s.fn!==n||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==n||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this.Sn[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var n;return e?(n=t?t+e:e,this.Sn[n]&&a(this,n)):(this.Sn=new r,this.Cn=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=t,s.EventEmitter=s,e.exports=s}({exports:{}}));const xf=(e,n)=>(e+(e>=0?n:-n)/Of)/n;function Ef(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Sf(e,n){const t={};for(let r of Object.keys(n))t[r]=void 0===e[r]?n[r]:e[r];return ti(t.lowS,"lowS"),ti(t.prehash,"prehash"),void 0!==t.format&&Ef(t.format),t}class Cf extends Error{constructor(e=""){super(e)}}const Tf={Err:Cf,Tn:{encode:(e,n)=>{const{Err:t}=Tf;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(1&n.length)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=ii(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const o=r>127?ii(i.length/2|128):"";return ii(e)+o+i+n},decode(e,n){const{Err:t}=Tf;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++];let o=0;if(128&i){const e=127&i;if(!e)throw new t("tlv.decode(long): indefinite length not supported");if(e>4)throw new t("tlv.decode(long): byte length is too big");const a=n.subarray(r,r+e);if(a.length!==e)throw new t("tlv.decode: length bytes not complete");if(0===a[0])throw new t("tlv.decode(long): zero leftmost byte");for(const n of a)o=o<<8|n;if(r+=e,o<128)throw new t("tlv.decode(long): not minimal encoding")}else o=i;const a=n.subarray(r,r+o);if(a.length!==o)throw new t("tlv.decode: wrong value length");return{v:a,l:n.subarray(r+o)}}},In:{encode(e){const{Err:n}=Tf;if(e<If)throw new n("integer: negative integers are not allowed");let t=ii(e);if(8&Number.parseInt(t[0],16)&&(t="00"+t),1&t.length)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=Tf;if(128&e[0])throw new n("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new n("invalid signature integer: unnecessary leading zero");return ai(e)}},toSig(e){const{Err:n,In:t,Tn:r}=Tf,i=ci("signature",e),{v:o,l:a}=r.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:s,l:l}=r.decode(2,o),{v:u,l:c}=r.decode(2,l);if(c.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(s),s:t.decode(u)}},hexFromSig(e){const{Tn:n,In:t}=Tf,r=n.encode(2,t.encode(e.r))+n.encode(2,t.encode(e.s));return n.encode(48,r)}},If=BigInt(0),Mf=BigInt(1),Of=BigInt(2),Rf=BigInt(3),Nf=BigInt(4);function Bf(e,n){const{BYTES:t}=e;let r;if("bigint"==typeof n)r=n;else{let o=ci("private key",n);try{r=e.fromBytes(o)}catch(i){throw new Error(`invalid private key: expected ui8a of size ${t}, got ${typeof n}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function Ff(e){return Uint8Array.of(e?2:3)}function Lf(e,n){return{secretKey:n.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*n.BYTES}}function Df(e,n,t={}){nn(n),bi(t,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=t.randomBytes||wn,i=t.hmac||((e,...t)=>Mr(n,e,bn(...t))),{Fp:o,Fn:a}=e,{ORDER:s,BITS:l}=a,{keygen:u,getPublicKey:c,getSharedSecret:f,utils:d,lengths:h}=function(e,n={}){const{Fn:t}=e,r=n.randomBytes||wn,i=Object.assign(Lf(e.Fp,t),{seed:Vi(t.ORDER)});function o(e){try{return!!Bf(t,e)}catch(n){return!1}}function a(e=r(i.seed)){return function(e,n,t=!1){const r=e.length,i=Hi(n),o=Vi(n);if(r<16||r<o||r>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+r);const a=Ii(t?si(e):ai(e),n-wi)+wi;return t?ui(a,i):li(a,i)}(ri(e,i.seed,"seed"),t.ORDER)}function s(n,r=!0){return e.BASE.multiply(Bf(t,n)).toBytes(r)}function l(n){if("bigint"==typeof n)return!1;if(n instanceof e)return!0;const{secretKey:r,publicKey:o,publicKeyUncompressed:a}=i;if(t.allowedLengths||r===o)return;const s=ci("key",n).length;return s===o||s===a}const u={isValidSecretKey:o,isValidPublicKey:function(n,t){const{publicKey:r,publicKeyUncompressed:o}=i;try{const i=n.length;return!(!0===t&&i!==r||!1===t&&i!==o||!e.fromBytes(n))}catch(a){return!1}},randomSecretKey:a,isValidPrivateKey:o,randomPrivateKey:a,normPrivateKeyToScalar:e=>Bf(t,e),precompute:(n=8,t=e.BASE)=>t.precompute(n,!1)};return Object.freeze({getPublicKey:s,getSharedSecret:function(n,r,i=!0){if(!0===l(n))throw new Error("first arg must be private key");if(!1===l(r))throw new Error("second arg must be public key");const o=Bf(t,n);return e.fromHex(r).multiply(o).toBytes(i)},keygen:function(e){const n=a(e);return{secretKey:n,publicKey:s(n)}},Point:e,utils:u,lengths:i})}(e,t),p={prehash:!1,lowS:"boolean"==typeof t.lowS&&t.lowS,format:void 0,extraEntropy:!1},m="compact";function b(e){return e>s>>Mf}function v(e,n){if(!a.isValidNot0(n))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return n}class y{constructor(e,n,t){this.r=v("r",e),this.s=v("s",n),null!=t&&(this.recovery=t),Object.freeze(this)}static fromBytes(e,n=m){let t;if(function(e,n){Ef(n);const t=h.signature;ri(e,"compact"===n?t:"recovered"===n?t+1:void 0,`${n} signature`)}(e,n),"der"===n){const{r:n,s:t}=Tf.toSig(ri(e));return new y(n,t)}"recovered"===n&&(t=e[0],n="compact",e=e.subarray(1));const r=a.BYTES,i=e.subarray(0,r),o=e.subarray(r,2*r);return new y(a.fromBytes(i),a.fromBytes(o),t)}static fromHex(e,n){return this.fromBytes(pn(e),n)}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(n){const t=o.ORDER,{r:r,s:i,recovery:l}=this;if(null==l||![0,1,2,3].includes(l))throw new Error("recovery id invalid");if(s*Of<t&&l>1)throw new Error("recovery id is ambiguous for h>1 curve");const u=2===l||3===l?r+s:r;if(!o.isValid(u))throw new Error("recovery id 2 or 3 invalid");const c=o.toBytes(u),f=e.fromBytes(bn(Ff(!(1&l)),c)),d=a.inv(u),h=g(ci("msgHash",n)),p=a.create(-h*d),m=a.create(i*d),b=e.BASE.multiplyUnsafe(p).add(f.multiplyUnsafe(m));if(b.is0())throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return b(this.s)}toBytes(e=m){if(Ef(e),"der"===e)return pn(Tf.hexFromSig(this));const n=a.toBytes(this.r),t=a.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return bn(Uint8Array.of(this.recovery),n,t)}return bn(n,t)}toHex(e){return dn(this.toBytes(e))}assertValidity(){}static fromCompact(e){return y.fromBytes(ci("sig",e),"compact")}static fromDER(e){return y.fromBytes(ci("sig",e),"der")}normalizeS(){return this.hasHighS()?new y(this.r,a.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return dn(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return dn(this.toBytes("compact"))}}const w=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const n=ai(e),t=8*e.length-l;return t>0?n>>BigInt(t):n},g=t.bits2int_modN||function(e){return a.create(w(e))},k=mi(l);function A(e){return hi("num < 2^"+l,e,If,k),a.toBytes(e)}function x(e,t){return ri(e,void 0,"message"),t?ri(n(e),void 0,"prehashed message"):e}return Object.freeze({keygen:u,getPublicKey:c,getSharedSecret:f,utils:d,lengths:h,Point:e,sign:function(t,o,s={}){t=ci("message",t);const{seed:l,k2sig:u}=function(n,t,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:o,prehash:s,extraEntropy:l}=Sf(i,p);n=x(n,s);const u=g(n),c=Bf(a,t),f=[A(c),A(u)];if(null!=l&&!1!==l){const e=!0===l?r(h.secretKey):l;f.push(ci("extraEntropy",e))}const d=bn(...f),m=u;return{seed:d,k2sig:function(n){const t=w(n);if(!a.isValidNot0(t))return;const r=a.inv(t),i=e.BASE.multiply(t).toAffine(),s=a.create(i.x);if(s===If)return;const l=a.create(r*a.create(m+s*c));if(l===If)return;let u=(i.x===s?0:2)|Number(i.y&Mf),f=l;return o&&b(l)&&(f=a.neg(l),u^=1),new y(s,f,u)}}}(t,o,s),c=function(e,n,t){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");if("function"!=typeof t)throw new Error("hmacFn must be a function");const r=e=>new Uint8Array(e),i=e=>Uint8Array.of(e);let o=r(e),a=r(e),s=0;const l=()=>{o.fill(1),a.fill(0),s=0},u=(...e)=>t(a,o,...e),c=(e=r(0))=>{a=u(i(0),e),o=u(),0!==e.length&&(a=u(i(1),e),o=u())},f=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const t=[];for(;e<n;){o=u();const n=o.slice();t.push(n),e+=o.length}return bn(...t)};return(e,n)=>{let t;for(l(),c(e);!(t=n(f()));)c();return l(),t}}(n.outputLen,a.BYTES,i);return c(l,u)},verify:function(n,t,r,i={}){const{lowS:o,prehash:s,format:l}=Sf(i,p);if(r=ci("publicKey",r),t=x(ci("message",t),s),"strict"in i)throw new Error("options.strict was renamed to lowS");const u=void 0===l?function(e){let n;const t="string"==typeof e||_e(e),r=!t&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!t&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)n=new y(e.r,e.s);else if(t){try{n=y.fromBytes(ci("sig",e),"der")}catch(i){if(!(i instanceof Tf.Err))throw i}if(!n)try{n=y.fromBytes(ci("sig",e),"compact")}catch(o){return!1}}return n||!1}(n):y.fromBytes(ci("sig",n),l);if(!1===u)return!1;try{const n=e.fromBytes(r);if(o&&u.hasHighS())return!1;const{r:i,s:s}=u,l=g(t),c=a.inv(s),f=a.create(l*c),d=a.create(i*c),h=e.BASE.multiplyUnsafe(f).add(n.multiplyUnsafe(d));return!h.is0()&&a.create(h.x)===i}catch(c){return!1}},recoverPublicKey:function(e,n,t={}){const{prehash:r}=Sf(t,p);return n=x(n,r),y.fromBytes(e,"recovered").recoverPublicKey(n).toBytes()},Signature:y,hash:n})}function Uf(e){const{CURVE:n,curveOpts:t,hash:r,ecdsaOpts:i}=function(e){const{CURVE:n,curveOpts:t}=function(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:n,curveOpts:{Fp:t,Fn:ji(n.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,hash:e.hash,ecdsaOpts:r}}(e);return function(e,n){const t=n.Point;return Object.assign({},n,{ProjectivePoint:t,CURVE:Object.assign({},e,Pi(t.Fn.ORDER,t.Fn.BITS))})}(e,Df(function(e,n={}){const t=to("weierstrass",e,n),{Fp:r,Fn:i}=t;let o=t.CURVE;const{h:a,n:s}=o;bi(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=n;if(l&&(!r.is0(o.a)||"bigint"!=typeof l.beta||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const u=Lf(r,i);function c(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const f=n.toBytes||function(e,n,t){const{x:i,y:o}=n.toAffine(),a=r.toBytes(i);return ti(t,"isCompressed"),t?(c(),bn(Ff(!r.isOdd(o)),a)):bn(Uint8Array.of(4),a,r.toBytes(o))},d=n.fromBytes||function(e){ri(e,void 0,"Point");const{publicKey:n,publicKeyUncompressed:t}=u,i=e.length,o=e[0],a=e.subarray(1);if(i!==n||2!==o&&3!==o){if(i===t&&4===o){const e=r.BYTES,n=r.fromBytes(a.subarray(0,e)),t=r.fromBytes(a.subarray(e,2*e));if(!p(n,t))throw new Error("bad point: is not on curve");return{x:n,y:t}}throw new Error(`bad point: got length ${i}, expected compressed=${n} or uncompressed=${t}`)}{const e=r.fromBytes(a);if(!r.isValid(e))throw new Error("bad point: is not on curve, wrong x");const n=h(e);let t;try{t=r.sqrt(n)}catch(s){const e=s instanceof Error?": "+s.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}return c(),!(1&~o)!==r.isOdd(t)&&(t=r.neg(t)),{x:e,y:t}}};function h(e){const n=r.sqr(e),t=r.mul(n,e);return r.add(r.add(t,r.mul(e,o.a)),o.b)}function p(e,n){const t=r.sqr(n),i=h(e);return r.eql(t,i)}if(!p(o.Gx,o.Gy))throw new Error("bad curve params: generator point");const m=r.mul(r.pow(o.a,Rf),Nf),b=r.mul(r.sqr(o.b),BigInt(27));if(r.is0(r.add(m,b)))throw new Error("bad curve params: a or b");function v(e,n,t=!1){if(!r.isValid(n)||t&&r.is0(n))throw new Error(`bad point coordinate ${e}`);return n}function y(e){if(!(e instanceof x))throw new Error("ProjectivePoint expected")}function w(e){if(!l||!l.basises)throw new Error("no endo");return function(e,n,t){const[[r,i],[o,a]]=n,s=xf(a*e,t),l=xf(-i*e,t);let u=e-s*r-l*o,c=-s*i-l*a;const f=u<If,d=c<If;f&&(u=-u),d&&(c=-c);const h=mi(Math.ceil(pi(t)/2))+Mf;if(u<If||u>=h||c<If||c>=h)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:u,k2neg:d,k2:c}}(e,l.basises,i.ORDER)}const g=vi((e,n)=>{const{X:t,Y:i,Z:o}=e;if(r.eql(o,r.ONE))return{x:t,y:i};const a=e.is0();null==n&&(n=a?r.ONE:r.inv(o));const s=r.mul(t,n),l=r.mul(i,n),u=r.mul(o,n);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:s,y:l}}),k=vi(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:t,y:i}=e.toAffine();if(!r.isValid(t)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!p(t,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function A(e,n,t,i,o){return t=new x(r.mul(t.X,e),t.Y,t.Z),n=qi(i,n),t=qi(o,t),n.add(t)}class x{constructor(e,n,t){this.X=v("x",e),this.Y=v("y",n,!0),this.Z=v("z",t),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){const{x:n,y:t}=e||{};if(!e||!r.isValid(n)||!r.isValid(t))throw new Error("invalid affine point");if(e instanceof x)throw new Error("projective point not allowed");return r.is0(n)&&r.is0(t)?x.ZERO:new x(n,t,r.ONE)}static fromBytes(e){const n=x.fromAffine(d(ri(e,void 0,"point")));return n.assertValidity(),n}static fromHex(e){return x.fromBytes(ci("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,n=!0){return S.createCache(this,e),n||this.multiply(Rf),this}assertValidity(){k(this)}hasEvenY(){const{y:e}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(e)}equals(e){y(e);const{X:n,Y:t,Z:i}=this,{X:o,Y:a,Z:s}=e,l=r.eql(r.mul(n,s),r.mul(o,i)),u=r.eql(r.mul(t,s),r.mul(a,i));return l&&u}negate(){return new x(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:n}=o,t=r.mul(n,Rf),{X:i,Y:a,Z:s}=this;let l=r.ZERO,u=r.ZERO,c=r.ZERO,f=r.mul(i,i),d=r.mul(a,a),h=r.mul(s,s),p=r.mul(i,a);return p=r.add(p,p),c=r.mul(i,s),c=r.add(c,c),l=r.mul(e,c),u=r.mul(t,h),u=r.add(l,u),l=r.sub(d,u),u=r.add(d,u),u=r.mul(l,u),l=r.mul(p,l),c=r.mul(t,c),h=r.mul(e,h),p=r.sub(f,h),p=r.mul(e,p),p=r.add(p,c),c=r.add(f,f),f=r.add(c,f),f=r.add(f,h),f=r.mul(f,p),u=r.add(u,f),h=r.mul(a,s),h=r.add(h,h),f=r.mul(h,p),l=r.sub(l,f),c=r.mul(h,d),c=r.add(c,c),c=r.add(c,c),new x(l,u,c)}add(e){y(e);const{X:n,Y:t,Z:i}=this,{X:a,Y:s,Z:l}=e;let u=r.ZERO,c=r.ZERO,f=r.ZERO;const d=o.a,h=r.mul(o.b,Rf);let p=r.mul(n,a),m=r.mul(t,s),b=r.mul(i,l),v=r.add(n,t),w=r.add(a,s);v=r.mul(v,w),w=r.add(p,m),v=r.sub(v,w),w=r.add(n,i);let g=r.add(a,l);return w=r.mul(w,g),g=r.add(p,b),w=r.sub(w,g),g=r.add(t,i),u=r.add(s,l),g=r.mul(g,u),u=r.add(m,b),g=r.sub(g,u),f=r.mul(d,w),u=r.mul(h,b),f=r.add(u,f),u=r.sub(m,f),f=r.add(m,f),c=r.mul(u,f),m=r.add(p,p),m=r.add(m,p),b=r.mul(d,b),w=r.mul(h,w),m=r.add(m,b),b=r.sub(p,b),b=r.mul(d,b),w=r.add(w,b),p=r.mul(m,w),c=r.add(c,p),p=r.mul(g,w),u=r.mul(v,u),u=r.sub(u,p),p=r.mul(v,m),f=r.mul(g,f),f=r.add(f,p),new x(u,c,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}multiply(e){const{endo:t}=n;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,o;const a=e=>S.cached(this,e,e=>Gi(x,e));if(t){const{k1neg:n,k1:i,k2neg:s,k2:l}=w(e),{p:u,f:c}=a(i),{p:f,f:d}=a(l);o=c.add(d),r=A(t.beta,u,f,n,s)}else{const{p:n,f:t}=a(e);r=n,o=t}return Gi(x,[r,o])[0]}multiplyUnsafe(e){const{endo:t}=n,r=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===If||r.is0())return x.ZERO;if(e===Mf)return r;if(S.hasCache(this))return this.multiply(e);if(t){const{k1neg:n,k1:i,k2neg:o,k2:a}=w(e),{p1:s,p2:l}=function(e,n,t,r){let i=n,o=e.ZERO,a=e.ZERO;for(;t>zi||r>zi;)t&Wi&&(o=o.add(i)),r&Wi&&(a=a.add(i)),i=i.double(),t>>=Wi,r>>=Wi;return{p1:o,p2:a}}(x,r,i,a);return A(t.beta,s,l,n,o)}return S.unsafe(r,e)}multiplyAndAddUnsafe(e,n,t){const r=this.multiplyUnsafe(n).add(e.multiplyUnsafe(t));return r.is0()?void 0:r}toAffine(e){return g(this,e)}isTorsionFree(){const{isTorsionFree:e}=n;return a===Mf||(e?e(x,this):S.unsafe(this,s).is0())}clearCofactor(){const{clearCofactor:e}=n;return a===Mf?this:e?e(x,this):this.multiplyUnsafe(a)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}toBytes(e=!0){return ti(e,"isCompressed"),this.assertValidity(),f(x,this,e)}toHex(e=!0){return dn(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}De(e){this.precompute(e)}static normalizeZ(e){return Gi(x,e)}static msm(e,n){return eo(x,i,e,n)}static fromPrivateKey(e){return x.BASE.multiply(Bf(i,e))}}x.BASE=new x(o.Gx,o.Gy,r.ONE),x.ZERO=new x(r.ZERO,r.ONE,r.ZERO),x.Fp=r,x.Fn=i;const E=i.BITS,S=new $i(x,n.endo?Math.ceil(E/2):E);return x.BASE.precompute(8),x}(n,t),r,i))}const Pf={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},jf={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Hf=/* @__PURE__ */BigInt(2),Vf=ji(Pf.p,{sqrt:function(e){const n=Pf.p,t=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),l=BigInt(88),u=e*e*e%n,c=u*u*e%n,f=Mi(c,t,n)*c%n,d=Mi(f,t,n)*c%n,h=Mi(d,Hf,n)*u%n,p=Mi(h,i,n)*h%n,m=Mi(p,o,n)*p%n,b=Mi(m,s,n)*m%n,v=Mi(b,l,n)*b%n,y=Mi(v,s,n)*m%n,w=Mi(y,t,n)*c%n,g=Mi(w,a,n)*p%n,k=Mi(g,r,n)*u%n,A=Mi(k,Hf,n);if(!Vf.eql(Vf.sqr(A),e))throw new Error("Cannot find square root");return A}}),zf=function(e){const n=n=>Uf({...e,hash:n});return{...n(ur),create:n}}({...Pf,Fp:Vf,lowS:!0,endo:jf});function Wf(e){try{return go.ExtendedPoint.fromHex(e),!0}catch{return!1}}go.utils.randomPrivateKey,go.getPublicKey,go.verify;class qf{constructor(e){Object.assign(this,e)}encode(){return $r.Buffer.from(Xo.serialize(Gf,this))}static decode(e){return Xo.deserialize(Gf,this,e)}static decodeUnchecked(e){return Xo.deserializeUnchecked(Gf,this,e)}}const Gf=/* @__PURE__ */new Map;var Yf;let Jf=1;class Kf extends qf{constructor(e){if(super({}),this.Mn=void 0,function(e){return void 0!==e.Mn}(e))this.Mn=e.Mn;else{if("string"==typeof e){const n=Fo.decode(e);if(32!=n.length)throw new Error("Invalid public key input");this.Mn=new Co(n)}else this.Mn=new Co(e);if(this.Mn.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new Kf(Jf);return Jf+=1,new Kf(e.toBuffer())}equals(e){return this.Mn.eq(e.Mn)}toBase58(){return Fo.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this.Mn.toArrayLike($r.Buffer);if(32===e.length)return e;const n=$r.Buffer.alloc(32);return e.copy(n,32-e.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,n,t){const r=$r.Buffer.concat([e.toBuffer(),$r.Buffer.from(n),t.toBuffer()]),i=fr(r);return new Kf(i)}static createProgramAddressSync(e,n){let t=$r.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var n;t=$r.Buffer.concat([t,(n=e,$r.Buffer.isBuffer(n)?n:n instanceof Uint8Array?$r.Buffer.from(n.buffer,n.byteOffset,n.byteLength):$r.Buffer.from(n))])}),t=$r.Buffer.concat([t,n.toBuffer(),$r.Buffer.from("ProgramDerivedAddress")]);const r=fr(t);if(Wf(r))throw new Error("Invalid seeds, address must fall off the curve");return new Kf(r)}static async createProgramAddress(e,n){return this.createProgramAddressSync(e,n)}static findProgramAddressSync(e,n){let t,r=255;for(;0!=r;){try{const i=e.concat($r.Buffer.from([r]));t=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[t,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,n){return this.findProgramAddressSync(e,n)}static isOnCurve(e){return Wf(new Kf(e).toBytes())}}Yf=Kf,Kf.default=new Yf("11111111111111111111111111111111"),Gf.set(Kf,{kind:"struct",fields:[["_bn","u256"]]}),new Kf("BPFLoader1111111111111111111111111111111111");const Xf=(e="publicKey")=>Zo.blob(32,e),Qf=(e="string")=>{const n=Zo.struct([Zo.u32("length"),Zo.u32("lengthPadding"),Zo.blob(Zo.offset(Zo.u32(),-8),"chars")],e),t=n.decode.bind(n),r=n.encode.bind(n),i=n;return i.decode=(e,n)=>t(e,n).chars.toString(),i.encode=(e,n,t)=>{const i={chars:$r.Buffer.from(e,"utf8")};return r(i,n,t)},i.alloc=e=>Zo.u32().span+Zo.u32().span+$r.Buffer.from(e,"utf8").length,i};$r.Buffer.alloc(64).fill(0),new Kf("SysvarC1ock11111111111111111111111111111111"),new Kf("SysvarEpochSchedu1e111111111111111111111111"),new Kf("Sysvar1nstructions1111111111111111111111111"),new Kf("SysvarRecentB1ockHashes11111111111111111111"),new Kf("SysvarRent111111111111111111111111111111111"),new Kf("SysvarRewards111111111111111111111111111111"),new Kf("SysvarS1otHashes111111111111111111111111111"),new Kf("SysvarS1otHistory11111111111111111111111111"),new Kf("SysvarStakeHistory1111111111111111111111111");const Zf=Zo.nu64("lamportsPerSignature");function _f(e){const n=Zo.blob(8,e),t=n.decode.bind(n),r=n.encode.bind(n),i=n,o=vc();return i.decode=(e,n)=>{const r=t(e,n);return o.decode(r)},i.encode=(e,n,t)=>{const i=o.encode(e);return r(i,n,t)},i}Zo.struct([Zo.u32("version"),Zo.u32("state"),Xf("authorizedPubkey"),Xf("nonce"),Zo.struct([Zf],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("lamports"),Zo.ns64("space"),Xf("programId")])},Assign:{index:1,layout:Zo.struct([Zo.u32("instruction"),Xf("programId")])},Transfer:{index:2,layout:Zo.struct([Zo.u32("instruction"),_f("lamports")])},CreateWithSeed:{index:3,layout:Zo.struct([Zo.u32("instruction"),Xf("base"),Qf("seed"),Zo.ns64("lamports"),Zo.ns64("space"),Xf("programId")])},AdvanceNonceAccount:{index:4,layout:Zo.struct([Zo.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:Zo.struct([Zo.u32("instruction"),Xf("authorized")])},AuthorizeNonceAccount:{index:7,layout:Zo.struct([Zo.u32("instruction"),Xf("authorized")])},Allocate:{index:8,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("space")])},AllocateWithSeed:{index:9,layout:Zo.struct([Zo.u32("instruction"),Xf("base"),Qf("seed"),Zo.ns64("space"),Xf("programId")])},AssignWithSeed:{index:10,layout:Zo.struct([Zo.u32("instruction"),Xf("base"),Qf("seed"),Xf("programId")])},TransferWithSeed:{index:11,layout:Zo.struct([Zo.u32("instruction"),_f("lamports"),Qf("seed"),Xf("programId")])},UpgradeNonceAccount:{index:12,layout:Zo.struct([Zo.u32("instruction")])}}),new Kf("11111111111111111111111111111111"),new Kf("BPFLoader2111111111111111111111111111111111"),Zo.struct([Zo.u32("typeIndex"),_f("deactivationSlot"),Zo.nu64("lastExtendedSlot"),Zo.u8("lastExtendedStartIndex"),Zo.u8(),Zo.seq(Xf(),Zo.offset(Zo.u8(),-1),"authority")]);const $f=Wc(Nc(Kf),Pc(),e=>new Kf(e)),ed=jc([Pc(),Bc("base64")]),nd=Wc(Nc($r.Buffer),ed,e=>$r.Buffer.from(e[0],"base64"));function td(e){return Vc([Hc({jsonrpc:Bc("2.0"),id:Pc(),result:e}),Hc({jsonrpc:Bc("2.0"),id:Pc(),error:Hc({code:zc(),message:Pc(),data:Dc(Mc("any",()=>!0))})})])}const rd=td(zc());function id(e){return Wc(td(e),rd,n=>"error"in n?n:{...n,result:Cc(n.result,e)})}function od(e){return id(Hc({context:Hc({slot:Lc()}),value:e}))}function ad(e){return Hc({context:Hc({slot:Lc()}),value:e})}const sd=Hc({foundation:Lc(),foundationTerm:Lc(),initial:Lc(),taper:Lc(),terminal:Lc()});id(Oc(Fc(Hc({epoch:Lc(),effectiveSlot:Lc(),amount:Lc(),postBalance:Lc(),commission:Dc(Fc(Lc()))}))));const ld=Oc(Hc({slot:Lc(),prioritizationFee:Lc()})),ud=Hc({total:Lc(),validator:Lc(),foundation:Lc(),epoch:Lc()}),cd=Hc({epoch:Lc(),slotIndex:Lc(),slotsInEpoch:Lc(),absoluteSlot:Lc(),blockHeight:Dc(Lc()),transactionCount:Dc(Lc())}),fd=Hc({slotsPerEpoch:Lc(),leaderScheduleSlotOffset:Lc(),warmup:Rc(),firstNormalEpoch:Lc(),firstNormalSlot:Lc()}),dd=Uc(Pc(),Oc(Lc())),hd=Fc(Vc([Hc({}),Pc()])),pd=Hc({err:hd}),md=Bc("receivedSignature");Hc({"solana-core":Pc(),"feature-set":Dc(Lc())});const bd=Hc({program:Pc(),programId:$f,parsed:zc()}),vd=Hc({programId:$f,accounts:Oc($f),data:Pc()});od(Hc({err:Fc(Vc([Hc({}),Pc()])),logs:Fc(Oc(Pc())),accounts:Dc(Fc(Oc(Fc(Hc({executable:Rc(),owner:Pc(),lamports:Lc(),data:Oc(Pc()),rentEpoch:Dc(Lc())}))))),unitsConsumed:Dc(Lc()),returnData:Dc(Fc(Hc({programId:Pc(),data:jc([Pc(),Bc("base64")])}))),innerInstructions:Dc(Fc(Oc(Hc({index:Lc(),instructions:Oc(Vc([bd,vd]))}))))})),od(Hc({byIdentity:Uc(Pc(),Oc(Lc())),range:Hc({firstSlot:Lc(),lastSlot:Lc()})})),id(sd),id(ud),id(ld),id(cd),id(fd),id(dd),id(Lc()),od(Hc({total:Lc(),circulating:Lc(),nonCirculating:Lc(),nonCirculatingAccounts:Oc($f)}));const yd=Hc({amount:Pc(),uiAmount:Fc(Lc()),decimals:Lc(),uiAmountString:Dc(Pc())});od(Oc(Hc({address:$f,amount:Pc(),uiAmount:Fc(Lc()),decimals:Lc(),uiAmountString:Dc(Pc())}))),od(Oc(Hc({pubkey:$f,account:Hc({executable:Rc(),owner:$f,lamports:Lc(),data:nd,rentEpoch:Lc()})})));const wd=Hc({program:Pc(),parsed:zc(),space:Lc()});od(Oc(Hc({pubkey:$f,account:Hc({executable:Rc(),owner:$f,lamports:Lc(),data:wd,rentEpoch:Lc()})}))),od(Oc(Hc({lamports:Lc(),address:$f})));const gd=Hc({executable:Rc(),owner:$f,lamports:Lc(),data:nd,rentEpoch:Lc()});Hc({pubkey:$f,account:gd});const kd=Wc(Vc([Nc($r.Buffer),wd]),Vc([ed,wd]),e=>Array.isArray(e)?Cc(e,nd):e),Ad=Hc({executable:Rc(),owner:$f,lamports:Lc(),data:kd,rentEpoch:Lc()});Hc({pubkey:$f,account:Ad}),Hc({state:Vc([Bc("active"),Bc("inactive"),Bc("activating"),Bc("deactivating")]),active:Lc(),inactive:Lc()}),id(Oc(Hc({signature:Pc(),slot:Lc(),err:hd,memo:Fc(Pc()),blockTime:Dc(Fc(Lc()))}))),id(Oc(Hc({signature:Pc(),slot:Lc(),err:hd,memo:Fc(Pc()),blockTime:Dc(Fc(Lc()))}))),Hc({subscription:Lc(),result:ad(gd)});const xd=Hc({pubkey:$f,account:gd});Hc({subscription:Lc(),result:ad(xd)});const Ed=Hc({parent:Lc(),slot:Lc(),root:Lc()});Hc({subscription:Lc(),result:Ed});const Sd=Vc([Hc({type:Vc([Bc("firstShredReceived"),Bc("completed"),Bc("optimisticConfirmation"),Bc("root")]),slot:Lc(),timestamp:Lc()}),Hc({type:Bc("createdBank"),parent:Lc(),slot:Lc(),timestamp:Lc()}),Hc({type:Bc("frozen"),slot:Lc(),timestamp:Lc(),stats:Hc({numTransactionEntries:Lc(),numSuccessfulTransactions:Lc(),numFailedTransactions:Lc(),maxTransactionsPerEntry:Lc()})}),Hc({type:Bc("dead"),slot:Lc(),timestamp:Lc(),err:Pc()})]);Hc({subscription:Lc(),result:Sd}),Hc({subscription:Lc(),result:ad(Vc([pd,md]))}),Hc({subscription:Lc(),result:Lc()}),Hc({pubkey:Pc(),gossip:Fc(Pc()),tpu:Fc(Pc()),rpc:Fc(Pc()),version:Fc(Pc())});const Cd=Hc({votePubkey:Pc(),nodePubkey:Pc(),activatedStake:Lc(),epochVoteAccount:Rc(),epochCredits:Oc(jc([Lc(),Lc(),Lc()])),commission:Lc(),lastVote:Lc(),rootSlot:Fc(Lc())});id(Hc({current:Oc(Cd),delinquent:Oc(Cd)}));const Td=Vc([Bc("processed"),Bc("confirmed"),Bc("finalized")]),Id=Hc({slot:Lc(),confirmations:Fc(Lc()),err:hd,confirmationStatus:Dc(Td)});od(Oc(Fc(Id))),id(Lc());const Md=Hc({accountKey:$f,writableIndexes:Oc(Lc()),readonlyIndexes:Oc(Lc())}),Od=Hc({signatures:Oc(Pc()),message:Hc({accountKeys:Oc(Pc()),header:Hc({numRequiredSignatures:Lc(),numReadonlySignedAccounts:Lc(),numReadonlyUnsignedAccounts:Lc()}),instructions:Oc(Hc({accounts:Oc(Lc()),data:Pc(),programIdIndex:Lc()})),recentBlockhash:Pc(),addressTableLookups:Dc(Oc(Md))})}),Rd=Hc({pubkey:$f,signer:Rc(),writable:Rc(),source:Dc(Vc([Bc("transaction"),Bc("lookupTable")]))}),Nd=Hc({accountKeys:Oc(Rd),signatures:Oc(Pc())}),Bd=Hc({parsed:zc(),program:Pc(),programId:$f}),Fd=Hc({accounts:Oc($f),data:Pc(),programId:$f}),Ld=Wc(Vc([Fd,Bd]),Vc([Hc({parsed:zc(),program:Pc(),programId:Pc()}),Hc({accounts:Oc(Pc()),data:Pc(),programId:Pc()})]),e=>Cc(e,"accounts"in e?Fd:Bd)),Dd=Hc({signatures:Oc(Pc()),message:Hc({accountKeys:Oc(Rd),instructions:Oc(Ld),recentBlockhash:Pc(),addressTableLookups:Dc(Fc(Oc(Md)))})}),Ud=Hc({accountIndex:Lc(),mint:Pc(),owner:Dc(Pc()),programId:Dc(Pc()),uiTokenAmount:yd}),Pd=Hc({writable:Oc($f),readonly:Oc($f)}),jd=Hc({err:hd,fee:Lc(),innerInstructions:Dc(Fc(Oc(Hc({index:Lc(),instructions:Oc(Hc({accounts:Oc(Lc()),data:Pc(),programIdIndex:Lc()}))})))),preBalances:Oc(Lc()),postBalances:Oc(Lc()),logMessages:Dc(Fc(Oc(Pc()))),preTokenBalances:Dc(Fc(Oc(Ud))),postTokenBalances:Dc(Fc(Oc(Ud))),loadedAddresses:Dc(Pd),computeUnitsConsumed:Dc(Lc()),costUnits:Dc(Lc())}),Hd=Hc({err:hd,fee:Lc(),innerInstructions:Dc(Fc(Oc(Hc({index:Lc(),instructions:Oc(Ld)})))),preBalances:Oc(Lc()),postBalances:Oc(Lc()),logMessages:Dc(Fc(Oc(Pc()))),preTokenBalances:Dc(Fc(Oc(Ud))),postTokenBalances:Dc(Fc(Oc(Ud))),loadedAddresses:Dc(Pd),computeUnitsConsumed:Dc(Lc()),costUnits:Dc(Lc())}),Vd=Vc([Bc(0),Bc("legacy")]),zd=Hc({pubkey:Pc(),lamports:Lc(),postBalance:Fc(Lc()),rewardType:Fc(Pc()),commission:Dc(Fc(Lc()))});id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),transactions:Oc(Hc({transaction:Od,meta:Fc(jd),version:Dc(Vd)})),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),transactions:Oc(Hc({transaction:Nd,meta:Fc(jd),version:Dc(Vd)})),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),transactions:Oc(Hc({transaction:Dd,meta:Fc(Hd),version:Dc(Vd)})),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),transactions:Oc(Hc({transaction:Nd,meta:Fc(Hd),version:Dc(Vd)})),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),rewards:Dc(Oc(zd)),blockTime:Fc(Lc()),blockHeight:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),transactions:Oc(Hc({transaction:Od,meta:Fc(jd)})),rewards:Dc(Oc(zd)),blockTime:Fc(Lc())}))),id(Fc(Hc({blockhash:Pc(),previousBlockhash:Pc(),parentSlot:Lc(),signatures:Oc(Pc()),blockTime:Fc(Lc())}))),id(Fc(Hc({slot:Lc(),meta:Fc(jd),blockTime:Dc(Fc(Lc())),transaction:Od,version:Dc(Vd)}))),id(Fc(Hc({slot:Lc(),transaction:Dd,meta:Fc(Hd),blockTime:Dc(Fc(Lc())),version:Dc(Vd)}))),od(Hc({blockhash:Pc(),lastValidBlockHeight:Lc()})),od(Rc()),id(Oc(Hc({slot:Lc(),numTransactions:Lc(),numSlots:Lc(),samplePeriodSecs:Lc()}))),od(Fc(Hc({feeCalculator:Hc({lamportsPerSignature:Lc()})}))),id(Pc()),id(Pc());const Wd=Hc({err:hd,logs:Oc(Pc()),signature:Pc()});var qd;Hc({result:ad(Wd),subscription:Lc()}),Object.freeze({CreateLookupTable:{index:0,layout:Zo.struct([Zo.u32("instruction"),_f("recentSlot"),Zo.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:Zo.struct([Zo.u32("instruction")])},ExtendLookupTable:{index:2,layout:Zo.struct([Zo.u32("instruction"),_f(),Zo.seq(Xf(),Zo.offset(Zo.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Zo.struct([Zo.u32("instruction")])},CloseLookupTable:{index:4,layout:Zo.struct([Zo.u32("instruction")])}}),new Kf("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:Zo.struct([Zo.u8("instruction"),Zo.u32("units"),Zo.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:Zo.struct([Zo.u8("instruction"),Zo.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:Zo.struct([Zo.u8("instruction"),Zo.u32("units")])},SetComputeUnitPrice:{index:3,layout:Zo.struct([Zo.u8("instruction"),_f("microLamports")])}}),new Kf("ComputeBudget111111111111111111111111111111"),Zo.struct([Zo.u8("numSignatures"),Zo.u8("padding"),Zo.u16("signatureOffset"),Zo.u16("signatureInstructionIndex"),Zo.u16("publicKeyOffset"),Zo.u16("publicKeyInstructionIndex"),Zo.u16("messageDataOffset"),Zo.u16("messageDataSize"),Zo.u16("messageInstructionIndex")]),new Kf("Ed25519SigVerify111111111111111111111111111"),zf.utils.isValidPrivateKey,Zo.struct([Zo.u8("numSignatures"),Zo.u16("signatureOffset"),Zo.u8("signatureInstructionIndex"),Zo.u16("ethAddressOffset"),Zo.u8("ethAddressInstructionIndex"),Zo.u16("messageDataOffset"),Zo.u16("messageDataSize"),Zo.u8("messageInstructionIndex"),Zo.blob(20,"ethAddress"),Zo.blob(64,"signature"),Zo.u8("recoveryId")]),new Kf("KeccakSecp256k11111111111111111111111111111"),new Kf("StakeConfig11111111111111111111111111111111");class Gd{constructor(e,n,t){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=n,this.custodian=t}}qd=Gd,Gd.default=new qd(0,0,Kf.default),Object.freeze({Initialize:{index:0,layout:Zo.struct([Zo.u32("instruction"),((e="authorized")=>Zo.struct([Xf("staker"),Xf("withdrawer")],e))(),((e="lockup")=>Zo.struct([Zo.ns64("unixTimestamp"),Zo.ns64("epoch"),Xf("custodian")],e))()])},Authorize:{index:1,layout:Zo.struct([Zo.u32("instruction"),Xf("newAuthorized"),Zo.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:Zo.struct([Zo.u32("instruction")])},Split:{index:3,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("lamports")])},Withdraw:{index:4,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("lamports")])},Deactivate:{index:5,layout:Zo.struct([Zo.u32("instruction")])},Merge:{index:7,layout:Zo.struct([Zo.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:Zo.struct([Zo.u32("instruction"),Xf("newAuthorized"),Zo.u32("stakeAuthorizationType"),Qf("authoritySeed"),Xf("authorityOwner")])}}),new Kf("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:Zo.struct([Zo.u32("instruction"),((e="voteInit")=>Zo.struct([Xf("nodePubkey"),Xf("authorizedVoter"),Xf("authorizedWithdrawer"),Zo.u8("commission")],e))()])},Authorize:{index:1,layout:Zo.struct([Zo.u32("instruction"),Xf("newAuthorized"),Zo.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:Zo.struct([Zo.u32("instruction"),Zo.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:Zo.struct([Zo.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:Zo.struct([Zo.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>Zo.struct([Zo.u32("voteAuthorizationType"),Xf("currentAuthorityDerivedKeyOwnerPubkey"),Qf("currentAuthorityDerivedKeySeed"),Xf("newAuthorized")],e))()])}}),new Kf("Vote111111111111111111111111111111111111111"),new Kf("Va1idator1nfo111111111111111111111111111111"),Hc({name:Pc(),website:Dc(Pc()),details:Dc(Pc()),iconUrl:Dc(Pc()),keybaseUsername:Dc(Pc())}),new Kf("Vote111111111111111111111111111111111111111"),Zo.struct([Xf("nodePubkey"),Xf("authorizedWithdrawer"),Zo.u8("commission"),Zo.nu64(),Zo.seq(Zo.struct([Zo.nu64("slot"),Zo.u32("confirmationCount")]),Zo.offset(Zo.u32(),-8),"votes"),Zo.u8("rootSlotValid"),Zo.nu64("rootSlot"),Zo.nu64(),Zo.seq(Zo.struct([Zo.nu64("epoch"),Xf("authorizedVoter")]),Zo.offset(Zo.u32(),-8),"authorizedVoters"),Zo.struct([Zo.seq(Zo.struct([Xf("authorizedPubkey"),Zo.nu64("epochOfLastAuthorizedSwitch"),Zo.nu64("targetEpoch")]),32,"buf"),Zo.nu64("idx"),Zo.u8("isEmpty")],"priorVoters"),Zo.nu64(),Zo.seq(Zo.struct([Zo.nu64("epoch"),Zo.nu64("credits"),Zo.nu64("prevCredits")]),Zo.offset(Zo.u32(),-8),"epochCredits"),Zo.struct([Zo.nu64("slot"),Zo.nu64("timestamp")],"lastTimestamp")]);const Yd=e=>{const n=/* @__PURE__ */new Date,t=new Date(n);t.setDate(t.getDate()-1);const r=new Date(e);return r.setHours(0,0,0,0),n.setHours(0,0,0,0),t.setHours(0,0,0,0),r.getTime()===n.getTime()?"Today":r.getTime()===t.getTime()?"Yesterday":r.toLocaleDateString("en-US",{month:"short",day:"numeric",year:r.getFullYear()!==n.getFullYear()?"numeric":void 0})},Jd=e=>new Promise(n=>setTimeout(n,e||0)),Kd=(e,n=5,t=5)=>(e=e||"",e?.length<=n+t?e:`${e.substr(0,n)}...${e.substr(e.length-t,t)}`),Xd=e=>{if(!e)return"";const n=qr[e];return n?n.chainTypeMoralis:""},Qd=e=>{if(!e)return"";const n=qr[e];return n?n.chainType:""},Zd={getItem(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,n){if("undefined"!=typeof window)try{window.localStorage.setItem(e,n)}catch{}},removeItem(e){if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}},get length(){if("undefined"==typeof window)return 0;try{return window.localStorage.length}catch{return 0}},key(e){if("undefined"==typeof window)return null;try{return window.localStorage.key(e)}catch{return null}}};function _d(e){if(qn(e))return!0;try{return new Kf(e),!0}catch{return!1}}const $d=j.createContext(void 0),eh=()=>{const e=j.useContext($d);if(!e)throw new Error("useConnect must be used within ConnectProvider");return{...e,chainData:qr[e?.account?.chainId]||void 0,chainId:e.account?.chainId||void 0,chainType:Qd(e.account?.chainId||void 0),chainTypeMoralis:Xd(e.account?.chainId||void 0),isChainSupported:!!qr[e?.account?.chainId]?.isSupported||!1}},nh=({children:e,initialAccount:n})=>/* @__PURE__ */g.jsx($d.Provider,{value:{account:n||null},children:e}),th=({address:e,chainId:n})=>{const[t,r]=j.useState(!1),{isChainSupported:i}=eh(),o=j.useCallback(()=>{if(!e)return;const n=e,t=()=>{r(!0),setTimeout(()=>r(!1),2e3)};try{navigator.clipboard.writeText(n).then(t).catch(()=>{const e=document.createElement("input");e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),t()})}catch{const e=document.createElement("input");e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove(),t()}},[e]);/* @__PURE__ */
6
+ return g.jsx(g.Fragment,{children:_d(e||"")&&/* @__PURE__ */g.jsxs("div",{className:"chat-user-info",children:[
7
+ /* @__PURE__ */g.jsxs("span",{className:"user-wallet",children:[
8
+ /* @__PURE__ */g.jsxs("span",{className:"mr-2",children:[qr[n]?.customName||qr[n]?.name||`Chain ${n}`,":"]}),
9
+ /* @__PURE__ */g.jsx("a",{style:{pointerEvents:i?"auto":"none"},href:qr[n]?.blockExplorers?.default?.url+"/address/"+e,target:"_blank",rel:"noopener noreferrer",children:Kd(e)||"Not connected"})]}),
10
+ /* @__PURE__ */g.jsx("button",{className:"copy-address-btn",onClick:o,"aria-label":"Copy wallet address",type:"button",title:t?"Copied!":"Copy address",children:t?/* @__PURE__ */g.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:/* @__PURE__ */g.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"#0B3988",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):/* @__PURE__ */g.jsx("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:/* @__PURE__ */g.jsx("path",{d:"M8.1 15.75H13.23C12.9638 16.4152 12.5041 16.9852 11.9105 17.3863C11.3168 17.7874 10.6165 18.0012 9.9 18H3.6C2.64522 18 1.72955 17.6207 1.05442 16.9456C0.379285 16.2704 0 15.3548 0 14.4V7.2C0.00104929 6.32332 0.321408 5.47704 0.901163 4.81944C1.48092 4.16183 2.28037 3.73792 3.15 3.627V10.8C3.15238 12.1121 3.67466 13.3698 4.60245 14.2975C5.53024 15.2253 6.78791 15.7476 8.1 15.75ZM15.75 3.825H17.658C17.6027 3.74389 17.5393 3.66852 17.469 3.6L14.4 0.531C14.3337 0.460854 14.258 0.400274 14.175 0.351V2.25C14.1769 2.66713 14.3434 3.06664 14.6384 3.3616C14.9334 3.65656 15.3329 3.8231 15.75 3.825ZM15.75 5.175C14.9747 5.17357 14.2315 4.86494 13.6833 4.31671C13.1351 3.76847 12.8264 3.02532 12.825 2.25V0H8.1C7.14522 0 6.22955 0.379285 5.55442 1.05442C4.87928 1.72955 4.5 2.64522 4.5 3.6V10.8C4.5 11.7548 4.87928 12.6704 5.55442 13.3456C6.22955 14.0207 7.14522 14.4 8.1 14.4H14.4C15.3548 14.4 16.2705 14.0207 16.9456 13.3456C17.6207 12.6704 18 11.7548 18 10.8V5.175H15.75Z",fill:"#0B3988"})})})]})})},rh="chat_widget_messages",ih=200,oh="welcome-message";function ah(e){return[{id:oh,text:e,sender:"bot",timestamp:/* @__PURE__ */new Date}]}function sh(e){return e.map(e=>({...e,timestamp:new Date(e.timestamp)}))}function lh(){const e=Zd.getItem(rh);if(!e)return null;try{const n=JSON.parse(e);if(n&&void 0!==n.owner&&Array.isArray(n.messages))return{owner:n.owner,messages:sh(n.messages)};if(Array.isArray(n))return{owner:"",messages:sh(n)}}catch{}return null}function uh(e,n){Zd.setItem(rh,JSON.stringify({owner:e,messages:n}))}const ch=j.createContext(void 0),fh=({children:e,initialConfig:n})=>/* @__PURE__ */g.jsx(ch.Provider,{value:{config:n||null},children:e});var dh=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,hh=Math.ceil,ph=Math.floor,mh="[BigNumber Error] ",bh=mh+"Number primitive has more than 15 significant digits: ",vh=1e14,yh=14,wh=9007199254740991,gh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],kh=1e7,Ah=1e9;function xh(e){var n=0|e;return e>0||e===n?n:n-1}function Eh(e){for(var n,t,r=1,i=e.length,o=e[0]+"";r<i;){for(n=e[r++]+"",t=yh-n.length;t--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function Sh(e,n){var t,r,i=e.c,o=n.c,a=e.s,s=n.s,l=e.e,u=n.e;if(!a||!s)return null;if(t=i&&!i[0],r=o&&!o[0],t||r)return t?r?0:-s:a;if(a!=s)return a;if(t=a<0,r=l==u,!i||!o)return r?0:!i^t?1:-1;if(!r)return l>u^t?1:-1;for(s=(l=i.length)<(u=o.length)?l:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^t?1:-1;return l==u?0:l>u^t?1:-1}function Ch(e,n,t,r){if(e<n||e>t||e!==ph(e))throw Error(mh+(r||"Argument")+("number"==typeof e?e<n||e>t?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Th(e){var n=e.c.length-1;return xh(e.e/yh)==n&&e.c[n]%2!=0}function Ih(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(n<0?"e":"e+")+n}function Mh(e,n,t){var r,i;if(n<0){for(i=t+".";++n;i+=t);e=i+e}else if(++n>(r=e.length)){for(i=t,n-=r;--n;i+=t);e+=i}else n<r&&(e=e.slice(0,n)+"."+e.slice(n));return e}var Oh=function e(n){var t,r,i,o,a,s=k.prototype={constructor:k,toString:null,valueOf:null},l=new k(1),u=20,c=4,f=-7,d=21,h=-1e7,p=1e7,m=!1,b=1,v=0,y={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},w="0123456789abcdefghijklmnopqrstuvwxyz",g=!0;function k(e,n){var t,o,a,s,l,f,d,m,b=this;if(!(b instanceof k))return new k(e,n);if(null==n){if(e&&!0===e.On)return b.s=e.s,void(!e.c||e.e>p?b.c=b.e=null:e.e<h?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,l=e;l>=10;l/=10,s++);return void(s>p?b.c=b.e=null:(b.e=s,b.c=[e]))}m=String(e)}else{if(!dh.test(m=String(e)))return i(b,m,f);b.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(s=m.indexOf("."))>-1&&(m=m.replace(".","")),(l=m.search(/e/i))>0?(s<0&&(s=l),s+=+m.slice(l+1),m=m.substring(0,l)):s<0&&(s=m.length)}else{if(Ch(n,2,w.length,"Base"),10==n&&g)return S(b=new k(e),u+b.e+1,c);if(m=String(e),f="number"==typeof e){if(0*e!=0)return i(b,m,f,n);if(b.s=1/e<0?(m=m.slice(1),-1):1,k.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(bh+e)}else b.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(t=w.slice(0,n),s=l=0,d=m.length;l<d;l++)if(t.indexOf(o=m.charAt(l))<0){if("."==o){if(l>s){s=d;continue}}else if(!a&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){a=!0,l=-1,s=0;continue}return i(b,String(e),f,n)}f=!1,(s=(m=r(m,n,10,b.s)).indexOf("."))>-1?m=m.replace(".",""):s=m.length}for(l=0;48===m.charCodeAt(l);l++);for(d=m.length;48===m.charCodeAt(--d););if(m=m.slice(l,++d)){if(d-=l,f&&k.DEBUG&&d>15&&(e>wh||e!==ph(e)))throw Error(bh+b.s*e);if((s=s-l-1)>p)b.c=b.e=null;else if(s<h)b.c=[b.e=0];else{if(b.e=s,b.c=[],l=(s+1)%yh,s<0&&(l+=yh),l<d){for(l&&b.c.push(+m.slice(0,l)),d-=yh;l<d;)b.c.push(+m.slice(l,l+=yh));l=yh-(m=m.slice(l)).length}else l-=d;for(;l--;m+="0");b.c.push(+m)}}else b.c=[b.e=0]}function A(e,n,t,r){var i,o,a,s,l;if(null==t?t=c:Ch(t,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==n)l=Eh(e.c),l=1==r||2==r&&(a<=f||a>=d)?Ih(l,a):Mh(l,a,"0");else if(o=(e=S(new k(e),n,t)).e,s=(l=Eh(e.c)).length,1==r||2==r&&(n<=o||o<=f)){for(;s<n;l+="0",s++);l=Ih(l,o)}else if(n-=a+(2===r&&o>a),l=Mh(l,o,"0"),o+1>s){if(--n>0)for(l+=".";n--;l+="0");}else if((n+=o-s)>0)for(o+1==s&&(l+=".");n--;l+="0");return e.s<0&&i?"-"+l:l}function x(e,n){for(var t,r,i=1,o=new k(e[0]);i<e.length;i++)(!(r=new k(e[i])).s||(t=Sh(o,r))===n||0===t&&o.s===n)&&(o=r);return o}function E(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*yh-1)>p?e.c=e.e=null:t<h?e.c=[e.e=0]:(e.e=t,e.c=n),e}function S(e,n,t,r){var i,o,a,s,l,u,c,f=e.c,d=gh;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=n-i)<0)o+=yh,a=n,l=f[u=0],c=ph(l/d[i-a-1]%10);else if((u=hh((o+1)/yh))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));l=c=0,i=1,a=(o%=yh)-yh+1}else{for(l=s=f[u],i=1;s>=10;s/=10,i++);c=(a=(o%=yh)-yh+i)<0?0:ph(l/d[i-a-1]%10)}if(r=r||n<0||null!=f[u+1]||(a<0?l:l%d[i-a-1]),r=t<4?(c||r)&&(0==t||t==(e.s<0?3:2)):c>5||5==c&&(4==t||r||6==t&&(o>0?a>0?l/d[i-a]:0:f[u-1])%10&1||t==(e.s<0?8:7)),n<1||!f[0])return f.length=0,r?(n-=e.e+1,f[0]=d[(yh-n%yh)%yh],e.e=-n||0):f[0]=e.e=0,e;if(0==o?(f.length=u,s=1,u--):(f.length=u+1,s=d[yh-o],f[u]=a>0?ph(l/d[i-a]%d[a])*s:0),r)for(;;){if(0==u){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,f[0]==vh&&(f[0]=1));break}if(f[u]+=s,f[u]!=vh)break;f[u--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>p?e.c=e.e=null:e.e<h&&(e.c=[e.e=0])}return e}function C(e){var n,t=e.e;return null===t?e.toString():(n=Eh(e.c),n=t<=f||t>=d?Ih(n,t):Mh(n,t,"0"),e.s<0?"-"+n:n)}return k.clone=e,k.ROUND_UP=0,k.ROUND_DOWN=1,k.ROUND_CEIL=2,k.ROUND_FLOOR=3,k.ROUND_HALF_UP=4,k.ROUND_HALF_DOWN=5,k.ROUND_HALF_EVEN=6,k.ROUND_HALF_CEIL=7,k.ROUND_HALF_FLOOR=8,k.EUCLID=9,k.config=k.set=function(e){var n,t;if(null!=e){if("object"!=typeof e)throw Error(mh+"Object expected: "+e);if(e.hasOwnProperty(n="DECIMAL_PLACES")&&(Ch(t=e[n],0,Ah,n),u=t),e.hasOwnProperty(n="ROUNDING_MODE")&&(Ch(t=e[n],0,8,n),c=t),e.hasOwnProperty(n="EXPONENTIAL_AT")&&((t=e[n])&&t.pop?(Ch(t[0],-Ah,0,n),Ch(t[1],0,Ah,n),f=t[0],d=t[1]):(Ch(t,-Ah,Ah,n),f=-(d=t<0?-t:t))),e.hasOwnProperty(n="RANGE"))if((t=e[n])&&t.pop)Ch(t[0],-Ah,-1,n),Ch(t[1],1,Ah,n),h=t[0],p=t[1];else{if(Ch(t,-Ah,Ah,n),!t)throw Error(mh+n+" cannot be zero: "+t);h=-(p=t<0?-t:t)}if(e.hasOwnProperty(n="CRYPTO")){if((t=e[n])!==!!t)throw Error(mh+n+" not true or false: "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!t,Error(mh+"crypto unavailable");m=t}else m=t}if(e.hasOwnProperty(n="MODULO_MODE")&&(Ch(t=e[n],0,9,n),b=t),e.hasOwnProperty(n="POW_PRECISION")&&(Ch(t=e[n],0,Ah,n),v=t),e.hasOwnProperty(n="FORMAT")){if("object"!=typeof(t=e[n]))throw Error(mh+n+" not an object: "+t);y=t}if(e.hasOwnProperty(n="ALPHABET")){if("string"!=typeof(t=e[n])||/^.?$|[+\-.\s]|(.).*\1/.test(t))throw Error(mh+n+" invalid: "+t);g="0123456789"==t.slice(0,10),w=t}}return{DECIMAL_PLACES:u,ROUNDING_MODE:c,EXPONENTIAL_AT:[f,d],RANGE:[h,p],CRYPTO:m,MODULO_MODE:b,POW_PRECISION:v,FORMAT:y,ALPHABET:w}},k.isBigNumber=function(e){if(!e||!0!==e.On)return!1;if(!k.DEBUG)return!0;var n,t,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-Ah&&i<=Ah&&i===ph(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((n=(i+1)%yh)<1&&(n+=yh),String(r[0]).length==n){for(n=0;n<r.length;n++)if((t=r[n])<0||t>=vh||t!==ph(t))break e;if(0!==t)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(mh+"Invalid BigNumber: "+e)},k.maximum=k.max=function(){return x(arguments,-1)},k.minimum=k.min=function(){return x(arguments,1)},k.random=(o=9007199254740992,a=Math.random()*o&2097151?function(){return ph(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var n,t,r,i,o,s=0,c=[],f=new k(l);if(null==e?e=u:Ch(e,0,Ah),i=hh(e/yh),m)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*n[s]+(n[s+1]>>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),n[s]=t[0],n[s+1]=t[1]):(c.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw m=!1,Error(mh+"crypto unavailable");for(n=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&n[s])+1099511627776*n[s+1]+4294967296*n[s+2]+16777216*n[s+3]+(n[s+4]<<16)+(n[s+5]<<8)+n[s+6])>=9e15?crypto.randomBytes(7).copy(n,s):(c.push(o%1e14),s+=7);s=i/7}if(!m)for(;s<i;)(o=a())<9e15&&(c[s++]=o%1e14);for(i=c[--s],e%=yh,i&&e&&(o=gh[yh-e],c[s]=ph(i/o)*o);0===c[s];c.pop(),s--);if(s<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=yh);for(s=1,o=c[0];o>=10;o/=10,s++);s<yh&&(r-=yh-s)}return f.e=r,f.c=c,f}),k.sum=function(){for(var e=1,n=arguments,t=new k(n[0]);e<n.length;)t=t.plus(n[e++]);return t},r=/* @__PURE__ */function(){var e="0123456789";function n(e,n,t,r){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=n);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>t-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/t|0,a[i]%=t)}return a.reverse()}return function(r,i,o,a,s){var l,f,d,h,p,m,b,y,g=r.indexOf("."),A=u,x=c;for(g>=0&&(h=v,v=0,r=r.replace(".",""),m=(y=new k(i)).pow(r.length-g),v=h,y.c=n(Mh(Eh(m.c),m.e,"0"),10,o,e),y.e=y.c.length),d=h=(b=n(r,i,o,s?(l=w,e):(l=e,w))).length;0==b[--h];b.pop());if(!b[0])return l.charAt(0);if(g<0?--d:(m.c=b,m.e=d,m.s=a,b=(m=t(m,y,A,x,o)).c,p=m.r,d=m.e),g=b[f=d+A+1],h=o/2,p=p||f<0||null!=b[f+1],p=x<4?(null!=g||p)&&(0==x||x==(m.s<0?3:2)):g>h||g==h&&(4==x||p||6==x&&1&b[f-1]||x==(m.s<0?8:7)),f<1||!b[0])r=p?Mh(l.charAt(1),-A,l.charAt(0)):l.charAt(0);else{if(b.length=f,p)for(--o;++b[--f]>o;)b[f]=0,f||(++d,b=[1].concat(b));for(h=b.length;!b[--h];);for(g=0,r="";g<=h;r+=l.charAt(b[g++]));r=Mh(r,d,l.charAt(0))}return r}}(),t=/* @__PURE__ */function(){function e(e,n,t){var r,i,o,a,s=0,l=e.length,u=n%kh,c=n/kh|0;for(e=e.slice();l--;)s=((i=u*(o=e[l]%kh)+(r=c*o+(a=e[l]/kh|0)*u)%kh*kh+s)/t|0)+(r/kh|0)+c*a,e[l]=i%t;return s&&(e=[s].concat(e)),e}function n(e,n,t,r){var i,o;if(t!=r)o=t>r?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=n[i]){o=e[i]>n[i]?1:-1;break}return o}function t(e,n,t,r){for(var i=0;t--;)e[t]-=i,i=e[t]<n[t]?1:0,e[t]=i*r+e[t]-n[t];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,a,s){var l,u,c,f,d,h,p,m,b,v,y,w,g,A,x,E,C,T=r.s==i.s?1:-1,I=r.c,M=i.c;if(!(I&&I[0]&&M&&M[0]))return new k(r.s&&i.s&&(I?!M||I[0]!=M[0]:M)?I&&0==I[0]||!M?0*T:T/0:NaN);for(b=(m=new k(T)).c=[],T=o+(u=r.e-i.e)+1,s||(s=vh,u=xh(r.e/yh)-xh(i.e/yh),T=T/yh|0),c=0;M[c]==(I[c]||0);c++);if(M[c]>(I[c]||0)&&u--,T<0)b.push(1),f=!0;else{for(A=I.length,E=M.length,c=0,T+=2,(d=ph(s/(M[0]+1)))>1&&(M=e(M,d,s),I=e(I,d,s),E=M.length,A=I.length),g=E,y=(v=I.slice(0,E)).length;y<E;v[y++]=0);C=M.slice(),C=[0].concat(C),x=M[0],M[1]>=s/2&&x++;do{if(d=0,(l=n(M,v,E,y))<0){if(w=v[0],E!=y&&(w=w*s+(v[1]||0)),(d=ph(w/x))>1)for(d>=s&&(d=s-1),p=(h=e(M,d,s)).length,y=v.length;1==n(h,v,p,y);)d--,t(h,E<p?C:M,p,s),p=h.length,l=1;else 0==d&&(l=d=1),p=(h=M.slice()).length;if(p<y&&(h=[0].concat(h)),t(v,h,y,s),y=v.length,-1==l)for(;n(M,v,E,y)<1;)d++,t(v,E<y?C:M,y,s),y=v.length}else 0===l&&(d++,v=[0]);b[c++]=d,v[0]?v[y++]=I[g]||0:(v=[I[g]],y=1)}while((g++<A||null!=v[0])&&T--);f=null!=v[0],b[0]||b.splice(0,1)}if(s==vh){for(c=1,T=b[0];T>=10;T/=10,c++);S(m,o+(m.e=c+u*yh-1)+1,a,f)}else m.e=u,m.r=+f;return m}}(),i=/* @__PURE__ */function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,t=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,l){var u,c=s?a:a.replace(i,"");if(r.test(c))o.s=isNaN(c)?null:c<0?-1:1;else{if(!s&&(c=c.replace(e,function(e,n,t){return u="x"==(t=t.toLowerCase())?16:"b"==t?2:8,l&&l!=u?e:n}),l&&(u=l,c=c.replace(n,"$1").replace(t,"0.$1")),a!=c))return new k(c,u);if(k.DEBUG)throw Error(mh+"Not a"+(l?" base "+l:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),s.absoluteValue=s.abs=function(){var e=new k(this);return e.s<0&&(e.s=1),e},s.comparedTo=function(e,n){return Sh(this,new k(e,n))},s.decimalPlaces=s.dp=function(e,n){var t,r,i,o=this;if(null!=e)return Ch(e,0,Ah),null==n?n=c:Ch(n,0,8),S(new k(o),e+o.e+1,n);if(!(t=o.c))return null;if(r=((i=t.length-1)-xh(this.e/yh))*yh,i=t[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},s.dividedBy=s.div=function(e,n){return t(this,new k(e,n),u,c)},s.dividedToIntegerBy=s.idiv=function(e,n){return t(this,new k(e,n),0,1)},s.exponentiatedBy=s.pow=function(e,n){var t,r,i,o,a,s,u,f,d=this;if((e=new k(e)).c&&!e.isInteger())throw Error(mh+"Exponent not an integer: "+C(e));if(null!=n&&(n=new k(n)),a=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return f=new k(Math.pow(+C(d),a?e.s*(2-Th(e)):+C(e))),n?f.mod(n):f;if(s=e.s<0,n){if(n.c?!n.c[0]:!n.s)return new k(NaN);(r=!s&&d.isInteger()&&n.isInteger())&&(d=d.mod(n))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||a&&d.c[1]>=24e7:d.c[0]<8e13||a&&d.c[0]<=9999975e7)))return o=d.s<0&&Th(e)?-0:0,d.e>-1&&(o=1/o),new k(s?1/o:o);v&&(o=hh(v/yh+2))}for(a?(t=new k(.5),s&&(e.s=1),u=Th(e)):u=(i=Math.abs(+C(e)))%2,f=new k(l);;){if(u){if(!(f=f.times(d)).c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(n))}if(i){if(0===(i=ph(i/2)))break;u=i%2}else if(S(e=e.times(t),e.e+1,1),e.e>14)u=Th(e);else{if(0===(i=+C(e)))break;u=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):r&&(d=d.mod(n))}return r?f:(s&&(f=l.div(f)),n?f.mod(n):o?S(f,v,c,void 0):f)},s.integerValue=function(e){var n=new k(this);return null==e?e=c:Ch(e,0,8),S(n,n.e+1,e)},s.isEqualTo=s.eq=function(e,n){return 0===Sh(this,new k(e,n))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(e,n){return Sh(this,new k(e,n))>0},s.isGreaterThanOrEqualTo=s.gte=function(e,n){return 1===(n=Sh(this,new k(e,n)))||0===n},s.isInteger=function(){return!!this.c&&xh(this.e/yh)>this.c.length-2},s.isLessThan=s.lt=function(e,n){return Sh(this,new k(e,n))<0},s.isLessThanOrEqualTo=s.lte=function(e,n){return-1===(n=Sh(this,new k(e,n)))||0===n},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(e,n){var t,r,i,o,a=this,s=a.s;if(n=(e=new k(e,n)).s,!s||!n)return new k(NaN);if(s!=n)return e.s=-n,a.plus(e);var l=a.e/yh,u=e.e/yh,f=a.c,d=e.c;if(!l||!u){if(!f||!d)return f?(e.s=-n,e):new k(d?a:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-n,e):new k(f[0]?a:3==c?-0:0)}if(l=xh(l),u=xh(u),f=f.slice(),s=l-u){for((o=s<0)?(s=-s,i=f):(u=l,i=d),i.reverse(),n=s;n--;i.push(0));i.reverse()}else for(r=(o=(s=f.length)<(n=d.length))?s:n,s=n=0;n<r;n++)if(f[n]!=d[n]){o=f[n]<d[n];break}if(o&&(i=f,f=d,d=i,e.s=-e.s),(n=(r=d.length)-(t=f.length))>0)for(;n--;f[t++]=0);for(n=vh-1;r>s;){if(f[--r]<d[r]){for(t=r;t&&!f[--t];f[t]=n);--f[t],f[r]+=vh}f[r]-=d[r]}for(;0==f[0];f.splice(0,1),--u);return f[0]?E(e,f,u):(e.s=3==c?-1:1,e.c=[e.e=0],e)},s.modulo=s.mod=function(e,n){var r,i,o=this;return e=new k(e,n),!o.c||!e.s||e.c&&!e.c[0]?new k(NaN):!e.c||o.c&&!o.c[0]?new k(o):(9==b?(i=e.s,e.s=1,r=t(o,e,0,3),e.s=i,r.s*=i):r=t(o,e,0,b),(e=o.minus(r.times(e))).c[0]||1!=b||(e.s=o.s),e)},s.multipliedBy=s.times=function(e,n){var t,r,i,o,a,s,l,u,c,f,d,h,p,m,b,v=this,y=v.c,w=(e=new k(e,n)).c;if(!(y&&w&&y[0]&&w[0]))return!v.s||!e.s||y&&!y[0]&&!w||w&&!w[0]&&!y?e.c=e.e=e.s=null:(e.s*=v.s,y&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=xh(v.e/yh)+xh(e.e/yh),e.s*=v.s,(l=y.length)<(f=w.length)&&(p=y,y=w,w=p,i=l,l=f,f=i),i=l+f,p=[];i--;p.push(0));for(m=vh,b=kh,i=f;--i>=0;){for(t=0,d=w[i]%b,h=w[i]/b|0,o=i+(a=l);o>i;)t=((u=d*(u=y[--a]%b)+(s=h*u+(c=y[a]/b|0)*d)%b*b+p[o]+t)/m|0)+(s/b|0)+h*c,p[o--]=u%m;p[o]=t}return t?++r:p.splice(0,1),E(e,p,r)},s.negated=function(){var e=new k(this);return e.s=-e.s||null,e},s.plus=function(e,n){var t,r=this,i=r.s;if(n=(e=new k(e,n)).s,!i||!n)return new k(NaN);if(i!=n)return e.s=-n,r.minus(e);var o=r.e/yh,a=e.e/yh,s=r.c,l=e.c;if(!o||!a){if(!s||!l)return new k(i/0);if(!s[0]||!l[0])return l[0]?e:new k(s[0]?r:0*i)}if(o=xh(o),a=xh(a),s=s.slice(),i=o-a){for(i>0?(a=o,t=l):(i=-i,t=s),t.reverse();i--;t.push(0));t.reverse()}for((i=s.length)-(n=l.length)<0&&(t=l,l=s,s=t,n=i),i=0;n;)i=(s[--n]=s[n]+l[n]+i)/vh|0,s[n]=vh===s[n]?0:s[n]%vh;return i&&(s=[i].concat(s),++a),E(e,s,a)},s.precision=s.sd=function(e,n){var t,r,i,o=this;if(null!=e&&e!==!!e)return Ch(e,1,Ah),null==n?n=c:Ch(n,0,8),S(new k(o),e,n);if(!(t=o.c))return null;if(r=(i=t.length-1)*yh+1,i=t[i]){for(;i%10==0;i/=10,r--);for(i=t[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},s.shiftedBy=function(e){return Ch(e,-9007199254740991,wh),this.times("1e"+e)},s.squareRoot=s.sqrt=function(){var e,n,r,i,o,a=this,s=a.c,l=a.s,f=a.e,d=u+4,h=new k("0.5");if(1!==l||!s||!s[0])return new k(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+C(a)))||l==1/0?(((n=Eh(s)).length+f)%2==0&&(n+="0"),l=Math.sqrt(+n),f=xh((f+1)/2)-(f<0||f%2),r=new k(n=l==1/0?"5e"+f:(n=l.toExponential()).slice(0,n.indexOf("e")+1)+f)):r=new k(l+""),r.c[0])for((l=(f=r.e)+d)<3&&(l=0);;)if(o=r,r=h.times(o.plus(t(a,o,d,1))),Eh(o.c).slice(0,l)===(n=Eh(r.c)).slice(0,l)){if(r.e<f&&--l,"9999"!=(n=n.slice(l-3,l+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(S(r,r.e+u+2,1),e=!r.times(r).eq(a));break}if(!i&&(S(o,o.e+u+2,0),o.times(o).eq(a))){r=o;break}d+=4,l+=4,i=1}return S(r,r.e+u+1,c,e)},s.toExponential=function(e,n){return null!=e&&(Ch(e,0,Ah),e++),A(this,e,n,1)},s.toFixed=function(e,n){return null!=e&&(Ch(e,0,Ah),e=e+this.e+1),A(this,e,n)},s.toFormat=function(e,n,t){var r,i=this;if(null==t)null!=e&&n&&"object"==typeof n?(t=n,n=null):e&&"object"==typeof e?(t=e,e=n=null):t=y;else if("object"!=typeof t)throw Error(mh+"Argument not an object: "+t);if(r=i.toFixed(e,n),i.c){var o,a=r.split("."),s=+t.groupSize,l=+t.secondaryGroupSize,u=t.groupSeparator||"",c=a[0],f=a[1],d=i.s<0,h=d?c.slice(1):c,p=h.length;if(l&&(o=s,s=l,l=o,p-=o),s>0&&p>0){for(o=p%s||s,c=h.substr(0,o);o<p;o+=s)c+=u+h.substr(o,s);l>0&&(c+=u+h.slice(o)),d&&(c="-"+c)}r=f?c+(t.decimalSeparator||"")+((l=+t.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(t.fractionGroupSeparator||"")):f):c}return(t.prefix||"")+r+(t.suffix||"")},s.toFraction=function(e){var n,r,i,o,a,s,u,f,d,h,m,b,v=this,y=v.c;if(null!=e&&(!(u=new k(e)).isInteger()&&(u.c||1!==u.s)||u.lt(l)))throw Error(mh+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+C(u));if(!y)return new k(v);for(n=new k(l),d=r=new k(l),i=f=new k(l),b=Eh(y),a=n.e=b.length-v.e-1,n.c[0]=gh[(s=a%yh)<0?yh+s:s],e=!e||u.comparedTo(n)>0?a>0?n:d:u,s=p,p=1/0,u=new k(b),f.c[0]=0;h=t(u,n,0,1),1!=(o=r.plus(h.times(i))).comparedTo(e);)r=i,i=o,d=f.plus(h.times(o=d)),f=o,n=u.minus(h.times(o=n)),u=o;return o=t(e.minus(r),i,0,1),f=f.plus(o.times(d)),r=r.plus(o.times(i)),f.s=d.s=v.s,m=t(d,i,a*=2,c).minus(v).abs().comparedTo(t(f,r,a,c).minus(v).abs())<1?[d,i]:[f,r],p=s,m},s.toNumber=function(){return+C(this)},s.toPrecision=function(e,n){return null!=e&&Ch(e,1,Ah),A(this,e,n,2)},s.toString=function(e){var n,t=this,i=t.s,o=t.e;return null===o?i?(n="Infinity",i<0&&(n="-"+n)):n="NaN":(null==e?n=o<=f||o>=d?Ih(Eh(t.c),o):Mh(Eh(t.c),o,"0"):10===e&&g?n=Mh(Eh((t=S(new k(t),u+o+1,c)).c),t.e,"0"):(Ch(e,2,w.length,"Base"),n=r(Mh(Eh(t.c),o,"0"),10,e,i,!0)),i<0&&t.c[0]&&(n="-"+n)),n},s.valueOf=s.toJSON=function(){return C(this)},s.On=!0,s[Symbol.toStringTag]="BigNumber",s[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=n&&k.set(n),k}();class Rh{baseUrl;constructor(e){this.baseUrl=e}buildUrl(e,n){const t=new URL(e,this.baseUrl);return n&&Object.entries(n).forEach(([e,n])=>{null!=n&&t.searchParams.append(e,String(n))}),t.toString()}async get(e,n={}){const t=this.buildUrl(e,n.query),r=await fetch(t,{method:"GET",headers:n.headers||{},signal:n.signal});if(!r.ok){let e=null;try{e=await r.json()}catch{try{const n=await r.text();n&&(e={message:n})}catch{}}const n=new Error(e?.message||e?.errorMessage||`HTTP ${r.status}: ${r.statusText}`);throw n.status=r.status,n.statusText=r.statusText,e&&(n.data=e),n}return{data:await r.json(),status:r.status}}async post(e,n,t={}){const r=this.buildUrl(e,t.query),i=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:JSON.stringify(n),signal:t.signal});if(!i.ok){let e=null;try{e=await i.json()}catch{try{const n=await i.text();n&&(e={message:n})}catch{}}const n=new Error(e?.message||e?.errorMessage||`HTTP ${i.status}: ${i.statusText}`);throw n.status=i.status,n.statusText=i.statusText,e&&(n.data=e),n}return{data:await i.json(),status:i.status}}}function Nh(e,n){return new Promise(t=>{const r=setTimeout(t,e);n?.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}const Bh=new Rh("https://wallet-api.pantograph.app"),Fh="https://nft.keyring.app",Lh=new Rh(Fh);async function Dh(e){const{address:n,chain:t="base",token_addresses:r,exclude_spam:i,exclude_unverified_contracts:o}=e;if(!n)throw new Error("Address is required");let a="Unknown error";for(let u=1;u<=5;u++)try{const e={chain:t,exclude_spam:i??!1,exclude_unverified_contracts:o??!1};r&&(e.token_addresses=r);const a=(await Lh.get(`api/moralis/proxy/wallets/${encodeURIComponent(n)}/tokens`,{query:e})).data;if(a?.result?.length>0){a.result=a.result.filter(e=>new Oh(e?.balance||0).gt(0)),a.result=a.result.map(e=>({...e,token_address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"===e.token_address?Nr:e.token_address}));try{if(a.result.length>0){const e=Gr(t)??t,n=a.result.map(e=>e.token_address),r=await Bh.get(`/keyrings/tokens/${e}/v2`,{query:{addresses:n.join(",")}});if(Array.isArray(r.data)){const e=/* @__PURE__ */new Map;for(const n of r.data)n.address&&e.set(n.address.toLowerCase(),{price:null!=n.price?parseFloat(String(n.price)):NaN,icon_image:n.icon_image});a.result=a.result.map(n=>{const t=e.get(n.token_address.toLowerCase());if(!t)return n;const r={...n};return t.icon_image&&(r.logo=t.icon_image,r.thumbnail=t.icon_image),isNaN(t.price)||(r.usd_price=t.price,r.usd_value=Oh(n.balance_formatted||"0").multipliedBy(t.price).toNumber()),r}),a.result=a.result.filter(e=>null==e.usd_value||new Oh(e.usd_value).gte(.01))}}}catch(s){}}return{success:!0,data:a}}catch(l){a=l instanceof Error?l.message:"Unknown error",u<5&&await Nh(1e3)}return{success:!1,error:a}}async function Uh(e){const{address:n,chain:t="base",signal:r}=e;if(!n)throw new Error("Token address is required");let i="Unknown error";for(let a=1;a<=5;a++){if(r?.aborted)return{success:!1,error:"Request cancelled"};try{const e=Gr(t)??t,o=await Bh.get(`/keyrings/tokens/${e}/v2`,{query:{addresses:n},signal:r}),s=n===Nr,l=(Array.isArray(o.data)?o.data:[]).find(e=>e.address?.toLowerCase()===n.toLowerCase()||s&&""===e.address)??null;if(l)return{success:!0,data:{token_address:l.address??n,name:l.name??"",symbol:l.symbol??"",decimals:null!=l.decimals?Number(l.decimals):18,logo:l.icon_image||l.logo,thumbnail:l.icon_image||l.logo,usd_price:null!=l.price?parseFloat(l.price):void 0,usd_price_24hr_percent_change:l.price_change_percentage_24h??void 0,usd_price_24hr_usd_change:l.price_change_24h??void 0}};const[u,c]=await Promise.allSettled([Lh.get("api/moralis/proxy/erc20/metadata",{query:{chain:t,addresses:[n]},signal:r}),Lh.get(`api/moralis/proxy/erc20/${encodeURIComponent(n)}/price`,{query:{chain:t,include:"percent_change"},signal:r})]),f="fulfilled"===u.status?u.value.data:[];if(!f||0===f.length){if(i="Token metadata not found",a<5&&await Nh(1e3,r),r?.aborted)return{success:!1,error:"Request cancelled"};continue}const d=f[0],h="fulfilled"===c.status?c.value.data:void 0;return{success:!0,data:{token_address:d.token_address,name:d.name,symbol:d.symbol,decimals:d.decimals,logo:d.logo||d.thumbnail,thumbnail:d.thumbnail,usd_price:h?.usdPrice??void 0,usd_price_24hr_percent_change:h?.["24hrPercentChange"]?parseFloat(h["24hrPercentChange"]):void 0,usd_price_24hr_usd_change:h?.usdPriceChange24hr??void 0}}}catch(o){if(r?.aborted)return{success:!1,error:"Request cancelled"};if(i=o instanceof Error?o.message:"Unknown error",a<5&&await Nh(1e3,r),r?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:i}}async function Ph(e){const{address:n,chain:t="base",limit:r=100,exclude_spam:i=!0,cursor:o,signal:a}=e;if(!n)throw new Error("Address is required");let s="Unknown error";for(let u=1;u<=5;u++){if(a?.aborted)return{success:!1,error:"Request cancelled"};try{const e={chain:t,format:"decimal",limit:r,exclude_spam:i,media_items:!0,normalizeMetadata:!0};o&&(e.cursor=o);return{success:!0,data:(await Lh.get(`api/moralis/proxy/${encodeURIComponent(n)}/nft`,{query:e,signal:a})).data}}catch(l){if(a?.aborted)return{success:!1,error:"Request cancelled"};if(s=l instanceof Error?l.message:"Unknown error",u<5&&await Nh(1e3,a),a?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:s}}const jh=new class extends Rh{constructor(){super("https://wallet-api.pantograph.app")}async getTokensDetails(e,n="base"){try{if(!e||!Array.isArray(e)||0===e.length)throw new Error("Addresses must be a non-empty array");const t=e.join(","),r=await this.get(`/keyrings/tokens/${n}/v2`,{query:{addresses:t}});return Array.isArray(r.data)&&(r.data=r.data.filter((e,n,t)=>n===t.findIndex(n=>n.address.toLowerCase()===e.address.toLowerCase())),Array.isArray(e)&&e.length>0&&(r.data=r.data.filter(n=>e.some(e=>e.toLowerCase()===n.address.toLowerCase())),r.data.sort((n,t)=>e.findIndex(e=>e.toLowerCase()===n.address.toLowerCase())-e.findIndex(e=>e.toLowerCase()===t.address.toLowerCase())))),r}catch(t){throw t}}async getTokenDetail(e,n="base"){try{if(!e)throw new Error("Address is required");const t=await this.getTokensDetails([e],n);return{data:t.data[0]||null,status:t.status}}catch(t){throw t}}async getTopGainers(e="base",n="24h",t=3){try{return await this.get(`/token-list/top-gainers/${e}`,{query:{duration:n,limit:t}})}catch(r){throw r}}async searchTokensByKey(e,n){try{if(!e)throw new Error("key is required");const t=await this.get("/token-list",{query:{chainId:n,key:e}});let r=t.data;return r=Object.values(r).flat(),Array.isArray(r)&&(r=r.map(e=>({...e,decimals:null!=e.decimals?Number(e.decimals):18,price:null!=e.price?Number(e.price):void 0}))),t.data=r,t}catch(t){throw t}}},Hh=new Rh("https://dln.debridge.finance");async function Vh(e){const{chainId:n,tokenIn:t,tokenInAmount:r,tokenOut:i,accesstoken:o,slippage:a="auto",tokenOutRecipient:s}=e;if(!(n&&t&&r&&i))throw new Error("Missing required parameters: chainId, tokenIn, tokenInAmount, tokenOut");try{const e=await fetch("https://exchange-api.keyring.app/admin/setting?configs=others",{method:"GET"}),l=await e.json(),u=l?.others||{},c=u?.AFFILIATE_FEE_PERENT,f=u?.AFFILIATE_FEE_RECIPIENT,d=await Hh.get("/v1.0/chain/transaction",{query:{chainId:String(n),tokenIn:t,tokenInAmount:r,tokenOut:i,slippage:String(a),tokenOutRecipient:s,accesstoken:o,affiliateFeePercent:c,affiliateFeeRecipient:f}});if(d.data?.error)throw new Error(`DeBridge API Error: ${d.data.error}`);return{success:!0,data:d.data}}catch(l){let e=l instanceof Error?l.message:"Unknown error";const n=l;n.data?.errorMessage?e=n.data.errorMessage:n.response?.data?.errorMessage?e=n.response.data.errorMessage:n.data?.message?e=n.data.message:n.response?.data?.message&&(e=n.response.data.message);const t=n.status||n.response?.status||n.statusCode||n.data?.status;return{success:!1,error:l instanceof Error?l.message:"Unknown error",status:t,errorMessage:e,errorCode:n.data?.errorCode,errorId:n.data?.errorId}}}const zh={send_native:{label:"actionSendNativeLabel",description:"actionSendNativeDesc",fields:[{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_token:{label:"actionSendTokenLabel",description:"actionSendTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},swap_token:{label:"actionSwapTokenLabel",description:"actionSwapTokenDesc",fields:[{key:"token_in",label:"fieldTokenIn",type:"address",placeholder:"0x... or native",required:!0,editable:!1},{key:"token_in_symbol",label:"fieldTokenInSymbol",type:"text",placeholder:"e.g. ETH",required:!1,editable:!1},{key:"token_out",label:"fieldTokenOut",type:"address",placeholder:"0x...",required:!0,editable:!1},{key:"token_out_symbol",label:"fieldTokenOutSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"token_in_decimals",label:"fieldTokenInDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"token_out_decimals",label:"fieldTokenOutDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},approve_token:{label:"actionApproveTokenLabel",description:"actionApproveTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"spender_address",label:"fieldSpenderAddress",type:"address",placeholder:"0x... spender contract",required:!0,validation:"address",editable:!1},{key:"amount",label:"fieldAmountUnlimited",type:"amount",placeholder:"0.0 or leave empty for max",required:!1,validation:"amount"},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1}]},wrap_native:{label:"actionWrapNativeLabel",description:"actionWrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},unwrap_native:{label:"actionUnwrapNativeLabel",description:"actionUnwrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_nft:{label:"actionSendNftLabel",description:"actionSendNftDesc",fields:[{key:"contract_address",label:"fieldNftContract",type:"address",placeholder:"0x... NFT contract",required:!0,validation:"address",editable:!1},{key:"token_id",label:"fieldTokenId",type:"text",placeholder:"e.g. 1234",required:!0,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"token_standard",label:"fieldTokenStandard",type:"text",placeholder:"ERC721 or ERC1155",required:!0,editable:!1},{key:"amount",label:"fieldAmount",type:"text",placeholder:"1",required:!0},{key:"maxAmount",label:"fieldMaxAmount",type:"text",placeholder:"",required:!1,editable:!1,hidden:!0},{key:"nft_name",label:"fieldNftName",type:"text",placeholder:"e.g. Bored Ape #1234",required:!1,editable:!1}]}};function Wh(e){if(!e||""===e?.trim())return!1;const n=parseFloat(e);return!isNaN(n)&&n>0}const qh=({action:e,initialValues:n,onSubmit:t,onCancel:r,isSubmitting:i=!1,tokenInfo:o,nftInfo:a,disabled:s=!1})=>{const{t:l,ti:u}=q(),c=zh[e],[f,d]=j.useState(()=>{if(!c)return{};const e={};return c.fields.forEach(t=>{e[t.key]=n[t.key]||""}),e}),[h]=j.useState(()=>["send_native","send_token","swap_token"].includes(e)&&!o&&f.contract_address?l("formTokenNotFound"):null),[p,m]=j.useState(()=>{const t={};if(["send_native","send_token","swap_token"].includes(e)&&o){const e=parseFloat(o.balanceFormatted||"0");if(e<=0)t.amount=u("formNoBalance",{symbol:o.symbol??""});else{const r=n.amount?.trim();r&&Wh(r)&&parseFloat(r)>e&&(t.amount=u("formInsufficientBalance",{balance:o.balanceFormatted,symbol:o.symbol??""}))}}return t}),b=j.useCallback((e,n)=>{d(t=>({...t,[e]:n})),p[e]&&m(n=>{const t={...n};return delete t[e],t})},[p]),v=j.useCallback(()=>{if(!c)return!1;const t={};if(c.fields.forEach(n=>{const r=f[n.key]?.trim()||"";!n.required||r||"send_nft"===e&&"amount"===n.key?r&&("address"!==n.validation||qn(r)||(t[n.key]=l("formInvalidAddress")),"amount"!==n.validation||Wh(r)||(t[n.key]=l("formMustBePositive")),"amount"===n.key&&r&&Wh(r)&&o?.balanceFormatted&&parseFloat(r)>parseFloat(o.balanceFormatted)&&(t[n.key]=u("formInsufficientBalance",{balance:o.balanceFormatted,symbol:o.symbol??""})),"positive_number"===n.validation&&(isNaN(Number(r))||Number(r)<0)&&(t[n.key]=l("formMustBeValidNumber"))):t[n.key]=u("formFieldRequired",{field:l(n.label)})}),"send_nft"===e&&"ERC1155"===f.token_standard?.toUpperCase()){const e=f.amount?.trim();if(e)if(!/^\d+$/.test(e)||parseInt(e,10)<1)t.amount=l("formMustBePositiveInteger");else{const r=parseInt(n.maxAmount||"0",10);r>0&&parseInt(e,10)>r&&(t.amount=u("formAmountExceedsNft",{max:String(r)}))}else t.amount=u("formFieldRequired",{field:l("fieldAmount")})}return m(t),0===Object.keys(t).length},[c,f,o,e,n,l,u]),y=j.useCallback(()=>{v()&&t(e,f)},[v,t,e,f]);return c?/* @__PURE__ */g.jsxs("div",{className:"action-form",children:[
11
+ /* @__PURE__ */g.jsx("div",{className:"action-form-title",children:/* @__PURE__ */g.jsx("span",{children:l(c.label)})}),h&&/* @__PURE__ */g.jsxs("div",{className:"action-form-general-error",children:["⚠️ ",h]}),o&&/* @__PURE__ */g.jsx("div",{className:"action-form-token-info",children:/* @__PURE__ */g.jsxs("div",{className:"token-info-row",children:[o.logo&&/* @__PURE__ */g.jsx("img",{src:o.logo,alt:o.symbol,className:"token-info-logo",width:20,height:20}),
12
+ /* @__PURE__ */g.jsxs("div",{className:"token-info-details",children:[
13
+ /* @__PURE__ */g.jsxs("span",{className:"token-info-name",children:[o.name," (",o.symbol,")"]}),
14
+ /* @__PURE__ */g.jsxs("span",{className:"token-info-balance",children:[l("spendable"),": ",Oh(o.balanceFormatted).decimalPlaces(8,Oh.ROUND_DOWN).toFormat()," ",o.symbol,void 0!==o.usdValue&&/* @__PURE__ */g.jsxs("span",{className:"token-info-usd",children:[" ","≈ $",o.usdValue.toFixed(2)]})]})]})]})}),a?.image&&/* @__PURE__ */g.jsx("div",{className:"action-form-nft-info",children:/* @__PURE__ */g.jsx("img",{src:a.image,alt:a.name,className:"nft-info-image",onError:e=>{e.target.style.display="none"}})}),
15
+ /* @__PURE__ */g.jsx("div",{className:"action-form-fields",children:c.fields.map(t=>t.hidden||"amount"===t.key&&"send_nft"===e&&"ERC1155"!==f.token_standard?.toUpperCase()||["decimals"].includes(t.key)&&"send_token"===e&&n.decimals?null:/* @__PURE__ */g.jsxs("div",{className:"action-form-field",children:[
16
+ /* @__PURE__ */g.jsxs("div",{className:"action-form-field-header",children:[
17
+ /* @__PURE__ */g.jsxs("div",{className:"action-form-field-label",children:[l(t.label),t.required&&" *"]}),"amount"===t.key&&o&&"send_nft"!==e&&/* @__PURE__ */g.jsxs("div",{className:"action-form-pct-btns",children:[[25,50,75].map(e=>/* @__PURE__ */g.jsxs("button",{type:"button",className:"action-form-pct-btn",onClick:()=>b("amount",Oh(o.balanceFormatted).multipliedBy(e).dividedBy(100).decimalPlaces(o.decimals,Oh.ROUND_DOWN).toFixed()),disabled:i||s,children:[e,"%"]},e)),
18
+ /* @__PURE__ */g.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>b("amount",o.balanceFormatted),disabled:i||s,children:l("formMax")})]}),"amount"===t.key&&"send_nft"===e&&a&&/* @__PURE__ */g.jsx("div",{className:"action-form-pct-btns",children:/* @__PURE__ */g.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>b("amount",n.maxAmount||""),disabled:i||s,children:l("formMax")})})]}),(()=>{const e=!1===t.editable&&!!n[t.key]||s,r=i||e,o=[p[t.key]?"error":"",e?"readonly":""].filter(Boolean).join(" ");return"address"===t.type?/* @__PURE__ */g.jsx("textarea",{rows:2,placeholder:t.placeholder,value:f[t.key]||"",onChange:e=>b(t.key,e.target.value),className:o,disabled:r||s}):/* @__PURE__ */g.jsx("input",{type:"number"===t.type?"number":"text",placeholder:t.placeholder,value:f[t.key]||"",onChange:e=>b(t.key,e.target.value),className:o,disabled:r||s})})(),p[t.key]&&/* @__PURE__ */g.jsx("span",{className:"field-error",children:p[t.key]})]},t.key))}),!s&&/* @__PURE__ */g.jsxs("div",{className:"action-form-actions",children:[
19
+ /* @__PURE__ */g.jsx("button",{className:"message-button",onClick:r,type:"button",disabled:i,children:l("formCancel")}),
20
+ /* @__PURE__ */g.jsx("button",{className:"message-button",onClick:y,type:"button",disabled:i,children:l(i?"formProcessing":"formExecute")})]})]}):null},Gh=({scrollContainerRef:e,threshold:n=200})=>{const[t,r]=j.useState(!1);return j.useEffect(()=>{const t=e.current;if(!t)return;const i=()=>{const{scrollTop:e,scrollHeight:i,clientHeight:o}=t;r(i-e-o>n)};return t.addEventListener("scroll",i,{passive:!0}),i(),()=>{t.removeEventListener("scroll",i)}},[e,n]),t?/* @__PURE__ */g.jsx("button",{className:"scroll-to-bottom-btn",onClick:()=>{e.current?.scrollTo({top:e.current.scrollHeight,behavior:"smooth"})},"aria-label":"Scroll to bottom",type:"button",children:/* @__PURE__ */g.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:/* @__PURE__ */g.jsx("path",{d:"M9 3V15M9 15L4 10M9 15L14 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null},Yh=e=>e?`**CRITICAL - LANGUAGE**: Respond in the specified language: "${e||"detect from current question"}". Do NOT follow language from conversation history.`:"**CRITICAL - LANGUAGE**: You MUST detect the language of the user's CURRENT question and respond ONLY in that exact language. Ignore the language of previous messages in conversation history — only the current question matters. If the current question is in English, respond in English. If in Vietnamese, respond in Vietnamese. NEVER default to Chinese or any other language.",Jh={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",10:"0x4200000000000000000000000000000000000006",56:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",137:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Kh=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]}],Xh=[{name:"deposit",type:"function",stateMutability:"payable",inputs:[],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{name:"wad",type:"uint256"}],outputs:[]}],Qh=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],Zh=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"amount",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]}];function _h(e,n){if(n)return n;const t=qr[e];return t?.rpcUrls?.default?.http?.[0]}async function $h(e){const{transactionHash:n,chainId:t,pollingInterval:r=3e3,timeout:i=12e4,rpcUrl:o}=e,a=_h(t,o);if(!a)throw new Error(`No RPC endpoint for chain ${t}`);const s=Date.now();for(;Date.now()-s<i;){try{const e=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getTransactionReceipt",params:[n]})}),t=await e.json();if(t.result){const e=t.result;return{status:"0x1"===e.status?"success":"fail",blockNumber:e.blockNumber,gasUsed:e.gasUsed,effectiveGasPrice:e.effectiveGasPrice}}}catch(l){}await new Promise(e=>setTimeout(e,r))}throw new Error(`Transaction ${n} was not mined within ${i/1e3}s`)}async function ep(e){const{tokenAddress:n,ownerAddress:t,spenderAddress:r,chainId:i,rpcUrl:o}=e,a=_h(i,o);if(!a)return BigInt(0);try{const e=ot({abi:Kh,functionName:"allowance",args:[t,r]}),i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_call",params:[{to:n,data:e},"latest"]})}),o=await i.json();return o.result&&"0x"!==o.result?BigInt(o.result):BigInt(0)}catch(s){return BigInt(0)}}function np(e){const{tokenAddress:n,spenderAddress:t,fromAddress:r,chainId:i,tokenSymbol:o,amount:a}=e,s=a&&BigInt(a)>0n?BigInt(a):Vt;return{from:r,to:n,data:ot({abi:Kh,functionName:"approve",args:[t,s]}),value:"0",chainId:i,description:`Approve ${o||"token"} for swap`}}async function tp(e){const{address:n,chainId:t,rpcUrl:r}=e,i=_h(t,r);if(!i)return new Oh(0);try{const e=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getBalance",params:[n,"latest"]})}),t=await e.json();return t.result&&"0x"!==t.result?new Oh(BigInt(t.result).toString()):new Oh(0)}catch(o){return new Oh(0)}}async function rp(e){const{from:n,to:t,data:r,value:i,chainId:o,rpcUrl:a}=e,s=_h(o,a);if(!s)return new Oh(0);try{const[e,o]=await Promise.all([fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_estimateGas",params:[{from:n,to:t,data:r,...i&&"0"!==i?{value:i}:{}}]})}),fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_gasPrice",params:[]})})]),[a,l]=await Promise.all([e.json(),o.json()]),u=a.result?new Oh(BigInt(a.result).toString()):new Oh(0),c=l.result?new Oh(BigInt(l.result).toString()):new Oh(0);return u.times(c).times(1.1)}catch(l){return new Oh(0)}}async function ip(e){const{chainId:n,rpcUrl:t}=e,r=_h(n,t);if(!r)return new Oh(0);try{const e=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_gasPrice",params:[]})}),n=await e.json();return n.result&&"0x"!==n.result?new Oh(BigInt(n.result).toString()):new Oh(0)}catch(i){return new Oh(0)}}var op,ap,sp={},lp={exports:{}},up=lp.exports;var cp=function(){if(ap)return sp;ap=1,Object.defineProperty(sp,"i",{value:!0});var e,n,t,r=b(),i=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,o=(op||(op=1,n=lp,t=lp.exports,function(e,r){var i="function",o="undefined",a="object",s="string",l="major",u="model",c="name",f="type",d="vendor",h="version",p="architecture",m="console",b="mobile",v="tablet",y="smarttv",w="wearable",g="embedded",k="Amazon",A="Apple",x="ASUS",E="BlackBerry",S="Browser",C="Chrome",T="Firefox",I="Google",M="Honor",O="Huawei",R="LG",N="Microsoft",B="Motorola",F="Nvidia",L="OnePlus",D="Opera",U="OPPO",P="Samsung",j="Sharp",H="Sony",V="Xiaomi",z="Zebra",W="Facebook",q="Chromium OS",G="Mac OS",Y=" Browser",J=function(e){for(var n={},t=0;t<e.length;t++)n[e[t].toUpperCase()]=e[t];return n},K=function(e,n){return typeof e===s&&-1!==X(n).indexOf(X(e))},X=function(e){return e.toLowerCase()},Q=function(e,n){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof n===o?e:e.substring(0,500)},Z=function(e,n){for(var t,o,s,l,u,c,f=0;f<n.length&&!u;){var d=n[f],h=n[f+1];for(t=o=0;t<d.length&&!u&&d[t];)if(u=d[t++].exec(e))for(s=0;s<h.length;s++)c=u[++o],typeof(l=h[s])===a&&l.length>0?2===l.length?typeof l[1]==i?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==i||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):r:this[l[0]]=c?l[1].call(this,c,l[2]):r:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):r):this[l]=c||r;f+=2}},_=function(e,n){for(var t in n)if(typeof n[t]===a&&n[t].length>0){for(var i=0;i<n[t].length;i++)if(K(n[t][i],e))return"?"===t?r:t}else if(K(n[t],e))return"?"===t?r:t;return n.hasOwnProperty("*")?n["*"]:e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,h],[/opios[\/ ]+([\w\.]+)/i],[h,[c,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[c,D+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[c,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[c,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[c,"Smart Lenovo "+S]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+S],h],[/\bfocus\/([\w\.]+)/i],[h,[c,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[c,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[c,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[c,"MIUI"+Y]],[/fxios\/([\w\.-]+)/i],[h,[c,T]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+Y],h],[/samsungbrowser\/([\w\.]+)/i],[h,[c,P+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,W],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[c,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,C+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[c,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[h,_,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[c,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[p,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[p,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[p,/ower/,"",X]],[/ sun4\w[;\)]/i],[[p,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[p,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,P],[f,v]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,P],[f,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,A],[f,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,A],[f,v]],[/(macintosh);/i],[u,[d,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,j],[f,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[d,M],[f,v]],[/honor([-\w ]+)[;\)]/i],[u,[d,M],[f,b]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[d,O],[f,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,O],[f,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[d,V],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[d,V],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,U],[f,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[d,_,{OnePlus:["304","403","203"],"*":U}],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[f,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[f,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,B],[f,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,B],[f,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,R],[f,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,R],[f,b]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[d,"Lenovo"],[f,v]],[/(nokia) (t[12][01])/i],[d,u,[f,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[f,b],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[d,I],[f,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,I],[f,b]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,H],[f,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,H],[f,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,L],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,k],[f,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,k],[f,b]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[f,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,E],[f,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,x],[f,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,x],[f,b]],[/(nexus 9)/i],[u,[d,"HTC"],[f,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[f,b]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[d,"TCL"],[f,v]],[/(itel) ((\w+))/i],[[d,X],u,[f,_,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[f,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[f,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[d,"Ulefone"],[f,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[d,"Energizer"],[f,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[d,"Cat"],[f,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[d,"Smartfren"],[f,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[d,"Nothing"],[f,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[d,"Archos"],[f,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[d,"Archos"],[f,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,u,[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[f,b]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[f,v]],[/(surface duo)/i],[u,[d,N],[f,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[f,b]],[/(u304aa)/i],[u,[d,"AT&T"],[f,b]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[f,b]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[f,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[f,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[f,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[f,v]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[f,v]],[/\b(k88) b/i],[u,[d,"ZTE"],[f,v]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[f,b]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[f,b]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[f,v]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[f,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[f,v]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[f,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[f,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[f,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[f,b]],[/\b(ph-1) /i],[u,[d,"Essential"],[f,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[f,v]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[f,v]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[f,v]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[d,F],[f,v]],[/(sprint) (\w+)/i],[d,u,[f,b]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,N],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,z],[f,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,z],[f,b]],[/smart-tv.+(samsung)/i],[d,[f,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,P],[f,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,R],[f,y]],[/(apple) ?tv/i],[d,[u,A+" TV"],[f,y]],[/crkey/i],[[u,C+"cast"],[d,I],[f,y]],[/droid.+aft(\w+)( bui|\))/i],[u,[d,k],[f,y]],[/(shield \w+ tv)/i],[u,[d,F],[f,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,j],[f,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,H],[f,y]],[/(mi(tv|box)-?\w+) bui/i],[u,[d,V],[f,y]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[f,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Q],[u,Q],[f,y]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[f,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[f,m]],[/droid.+; (shield)( bui|\))/i],[u,[d,F],[f,m]],[/(playstation \w+)/i],[u,[d,H],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,N],[f,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[d,P],[f,w]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,u,[f,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[d,U],[f,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,A],[f,w]],[/(opwwe\d{3})/i],[u,[d,L],[f,w]],[/(moto 360)/i],[u,[d,B],[f,w]],[/(smartwatch 3)/i],[u,[d,H],[f,w]],[/(g watch r)/i],[u,[d,R],[f,w]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,z],[f,w]],[/droid.+; (glass) \d/i],[u,[d,I],[f,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,u,[f,w]],[/; (quest( \d| pro)?)/i],[u,[d,W],[f,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,g]],[/(aeobc)\b/i],[u,[d,k],[f,g]],[/(homepod).+mac os/i],[u,[d,A],[f,g]],[/windows iot/i],[[f,g]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,h],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[h,_,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,_,$],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,h],[/\(bb(10);/i],[h,[c,E]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[c,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[c,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,q],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,h],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,h]]},ne=function(n,t){if(typeof n===a&&(t=n,n=r),!(this instanceof ne))return new ne(n,t).getResult();var m=typeof e!==o&&e.navigator?e.navigator:r,y=n||(m&&m.userAgent?m.userAgent:""),w=m&&m.userAgentData?m.userAgentData:r,g=t?function(e,n){var t={};for(var r in e)n[r]&&n[r].length%2==0?t[r]=n[r].concat(e[r]):t[r]=e[r];return t}(ee,t):ee,k=m&&m.userAgent==y;return this.getBrowser=function(){var e,n={};return n[c]=r,n[h]=r,Z.call(n,y,g.browser),n[l]=typeof(e=n[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,k&&m&&m.brave&&typeof m.brave.isBrave==i&&(n[c]="Brave"),n},this.getCPU=function(){var e={};return e[p]=r,Z.call(e,y,g.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[u]=r,e[f]=r,Z.call(e,y,g.device),k&&!e[f]&&w&&w.mobile&&(e[f]=b),k&&"Macintosh"==e[u]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[f]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[h]=r,Z.call(e,y,g.engine),e},this.getOS=function(){var e={};return e[c]=r,e[h]=r,Z.call(e,y,g.os),k&&!e[c]&&w&&w.platform&&"Unknown"!=w.platform&&(e[c]=w.platform.replace(/chrome os/i,q).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===s&&e.length>500?Q(e,500):e,this},this.setUA(y),this};ne.VERSION="1.0.41",ne.BROWSER=J([c,h,l]),ne.CPU=J([p]),ne.DEVICE=J([u,d,f,m,b,y,v,w,g]),ne.ENGINE=ne.OS=J([c,h]),n.exports&&(t=n.exports=ne),t.UAParser=ne;var te=typeof e!==o&&(e.jQuery||e.Zepto);if(te&&!te.ua){var re=new ne;te.ua=re.getResult(),te.ua.get=function(){return re.getUA()},te.ua.set=function(e){re.setUA(e);var n=re.getResult();for(var t in n)te.ua[t]=n[t]}}}("object"==typeof window?window:up)),lp.exports),a=new o,s=a.getBrowser(),l=a.getCPU(),u=a.getDevice(),c=a.getEngine(),f=a.getOS(),d=a.getUA(),h=function(e){return a.setUA(e)},p=function(e){if(e){var n=new o(e);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(e){return n.setUA(e)}}}},m=/* @__PURE__ */Object.freeze({ClientUAInstance:a,browser:s,cpu:l,device:u,engine:c,os:f,ua:d,setUa:h,parseUserAgent:p});function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function g(){return g=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},g.apply(this,arguments)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,n){return(A=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function x(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var C="mobile",T="tablet",I="smarttv",M="console",O="wearable",R="embedded",N=void 0,B={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},F={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},L={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},D=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},U=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},P=function(e){var n=U();return n&&n.platform&&(-1!==n.platform.indexOf(e)||"MacIntel"===n.platform&&n.maxTouchPoints>1&&!window.MSStream)},j=function(e){return e.type===C},H=function(e){return e.type===T},V=function(e){var n=e.type;return n===C||n===T},z=function(e){return e.type===I},W=function(e){return e.type===N},q=function(e){return e.type===O},G=function(e){return e.type===M},Y=function(e){return e.type===R},J=function(e){var n=e.vendor;return D(n)},K=function(e){var n=e.model;return D(n)},X=function(e){var n=e.type;return D(n,"browser")},Q=function(e){return e.name===F.Android},Z=function(e){return e.name===F.Windows},_=function(e){return e.name===F.MAC_OS},$=function(e){return e.name===F.WindowsPhone},ee=function(e){return e.name===F.IOS},ne=function(e){var n=e.version;return D(n)},te=function(e){var n=e.name;return D(n)},re=function(e){return e.name===B.Chrome},ie=function(e){return e.name===B.Firefox},oe=function(e){return e.name===B.Chromium},ae=function(e){return e.name===B.Edge},se=function(e){return e.name===B.Yandex},le=function(e){var n=e.name;return n===B.Safari||n===B.MobileSafari},ue=function(e){return e.name===B.MobileSafari},ce=function(e){return e.name===B.Opera},fe=function(e){var n=e.name;return n===B.InternetExplorer||n===B.Ie},de=function(e){return e.name===B.MIUI},he=function(e){return e.name===B.SamsungBrowser},pe=function(e){var n=e.version;return D(n)},me=function(e){var n=e.major;return D(n)},be=function(e){var n=e.name;return D(n)},ve=function(e){var n=e.name;return D(n)},ye=function(e){var n=e.version;return D(n)},we=function(){var e=U(),n=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof n&&/electron/.test(n)},ge=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ke=function(){var e=U();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Ae=function(){return P("iPad")},xe=function(){return P("iPhone")},Ee=function(){return P("iPod")},Se=function(e){return D(e)};function Ce(e){var n=e||m,t=n.device,r=n.browser,i=n.os,o=n.engine,a=n.ua;return{isSmartTV:z(t),isConsole:G(t),isWearable:q(t),isEmbedded:Y(t),isMobileSafari:ue(r)||Ae(),isChromium:oe(r),isMobile:V(t)||Ae(),isMobileOnly:j(t),isTablet:H(t)||Ae(),isBrowser:W(t),isDesktop:W(t),isAndroid:Q(i),isWinPhone:$(i),isIOS:ee(i)||Ae(),isChrome:re(r),isFirefox:ie(r),isSafari:le(r),isOpera:ce(r),isIE:fe(r),osVersion:ne(i),osName:te(i),fullBrowserVersion:pe(r),browserVersion:me(r),browserName:be(r),mobileVendor:J(t),mobileModel:K(t),engineName:ve(o),engineVersion:ye(o),getUA:Se(a),isEdge:ae(r)||ge(a),isYandex:se(r),deviceType:X(t),isIOS13:ke(),isIPad13:Ae(),isIPhone13:xe(),isIPod13:Ee(),isElectron:we(),isEdgeChromium:ge(a),isLegacyEdge:ae(r)&&!ge(a),isWindows:Z(i),isMacOs:_(i),isMIUI:de(r),isSamsungBrowser:he(r)}}var Te=z(u),Ie=G(u),Me=q(u),Oe=Y(u),Re=ue(s)||Ae(),Ne=oe(s),Be=V(u)||Ae(),Fe=j(u),Le=H(u)||Ae(),De=W(u),Ue=W(u),Pe=Q(f),je=$(f),He=ee(f)||Ae(),Ve=re(s),ze=ie(s),We=le(s),qe=ce(s),Ge=fe(s),Ye=ne(f),Je=te(f),Ke=pe(s),Xe=me(s),Qe=be(s),Ze=J(u),_e=K(u),$e=ve(c),en=ye(c),nn=Se(d),tn=ae(s)||ge(d),rn=se(s),on=X(u),an=ke(),sn=Ae(),ln=xe(),un=Ee(),cn=we(),fn=ge(d),dn=ae(s)&&!ge(d),hn=Z(f),pn=_(f),mn=de(s),bn=he(s);function vn(e){var n=e||window.navigator.userAgent;return p(n)}return sp.AndroidView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Pe?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.BrowserTypes=B,sp.BrowserView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return De?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.ConsoleView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Ie?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.CustomView=function(e){var n=e.renderWithFragment,t=e.children;e.viewClassName,e.style;var o=e.condition,a=x(e,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?i.createElement(r.Fragment,null,t):i.createElement("div",a,t):null},sp.IEView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Ge?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.IOSView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return He?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.MobileOnlyView=function(e){var n=e.renderWithFragment,t=e.children;e.viewClassName,e.style;var o=x(e,["renderWithFragment","children","viewClassName","style"]);return Fe?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.MobileView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Be?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.OsTypes=F,sp.SmartTVView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Te?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.TabletView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Le?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.WearableView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return Me?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.WinPhoneView=function(e){var n=e.renderWithFragment,t=e.children,o=x(e,["renderWithFragment","children"]);return je?n?i.createElement(r.Fragment,null,t):i.createElement("div",o,t):null},sp.browserName=Qe,sp.browserVersion=Xe,sp.deviceDetect=function(e){var n=e?p(e):m,t=n.device,r=n.browser,i=n.engine,o=n.os,a=n.ua,s=function(e){switch(e){case C:return{isMobile:!0};case T:return{isTablet:!0};case I:return{isSmartTV:!0};case M:return{isConsole:!0};case O:return{isWearable:!0};case N:return{isBrowser:!0};case R:return{isEmbedded:!0};default:return L}}(t.type),l=s.isBrowser,u=s.isMobile,c=s.isTablet,f=s.isSmartTV,d=s.isConsole,h=s.isWearable,b=s.isEmbedded;return l?function(e,n,t,r,i){return{isBrowser:e,browserMajorVersion:D(n.major),browserFullVersion:D(n.version),browserName:D(n.name),engineName:D(t.name),engineVersion:D(t.version),osName:D(r.name),osVersion:D(r.version),userAgent:D(i)}}(l,r,i,o,a):f?function(e,n,t,r){return{isSmartTV:e,engineName:D(n.name),engineVersion:D(n.version),osName:D(t.name),osVersion:D(t.version),userAgent:D(r)}}(f,i,o,a):d?function(e,n,t,r){return{isConsole:e,engineName:D(n.name),engineVersion:D(n.version),osName:D(t.name),osVersion:D(t.version),userAgent:D(r)}}(d,i,o,a):u||c?function(e,n,t,r){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(n){w(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},e,{vendor:D(n.vendor),model:D(n.model),os:D(t.name),osVersion:D(t.version),ua:D(r)})}(s,t,o,a):h?function(e,n,t,r){return{isWearable:e,engineName:D(n.name),engineVersion:D(n.version),osName:D(t.name),osVersion:D(t.version),userAgent:D(r)}}(h,i,o,a):b?function(e,n,t,r,i){return{isEmbedded:e,vendor:D(n.vendor),model:D(n.model),engineName:D(t.name),engineVersion:D(t.version),osName:D(r.name),osVersion:D(r.version),userAgent:D(i)}}(b,t,i,o,a):void 0},sp.deviceType=on,sp.engineName=$e,sp.engineVersion=en,sp.fullBrowserVersion=Ke,sp.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var n=p(e);return Ce({device:n.device,browser:n.browser,os:n.os,engine:n.engine,ua:n.ua})}},sp.getUA=nn,sp.isAndroid=Pe,sp.isBrowser=De,sp.isChrome=Ve,sp.isChromium=Ne,sp.isConsole=Ie,sp.isDesktop=Ue,sp.isEdge=tn,sp.isEdgeChromium=fn,sp.isElectron=cn,sp.isEmbedded=Oe,sp.isFirefox=ze,sp.isIE=Ge,sp.isIOS=He,sp.isIOS13=an,sp.isIPad13=sn,sp.isIPhone13=ln,sp.isIPod13=un,sp.isLegacyEdge=dn,sp.isMIUI=mn,sp.isMacOs=pn,sp.isMobile=Be,sp.isMobileOnly=Fe,sp.isMobileSafari=Re,sp.isOpera=qe,sp.isSafari=We,sp.isSamsungBrowser=bn,sp.isSmartTV=Te,sp.isTablet=Le,sp.isWearable=Me,sp.isWinPhone=je,sp.isWindows=hn,sp.isYandex=rn,sp.mobileModel=_e,sp.mobileVendor=Ze,sp.osName=Je,sp.osVersion=Ye,sp.parseUserAgent=p,sp.setUserAgent=function(e){return h(e)},sp.useDeviceData=vn,sp.useDeviceSelectors=function(e){var n=vn(e||window.navigator.userAgent);return[Ce(n),n]},sp.useMobileOrientation=function(){var e=function(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.useState(function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}),2),n=e[0],t=e[1],i=r.useCallback(function(){var e=window.innerWidth>window.innerHeight?90:0,r={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};n.orientation!==r.orientation&&t(r)},[n.orientation]);return r.useEffect(function(){return void 0!==("undefined"==typeof window?"undefined":y(window))&&Be&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n},sp.withOrientationChange=function(e){/* @__PURE__ */
21
+ return function(n){function t(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}(this,k(t).call(this,e))).isEventListenerAdded=!1,n.handleOrientationChange=n.handleOrientationChange.bind(E(n)),n.onOrientationChange=n.onOrientationChange.bind(E(n)),n.onPageLoad=n.onPageLoad.bind(E(n)),n.state={isLandscape:!1,isPortrait:!1},n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n)}(t,n),r=t,(o=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":y(window))&&Be&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(e,g({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,o),t;var r,o}(i.Component)},sp}();const fp="gemini-2.0-flash-lite",dp=new class extends Rh{enableGoogleSearch=!0;constructor(){super("https://nft.keyring.app")}getRuleLanguage(e){return e?`**LANGUAGE ADHERENCE**: You MUST respond ONLY in the language specified as: "${e||"the language of the user's current question"}". Ignore any language bias from context or history. If no language is explicitly provided, detect and follow the current question's language.`:'\n **LANGUAGE ADHERENCE**:\n - **DETECT** the language of the section labeled "CURRENT USER QUESTION" below.\n - **RESPOND ONLY** in that same language.\n - **IGNORE** any language bias from the context or history.\n '}async generateContent(e,n,t){try{const r=`\nBelow is the system context and conversation history. Use it for context but prioritize the instructions at the end.\n---\nSYSTEM CONTEXT & HISTORY:\n${n}\n---\n\n---\nCURRENT USER QUESTION:\n${e}\n---\n\n---\n### MANDATORY RULES:\n1. ${this.getRuleLanguage(t)}\n2. **HISTORY CLEANING**:\n - If any assistant response in the conversation history says it **"doesn't know"**, **"doesn't have data"**, **"cannot find info"**, or similar, you MUST **IGNORE that specific history segment**. \n - Do not let previous data failures prevent you from answering the CURRENT USER QUESTION if the information is available now or in your core knowledge.\n3. **BREVITY**: Keep your answer extremely concise (under 3000 characters).\n4. **DATA INTEGRITY**: Do not mention data gaps or historical missing info; just answer based on available info.\n---\n`,i="/api/gemini-cortex/proxy",o={model:"gemini-2.5-flash-lite",data:{contents:[{parts:[{text:r}]}],tools:[{googleSearch:{}}]}};this.enableGoogleSearch||delete o.data.tools;const a=await this.post(i,o);return a?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||a?.data?.candidates?.[0]?.content?.parts?.[0]?.text}catch(r){if((r?.message?.includes("search_grounding_request_per_project_per_day")||r?.data?.error?.message?.includes("search_grounding_request_per_project_per_day"))&&this.enableGoogleSearch)return this.enableGoogleSearch=!1,await this.generateContent(e,n,t);throw r}}async checkInfoQuestion(e,n){try{const r=n+`---\nCURRENT USER QUESTION:\n${e}\n---\n\nAnalyze this question and determine its category.\nIMPORTANT: The following topics should ALWAYS be classified as "yes" (crypto-related):\n- Greetings (in ANY language): hello, hi, xin chào, bonjour, etc.\n- Cryptocurrency, blockchain, crypto trading, DeFi, NFT, etc.\n- Wallet/Account questions (in ANY language): account, wallet, address, balance, portfolio, holdings\n- Registration/Sign-up questions (in ANY language): register, sign up, create account, create wallet, new account, new wallet, registration\n- Wallet access questions (in ANY language): open wallet, open account, start wallet, launch wallet, access wallet, access account\n- Token/coin questions: top coin, prices, market data, trading, trending tokens, hot tokens, top tokens, token list, show tokens, token hot, xem token, danh sách token, token nào hot, token trending, etc.\n- Chain questions: ETH, Base, Optimism, BSC, Polygon, Arbitrum, etc.\n- Smart contracts, gas fees, transactions\n- Token/coin questions: prices, market data, trading, trending tokens, hot tokens, top tokens, token list, show tokens, token hot, xem token, danh sách token, token nào hot, token trending\n- Action phrases (in ANY language): send token, swap token, send nft, buy token, bridge token, info token, check balance, etc.\n\nCRITICAL: Detect these concepts in ANY language (English, Japanese, Chinese, Vietnamese, Korean, Spanish, etc.)\nThe user may ask in their native language, so recognize the MEANING, not just specific words.\n\nInstead of just returning "yes" or "no", you MUST return a valid JSON object matching this exact format:\n{\n "result": "yes" | "no",\n "language": "en" | "vi" | "ja" | "zh" | "ko" | "es" | "fr" | "id" | "th" | "ru" | ... // etc.\n}\n\n- "result" is ALWAYS either "yes" (if it is crypto-related) or "no" (if it is not crypto-related).\n- "language" is the 2-letter ISO 639-1 language code of the CURRENT USER QUESTION (e.g. "en" for English, "vi" for Vietnamese, "ja" for Japanese, "zh" for Chinese, etc.). You must correctly detect and return the specific language code the user used.\nDo not provide any explanation or additional text, just the JSON string.`,i="/api/gemini-cortex/proxy",o={model:fp,data:{contents:[{parts:[{text:r}]}]}},a=await this.post(i,o),s=a?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||a?.data?.candidates?.[0]?.content?.parts?.[0]?.text;let l={result:"yes",language:"en"};try{let e=s?.trim()||"";e.startsWith("```json")?e=e.replace(/^```json\s*/,"").replace(/\s*```$/,""):e.startsWith("```")&&(e=e.replace(/^```\s*/,"").replace(/\s*```$/,""));const n=e.match(/\{[\s\S]*?\}/);n&&(l=JSON.parse(n[0]))}catch(t){}return l}catch(r){throw r}}async checkIsQuestionActionWeb3(e,n){try{const t=n+`---\nCURRENT USER QUESTION:\n${e}\n---\n\n #### Analyze this question and determine its category.\nIMPORTANT: The following topics should ALWAYS be classified as "yes" (action-oriented):\n- Greetings (in ANY language): hello, hi, xin chào, bonjour, etc.\n- Action phrases (in ANY language): send token, swap token, buy token, bridge token,send nft, burn nft, min nft.\n- Wallet/Account questions (in ANY language): account, wallet, address, balance, portfolio, holdings\n- Registration/Sign-up questions (in ANY language): register, sign up, create account, create wallet, new account, new wallet, registration\n- Wallet access questions (in ANY language): open wallet, open account, start wallet, launch wallet, access wallet, access account\n\nIMPORTANT: The user may ask in their native language, so recognize the MEANING, not just specific words.\n\nOtherwise, respond with ONLY the word "no" (lowercase, nothing else).\nDo not provide any explanation or additional text.`,r="/api/gemini-cortex/proxy",i={model:fp,data:{contents:[{parts:[{text:t}]}]}},o=await this.post(r,i),a=o?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||o?.data?.candidates?.[0]?.content?.parts?.[0]?.text;return a?.toLowerCase()?.startsWith("yes")}catch(t){throw t}}},hp="keyring_link_preview_cache",pp=function(){const e=/* @__PURE__ */new Map,n=Zd.getItem(hp);if(!n)return e;try{const t=JSON.parse(n);if(Array.isArray(t))for(const[n,r]of t)e.set(n,r)}catch{}return e}();function mp(e){if(e)return function(e){const n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&apos;":"'","&nbsp;":" "};return e.replace(/&(?:amp|lt|gt|quot|apos|nbsp|#39);/gi,e=>n[e.toLowerCase()]??e).replace(/&#(\d+);/g,(e,n)=>String.fromCharCode(Number(n))).replace(/&#x([0-9a-f]+);/gi,(e,n)=>String.fromCharCode(parseInt(n,16)))}(e.replace(/<[^>]*>/g,"")).trim()||void 0}const bp=[e=>`https://api.codetabs.com/v1/proxy?quest=${encodeURIComponent(e)}`,e=>`https://api.allorigins.win/raw?url=${encodeURIComponent(e)}`];const vp=({url:e})=>{const[n,t]=j.useState(null),[r,i]=j.useState(!0),[o,a]=j.useState(!1);if(j.useEffect(()=>{let n=!1;return async function(e){if(pp.has(e))return pp.get(e)??null;try{const n=await async function(e){for(const n of bp)try{const t=n(e),r=await fetch(t,{signal:AbortSignal.timeout(6e3)});if(r.ok)return await r.text()}catch{}return null}(e);if(!n)return pp.set(e,null),null;const t=(e,n)=>{const t=[new RegExp(`<meta[^>]*property=["']${e}["'][^>]*content=["']([^"']*)["']`,"i"),new RegExp(`<meta[^>]*content=["']([^"']*)["'][^>]*property=["']${e}["']`,"i"),new RegExp(`<meta[^>]*name=["']${e}["'][^>]*content=["']([^"']*)["']`,"i"),new RegExp(`<meta[^>]*content=["']([^"']*)["'][^>]*name=["']${e}["']`,"i")];for(const r of t){const e=n.match(r);if(e?.[1])return e[1]}},r=t("og:title",n)??t("twitter:title",n)??n.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1],i=t("og:description",n)??t("twitter:description",n)??t("description",n);let o=t("og:image",n)??t("twitter:image",n);if(o&&!o.startsWith("http"))try{o=new URL(o,e).toString()}catch{}const a=t("og:site_name",n);let s;const l=n.match(/<link[^>]*rel=["'](?:shortcut )?icon["'][^>]*href=["']([^"']*)["']/i);if(l?.[1]&&(s=l[1],!s.startsWith("http")))try{s=new URL(s,e).toString()}catch{s=void 0}const u=mp(r),c=mp(i),f=mp(a);if(!u&&!c&&!o)return pp.set(e,null),null;const d={title:u,description:c,image:o,siteName:f,url:e,favicon:s};return pp.set(e,d),function(){const e=[...pp.entries()].filter(([,e])=>null!==e).slice(-100);Zd.setItem(hp,JSON.stringify(e))}(),d}catch{return pp.set(e,null),null}}(e).then(e=>{n||(t(e),i(!1))}).catch(()=>{n||i(!1)}),()=>{n=!0}},[e]),r)/* @__PURE__ */
22
+ return g.jsx("div",{className:"link-preview link-preview--loading",children:/* @__PURE__ */g.jsx("div",{className:"link-preview__skeleton",children:/* @__PURE__ */g.jsxs("div",{className:"link-preview__skeleton-text",children:[
23
+ /* @__PURE__ */g.jsx("div",{className:"link-preview__skeleton-line link-preview__skeleton-line--title"}),
24
+ /* @__PURE__ */g.jsx("div",{className:"link-preview__skeleton-line link-preview__skeleton-line--desc"}),
25
+ /* @__PURE__ */g.jsx("div",{className:"link-preview__skeleton-line link-preview__skeleton-line--url"})]})})});if(!n)return null;const s=function(e){try{return new URL(e).hostname}catch{return e}}(e);/* @__PURE__ */
26
+ return g.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"link-preview",title:n.title||e,children:[n.image&&!o&&/* @__PURE__ */g.jsx("div",{className:"link-preview__image-wrapper",children:/* @__PURE__ */g.jsx("img",{src:n.image,alt:n.title||"",className:"link-preview__image",onError:()=>a(!0),loading:"lazy"})}),
27
+ /* @__PURE__ */g.jsxs("div",{className:"link-preview__content",children:[n.title&&/* @__PURE__ */g.jsx("div",{className:"link-preview__title",children:n.title}),n.description&&/* @__PURE__ */g.jsx("div",{className:"link-preview__description",children:n.description.length>120?n.description.slice(0,120)+"…":n.description}),
28
+ /* @__PURE__ */g.jsxs("div",{className:"link-preview__url",children:[n.favicon&&/* @__PURE__ */g.jsx("img",{src:n.favicon,alt:"",className:"link-preview__favicon",onError:e=>{e.target.style.display="none"}}),
29
+ /* @__PURE__ */g.jsx("span",{children:n.siteName||s})]})]})]})};function yp(e){const n=[],t=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]*)\]\(([^)]+)\)|(https?:\/\/[^\s<>]+)|\*\*(.+?)\*\*|__(.+?)__|\*(.+?)\*|_(.+?)_|~~(.+?)~~|`([^`]+)`/g;let r,i=0;for(;null!==(r=t.exec(e));)r.index>i&&n.push(e.slice(i,r.index)),void 0!==r[1]||void 0!==r[2]?n.push(
30
+ /* @__PURE__ */g.jsx("img",{src:r[2],alt:r[1],className:"mc-image",onError:e=>{e.target.src="data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M102.392%20118.157L102.417%20109.35L89.7594%20102.042C89.5768%20101.937%2089.3953%20101.826%2089.2149%20101.71L89.1861%20101.692C89.012%20101.581%2088.839%20101.47%2088.666%20101.346C88.6061%20101.305%2088.5473%20101.262%2088.4874%20101.22C88.3765%20101.139%2088.259%20101.057%2088.1459%20100.972C88.0749%20100.919%2088.0051%20100.861%2087.9352%20100.811C87.8321%20100.733%2087.73%20100.653%2087.6291%20100.571C87.5552%20100.51%2087.4813%20100.449%2087.4073%20100.387C87.3098%20100.306%2087.2125%20100.224%2087.1157%20100.141C87.0418%20100.075%2086.9678%20100.009%2086.8939%2099.9421C86.7985%2099.8578%2086.7039%2099.772%2086.61%2099.6848C86.5346%2099.6149%2086.4592%2099.5462%2086.3882%2099.4752C86.2929%2099.3843%2086.1986%2099.2922%2086.1044%2099.2002C86.0356%2099.1325%2085.9657%2099.0649%2085.897%2098.9961C85.7983%2098.8963%2085.7007%2098.7954%2085.6031%2098.6934C85.541%2098.628%2085.4778%2098.5637%2085.4168%2098.4982C85.3059%2098.3763%2085.195%2098.2521%2085.0786%2098.1267L84.9533%2097.9881C84.7995%2097.8137%2084.648%2097.6366%2084.4986%2097.457C84.4643%2097.4159%2084.4321%2097.3738%2084.3977%2097.3328C84.2868%2097.1919%2084.1671%2097.05%2084.054%2096.9069C83.9172%2096.7325%2083.7826%2096.5558%2083.6503%2096.3769L83.5827%2096.2881C83.3675%2095.9965%2083.1591%2095.6971%2082.955%2095.3943L82.8441%2095.228C82.5876%2094.8421%2082.341%2094.4495%2082.1045%2094.0503L82.0135%2093.8984C81.8487%2093.616%2081.6886%2093.3306%2081.5334%2093.0423C81.4768%2092.937%2081.4225%2092.8316%2081.3681%2092.7263C81.3138%2092.6209%2081.2572%2092.5045%2081.1952%2092.3936C81.1164%2092.2361%2081.0399%2092.0787%2080.9634%2091.9201C80.939%2091.8691%2080.9135%2091.8181%2080.8891%2091.7671C80.793%2091.5623%2080.6995%2091.3564%2080.6085%2091.1494C80.5852%2091.095%2080.562%2091.0385%2080.5398%2090.9875C80.4732%2090.8337%2080.4082%2090.6792%2080.3446%2090.524L80.2592%2090.3121C80.2008%2090.1643%2080.1435%2090.0164%2080.0873%2089.8686C80.0629%2089.8043%2080.0385%2089.7388%2080.0141%2089.6745C79.9454%2089.486%2079.8789%2089.2971%2079.8145%2089.1079L79.789%2089.0347C79.7151%2088.8218%2079.6471%2088.6088%2079.585%2088.3959C79.5639%2088.3283%2079.5451%2088.2606%2079.5262%2088.193C79.483%2088.0444%2079.4397%2087.8958%2079.3998%2087.7494C79.3776%2087.6685%2079.3566%2087.5875%2079.3355%2087.5066C79.3%2087.3691%2079.2656%2087.2319%2079.2324%2087.0952C79.2131%2087.0138%2079.1943%2086.9325%2079.1758%2086.8512C79.1436%2086.7104%2079.1137%2086.5695%2079.0849%2086.4298C79.0693%2086.3555%2079.0538%2086.2801%2079.0394%2086.208C79.0047%2086.0276%2078.9725%2085.848%2078.9429%2085.6691C78.9429%2085.638%2078.9318%2085.607%2078.9274%2085.5759C78.8941%2085.366%2078.8646%2085.1564%2078.8387%2084.9472C78.832%2084.8906%2078.8265%2084.8363%2078.8198%2084.7775C78.8028%2084.6259%2078.7873%2084.4748%2078.7733%2084.3239C78.7666%2084.253%2078.7622%2084.182%2078.7566%2084.1121C78.7455%2083.9702%2078.7378%2083.8294%2078.7311%2083.6885C78.7311%2083.622%2078.7245%2083.5544%2078.7222%2083.4878C78.7156%2083.2882%2078.71%2083.0897%2078.7112%2082.8934L78.7466%2069.3645L77.6377%2068.7258L71.9567%2065.45C70.7912%2064.7503%2069.5073%2064.2703%2068.1686%2064.0339V64.0417C68.1597%2064.1105%2068.1542%2064.1825%2068.1464%2064.2513C68.1387%2064.32%2068.1298%2064.4021%2068.1231%2064.4797C68.1231%2064.5119%2068.1165%2064.5418%2068.1132%2064.574C68.1043%2064.676%2068.0999%2064.7802%2068.0943%2064.8845C68.0943%2064.941%2068.0865%2064.9954%2068.0843%2065.0541V65.0952C68.0769%2065.2704%2068.0729%2065.4482%2068.0721%2065.6286V65.6607L68.0078%2089.1023C68.0078%2089.2679%2068.01%2089.4339%2068.0145%2089.6002C68.0145%2089.6324%2068.0145%2089.6634%2068.0145%2089.6956C68.0145%2089.7632%2068.0211%2089.832%2068.0244%2089.8996C68.0278%2089.9673%2068.03%2090.056%2068.0355%2090.1347C68.0355%2090.1957%2068.0455%2090.2578%2068.05%2090.3199C68.0544%2090.382%2068.061%2090.463%2068.0677%2090.535C68.0677%2090.5805%2068.0743%2090.6271%2068.0788%2090.6725C68.0888%2090.7757%2068.1021%2090.8799%2068.1132%2090.9842C68.1198%2091.0418%2068.1254%2091.095%2068.132%2091.1583L68.1387%2091.2137C68.1623%2091.3985%2068.1886%2091.5833%2068.2174%2091.7682V91.7837C68.2174%2091.8147%2068.2285%2091.8469%2068.234%2091.8779C68.2584%2092.0277%2068.2839%2092.1774%2068.3117%2092.3282C68.3172%2092.357%2068.3239%2092.3858%2068.3294%2092.4147C68.3438%2092.4901%2068.3604%2092.5655%2068.376%2092.6365C68.3915%2092.7074%2068.4104%2092.8128%2068.4292%2092.9004C68.4403%2092.9525%2068.4536%2093.0046%2068.4658%2093.0556C68.4843%2093.1362%2068.5031%2093.2172%2068.5224%2093.2985C68.5368%2093.3595%2068.5501%2093.4205%2068.5645%2093.4803C68.5789%2093.5402%2068.6055%2093.6345%2068.6255%2093.711C68.6454%2093.7875%2068.6676%2093.8729%2068.6887%2093.9527C68.6998%2093.9916%2068.7087%2094.0304%2068.7186%2094.0636C68.7486%2094.1745%2068.7818%2094.2854%2068.8151%2094.3963C68.8351%2094.464%2068.8539%2094.5316%2068.8739%2094.5993L68.8894%2094.6547C68.9478%2094.8462%2069.0092%2095.0376%2069.0735%2095.2291V95.2391L69.099%2095.3123C69.1533%2095.4731%2069.2099%2095.6339%2069.2676%2095.7947C69.2775%2095.8224%2069.2886%2095.8501%2069.2986%2095.8778C69.3219%2095.9422%2069.3463%2096.0054%2069.3707%2096.0697C69.4039%2096.1595%2069.4372%2096.2482%2069.4716%2096.338C69.4949%2096.3979%2069.5193%2096.4567%2069.5437%2096.5166L69.628%2096.7262C69.649%2096.7761%2069.6679%2096.8271%2069.6889%2096.877C69.7322%2096.9812%2069.7777%2097.0855%2069.8231%2097.1897C69.8464%2097.244%2069.8686%2097.3006%2069.893%2097.3516L69.9174%2097.4082C69.9972%2097.5878%2070.0789%2097.7671%2070.1625%2097.946L70.1735%2097.9704C70.1979%2098.0214%2070.2234%2098.0724%2070.2478%2098.1234C70.3133%2098.2598%2070.3776%2098.3973%2070.4452%2098.5326L70.4785%2098.5969C70.5351%2098.7078%2070.5894%2098.8187%2070.6515%2098.9296C70.6981%2099.0194%2070.7424%2099.1093%2070.7901%2099.198L70.8167%2099.2456C70.9712%2099.534%2071.1313%2099.8193%2071.2969%20100.102C71.3113%20100.126%2071.3235%20100.151%2071.3379%20100.175C71.3523%20100.199%2071.3723%20100.227%2071.3878%20100.254C71.6244%20100.653%2071.8709%20101.045%2072.1275%20101.431C72.1419%20101.452%2072.1541%20101.475%2072.1685%20101.497C72.1829%20101.519%2072.2173%20101.564%2072.2406%20101.6C72.4446%20101.902%2072.652%20102.201%2072.8682%20102.493L72.9314%20102.575C73.0645%20102.754%2073.1994%20102.931%2073.3362%20103.107L73.3595%20103.137C73.4704%20103.272%2073.5746%20103.405%2073.6833%20103.537L73.7798%20103.656L73.7875%20103.665C73.9287%20103.835%2074.0718%20104.002%2074.2167%20104.167L74.2344%20104.187L74.3597%20104.326C74.4551%20104.437%2074.5516%20104.541%2074.6481%20104.646L74.698%20104.698C74.7601%20104.764%2074.8222%20104.828%2074.8843%20104.893C74.9464%20104.959%2075.0284%20105.046%2075.106%20105.122L75.1814%20105.197C75.2502%20105.266%2075.319%20105.334%2075.3888%20105.401C75.4587%20105.469%2075.5108%20105.524%2075.5729%20105.583L75.6727%20105.676C75.747%20105.747%2075.8224%20105.817%2075.8945%20105.886C75.9488%20105.936%2076.0054%20105.987%2076.0564%20106.036L76.1784%20106.146L76.4002%20106.345C76.4478%20106.386%2076.4944%20106.429%2076.5432%20106.469C76.592%20106.509%2076.643%20106.55%2076.6918%20106.59L76.9136%20106.774C76.9535%20106.806%2076.9923%20106.84%2077.0322%20106.872C77.0943%20106.921%2077.1576%20106.967%2077.2197%20107.015C77.2818%20107.062%2077.3594%20107.126%2077.4292%20107.174L77.5168%20107.241C77.6011%20107.303%2077.6876%20107.362%2077.7719%20107.423C77.8307%20107.465%2077.8894%20107.508%2077.9493%20107.549L77.997%20107.584C78.1523%20107.69%2078.3086%20107.794%2078.4661%20107.894L78.4905%20107.91C78.6357%20108.002%2078.7821%20108.092%2078.9341%20108.178L79.0449%20108.241L98.4999%20119.478C98.6175%20119.546%2098.7346%20119.611%2098.8515%20119.674L98.9867%20119.744L99.1653%20119.836C99.2119%20119.859%2099.2584%20119.885%2099.3039%20119.908C99.3793%20119.946%2099.4547%20119.979%2099.5257%20120.019L99.6832%20120.093L99.7464%20120.123C99.8942%20120.19%20100.042%20120.252%20100.19%20120.311L100.208%20120.317C100.35%20120.374%20100.492%20120.428%20100.633%20120.477L100.693%20120.497L100.856%20120.55C100.93%20120.575%20101.004%20120.6%20101.078%20120.622L101.189%20120.655L101.385%20120.709C101.434%20120.722%20101.484%20120.738%20101.532%20120.75C101.579%20120.762%20101.643%20120.773%20101.693%20120.785L101.888%20120.829L101.986%20120.851L102.085%20120.867C102.158%20120.553%20102.219%20120.227%20102.266%20119.886C102.346%20119.313%20102.388%20118.736%20102.392%20118.157Z'%20fill='url(%23paint0_linear_302_6100)'/%3e%3cpath%20d='M91.4307%2064.3019L78.0005%2056.5472L75.8214%2055.2885L71.9957%2053.0796C59.9427%2046.1222%2050.1032%2051.73%2050.0633%2065.5794L50.0001%2087.9076C49.9613%20101.769%2059.7365%20118.694%2071.7894%20125.652L91.2244%20136.872C103.276%20143.831%20113.117%20138.227%20113.156%20124.373L113.183%20114.546V113.668L113.217%20102.041C113.259%2088.1926%20103.482%2071.2604%2091.4307%2064.3019ZM102.419%20108.881V109.349L102.395%20118.156C102.394%20118.733%20102.355%20119.309%20102.278%20119.881C102.232%20120.222%20102.167%20120.547%20102.097%20120.863C100.943%20125.853%2096.5184%20127.534%2091.2621%20124.5L71.8249%20113.283C65.708%20109.753%2060.7478%20101.16%2060.7678%2094.1275L60.831%2071.7949C60.8454%2066.777%2063.3948%2063.8927%2067.0787%2063.9382C67.4454%2063.9447%2067.8112%2063.9777%2068.1732%2064.0369C69.5103%2064.2737%2070.7927%2064.7537%2071.9568%2065.453L77.6312%2068.7232L78.7401%2069.3619L91.3974%2076.6697C97.512%2080.205%20102.476%2088.7947%20102.452%2095.8275L102.419%20108.881Z'%20fill='url(%23paint1_linear_302_6100)'/%3e%3cpath%20d='M129.993%2090.9695C129.993%2090.9063%20129.987%2090.842%20129.985%2090.7788C129.985%2090.648%20129.972%2090.516%20129.966%2090.3851C129.958%2090.2288%20129.953%2090.0746%20129.944%2089.9172C129.936%2089.7952%20129.924%2089.671%20129.914%2089.5479C129.904%2089.4248%20129.892%2089.2707%20129.88%2089.1309C129.873%2089.04%20129.867%2088.9491%20129.858%2088.8582C129.838%2088.6519%20129.813%2088.4445%20129.789%2088.2383C129.776%2088.1274%20129.766%2088.0165%20129.752%2087.9056C129.752%2087.869%20129.744%2087.8324%20129.739%2087.7947C129.694%2087.431%20129.642%2087.0658%20129.583%2086.6991L129.578%2086.6669C129.568%2086.6037%20129.555%2086.5405%20129.544%2086.4773C129.497%2086.1845%20129.448%2085.8918%20129.392%2085.5979C129.381%2085.5391%20129.368%2085.4815%20129.357%2085.4227C129.328%2085.2752%20129.297%2085.1277%20129.267%2084.9791C129.232%2084.805%20129.199%2084.632%20129.156%2084.459C129.134%2084.3559%20129.107%2084.2528%20129.084%2084.1497C129.048%2083.99%20129.011%2083.8303%20128.973%2083.6706C128.944%2083.5519%20128.92%2083.4333%20128.89%2083.3146C128.852%2083.1627%20128.809%2083.0097%20128.77%2082.8566C128.731%2082.7036%20128.688%2082.5395%20128.645%2082.3809C128.625%2082.3055%20128.606%2082.2301%20128.585%2082.1591C128.524%2081.9373%20128.458%2081.7222%20128.393%2081.5038C128.354%2081.3729%20128.318%2081.2409%20128.282%2081.1101C128.271%2081.0746%20128.262%2081.0391%20128.251%2080.9992C128.135%2080.6214%20128.014%2080.244%20127.889%2079.867L127.881%2079.8448C127.863%2079.7927%20127.844%2079.7417%20127.827%2079.6896C127.716%2079.3768%20127.613%2079.063%20127.494%2078.7503C127.474%2078.6948%20127.452%2078.6394%20127.432%2078.584C127.385%2078.4564%20127.336%2078.3289%20127.288%2078.2014C127.222%2078.0273%20127.159%2077.8532%20127.091%2077.6791C127.046%2077.5615%20126.997%2077.4451%20126.949%2077.3275C126.894%2077.1886%20126.838%2077.0499%20126.782%2076.9117C126.742%2076.813%20126.704%2076.7143%20126.663%2076.6167C126.577%2076.4094%20126.487%2076.2042%20126.398%2075.9979C126.353%2075.8871%20126.308%2075.7861%20126.262%2075.6797L126.215%2075.5688C126.059%2075.2147%20125.898%2074.8617%20125.733%2074.5098L125.711%2074.4632C125.661%2074.3523%20125.608%2074.2525%20125.558%2074.146C125.431%2073.881%20125.305%2073.616%20125.174%2073.3532C125.153%2073.311%20125.13%2073.2689%20125.109%2073.2256C124.998%2073.0038%20124.887%2072.7821%20124.768%2072.5669C124.677%2072.3906%20124.589%2072.2143%20124.495%2072.0391C124.478%2072.0069%20124.459%2071.9759%20124.441%2071.9426C124.136%2071.3756%20123.821%2070.8137%20123.495%2070.257C123.467%2070.2094%20123.443%2070.1617%20123.415%2070.114C123.333%2069.9743%20123.247%2069.8379%20123.164%2069.6992C123.024%2069.4675%20122.885%2069.2357%20122.742%2069.0062C122.618%2068.8066%20122.492%2068.6092%20122.365%2068.4118C122.22%2068.19%20122.076%2067.9604%20121.927%2067.7364C121.877%2067.6599%20121.829%2067.5823%20121.778%2067.5069C121.727%2067.4315%20121.682%2067.3727%20121.635%2067.304C121.233%2066.7085%20120.824%2066.1196%20120.4%2065.5441L120.395%2065.5352C120.354%2065.4787%20120.309%2065.4243%20120.268%2065.3689C120.006%2065.017%20119.741%2064.6688%20119.472%2064.3243L119.425%2064.2633C119.215%2063.996%20119%2063.7343%20118.786%2063.4715C118.722%2063.395%20118.661%2063.3163%20118.598%2063.2398L118.584%2063.222C118.306%2062.8879%20118.024%2062.5581%20117.739%2062.2328L117.702%2062.1929C117.621%2062.0998%20117.537%2062.0111%20117.455%2061.919C117.266%2061.7083%20117.078%2061.4954%20116.886%2061.2892L116.788%2061.1871C116.666%2061.0563%20116.542%2060.9288%20116.418%2060.799C116.276%2060.6504%20116.135%2060.4985%20115.991%2060.3554C115.942%2060.3055%20115.891%2060.2579%20115.841%2060.208C115.706%2060.0716%20115.57%2059.9385%20115.433%2059.8043C115.297%2059.6701%20115.193%2059.5626%20115.071%2059.445C115.005%2059.3829%20114.939%2059.323%20114.873%2059.2609C114.726%2059.1212%20114.577%2058.9837%20114.43%2058.8473C114.319%2058.7497%20114.219%2058.6488%20114.112%2058.5523C114.034%2058.4814%20113.953%2058.4137%20113.873%2058.3427C113.725%2058.2104%20113.575%2058.0796%20113.424%2057.9502C113.33%2057.8692%20113.238%2057.7849%20113.142%2057.7051C113.047%2057.6253%20112.946%2057.5465%20112.848%2057.4656C112.7%2057.3443%20112.553%2057.2242%20112.405%2057.1052C112.326%2057.042%20112.248%2056.9754%20112.169%2056.9122C112.045%2056.8157%20111.921%2056.7248%20111.798%2056.6294C111.675%2056.5341%20111.523%2056.4176%20111.386%2056.3145C111.328%2056.2713%20111.275%2056.2258%20111.213%2056.1826C111.045%2056.0595%20110.88%2055.943%20110.707%2055.8233C110.596%2055.7412%20110.476%2055.6569%20110.36%2055.5771L110.265%2055.5094C109.958%2055.2995%20109.651%2055.0958%20109.341%2054.8984H109.334L109.288%2054.8696C109%2054.6877%20108.711%2054.5092%20108.42%2054.3384L108.206%2054.2142L88.7824%2042.9941C88.551%2042.8603%2088.3204%2042.7313%2088.0904%2042.6071C88.0017%2042.5594%2087.9141%2042.5162%2087.8254%2042.4696L87.4717%2042.2866C87.3807%2042.24%2087.2887%2042.1901%2087.1989%2042.1447C87.0492%2042.0704%2086.9017%2042.0049%2086.7553%2041.9351C86.6511%2041.8863%2086.5479%2041.8353%2086.4448%2041.7887L86.3195%2041.7299C86.0238%2041.5991%2085.7332%2041.476%2085.4479%2041.3607L85.4035%2041.344C85.1252%2041.2331%2084.8491%2041.1289%2084.5729%2041.0313L84.4465%2040.9847C84.3356%2040.9481%2084.2336%2040.9149%2084.1271%2040.8805C83.9819%2040.8328%2083.8366%2040.7818%2083.6924%2040.7385C83.6159%2040.7153%2083.5405%2040.6975%2083.464%2040.6753C83.3354%2040.6376%2083.2078%2040.6033%2083.0792%2040.5644C82.9827%2040.5389%2082.8851%2040.5079%2082.7898%2040.4846C82.6944%2040.4613%2082.5802%2040.4436%2082.4737%2040.4192C82.3462%2040.3903%2082.2176%2040.3604%2082.0912%2040.3327C82.0268%2040.3194%2081.9603%2040.3016%2081.896%2040.2894C81.7729%2040.265%2081.6531%2040.2506%2081.53%2040.2295C81.3826%2040.204%2081.234%2040.1774%2081.0865%2040.1564C81.0388%2040.1508%2080.9878%2040.1397%2080.939%2040.1331C80.8148%2040.1109%2080.6928%2040.1109%2080.5697%2040.0954C80.4122%2040.0776%2080.2548%2040.0599%2080.0995%2040.0477C80.0563%2040.0477%2080.0108%2040.0377%2079.9676%2040.0344C79.8567%2040.0266%2079.7558%2040.0288%2079.6482%2040.0233C79.4608%2040.0144%2079.2756%2040.0067%2079.0893%2040C79.0394%2040%2078.9884%2040%2078.9385%2040C78.8575%2040%2078.7799%2040.01%2078.699%2040.0111C78.4661%2040.0111%2078.2354%2040.0266%2078.0081%2040.0432C77.9405%2040.0432%2077.8706%2040.0432%2077.8041%2040.0532C77.7054%2040.0621%2077.61%2040.0765%2077.5124%2040.0876L77.3017%2040.1109C77.0455%2040.1453%2076.7916%2040.1841%2076.5421%2040.2351L76.5144%2040.244C76.4401%2040.2595%2076.368%2040.2794%2076.2926%2040.2961C76.0897%2040.3415%2075.8878%2040.3892%2075.6904%2040.4447C75.5895%2040.4735%2075.4919%2040.5068%2075.3921%2040.5389C75.2646%2040.5789%2075.1349%2040.6143%2075.0085%2040.6598C74.9752%2040.6709%2074.9441%2040.6875%2074.912%2040.6986C74.7146%2040.7707%2074.5239%2040.8517%2074.332%2040.9348C74.2389%2040.9747%2074.1435%2041.0113%2074.0526%2041.0535C73.7731%2041.1843%2073.4981%2041.3252%2073.2331%2041.4793L62.5375%2047.6893C62.8036%2047.5351%2063.0775%2047.3943%2063.3559%2047.2635C63.4479%2047.2202%2063.5433%2047.1847%2063.6364%2047.1437C63.8272%2047.0605%2064.019%2046.9796%2064.2153%2046.9075C64.3727%2046.8498%2064.5335%2046.7966%2064.6954%2046.7478C64.7952%2046.7168%2064.8928%2046.6824%2064.9937%2046.6536C65.1911%2046.5981%2065.3941%2046.5504%2065.5959%2046.505C65.6691%2046.4883%2065.7412%2046.4684%2065.8177%2046.4528C66.0761%2046.4007%2066.3389%2046.3586%2066.605%2046.3231C66.6749%2046.3142%2066.7458%2046.3065%2066.8157%2046.2987C66.9798%2046.2798%2067.1484%2046.2665%2067.3114%2046.2543C67.5387%2046.2366%2067.7694%2046.2266%2068.0023%2046.2211C68.132%2046.2211%2068.2606%2046.2133%2068.3915%2046.2144C68.5756%2046.2144%2068.763%2046.2244%2068.946%2046.2333C69.0957%2046.2399%2069.2454%2046.2455%2069.3973%2046.2577C69.5492%2046.2699%2069.71%2046.2887%2069.8675%2046.3054C70.0249%2046.322%2070.2112%2046.3431%2070.3865%2046.3675C70.5328%2046.3885%2070.6803%2046.4151%2070.83%2046.4406C71.0163%2046.4728%2071.2026%2046.505%2071.3911%2046.5449C71.5176%2046.5715%2071.6462%2046.6003%2071.7737%2046.6303C71.9748%2046.6768%2072.177%2046.7271%2072.3803%2046.7811C72.5078%2046.8155%2072.6365%2046.8498%2072.764%2046.892C72.9858%2046.9552%2073.2076%2047.025%2073.4293%2047.0971C73.5402%2047.1315%2073.6411%2047.1648%2073.7476%2047.2014C74.0625%2047.3123%2074.3786%2047.4231%2074.698%2047.5529L74.7423%2047.5695C75.075%2047.7026%2075.4077%2047.8479%2075.7403%2047.9998C75.8435%2048.0464%2075.9466%2048.0974%2076.0508%2048.1462C76.2896%2048.2585%2076.5295%2048.3757%2076.7705%2048.4977C76.8881%2048.5576%2077.006%2048.6186%2077.1243%2048.6807C77.4414%2048.8481%2077.7597%2049.0189%2078.0802%2049.2041L97.5219%2060.4253C97.8834%2060.6338%2098.2427%2060.8515%2098.5997%2061.0785L98.6507%2061.1095C98.9945%2061.3313%2099.3361%2061.5531%2099.6754%2061.7915C99.7918%2061.8724%2099.9072%2061.9567%20100.022%2062.0388C100.244%2062.1996%20100.476%2062.3626%20100.701%2062.53C100.839%2062.6332%20100.975%2062.7385%20101.113%2062.8439C101.316%2062.9999%20101.518%2063.1588%20101.72%2063.3207C101.868%2063.439%20102.016%2063.5588%20102.164%2063.68C102.357%2063.8397%20102.549%2064.0016%20102.739%2064.1657C102.887%2064.2951%20103.035%2064.4256%20103.183%2064.5572C103.37%2064.7228%20103.555%2064.8909%20103.737%2065.0617C103.886%2065.1981%20104.035%2065.3356%20104.181%2065.4753C104.369%2065.6539%20104.557%2065.8357%20104.743%2066.0187C104.878%2066.1518%20105.015%2066.2849%20105.149%2066.4202C105.343%2066.6153%20105.534%2066.8149%20105.726%2067.0145C105.85%2067.1443%20105.974%2067.2718%20106.097%2067.4038C106.319%2067.6433%20106.541%2067.8884%20106.763%2068.1334C106.845%2068.2255%20106.929%2068.3153%20107.011%2068.4085C107.313%2068.7522%20107.612%2069.1015%20107.907%2069.4564C107.97%2069.5329%20108.031%2069.6116%20108.094%2069.6882C108.325%2069.9698%20108.556%2070.2526%20108.781%2070.5409C109.05%2070.8847%20109.315%2071.2329%20109.576%2071.5855C109.619%2071.6443%20109.665%2071.6964%20109.709%2071.7607C110.133%2072.3363%20110.543%2072.9251%20110.944%2073.5195C111.042%2073.6637%20111.141%2073.8078%20111.236%2073.9531C111.383%2074.1749%20111.529%2074.4022%20111.674%2074.6284C111.8%2074.8258%20111.927%2075.0232%20112.051%2075.2228C112.194%2075.4524%20112.333%2075.6841%20112.472%2075.9159C112.583%2076.1011%20112.694%2076.2863%20112.805%2076.4703C113.13%2077.027%20113.446%2077.5893%20113.751%2078.157C113.862%2078.3633%20113.973%2078.5706%20114.076%2078.7769C114.179%2078.9832%20114.307%2079.2205%20114.417%2079.4423C114.57%2079.7472%20114.72%2080.0544%20114.867%2080.3616C114.918%2080.4725%20114.97%2080.5723%20115.02%2080.6787C115.209%2081.0816%20115.394%2081.4882%20115.574%2081.8985C115.621%2082.0094%20115.666%2082.1126%20115.712%2082.2201C115.842%2082.5232%20115.97%2082.8274%20116.095%2083.1328C116.152%2083.2718%20116.208%2083.4104%20116.263%2083.5486C116.379%2083.8399%20116.49%2084.1315%20116.595%2084.4236C116.643%2084.5511%20116.692%2084.6786%20116.74%2084.8061C116.874%2085.1758%20117.004%2085.5454%20117.129%2085.9151C117.147%2085.9661%20117.165%2086.0182%20117.183%2086.0692C117.324%2086.4891%20117.457%2086.909%20117.585%2087.3289C117.624%2087.4609%20117.661%2087.5929%20117.695%2087.7248C117.782%2088.0176%20117.866%2088.3103%20117.945%2088.6031C117.988%2088.7628%20118.029%2088.9225%20118.071%2089.0833C118.142%2089.3531%20118.209%2089.6229%20118.273%2089.8928C118.312%2090.0532%20118.349%2090.2133%20118.384%2090.3729C118.447%2090.6494%20118.506%2090.9259%20118.561%2091.2024C118.591%2091.3499%20118.622%2091.4974%20118.651%2091.646C118.719%2091.9986%20118.782%2092.3502%20118.839%2092.7006C118.849%2092.7638%20118.862%2092.827%20118.872%2092.8902C118.938%2093.3042%20118.996%2093.7167%20119.046%2094.1278C119.061%2094.2387%20119.07%2094.3496%20119.084%2094.4604C119.118%2094.7562%20119.148%2095.0537%20119.175%2095.3531C119.187%2095.4929%20119.198%2095.6315%20119.208%2095.7701C119.229%2096.0495%20119.246%2096.3279%20119.259%2096.6051C119.266%2096.7371%20119.272%2096.869%20119.278%2097.001C119.292%2097.3936%20119.301%2097.7839%20119.3%2098.172L119.237%20120.505C119.237%20120.912%20119.225%20121.31%20119.207%20121.702C119.207%20121.813%20119.192%20121.924%20119.187%20122.035C119.171%20122.304%20119.154%20122.572%20119.129%20122.835C119.116%20122.986%20119.099%20123.135%20119.083%20123.285C119.058%20123.507%20119.033%20123.728%20119.003%20123.95C118.981%20124.11%20118.957%20124.266%20118.932%20124.423C118.9%20124.624%20118.866%20124.822%20118.829%20125.018C118.795%20125.193%20118.761%20125.367%20118.725%20125.538C118.688%20125.71%20118.648%20125.884%20118.605%20126.06C118.556%20126.262%20118.504%20126.461%20118.449%20126.657C118.406%20126.811%20118.363%20126.964%20118.316%20127.115C118.244%20127.349%20118.168%20127.577%20118.088%20127.804C118.044%20127.928%20118.001%20128.053%20117.956%20128.175C117.811%20128.557%20117.657%20128.928%20117.488%20129.284C117.357%20129.561%20117.221%20129.832%20117.077%20130.092C117.061%20130.121%20117.042%20130.148%20117.027%20130.177C116.895%20130.412%20116.758%20130.64%20116.616%20130.862C116.582%20130.915%20116.545%20130.966%20116.506%20131.02C116.386%20131.199%20116.263%20131.375%20116.136%20131.546C116.084%20131.616%20116.031%20131.686%20115.978%20131.755C115.855%20131.913%20115.729%20132.067%20115.6%20132.216C115.552%20132.273%20115.504%20132.327%20115.455%20132.385C115.279%20132.582%20115.097%20132.774%20114.91%20132.956C114.881%20132.983%20114.85%20133.01%20114.821%20133.038C114.66%20133.191%20114.495%20133.339%20114.327%20133.481C114.264%20133.533%20114.2%20133.584%20114.137%20133.635C113.989%20133.753%20113.841%20133.866%20113.693%20133.975C113.63%20134.02%20113.568%20134.067%20113.504%20134.11C113.292%20134.255%20113.077%20134.395%20112.855%20134.524L123.549%20128.314C123.771%20128.185%20123.986%20128.045%20124.199%20127.9C124.264%20127.857%20124.326%20127.81%20124.388%20127.765C124.539%20127.656%20124.687%20127.543%20124.831%20127.425C124.895%20127.374%20124.959%20127.323%20125.021%20127.271C125.19%20127.129%20125.356%20126.982%20125.518%20126.828C125.547%20126.801%20125.577%20126.776%20125.604%20126.748C125.792%20126.566%20125.974%20126.374%20126.15%20126.177C126.199%20126.121%20126.246%20126.066%20126.295%20126.007C126.424%20125.859%20126.55%20125.706%20126.673%20125.546C126.727%20125.477%20126.784%20125.407%20126.832%20125.337C126.958%20125.167%20127.081%20124.991%20127.2%20124.812C127.236%20124.759%20127.272%20124.707%20127.311%20124.653L127.344%20124.604C127.475%20124.399%20127.598%20124.186%20127.72%20123.971C127.737%20123.941%20127.756%20123.915%20127.772%20123.885C127.911%20123.633%20128.044%20123.375%20128.17%20123.108L128.184%20123.076C128.352%20122.72%20128.506%20122.349%20128.652%20121.967C128.665%20121.933%20128.68%20121.902%20128.694%20121.868C128.726%20121.78%20128.753%20121.686%20128.784%20121.597C128.863%20121.375%20128.941%20121.141%20129.013%20120.907C129.033%20120.843%20129.056%20120.783%20129.075%20120.719C129.101%20120.632%20129.121%20120.539%20129.145%20120.451C129.2%20120.255%20129.252%20120.056%20129.301%20119.854C129.321%20119.769%20129.347%20119.691%20129.366%20119.605C129.385%20119.52%20129.401%20119.423%20129.42%20119.334C129.457%20119.161%20129.492%20118.987%20129.525%20118.811C129.543%20118.719%20129.564%20118.631%20129.581%20118.537C129.598%20118.444%20129.612%20118.323%20129.629%20118.218C129.653%20118.062%20129.677%20117.904%20129.7%20117.745C129.711%20117.661%20129.726%20117.582%20129.736%20117.497C129.753%20117.362%20129.764%20117.221%20129.779%20117.085C129.795%20116.948%20129.813%20116.785%20129.826%20116.632C129.832%20116.57%20129.84%20116.51%20129.845%20116.448C129.861%20116.249%20129.87%20116.041%20129.883%20115.837C129.889%20115.726%20129.898%20115.615%20129.904%20115.505C129.904%20115.477%20129.904%20115.45%20129.904%20115.422C129.918%20115.077%20129.927%20114.726%20129.928%20114.37V114.308L129.991%2091.9753C130.002%2091.6331%20130.003%2091.2978%20129.993%2090.9695Z'%20fill='%230B0E11'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_302_6100'%20x1='68.0078'%20y1='92.449'%20x2='102.417'%20y2='92.449'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23313131'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_302_6100'%20x1='50.0001'%20y1='94.977'%20x2='113.22'%20y2='94.977'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234E4E4E'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"}},r.index)):void 0!==r[3]?n.push(
31
+ /* @__PURE__ */g.jsx("a",{href:r[4],target:"_blank",rel:"noopener noreferrer",className:"mc-link",children:r[3]},r.index)):void 0!==r[5]?n.push(
32
+ /* @__PURE__ */g.jsx("a",{href:r[5],target:"_blank",rel:"noopener noreferrer",className:"mc-link",children:r[5]},r.index)):void 0!==r[6]?n.push(/* @__PURE__ */g.jsx("strong",{children:yp(r[6])},r.index)):void 0!==r[7]?n.push(/* @__PURE__ */g.jsx("strong",{children:yp(r[7])},r.index)):void 0!==r[8]?n.push(/* @__PURE__ */g.jsx("em",{children:yp(r[8])},r.index)):void 0!==r[9]?n.push(/* @__PURE__ */g.jsx("em",{children:yp(r[9])},r.index)):void 0!==r[10]?n.push(/* @__PURE__ */g.jsx("del",{children:yp(r[10])},r.index)):void 0!==r[11]&&n.push(
33
+ /* @__PURE__ */g.jsx("code",{className:"mc-inline-code",children:r[11]},r.index)),i=r.index+r[0].length;return i<e.length&&n.push(e.slice(i)),n.length>0?n:[e]}const wp=({content:e})=>{const n=e.split("\n"),t=[];let r=0;for(;r<n.length;){const e=n[r];if(e.trimStart().startsWith("```")){const i=e.trimStart().slice(3)?.trim(),o=[];for(r++;r<n.length&&!n[r].trimStart().startsWith("```");)o.push(n[r]),r++;t.push(
34
+ /* @__PURE__ */g.jsxs("div",{className:"mc-codeblock",children:[i&&/* @__PURE__ */g.jsx("div",{className:"mc-codeblock-lang",children:i}),
35
+ /* @__PURE__ */g.jsx("pre",{children:/* @__PURE__ */g.jsx("code",{children:o.join("\n")})})]},`code-${r}`)),r++;continue}if(/^(\s*[-*_]\s*){3,}$/.test(e)){t.push(/* @__PURE__ */g.jsx("hr",{className:"mc-hr"},`hr-${r}`)),r++;continue}const i=e.match(/^(#{1,3})\s+(.+)/);if(i){const e=i[1].length,n=i[2];t.push(
36
+ /* @__PURE__ */g.jsx("div",{className:`mc-heading mc-h${e}`,children:yp(n)},`h-${r}`)),r++;continue}if(e.trimStart().startsWith("> ")){const e=[];for(;r<n.length&&n[r].trimStart().startsWith("> ");)e.push(n[r].replace(/^\s*>\s?/,"")),r++;t.push(
37
+ /* @__PURE__ */g.jsx("div",{className:"mc-blockquote",children:e.map((e,n)=>/* @__PURE__ */g.jsx("div",{children:yp(e)},n))},`bq-${r}`));continue}""!==e?.trim()?(t.push(
38
+ /* @__PURE__ */g.jsx("div",{className:"mc-line",children:yp(e)},`line-${r}`)),r++):(t.push(/* @__PURE__ */g.jsx("div",{className:"mc-empty-line"},`empty-${r}`)),r++)}const i=function(e){const n=e.match(/https?:\/\/[^\s<>)\]]+/g);return n?[...new Set(n)]:[]}(e).slice(0,3);/* @__PURE__ */
39
+ return g.jsxs("div",{className:"message-content",children:[t,i.length>0&&/* @__PURE__ */g.jsx("div",{className:"mc-link-previews",children:i.map(e=>/* @__PURE__ */g.jsx(vp,{url:e},e))})]})},gp="https://nft.keyring.app";function kp(e){const n=e.indexOf("{");if(-1===n)return e;let t=0,r=!1,i=!1;for(let o=n;o<e.length;o++){const a=e[o];if(i)i=!1;else if("\\"===a&&r)i=!0;else if('"'!==a){if(!r)if("{"===a)t++;else if("}"===a&&(t--,0===t))return e.slice(n,o+1)}else r=!r}return e}function Ap(e,n,t){if(!e)return e;const r=e.toLowerCase().trim();if("max"===r||"all"===r)return n||e;const i=r.match(/^(\d+(?:\.\d+)?)%$/);if(i){const e=parseFloat(i[1])/100;return((parseFloat(n)||0)*e).toFixed(8).replace(/\.?0+$/,"")||"0"}const o=r.match(/^\$?(\d+(?:\.\d+)?)\$?$/),a=r.startsWith("$")||r.endsWith("$")||/\d(usd|dollar|dollars|đô|đồng)$/.test(r);if(o&&a){const n=parseFloat(o[1]);return t&&t>0?(n/t).toFixed(8).replace(/\.?0+$/,"")||"0":e}const s=r.match(/^(\d+(?:\.\d+)?)\s*(?:usd|dollar|dollars|đô|đồng)$/);if(s){const n=parseFloat(s[1]);return t&&t>0?(n/t).toFixed(8).replace(/\.?0+$/,"")||"0":e}return e}const xp=({isOpen:e,onClose:n,onTransaction:t,position:r="bottom-right",modalChatStyle:i={}})=>{const{t:o,ti:a}=q(),{messages:s,addMessage:l,updateMessageAction:u,updateMessageActionParameters:c,updateMessageText:f,clearMessagesById:d,updateMessageType:h}=function(){const{account:e}=eh(),{t:n}=q(),t=(r=e?.address,i=e?.chainId,r&&i?`${r}_${i}`:"");var r,i;const o=j.useMemo(()=>ah(n("welcomeMessage")),[n]),[a,s]=j.useState(()=>t||"pending"),[l,u]=j.useState(()=>{const e=lh();return t?e&&e.owner===t?e.messages:ah(n("welcomeMessage")):e?.messages??ah(n("welcomeMessage"))});if("pending"===a&&t){const e=lh();e&&e.owner===t?u(e.messages):uh(t,l),s(t)}else"pending"!==a&&t&&a!==t&&(u(o),uh(t,o),s(t));const c=j.useMemo(()=>l.map(e=>e.id===oh?{...e,text:n("welcomeMessage")}:e),[l,n]);j.useEffect(()=>{"pending"!==a&&uh(a,l)},[l,a]),j.useEffect(()=>{const e=[];for(let n=0;n<Zd.length;n++){const t=Zd.key(n);t&&t.startsWith(rh+"_")&&e.push(t)}e.forEach(e=>Zd.removeItem(e))},[]);const f=j.useCallback(()=>{u(o),uh(t,o)},[t,o]),d=j.useCallback(e=>{u(n=>{const t=n.filter(n=>!e.includes(n.id));return t.length>ih?t.slice(t.length-ih):t})},[]);return{messages:c,setMessages:u,addMessage:(e,n,t,r,i,o="web3")=>{const a=t?l.find(e=>e.id===t):void 0,s={id:Math.random().toString(36).substring(2,12),text:e,sender:n,timestamp:/* @__PURE__ */new Date,typeChat:o,...a&&{replyTo:{id:a.id,text:a.text,sender:a.sender}},...r&&{buttons:r},...i&&{actionData:i}};return u(e=>{const n=[...e,s];return n.length>ih?n.slice(n.length-ih):n}),s},updateMessageAction:(e,n)=>{u(t=>t.map(t=>t.id===e&&t.actionData?{...t,actionData:{...t.actionData,status:n}}:t))},updateMessageActionParameters:(e,n)=>{u(t=>t.map(t=>t.id===e&&t.actionData?{...t,actionData:{...t.actionData,parameters:{...t.actionData.parameters,...n}}}:t))},updateMessageText:(e,n)=>{u(t=>t.map(t=>t.id===e?{...t,text:n}:t))},getMessageById:e=>l.find(n=>n.id===e),clearMessages:f,clearMessagesById:d,updateMessageType:(e,n)=>{u(t=>t.map(t=>t.id===e?{...t,typeChat:n}:t))}}}(),[p,m]=j.useState(""),[b,v]=j.useState(!1),[y,w]=j.useState(!0),[k,A]=j.useState(null),x=j.useRef(null),E=j.useRef(null),S=j.useRef(null),C=j.useRef(null),T=j.useRef(null),I=j.useRef(!1),M=j.useRef(y);j.useEffect(()=>{M.current=y},[y]);const{account:O,chainData:R,chainType:N,chainTypeMoralis:B,chainId:F,isChainSupported:L}=eh(),{config:D}=(()=>{const e=j.useContext(ch);if(!e)throw new Error("useConfig must be used within ConfigProvider");return e})(),U=F&&D?.rpcUrls?.[F]||void 0,P=j.useCallback(()=>{const e=Zd.getItem("dataBuyToken");if(e)try{return JSON.parse(e)}catch{return{srcTokenAddress:"",descTokenAddress:"",amount:"",srcTokenDecimals:18,descTokenDecimals:18}}return{srcTokenAddress:"",descTokenAddress:"",amount:"",srcTokenDecimals:18,descTokenDecimals:18}},[]),H=j.useCallback(e=>{Zd.setItem("dataBuyToken",JSON.stringify(e))},[]),V=j.useCallback(e=>{const n={...P(),...e};H(n)},[P,H]),z=j.useCallback(e=>{A(e),cp.isDesktop&&S.current?.focus()},[]),W=j.useCallback(async(e,n)=>{V({descTokenAddress:e,descTokenDecimals:n||18});try{v(!0);const e=await Dh({address:O?.address||"",chain:B});if(e?.success&&e?.data?.result){const n=e.data.result;if(n?.length>0){const e=n.map(e=>({id:e.token_address,text:`${e.name}: ${e.balance_formatted} ${e.symbol} ($${Oh(e.usd_value||0)?.decimalPlaces(2).toFormat()||"0"})`,value:a("buttonBuyWith",{symbol:e.symbol}),action:"click_balance_item_user_to_buy_button",fullWidth:!0,extraData:{tokenAddress:e.token_address,symbol:e.symbol,balance:e.balance_formatted,usdValue:e.usd_value,decimals:e.decimals}}));l(a("walletBalanceSpendable",{chain:R?.name||"unknown"}),"bot",void 0,e)}else l(a("walletNoTokensFound",{chain:R?.name||"unknown"}),"bot")}else l(o("walletFetchFailed"),"bot")}catch(t){l(o("walletFetchError"),"bot")}finally{v(!1)}},[V,O?.address,B,l,R?.name,o,a]),G=j.useCallback(async(e,n,t,r)=>{V({srcTokenAddress:e,srcTokenDecimals:r||18});let i=t||"0";if(e===Nr)try{const e=await ip({chainId:F,rpcUrl:U});if(e.isGreaterThan(0)){const n=e.times(1e6),o=new Oh(Rr(t,r||18).toString()).minus(n);i=o.isGreaterThan(0)?Oh(ht(BigInt(o.toFixed(0)),18)).toFixed():"0"}}catch(s){}const o=[25,50,75,100].map(t=>({id:`percent-${t}`,text:`${t}%`,value:a("buttonUsePercent",{percent:String(t),symbol:n}),action:"select_percent",extraData:{percent:t,tokenAddress:e,tokenSymbol:n,tokenDecimals:r||18,tokenBalance:i}}));Oh(i).isZero()?l(a("insufficientFeeToken",{symbol:n}),"bot"):l(a("selectAmountOf",{symbol:n,balance:i}),"bot",void 0,o)},[l,F,U,V,a]),Y=j.useCallback(async(e,n,t,r)=>{const i={amount:Oh(n).times(e).dividedBy(100).toFixed()};void 0!==t&&(i.srcTokenAddress=t),void 0!==r&&(i.srcTokenDecimals=r),V(i);const s=P(),u=Rr(s.amount,s.srcTokenDecimals||18).toString(),c=await Vh({chainId:F,tokenIn:s.srcTokenAddress,tokenInAmount:u,tokenOut:s.descTokenAddress,tokenOutRecipient:O?.address||"",slippage:"auto",accesstoken:"d6c45897b8f6"});if(c.success&&c.data){const e=c.data,n=e.tokenIn,t=e.tokenOut,r=Oh(ht(BigInt(n.amount||0),n.decimals)).decimalPlaces(8).toFormat(),i=Oh(ht(BigInt(t.amount||0),t.decimals)).decimalPlaces(8).toFormat();let d=!1;if(s.srcTokenAddress!==Nr&&""!==s.srcTokenAddress&&O?.address&&e.tx?.to)try{const n=await ep({tokenAddress:s.srcTokenAddress,ownerAddress:O.address,spenderAddress:e.tx.to,chainId:F,rpcUrl:U});d=Oh(n.toString()).isLessThan(u)}catch(f){d=!0}const h=e.estimatedTransactionFee?.total?Oh(e.estimatedTransactionFee.total):Oh(0);let p=Oh(0);if(d&&O?.address)try{const n=np({tokenAddress:s.srcTokenAddress,spenderAddress:e.tx?.to||"",fromAddress:O.address,chainId:F,amount:u});p=await rp({from:O.address,to:n.to,data:n.data,chainId:F,rpcUrl:U})}catch(f){}const m=h.plus(p),b=R?.nativeCurrency?.symbol||"native";let v="",y=!1;if(O?.address&&m.isGreaterThan(0))try{const e=await tp({address:O.address,chainId:F,rpcUrl:U});if(e.isLessThan(m)){y=!0;const n=Oh(ht(BigInt(e.toFixed(0)),18)).decimalPlaces(8).toFormat(),t=Oh(ht(BigInt(m.toFixed(0)),18)).decimalPlaces(8).toFormat();v=a("swapFeeWarning",{symbol:b,balance:n,needed:t})}}catch(f){}const w=`From: ${r} ${n.symbol}\n⬇️\nTo: ${i} ${t.symbol}\n\n`+v+"\n";if(y)l(w,"bot");else if(d){const t=w+a("swapNeedApprove",{symbol:n.symbol}),r=[{id:"approve-for-swap",text:a("swapApproveButton",{symbol:n.symbol}),value:a("swapApproveValue",{symbol:n.symbol}),action:"approve_for_swap",fullWidth:!0,extraData:{tokenAddress:s.srcTokenAddress,spenderAddress:e.tx.to,tokenSymbol:n.symbol,amountInWei:u,tx:e.tx}}];l(t,"bot",void 0,r)}else{const n=[{id:"confirm-swap",text:o("swapConfirmButton"),value:o("swapConfirmValue"),action:"confirm_swap",extraData:{tx:e.tx}}];l(w+o("swapReadyToProceed"),"bot",void 0,n)}}else l(a("swapEstimationError",{error:c.errorMessage||c.error||"Unknown error"}),"bot")},[P,V,l,F,O?.address,R?.nativeCurrency?.symbol,U,o,a]),J=j.useCallback(async(e,n,r)=>{try{if("suggested_action"===n)return C.current=e,void m(e);if(l(e,"user"),w(!1),v(!0),n)switch(await Jd(500),n){case"click_buy_item_token_button":await W(r?.tokenAddress||"",r?.decimals||18);break;case"click_balance_item_user_to_buy_button":await G(r?.tokenAddress||"",r?.symbol||"",r?.balance||"",r?.decimals||18);break;case"select_percent":await Y(r?.percent||0,r?.tokenBalance||"",r?.tokenAddress||void 0,r?.tokenDecimals||void 0);break;case"confirm_swap":if(r?.tx&&t){const e=r.tx,n={from:O?.address||"",to:e.to,data:e.data,value:e.value,chainId:F},a=l(o("txProcessing"),"bot");try{v(!1);const e=await t(n);if("success"===e.status&&e.transactionHash){const n=R?.blockExplorers?.default?.url,t=n?` [View on Explorer](${n}/tx/${e.transactionHash})`:` Tx: ${e.transactionHash}`;f(a.id,o("txSubmitted")+t);try{await Jd(2e3),"success"===(await $h({transactionHash:e.transactionHash,chainId:F||1,rpcUrl:U})).status?f(a.id,o("txConfirmedSwap")+t):f(a.id,o("txRevertedSwap")+t)}catch(i){f(a.id,o("txTimeout")+t)}}else if("success"===e.status)f(a.id,o("txSuccessfulSwap"));else{const n=e.error?`\nError: ${e.error}`:"";f(a.id,o("txFailed")+n)}}catch(s){f(a.id,o("txFailed"))}}else l(o("txDataNotAvailable"),"bot");break;case"approve_for_swap":{const e=r?.tokenAddress||"",n=r?.spenderAddress||"",u=r?.tokenSymbol||"token",c=r?.tx;if(!e||!n||!t){l(o("approvalDataNotAvailable"),"bot");break}const f=r?.amountInWei||void 0,d=np({tokenAddress:e,spenderAddress:n,fromAddress:O?.address||"",chainId:F,tokenSymbol:u,amount:f}),h={from:d.from,to:d.to,data:d.data,value:d.value,chainId:d.chainId};l(a("approving",{symbol:u}),"bot");try{v(!1);const e=await t(h);let n="success"===e.status;if("success"===e.status&&e.transactionHash)try{n="success"===(await $h({transactionHash:e.transactionHash,chainId:F||1,rpcUrl:U})).status}catch(i){n=!0}if(n){l(a("approvalSuccess",{symbol:u}),"bot");const e=[{id:"confirm-swap-after-approve",text:o("confirmSwapButton"),value:o("swapConfirmValue"),action:"confirm_swap",fullWidth:!0,extraData:{tx:c}}];l(o("approvalConfirmSwap"),"bot",void 0,e)}else{const n=e.error?`\nError: ${e.error}`:"";l(o("approvalFailed")+n,"bot")}}catch(s){l(o("approvalFailed"),"bot")}break}case"click_swap_dest_token":{const e=r?.tokenAddress||"",n=r?.symbol||"";V({descTokenAddress:e,descTokenDecimals:r?.decimals||18});const t=P(),i=t.srcTokenAddress||"",s=i===Nr,f=t.amount||"";try{const r=await Dh({address:O?.address||"",chain:B});if(r?.success&&r?.data?.result){const c=r.data.result;let d,h="",p="0";if(s){const e=c.find(e=>e.native_token);h=R?.nativeCurrency?.symbol||"ETH",p=e?.balance_formatted||"0",d=e?.usd_price}else{const e=c.find(e=>e.token_address.toLowerCase()===i.toLowerCase());e&&(h=e.symbol,p=e.balance_formatted,d=e.usd_price)}if(f&&h){const n=Ap(f,p,d),r=t.srcTokenDecimals||18,c=s?Nr:i;V({amount:n});try{const t=Rr(n,r).toString(),i=await Vh({chainId:F,tokenIn:c,tokenInAmount:t,tokenOut:e,tokenOutRecipient:O?.address||"",slippage:"auto",accesstoken:"d6c45897b8f6"});if(i.success&&i.data){const e=i.data,n=e.tokenIn,r=e.tokenOut,u=Oh(ht(BigInt(n.amount||0),n.decimals)).decimalPlaces(8).toFormat(),f=Oh(ht(BigInt(r.amount||0),r.decimals)).decimalPlaces(8).toFormat();let d=!1;if(!s&&O?.address&&e.tx?.to)try{const n=await ep({tokenAddress:c,ownerAddress:O.address,spenderAddress:e.tx.to,chainId:F,rpcUrl:U});d=Oh(n.toString()).isLessThan(t)}catch{d=!0}const h=e.estimatedTransactionFee?.total?Oh(e.estimatedTransactionFee.total):Oh(0);let p=Oh(0);if(d&&O?.address)try{const n=np({tokenAddress:c,spenderAddress:e.tx?.to||"",fromAddress:O.address,chainId:F,amount:t});p=await rp({from:O.address,to:n.to,data:n.data,chainId:F,rpcUrl:U})}catch{}const m=h.plus(p),b=R?.nativeCurrency?.symbol||"native";let v="",y=!1;if(O?.address&&m.isGreaterThan(0))try{const e=await tp({address:O.address,chainId:F,rpcUrl:U});if(e.isLessThan(m)){y=!0;const n=Oh(ht(BigInt(e.toFixed(0)),18)).decimalPlaces(8).toFormat(),t=Oh(ht(BigInt(m.toFixed(0)),18)).decimalPlaces(8).toFormat();v=a("swapFeeWarning",{symbol:b,balance:n,needed:t})}}catch{}const w=`From: ${u} ${n.symbol}\n⬇️\nTo: ${f} ${r.symbol}\n\n`+v+"\n";if(y)l(w,"bot");else if(d){const r=[{id:"approve-for-swap",text:a("swapApproveButton",{symbol:n.symbol}),value:a("swapApproveValue",{symbol:n.symbol}),action:"approve_for_swap",fullWidth:!0,extraData:{tokenAddress:c,spenderAddress:e.tx.to,tokenSymbol:n.symbol,amountInWei:t,tx:e.tx}}];l(w+a("swapNeedApprove",{symbol:n.symbol}),"bot",void 0,r)}else{const n=[{id:"confirm-swap",text:o("swapConfirmYes"),value:o("swapConfirmValue"),action:"confirm_swap",extraData:{tx:e.tx}}];l(w+o("swapReadyToProceed"),"bot",void 0,n)}}else l(a("swapEstimationError",{error:i.errorMessage||i.error||"Unknown error"}),"bot")}catch(u){l(o("swapEstimationFailed"),"bot")}}else if(h&&parseFloat(p)>0){const e=[25,50,75,100],r=t.srcTokenDecimals||18,o=e.map(e=>({id:`percent-${e}`,text:`${e}%`,value:a("buttonUsePercent",{percent:String(e),symbol:h}),action:"select_percent",extraData:{percent:e,tokenAddress:i,tokenSymbol:h,tokenDecimals:r,tokenBalance:p}}));l(a("swapSelectAmount",{from:h,to:n,balance:p}),"bot",void 0,o)}else l(o("swapNoSourceToken"),"bot")}else l(o("couldNotFetchBalance"),"bot")}catch(c){l(o("couldNotLoadBalance"),"bot")}break}case"select_nft_to_send":{const e=r?.name||"NFT",n=r?.contractAddress||"",t=r?.tokenId||"",i=r?.tokenStandard||"ERC721",o=r?.amount||"1",s=r?.image||"",u={contract_address:n,token_id:t,to_address:r?.toAddress||"",token_standard:i,amount:o,maxAmount:o,nft_name:e};l(a("nftSendReview",{name:e,standard:i,tokenId:t}),"bot",void 0,void 0,{action:"send_nft",parameters:u,status:"pending",nftInfo:{name:e,image:s||void 0,tokenId:t,contractAddress:n,tokenStandard:i}});break}default:l(a("actionExecutedFor",{action:n,value:e}),"bot")}else await Jd(500),l(a("receivedButtonValue",{value:e}),"bot");v(!1),cp.isDesktop&&S.current?.focus()}catch(s){l(o("errorProcessingRequest"),"bot"),v(!1)}},[O?.address,l,f,R?.blockExplorers?.default?.url,R?.nativeCurrency?.symbol,F,B,P,W,G,t,Y,V,U,o,a]),K=j.useCallback(async()=>{try{v(!0);const e=R?.tokenTrendingDefault||[],[n,t]=await Promise.allSettled([jh.getTopGainers(N,"24h",5),jh.getTokensDetails(e,N)]);let r=[];"fulfilled"===n.status&&n.value?.data&&(r=[...n.value.data]),"fulfilled"===t.status&&t.value?.data&&(r=[...t.value.data,...r]),r=r.filter((e,n,t)=>n===t.findIndex(n=>n.address.toLowerCase()===e.address.toLowerCase()));const i=r.map(e=>({id:e?.symbol,text:e?.symbol,value:a("buttonBuyToken",{name:e.name,symbol:e?.symbol||""}),action:"click_buy_item_token_button",extraData:{tokenAddress:e?.address||"",symbol:e?.symbol||"",decimals:e?.decimals||18}}));await Jd(1e3),v(!1),l(a("trendingTokensHeader",{chain:R?.name||"Unknown"}),"bot");const s=r.map((e,n)=>`${n+1}. ${e.name} (${e?.auditGoplus?.token_symbol||e.symbol||"Unknown"})\n$${Oh(e?.price||0).decimalPlaces(4).toFormat()} (${e.price_change_percentage_24h||e.priceChange}%)\n\n---\n`).join("\n");l(`${s}${o("trendingTokensQuestion")}`,"bot",void 0,i)}catch(e){l(o("trendingTokensError"),"bot")}finally{v(!1)}},[l,R?.name,R?.tokenTrendingDefault,N,o,a]),X=j.useCallback(async()=>{try{l(a("viewNftViaWebsite",{link:gp}),"bot"),v(!1)}catch(e){v(!1),l(o("nftFetchError"),"bot")}},[l,o,a]),Q=j.useCallback(async()=>{try{v(!0);const e=await Dh({address:O?.address||"",chain:B});if(e?.success&&e?.data?.result&&e.data.result.length>0){const n=e.data.result.map((e,n)=>{const t=void 0!==e.usd_value?` ≈ $${Oh(e.usd_value).decimalPlaces(2).toFormat()}`:"";return`${n+1}. **${e.name}** (${e.symbol})\n Balance: ${e.balance_formatted}${t}`}).join("\n\n");await Jd(500),v(!1),l(a("viewBalancesHeader",{chain:R?.name||"this chain",list:n}),"bot",void 0)}else v(!1),l(o("viewBalancesEmpty"),"bot")}catch(e){v(!1),l(o("viewBalancesFetchError"),"bot")}},[O?.address,B,l,R?.name,o,a]),Z=j.useMemo(()=>[{id:"ask",icon:"❓",text:o("suggestionAskText"),action:async()=>{w(!1),v(!0),l(o("suggestionAskUserMessage"),"user"),await Jd(1e3),v(!1),l(o("suggestionAskBotReply"),"bot")}},{id:"buy",icon:"💰",text:o("suggestionBuyText"),action:async()=>{w(!1),l(o("suggestionBuyText"),"user"),qn(O?.address||"")&&L?await K():(v(!0),await Jd(1e3),qn(O?.address||"")&&!L?l(o("walletConnectedChainUnsupported"),"bot"):l(o("walletNotConnected"),"bot"),v(!1))}}],[l,O?.address,K,o,L]),_=e=>{if(0===e)return!0;const n=s[e],t=s[e-1],r=new Date(n.timestamp),i=new Date(t.timestamp);return r.setHours(0,0,0,0),i.setHours(0,0,0,0),r.getTime()!==i.getTime()};j.useEffect(()=>{x.current?.scrollIntoView({behavior:"smooth"})},[s]),j.useEffect(()=>{e?(S.current&&cp.isDesktop&&S.current.focus(),x.current?.scrollIntoView({behavior:"instant"}),I.current&&T.current?Date.now()-T.current>12e5&&w(!0):w(!0),T.current=null,I.current=!1,setTimeout(()=>{x.current?.scrollIntoView({behavior:"smooth"})},50)):(T.current=Date.now(),I.current=!M.current)},[e]),j.useEffect(()=>{const t=t=>{"Escape"===t.key&&e&&n()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,n]);const $=j.useCallback(async()=>{if(""===p?.trim()||b)return;const e=k,n=l(p?.trim(),"user",k?.id);m(""),A(null),v(!0),w(!1),v(!0);try{let m,b;const w=s.slice(-10);let k="",A="";if(w.length>0){k="\n\n## CONVERSATION HISTORY:\n";for(const e of w)"user"===e.sender?k+=`User: ${e.text}\n`:k+=`Assistant: ${e.text.length>400?e.text.substring(0,400)+"...":e.text}\n`;k+="\n---\n"}let x=p?.trim();e&&(x=`[Replying to ${"user"===e.sender?"my previous":"your"} message: "${e.text}"]\n\n${x}`);try{const e=await dp.checkInfoQuestion(x,k),t=e?.result?.includes("no");if(e?.language&&(A=e?.language),t){h(n.id,"normal");const e=s.filter(e=>"normal"===e.typeChat);let t="";if(e.slice(-20).length>0){t="\n\n## CONVERSATION HISTORY:\n";for(const n of e.slice(-20))"normal"===n.typeChat&&("user"===n.sender?t+=`User: ${n.text}\n`:t+=`Assistant: ${n.text.length>400?n.text.substring(0,400)+"...":n.text}\n\n`)}const r=await dp.generateContent(x,t,A);let i=null;try{let e=r?.trim();e.startsWith("```json")?e=e.replace(/^```json\s*/,"").replace(/\s*```$/,""):e.startsWith("```")&&(e=e.replace(/^```\s*/,"").replace(/\s*```$/,"")),i=JSON.parse(kp(e))}catch{i=null}return v(!1),void l(i?.message||r,"bot",void 0,void 0,void 0,"normal")}}catch(r){}if(O?.address&&L)try{const[e,n]=await Promise.allSettled([Dh({address:O.address,chain:B}),Ph({address:O.address,chain:B,limit:100,exclude_spam:!0})]);"fulfilled"===e.status&&e.value?.success&&e.value?.data?.result&&(m=e.value.data.result.map(e=>({symbol:e.symbol,name:e.name,balance_formatted:e.balance_formatted,usd_value:e.usd_value,native_token:e.native_token,token_address:e.token_address,price:e.usd_price}))),"fulfilled"===n.status&&n.value?.success&&n.value?.data?.result&&(b=n.value.data.result.map(e=>({name:e.normalized_metadata?.name||e.name||`#${e.token_id}`,token_address:e.token_address,token_id:e.token_id,contract_type:e.contract_type||"",amount:e.amount||"1"})))}catch{}const E=function(e){const{walletAddress:n,chainName:t,chainId:r,nativeSymbol:i,walletTokens:o,walletNfts:a,language:s}=e;if(!n)return`You are a Web3 wallet assistant for the Keyring crypto EVM wallet app.\nThe user is currently NOT connected to any wallet.\n\n## YOUR ROLE:\n- You are a friendly, knowledgeable assistant that can talk about ANY topic naturally\n- You can freely answer general questions, discuss crypto tokens, prices, market info, provide token details, etc. — these do NOT require a wallet connection\n- ONLY ask the user to connect their wallet when their request explicitly requires their personal wallet/address, such as:\n - Sending tokens or NFTs\n - Swapping tokens\n - Approving token spending\n - Wrapping/unwrapping tokens\n - Checking THEIR OWN balance ("what is MY balance?", "how much ETH do I have?")\n - Viewing THEIR OWN NFT collection\n - Any action that reads or writes to THEIR wallet address\n- For all other requests (token info, prices, general crypto questions, market data, etc.), respond normally and helpfully\n- ${Yh(s)}\n- **LANGUAGE DETECTION — CRYPTO TICKERS**: Crypto token symbols and tickers (ETH, BTC, USDC, BNB, MATIC, SOL, etc.) are NOT language indicators. They are proper nouns used in ALL languages. Detect the language from the surrounding non-ticker text only. Example: "ETHの現在の価格は?" → Japanese (the surrounding text は Japanese characters). "ETH의 가격은?" → Korean. "Giá ETH là bao nhiêu?" → Vietnamese. NEVER treat a ticker symbol as evidence of English.\n\n## RESPONSE FORMAT:\nAlways respond with a valid JSON object:\n{"action":"chat","message":"<your friendly response to the user>", "suggested_actions":[{"label":"<short button text>","prompt":"<message sent when clicked>"}]}\n\n## RULES:\n- suggested_actions: include when your message offers the user interactive choices or asks a follow-up question. NEVER include suggested_actions that ask the user to connect their wallet (e.g., "Connect wallet", "Connect now", etc.) — the app handles wallet connection separately\n- **CRITICAL**: NEVER include any "Buy" actions (e.g., "Buy USDC", "Buy ETH", "Purchase token", etc.) in suggested_actions. The app handles Buy buttons separately. Only include non-buy actions in suggested_actions (e.g., "Send token", "Swap token", "Check balance", "Show my NFTs").\n- For wallet-required actions, politely explain the user needs to connect their wallet first, and put this in the "message" field\n- ALWAYS respond with raw JSON only, never wrap in \`\`\`json code blocks\n- ${Yh(s)}`;if(n&&!qr[r]?.isSupported)return`You are a Web3 wallet assistant for the Keyring crypto EVM wallet app.\n The user's wallet address is: ${n}\n The user is selected on (chainId: ${r}) an UNSUPPORTED chain.\n\n ## YOUR ROLE:\n - You are a friendly, knowledgeable assistant that can talk about ANY topic naturally\n - You can freely answer general questions, discuss crypto tokens, prices, market info, token details, etc. — these do NOT require a supported chain\n - **BLOCKED on unsupported chain** — if the user asks for any of the following, politely inform them that chain (chainId: ${r}) is not currently supported and the action cannot be performed:\n - Checking THEIR OWN balance ("what is my balance?", "how much ETH do I have?")\n - Sending tokens or NFTs\n - Swapping or buying tokens\n - Approving token spending\n - Wrapping/unwrapping tokens\n - Viewing or transferring their NFT collection\n - Any action that reads or writes to their wallet on the current chain\n - **ALLOWED on unsupported chain** — respond normally and helpfully for:\n - General questions (weather, coding, history, math, etc.)\n - Token information, prices, market data, token details\n - Any query that does NOT require interacting with the user's wallet on the current chain\n - ${Yh(s)}\n - **LANGUAGE DETECTION — CRYPTO TICKERS**: Crypto token symbols and tickers (ETH, BTC, USDC, BNB, MATIC, SOL, etc.) are NOT language indicators. They are proper nouns used in ALL languages. Detect the language from the surrounding non-ticker text only. Example: "ETHの現在の価格は?" → Japanese. "ETH의 가격은?" → Korean. "Giá ETH là bao nhiêu?" → Vietnamese. NEVER treat a ticker symbol as evidence of English.\n\n ## RESPONSE FORMAT:\n Always respond with a valid JSON object:\n {"action":"chat","message":"<your response>", suggested_actions:[{"label":"<short button text>","prompt":"<message sent when clicked>"}]}\n\n ## RULES:\n - suggested_actions: include when your message offers the user interactive choices or asks a follow-up question. NEVER include suggested_actions that ask the user to connect their wallet (e.g., "Connect wallet", "Connect now", etc.) — the app handles wallet connection separately\n - **CRITICAL**: NEVER include any "Buy" actions (e.g., "Buy USDC", "Buy ETH", "Purchase token", etc.) in suggested_actions. The app handles Buy buttons separately. Only include non-buy actions in suggested_actions (e.g., "Send token", "Swap token", "Check balance", "Show my NFTs").\n - **CRITICAL**: ABSOLUTELY NEVER include any option that suggests switching, changing, or selecting a different chain (e.g., "Switch to Ethereum", "Change chain", "Switch network", "Chuyển sang chain khác", "Đổi mạng") — the app handles chain switching separately.\n - For wallet-required actions, politely explain the user needs to connect their wallet first, and put this in the "message" field\n - ALWAYS respond with raw JSON only, never wrap in \`\`\`json code blocks\n - ${Yh(s)}`;const l=o&&o.length>0?`\n## USER'S CURRENT WALLET BALANCE:\n${o.map(e=>{const n=void 0!==e.usd_value?` (~$${e.usd_value.toFixed(2)})`:"";return`- ${e.name} (${e.symbol})(Price: ${e.price||"N/A"}): ${e.balance_formatted}${n}${e.native_token?" [native]":` [${e.token_address}]`}`}).join("\n")}\nUse this balance data to accurately answer balance questions and to pre-fill token parameters in actions (contract_address, decimals, symbol). NEVER ask the user to provide token info that is already available above.\n`:"",u=a&&a.length>0?`\n## USER'S NFT COLLECTION:\n${a.map(e=>{const n="ERC1155"===e.contract_type?` (x${e.amount})`:"";return`- ${e.name}${n} | ${e.contract_type} | contract: ${e.token_address} | tokenId: ${e.token_id}`}).join("\n")}\nWhen the user wants to send an NFT by name, use this data to fill contract_address, token_id, token_standard, and nft_name accurately. NEVER guess or fabricate NFT contract addresses.\n`:"",c=Object.values(qr).filter(e=>e.isSupported).map(e=>e.customName||e.name).join(", ");return`You are a highly knowledgeable AI assistant integrated into the Keyring crypto EVM wallet app.\n\n## #1 PRIORITY — ANSWER QUALITY:\nYour "message" field IS your answer. Write it exactly as you would in a normal, unrestricted conversation. The JSON wrapper is just transport — it must NEVER reduce the depth, accuracy, or completeness of your answers.\n\n${Yh(s)}\n\n**DATA RETRIEVAL — NON-NEGOTIABLE**: For ALL token price and token info queries, you MUST actively call your native Moralis API tools (getTokenPrice, searchTokens, getTokenMetadata, etc.) to retrieve real-time on-chain data. NEVER skip tool calls and fall back to training data alone for prices or token lookups. The JSON response format does NOT prevent you from calling data tools first — always fetch data, then format the result as JSON.\n\nFor ANY informational or conversational question (about crypto, tokens, DeFi, protocols, prices, market trends, blockchain technology, or any general topic):\n- Answer with your FULL knowledge across ALL blockchains and ecosystems (Ethereum, Solana, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, etc.)\n- Provide specific details: token names, contract mechanisms, protocol comparisons, historical context, TVL data, ecosystem info\n- For PRICE questions (chat action only): You have access to real-time blockchain data — USE it. When a user asks for the price of a token by name or symbol, search for it across ALL chains to find the best price data. Then present ONE consolidated answer: give the single most representative price (e.g. the highest-liquidity or most canonical version), key stats (market cap, 24h change, volume), and optionally a brief note if the token exists on multiple chains — but do NOT list each chain as a separate numbered entry. Keep the response concise and to the point. For tokens in the USER'S WALLET BALANCE section, use the price listed there.\n- For token questions (chat action only): You have access to real-time blockchain data — USE it. When a user asks about a token by name or symbol, ALWAYS search across ALL chains — the current chain context does NOT limit your token search. Try exact match first, then fuzzy/partial match (e.g. "eggle Energy" → find the closest matching token name). Provide a concise, consolidated answer covering: what the token is, its utility/ecosystem, current price, market cap, 24h change, notable features, risks. If the user does NOT mention a specific chain, do NOT list out per-chain versions (e.g. "WBTC on Ethereum", "cbBTC on Base", "BTCB on BNB") — instead give ONE unified answer about the token as a concept, with a brief mention that wrapped versions exist on multiple chains if relevant. Only break down per-chain details if the user explicitly asks about a specific chain. If the token does NOT exist on the current chain (${t}), proactively tell the user which of these supported chains DO have it: ${c}. Set token_mentions to [] in this case\n- For DeFi/protocol questions: explain how it works, key features, TVL, supported chains, competitors, pros/cons\n- For market/trend questions: discuss relevant projects, narratives, sector analysis across all chains\n- Write detailed paragraphs, use bullet points, include numbers and facts. Minimum 3-5 sentences for simple questions, more for complex topics\n\n## CONTEXT:\nWallet: ${n} | Chain: ${t} (chainId: ${r}) | Native: ${i}${l}${u}\n\n## WHEN TO USE WHICH ACTION:\n- "send_native": user wants to send the native token (${i}) to an address\n- "send_token": user wants to send an ERC20 token to an address\n- "swap_token": user wants to swap/exchange/convert/trade/sell one token for another — covers ALL of the following keywords and patterns, even if only ONE token or NO amount is mentioned:\n - swap: "swap X", "swap X to Y", "swap X for Y", "swap to ETH", "swap native"\n - exchange: "exchange X", "exchange X to Y", "exchange X for Y", "exchange native", "exchange ETH"\n - convert: "convert X to Y", "convert native", "convert ETH to USDC", "convert X"\n - trade: "trade X for Y", "trade X to Y", "trade X"\n - sell (for another token): "sell X for Y", "sell ETH for USDC"\n - Vietnamese: "đổi X sang Y", "đổi X", "đổi native", "đổi ETH sang USDC", "chuyển đổi X", "bán X lấy Y", "hoán đổi X"\n - **CRITICAL**: When the source is the native token (ETH, BNB, MATIC, etc.) → token_in: "native". This MUST be treated as swap_token, never chat.\n → ALWAYS return swap_token. Leave missing params as "". NEVER fall back to chat.\n- "buy_token": user wants to buy a specific token AND the user clearly names a token (symbol or contract address). If user also specifies which token to pay with (e.g. "buy PEPE with USDC", "mua PEPE bằng ETH", "buy PEPE using my USDC"), fill pay_with_symbol and pay_with_address from USER'S WALLET BALANCE. **CRITICAL**: ALWAYS return buy_token if the user clearly names a token they want to buy — even if you cannot find the contract address or token data. Leave contract_address as "" and the app will search for it. NEVER fall back to "chat" just because you lack token data.\n- "buy_token_trending": user wants to buy a token BUT does NOT specify which token — covers ALL of the following patterns:\n - User asks to buy trending tokens: "buy trending tokens", "buy trending", "mua token trending", "mua token đang trending"\n - User asks to buy tokens with strong growth/momentum: "buy tokens pumping", "buy hot tokens", "buy movers", "mua token tăng mạnh", "mua token đang tăng", "mua token tiềm năng"\n - User says "buy a token" / "I want to buy" / "mua token" with NO specific token name or address provided\n - User asks for token recommendations to buy without specifying one\n → ALWAYS return buy_token_trending. Leave all params as "". NEVER fall back to chat or buy_token.\n- "approve_token": user wants to approve a token for a spender\n- "wrap_native": user wants to wrap native token (e.g. ETH → WETH) — also triggered by "deposit" into WETH/wrapped token\n- "unwrap_native": user wants to unwrap (e.g. WETH → ETH) — also triggered by "withdraw" from WETH/wrapped token\n- "send_nft": user wants to send/transfer an NFT\n- "view_nfts": user wants to see/browse their NFT collection\n- "view_balances": user wants to see ALL their token balances/tokens at once — covers ALL of the following patterns (NOT for single token price/info):\n - "show my balance", "view my balance", "check my balance", "what's my balance"\n - "what's in my wallet", "what do I have", "what tokens do I have"\n - "view all tokens", "show all tokens", "list my tokens"\n - "my portfolio", "show portfolio", "wallet overview"\n - Vietnamese: "xem số dư", "số dư của tôi", "kiểm tra số dư", "ví tôi có gì", "tôi có bao nhiêu tiền", "xem ví", "danh mục của tôi"\n → ALWAYS return view_balances for these. Do NOT return chat.\n- "chat": EVERYTHING ELSE — questions, token info, prices, greetings, DeFi explanations, market data, etc.\n\nAll wallet actions (send, swap, buy, approve, wrap, unwrap, send_nft) are chain-specific: use chainId ${r} only.\nFor "chat" action: no chain restriction — use cross-chain knowledge freely.\n\n## OUTPUT FORMAT:\n${Yh(s)}\n**LANGUAGE DETECTION — CRYPTO TICKERS**: Crypto token symbols/tickers (ETH, BTC, USDC, BNB, SOL, etc.) are NOT language indicators — they are proper nouns used universally. Detect language ONLY from the surrounding non-ticker text. Examples: "ETHの現在の価格は?" → Japanese. "ETH의 가격은?" → Korean. "Giá ETH?" → Vietnamese. NEVER classify a message as English just because it contains a ticker symbol.\n\nWallet action: {"action":"<type>","message":"<explanation>","parameters":{...}}\nChat/info: {"action":"chat","message":"<YOUR FULL DETAILED ANSWER>","parameters":{},"token_mentions":[],"suggested_actions":[]}\n\n## WALLET ACTION RULES:\n- Return action type IMMEDIATELY even if params are missing (leave as ""). Ask for missing info in "message". NEVER fall back to "chat" just because parameters are incomplete — always return the intended action.\n- **CROSS-CHAIN REQUESTS**: All wallet actions (send, swap, buy, approve, wrap, unwrap, send_nft, view_nfts, view_balances) execute ONLY on the CURRENT chain: ${t} (chainId: ${r}). If the user's message explicitly targets a DIFFERENT chain (e.g. "send on Ethereum", "swap on BSC", "transfer on Polygon", "buy on base") and the current chain is NOT that chain, do NOT execute the wallet action. Instead, return action: "chat" and politely notify the user to switch to the requested chain in the app first. This rule applies to ALL non-chat actions.\n- For ERC20 actions: provide correct contract_address on chainId ${r}. **CRITICAL — CHAIN-SPECIFIC ADDRESSES**: Contract addresses differ on every chain. You MUST obtain the address via your Moralis API tools (searchTokens, getTokenMetadata) for chainId ${r}, OR use the address already present in USER'S WALLET BALANCE. NEVER fill in a contract_address from training knowledge alone — leave it as "" if you cannot verify it via API or wallet balance. If token doesn't exist on this chain, inform user.\n- send_native: ONLY for ${i}. If user says "send ETH" but native ≠ ETH, use send_token.\n- Amount: "max"/"all" → "max". "X%" → "50%". USD formats → always prefix with "$": "5 dollar" → "$5", "5$" → "$5", "$5" → "$5", "5usd" → "$5", "5 đô la" → "$5", "0.01$ eth" → "$0.01", "$0.01 eth" → "$0.01", "5$ usdc" → "$5". The "$" MUST appear in the amount field (not stripped) so the app knows it's a USD value. Otherwise exact number string.\n- Decimals & symbol: always accurate.\n- send_nft: contract_address optional — use nft_name if NFT known by name.\n\n## suggested_actions & token_mentions:\n- suggested_actions: include when offering choices. {"label":"<2-6 words>","prompt":"<message>"}. Max 4. Never include "Buy" (app handles separately). **ABSOLUTELY NEVER** include any option that suggests switching, changing, or selecting a different chain (e.g., "Switch to Ethereum", "Change chain", "Switch network", "Chuyển sang chain khác", "Đổi mạng") — the app handles chain switching separately.\n- token_mentions: ONLY include when the token EXISTS on the CURRENT chain (chainId ${r}) AND you have obtained a VERIFIED contract address via your Moralis API tools (searchTokens, getTokenMetadata, getTokenPrice) for this exact chain.\n - **CRITICAL — CONTRACT ADDRESSES ARE CHAIN-SPECIFIC**: The same token has a DIFFERENT contract address on every chain. USDC on Ethereum ≠ USDC on Base ≠ USDC on Polygon ≠ USDC on BNB Chain. NEVER use an address from your training knowledge — training-data addresses are frequently wrong, hallucinated, or belong to a different chain.\n - **REQUIRED WORKFLOW**: Before populating token_mentions for a token, you MUST call your Moralis API tool (searchTokens or getTokenMetadata) specifying chainId ${r} to retrieve the verified contract address. If the API call fails or returns no result for this chain, set token_mentions: [].\n - If the token address is already available in the USER'S WALLET BALANCE section above, you MAY use that address (it is already verified for chainId ${r}).\n - If you cannot confirm the address via API or wallet balance, set token_mentions: [] — never guess.\n - **Native token**: If the token IS the chain's native token (${i}), use contract_address: "native" — do NOT look up an address.\n - Format: {"symbol":"","contract_address":"<API-verified address on chainId ${r}, or 'native' for the native token>","decimals":<n>}. 2+ tokens → [], use suggested_actions. Non-crypto → [].\n\n## ACTION PARAMS REFERENCE:\nValid actions: send_native, send_token, swap_token, buy_token, buy_token_trending, approve_token, wrap_native, unwrap_native, send_nft, view_nfts, view_balances, chat. NEVER use any other action name.\n\n1. send_native: {"to_address":"","amount":""}\n2. send_token: {"contract_address":"(REQ)","token_symbol":"","to_address":"","amount":"","decimals":""}\n3. swap_token: {"token_in":"<addr or 'native'>","token_in_symbol":"","token_in_decimals":"","token_out":"<addr>","token_out_symbol":"","token_out_decimals":"","amount":""}\n No tokens specified → all params "". Native → token_in:"native".\n4. buy_token: {"token_symbol":"(REQ — always fill this)","contract_address":"(if known and verified, else leave '')","decimals":"","buy_amount":"(opt — amount of the TOKEN BEING BOUGHT that user wants to RECEIVE. Use this when the amount refers to the destination token.)","pay_with_symbol":"(opt — symbol of token user wants to pay with, e.g. 'USDC', 'ETH')","pay_with_address":"(opt — contract address of payment token from WALLET BALANCE, or 'native' for native token)","pay_with_decimals":"(opt — decimals of payment token)","pay_with_amount":"(opt — amount of the PAYMENT TOKEN (token in) user wants to SPEND. Use this when the amount refers to the payment/source token.)"}.\n **CRITICAL — AMOUNT DISAMBIGUATION:**\n The amount in a buy request belongs to EITHER the token being bought OR the payment token. Parse the grammar carefully:\n - "buy PEPE with 10 USDC" → amount=10 belongs to USDC (payment) → pay_with_amount:"10", buy_amount:""\n - "buy 0.02 PCM with USDC" → amount=0.02 belongs to PCM (bought) → buy_amount:"0.02", pay_with_amount:""\n - "dùng 10 USDC mua PEPE" → amount=10 belongs to USDC (payment) → pay_with_amount:"10", buy_amount:""\n - "mua 0.02 PCM bằng USDC" → amount=0.02 belongs to PCM (bought) → buy_amount:"0.02", pay_with_amount:""\n NEVER put the amount of the token being bought into pay_with_amount. NEVER put the payment amount into buy_amount.\n If pay token is native (${i}), set pay_with_address:"native". Both tokens specified as a trade/exchange → swap_token. If you cannot verify the address, set contract_address:'' but ALWAYS return buy_token with the symbol filled. **NATIVE TOKEN**: If the token to buy IS the chain's native token (${i}), set contract_address: "native" directly — no API lookup needed.\n5. buy_token_trending: {} — no parameters needed; app handles discovery of trending/high-growth tokens. **message**: write ONLY a short 1-sentence header (e.g. "Here are the trending tokens on [chain] right now!"). Do NOT write analysis, tips, or explanations.\n6. approve_token: {"contract_address":"(REQ)","token_symbol":"","spender_address":"","amount":"","decimals":""}\n7. wrap_native: {"amount":""}\n8. unwrap_native: {"amount":""}\n9. send_nft: {"contract_address":"(opt)","token_id":"","to_address":"","token_standard":"","amount":"(def 1)","nft_name":""}\n10. view_nfts: {}\n11. view_balances: {} — use ONLY when user wants to see all balances/tokens, NOT for single token price/info queries\n12. chat: {} + token_mentions + suggested_actions — use for ALL informational/conversational requests\n\n## EXAMPLES:\nThese examples show INTENT → ACTION + PARAMETERS mapping only. The "message" content is for illustration — compose your own natural, helpful response based on context.\n\n// --- SEND NATIVE ---\n// Intent: user wants to send the chain's native token to an address\n// Triggers: "send ETH/BNB/MATIC to...", "transfer [native] to...", "chuyển [native] cho..."\n→ action: send_native | parameters: {to_address, amount}\n\n// --- SEND TOKEN ---\n// Intent: user wants to send an ERC20 token to an address\n// Triggers: "send USDC to...", "transfer [token] to...", "gửi [token] cho..."\n→ action: send_token | parameters: {contract_address, token_symbol, to_address, amount, decimals}\n\n// --- SWAP ---\n// Intent: exchange one token for another — trigger with ANY conversion/exchange/trade/sell keyword,\n// even with just ONE token mentioned, no amount, or only the native token as source\n// EN triggers: "swap X", "swap X to Y", "swap X for Y", "swap to ETH", "swap native"\n// "exchange X", "exchange X to Y", "exchange X for Y", "exchange native", "exchange ETH"\n// "convert X to Y", "convert native to USDC", "convert ETH", "convert X"\n// "trade X for Y", "trade X to Y", "trade ETH"\n// "sell X for Y", "sell ETH for USDC" (selling one token FOR another = swap)\n// VI triggers: "đổi X sang Y", "đổi X", "đổi native", "đổi ETH", "chuyển đổi X", "bán X lấy Y", "hoán đổi X"\n// Native source: token_in = "native" (e.g. "exchange ETH" → token_in:"native", token_in_symbol:"ETH")\n// Native dest: token_out = zeroAddress\n// ⚠️ NEVER confuse with wrap/unwrap: those are specifically ETH↔WETH. All other pairs = swap_token.\n→ action: swap_token | parameters: {token_in, token_in_symbol, token_in_decimals, token_out, token_out_symbol, token_out_decimals, amount}\n// Missing params → leave as "", ask for them in message. NEVER downgrade to chat.\n\n// --- WRAP / UNWRAP ---\n// Intent wrap: convert native to wrapped version — also triggered by "deposit"\n// Triggers: "wrap ETH", "deposit ETH", "deposit ETH to WETH", "đổi ETH sang WETH"\n→ action: wrap_native | parameters: {amount}\n\n// Intent unwrap: convert wrapped token back to native — also triggered by "withdraw"\n// Triggers: "unwrap WETH", "withdraw WETH", "convert WETH to ETH", "rút WETH"\n→ action: unwrap_native | parameters: {amount}\n\n// --- VIEW NFTs ---\n// Intent: user wants to see/browse their NFT collection\n// Triggers: "show my NFTs", "what NFTs do I have", "view my NFTs", "xem NFT của tôi"\n→ action: view_nfts | parameters: {}\n\n// --- VIEW BALANCES ---\n// Intent: user wants to see ALL their token balances at once (not a single token query)\n// EN triggers: "show my balance", "view my balance", "check my balance", "what's my balance"\n// "what's in my wallet", "what do I have", "what tokens do I have"\n// "view all tokens", "show all tokens", "list my tokens"\n// "my portfolio", "show portfolio", "wallet overview"\n// VI triggers: "xem số dư", "số dư của tôi", "kiểm tra số dư", "ví tôi có gì"\n// "tôi có bao nhiêu tiền", "xem ví", "danh mục của tôi"\n// ⚠️ Do NOT use view_balances for single-token queries ("price of ETH", "how much USDC is worth") → use chat instead\n→ action: view_balances | parameters: {}\n\n// --- BUY TOKEN TRENDING ---\n// Intent: user wants to buy but does NOT specify a token — or explicitly asks for trending/pumping/high-growth tokens to buy\n// EN triggers: "buy trending tokens", "buy trending", "buy hot tokens", "buy tokens pumping", "buy movers", "I want to buy a token", "buy a token"\n// VI triggers: "mua token trending", "mua token đang trending", "mua token tăng mạnh", "mua token đang tăng", "mua token tiềm năng", "mua token", "tôi muốn mua token"\n// ⚠️ CRITICAL: If user says "buy X" where X is a named token → use buy_token, NOT buy_token_trending\n// ⚠️ CRITICAL: If user gives NO specific token → ALWAYS use buy_token_trending, never chat\n// ⚠️ MESSAGE: ONLY a short 1-sentence header introducing the trending list. NO analysis, NO tips, NO explanations.\n→ action: buy_token_trending | parameters: {} | message: short header only (e.g. "Here are the trending tokens on [chain]!")\n\n// --- BUY TOKEN WITH SPECIFIC PAYMENT ---\n// Intent: user wants to buy a specific token AND specifies which token to pay with\n// EN triggers: "buy PEPE with USDC", "buy PEPE using ETH", "buy PEPE with 10 USDC", "purchase DOGE with my 0.5 ETH"\n// VI triggers: "mua PEPE bằng USDC", "mua PEPE dùng ETH", "mua PEPE bằng 10 USDC", "mua DOGE bằng 0.5 ETH của tôi"\n// → action: buy_token | parameters: {token_symbol, contract_address, decimals, pay_with_symbol, pay_with_address, pay_with_decimals, pay_with_amount}\n// AMOUNT DISAMBIGUATION (critical):\n// "buy PEPE with 10 USDC" → pay_with_amount:"10" buy_amount:"" (10 USDC to spend)\n// "buy 0.02 PCM with USDC" → buy_amount:"0.02" pay_with_amount:"" (0.02 PCM to receive)\n// "mua PEPE bằng 0.5 ETH" → pay_with_amount:"0.5" buy_amount:"" (0.5 ETH to spend)\n// "mua 0.02 PCM bằng USDC" → buy_amount:"0.02" pay_with_amount:"" (0.02 PCM to receive)\n// pay_with_* fields are filled from USER'S WALLET BALANCE. If pay token = native → pay_with_address: "native"\n// ⚠️ This is still buy_token (NOT swap_token) — the user's intent is to BUY, with a specified payment method\n\n// --- TOKEN INFO / PRICE (chat) ---\n// Intent: learn about a token, its price, market data — NOT a wallet action\n// Triggers: "tell me about X", "what is X token", "price of X", "X coin info", "X là gì"\n→ action: chat | compose a detailed answer using real-time data from your tools\n// If token EXISTS on current chain → token_mentions: [{symbol, contract_address, decimals}]\n// If token NOT on current chain → token_mentions: [] but tell user which supported chains have it\n\n// --- CROSS-CHAIN / GENERAL INFO (chat) ---\n// Intent: any question not requiring a wallet action — crypto trends, DeFi, protocols, general Q&A\n// Triggers: "what's trending on X?", "explain DeFi", "how does Uniswap work", anything conversational\n→ action: chat | compose a full, knowledgeable answer; add relevant suggested_actions if helpful\n\n// --- GREETING (chat) ---\n// Intent: greeting or open-ended start\n// Triggers: "hello", "hi", "hey", "xin chào", "bắt đầu"\n→ action: chat | introduce yourself and offer helpful options via suggested_actions`}({walletAddress:O?.address||void 0,chainName:R?.name||void 0,chainId:F||void 0,nativeSymbol:R?.nativeCurrency?.symbol||void 0,walletTokens:m,walletNfts:b,language:A}),S=await async function(e){const{prompt:n,model:t="gpt-4.1-mini",stream:i=!1,systemPrompt:o,signal:a}=e;if(!n)throw new Error("Prompt is required");const s=new Rh(Fh),l=o?`${o}\n\n---\n\n Current User's question: ${n}`:n;let u="Unknown error";for(let c=1;c<=5;c++){if(a?.aborted)return{success:!1,error:"Request cancelled"};try{const e=(await s.post("api/moralis-cortex/proxy/chat",{prompt:l,model:t,stream:i},{headers:{Accept:"application/json","Content-Type":"application/json"},signal:a})).data;if(!e?.text?.trim()){if(u="Empty response from Cortex AI",c<5&&await Nh(1e3,a),a?.aborted)return{success:!1,error:"Request cancelled"};continue}return{success:!0,data:e}}catch(r){if(a?.aborted)return{success:!1,error:"Request cancelled"};if(u=r instanceof Error?r.message:"Unknown error",c<5&&await Nh(1e3,a),a?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:u}}({prompt:x,model:"gpt-4.1-mini",stream:!1,systemPrompt:E+k});if(S.success&&S.data){const e=S.data.text||"";let s=null;try{let n=e?.trim();n.startsWith("```json")?n=n.replace(/^```json\s*/,"").replace(/\s*```$/,""):n.startsWith("```")&&(n=n.replace(/^```\s*/,"").replace(/\s*```$/,"")),s=JSON.parse(kp(n))}catch{s=null}if(s&&s.action&&"chat"!==s.action)if("buy_token"===s.action){const e=s.parameters?.token_symbol||"";let t=s.parameters?.contract_address||"",r=18,o=!1;if("native"!==t.toLowerCase()&&t!==Nr||(t=Nr),!t&&e&&R?.nativeCurrency?.symbol&&e.toUpperCase()===R.nativeCurrency.symbol.toUpperCase()&&(t=Nr),t&&t!==Nr)try{const n=await jh.getTokensDetails([t],N),i=n?.data?.[0];i&&(e&&i.symbol?.toUpperCase()!==e.toUpperCase()?t="":r=i.decimals||18)}catch(i){}if(!t&&e&&O?.address)try{const n=await Dh({address:O.address,chain:B});if(n?.success&&n?.data?.result){const i=n.data.result,o=i.find(e=>e.token_address.toLowerCase()===t.toLowerCase())||i.find(n=>n.symbol.toUpperCase()===e.toUpperCase());o&&(t=o.token_address,r=o.decimals)}if(!t){const n=R.tokenTrendingDefault||[],[i,o]=await Promise.allSettled([jh.getTopGainers(N,"24h",10),jh.getTokensDetails(n,N)]),a=[];"fulfilled"===i.status&&i.value?.data&&a.push(...i.value.data),"fulfilled"===o.status&&o.value?.data&&a.push(...o.value.data);const s=a.find(e=>e.address?.toLowerCase()===t.toLowerCase())||a.find(n=>n.symbol?.toUpperCase()===e.toUpperCase());s&&(t=s.address,r=s.decimals||18)}if(!t&&F)try{const n=await jh.searchTokensByKey(e,F);if(Array.isArray(n?.data)&&n.data.length>0){const i=n.data.find(n=>n.symbol?.toUpperCase()===e.toUpperCase())||n.data[0];i?.address&&(o=!0,t=i.address,r=i.decimals||18)}}catch(u){}}catch(i){}if(t){l(o?a("buyingOnChain",{symbol:e,chain:R?.name}):s.message||a("buyTokenHelp",{symbol:e}),"bot",n.id),V({descTokenAddress:t,descTokenDecimals:r||18});const u=s.parameters?.pay_with_symbol||"",f=s.parameters?.pay_with_address||"";let d=!1;if(u||f)try{const e=await Dh({address:O?.address||"",chain:B});if(e?.success&&e?.data?.result){const n=e.data.result;let r;if(r="native"===f.toLowerCase()||f===Nr||!f&&u&&R?.nativeCurrency?.symbol&&u.toUpperCase()===R.nativeCurrency.symbol.toUpperCase()?n.find(e=>e.token_address===Nr||e.native_token):n.find(e=>f&&e.token_address.toLowerCase()===f.toLowerCase())||n.find(e=>u&&e.symbol.toUpperCase()===u.toUpperCase()),r){d=!0;const n=s.parameters?.pay_with_amount||"",i=s.parameters?.buy_amount||"";if(n)V({srcTokenAddress:r.token_address,srcTokenDecimals:r.decimals}),await Y(100,n,r.token_address,r.decimals);else if(i){let n="";try{const o=e.data.result.find(e=>e.token_address.toLowerCase()===t.toLowerCase());let a=o?.usd_price??null;if(null==a&&t){const e=await Uh({address:t,chain:B});e.success&&null!=e.data?.usd_price&&(a=e.data.usd_price)}const s=r.usd_price??null;null!=a&&null!=s&&s>0&&(n=(parseFloat(i)*a/s).toFixed(8).replace(/\.?0+$/,""))}catch(c){}n?(V({srcTokenAddress:r.token_address,srcTokenDecimals:r.decimals}),await Y(100,n,r.token_address,r.decimals)):await G(r.token_address,r.symbol,r.balance_formatted,r.decimals)}else await G(r.token_address,r.symbol,r.balance_formatted,r.decimals)}}}catch(i){}d||await W(t,r)}else l(a("tokenNotFoundOnChain",{symbol:e}),"bot",n.id),await K()}else if("buy_token_trending"===s.action)await K();else if("swap_token"===s.action){const e={...s.parameters||{}},t="native"===e.token_in||e.token_in_symbol?.toUpperCase()===R?.nativeCurrency?.symbol?.toUpperCase(),r="native"===e.token_out||e.token_out_symbol?.toUpperCase()===R?.nativeCurrency?.symbol?.toUpperCase();r&&(e.token_out=Nr);let u=[];if(O?.address)try{const e=await Dh({address:O.address,chain:B});e?.success&&e?.data?.result&&(u=e.data.result)}catch(i){}if(!t&&(e.token_in||e.token_in_symbol)&&u.length>0){const n=e.token_in?u.find(n=>n.token_address.toLowerCase()===e.token_in.toLowerCase()):u.find(n=>n.symbol.toUpperCase()===e.token_in_symbol.toUpperCase());n&&(e.token_in=n.token_address,e.token_in_decimals=String(n.decimals))}if(!r&&(e.token_out||e.token_out_symbol)&&u.length>0){const n=e.token_out?u.find(n=>n.token_address.toLowerCase()===e.token_out.toLowerCase()):u.find(n=>n.symbol.toUpperCase()===e.token_out_symbol.toUpperCase());n&&(e.token_out=n.token_address,e.token_out_decimals=String(n.decimals))}const c=!(!e.token_in&&!t),h=!!e.token_out,p=!!e.amount;if(c&&u.length>0)if(t){const e=u.find(e=>e.native_token);if(!e||Oh(e.balance_formatted||"0").isZero())return l(a("formInsufficientBalance",{balance:"0",symbol:R?.nativeCurrency?.symbol||"native"}),"bot",n.id),void v(!1)}else if(e.token_in){const t=u.find(n=>n.token_address.toLowerCase()===e.token_in.toLowerCase());if(!t)return l(a("swapTokenNotInWallet",{symbol:e.token_in_symbol||e.token_in}),"bot",n.id),void v(!1);if(Oh(t.balance_formatted||"0").isZero())return l(a("formInsufficientBalance",{balance:"0",symbol:t.symbol}),"bot",n.id),void v(!1)}if(c&&h&&p)try{const n=[];e.token_out&&n.push(e.token_out),e.token_in&&!t&&n.push(e.token_in);let r=18,s=18;if(n.length>0)try{const i=await jh.getTokensDetails(n,N);if(i?.data)for(const n of i.data)t||n.address.toLowerCase()!==e.token_in?.toLowerCase()||(r=n.decimals||18),n.address.toLowerCase()===e.token_out?.toLowerCase()&&(s=n.decimals||18)}catch(f){}if(O?.address)try{if(u.length>0)if(t){const n=u.find(e=>e.native_token);let t=n?.balance_formatted||"0";try{const e=await ip({chainId:F,rpcUrl:U});if(e.isGreaterThan(0)){const r=e.times(1e6),i=new Oh(n?.balance||"0").minus(r);t=i.isGreaterThan(0)?Oh(ht(BigInt(i.toFixed(0)),n?.decimals||18)).toFixed():"0"}}catch(d){}e.amount=Ap(e.amount,t,n?.usd_price);const r=parseFloat(t),i=parseFloat(e.amount);if(Oh(r).lte(0))return l(a("formInsufficientBalance",{balance:Oh(r).decimalPlaces(8).toFixed(),symbol:R?.nativeCurrency?.symbol||"native"}),"bot"),void v(!1);if(Oh(r).lt(i))return l(a("swapInsufficientNativeBalance",{balance:Oh(r).decimalPlaces(8).toFixed(),symbol:R?.nativeCurrency?.symbol||"native",amount:e.amount}),"bot"),void v(!1)}else{const n=u.find(n=>n.token_address.toLowerCase()===e.token_in?.toLowerCase());if(!n)return l(a("swapTokenNotInWallet",{symbol:e.token_in_symbol||e.token_in}),"bot"),void v(!1);e.amount=Ap(e.amount,n.balance_formatted||"0",n.usd_price);const t=parseFloat(n.balance_formatted||"0"),r=parseFloat(e.amount);if(Oh(t).lt(r))return l(a("swapInsufficientTokenBalance",{balance:Oh(t).decimalPlaces(8).toFixed(),symbol:n.symbol,amount:e.amount}),"bot"),void v(!1)}}catch(y){}const c=t?Nr:e.token_in;V({srcTokenAddress:c,descTokenAddress:e.token_out,amount:e.amount,srcTokenDecimals:r,descTokenDecimals:s});const h=Rr(e.amount,r).toString(),p=await Vh({chainId:F,tokenIn:c,tokenInAmount:h,tokenOut:e.token_out,tokenOutRecipient:O?.address||"",slippage:"auto",accesstoken:"d6c45897b8f6"});if(p.success&&p.data){const e=p.data,n=e.tokenIn,r=e.tokenOut,s=Oh(ht(BigInt(n.amount||0),n.decimals)).decimalPlaces(8).toFormat(),u=Oh(ht(BigInt(r.amount||0),r.decimals)).decimalPlaces(8).toFormat();let f=!1;if(!t&&O?.address&&e.tx?.to)try{const n=await ep({tokenAddress:c,ownerAddress:O.address,spenderAddress:e.tx.to,chainId:F,rpcUrl:U});f=Oh(n.toString()).isLessThan(h)}catch(i){f=!0}const d=e.estimatedTransactionFee?.total?Oh(e.estimatedTransactionFee.total):Oh(0);let m=Oh(0);if(f&&O?.address)try{const n=np({tokenAddress:c,spenderAddress:e.tx?.to||"",fromAddress:O.address,chainId:F,amount:h});m=await rp({from:O.address,to:n.to,data:n.data,chainId:F,rpcUrl:U})}catch(i){}const b=d.plus(m),v=R?.nativeCurrency?.symbol||"native";let y="",w=!1;if(O?.address&&b.isGreaterThan(0))try{const e=await tp({address:O.address,chainId:F,rpcUrl:U});if(e.isLessThan(b)){w=!0;const n=Oh(ht(BigInt(e.toFixed(0)),18)).decimalPlaces(8).toFormat(),t=Oh(ht(BigInt(b.toFixed(0)),18)).decimalPlaces(8).toFormat();y=a("swapFeeWarning",{symbol:v,balance:n,needed:t})}}catch(i){}const g=`From: ${s} ${n.symbol}\n⬇️\nTo: ${u} ${r.symbol}\n\n`+y+"\n";if(w)l(g,"bot");else if(f){const t=[{id:"approve-for-swap",text:a("swapApproveButton",{symbol:n.symbol}),value:a("swapApproveValue",{symbol:n.symbol}),action:"approve_for_swap",fullWidth:!0,extraData:{tokenAddress:c,spenderAddress:e.tx.to,tokenSymbol:n.symbol,amountInWei:h,tx:e.tx}}];l(g+a("swapNeedApprove",{symbol:n.symbol}),"bot",void 0,t)}else{const n=[{id:"confirm-swap",text:o("swapConfirmYes"),value:o("swapConfirmValue"),action:"confirm_swap",extraData:{tx:e.tx}}];l(g+o("swapReadyToProceed"),"bot",void 0,n)}}else l(a("swapEstimationError",{error:p.errorMessage||p.error||"Unknown error"}),"bot")}catch(g){l(o("swapEstimationFailed"),"bot")}else if(c&&h&&!p){let r=t?18:parseInt(e.token_in_decimals||"18",10),s=parseInt(e.token_out_decimals||"18",10);const c=[];if(e.token_out&&c.push(e.token_out),e.token_in&&!t&&c.push(e.token_in),c.length>0)try{const n=await jh.getTokensDetails(c,N);if(n?.data)for(const i of n.data)t||i.address.toLowerCase()!==e.token_in?.toLowerCase()||(r=i.decimals||r),i.address.toLowerCase()===e.token_out?.toLowerCase()&&(s=i.decimals||s)}catch(f){}if(V({descTokenAddress:e.token_out,descTokenDecimals:s}),t)try{if(u.length>0){const e=u.find(e=>e.native_token),t=R?.nativeCurrency?.symbol||"ETH";let i=e?.balance_formatted||"0";try{const n=await ip({chainId:F,rpcUrl:U});if(n.isGreaterThan(0)){const t=n.times(1e6),r=new Oh(e?.balance||"0").minus(t);i=r.isGreaterThan(0)?Oh(ht(BigInt(r.toFixed(0)),e?.decimals||18)).toFixed():"0"}}catch(d){}V({srcTokenAddress:Nr,srcTokenDecimals:r});const o=[25,50,75,100].map(e=>({id:`percent-${e}`,text:`${e}%`,value:a("buttonUsePercent",{percent:String(e),symbol:t}),action:"select_percent",extraData:{percent:e,tokenAddress:Nr,tokenSymbol:t,tokenDecimals:r,tokenBalance:i}}));l(a("selectAmountToSwap",{symbol:t,balance:i}),"bot",n.id,o)}else l(o("couldNotFetchBalance"),"bot")}catch(i){l(o("couldNotFetchBalanceRetry"),"bot")}else{const t=e.token_in_symbol||"Token";V({srcTokenAddress:e.token_in,srcTokenDecimals:r});try{if(u.length>0){const r=u.find(n=>n.token_address.toLowerCase()===e.token_in?.toLowerCase());if(!r)return l(a("swapTokenNotInWallet",{symbol:t}),"bot"),void v(!1);const i=[25,50,75,100].map(e=>({id:`percent-${e}`,text:`${e}%`,value:a("buttonUsePercent",{percent:String(e),symbol:r.symbol}),action:"select_percent",extraData:{percent:e,tokenAddress:r.token_address,tokenSymbol:r.symbol,tokenDecimals:r.decimals||18,tokenBalance:r.balance_formatted}}));l(a("selectAmountToSwap",{symbol:r.symbol,balance:`${r.balance_formatted} (~$${r.usd_value?.toFixed(2)||"0"})`}),"bot",n.id,i)}else l(o("couldNotFetchBalance"),"bot")}catch(i){l(o("couldNotFetchBalanceRetry"),"bot")}}}else if(!c&&h){l(s.message||o("swapChooseFrom"),"bot",n.id);let t=parseInt(e.token_out_decimals||"18",10);if(e.token_out)try{const n=await jh.getTokensDetails([e.token_out],N);n?.data?.[0]&&(t=n.data[0].decimals||t)}catch(f){}p&&V({descTokenAddress:e.token_out,descTokenDecimals:t,amount:e.amount}),await W(e.token_out,t)}else if(c&&!h){let r=t?18:parseInt(e.token_in_decimals||"18",10);if(e.token_in&&!t)try{const n=await jh.getTokensDetails([e.token_in],N);n?.data?.[0]&&(r=n.data[0].decimals||r)}catch(f){}if(V(t?{srcTokenAddress:Nr,srcTokenDecimals:18,...p?{amount:e.amount}:{}}:{srcTokenAddress:e.token_in,srcTokenDecimals:r,...p?{amount:e.amount}:{}}),p&&u.length>0)if(t){const t=u.find(e=>e.native_token),r=Ap(e.amount,t?.balance_formatted||"0",t?.usd_price);if(Oh(t?.balance_formatted||"0").lt(r))return l(a("swapInsufficientNativeBalance",{balance:Oh(t?.balance_formatted||"0").decimalPlaces(8).toFixed(),symbol:R?.nativeCurrency?.symbol||"native",amount:r}),"bot",n.id),void v(!1);e.amount=r,V({amount:r})}else if(e.token_in){const t=u.find(n=>n.token_address.toLowerCase()===e.token_in.toLowerCase());if(t){const r=Ap(e.amount,t.balance_formatted||"0",t.usd_price);if(Oh(t.balance_formatted||"0").lt(r))return l(a("swapInsufficientTokenBalance",{balance:Oh(t.balance_formatted||"0").decimalPlaces(8).toFixed(),symbol:t.symbol,amount:r}),"bot",n.id),void v(!1);e.amount=r,V({amount:r})}}l(s.message||a("swapChooseTo",{symbol:e.token_in_symbol||"your token"}),"bot",n.id);try{v(!0);const e=R?.tokenTrendingDefault||[],[n,t]=await Promise.allSettled([jh.getTopGainers(N,"24h",5),jh.getTokensDetails(e,N)]);let r=[];"fulfilled"===n.status&&n.value?.data&&(r=[...n.value.data]),"fulfilled"===t.status&&t.value?.data&&(r=[...t.value.data,...r]),r=r.filter((e,n,t)=>n===t.findIndex(n=>n.address.toLowerCase()===e.address.toLowerCase()));const i=r.map(e=>({id:e?.symbol,text:e?.symbol,value:a("buttonSwapTo",{name:e.name,symbol:e?.symbol||""}),action:"click_swap_dest_token",extraData:{tokenAddress:e?.address||"",symbol:e?.symbol||"",decimals:e?.decimals||18}}));l(a("trendingTokensForReceive",{chain:R?.name||"Unknown"}),"bot",void 0,i)}catch(i){l(o("couldNotLoadTokenList"),"bot")}finally{v(!1)}}else if(p&&V({amount:e.amount}),l(s.message||o("swapChooseToken"),"bot",n.id),O?.address)try{v(!0);const e=await Dh({address:O.address,chain:B});if(e?.success&&e?.data?.result&&e.data.result.length>0){const n=e.data.result.map(e=>({id:`swap-select-${e.token_address}`,text:`${e.name}: ${e.balance_formatted} ${e.symbol} ($${Oh(e?.usd_value||0).decimalPlaces(2).toFixed()||"0"})`,value:`Swap ${e.symbol}`,action:"suggested_action",fullWidth:!0}));await Jd(500),v(!1),l(a("walletBalanceSpendable",{chain:R?.name||"this chain"}),"bot",void 0,n)}else v(!1),l(a("walletNoTokensFound",{chain:R?.name||"this chain"}),"bot")}catch(i){v(!1),l(o("walletFetchError"),"bot")}}else if("view_balances"===s.action)await Q();else if("view_nfts"===s.action)await X();else if("send_token"!==s.action||s.parameters?.contract_address||s.parameters?.token_symbol||!O?.address)if("send_nft"!==s.action||s.parameters?.contract_address||s.parameters?.token_id||s.parameters?.nft_name||!O?.address)if("send_nft"===s.action&&!qn(s.parameters?.contract_address||"")&&(s.parameters?.nft_name||s.parameters?.token_id)&&O?.address)try{v(!0);const e=await Ph({address:O.address,chain:B,limit:100,exclude_spam:!1});if(e?.success&&e?.data?.result){const t=e.data.result,r=(s.parameters?.nft_name||"").toLowerCase(),i=s.parameters?.token_id||"",o=e=>{const n=(e.normalized_metadata?.name||e.name||"").toLowerCase(),t=(e.name||"").toLowerCase(),o=r&&(n.includes(r)||t.includes(r)),a=i&&e.token_id===i;return r&&i?o&&a:r?o:a},u=!r&&!!i,c=u?t.filter(o):[],f=u?1===c.length?c[0]:null:t.find(o);if(u&&c.length>1){const e=c.map(e=>{const n=e.normalized_metadata?.name||e.name||`#${e.token_id}`,t=e.normalized_metadata?.image||e.media?.original_media_url||"";return{id:`${e.token_address}-${e.token_id}`,text:`${n} (${e.symbol||e.contract_type}) #${e.token_id}`,value:a("buttonSendNft",{name:n}),action:"select_nft_to_send",fullWidth:!0,extraData:{contractAddress:e.token_address,tokenId:e.token_id,tokenStandard:e.contract_type,name:n,symbol:e.symbol,amount:e.amount,image:t,toAddress:s.parameters?.to_address||""}}}),t=c.map((e,n)=>{const t=e.normalized_metadata?.name||e.name||`#${e.token_id}`,r=e.normalized_metadata?.image||e.media?.original_media_url||"";return`${n+1}. ${r?`![${t}](${r})\n`:"🖼️ "}**${t}**\n ${e.symbol||e.contract_type} | Token ID: ${e.token_id}`}).join("\n\n");v(!1),l(a("nftMultipleMatchesForTokenId",{count:String(c.length),tokenId:i})+"\n\n"+t,"bot",n.id,e)}else if(f){const e=f.normalized_metadata?.name||f.name||`#${f.token_id}`,t=f.normalized_metadata?.image||f.media?.original_media_url||"",r={contract_address:f.token_address,token_id:f.token_id,to_address:s.parameters?.to_address||"",token_standard:f.contract_type||"",amount:s.parameters?.amount||"1",maxAmount:f.amount||"1",nft_name:e};l(s.message||a("nftSendReview",{name:e,standard:f.contract_type||"NFT",tokenId:f.token_id}),"bot",n.id,void 0,{action:"send_nft",parameters:r,status:"pending",nftInfo:{name:e,image:t||void 0,tokenId:f.token_id,contractAddress:f.token_address,tokenStandard:f.contract_type||void 0}})}else l(a("nftNotFoundInWallet",{name:r||i}),"bot",n.id)}else l(o("nftNoCollection"),"bot",n.id)}catch(i){l(o("nftFetchError"),"bot",n.id)}finally{v(!1)}else{const o=(t=s.action,["send_native","send_token","approve_token","wrap_native","unwrap_native","send_nft"].includes(t));let u,c,f={...s.parameters||{}};const h=["send_token","approve_token"].includes(s.action)&&(f.contract_address||f.token_symbol),p="send_native"===s.action||"wrap_native"===s.action,m="unwrap_native"===s.action,b="send_nft"===s.action&&f.contract_address;if(h&&O?.address)try{const e=await Dh({address:O.address,chain:B});if(e?.success&&e?.data?.result){const n=e.data.result,t=f.contract_address?n.find(e=>e.token_address.toLowerCase()===f.contract_address.toLowerCase()):n.find(e=>e.symbol.toUpperCase()===f.token_symbol.toUpperCase());t&&(f={...f,contract_address:t.token_address,decimals:String(t.decimals)},u={symbol:t.symbol,name:t.name,balance:t.balance,balanceFormatted:t.balance_formatted,usdValue:t.usd_value,usdPrice:t.usd_price,decimals:t.decimals,logo:t.logo||t.thumbnail,contractAddress:t.token_address})}}catch(i){}if(h&&!u&&"send_token"===s.action){const e=f.token_symbol||f.contract_address||"this token";return l(a("sendTokenNotInWallet",{symbol:e}),"bot",n.id),void v(!1)}if(h&&!u&&f.contract_address)try{const e=await Uh({address:f.contract_address,chain:B});if(e?.success&&e?.data){const n=e.data;u={symbol:n.symbol,name:n.name,balance:"0",balanceFormatted:"0",usdPrice:n.usd_price,decimals:n.decimals,logo:n.logo,contractAddress:f.contract_address},f={...f,decimals:String(n.decimals)}}}catch(i){}if(p&&O?.address)try{const e=await Dh({address:O.address,chain:B});if(e?.success&&e?.data?.result){const n=e.data.result.find(e=>e.native_token);if(n){let e=n.balance_formatted,t=n.balance;try{const r=new Oh(n.balance),i="0x"+BigInt(r.toFixed(0)).toString(16),o=await rp({from:O.address,to:O.address,data:"0x",value:i,chainId:F,rpcUrl:U});if(o.isGreaterThan(0)){const i=r.minus(o);i.isGreaterThan(0)?(t=i.toFixed(0),e=Oh(ht(BigInt(i.toFixed(0)),n.decimals)).toFixed()):(t="0",e="0")}}catch(d){}u={symbol:n.symbol,name:n.name,balance:t,balanceFormatted:e,usdValue:n.usd_value,usdPrice:n.usd_price,decimals:n.decimals,logo:n.logo||n.thumbnail,contractAddress:Nr}}else{const e=await Uh({address:Nr,chain:B});if(e?.success&&e?.data){const n=e.data;u={symbol:n.symbol,name:n.name,balance:"0",balanceFormatted:"0",usdValue:0,usdPrice:n.usd_price,decimals:n.decimals,logo:n.logo||n.thumbnail,contractAddress:Nr}}}}}catch(i){}if(m&&O?.address)try{const e=await Dh({address:O.address,chain:B});if(e?.success&&e?.data?.result){const n=e.data.result,t=`W${R?.nativeCurrency?.symbol||"ETH"}`,r=n.find(e=>e.symbol.toUpperCase()===t.toUpperCase());r&&(u={symbol:r.symbol,name:r.name,balance:r.balance,balanceFormatted:r.balance_formatted,usdValue:r.usd_value,usdPrice:r.usd_price,decimals:r.decimals,logo:r.logo||r.thumbnail,contractAddress:r.token_address})}}catch(i){}if(b){try{const e=await async function(e){const{address:n,chain:t="base"}=e;if(!n)throw new Error("Contract address is required");try{return{success:!0,data:(await Lh.get(`api/moralis/proxy/nft/${encodeURIComponent(n)}/metadata`,{query:{chain:t}})).data}}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}({address:f.contract_address,chain:B});if(e?.success&&e?.data){const n=e.data;n.contract_type&&(f={...f,token_standard:n.contract_type}),!f.nft_name&&n.name&&(f={...f,nft_name:n.name})}}catch(i){}if(O?.address)try{const e=await Ph({address:O.address,chain:B,limit:100,exclude_spam:!1});if(e?.success&&e?.data?.result){const t=e.data.result.find(e=>e.token_address.toLowerCase()===f.contract_address.toLowerCase()&&e.token_id===f.token_id);if(!t){const e=f.nft_name||`#${f.token_id||f.contract_address}`;return l(a("nftNotFoundInWallet",{name:e}),"bot",n.id),void v(!1)}{f={...f,amount:f.amount||"1",maxAmount:t.amount||"1"};const e=t.normalized_metadata?.image||t.media?.original_media_url||"";c={name:t.normalized_metadata?.name||t.name||f.nft_name||`#${t.token_id}`,image:e||void 0,tokenId:t.token_id,contractAddress:t.token_address,tokenStandard:t.contract_type||f.token_standard||void 0}}}}catch(i){}}if(f.amount&&u?.balanceFormatted&&("send_token"===s.action||"send_native"===s.action||"wrap_native"===s.action||"unwrap_native"===s.action)&&(f.amount=Ap(f.amount,u.balanceFormatted,u.usdPrice)),o){const e=s.message||"Please review and complete the form below.";l(e,"bot",n.id,void 0,{action:s.action,parameters:f,status:"pending",tokenInfo:u,nftInfo:c})}else l(s.message||e,"bot",n.id)}else l(a("sendNftViaWebsite",{link:gp}),"bot");else try{const e=await Dh({address:O.address,chain:B});if(e?.success&&e?.data?.result&&e.data.result.length>0){l(o("sendTokenChoose"),"bot",n.id),v(!0),await Jd(500);const t=e.data.result.map(e=>({id:`send-select-${e.token_address}`,text:`${e.name}: ${e.balance_formatted} ${e.symbol} ($${Oh(e?.usd_value||0).decimalPlaces(2).toFixed()||"0"})`,value:a("buttonSendToken",{symbol:e.symbol}),action:"suggested_action",fullWidth:!0}));await Jd(500),v(!1),l(a("walletBalanceSpendable",{chain:R?.name||"this chain"}),"bot",void 0,t)}else v(!1),l(a("walletNoTokensFound",{chain:R?.name||"this chain"}),"bot")}catch(i){v(!1),l(o("walletFetchError"),"bot")}else if(s&&"chat"===s.action){const t=s.token_mentions||[],r=s.suggested_actions||[],i=[];t.length>0&&(await Promise.all(t.map(async e=>{let n=e.contract_address||"",t=e.decimals||18;if("native"===n.toLowerCase()&&(n=Nr),n===Nr){const n=m?.find(e=>e.native_token);return n?{symbol:e.symbol||n.symbol,contract_address:Nr,decimals:18}:e.symbol?{symbol:e.symbol,contract_address:Nr,decimals:18}:null}if(n&&n!==Nr){const r=m?.find(t=>t.token_address.toLowerCase()===n.toLowerCase()&&t.symbol.toUpperCase()===e.symbol.toUpperCase());if(r){try{const e=await jh.getTokensDetails([n],N);t=e?.data?.[0]?.decimals??t}catch{}return{symbol:e.symbol,contract_address:n,decimals:t}}try{const r=await jh.getTokensDetails([n],N),i=r?.data?.[0];if(i&&i.symbol?.toUpperCase()===e.symbol.toUpperCase())return{symbol:e.symbol,contract_address:n,decimals:i.decimals??t};n=""}catch{n=""}}if(!n&&m){const r=m.find(n=>n.symbol.toUpperCase()===e.symbol.toUpperCase());if(r){n=r.token_address;try{const e=await jh.getTokensDetails([n],N);t=e?.data?.[0]?.decimals??t}catch{}}}return n?{symbol:e.symbol,contract_address:n,decimals:t}:null}))).filter(e=>null!==e).forEach(e=>{i.push({id:`buy-${e.symbol}`,text:`💰 Buy ${e.symbol}`,value:a("buttonBuySymbol",{symbol:e.symbol}),action:"click_buy_item_token_button",extraData:{tokenAddress:e.contract_address,symbol:e.symbol,decimals:e.decimals},fullWidth:!0})}),r.length>0&&r.forEach((e,n)=>{i.push({id:`suggested-${n}-${e.label}`,text:e.label,value:e.prompt,action:"suggested_action",fullWidth:!0})}),i.length>0?l(s.message||e,"bot",n.id,i):l(s.message||e,"bot",n.id)}else l(e,"bot",n.id)}else l(o("errorProcessingRequest"),"bot",n.id)}catch(r){l(o("errorProcessingRequest"),"bot",n.id)}var t;v(!1),await Jd(50),cp.isDesktop&&S.current?.focus()},[p,b,k,l,s,O?.address,L,R?.name,R?.nativeCurrency?.symbol,R?.tokenTrendingDefault,F,h,B,N,a,W,G,Y,K,o,V,U,Q,X]);j.useEffect(()=>{C.current&&p===C.current&&(C.current=null,$())},[p,$]);const ee=j.useCallback(async(e,n,r)=>{try{if(w(!1),u(r,"submitted"),"swap_token"===e){let e=18;if(n.token_in&&n.token_in!==Nr)try{const t=await jh.getTokensDetails([n.token_in],N);t?.data?.[0]&&(e=t.data[0].decimals||18)}catch(i){}const t=Rr(n.amount||"0",e).toString(),c=await Vh({chainId:F,tokenIn:n.token_in||"",tokenInAmount:t,tokenOut:n.token_out||"",tokenOutRecipient:O?.address||"",slippage:"auto",accesstoken:"d6c45897b8f6"});if(c.success&&c.data){const e=c.data,i=e.tokenIn,f=e.tokenOut,d=Oh(ht(BigInt(i.amount||0),i.decimals)).decimalPlaces(8).toFormat(),h=Oh(ht(BigInt(f.amount||0),f.decimals)).decimalPlaces(8).toFormat(),p=!n.token_in||n.token_in===Nr;let m=!1;if(!p&&O?.address&&e.tx?.to)try{const r=await ep({tokenAddress:n.token_in,ownerAddress:O.address,spenderAddress:e.tx.to,chainId:F,rpcUrl:U});m=Oh(r.toString()).isLessThan(t)}catch(s){}const b=e.estimatedTransactionFee?.total?Oh(e.estimatedTransactionFee.total):Oh(0);let v=Oh(0);if(m&&O?.address)try{const r=np({tokenAddress:n.token_in,spenderAddress:e.tx?.to||"",fromAddress:O.address,chainId:F,amount:t});v=await rp({from:O.address,to:r.to,data:r.data,chainId:F,rpcUrl:U})}catch(s){}const y=b.plus(v),w=R?.nativeCurrency?.symbol||"native";let g="",k=!1;if(O?.address&&y.isGreaterThan(0))try{const e=await tp({address:O.address,chainId:F,rpcUrl:U});if(e.isLessThan(y)){k=!0;const n=Oh(ht(BigInt(e.toFixed(0)),18)).decimalPlaces(8).toFormat(),t=Oh(ht(BigInt(y.toFixed(0)),18)).decimalPlaces(8).toFormat();g=a("swapFeeWarning",{symbol:w,balance:n,needed:t})}}catch(s){}const A=`From: ${d} ${i.symbol}\n⬇️\nTo: ${h} ${f.symbol}\n\n`+g+"\n";if(k)u(r,"pending"),l(A,"bot");else if(m){const o=[{id:"approve-swap-actionform",text:a("swapApproveButton",{symbol:i.symbol}),value:a("swapApproveValue",{symbol:i.symbol}),action:"approve_for_swap",extraData:{tokenAddress:n.token_in,spenderAddress:e.tx.to,tokenSymbol:i.symbol,amountInWei:t,tx:e.tx},fullWidth:!0}];u(r,"success"),l(A+a("swapApprovalRequired",{symbol:i.symbol}),"bot",void 0,o)}else{const n=[{id:"confirm-swap-actionform",text:o("swapConfirmYes"),value:o("swapConfirmValue"),action:"confirm_swap",extraData:{tx:e.tx}}];u(r,"success"),l(A+o("swapReadyToProceed"),"bot",void 0,n)}}else u(r,"pending"),l(a("swapEstimationError",{error:c.errorMessage||c.error||"Unknown error"}),"bot")}else{const i=function(e){const{action:n,parameters:t,fromAddress:r,chainId:i}=e;switch(n){case"send_native":return function(e,n,t){const{to_address:r,amount:i}=e;if(!r)throw new Error("Recipient address is required");if(!i)throw new Error("Amount is required");return{from:n,to:r,data:"0x",value:Rr(Oh(i).decimalPlaces(18,Oh.ROUND_DOWN).toFixed(),18).toString(),chainId:t,description:`Send ${i} native token to ${r}`}}(t,r,i);case"send_token":return function(e,n,t){const{contract_address:r,to_address:i,amount:o,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Recipient address is required");if(!o)throw new Error("Amount is required");const l=parseInt(a)||18,u=Rr(Oh(o).decimalPlaces(l,Oh.ROUND_DOWN).toFixed(),l);return{from:n,to:r,data:ot({abi:Kh,functionName:"transfer",args:[i,u]}),value:"0",chainId:t,description:`Send ${o} ${s||"tokens"} to ${i}`}}(t,r,i);case"approve_token":return function(e,n,t){const{contract_address:r,spender_address:i,amount:o,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Spender address is required");const l=parseInt(a)||18,u=o&&""!==o?.trim()?Rr(Oh(o).decimalPlaces(l,Oh.ROUND_DOWN).toFixed(),l):Vt;return{from:n,to:r,data:ot({abi:Kh,functionName:"approve",args:[i,u]}),value:"0",chainId:t,description:`Approve ${o||"unlimited"} ${s||"tokens"} for ${i}`}}(t,r,i);case"wrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Jh[t];if(!i)throw new Error(`WETH not supported on chain ${t}`);const o=Rr(Oh(r).decimalPlaces(18,Oh.ROUND_DOWN).toFixed(),18).toString();return{from:n,to:i,data:ot({abi:Xh,functionName:"deposit"}),value:o,chainId:t,description:`Wrap ${r} native token`}}(t,r,i);case"unwrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Jh[t];if(!i)throw new Error(`WETH not supported on chain ${t}`);const o=Rr(Oh(r).decimalPlaces(18,Oh.ROUND_DOWN).toFixed(),18);return{from:n,to:i,data:ot({abi:Xh,functionName:"withdraw",args:[o]}),value:"0",chainId:t,description:`Unwrap ${r} WETH`}}(t,r,i);case"send_nft":return function(e,n,t){const{contract_address:r,token_id:i,to_address:o,token_standard:a,amount:s,nft_name:l}=e;if(!r)throw new Error("NFT contract address is required");if(!i)throw new Error("Token ID is required");if(!o)throw new Error("Recipient address is required");const u=(a||"ERC721").toUpperCase(),c=BigInt(i);let f,d;if("ERC1155"===u){const e=BigInt(s||"1");f=ot({abi:Zh,functionName:"safeTransferFrom",args:[n,o,c,e,"0x"]}),d=`Send ${e>1n?e.toString()+"x ":""}${l||"NFT"} (ERC1155 #${i}) to ${o}`}else f=ot({abi:Qh,functionName:"safeTransferFrom",args:[n,o,c]}),d=`Send ${l||"NFT"} (ERC721 #${i}) to ${o}`;return{from:n,to:r,data:f,value:"0",chainId:t,description:d}}(t,r,i);default:throw new Error(`Action "${n}" does not produce a transaction`)}}({action:e,parameters:n,fromAddress:O?.address||"",chainId:F||1}),s={from:i.from,to:i.to,data:i.data,value:i.value,chainId:i.chainId};if(("send_token"===e||"send_native"===e||"send_nft"===e||"wrap_native"===e||"unwrap_native"===e||"approve_token"===e)&&O?.address)try{const e=R?.nativeCurrency?.symbol||"native",n=await rp({from:i.from,to:i.to,data:i.data,value:i.value&&"0"!==i.value?`0x${BigInt(i.value).toString(16)}`:void 0,chainId:F,rpcUrl:U});if(n.isGreaterThan(0)){const t=await tp({address:O.address,chainId:F,rpcUrl:U});if(t.isLessThan(n)){const i=Oh(ht(BigInt(t.toFixed(0)),18)).decimalPlaces(8).toFormat(),o=Oh(ht(BigInt(n.toFixed(0)),18)).decimalPlaces(8).toFormat();return u(r,"pending"),void l(a("txInsufficientGas",{symbol:e,balance:i,fee:o}),"bot")}}}catch(f){}if(t){v(!1);const i=await t(s);if("success"===i.status&&i.transactionHash){const t=R?.blockExplorers?.default?.url,s=t?` [View on Explorer](${t}/tx/${i.transactionHash})`:` Tx: ${i.transactionHash}`;try{if(await Jd(4e3),"success"===(await $h({transactionHash:i.transactionHash,chainId:F||1,rpcUrl:U})).status){if(u(r,"success"),c(r,n),"approve_token"===e&&l(a("approvalSuccess",{symbol:n.token_symbol||n.contract_address||"Token"})+s,"bot"),"send_token"===e||"send_native"===e||"send_nft"===e){const t=n.to_address||n.recipient||"",r=t?`${t.slice(0,6)}...${t.slice(-4)}`:"";l("send_nft"===e?a("txSuccessfulSendNft",{name:n.nft_name||n.token_symbol||"NFT",tokenId:n.token_id||"",to:r})+s:a("send_native"===e?"txSuccessfulSendNative":"txSuccessfulSendToken",{amount:n.amount||"",symbol:n.token_symbol||("send_native"===e?R?.nativeCurrency?.symbol||"native":"Token"),to:r})+s,"bot")}if("wrap_native"===e){const e=R?.nativeCurrency?.symbol||"native";l(a("txSuccessfulWrapNative",{amount:n.amount||"",from:e,to:`W${e}`})+s,"bot")}if("unwrap_native"===e){const e=R?.nativeCurrency?.symbol||"native";l(a("txSuccessfulUnwrapNative",{amount:n.amount||"",from:`W${e}`,to:e})+s,"bot")}}else u(r,"pending"),l(o("txReverted")+"\n"+s,"bot")}catch(d){u(r,"success"),l(o("txTimeout")+"\n"+s,"bot")}}else if("success"===i.status)u(r,"success");else{u(r,"pending");const e=i.error?`\nError: ${i.error}`:"";l(o("txFailed")+e,"bot")}}else u(r,"pending"),l(o("txNoHandler"),"bot")}}catch(h){u(r,"pending"),l(a("txError",{message:h instanceof Error?h.message:"Unknown error"}),"bot")}},[u,F,O?.address,N,R?.nativeCurrency?.symbol,R?.blockExplorers?.default?.url,U,a,l,o,t,c]),ne=j.useCallback(e=>{d([e])},[d]),[te,re]=j.useState({}),ie=j.useCallback(async(e,n,t)=>{re(e=>({...e,[t]:!0}));try{await ee(e,n,t)}finally{re(e=>({...e,[t]:!1}))}},[ee]),oe=j.useCallback(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),$())},[$]),ae=j.useCallback(()=>{const e=window.getSelection();e&&e.toString().length>0||n()},[n]);return e?/* @__PURE__ */g.jsx("div",{className:"chat-modal-overlay"+("bottom-left"===r?" chat-modal-overlay--left":""),onClick:ae,role:"dialog","aria-modal":"true","aria-labelledby":"chat-modal-title",children:/* @__PURE__ */g.jsxs("div",{className:"chat-modal",style:i,onClick:e=>e.stopPropagation(),children:[
40
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-header",children:[
41
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-header-title",children:[
42
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-header-left",children:[
43
+ /* @__PURE__ */g.jsx("div",{className:"keyring-logo",children:/* @__PURE__ */g.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAA8CAYAAAAdUliaAAAACXBIWXMAABYlAAAWJQFJUiTwAAAA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Dc5qYaUky/UjSROjRvHaP0DHw8xU2dDUcJdrL1ItH7Zw+UVtcfef2P7YEfunfxxp/eNcDAORGFDWsDnREBg9cEP0YPciOOEdqYNa/WEfDaKAfcnj+uAiPLt5gZt5Yoi+SXHv356YXHj7TSRMmNs3fM+w0cZWQlVcN39Z0tgjZmDSBUktv/QNxUW1yd8yAF+nbFZxplkDXrxUL/EEtCcYL5vV584fRscbYV+E0v31774svfyPOJ00C9R1ScyTN43B5cVGzK64Aba++s18XlNINObKV3MNhS9L3JkSBsVF/FZA8mTj33XHt+r23LwIWkzJrZsubX4kpiIr7o3Fy6cgJL5lMXUhnfUT81tisvEHMIxt4GWUocsRrGAPmw8OLh1Q9ffSYEXn7i/UEBiXIY2EC4mlk88qOJQXjuZ8qWcO/xt7sG7OS3dw4tks/7Z6DCzFAwmpEjuJOLrDqbfuPgKvF26zpiqsrfboHANJhhozHSTRzG6EElb4I3ZtzDZQFWos7nju0f4v0zOcDR0ZKze2CvaFIAu09k/Afa4zQderj9crAOxdg39CCj03t9CA+6PEeQvBH43/iZB8JnlB++tpJLe2I6LWF7ho/I+DSKeswpFLpzkYw5MyF1fsLnIhiePulzEuQzkVr2laEBDfjE3iqPjLdhvbaHjp8ZsJMnjpyZ5kOdHCek2/XJkwYYgjYnU+qcjyB6YsXvKOXJxYHXduXdLiXuP1np1M8VA6xEmbQM4DSfSOX0MZiHsaMyPnGitISIhvmZT53SKEcHXm4947vqgJ3MHlrJpkGUGdxgxk27Bdxjzv/QUSVNMP6lI0NL3bZ9VQA7ee3plVzSw4leiSPRU1ULupaRMv/lF4Yrl9PmVQXs5GiRqeKJwd4GbU9JOsdHw7Wvz10e0GtyTTrIJznoNVtvIOH9AAAAAElFTkSuQmCC",alt:"Keyring Logo",width:22,height:30})}),
44
+ /* @__PURE__ */g.jsx("h3",{id:"chat-modal-title",children:o("chatTitle")})]}),
45
+ /* @__PURE__ */g.jsx("button",{className:"close-button",onClick:n,"aria-label":o("closeChat"),type:"button",children:/* @__PURE__ */g.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:/* @__PURE__ */g.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),
46
+ /* @__PURE__ */g.jsx(th,{address:O?.address,chainId:O?.chainId})]}),
47
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-messages-wrapper",children:[
48
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-messages",ref:E,role:"log","aria-live":"polite",children:[s.map((e,n)=>/* @__PURE__ */g.jsxs("div",{children:[_(n)&&/* @__PURE__ */g.jsx("div",{className:"date-separator",children:Yd(e.timestamp)}),
49
+ /* @__PURE__ */g.jsxs("div",{className:"message "+("user"===e.sender?"message-user":"message-bot"),role:"article",children:[
50
+ /* @__PURE__ */g.jsx("button",{disabled:cp.isMobile,className:"message-reply-button",onClick:()=>z(e),"aria-label":o("replyToMessage"),type:"button",children:/* @__PURE__ */g.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:/* @__PURE__ */g.jsx("path",{d:"M3.5 8.5L1 6L3.5 3.5M1.5 6H10C12.2091 6 14 7.79086 14 10V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),
51
+ /* @__PURE__ */g.jsxs("div",{className:"message-bubble",children:[e.replyTo&&/* @__PURE__ */g.jsxs("div",{className:"message-reply-to",children:[
52
+ /* @__PURE__ */g.jsxs("div",{className:"message-reply-to-label",children:[o("replyingTo")," ","user"===e.replyTo.sender?o("replyingToYou"):o("replyingToAgent")]}),
53
+ /* @__PURE__ */g.jsx("div",{className:"message-reply-to-text",children:e.replyTo.text})]}),
54
+ /* @__PURE__ */g.jsx("div",{className:"message-text",children:/* @__PURE__ */g.jsx(wp,{content:e.text})}),e.buttons&&e.buttons.length>0&&/* @__PURE__ */g.jsx("div",{className:"message-buttons",children:e.buttons.map(e=>/* @__PURE__ */g.jsx("button",{className:`message-button ${e.fullWidth?"full-width":""} ${"suggested_action"===e.action?"suggested-action":""}`,onClick:()=>J(e.value,e.action,e?.extraData),type:"button",children:e.text},e.id))}),e.actionData&&("pending"===e.actionData.status||"success"===e.actionData.status||"submitted"===e.actionData.status)&&/* @__PURE__ */g.jsx(qh,{disabled:"success"===e.actionData.status||"submitted"===e.actionData.status,action:e.actionData.action,initialValues:e.actionData.parameters,onSubmit:(n,t)=>{ie(n,t,e.id),setTimeout(()=>{x.current?.scrollIntoView({behavior:"smooth"})},100)},onCancel:()=>ne(e.id),isSubmitting:te[e.id]||!1,tokenInfo:e.actionData.tokenInfo,nftInfo:e.actionData.nftInfo}),e.actionData&&"submitted"===e.actionData.status&&/* @__PURE__ */g.jsx("div",{className:"action-status action-status-submitted mb-1",children:o("txProcessing")}),e.actionData&&"fail"===e.actionData.status&&/* @__PURE__ */g.jsx("div",{className:"action-status action-status-fail mb-1",children:o("actionFail")}),
55
+ /* @__PURE__ */g.jsxs("div",{className:"message-timestamp",children:[e.timestamp.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),"user"===e.sender&&/* @__PURE__ */g.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"check-icon",children:/* @__PURE__ */g.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]})]},e.id)),b&&/* @__PURE__ */g.jsx("div",{className:"message message-bot typing-indicator",role:"status","aria-label":o("botIsTyping"),children:/* @__PURE__ */g.jsxs("div",{className:"message-bubble",children:[
56
+ /* @__PURE__ */g.jsx("span",{className:"typing-dot"}),
57
+ /* @__PURE__ */g.jsx("span",{className:"typing-dot"}),
58
+ /* @__PURE__ */g.jsx("span",{className:"typing-dot"})]})}),(y||1===s.length)&&/* @__PURE__ */g.jsxs(g.Fragment,{children:[s.length>1&&/* @__PURE__ */g.jsx("div",{className:"message message-bot",role:"article",children:/* @__PURE__ */g.jsx("div",{className:"message-bubble",children:/* @__PURE__ */g.jsx("div",{className:"message-text",children:o("canIHelpYou")})})}),
59
+ /* @__PURE__ */g.jsx("div",{className:"suggestions-container",children:Z.map(e=>/* @__PURE__ */g.jsxs("button",{className:"suggestion-button",onClick:e.action,type:"button",children:[
60
+ /* @__PURE__ */g.jsx("span",{className:"suggestion-icon",children:e.icon}),
61
+ /* @__PURE__ */g.jsx("span",{className:"suggestion-text",children:e.text})]},e.id))})]}),
62
+ /* @__PURE__ */g.jsx("div",{ref:x})]}),
63
+ /* @__PURE__ */g.jsx(Gh,{scrollContainerRef:E})]}),
64
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-input",children:[k&&/* @__PURE__ */g.jsxs("div",{className:"reply-preview",children:[
65
+ /* @__PURE__ */g.jsxs("div",{className:"reply-preview-content",children:[
66
+ /* @__PURE__ */g.jsxs("div",{className:"reply-preview-label",children:[o("replyingTo")," ","user"===k.sender?o("replyingToYou"):o("replyingToAgent")]}),
67
+ /* @__PURE__ */g.jsx("div",{className:"reply-preview-text",children:k.text})]}),
68
+ /* @__PURE__ */g.jsx("button",{className:"reply-preview-close",onClick:()=>A(null),"aria-label":o("cancelReply"),type:"button",children:/* @__PURE__ */g.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:/* @__PURE__ */g.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),
69
+ /* @__PURE__ */g.jsxs("div",{className:"chat-modal-input-row",children:[
70
+ /* @__PURE__ */g.jsx("input",{ref:S,type:"text",placeholder:o("messagePlaceholder"),value:p,onChange:e=>m(e.target.value),onKeyPress:oe,disabled:b,"aria-label":"Message input"}),
71
+ /* @__PURE__ */g.jsx("button",{className:"send-button",onClick:$,"aria-label":o("sendMessage"),disabled:b||""===p?.trim(),type:"button",children:/* @__PURE__ */g.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='36'%20height='36'%20rx='18'%20fill='%232358B2'/%3e%3cmask%20id='mask0_1924_16177'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='11'%20y='10'%20width='17'%20height='16'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='url(%23pattern0_1924_16177)'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1924_16177)'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cpattern%20id='pattern0_1924_16177'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_1924_16177'%20transform='scale(0.00195312)'/%3e%3c/pattern%3e%3cimage%20id='image0_1924_16177'%20width='512'%20height='512'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOgAAADoABlffMYAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7d13uGRlme7/79M0ijnrKM6ImHAMmHXGgB7zKJhzAAMgZjFg4DfnzO8ISM4gKIKIEgwImAAjiAQRCSoCCgaCgOQcn/PHu5reNHt37121qt61qr6f6+pLbLr3vi/Seuqtp947MhNJkjRdFtUOIEmSxs8BQJKkKeQAIEnSFHIAkCRpCjkASJI0hRbXDjCoiFgMPBB40Iwf9wZimV96E/AP4PzmxwWZeeMYo0qS1DnRl48BRsSqwFrA85ofa3DHh/18JHAxcCrwmyU/MvPslqJKktR5nR0AImJ1lj7s1wJWH/G3vAw4EjgE+EFmXj7i7ydJUjWdGgAi4uXA2ykP/YdWjHITcBRlGDggMy+umEWSpNZVHwAiYmXgrcAngMdXDTO7G4ADgZ0z88TaYS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GAz4Ju28kmS2rbcewDmkpmHAu+l3Cuvdp0IvBpYMzMP9OEvSRqFgQYAgMzcB/hUe1Gm3i+Bl2Xm0zPzkBzkaEaSpHka6C2A232BiI8DW+MdAYP6MaWS9xe1g0iSpsfQAwBARLwZ+Co2By7E9ygP/uNrB5EkTZ9WBgCAiHgBcDAWBy3PrcC3KZW8p9QOI0maXq0NAAAR8QTgEODhrX3RyXAL8A1gi8w8vXYYSZJaHQAAIuKewJ7Am1r9wv10I+WtkS9k5tm1w0iStETrA8BtXzjiPZSSmruO5Bt023XAl4GtMvPc2mEkSVrWyAYAgIhYA9gPeOrIvkm3XA3sDmybmRfWDiNJ0lxGOgAARMQiYH3g88D9R/rN6rkc2BnYITMvrR1GkqQVGfkAcNs3irgP8P8DGzE5Vwj/E9ge2CUzr6wdRpKk+RrbAHDbNyyfFPgf4FUMcRNhZRdQLj/aw0peSVIfjX0AuO0bRzwK2BhYF7hLlRALdwKwG3CAlbySpD6rNgDcFiDiAcAHgXcCq1UNM7trKZ/h3z0zT6odRpKkNlQfAGaKiH8HXtH8eDawuFKUG4GjgO8C+2XmFZVySJI0Ep0aAGaKiHsBL6EMAy8HHjjib3ku8EPg+8BPMvPqEX8/SZKq6ewAMFNEBPB0ykCwOvDgGT/uz8KWCW8G/gT8fsaP07yiV5I0TXoxACxPRCymnA7MHAoeAFwPXAFcOeN/LwPOycwb66SVJKkbej8ASJKkhevr5/AlSdIQHAAkSZpCDgCSJE0hBwBJkqaQA4AkSVPo/wH9hnZgmG1pVwAAAABJRU5ErkJggg=='/%3e%3c/defs%3e%3c/svg%3e",alt:"Send",width:44,height:44})})]})]})]})}):null};let Ep=!1;!function(){if(Ep||"undefined"==typeof document)return;Ep=!0;const e=document.createElement("style");e.setAttribute("data-keyring-utils",""),e.textContent="\n/* ===== Display ===== */\n.hidden { display: none !important; }\n.block { display: block; }\n.inline-block { display: inline-block; }\n.inline { display: inline; }\n.flex { display: flex; }\n.inline-flex { display: inline-flex; }\n.grid { display: grid; }\n\n/* ===== Flex Direction ===== */\n.flex-row { flex-direction: row; }\n.flex-col { flex-direction: column; }\n.flex-row-reverse { flex-direction: row-reverse; }\n.flex-col-reverse { flex-direction: column-reverse; }\n\n/* ===== Flex Wrap ===== */\n.flex-wrap { flex-wrap: wrap; }\n.flex-nowrap { flex-wrap: nowrap; }\n\n/* ===== Flex Grow / Shrink ===== */\n.flex-1 { flex: 1 1 0%; }\n.flex-auto { flex: 1 1 auto; }\n.flex-none { flex: none; }\n.grow { flex-grow: 1; }\n.grow-0 { flex-grow: 0; }\n.shrink { flex-shrink: 1; }\n.shrink-0 { flex-shrink: 0; }\n\n/* ===== Justify Content ===== */\n.justify-start { justify-content: flex-start; }\n.justify-end { justify-content: flex-end; }\n.justify-center { justify-content: center; }\n.justify-between { justify-content: space-between; }\n.justify-around { justify-content: space-around; }\n.justify-evenly { justify-content: space-evenly; }\n\n/* ===== Align Items ===== */\n.items-start { align-items: flex-start; }\n.items-end { align-items: flex-end; }\n.items-center { align-items: center; }\n.items-baseline { align-items: baseline; }\n.items-stretch { align-items: stretch; }\n\n/* ===== Align Self ===== */\n.self-auto { align-self: auto; }\n.self-start { align-self: flex-start; }\n.self-end { align-self: flex-end; }\n.self-center { align-self: center; }\n.self-stretch { align-self: stretch; }\n\n/* ===== Gap ===== */\n.gap-0 { gap: 0; }\n.gap-1 { gap: 4px; }\n.gap-2 { gap: 8px; }\n.gap-3 { gap: 12px; }\n.gap-4 { gap: 16px; }\n.gap-5 { gap: 20px; }\n.gap-6 { gap: 24px; }\n.gap-8 { gap: 32px; }\n\n/* ===== Padding ===== */\n.p-0 { padding: 0; }\n.p-1 { padding: 4px; }\n.p-2 { padding: 8px; }\n.p-3 { padding: 12px; }\n.p-4 { padding: 16px; }\n.p-5 { padding: 20px; }\n.p-6 { padding: 24px; }\n.p-8 { padding: 32px; }\n.px-0 { padding-left: 0; padding-right: 0; }\n.px-1 { padding-left: 4px; padding-right: 4px; }\n.px-2 { padding-left: 8px; padding-right: 8px; }\n.px-3 { padding-left: 12px; padding-right: 12px; }\n.px-4 { padding-left: 16px; padding-right: 16px; }\n.px-6 { padding-left: 24px; padding-right: 24px; }\n.py-0 { padding-top: 0; padding-bottom: 0; }\n.py-1 { padding-top: 4px; padding-bottom: 4px; }\n.py-2 { padding-top: 8px; padding-bottom: 8px; }\n.py-3 { padding-top: 12px; padding-bottom: 12px; }\n.py-4 { padding-top: 16px; padding-bottom: 16px; }\n.py-6 { padding-top: 24px; padding-bottom: 24px; }\n\n/* ===== Margin ===== */\n.m-0 { margin: 0; }\n.m-1 { margin: 4px; }\n.m-2 { margin: 8px; }\n.m-3 { margin: 12px; }\n.m-4 { margin: 16px; }\n.m-auto { margin: auto; }\n.mx-auto { margin-left: auto; margin-right: auto; }\n.mx-0 { margin-left: 0; margin-right: 0; }\n.mx-2 { margin-left: 8px; margin-right: 8px; }\n.mx-4 { margin-left: 16px; margin-right: 16px; }\n.my-0 { margin-top: 0; margin-bottom: 0; }\n.my-1 { margin-top: 4px; margin-bottom: 4px; }\n.my-2 { margin-top: 8px; margin-bottom: 8px; }\n.my-4 { margin-top: 16px; margin-bottom: 16px; }\n.mt-0 { margin-top: 0; }\n.mt-1 { margin-top: 4px; }\n.mt-2 { margin-top: 8px; }\n.mt-4 { margin-top: 16px; }\n.mb-0 { margin-bottom: 0; }\n.mb-1 { margin-bottom: 4px; }\n.mb-2 { margin-bottom: 8px; }\n.mb-4 { margin-bottom: 16px; }\n.ml-auto { margin-left: auto; }\n.mr-auto { margin-right: auto; }\n.mr-2 { margin-right: 8px; }\n\n/* ===== Width & Height ===== */\n.w-full { width: 100%; }\n.w-auto { width: auto; }\n.w-screen { width: 100vw; }\n.w-fit { width: fit-content; }\n.min-w-0 { min-width: 0; }\n.max-w-full { max-width: 100%; }\n.h-full { height: 100%; }\n.h-auto { height: auto; }\n.h-screen { height: 100vh; }\n.h-fit { height: fit-content; }\n.min-h-0 { min-height: 0; }\n.min-h-screen { min-height: 100vh; }\n\n/* ===== Position ===== */\n.relative { position: relative; }\n.absolute { position: absolute; }\n.fixed { position: fixed; }\n.sticky { position: sticky; }\n.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }\n.top-0 { top: 0; }\n.right-0 { right: 0; }\n.bottom-0 { bottom: 0; }\n.left-0 { left: 0; }\n\n/* ===== Overflow ===== */\n.overflow-hidden { overflow: hidden; }\n.overflow-auto { overflow: auto; }\n.overflow-scroll { overflow: scroll; }\n.overflow-visible { overflow: visible; }\n.overflow-x-auto { overflow-x: auto; }\n.overflow-y-auto { overflow-y: auto; }\n.overflow-x-hidden { overflow-x: hidden; }\n\n/* ===== Text ===== */\n.text-xs { font-size: 12px; line-height: 16px; }\n.text-sm { font-size: 14px; line-height: 20px; }\n.text-base { font-size: 16px; line-height: 24px; }\n.text-lg { font-size: 18px; line-height: 28px; }\n.text-xl { font-size: 20px; line-height: 28px; }\n.text-2xl { font-size: 24px; line-height: 32px; }\n.text-3xl { font-size: 30px; line-height: 36px; }\n\n.font-thin { font-weight: 100; }\n.font-light { font-weight: 300; }\n.font-normal { font-weight: 400; }\n.font-medium { font-weight: 500; }\n.font-semibold { font-weight: 600; }\n.font-bold { font-weight: 700; }\n.font-extrabold { font-weight: 800; }\n\n.text-left { text-align: left; }\n.text-center { text-align: center; }\n.text-right { text-align: right; }\n\n.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }\n.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.whitespace-nowrap { white-space: nowrap; }\n.whitespace-pre-wrap { white-space: pre-wrap; }\n.break-words { overflow-wrap: break-word; }\n.break-all { word-break: break-all; }\n.uppercase { text-transform: uppercase; }\n.lowercase { text-transform: lowercase; }\n.capitalize { text-transform: capitalize; }\n.italic { font-style: italic; }\n.underline { text-decoration: underline; }\n.line-through { text-decoration: line-through; }\n.no-underline { text-decoration: none; }\n\n/* ===== Border ===== */\n.border { border: 1px solid #e5e7eb; }\n.border-0 { border: 0; }\n.border-2 { border-width: 2px; }\n.border-t { border-top: 1px solid #e5e7eb; }\n.border-b { border-bottom: 1px solid #e5e7eb; }\n.border-l { border-left: 1px solid #e5e7eb; }\n.border-r { border-right: 1px solid #e5e7eb; }\n.rounded { border-radius: 4px; }\n.rounded-sm { border-radius: 2px; }\n.rounded-md { border-radius: 6px; }\n.rounded-lg { border-radius: 8px; }\n.rounded-xl { border-radius: 12px; }\n.rounded-2xl { border-radius: 16px; }\n.rounded-full { border-radius: 9999px; }\n.rounded-none { border-radius: 0; }\n\n/* ===== Background & Colors ===== */\n.bg-transparent { background-color: transparent; }\n.bg-white { background-color: #ffffff; }\n.bg-black { background-color: #000000; }\n.bg-gray-50 { background-color: #f9fafb; }\n.bg-gray-100 { background-color: #f3f4f6; }\n.bg-gray-200 { background-color: #e5e7eb; }\n.bg-gray-500 { background-color: #6b7280; }\n.bg-gray-800 { background-color: #1f2937; }\n.bg-blue-500 { background-color: #3b82f6; }\n.bg-red-500 { background-color: #ef4444; }\n.bg-green-500 { background-color: #22c55e; }\n\n.text-white { color: #ffffff; }\n.text-black { color: #000000; }\n.text-gray-400 { color: #9ca3af; }\n.text-gray-500 { color: #6b7280; }\n.text-gray-600 { color: #4b5563; }\n.text-gray-700 { color: #374151; }\n.text-gray-900 { color: #111827; }\n.text-blue-500 { color: #3b82f6; }\n.text-blue-600 { color: #2563eb; }\n.text-red-500 { color: #ef4444; }\n.text-green-500 { color: #22c55e; }\n\n/* ===== Opacity ===== */\n.opacity-0 { opacity: 0; }\n.opacity-25 { opacity: 0.25; }\n.opacity-50 { opacity: 0.5; }\n.opacity-75 { opacity: 0.75; }\n.opacity-100 { opacity: 1; }\n\n/* ===== Shadow ===== */\n.shadow-none { box-shadow: none; }\n.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }\n.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); }\n.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); }\n.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05); }\n.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04); }\n\n/* ===== Cursor ===== */\n.cursor-pointer { cursor: pointer; }\n.cursor-default { cursor: default; }\n.cursor-not-allowed { cursor: not-allowed; }\n.cursor-wait { cursor: wait; }\n\n/* ===== Pointer Events ===== */\n.pointer-events-none { pointer-events: none; }\n.pointer-events-auto { pointer-events: auto; }\n\n/* ===== Select ===== */\n.select-none { user-select: none; }\n.select-text { user-select: text; }\n.select-all { user-select: all; }\n\n/* ===== Z-Index ===== */\n.z-0 { z-index: 0; }\n.z-10 { z-index: 10; }\n.z-20 { z-index: 20; }\n.z-30 { z-index: 30; }\n.z-40 { z-index: 40; }\n.z-50 { z-index: 50; }\n\n/* ===== Transition ===== */\n.transition { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }\n.transition-colors { transition: color, background-color, border-color 150ms ease; }\n.transition-opacity { transition: opacity 150ms ease; }\n.transition-transform { transition: transform 150ms ease; }\n.duration-75 { transition-duration: 75ms; }\n.duration-100 { transition-duration: 100ms; }\n.duration-150 { transition-duration: 150ms; }\n.duration-200 { transition-duration: 200ms; }\n.duration-300 { transition-duration: 300ms; }\n.duration-500 { transition-duration: 500ms; }\n\n/* ===== Transform ===== */\n.scale-95 { transform: scale(0.95); }\n.scale-100 { transform: scale(1); }\n.scale-105 { transform: scale(1.05); }\n.rotate-45 { transform: rotate(45deg); }\n.rotate-90 { transform: rotate(90deg); }\n.rotate-180 { transform: rotate(180deg); }\n\n/* ===== Object Fit ===== */\n.object-cover { object-fit: cover; }\n.object-contain { object-fit: contain; }\n.object-fill { object-fit: fill; }\n.object-center { object-position: center; }\n\n/* ===== List ===== */\n.list-none { list-style: none; }\n.list-disc { list-style-type: disc; }\n.list-decimal { list-style-type: decimal; }\n\n/* ===== Visibility ===== */\n.visible { visibility: visible; }\n.invisible { visibility: hidden; }\n\n/* ===== Aspect Ratio ===== */\n.aspect-square { aspect-ratio: 1 / 1; }\n.aspect-video { aspect-ratio: 16 / 9; }\n\n/* ===== Scrollbar ===== */\n.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }\n.scrollbar-hide::-webkit-scrollbar { display: none; }\n",document.head.appendChild(e)}();const Sp=({position:e,theme:n,defaultOpen:t,onOpen:r,onClose:i,onTransaction:o})=>{const{account:a,chainId:s}=eh(),[l,u]=j.useState(t);j.useEffect(()=>{t&&r&&r()},[]),j.useEffect(()=>{if("undefined"==typeof window)return;const e=document.body,n=document.documentElement,t=e.style.overscrollBehavior,r=n.style.overscrollBehavior,i=e.style.overflow;return l&&(e.style.overscrollBehavior="none",n.style.overscrollBehavior="none",e.style.overflow="hidden"),()=>{e.style.overscrollBehavior=t,n.style.overscrollBehavior=r,e.style.overflow=i}},[l]);const c=j.useCallback(()=>{u(!0),r?.()},[r]),f=j.useCallback(()=>{u(!1),i?.()},[i]),d=j.useCallback(()=>{l?f():c()},[l,c,f]),h={position:"fixed",["bottom-right"===e?"right":"left"]:n.offset?.x??20,bottom:n.offset?.y??20,zIndex:n.zIndex??9999};return _d(a?.address||"")&&s?/* @__PURE__ */g.jsxs("div",{style:h,role:"complementary","aria-label":"Chat widget",children:[
72
+ /* @__PURE__ */g.jsx(G,{buttonSize:n.buttonSize,onClick:d}),
73
+ /* @__PURE__ */g.jsx(xp,{isOpen:l,onClose:f,onTransaction:o,position:e,modalChatStyle:n.modalChatStyle})]}):/* @__PURE__ */g.jsx(g.Fragment,{})},Cp=({position:e="bottom-right",theme:n={},defaultOpen:t=!1,onOpen:r,onClose:i,account:o,onTransaction:a,language:s="en",rpcUrls:l})=>{const u={position:e,theme:n,rpcUrls:l};return"undefined"==typeof window?null:/* @__PURE__ */g.jsx(fh,{initialConfig:u,children:/* @__PURE__ */g.jsx(nh,{initialAccount:o,children:/* @__PURE__ */g.jsx(W,{initialLanguage:s,children:/* @__PURE__ */g.jsx(Sp,{position:e,theme:n,defaultOpen:t,onOpen:r,onClose:i,onTransaction:a})})})})};class Tp extends HTMLElement{root=null;static get observedAttributes(){return["position","primary-color","button-size","z-index","default-open"]}connectedCallback(){const e=document.createElement("div");this.attachShadow({mode:"open"}).appendChild(e);const n={position:this.getAttribute("position")||"bottom-right",defaultOpen:"true"===this.getAttribute("default-open"),theme:{primaryColor:this.getAttribute("primary-color")||"#007bff",buttonSize:parseInt(this.getAttribute("button-size")||"60"),zIndex:parseInt(this.getAttribute("z-index")||"9999")}};this.root=P.createRoot(e),this.root.render(/* @__PURE__ */g.jsx(Cp,{...n}))}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null)}attributeChangedCallback(){this.root&&this.connectedCallback()}}customElements.get("chat-widget")||customElements.define("chat-widget",Tp);export{Tp as ChatWidgetElement};