keyring-chatbot-agent 1.0.22 → 1.0.23
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
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;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.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;overflow:hidden}.chat-modal-header-left{display:flex;align-items:center;gap:6px;overflow:hidden}.keyring-logo{width:22px;height:30px;display:flex;align-items:center;justify-content:center}.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;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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;margin-bottom:4px;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}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
2
2
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.o&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(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,"o",{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 r,o,i={exports:{}},a={},s={},u={exports:{}},l={};function c(){if(o)return l;o=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),n=/* @__PURE__ */Symbol.for("react.portal"),t=/* @__PURE__ */Symbol.for("react.fragment"),r=/* @__PURE__ */Symbol.for("react.strict_mode"),i=/* @__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(){}},y=Object.assign,v={};function b(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}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var k=g.prototype=new w;k.constructor=g,y(k,b.prototype),k.isPureReactComponent=!0;var A=Array.isArray;function E(){}var T={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function x(n,t,r){var o=r.ref;return{$$typeof:e,type:n,key:t,ref:void 0!==o?o:null,props:r}}function C(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,o,i,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u,l,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.i)(t.u),r,o,i,a)}}if(c)return a=a(t),c=""===i?"."+M(t,0):i,A(a)?(o="",null!=c&&(o=c.replace(I,"$&/")+"/"),O(a,r,o,"",function(e){return e})):null!=a&&(C(a)&&(u=a,l=o+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+c,a=x(u.type,l,u.props)),r.push(a)),1;c=0;var f,h=""===i?".":i+":";if(A(t))for(var m=0;m<t.length;m++)c+=O(i=t[m],r,o,s=h+M(i,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;!(i=t.next()).done;)c+=O(i=i.value,r,o,s=h+M(i,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(E,E):(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,o,i,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=[],o=0;return O(e,r,"","",function(e){return n.call(t,e,o++)}),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)},P={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(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return l.Activity=h,l.Children=P,l.Component=b,l.Fragment=t,l.Profiler=i,l.PureComponent=g,l.StrictMode=r,l.Suspense=c,l.R=T,l.N={__proto__:null,c:function(e){return T.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=y({},e.props),o=e.key;if(null!=n)for(i in void 0!==n.key&&(o=""+n.key),n)!S.call(n,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===n.ref||(r[i]=n[i]);var i=arguments.length-2;if(1===i)r.children=t;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return x(e.type,o,r)},l.createContext=function(e){return(e={$$typeof:s,P:e,U:e,j:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,q:e},e},l.createElement=function(e,n,t){var r,o={},i=null;if(null!=n)for(r in void 0!==n.key&&(i=""+n.key),n)S.call(n,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=n[r]);var a=arguments.length-2;if(1===a)o.children=t;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return x(e,i,o)},l.createRef=function(){return{current:null}},l.forwardRef=function(e){return{$$typeof:u,render:e}},l.isValidElement=C,l.lazy=function(e){return{$$typeof:d,u:{I:-1,O:e},i:N}},l.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},l.startTransition=function(e){var n=T.T,t={};T.T=t;try{var r=e(),o=T.S;null!==o&&o(t,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(E,B)}catch(i){B(i)}finally{null!==n&&null!==t.types&&(n.types=t.types),T.T=n}},l.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},l.use=function(e){return T.H.use(e)},l.useActionState=function(e,n,t){return T.H.useActionState(e,n,t)},l.useCallback=function(e,n){return T.H.useCallback(e,n)},l.useContext=function(e){return T.H.useContext(e)},l.useDebugValue=function(){},l.useDeferredValue=function(e,n){return T.H.useDeferredValue(e,n)},l.useEffect=function(e,n){return T.H.useEffect(e,n)},l.useEffectEvent=function(e){return T.H.useEffectEvent(e)},l.useId=function(){return T.H.useId()},l.useImperativeHandle=function(e,n,t){return T.H.useImperativeHandle(e,n,t)},l.useInsertionEffect=function(e,n){return T.H.useInsertionEffect(e,n)},l.useLayoutEffect=function(e,n){return T.H.useLayoutEffect(e,n)},l.useMemo=function(e,n){return T.H.useMemo(e,n)},l.useOptimistic=function(e,n){return T.H.useOptimistic(e,n)},l.useReducer=function(e,n,t){return T.H.useReducer(e,n,t)},l.useRef=function(e){return T.H.useRef(e)},l.useState=function(e){return T.H.useState(e)},l.useSyncExternalStore=function(e,n,t){return T.H.useSyncExternalStore(e,n,t)},l.useTransition=function(){return T.H.useTransition()},l.version="19.2.4",l}var f,d,h,p,m={exports:{}};function y(){return f||(f=1,e=m,n=m.exports,"production"!==process.env.NODE_ENV&&function(){function t(e,n){Object.defineProperty(o.prototype,e,{get:function(){}})}function r(e,n){var t=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+n;z[t]||(z[t]=!0)}function o(e,n,t){this.props=e,this.context=n,this.refs=J,this.updater=t||G}function i(){}function a(e,n,t){this.props=e,this.context=n,this.refs=J,this.updater=t||G}function s(){}function u(e){return""+e}function l(e){try{u(e);var n=!1}catch(o){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),u(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 P:return"Profiler";case B:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case V:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case R:return"Portal";case F:return e.displayName||"Context";case L:return(e.q.displayName||"Context")+".Consumer";case D:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(n=e.displayName||null)?n:c(e.type)||"Memo";case q:n=e.u,e=e.i;try{return c(e(n))}catch(t){}}return null}function f(e){if(e===N)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===q)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 y(e,n,t,r,o,i){var a=t.ref;return e={$$typeof:O,type:e,key:n,props:t,V:r},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:m}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e.W={},Object.defineProperty(e.W,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"Y",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"J",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"K",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function v(e){b(e)?e.W&&(e.W.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===q&&("fulfilled"===e.u.status?b(e.u.value)&&e.u.value.W&&(e.u.value.W.validated=1):e.W&&(e.W.validated=1))}function b(e){return"object"==typeof e&&null!==e&&e.$$typeof===O}function w(e,n){return"object"==typeof e&&null!==e&&null!=e.key?(l(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,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a,u,c,f=!1;if(null===e)f=!0;else switch(i){case"bigint":case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case O:case R:f=!0;break;case q:return g((f=e.i)(e.u),n,t,r,o)}}if(f){o=o(f=e);var d=""===r?"."+w(f,0):r;return Z(o)?(t="",null!=d&&(t=d.replace(ie,"$&/")+"/"),g(o,n,t,"",function(e){return e})):null!=o&&(b(o)&&(null!=o.key&&(f&&f.key===o.key||l(o.key)),a=o,u=t+(null==o.key||f&&f.key===o.key?"":(""+o.key).replace(ie,"$&/")+"/")+d,u=y(a.type,u,a.props,a.V,a.J,a.K),a.W&&(u.W.validated=a.W.validated),t=u,""!==r&&null!=f&&b(f)&&null==f.key&&f.W&&!f.W.validated&&(t.W.validated=2),o=t),n.push(o)),1}if(f=0,d=""===r?".":r+":",Z(e))for(var h=0;h<e.length;h++)f+=g(r=e[h],n,t,i=d+w(r,h),o);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,i=d+w(r,h++),o);else if("object"===i){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,o);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=[],o=0;return g(e,r,"","",function(e){return n.call(t,e,o++)}),r}function A(e){if(-1===e.I){var n=e.Z;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.Z;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.Z;null!=r&&(r.end=performance.now()),void 0===t.status&&(t.status="rejected",t.reason=n)}}),null!=(n=e.Z)){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 E(){return $.H}function T(){$.asyncTransitions--}function S(n){if(null===ue)try{var t=("require"+Math.random()).slice(0,7);ue=(e&&e[t]).call(e,"timers").setImmediate}catch(r){ue=function(e){!1===se&&(se=!0);var n=new MessageChannel;n.port1.onmessage=e,n.port2.postMessage(void 0)}}return ue(n)}function x(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function C(e,n){le=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(o){$.thrownErrors.push(o)}else $.actQueue=null;0<$.thrownErrors.length?(r=x($.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(o){e.splice(0,n+1),$.thrownErrors.push(o)}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"),P=/* @__PURE__ */Symbol.for("react.profiler"),L=/* @__PURE__ */Symbol.for("react.consumer"),F=/* @__PURE__ */Symbol.for("react.context"),D=/* @__PURE__ */Symbol.for("react.forward_ref"),U=/* @__PURE__ */Symbol.for("react.suspense"),H=/* @__PURE__ */Symbol.for("react.suspense_list"),j=/* @__PURE__ */Symbol.for("react.memo"),q=/* @__PURE__ */Symbol.for("react.lazy"),V=/* @__PURE__ */Symbol.for("react.activity"),W=Symbol.iterator,z={},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),o.prototype.isReactComponent={},o.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")},o.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]);i.prototype=o.prototype,(K=a.prototype=new i).constructor=a,Y(K,o.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)(),oe=ne(f(h)),ie=/\/+/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,ue=null,le=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 E().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(!b(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Activity=V,n.Children=he,n.Component=o,n.Fragment=N,n.Profiler=P,n.PureComponent=a,n.StrictMode=B,n.Suspense=U,n.R=$,n.N=K,n.act=function(e){var n=$.actQueue,t=le;le++;var r=$.actQueue=null!==n?n:[],o=!1;try{var i=e()}catch(u){$.thrownErrors.push(u)}if(0<$.thrownErrors.length)throw C(0,t),e=x($.thrownErrors),$.thrownErrors.length=0,e;if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i;return de(function(){o||ce||(ce=!0)}),{then:function(e,n){o=!0,a.then(function(o){if(C(0,t),0===t){try{M(r),S(function(){return I(o,e,n)})}catch(a){$.thrownErrors.push(a)}if(0<$.thrownErrors.length){var i=x($.thrownErrors);$.thrownErrors.length=0,n(i)}}else e(o)},function(e){C(0,t),0<$.thrownErrors.length?(e=x($.thrownErrors),$.thrownErrors.length=0,n(e)):n(e)})}}}var s=i;if(C(0,t),0===t&&(M(r),0!==r.length&&de(function(){o||ce||(ce=!0)}),$.actQueue=null),0<$.thrownErrors.length)throw e=x($.thrownErrors),$.thrownErrors.length=0,e;return{then:function(e,n){o=!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,o=Y({},e.props),i=e.key,a=e.V;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)&&(l(n.key),i=""+n.key),n)!ee.call(n,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===n.ref||(o[s]=n[s]);var s=arguments.length-2;if(1===s)o.children=t;else if(1<s){r=Array(s);for(var u=0;u<s;u++)r[u]=arguments[u+2];o.children=r}for(o=y(e.type,i,o,a,e.J,e.K),i=2;i<arguments.length;i++)v(arguments[i]);return o},n.createContext=function(e){return(e={$$typeof:F,P:e,U:e,j:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:L,q:e},e._=null,e.$=null,e},n.createElement=function(e,n,t){for(var r=2;r<arguments.length;r++)v(arguments[r]);r={};var o=null;if(null!=n)for(u in Q||!("ee"in n)||"key"in n||(Q=!0),p(n)&&(l(n.key),o=""+n.key),n)ee.call(n,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(r[u]=n[u]);var i=arguments.length-2;if(1===i)r.children=t;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];Object.freeze&&Object.freeze(a),r.children=a}if(e&&e.defaultProps)for(u in i=e.defaultProps)void 0===r[u]&&(r[u]=i[u]);o&&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 u=1e4>$.recentlyCreatedOwnerStacks++;return y(e,o,r,d(),u?Error("react-stack-top-frame"):re,u?ne(f(e)):oe)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){null!=e&&e.$$typeof===j||"function"!=typeof e||0!==e.length&&e.length,null!=e&&e.defaultProps;var n,t={$$typeof:D,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=b,n.lazy=function(e){var n={$$typeof:q,u:e={I:-1,O:e},i: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.Z=t,n.Y=[{awaited:t}],n},n.memo=function(e,n){var t;return n={$$typeof:j,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.ne=/* @__PURE__ */new Set,$.T=t;try{var r=e(),o=$.S;null!==o&&o(t,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&($.asyncTransitions++,r.then(T,T),r.then(s,ae))}catch(i){ae(i)}finally{null===n&&t.ne&&(e=t.ne.size,t.ne.clear()),null!==n&&null!==t.types&&(null!==n.types&&(n.types,t.types),n.types=t.types),$.T=n}},n.unstable_useCacheRefresh=function(){return E().useCacheRefresh()},n.use=function(e){return E().use(e)},n.useActionState=function(e,n,t){return E().useActionState(e,n,t)},n.useCallback=function(e,n){return E().useCallback(e,n)},n.useContext=function(e){var n=E();return e.$$typeof,n.useContext(e)},n.useDebugValue=function(e,n){return E().useDebugValue(e,n)},n.useDeferredValue=function(e,n){return E().useDeferredValue(e,n)},n.useEffect=function(e,n){return E().useEffect(e,n)},n.useEffectEvent=function(e){return E().useEffectEvent(e)},n.useId=function(){return E().useId()},n.useImperativeHandle=function(e,n,t){return E().useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return E().useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return E().useLayoutEffect(e,n)},n.useMemo=function(e,n){return E().useMemo(e,n)},n.useOptimistic=function(e,n){return E().useOptimistic(e,n)},n.useReducer=function(e,n,t){return E().useReducer(e,n,t)},n.useRef=function(e){return E().useRef(e)},n.useState=function(e){return E().useState(e)},n.useSyncExternalStore=function(e,n,t){return E().useSyncExternalStore(e,n,t)},n.useTransition=function(){return E().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())}()),m.exports;var e,n}function v(){return d||(d=1,"production"===process.env.NODE_ENV?u.exports=c():u.exports=y()),u.exports}var b,w,g,k=(p||(p=1,"production"===process.env.NODE_ENV?i.exports=function(){if(r)return a;r=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),n=/* @__PURE__ */Symbol.for("react.fragment");function t(n,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:o,ref:void 0!==t?t:null,props:r}}return a.Fragment=n,a.jsx=t,a.jsxs=t,a}():i.exports=(h||(h=1,"production"!==process.env.NODE_ENV&&function(){function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===x?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case p:return"Fragment";case y: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 b:return(n.q.displayName||"Context")+".Consumer";case g:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case E:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case T:t=n.u,n=n.i;try{return e(n(t))}catch(r){}}return null}function n(e){return""+e}function t(e){try{n(e);var t=!1}catch(i){t=!0}if(t){var r=(t=console).error,o="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.",o),n(e)}}function r(n){if(n===p)return"<>";if("object"==typeof n&&null!==n&&n.$$typeof===T)return"<...>";try{var t=e(n);return t?"<"+t+">":"<...>"}catch(r){return"<...>"}}function o(){return Error("react-stack-top-frame")}function i(){var n=e(this.type);return R[n]||(R[n]=!0),void 0!==(n=this.props.ref)?n:null}function a(n,r,o,a,s,l){var f,h=r.children;if(void 0!==h)if(a){if(M(h)){for(a=0;a<h.length;a++)u(h[a]);Object.freeze&&Object.freeze(h)}}else u(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}",P[h+a]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",P[h+a]=!0)}if(h=null,void 0!==o&&(t(o),h=""+o),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 o={},r)"key"!==m&&(o[m]=r[m]);else o=r;return h&&function(e){function n(){c||(c=!0)}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof n&&(n.displayName||n.name)),function(e,n,t,r,o,a){var s=t.ref;return e={$$typeof:d,type:e,key:n,props:t,V:r},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:i}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e.W={},Object.defineProperty(e.W,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"Y",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"J",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"K",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(n,h,o,null===(f=C.A)?null:f.getOwner(),s,l)}function u(e){l(e)?e.W&&(e.W.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===T&&("fulfilled"===e.u.status?l(e.u.value)&&e.u.value.W&&(e.u.value.W.validated=1):e.W&&(e.W.validated=1))}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var c,f=v(),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"),y=/* @__PURE__ */Symbol.for("react.profiler"),b=/* @__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"),E=/* @__PURE__ */Symbol.for("react.memo"),T=/* @__PURE__ */Symbol.for("react.lazy"),S=/* @__PURE__ */Symbol.for("react.activity"),x=/* @__PURE__ */Symbol.for("react.client.reference"),C=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,o)(),B=O(r(o)),P={};s.Fragment=p,s.jsx=function(e,n,t){var o=1e4>C.recentlyCreatedOwnerStacks++;return a(e,n,t,!1,o?Error("react-stack-top-frame"):N,o?O(r(e)):B)},s.jsxs=function(e,n,t){var o=1e4>C.recentlyCreatedOwnerStacks++;return a(e,n,t,!0,o?Error("react-stack-top-frame"):N,o?O(r(e)):B)}}()),s)),i.exports),A={exports:{}},E={},T={exports:{}},S={},x={};function C(){return g||(g=1,"production"===process.env.NODE_ENV?T.exports=(b||(b=1,function(e){function n(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 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,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,t))l<i&&0>o(c,u)?(e[r]=c,e[l]=t,r=l):(e[r]=u,e[s]=t,r=s);else{if(!(l<i&&0>o(c,t)))break e;e[r]=c,e[l]=t,r=l}}}return n}function o(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 i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,p=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function g(e){for(var o=t(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,n(u,o)}o=t(l)}}function k(e){if(m=!1,g(e),!p)if(null!==t(u))p=!0,E||(E=!0,A());else{var n=t(l);null!==n&&R(k,n.startTime-e)}}var A,E=!1,T=-1,S=5,x=-1;function C(){return!(!y&&e.unstable_now()-x<S)}function I(){if(y=!1,E){var n=e.unstable_now();x=n;var o=!0;try{e:{p=!1,m&&(m=!1,b(T),T=-1),h=!0;var i=d;try{n:{for(g(n),f=t(u);null!==f&&!(f.expirationTime>n&&C());){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),o=!0;break n}f===t(u)&&r(u),g(n)}else r(u);f=t(u)}if(null!==f)o=!0;else{var c=t(l);null!==c&&R(k,c.startTime-n),o=!1}}break e}finally{f=null,d=i,h=!1}o=void 0}}finally{o?A():E=!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){T=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(){y=!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,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i: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:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,n(l,r),null===t(u)&&r===t(l)&&(m?(b(T),T=-1):m=!0,R(k,i-a))):(r.sortIndex=s,n(u,r),p||h||(p=!0,E||(E=!0,A()))),r},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var n=d;return function(){var t=d;d=n;try{return e.apply(this,arguments)}finally{d=t}}}}(S)),S):T.exports=(w||(w=1,e=x,"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,E(x),x=-1),b=!0;var i=v;try{n:{for(a(n),y=r(h);null!==y&&!(y.expirationTime>n&&u());){var c=y.callback;if("function"==typeof c){y.callback=null,v=y.priorityLevel;var f=c(y.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof f){y.callback=f,a(n),t=!0;break n}y===r(h)&&o(h),a(n)}else o(h);y=r(h)}if(null!==y)t=!0;else{var d=r(p);null!==d&&l(s,d.startTime-n),t=!1}}break e}finally{y=null,v=i,b=!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,o=e[r];if(!(0<i(o,n)))break e;e[r]=n,e[t]=o,t=r}}function r(e){return 0===e.length?null:e[0]}function o(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,u=e[s],l=s+1,c=e[l];if(0>i(u,t))l<o&&0>i(c,u)?(e[r]=c,e[l]=t,r=l):(e[r]=u,e[s]=t,r=s);else{if(!(l<o&&0>i(c,t)))break e;e[r]=c,e[l]=t,r=l}}}return n}function i(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)o(p);else{if(!(n.startTime<=e))break;o(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&&l(s,n.startTime-e)}}function u(){return!(!k&&e.unstable_now()-I<C)}function l(n,t){x=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,y=null,v=3,b=!1,w=!1,g=!1,k=!1,A="function"==typeof setTimeout?setTimeout:null,E="function"==typeof clearTimeout?clearTimeout:null,T="undefined"!=typeof setImmediate?setImmediate:null,S=!1,x=-1,C=5,I=-1;if("function"==typeof T)var M=function(){T(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||(C=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,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,n){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return n={id:m++,callback:o,priorityLevel:n,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(n.sortIndex=i,t(p,n),null===r(h)&&n===r(p)&&(g?(E(x),x=-1):g=!0,l(s,i-a))):(n.sortIndex=u,t(h,n),w||b||(w=!0,S||(S=!0,M()))),n},e.unstable_shouldYield=u,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())}()),x)),T.exports;var e}var I,M={exports:{}},O={};var R,N,B,P={};function L(){return N||(N=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){}}}(),M.exports=function(){if(I)return O;I=1;var e=v();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},o=/* @__PURE__ */Symbol.for("react.portal"),i=e.R;function a(e,n){return"font"===e?"":"string"==typeof n?"use-credentials"===n?n:"":void 0}return O.te=r,O.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:o,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}(e,t,null,r)},O.flushSync=function(e){var n=i.T,t=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=n,r.p=t,r.d.f()}},O.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))},O.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},O.preinit=function(e,n){if("string"==typeof e&&n&&"string"==typeof n.as){var t=n.as,o=a(t,n.crossOrigin),i="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:o,integrity:i,fetchPriority:s}):"script"===t&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof n.nonce?n.nonce:void 0})}},O.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)},O.preload=function(e,n){if("string"==typeof e&&"object"==typeof n&&null!==n&&"string"==typeof n.as){var t=n.as,o=a(t,n.crossOrigin);r.d.L(e,t,{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})}},O.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)},O.requestFormReset=function(e){r.d.r(e)},O.unstable_batchedUpdates=function(e,n){return e(n)},O.useFormState=function(e,n,t){return i.H.useFormState(e,n,t)},O.useFormStatus=function(){return i.H.useHostTransitionStatus()},O.version="19.2.4",O}()):M.exports=(R||(R=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 o(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 i(){return l.H}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=v(),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},u=/* @__PURE__ */Symbol.for("react.portal"),l=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,P.te=s,P.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 o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{n(o);var i=!1}catch(a){i=!0}return i&&n(o),{$$typeof:u,key:null==o?null:""+o,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},P.flushSync=function(e){var n=l.T,t=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=n,s.p=t,s.d.f()}},P.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))},P.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)},P.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,o=t(r,n.crossOrigin),i="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:o,integrity:i,fetchPriority:a}):"script"===r&&s.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:a,nonce:"string"==typeof n.nonce?n.nonce:void 0})}},P.preinitModule=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&&"script"!==n.as&&(i+=" The `as` option encountered was "+o(n.as)+"."),i||"script"===(i=n&&"string"==typeof n.as?n.as:"script")||(i=o(i)),"string"==typeof e&&("object"==typeof n&&null!==n?null!=n.as&&"script"!==n.as||(i=t(n.as,n.crossOrigin),s.d.M(e,{crossOrigin:i,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0})):null==n&&s.d.M(e))},P.preload=function(e,n){var o="";if("string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),null==n||"object"!=typeof n?o+=" The `options` argument encountered was "+r(n)+".":"string"==typeof n.as&&n.as||(o+=" The `as` option encountered was "+r(n.as)+"."),"string"==typeof e&&"object"==typeof n&&null!==n&&"string"==typeof n.as){var i=t(o=n.as,n.crossOrigin);s.d.L(e,o,{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})}},P.preloadModule=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&&"string"!=typeof n.as&&(o+=" The `as` option encountered was "+r(n.as)+"."),"string"==typeof e&&(n?(o=t(n.as,n.crossOrigin),s.d.m(e,{as:"string"==typeof n.as&&"script"!==n.as?n.as:void 0,crossOrigin:o,integrity:"string"==typeof n.integrity?n.integrity:void 0})):s.d.m(e))},P.requestFormReset=function(e){s.d.r(e)},P.unstable_batchedUpdates=function(e,n){return e(n)},P.useFormState=function(e,n,t){return i().useFormState(e,n,t)},P.useFormStatus=function(){return i().useHostTransitionStatus()},P.version="19.2.4","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),P)),M.exports}var F,D,U={};var H=(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){}}}(),A.exports=function(){if(B)return E;B=1;var e=C(),n=v(),t=L();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 o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(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 u(e){if(i(e)!==e)throw Error(r(188))}function l(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=l(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"),y=/* @__PURE__ */Symbol.for("react.profiler"),b=/* @__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"),T=/* @__PURE__ */Symbol.for("react.memo"),S=/* @__PURE__ */Symbol.for("react.lazy"),x=/* @__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 N(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 y:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case x:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case b:return(e.q.displayName||"Context")+".Consumer";case g:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(n=e.displayName||null)?n:N(e.type)||"Memo";case S:n=e.u,e=e.i;try{return N(e(n))}catch(t){}}return null}var P=Array.isArray,F=n.R,D=t.te,U={pending:!1,data:null,method:null,action:null},H=[],j=-1;function q(e){return{current:e}}function V(e){0>j||(e.current=H[j],H[j]=null,j--)}function W(e,n){j++,H[j]=e.current,e.current=n}var z,G,Y=q(null),J=q(null),K=q(null),X=q(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}}V(Y),W(Y,e)}function Z(){V(Y),V(J),V(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&&(V(Y),V(J)),X.current===e&&(V(X),hd.P=U)}function ee(e){if(void 0===z)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||"",G=-1<t.stack.indexOf("\n at")?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+z+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(o){var r=o}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}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 o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var u=a.split("\n"),l=s.split("\n");for(o=r=0;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;for(;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;if(r===u.length||o===l.length)for(r=u.length-1,o=l.length-1;1<=r&&0<=o&&u[r]!==l[o];)o--;for(;1<=r&&0<=o;r--,o--)if(u[r]!==l[o]){if(1!==r||1!==o)do{if(r--,0>--o||u[r]!==l[o]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);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 oe(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 ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,ue=e.unstable_shouldYield,le=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,ye=e.unstable_IdlePriority,ve=e.log,be=e.unstable_setDisableYieldValue,we=null,ge=null;function ke(e){if("function"==typeof ve&&be(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-(Ee(e)/Te|0)|0},Ee=Math.log,Te=Math.LN2,Se=256,xe=262144,Ce=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 o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Ie(r):0!==(a&=s)?o=Ie(a):t||0!==(t=s&~e)&&(o=Ie(t)):0!==(s=r&~i)?o=Ie(s):0!==a?o=Ie(a):t||0!==(t=r&~e)&&(o=Ie(t)),0===o?0:0!==n&&n!==o&&0===(n&i)&&((i=o&-o)>=(t=n&-n)||32===i&&4194048&t)?n:o}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=Ce;return!(62914560&(Ce<<=1))&&(Ce=4194304),e}function Be(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Pe(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 Fe(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-Ae(t),o=1<<r;o&n|e[r]&n&&(e[r]|=n),t&=~o}}function De(e,n){var t=n&-n;return 0!==((t=42&t?1:Ue(t))&(e.suspendedLanes|n))?0:t}function Ue(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 He(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:Md(e.type)}function qe(e,n){var t=D.p;try{return D.p=e,n()}finally{D.p=t}}var Ve=Math.random().toString(36).slice(2),We="__reactFiber$"+Ve,ze="__reactProps$"+Ve,Ge="__reactContainer$"+Ve,Ye="__reactEvents$"+Ve,Je="__reactListeners$"+Ve,Ke="__reactHandles$"+Ve,Xe="__reactResources$"+Ve,Qe="__reactMarker$"+Ve;function Ze(e){delete e[We],delete e[ze],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=Hf(e);null!==e;){if(t=e[We])return t;e=Hf(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 un=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]*$"),ln={},cn={};function fn(e,n,t){if(o=n,ie.call(cn,o)||!ie.call(ln,o)&&(un.test(o)?cn[o]=!0:(ln[o]=!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 o}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 yn(e){if(!e.re){var n=mn(e)?"checked":"value";e.re=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 o=r.get,i=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(e){t=""+e,i.call(this,e)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return t},setValue:function(e){t=""+e},stopTracking:function(){e.re=null,delete e[n]}}}}(e,n,""+e[n])}}function vn(e){if(!e)return!1;var n=e.re;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 bn(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,o,i,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?En(e,a,pn(n)):null!=t?En(e,a,pn(t)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pn(s):e.removeAttribute("name")}function An(e,n,t,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=n||null!=t){if(("submit"===i||"reset"===i)&&null==n)return void yn(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:o)&&"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),yn(e)}function En(e,n,t){"number"===n&&bn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Tn(e,n,t,r){if(e=e.options,n){n={};for(var o=0;o<t.length;o++)n["$"+t[o]]=!0;for(t=0;t<e.length;t++)o=n.hasOwnProperty("$"+e[t].value),e[t].selected!==o&&(e[t].selected=o),o&&r&&(e[t].defaultSelected=!0)}else{for(t=""+pn(t),n=null,o=0;o<e.length;o++){if(e[o].value===t)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==n||e[o].disabled||(n=e[o])}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 xn(e,n,t,o){if(null==n){if(null!=o){if(null!=t)throw Error(r(92));if(P(o)){if(1<o.length)throw Error(r(93));o=o[0]}t=o}null==t&&(t=""),n=t}t=pn(n),e.defaultValue=t,(o=e.textContent)===t&&""!==o&&null!==o&&(e.value=o),yn(e)}function Cn(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 o in t)!t.hasOwnProperty(o)||null!=n&&n.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in n)o=n[i],n.hasOwnProperty(i)&&t[i]!==o&&Mn(e,i,o)}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 Pn(e){return Bn.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Fn=null;function Dn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Un=null,Hn=null;function jn(e){var n=$e(e);if(n&&(e=n.stateNode)){var t=e[ze]||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 o=t[n];if(o!==e&&o.form===e.form){var i=o[ze]||null;if(!i)throw Error(r(90));kn(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<t.length;n++)(o=t[n]).form===e.form&&vn(o)}break e;case"textarea":Sn(e,t.value,t.defaultValue);break e;case"select":null!=(n=t.value)&&Tn(e,!!t.multiple,n,!1)}}}var qn=!1;function Vn(e,n,t){if(qn)return e(n,t);qn=!0;try{return e(n)}finally{if(qn=!1,(null!==Un||null!==Hn)&&(nc(),Un&&(n=Un,e=Hn,Hn=Un=null,jn(n),e)))for(n=0;n<e.length;n++)jn(e[n])}}function Wn(e,n){var t=e.stateNode;if(null===t)return null;var o=t[ze]||null;if(null===o)return null;t=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(r(231,n,typeof t));return t}var zn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Gn=!1;if(zn)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,o="value"in Jn?Jn.value:Jn.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return Xn=o.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,o,i){for(var a in this.oe=n,this.ie=r,this.type=t,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.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,ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},it=et(ot),at=c({},ot,{view:0,detail:0}),st=et(at),ut=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}}),lt=et(ut),ct=et(c({},ut,{dataTransfer:0})),ft=et(c({},at,{relatedTarget:0})),dt=et(c({},ot,{animationName:0,elapsedTime:0,pseudoElement:0})),ht=et(c({},ot,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pt=et(c({},ot,{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"},yt={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 bt(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=vt[e])&&!!n[e]}function wt(){return bt}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?yt[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({},ut,{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})),Et=et(c({},ot,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tt=et(c({},ut,{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({},ot,{newState:0,oldState:0})),xt=[9,13,27,32],Ct=zn&&"CompositionEvent"in window,It=null;zn&&"documentMode"in document&&(It=document.documentMode);var Mt=zn&&"TextEvent"in window&&!It,Ot=zn&&(!Ct||It&&8<It&&11>=It),Rt=String.fromCharCode(32),Nt=!1;function Bt(e,n){switch(e){case"keyup":return-1!==xt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Lt=!1,Ft={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 Dt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Ft[e.type]:"textarea"===n}function Ut(e,n,t,r){Un?Hn?Hn.push(r):Hn=[r]:Un=r,0<(n=af(n,"onChange")).length&&(t=new it("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Ht=null,jt=null;function qt(e){Zc(e,0)}function Vt(e){if(vn(en(e)))return e}function Wt(e,n){if("change"===e)return n}var zt=!1;if(zn){var Gt;if(zn){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;zt=Gt&&(!document.documentMode||9<document.documentMode)}function Kt(){Ht&&(Ht.detachEvent("onpropertychange",Xt),jt=Ht=null)}function Xt(e){if("value"===e.propertyName&&Vt(jt)){var n=[];Ut(n,jt,e,Dn(e)),Vn(qt,n)}}function Qt(e,n,t){"focusin"===e?(Kt(),jt=t,(Ht=n).attachEvent("onpropertychange",Xt)):"focusout"===e&&Kt()}function Zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vt(jt)}function _t(e,n){if("click"===e)return Vt(n)}function $t(e,n){if("input"===e||"change"===e)return Vt(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 o=t[r];if(!ie.call(n,o)||!er(e[o],n[o]))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 or(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?or(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function ir(e){for(var n=bn((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=bn((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=zn&&"documentMode"in document&&11>=document.documentMode,ur=null,lr=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==ur||ur!==bn(r)||(r="selectionStart"in(r=ur)&&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(lr,"onSelect")).length&&(n=new it("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=ur)))}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={},yr={};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 yr)return mr[e]=t[n];return e}zn&&(yr=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 br=vr("animationend"),wr=vr("animationiteration"),gr=vr("animationstart"),kr=vr("transitionrun"),Ar=vr("transitionstart"),Er=vr("transitioncancel"),Tr=vr("transitionend"),Sr=/* @__PURE__ */new Map,xr="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 Cr(e,n){Sr.set(e,n),an(n,[e])}xr.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 o=Mr[n];Mr[n++]=null;var i=Mr[n];if(Mr[n++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Fr(t,o,i)}}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 Pr(e,n,t,r){return Br(e,n,t,r),Dr(e)}function Lr(e,n){return Br(e,null,null,n),Dr(e)}function Fr(e,n,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);for(var o=!1,i=e.return;null!==i;)i.childLanes|=t,null!==(r=i.alternate)&&(r.childLanes|=t),22===i.tag&&(null===(e=i.stateNode)||1&e.ae||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==n&&(o=31-Ae(t),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[n]:r.push(n),n.lane=536870912|t),i):null}function Dr(e){if(50<Yl)throw Yl=0,Jl=null,Error(r(185));for(var n=e.return;null!==n;)n=(e=n).return;return 3===e.tag?e.stateNode:null}var Ur={};function Hr(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 jr(e,n,t,r){return new Hr(e,n,t,r)}function qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,n){var t=e.alternate;return null===t?((t=jr(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 zr(e,n,t,o,i,a){var s=0;if(o=e,"function"==typeof e)qr(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 x:return(e=jr(31,t,n,i)).elementType=x,e.lanes=a,e;case p:return Gr(t.children,i,a,n);case m:s=8,i|=24;break;case y:return(e=jr(12,t,n,2|i)).elementType=y,e.lanes=a,e;case k:return(e=jr(13,t,n,i)).elementType=k,e.lanes=a,e;case A:return(e=jr(19,t,n,i)).elementType=A,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case b:s=9;break e;case g:s=11;break e;case T:s=14;break e;case S:s=16,o=null;break e}s=29,t=Error(r(130,null===e?"null":typeof e,"")),o=null}return(n=jr(s,t,n,i)).elementType=e,n.type=o,n.lanes=a,n}function Gr(e,n,t,r){return(e=jr(7,e,r,n)).lanes=t,e}function Yr(e,n,t){return(e=jr(6,e,null,n)).lanes=t,e}function Jr(e){var n=jr(18,null,null,0);return n.stateNode=e,n}function Kr(e,n,t){return(n=jr(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:oe(n)},Xr.set(e,n),n)}return{value:e,source:n,stack:oe(n)}}var Zr=[],_r=0,$r=null,eo=0,no=[],to=0,ro=null,oo=1,io="";function ao(e,n){Zr[_r++]=eo,Zr[_r++]=$r,$r=e,eo=n}function so(e,n,t){no[to++]=oo,no[to++]=io,no[to++]=ro,ro=e;var r=oo;e=io;var o=32-Ae(r)-1;r&=~(1<<o),t+=1;var i=32-Ae(n)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ae(n)+o|t<<o|r,io=i+e}else oo=1<<i|t<<o|r,io=e}function uo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function lo(e){for(;e===$r;)$r=Zr[--_r],Zr[_r]=null,eo=Zr[--_r],Zr[_r]=null;for(;e===ro;)ro=no[--to],no[to]=null,io=no[--to],no[to]=null,oo=no[--to],no[to]=null}function co(e,n){no[to++]=oo,no[to++]=io,no[to++]=ro,oo=n.id,io=n.overflow,ro=e}var fo=null,ho=null,po=!1,mo=null,yo=!1,vo=Error(r(519));function bo(e){throw To(Qr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),vo}function wo(e){var n=e.stateNode,t=e.type,r=e.memoizedProps;switch(n[We]=e,n[ze]=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),xn(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||bo(e,!0)}function go(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(yo=!1);case 27:case 3:return void(yo=!0);default:fo=fo.return}}function ko(e){if(e!==fo)return!1;if(!po)return go(e),po=!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&&ho&&bo(e),go(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));ho=Uf(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));ho=Uf(e)}else 27===t?(t=ho,Mf(e.type)?(e=Df,Df=null,ho=e):ho=t):ho=fo?Ff(e.stateNode.nextSibling):null;return!0}function Ao(){ho=fo=null,po=!1}function Eo(){var e=mo;return null!==e&&(null===Nl?Nl=e:Nl.push.apply(Nl,e),mo=null),e}function To(e){null===mo?mo=[e]:mo.push(e)}var So=q(null),xo=null,Co=null;function Io(e,n,t){W(So,n.P),n.P=t}function Mo(e){e.P=So.current,V(So)}function Oo(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 Ro(e,n,t,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var u=a;a=i;for(var l=0;l<n.length;l++)if(u.context===n[l]){a.lanes|=t,null!==(u=a.alternate)&&(u.lanes|=t),Oo(a.return,t,e),o||(s=null);break e}a=u.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=t,null!==(a=s.alternate)&&(a.lanes|=t),Oo(s,t,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function No(e,n,t,o){e=null;for(var i=n,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var u=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(u):e=[u])}}else if(i===X.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(hd):e=[hd])}i=i.return}null!==e&&Ro(n,e,t,o),n.flags|=262144}function Bo(e){for(e=e.firstContext;null!==e;){if(!er(e.context.P,e.memoizedValue))return!0;e=e.next}return!1}function Po(e){xo=e,Co=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return Do(xo,e)}function Fo(e,n){return null===xo&&Po(e),Do(e,n)}function Do(e,n){var t=n.P;if(n={context:n,memoizedValue:t,next:null},null===Co){if(null===e)throw Error(r(308));Co=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Co=Co.next=n;return t}var Uo="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()})}},Ho=e.unstable_scheduleCallback,jo=e.unstable_NormalPriority,qo={$$typeof:w,Consumer:null,Provider:null,P:null,U:null,j:0};function Vo(){return{controller:new Uo,data:/* @__PURE__ */new Map,refCount:0}}function Wo(e){e.refCount--,0===e.refCount&&Ho(jo,function(){e.controller.abort()})}var zo=null,Go=0,Yo=0,Jo=null;function Ko(){if(0===--Go&&null!==zo){null!==Jo&&(Jo.status="fulfilled");var e=zo;zo=null,Yo=0,Jo=null;for(var n=0;n<e.length;n++)(0,e[n])()}}var Xo=F.S;F.S=function(e,n){Ll=ce(),"object"==typeof n&&null!==n&&"function"==typeof n.then&&function(e,n){if(null===zo){var t=zo=[];Go=0,Yo=zc(),Jo={status:"pending",value:void 0,then:function(e){t.push(e)}}}Go++,n.then(Ko,Ko)}(0,n),null!==Xo&&Xo(e,n)};var Qo=q(null);function Zo(){var e=Qo.current;return null!==e?e:yl.pooledCache}function _o(e,n){W(Qo,null===n?Qo.current:n.pool)}function $o(){var e=Zo();return null===e?null:{parent:qo.P,pool:e}}var ei=Error(r(460)),ni=Error(r(474)),ti=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(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 li(e=n.reason),e;default:if("string"==typeof n.status)n.then(Ln,Ln);else{if(null!==(e=yl)&&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 li(e=n.reason),e}throw si=n,ei}}function ai(e){try{return(0,e.i)(e.u)}catch(n){if(null!==n&&"object"==typeof n&&"function"==typeof n.then)throw si=n,ei;throw n}}var si=null;function ui(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function li(e){if(e===ei||e===ti)throw Error(r(483))}var ci=null,fi=0;function di(e){var n=fi;return fi+=1,null===ci&&(ci=[]),ii(ci,e,n)}function hi(e,n){n=n.props.ref,e.ref=void 0!==n?n:null}function pi(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 mi(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 o(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=Vr(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 u(e,n,t,r){return null===n||6!==n.tag?((n=Yr(t,e.mode,r)).return=e,n):((n=i(n,t)).return=e,n)}function l(e,n,t,r){var o=t.type;return o===p?f(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===S&&ai(o)===n.type)?(hi(n=i(n,t.props),t),n.return=e,n):(hi(n=zr(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=i(n,t.children||[])).return=e,n)}function f(e,n,t,r,o){return null===n||7!==n.tag?((n=Gr(t,e.mode,r,o)).return=e,n):((n=i(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 hi(t=zr(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=ai(n),t)}if(P(n)||O(n))return(n=Gr(n,e.mode,t,null)).return=e,n;if("function"==typeof n.then)return m(e,di(n),t);if(n.$$typeof===w)return m(e,Fo(e,n),t);pi(e,n)}return null}function y(e,n,t,r){var o=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==o?null:u(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return t.key===o?l(e,n,t,r):null;case h:return t.key===o?c(e,n,t,r):null;case S:return y(e,n,t=ai(t),r)}if(P(t)||O(t))return null!==o?null:f(e,n,t,r,null);if("function"==typeof t.then)return y(e,n,di(t),r);if(t.$$typeof===w)return y(e,n,Fo(e,t),r);pi(e,t)}return null}function v(e,n,t,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return u(n,e=e.get(t)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return l(n,e=e.get(null===r.key?t:r.key)||null,r,o);case h:return c(n,e=e.get(null===r.key?t:r.key)||null,r,o);case S:return v(e,n,t,r=ai(r),o)}if(P(r)||O(r))return f(n,e=e.get(t)||null,r,o,null);if("function"==typeof r.then)return v(e,n,t,di(r),o);if(r.$$typeof===w)return v(e,n,t,Fo(n,r),o);pi(n,r)}return null}function b(u,l,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!==l;){if(l.key===g){if((g=c.type)===p){if(7===l.tag){t(u,l.sibling),(f=i(l,c.props.children)).return=u,u=f;break e}}else if(l.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===S&&ai(g)===l.type){t(u,l.sibling),hi(f=i(l,c.props),c),f.return=u,u=f;break e}t(u,l);break}n(u,l),l=l.sibling}c.type===p?((f=Gr(c.props.children,u.mode,f,c.key)).return=u,u=f):(hi(f=zr(c.type,c.key,c.props,null,u.mode,f),c),f.return=u,u=f)}return s(u);case h:e:{for(g=c.key;null!==l;){if(l.key===g){if(4===l.tag&&l.stateNode.containerInfo===c.containerInfo&&l.stateNode.implementation===c.implementation){t(u,l.sibling),(f=i(l,c.children||[])).return=u,u=f;break e}t(u,l);break}n(u,l),l=l.sibling}(f=Kr(c,u.mode,f)).return=u,u=f}return s(u);case S:return b(u,l,c=ai(c),f)}if(P(c))return function(r,i,s,u){for(var l=null,c=null,f=i,d=i=0,h=null;null!==f&&d<s.length;d++){f.index>d?(h=f,f=null):h=f.sibling;var p=y(r,f,s[d],u);if(null===p){null===f&&(f=h);break}e&&f&&null===p.alternate&&n(r,f),i=a(p,i,d),null===c?l=p:c.sibling=p,c=p,f=h}if(d===s.length)return t(r,f),po&&ao(r,d),l;if(null===f){for(;d<s.length;d++)null!==(f=m(r,s[d],u))&&(i=a(f,i,d),null===c?l=f:c.sibling=f,c=f);return po&&ao(r,d),l}for(f=o(f);d<s.length;d++)null!==(h=v(f,r,d,s[d],u))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),i=a(h,i,d),null===c?l=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return n(r,e)}),po&&ao(r,d),l}(u,l,c,f);if(O(c)){if("function"!=typeof(g=O(c)))throw Error(r(150));return function(i,s,u,l){if(null==u)throw Error(r(151));for(var c=null,f=null,d=s,h=s=0,p=null,b=u.next();null!==d&&!b.done;h++,b=u.next()){d.index>h?(p=d,d=null):p=d.sibling;var w=y(i,d,b.value,l);if(null===w){null===d&&(d=p);break}e&&d&&null===w.alternate&&n(i,d),s=a(w,s,h),null===f?c=w:f.sibling=w,f=w,d=p}if(b.done)return t(i,d),po&&ao(i,h),c;if(null===d){for(;!b.done;h++,b=u.next())null!==(b=m(i,b.value,l))&&(s=a(b,s,h),null===f?c=b:f.sibling=b,f=b);return po&&ao(i,h),c}for(d=o(d);!b.done;h++,b=u.next())null!==(b=v(d,i,h,b.value,l))&&(e&&null!==b.alternate&&d.delete(null===b.key?h:b.key),s=a(b,s,h),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach(function(e){return n(i,e)}),po&&ao(i,h),c}(u,l,c=g.call(c),f)}if("function"==typeof c.then)return b(u,l,di(c),f);if(c.$$typeof===w)return b(u,l,Fo(u,c),f);pi(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==l&&6===l.tag?(t(u,l.sibling),(f=i(l,c)).return=u,u=f):(t(u,l),(f=Yr(c,u.mode,f)).return=u,u=f),s(u)):t(u,l)}return function(e,n,t,r){try{fi=0;var o=b(e,n,t,r);return ci=null,o}catch(a){if(a===ei||a===ti)throw a;var i=jr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var yi=mi(!0),vi=mi(!1),bi=!1;function wi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gi(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 ki(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ai(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ml){var o=r.pending;return null===o?n.next=n:(n.next=o.next,o.next=n),r.pending=n,n=Dr(e),Fr(e,null,t),n}return Br(e,r,n,t),Dr(e)}function Ei(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,4194048&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Fe(e,t)}}function Ti(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var o=null,i=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,t=t.next}while(null!==t);null===i?o=i=n:i=i.next=n}else o=i=n;return t={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var Si=!1;function xi(){if(Si&&null!==Jo)throw Jo}function Ci(e,n,t,r){Si=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?i=l:a.next=l,a=u;var f=e.alternate;null!==f&&(s=(f=f.updateQueue).lastBaseUpdate)!==a&&(null===s?f.firstBaseUpdate=l:s.next=l,f.lastBaseUpdate=u)}if(null!==i){var d=o.baseState;for(a=0,f=l=u=null,s=i;;){var h=-536870913&s.lane,p=h!==s.lane;if(p?(bl&h)===h:(r&h)===h){0!==h&&h===Yo&&(Si=!0),null!==f&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,y=s;h=n;var v=t;switch(y.tag){case 1:if("function"==typeof(m=y.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=y.payload)?m.call(v,d,h):m))break e;d=c({},d,h);break e;case 2:bi=!0}}null!==(h=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=o.callbacks)?o.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===f?(l=f=p,u=d):f=f.next=p,a|=h;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=f,null===i&&(o.shared.lanes=0),xl|=a,e.lanes=a,e.memoizedState=d}}function Ii(e,n){if("function"!=typeof e)throw Error(r(191,e));e.call(n)}function Mi(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)Ii(t[e],n)}var Oi=q(null),Ri=q(0);function Ni(e,n){W(Ri,e=Tl),W(Oi,n),Tl=e|n.baseLanes}function Bi(){W(Ri,Tl),W(Oi,Oi.current)}function Pi(){Tl=Ri.current,V(Oi),V(Ri)}var Li=q(null),Fi=null;function Di(e){var n=e.alternate;W(Vi,1&Vi.current),W(Li,e),null===Fi&&(null===n||null!==Oi.current||null!==n.memoizedState)&&(Fi=e)}function Ui(e){W(Vi,Vi.current),W(Li,e),null===Fi&&(Fi=e)}function Hi(e){22===e.tag?(W(Vi,Vi.current),W(Li,e),null===Fi&&(Fi=e)):ji()}function ji(){W(Vi,Vi.current),W(Li,Li.current)}function qi(e){V(Li),Fi===e&&(Fi=null),V(Vi)}var Vi=q(0);function Wi(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||Pf(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 zi=0,Gi=null,Yi=null,Ji=null,Ki=!1,Xi=!1,Qi=!1,Zi=0,_i=0,$i=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,o,i){return zi=i,Gi=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=null===e||null===e.memoizedState?bs:ws,Qi=!1,i=t(r,o),Qi=!1,Xi&&(i=ia(n,t,r,o)),oa(e),i}function oa(e){F.H=vs;var n=null!==Yi&&null!==Yi.next;if(zi=0,Ji=Yi=Gi=null,Ki=!1,_i=0,$i=null,n)throw Error(r(300));null===e||Ls||null!==(e=e.dependencies)&&Bo(e)&&(Ls=!0)}function ia(e,n,t,o){Gi=e;var i=0;do{if(Xi&&($i=null),_i=0,Xi=!1,25<=i)throw Error(r(301));if(i+=1,Ji=Yi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}F.H=gs,a=n(t,o)}while(Xi);return a}function aa(){var e=F.H,n=e.useState()[0];return n="function"==typeof n.then?da(n):n,e=e.useState()[0],(null!==Yi?Yi.memoizedState:null)!==e&&(Gi.flags|=1024),n}function sa(){var e=0!==Zi;return Zi=0,e}function ua(e,n,t){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~t}function la(e){if(Ki){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}Ki=!1}zi=0,Ji=Yi=Gi=null,Xi=!1,_i=Zi=0,$i=null}function ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Gi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function fa(){if(null===Yi){var e=Gi.alternate;e=null!==e?e.memoizedState:null}else e=Yi.next;var n=null===Ji?Gi.memoizedState:Ji.next;if(null!==n)Ji=n,Yi=e;else{if(null===e){if(null===Gi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Yi=e).memoizedState,baseState:Yi.baseState,baseQueue:Yi.baseQueue,queue:Yi.queue,next:null},null===Ji?Gi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function da(e){var n=_i;return _i+=1,null===$i&&($i=[]),e=ii($i,e,n),n=Gi,null===(null===Ji?n.memoizedState:Ji.next)&&(n=n.alternate,F.H=null===n||null===n.memoizedState?bs:ws),e}function ha(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return da(e);if(e.$$typeof===w)return Lo(e)}throw Error(r(438,String(e)))}function pa(e){var n=null,t=Gi.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=Gi.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},Gi.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 ya(e){return va(fa(),Yi,e)}function va(e,n,t){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=t;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var u=s=null,l=null,c=n=i.next,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(bl&d)===d:(zi&d)===d){var h=c.revertLane;if(0===h)null!==l&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Yo&&(f=!0);else{if((zi&h)===h){c=c.next,h===Yo&&(f=!0);continue}d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(u=l=d,s=a):l=l.next=d,Gi.lanes|=h,xl|=h}d=c.action,Qi&&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===l?(u=l=h,s=a):l=l.next=h,Gi.lanes|=d,xl|=d;c=c.next}while(null!==c&&c!==n);if(null===l?s=a:l.next=u,!er(a,e.memoizedState)&&(Ls=!0,f&&null!==(t=Jo)))throw t;e.memoizedState=a,e.baseState=s,e.baseQueue=l,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var n=fa(),t=n.queue;if(null===t)throw Error(r(311));t.lastRenderedReducer=e;var o=t.dispatch,i=t.pending,a=n.memoizedState;if(null!==i){t.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,n.memoizedState)||(Ls=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,o]}function wa(e,n,t){var o=Gi,i=fa(),a=po;if(a){if(void 0===t)throw Error(r(407));t=t()}else t=n();var s=!er((Yi||i).memoizedState,t);if(s&&(i.memoizedState=t,Ls=!0),i=i.queue,za(Aa.bind(null,o,i,e),[e]),i.getSnapshot!==n||s||null!==Ji&&1&Ji.memoizedState.tag){if(o.flags|=2048,Ha(9,{destroy:void 0},ka.bind(null,o,i,t,n),null),null===yl)throw Error(r(349));a||127&zi||ga(o,n,t)}return t}function ga(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=Gi.updateQueue)?(n={lastEffect:null,events:null,stores:null,memoCache:null},Gi.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,Ea(n)&&Ta(e)}function Aa(e,n,t){return t(function(){Ea(n)&&Ta(e)})}function Ea(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!er(e,t)}catch(r){return!0}}function Ta(e){var n=Lr(e,2);null!==n&&Ql(n,0,2)}function Sa(e){var n=ca();if("function"==typeof e){var t=e;if(e=t(),Qi){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 xa(e,n,t,r){return e.baseState=t,va(e,Yi,"function"==typeof r?r:ma)}function Ca(e,n,t,o,i){if(ps(e))throw Error(r(485));if(null!==(e=n.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==F.T?t(!0):a.isTransition=!1,o(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,o=e.state;if(n.isTransition){var i=F.T,a={};F.T=a;try{var s=t(o,r),u=F.S;null!==u&&u(a,s),Ma(e,n,s)}catch(l){Ra(e,n,l)}finally{null!==i&&null!==a.types&&(i.types=a.types),F.T=i}}else try{Ma(e,n,i=t(o,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 Pa(e,n){if(po){var t=yl.formState;if(null!==t){e:{var r=Gi;if(po){if(ho){n:{for(var o=ho,i=yo;8!==o.nodeType;){if(!i){o=null;break n}if(null===(o=Ff(o.nextSibling))){o=null;break n}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){ho=Ff(o.nextSibling),r="F!"===o.data;break e}}bo(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,Gi,r),r.dispatch=t,r=Sa(!1),i=hs.bind(null,Gi,!1,r.queue),o={state:n,dispatch:null,action:e,pending:null},(r=ca()).queue=o,t=Ca.bind(null,Gi,o,i,t),o.dispatch=t,r.memoizedState=e,[n,t,!1]}function La(e){return Fa(fa(),Yi,e)}function Fa(e,n,t){if(n=va(e,n,Ba)[0],e=ya(ma)[0],"object"==typeof n&&null!==n&&"function"==typeof n.then)try{var r=da(n)}catch(a){if(a===ei)throw ti;throw a}else r=n;var o=(n=fa()).queue,i=o.dispatch;return t!==n.memoizedState&&(Gi.flags|=2048,Ha(9,{destroy:void 0},Da.bind(null,o,t),null)),[r,i,e]}function Da(e,n){e.action=n}function Ua(e){var n=fa(),t=Yi;if(null!==t)return Fa(n,t,e);fa(),n=n.memoizedState;var r=(t=fa()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function Ha(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=Gi.updateQueue)&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Gi.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 ja(){return fa().memoizedState}function qa(e,n,t,r){var o=ca();Gi.flags|=e,o.memoizedState=Ha(1|n,{destroy:void 0},t,void 0===r?null:r)}function Va(e,n,t,r){var o=fa();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Yi&&null!==r&&ta(r,Yi.memoizedState.deps)?o.memoizedState=Ha(n,i,t,r):(Gi.flags|=e,o.memoizedState=Ha(1|n,i,t,r))}function Wa(e,n){qa(8390656,8,e,n)}function za(e,n){Va(2048,8,e,n)}function Ga(e){var n=fa().memoizedState;return function(e){Gi.flags|=4;var n=Gi.updateQueue;if(null===n)n={lastEffect:null,events:null,stores:null,memoCache:null},Gi.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&ml)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Ya(e,n){return Va(4,2,e,n)}function Ja(e,n){return Va(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,Va(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(),Qi){ke(!0);try{e()}finally{ke(!1)}}return t.memoizedState=[r,n],r}function $a(e,n,t){return void 0===t||1073741824&zi&&!(261930&bl)?e.memoizedState=n:(e.memoizedState=t,e=Xl(),Gi.lanes|=e,xl|=e,t)}function es(e,n,t,r){return er(t,n)?t:null!==Oi.current?(e=$a(e,t,r),er(e,n)||(Ls=!0),e):42&zi&&(!(1073741824&zi)||261930&bl)?(e=Xl(),Gi.lanes|=e,xl|=e,n):(Ls=!0,e.memoizedState=t)}function ns(e,n,t,r,o){var i=D.p;D.p=0!==i&&8>i?i:8;var a,s,u,l=F.T,c={};F.T=c,hs(e,!1,n,t);try{var f=o(),d=F.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=(a=r,s=[],u={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then(function(){u.status="fulfilled",u.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(u.status="rejected",u.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),u);ds(e,n,h,Kl())}else ds(e,n,r,Kl())}catch(p){ds(e,n,{then:function(){},status:"rejected",reason:p},Kl())}finally{D.p=i,null!==l&&null!==c.types&&(l.types=c.types),F.T=l}}function ts(){}function rs(e,n,t,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ns(e,i,n,U,null===t?ts:function(){return is(e),t(o)})}function os(e){var n=e.memoizedState;if(null!==n)return n;var t={};return(n={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:U},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 is(e){var n=os(e);null===n.next&&(n=e.alternate.memoizedState),ds(e,n.next.queue,{},Kl())}function as(){return Lo(hd)}function ss(){return fa().memoizedState}function us(){return fa().memoizedState}function ls(e){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var t=Kl(),r=Ai(n,e=ki(t),t);return null!==r&&(Ql(r,0,t),Ei(r,n,t)),n={cache:Vo()},void(e.payload=n)}n=n.return}}function cs(e,n,t){var r=Kl();t={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},ps(e)?ms(n,t):null!==(t=Pr(e,n,t,r))&&(Ql(t,0,r),ys(t,n,r))}function fs(e,n,t){ds(e,n,t,Kl())}function ds(e,n,t,r){var o={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(ps(e))ms(n,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var a=n.lastRenderedState,s=i(a,t);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Br(e,n,o,0),null===yl&&Nr(),!1}catch(u){}if(null!==(t=Pr(e,n,o,r)))return Ql(t,0,r),ys(t,n,r),!0}return!1}function hs(e,n,t,o){if(o={lane:2,revertLane:zc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ps(e)){if(n)throw Error(r(479))}else null!==(n=Pr(e,t,o,2))&&Ql(n,0,2)}function ps(e){var n=e.alternate;return e===Gi||null!==n&&n===Gi}function ms(e,n){Xi=Ki=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function ys(e,n,t){if(4194048&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Fe(e,t)}}var vs={readContext:Lo,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 bs={readContext:Lo,use:ha,useCallback:function(e,n){return ca().memoizedState=[e,void 0===n?null:n],e},useContext:Lo,useEffect:Wa,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,qa(4194308,4,Ka.bind(null,n,e),t)},useLayoutEffect:function(e,n){return qa(4194308,4,e,n)},useInsertionEffect:function(e,n){qa(4,2,e,n)},useMemo:function(e,n){var t=ca();n=void 0===n?null:n;var r=e();if(Qi){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 o=t(n);if(Qi){ke(!0);try{t(n)}finally{ke(!1)}}}else o=n;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=cs.bind(null,Gi,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,Gi,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,Gi,e.queue,!0,!1),ca().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,t){var o=Gi,i=ca();if(po){if(void 0===t)throw Error(r(407));t=t()}else{if(t=n(),null===yl)throw Error(r(349));127&bl||ga(o,n,t)}i.memoizedState=t;var a={value:t,getSnapshot:n};return i.queue=a,Wa(Aa.bind(null,o,a,e),[e]),o.flags|=2048,Ha(9,{destroy:void 0},ka.bind(null,o,a,t,n),null),t},useId:function(){var e=ca(),n=yl.identifierPrefix;if(po){var t=io;n="_"+n+"R_"+(t=(oo&~(1<<32-Ae(oo)-1)).toString(32)+t),0<(t=Zi++)&&(n+="H"+t.toString(32)),n+="_"}else n="_"+n+"r_"+(t=ea++).toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:as,useFormState:Pa,useActionState:Pa,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,Gi,!0,t),t.dispatch=n,[e,n]},useMemoCache:pa,useCacheRefresh:function(){return ca().memoizedState=ls.bind(null,Gi)},useEffectEvent:function(e){var n=ca(),t={impl:e};return n.memoizedState=t,function(){if(2&ml)throw Error(r(440));return t.impl.apply(void 0,arguments)}}},ws={readContext:Lo,use:ha,useCallback:Za,useContext:Lo,useEffect:za,useImperativeHandle:Xa,useInsertionEffect:Ya,useLayoutEffect:Ja,useMemo:_a,useReducer:ya,useRef:ja,useState:function(){return ya(ma)},useDebugValue:Qa,useDeferredValue:function(e,n){return es(fa(),Yi.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:La,useActionState:La,useOptimistic:function(e,n){return xa(fa(),0,e,n)},useMemoCache:pa,useCacheRefresh:us};ws.useEffectEvent=Ga;var gs={readContext:Lo,use:ha,useCallback:Za,useContext:Lo,useEffect:za,useImperativeHandle:Xa,useInsertionEffect:Ya,useLayoutEffect:Ja,useMemo:_a,useReducer:ba,useRef:ja,useState:function(){return ba(ma)},useDebugValue:Qa,useDeferredValue:function(e,n){var t=fa();return null===Yi?$a(t,e,n):es(t,Yi.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:Ua,useActionState:Ua,useOptimistic:function(e,n){var t=fa();return null!==Yi?xa(t,0,e,n):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:pa,useCacheRefresh:us};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.se;var r=Kl(),o=ki(r);o.payload=n,null!=t&&(o.callback=t),null!==(n=Ai(e,o,r))&&(Ql(n,0,r),Ei(n,e,r))},enqueueReplaceState:function(e,n,t){e=e.se;var r=Kl(),o=ki(r);o.tag=1,o.payload=n,null!=t&&(o.callback=t),null!==(n=Ai(e,o,r))&&(Ql(n,0,r),Ei(n,e,r))},enqueueForceUpdate:function(e,n){e=e.se;var t=Kl(),r=ki(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=Ai(e,r,t))&&(Ql(n,0,t),Ei(n,e,t))}};function Es(e,n,t,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(n.prototype&&n.prototype.isPureReactComponent&&nr(t,r)&&nr(o,i))}function Ts(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 o in t===n&&(t=c({},t)),e)void 0===t[o]&&(t[o]=e[o]);return t}function xs(e){Ir(e)}function Cs(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=ki(t)).tag=3,t.payload={element:null},t.callback=function(){Ms(e,n)},t}function Ns(e){return(e=ki(e)).tag=3,e}function Bs(e,n,t,r){var o=t.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},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 o&&(null===Ul?Ul=/* @__PURE__ */new Set([this]):Ul.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ps=Error(r(461)),Ls=!1;function Fs(e,n,t,r){n.child=null===e?vi(n,null,t,r):yi(n,e.child,t,r)}function Ds(e,n,t,r,o){t=t.render;var i=n.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Po(n),r=ra(e,n,t,a,i,o),s=sa(),null===e||Ls?(po&&s&&uo(n),n.flags|=1,Fs(e,n,r,o),n.child):(ua(e,n,o),au(e,n,o))}function Us(e,n,t,r,o){if(null===e){var i=t.type;return"function"!=typeof i||qr(i)||void 0!==i.defaultProps||null!==t.compare?((e=zr(t.type,null,r,n,n.mode,o)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,Hs(e,n,i,r,o))}if(i=e.child,!su(e,o)){var a=i.memoizedProps;if((t=null!==(t=t.compare)?t:nr)(a,r)&&e.ref===n.ref)return au(e,n,o)}return n.flags|=1,(e=Vr(i,r)).ref=n.ref,e.return=n,n.child=e}function Hs(e,n,t,r,o){if(null!==e){var i=e.memoizedProps;if(nr(i,r)&&e.ref===n.ref){if(Ls=!1,n.pendingProps=r=i,!su(e,o))return n.lanes=e.lanes,au(e,n,o);131072&e.flags&&(Ls=!0)}}return Ys(e,n,t,r,o)}function js(e,n,t,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===n.stateNode&&(n.stateNode={ae:1,ue:null,le:null,ce:null}),"hidden"===r.mode){if(128&n.flags){if(i=null!==i?i.baseLanes|t:t,null!==e){for(r=n.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,n.child=null;return Vs(e,n,i,t,r)}if(!(536870912&t))return r=n.lanes=536870912,Vs(e,n,null!==i?i.baseLanes|t:t,t,r);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&_o(0,null!==i?i.cachePool:null),null!==i?Ni(n,i):Bi(),Hi(n)}else null!==i?(_o(0,i.cachePool),Ni(n,i),ji(),n.memoizedState=null):(null!==e&&_o(0,null),Bi(),ji());return Fs(e,n,o,t),n.child}function qs(e,n){return null!==e&&22===e.tag||null!==n.stateNode||(n.stateNode={ae:1,ue:null,le:null,ce:null}),n.sibling}function Vs(e,n,t,r,o){var i=Zo();return i=null===i?null:{parent:qo.P,pool:i},n.memoizedState={baseLanes:t,cachePool:i},null!==e&&_o(0,null),Bi(),Hi(n),null!==e&&No(e,n,r,!0),n.childLanes=o,null}function Ws(e,n){return(n=nu({mode:n.mode,children:n.children},e.mode)).ref=e.ref,e.child=n,n.return=e,n}function zs(e,n,t){return yi(n,e.child,null,t),(e=Ws(n,n.pendingProps)).flags|=2,qi(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,o){return Po(n),t=ra(e,n,t,r,void 0,o),r=sa(),null===e||Ls?(po&&r&&uo(n),n.flags|=1,Fs(e,n,t,o),n.child):(ua(e,n,o),au(e,n,o))}function Js(e,n,t,r,o,i){return Po(n),n.updateQueue=null,t=ia(n,r,t,o),oa(e),r=sa(),null===e||Ls?(po&&r&&uo(n),n.flags|=1,Fs(e,n,t,i),n.child):(ua(e,n,i),au(e,n,i))}function Ks(e,n,t,r,o){if(Po(n),null===n.stateNode){var i=Ur,a=t.contextType;"object"==typeof a&&null!==a&&(i=Lo(a)),i=new t(r,i),n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=As,n.stateNode=i,i.se=n,(i=n.stateNode).props=r,i.state=n.memoizedState,i.refs={},wi(n),a=t.contextType,i.context="object"==typeof a&&null!==a?Lo(a):Ur,i.state=n.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ks(n,t,a,r),i.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&As.enqueueReplaceState(i,i.state,null),Ci(n,r,i,o),xi(),i.state=n.memoizedState),"function"==typeof i.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){i=n.stateNode;var s=n.memoizedProps,u=Ss(t,s);i.props=u;var l=i.context,c=t.contextType;a=Ur,"object"==typeof c&&null!==c&&(a=Lo(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate,s=n.pendingProps!==s,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||l!==a)&&Ts(n,i,r,a),bi=!1;var d=n.memoizedState;i.state=d,Ci(n,r,i,o),xi(),l=n.memoizedState,s||d!==l||bi?("function"==typeof f&&(ks(n,t,f,r),l=n.memoizedState),(u=bi||Es(n,t,u,r,d,l,a))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4194308)):("function"==typeof i.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=l),i.props=r,i.state=l,i.context=a,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,gi(e,n),c=Ss(t,a=n.memoizedProps),i.props=c,f=n.pendingProps,d=i.context,l=t.contextType,u=Ur,"object"==typeof l&&null!==l&&(u=Lo(l)),(l="function"==typeof(s=t.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==f||d!==u)&&Ts(n,i,r,u),bi=!1,d=n.memoizedState,i.state=d,Ci(n,r,i,o),xi();var h=n.memoizedState;a!==f||d!==h||bi||null!==e&&null!==e.dependencies&&Bo(e.dependencies)?("function"==typeof s&&(ks(n,t,s,r),h=n.memoizedState),(c=bi||Es(n,t,c,r,d,h,u)||null!==e&&null!==e.dependencies&&Bo(e.dependencies))?(l||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=u,r=c):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return i=r,Gs(e,n),r=!!(128&n.flags),i||r?(i=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:i.render(),n.flags|=1,null!==e&&r?(n.child=yi(n,e.child,null,o),n.child=yi(n,null,t,o)):Fs(e,n,t,o),n.memoizedState=i.state,e=n.child):e=au(e,n,o),e}function Xs(e,n,t,r){return Ao(),n.flags|=256,Fs(e,n,t,r),n.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:$o()}}function _s(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Ml),e}function $s(e,n,t){var o,i=n.pendingProps,a=!1,s=!!(128&n.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Vi.current)),o&&(a=!0,n.flags&=-129),o=!!(32&n.flags),n.flags&=-33,null===e){if(po){if(a?Di(n):ji(),(e=ho)?null!==(e=null!==(e=Bf(e,yo))&&"&"!==e.data?e:null)&&(n.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(t=Jr(e)).return=n,n.child=t,fo=n,ho=null):e=null,null===e)throw bo(n);return Lf(e)?n.lanes=32:n.lanes=536870912,null}var u=i.children;return i=i.fallback,a?(ji(),u=nu({mode:"hidden",children:u},a=n.mode),i=Gr(i,a,t,null),u.return=n,i.return=n,u.sibling=i,n.child=u,(i=n.child).memoizedState=Zs(t),i.childLanes=_s(e,o,t),n.memoizedState=Qs,qs(null,i)):(Di(n),eu(n,u))}var l=e.memoizedState;if(null!==l&&null!==(u=l.dehydrated)){if(s)256&n.flags?(Di(n),n.flags&=-257,n=tu(e,n,t)):null!==n.memoizedState?(ji(),n.child=e.child,n.flags|=128,n=null):(ji(),u=i.fallback,a=n.mode,i=nu({mode:"visible",children:i.children},a),(u=Gr(u,a,t,null)).flags|=2,i.return=n,u.return=n,i.sibling=u,n.child=i,yi(n,e.child,null,t),(i=n.child).memoizedState=Zs(t),i.childLanes=_s(e,o,t),n.memoizedState=Qs,n=qs(null,i));else if(Di(n),Lf(u)){if(o=u.nextSibling&&u.nextSibling.dataset)var c=o.dgst;o=c,(i=Error(r(419))).stack="",i.digest=o,To({value:i,source:null,stack:null}),n=tu(e,n,t)}else if(Ls||No(e,n,t,!1),o=0!==(t&e.childLanes),Ls||o){if(null!==(o=yl)&&0!==(i=De(o,t))&&i!==l.retryLane)throw l.retryLane=i,Lr(e,i),Ql(o,0,i),Ps;Pf(u)||uc(),n=tu(e,n,t)}else Pf(u)?(n.flags|=192,n.child=e.child,n=null):(e=l.treeContext,ho=Ff(u.nextSibling),fo=n,po=!0,mo=null,yo=!1,null!==e&&co(n,e),(n=eu(n,i.children)).flags|=4096);return n}return a?(ji(),u=i.fallback,a=n.mode,c=(l=e.child).sibling,(i=Vr(l,{mode:"hidden",children:i.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?u=Vr(c,u):(u=Gr(u,a,t,null)).flags|=2,u.return=n,i.return=n,i.sibling=u,n.child=i,qs(null,i),i=n.child,null===(u=e.child.memoizedState)?u=Zs(t):(null!==(a=u.cachePool)?(l=qo.P,a=a.parent!==l?{parent:l,pool:l}:a):a=$o(),u={baseLanes:u.baseLanes|t,cachePool:a}),i.memoizedState=u,i.childLanes=_s(e,o,t),n.memoizedState=Qs,qs(e.child,i)):(Di(n),e=(t=e.child).sibling,(t=Vr(t,{mode:"visible",children:i.children})).return=n,t.sibling=null,null!==e&&(null===(o=n.deletions)?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=t,n.memoizedState=null,t)}function eu(e,n){return(n=nu({mode:"visible",children:n},e.mode)).return=e,e.child=n}function nu(e,n){return(e=jr(22,e,null,n)).lanes=0,e}function tu(e,n,t){return yi(n,e.child,null,t),(e=eu(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ru(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Oo(e.return,n,t)}function ou(e,n,t,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:o,treeForkCount:i}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=o,a.treeForkCount=i)}function iu(e,n,t){var r=n.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Vi.current,s=!!(2&a);if(s?(a=1&a|2,n.flags|=128):a&=1,W(Vi,a),Fs(e,n,r,t),r=po?eo:0,!s&&null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ru(e,t,n);else if(19===e.tag)ru(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(o){case"forwards":for(t=n.child,o=null;null!==t;)null!==(e=t.alternate)&&null===Wi(e)&&(o=t),t=t.sibling;null===(t=o)?(o=n.child,n.child=null):(o=t.sibling,t.sibling=null),ou(n,!1,o,t,i,r);break;case"backwards":case"unstable_legacy-backwards":for(t=null,o=n.child,n.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wi(e)){n.child=o;break}e=o.sibling,o.sibling=t,t=o,o=e}ou(n,!0,t,null,i,r);break;case"together":ou(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function au(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),xl|=n.lanes,0===(t&n.childLanes)){if(null===e)return null;if(No(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=Vr(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Vr(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function su(e,n){return 0!==(e.lanes&n)||!(null===(e=e.dependencies)||!Bo(e))}function uu(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)Ls=!0;else{if(!(su(e,t)||128&n.flags))return Ls=!1,function(e,n,t){switch(n.tag){case 3:Q(n,n.stateNode.containerInfo),Io(0,qo,e.memoizedState.cache),Ao();break;case 27:case 5:_(n);break;case 4:Q(n,n.stateNode.containerInfo);break;case 10:Io(0,n.type,n.memoizedProps.value);break;case 31:if(null!==n.memoizedState)return n.flags|=128,Ui(n),null;break;case 13:var r=n.memoizedState;if(null!==r)return null!==r.dehydrated?(Di(n),n.flags|=128,null):0!==(t&n.child.childLanes)?$s(e,n,t):(Di(n),null!==(e=au(e,n,t))?e.sibling:null);Di(n);break;case 19:var o=!!(128&e.flags);if((r=0!==(t&n.childLanes))||(No(e,n,t,!1),r=0!==(t&n.childLanes)),o){if(r)return iu(e,n,t);n.flags|=128}if(null!==(o=n.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(Vi,Vi.current),r)break;return null;case 22:return n.lanes=0,js(e,n,t,n.pendingProps);case 24:Io(0,qo,e.memoizedState.cache)}return au(e,n,t)}(e,n,t);Ls=!!(131072&e.flags)}else Ls=!1,po&&1048576&n.flags&&so(n,eo,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=ai(n.elementType),n.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===g){n.tag=11,n=Ds(null,n,e,o,t);break e}if(i===T){n.tag=14,n=Us(null,n,e,o,t);break e}}throw n=N(e)||e,Error(r(306,n,""))}qr(e)?(o=Ss(e,o),n.tag=1,n=Ks(null,n,e,o,t)):(n.tag=0,n=Ys(null,n,e,o,t))}return n;case 0:return Ys(e,n,n.type,n.pendingProps,t);case 1:return Ks(e,n,o=n.type,i=Ss(o,n.pendingProps),t);case 3:e:{if(Q(n,n.stateNode.containerInfo),null===e)throw Error(r(387));o=n.pendingProps;var a=n.memoizedState;i=a.element,gi(e,n),Ci(n,o,null,t);var s=n.memoizedState;if(o=s.cache,Io(0,qo,o),o!==a.cache&&Ro(n,[qo],t,!0),xi(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){n=Xs(e,n,o,t);break e}if(o!==i){To(i=Qr(Error(r(424)),n)),n=Xs(e,n,o,t);break e}for(e=9===(e=n.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ho=Ff(e.firstChild),fo=n,po=!0,mo=null,yo=!0,t=vi(n,null,o,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(Ao(),o===i){n=au(e,n,t);break e}Fs(e,n,o,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:po||(t=n.type,e=n.pendingProps,(o=wf(K.current).createElement(t))[We]=n,o[ze]=e,mf(o,t,e),tn(o),n.stateNode=o):n.memoizedState=Kf(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return _(n),null===e&&po&&(o=n.stateNode=jf(n.type,n.pendingProps,K.current),fo=n,yo=!0,i=ho,Mf(n.type)?(Df=i,ho=Ff(o.firstChild)):ho=i),Fs(e,n,n.pendingProps.children,t),Gs(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&po&&((i=o=ho)&&(null!==(o=function(e,n,t,r){for(;1===e.nodeType;){var o=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"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Ff(e.nextSibling)))break}return null}(o,n.type,n.pendingProps,yo))?(n.stateNode=o,fo=n,ho=Ff(o.firstChild),yo=!1,i=!0):i=!1),i||bo(n)),_(n),i=n.type,a=n.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,Af(i,a)?o=null:null!==s&&Af(i,s)&&(n.flags|=32),null!==n.memoizedState&&(i=ra(e,n,aa,null,null,t),hd.P=i),Gs(e,n),Fs(e,n,o,t),n.child;case 6:return null===e&&po&&((e=t=ho)&&(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=Ff(e.nextSibling)))return null}return e}(t,n.pendingProps,yo))?(n.stateNode=t,fo=n,ho=null,e=!0):e=!1),e||bo(n)),null;case 13:return $s(e,n,t);case 4:return Q(n,n.stateNode.containerInfo),o=n.pendingProps,null===e?n.child=yi(n,null,o,t):Fs(e,n,o,t),n.child;case 11:return Ds(e,n,n.type,n.pendingProps,t);case 7:return Fs(e,n,n.pendingProps,t),n.child;case 8:case 12:return Fs(e,n,n.pendingProps.children,t),n.child;case 10:return o=n.pendingProps,Io(0,n.type,o.value),Fs(e,n,o.children,t),n.child;case 9:return i=n.type.q,o=n.pendingProps.children,Po(n),o=o(i=Lo(i)),n.flags|=1,Fs(e,n,o,t),n.child;case 14:return Us(e,n,n.type,n.pendingProps,t);case 15:return Hs(e,n,n.type,n.pendingProps,t);case 19:return iu(e,n,t);case 31:return function(e,n,t){var o=n.pendingProps,i=!!(128&n.flags);if(n.flags&=-129,null===e){if(po){if("hidden"===o.mode)return e=Ws(n,o),n.lanes=536870912,qs(null,e);if(Ui(n),(e=ho)?null!==(e=null!==(e=Bf(e,yo))&&"&"===e.data?e:null)&&(n.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(t=Jr(e)).return=n,n.child=t,fo=n,ho=null):e=null,null===e)throw bo(n);return n.lanes=536870912,null}return Ws(n,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Ui(n),i)if(256&n.flags)n.flags&=-257,n=zs(e,n,t);else{if(null===n.memoizedState)throw Error(r(558));n.child=e.child,n.flags|=128,n=null}else if(Ls||No(e,n,t,!1),i=0!==(t&e.childLanes),Ls||i){if(null!==(o=yl)&&0!==(s=De(o,t))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Ql(o,0,s),Ps;uc(),n=zs(e,n,t)}else e=a.treeContext,ho=Ff(s.nextSibling),fo=n,po=!0,mo=null,yo=!1,null!==e&&co(n,e),(n=Ws(n,o)).flags|=4096;return n}return(e=Vr(e.child,{mode:o.mode,children:o.children})).ref=n.ref,n.child=e,e.return=n,e}(e,n,t);case 22:return js(e,n,t,n.pendingProps);case 24:return Po(n),o=Lo(qo),null===e?(null===(i=Zo())&&(i=yl,a=Vo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=t),i=a),n.memoizedState={parent:o,cache:i},wi(n),Io(0,qo,i)):(0!==(e.lanes&t)&&(gi(e,n),Ci(n,null,null,t),xi()),i=e.memoizedState,a=n.memoizedState,i.parent!==o?(i={parent:o,cache:o},n.memoizedState=i,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=i),Io(0,qo,o)):(o=a.cache,Io(0,qo,o),o!==i.cache&&Ro(n,[qo],t,!0))),Fs(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function lu(e){e.flags|=4}function cu(e,n,t,r,o){if((n=!!(32&e.mode))&&(n=!1),n){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!ic())throw si=ri,ni;e.flags|=8192}}else e.flags&=-16777217}function fu(e,n){if("stylesheet"!==n.type||4&n.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sd(n)){if(!ic())throw si=ri,ni;e.flags|=8192}}function du(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?Ne():536870912,e.lanes|=n,Ol|=n)}function hu(e,n){if(!po)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 pu(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var o=e.child;null!==o;)t|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function mu(e,n,t){var o=n.pendingProps;switch(lo(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return pu(n),null;case 3:return t=n.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Mo(qo),Z(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(ko(n)?lu(n):null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,Eo())),pu(n),null;case 26:var i=n.type,a=n.memoizedState;return null===e?(lu(n),null!==a?(pu(n),fu(n,a)):(pu(n),cu(n,i,0,0,t))):a?a!==e.memoizedState?(lu(n),pu(n),fu(n,a)):(pu(n),n.flags&=-16777217):((e=e.memoizedProps)!==o&&lu(n),pu(n),cu(n,i,0,0,t)),null;case 27:if($(n),t=K.current,i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==o&&lu(n);else{if(!o){if(null===n.stateNode)throw Error(r(166));return pu(n),null}e=Y.current,ko(n)?wo(n):(e=jf(i,o,t),n.stateNode=e,lu(n))}return pu(n),null;case 5:if($(n),i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==o&&lu(n);else{if(!o){if(null===n.stateNode)throw Error(r(166));return pu(n),null}if(a=Y.current,ko(n))wo(n);else{var s=wf(K.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[We]=n,a[ze]=o;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,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&lu(n)}}return pu(n),cu(n,n.type,null===e||e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==o&&lu(n);else{if("string"!=typeof o&&null===n.stateNode)throw Error(r(166));if(e=K.current,ko(n)){if(e=n.stateNode,t=n.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[We]=n,(e=!!(e.nodeValue===t||null!==o&&!0===o.suppressHydrationWarning||df(e.nodeValue,t)))||bo(n,!0)}else(e=wf(e).createTextNode(o))[We]=n,n.stateNode=e}return pu(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(o=ko(n),null!==t){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(r(557));e[We]=n}else Ao(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;pu(n),e=!1}else t=Eo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&n.flags?(qi(n),n):(qi(n),null);if(128&n.flags)throw Error(r(558))}return pu(n),null;case 13:if(o=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=ko(n),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=n.memoizedState)?i.dehydrated:null))throw Error(r(317));i[We]=n}else Ao(),!(128&n.flags)&&(n.memoizedState=null),n.flags|=4;pu(n),i=!1}else i=Eo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&n.flags?(qi(n),n):(qi(n),null)}return qi(n),128&n.flags?(n.lanes=t,n):(t=null!==o,e=null!==e&&null!==e.memoizedState,t&&(i=null,null!==(o=n.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),du(n,n.updateQueue),pu(n),null);case 4:return Z(),null===e&&nf(n.stateNode.containerInfo),pu(n),null;case 10:return Mo(n.type),pu(n),null;case 19:if(V(Vi),null===(o=n.memoizedState))return pu(n),null;if(i=!!(128&n.flags),null===(a=o.rendering))if(i)hu(o,!1);else{if(0!==Sl||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(a=Wi(e))){for(n.flags|=128,hu(o,!1),e=a.updateQueue,n.updateQueue=e,du(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Wr(t,e),t=t.sibling;return W(Vi,1&Vi.current|2),po&&ao(n,o.treeForkCount),n.child}e=e.sibling}null!==o.tail&&ce()>Fl&&(n.flags|=128,i=!0,hu(o,!1),n.lanes=4194304)}else{if(!i)if(null!==(e=Wi(a))){if(n.flags|=128,i=!0,e=e.updateQueue,n.updateQueue=e,du(n,e),hu(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!po)return pu(n),null}else 2*ce()-o.renderingStartTime>Fl&&536870912!==t&&(n.flags|=128,i=!0,hu(o,!1),n.lanes=4194304);o.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=o.last)?e.sibling=a:n.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ce(),e.sibling=null,t=Vi.current,W(Vi,i?1&t|2:1&t),po&&ao(n,o.treeForkCount),e):(pu(n),null);case 22:case 23:return qi(n),Pi(),o=null!==n.memoizedState,null!==e?null!==e.memoizedState!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?!!(536870912&t)&&!(128&n.flags)&&(pu(n),6&n.subtreeFlags&&(n.flags|=8192)):pu(n),null!==(t=n.updateQueue)&&du(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),o=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(o=n.memoizedState.cachePool.pool),o!==t&&(n.flags|=2048),null!==e&&V(Qo),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Mo(qo),pu(n),null;case 25:case 30:return null}throw Error(r(156,n.tag))}function yu(e,n){switch(lo(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Mo(qo),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(qi(n),null===n.alternate)throw Error(r(340));Ao()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(qi(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(r(340));Ao()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return V(Vi),null;case 4:return Z(),null;case 10:return Mo(n.type),null;case 22:case 23:return qi(n),Pi(),null!==e&&V(Qo),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return Mo(qo),null;default:return null}}function vu(e,n){switch(lo(n),n.tag){case 3:Mo(qo),Z();break;case 26:case 27:case 5:$(n);break;case 4:Z();break;case 31:null!==n.memoizedState&&qi(n);break;case 13:qi(n);break;case 19:V(Vi);break;case 10:Mo(n.type);break;case 22:case 23:qi(n),Pi(),null!==e&&V(Qo);break;case 24:Mo(qo)}}function bu(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var o=r.next;t=o;do{if((t.tag&e)===e){r=void 0;var i=t.create,a=t.inst;r=i(),a.destroy=r}t=t.next}while(t!==o)}}catch(s){Sc(n,n.return,s)}}function wu(e,n,t){try{var r=n.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=n;var u=t,l=s;try{l()}catch(c){Sc(o,u,c)}}}r=r.next}while(r!==i)}}catch(c){Sc(n,n.return,c)}}function gu(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Mi(n,t)}catch(r){Sc(e,e.return,r)}}}function ku(e,n,t){t.props=Ss(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(r){Sc(e,n,r)}}function Au(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(o){Sc(e,n,o)}}function Eu(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(o){Sc(e,n,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(i){Sc(e,n,i)}else t.current=null}function Tu(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(o){Sc(e,e.return,o)}}function Su(e,n,t){try{var o=e.stateNode;!function(e,n,t,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,u=null,l=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":l=d;default:o.hasOwnProperty(p)||hf(e,n,p,null,o,d)}}for(var h in o){var p=o[h];if(d=t[h],o.hasOwnProperty(h)&&(null!=p||null!=d))switch(h){case"type":a=p;break;case"name":i=p;break;case"checked":c=p;break;case"defaultChecked":f=p;break;case"value":s=p;break;case"defaultValue":u=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,n));break;default:p!==d&&hf(e,n,h,p,o,d)}}return void kn(e,s,u,l,c,f,a,i);case"select":for(a in p=s=u=h=null,t)if(l=t[a],t.hasOwnProperty(a)&&null!=l)switch(a){case"value":break;case"multiple":p=l;default:o.hasOwnProperty(a)||hf(e,n,a,null,o,l)}for(i in o)if(a=o[i],l=t[i],o.hasOwnProperty(i)&&(null!=a||null!=l))switch(i){case"value":h=a;break;case"defaultValue":u=a;break;case"multiple":s=a;default:a!==l&&hf(e,n,i,a,o,l)}return n=u,t=s,o=p,void(null!=h?Tn(e,!!t,h,!1):!!o!=!!t&&(null!=n?Tn(e,!!t,n,!0):Tn(e,!!t,t?[]:"",!1)));case"textarea":for(u in p=h=null,t)if(i=t[u],t.hasOwnProperty(u)&&null!=i&&!o.hasOwnProperty(u))switch(u){case"value":case"children":break;default:hf(e,n,u,null,o,i)}for(s in o)if(i=o[s],a=t[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":h=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&hf(e,n,s,i,o,a)}return void Sn(e,h,p);case"option":for(var m in t)h=t[m],t.hasOwnProperty(m)&&null!=h&&!o.hasOwnProperty(m)&&("selected"===m?e.selected=!1:hf(e,n,m,null,o,h));for(l in o)h=o[l],p=t[l],!o.hasOwnProperty(l)||h===p||null==h&&null==p||("selected"===l?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:hf(e,n,l,h,o,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 y in t)h=t[y],t.hasOwnProperty(y)&&null!=h&&!o.hasOwnProperty(y)&&hf(e,n,y,null,o,h);for(c in o)if(h=o[c],p=t[c],o.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,o,p)}return;default:if(Rn(n)){for(var v in t)h=t[v],t.hasOwnProperty(v)&&void 0!==h&&!o.hasOwnProperty(v)&&pf(e,n,v,void 0,o,h);for(f in o)h=o[f],p=t[f],!o.hasOwnProperty(f)||h===p||void 0===h&&void 0===p||pf(e,n,f,h,o,p);return}}for(var b in t)h=t[b],t.hasOwnProperty(b)&&null!=h&&!o.hasOwnProperty(b)&&hf(e,n,b,null,o,h);for(d in o)h=o[d],p=t[d],!o.hasOwnProperty(d)||h===p||null==h&&null==p||hf(e,n,d,h,o,p)}(o,e.type,t,n),o[ze]=n}catch(i){Sc(e,e.return,i)}}function xu(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Mf(e.type)||4===e.tag}function Cu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xu(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 Iu(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.fe)||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(Iu(e,n,t),e=e.sibling;null!==e;)Iu(e,n,t),e=e.sibling}function Mu(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(Mu(e,n,t),e=e.sibling;null!==e;)Mu(e,n,t),e=e.sibling}function Ou(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);mf(n,r,t),n[We]=e,n[ze]=t}catch(i){Sc(e,e.return,i)}}var Ru=!1,Nu=!1,Bu=!1,Pu="function"==typeof WeakSet?WeakSet:Set,Lu=null;function Fu(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Qu(e,t),4&r&&bu(5,t);break;case 1:if(Qu(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(a){Sc(t,t.return,a)}else{var o=Ss(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(o,n,e.de)}catch(s){Sc(t,t.return,s)}}64&r&&gu(t),512&r&&Au(t,t.return);break;case 3:if(Qu(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{Mi(e,n)}catch(a){Sc(t,t.return,a)}}break;case 27:null===n&&4&r&&Ou(t);case 26:case 5:Qu(e,t),null===n&&4&r&&Tu(t),512&r&&Au(t,t.return);break;case 12:Qu(e,t);break;case 31:Qu(e,t),4&r&&Vu(e,t);break;case 13:Qu(e,t),4&r&&Wu(e,t),64&r&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,n){var t=e.ownerDocument;if("$~"===e.data)e.he=n;else if("$?"!==e.data||"loading"!==t.readyState)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e.he=r}}(e,t=Mc.bind(null,t));break;case 22:if(!(r=null!==t.memoizedState||Ru)){n=null!==n&&null!==n.memoizedState||Nu,o=Ru;var i=Nu;Ru=r,(Nu=n)&&!i?_u(e,t,!!(8772&t.subtreeFlags)):Qu(e,t),Ru=o,Nu=i}break;case 30:break;default:Qu(e,t)}}function Du(e){var n=e.alternate;null!==n&&(e.alternate=null,Du(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 Uu=null,Hu=!1;function ju(e,n,t){for(t=t.child;null!==t;)qu(e,n,t),t=t.sibling}function qu(e,n,t){if(ge&&"function"==typeof ge.onCommitFiberUnmount)try{ge.onCommitFiberUnmount(we,t)}catch(i){}switch(t.tag){case 26:Nu||Eu(t,n),ju(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:Nu||Eu(t,n);var r=Uu,o=Hu;Mf(t.type)&&(Uu=t.stateNode,Hu=!1),ju(e,n,t),qf(t.stateNode),Uu=r,Hu=o;break;case 5:Nu||Eu(t,n);case 6:if(r=Uu,o=Hu,Uu=null,ju(e,n,t),Hu=o,null!==(Uu=r))if(Hu)try{(9===Uu.nodeType?Uu.body:"HTML"===Uu.nodeName?Uu.ownerDocument.body:Uu).removeChild(t.stateNode)}catch(a){Sc(t,n,a)}else try{Uu.removeChild(t.stateNode)}catch(a){Sc(t,n,a)}break;case 18:null!==Uu&&(Hu?(Of(9===(e=Uu).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),Jd(e)):Of(Uu,t.stateNode));break;case 4:r=Uu,o=Hu,Uu=t.stateNode.containerInfo,Hu=!0,ju(e,n,t),Uu=r,Hu=o;break;case 0:case 11:case 14:case 15:wu(2,t,n),Nu||wu(4,t,n),ju(e,n,t);break;case 1:Nu||(Eu(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount&&ku(t,n,r)),ju(e,n,t);break;case 21:ju(e,n,t);break;case 22:Nu=(r=Nu)||null!==t.memoizedState,ju(e,n,t),Nu=r;break;default:ju(e,n,t)}}function Vu(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 Wu(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 zu(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 Pu),n;case 22:return null===(n=(e=e.stateNode).le)&&(n=e.le=new Pu),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 Gu(e,n){var t=n.deletions;if(null!==t)for(var o=0;o<t.length;o++){var i=t[o],a=e,s=n,u=s;e:for(;null!==u;){switch(u.tag){case 27:if(Mf(u.type)){Uu=u.stateNode,Hu=!1;break e}break;case 5:Uu=u.stateNode,Hu=!1;break e;case 3:case 4:Uu=u.stateNode.containerInfo,Hu=!0;break e}u=u.return}if(null===Uu)throw Error(r(160));qu(a,s,i),Uu=null,Hu=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&n.subtreeFlags)for(n=n.child;null!==n;)Ju(n,e),n=n.sibling}var Yu=null;function Ju(e,n){var t=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gu(n,e),Ku(e),4&o&&(wu(3,e,e.return),bu(3,e),wu(5,e,e.return));break;case 1:Gu(n,e),Ku(e),512&o&&(Nu||null===t||Eu(t,t.return)),64&o&&Ru&&null!==(e=e.updateQueue)&&null!==(o=e.callbacks)&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===t?o:t.concat(o));break;case 26:var i=Yu;if(Gu(n,e),Ku(e),512&o&&(Nu||null===t||Eu(t,t.return)),4&o){var a=null!==t?t.memoizedState:null;if(o=e.memoizedState,null===t)if(null===o)if(null===e.stateNode){e:{o=e.type,t=e.memoizedProps,i=i.ownerDocument||i;n:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Qe]||a[We]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),mf(a,o,t),a[We]=e,tn(a),o=a;break e;case"link":var s=id("link","href",i).get(o+(t.href||""));if(s)for(var u=0;u<s.length;u++)if((a=s[u]).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(u,1);break n}mf(a=i.createElement(o),o,t),i.head.appendChild(a);break;case"meta":if(s=id("meta","content",i).get(o+(t.content||"")))for(u=0;u<s.length;u++)if((a=s[u]).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(u,1);break n}mf(a=i.createElement(o),o,t),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[We]=e,tn(a),o=a}e.stateNode=o}else ad(i,e.type,e.stateNode);else e.stateNode=ed(i,o,e.memoizedProps);else a!==o?(null===a?null!==t.stateNode&&(t=t.stateNode).parentNode.removeChild(t):a.count--,null===o?ad(i,e.type,e.stateNode):ed(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Su(e,e.memoizedProps,t.memoizedProps)}break;case 27:Gu(n,e),Ku(e),512&o&&(Nu||null===t||Eu(t,t.return)),null!==t&&4&o&&Su(e,e.memoizedProps,t.memoizedProps);break;case 5:if(Gu(n,e),Ku(e),512&o&&(Nu||null===t||Eu(t,t.return)),32&e.flags){i=e.stateNode;try{Cn(i,"")}catch(m){Sc(e,e.return,m)}}4&o&&null!=e.stateNode&&Su(e,i=e.memoizedProps,null!==t?t.memoizedProps:i),1024&o&&(Bu=!0);break;case 6:if(Gu(n,e),Ku(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,t=e.stateNode;try{t.nodeValue=o}catch(m){Sc(e,e.return,m)}}break;case 3:if(od=null,i=Yu,Yu=zf(n.containerInfo),Gu(n,e),Yu=i,Ku(e),4&o&&null!==t&&t.memoizedState.isDehydrated)try{Jd(n.containerInfo)}catch(m){Sc(e,e.return,m)}Bu&&(Bu=!1,Xu(e));break;case 4:o=Yu,Yu=zf(e.stateNode.containerInfo),Gu(n,e),Ku(e),Yu=o;break;case 12:default:Gu(n,e),Ku(e);break;case 31:case 19:Gu(n,e),Ku(e),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,zu(e,o));break;case 13:Gu(n,e),Ku(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==t&&null!==t.memoizedState)&&(Pl=ce()),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,zu(e,o));break;case 22:i=null!==e.memoizedState;var l=null!==t&&null!==t.memoizedState,c=Ru,f=Nu;if(Ru=c||i,Nu=f||l,Gu(n,e),Nu=f,Ru=c,Ku(e),8192&o)e:for(n=e.stateNode,n.ae=i?-2&n.ae:1|n.ae,i&&(null===t||l||Ru||Nu||Zu(e)),t=null,n=e;;){if(5===n.tag||26===n.tag){if(null===t){l=t=n;try{if(a=l.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{u=l.stateNode;var d=l.memoizedProps.style,h=null!=d&&d.hasOwnProperty("display")?d.display:null;u.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(m){Sc(l,l.return,m)}}}else if(6===n.tag){if(null===t){l=n;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(m){Sc(l,l.return,m)}}}else if(18===n.tag){if(null===t){l=n;try{var p=l.stateNode;i?Rf(p,!0):Rf(l.stateNode,!1)}catch(m){Sc(l,l.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&o&&null!==(o=e.updateQueue)&&null!==(t=o.retryQueue)&&(o.retryQueue=null,zu(e,t));case 30:case 21:}}function Ku(e){var n=e.flags;if(2&n){try{for(var t,o=e.return;null!==o;){if(xu(o)){t=o;break}o=o.return}if(null==t)throw Error(r(160));switch(t.tag){case 27:var i=t.stateNode;Mu(e,Cu(e),i);break;case 5:var a=t.stateNode;32&t.flags&&(Cn(a,""),t.flags&=-33),Mu(e,Cu(e),a);break;case 3:case 4:var s=t.stateNode.containerInfo;Iu(e,Cu(e),s);break;default:throw Error(r(161))}}catch(u){Sc(e,e.return,u)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Xu(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var n=e;Xu(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),e=e.sibling}}function Qu(e,n){if(8772&n.subtreeFlags)for(n=n.child;null!==n;)Fu(e,n.alternate,n),n=n.sibling}function Zu(e){for(e=e.child;null!==e;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:wu(4,n,n.return),Zu(n);break;case 1:Eu(n,n.return);var t=n.stateNode;"function"==typeof t.componentWillUnmount&&ku(n,n.return,t),Zu(n);break;case 27:qf(n.stateNode);case 26:case 5:Eu(n,n.return),Zu(n);break;case 22:null===n.memoizedState&&Zu(n);break;default:Zu(n)}e=e.sibling}}function _u(e,n,t){for(t=t&&!!(8772&n.subtreeFlags),n=n.child;null!==n;){var r=n.alternate,o=e,i=n,a=i.flags;switch(i.tag){case 0:case 11:case 15:_u(o,i,t),bu(4,i);break;case 1:if(_u(o,i,t),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(l){Sc(r,r.return,l)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var u=o.shared.hiddenCallbacks;if(null!==u)for(o.shared.hiddenCallbacks=null,o=0;o<u.length;o++)Ii(u[o],s)}catch(l){Sc(r,r.return,l)}}t&&64&a&&gu(i),Au(i,i.return);break;case 27:Ou(i);case 26:case 5:_u(o,i,t),t&&null===r&&4&a&&Tu(i),Au(i,i.return);break;case 12:_u(o,i,t);break;case 31:_u(o,i,t),t&&4&a&&Vu(o,i);break;case 13:_u(o,i,t),t&&4&a&&Wu(o,i);break;case 22:null===i.memoizedState&&_u(o,i,t),Au(i,i.return);break;case 30:break;default:_u(o,i,t)}n=n.sibling}}function $u(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&&Wo(t))}function el(e,n){e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&Wo(e))}function nl(e,n,t,r){if(10256&n.subtreeFlags)for(n=n.child;null!==n;)tl(e,n,t,r),n=n.sibling}function tl(e,n,t,r){var o=n.flags;switch(n.tag){case 0:case 11:case 15:nl(e,n,t,r),2048&o&&bu(9,n);break;case 1:case 31:case 13:default:nl(e,n,t,r);break;case 3:nl(e,n,t,r),2048&o&&(e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&Wo(e)));break;case 12:if(2048&o){nl(e,n,t,r),e=n.stateNode;try{var i=n.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===n.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(u){Sc(n,n.return,u)}}else nl(e,n,t,r);break;case 23:break;case 22:i=n.stateNode,a=n.alternate,null!==n.memoizedState?2&i.ae?nl(e,n,t,r):ol(e,n):2&i.ae?nl(e,n,t,r):(i.ae|=2,rl(e,n,t,r,!!(10256&n.subtreeFlags)||!1)),2048&o&&$u(a,n);break;case 24:nl(e,n,t,r),2048&o&&el(n.alternate,n)}}function rl(e,n,t,r,o){for(o=o&&(!!(10256&n.subtreeFlags)||!1),n=n.child;null!==n;){var i=e,a=n,s=t,u=r,l=a.flags;switch(a.tag){case 0:case 11:case 15:rl(i,a,s,u,o),bu(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c.ae?rl(i,a,s,u,o):ol(i,a):(c.ae|=2,rl(i,a,s,u,o)),o&&2048&l&&$u(a.alternate,a);break;case 24:rl(i,a,s,u,o),o&&2048&l&&el(a.alternate,a);break;default:rl(i,a,s,u,o)}n=n.sibling}}function ol(e,n){if(10256&n.subtreeFlags)for(n=n.child;null!==n;){var t=e,r=n,o=r.flags;switch(r.tag){case 22:ol(t,r),2048&o&&$u(r.alternate,r);break;case 24:ol(t,r),2048&o&&el(r.alternate,r);break;default:ol(t,r)}n=n.sibling}}var il=8192;function al(e,n,t){if(e.subtreeFlags&il)for(e=e.child;null!==e;)sl(e,n,t),e=e.sibling}function sl(e,n,t){switch(e.tag){case 26:al(e,n,t),e.flags&il&&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 o=Xf(r.href),i=n.querySelector(Qf(o));if(i)return null!==(n=i.pe)&&"object"==typeof n&&"function"==typeof n.then&&(e.count++,e=ld.bind(e),n.then(e,e)),t.state.loading|=4,t.instance=i,void tn(i);i=n.ownerDocument||n,r=Zf(r),(o=Vf.get(o))&&td(r,o),tn(i=i.createElement("link"));var a=i;a.pe=new Promise(function(e,n){a.onload=e,a.onerror=n}),mf(i,"link",r),t.instance=i}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&!(3&t.state.loading)&&(e.count++,t=ld.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}(t,Yu,e.memoizedState,e.memoizedProps);break;case 5:default:al(e,n,t);break;case 3:case 4:var r=Yu;Yu=zf(e.stateNode.containerInfo),al(e,n,t),Yu=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=il,il=16777216,al(e,n,t),il=r):al(e,n,t))}}function ul(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 ll(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Lu=r,dl(r,e)}ul(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)cl(e),e=e.sibling}function cl(e){switch(e.tag){case 0:case 11:case 15:ll(e),2048&e.flags&&wu(9,e,e.return);break;case 3:case 12:default:ll(e);break;case 22:var n=e.stateNode;null!==e.memoizedState&&2&n.ae&&(null===e.return||13!==e.return.tag)?(n.ae&=-3,fl(e)):ll(e)}}function fl(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];Lu=r,dl(r,e)}ul(e)}for(e=e.child;null!==e;){switch((n=e).tag){case 0:case 11:case 15:wu(8,n,n.return),fl(n);break;case 22:2&(t=n.stateNode).ae&&(t.ae&=-3,fl(n));break;default:fl(n)}e=e.sibling}}function dl(e,n){for(;null!==Lu;){var t=Lu;switch(t.tag){case 0:case 11:case 15:wu(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:Wo(t.memoizedState.cache)}if(null!==(r=t.child))r.return=t,Lu=r;else e:for(t=e;null!==Lu;){var o=(r=Lu).sibling,i=r.return;if(Du(r),r===t){Lu=null;break e}if(null!==o){o.return=i,Lu=o;break e}Lu=i}}}var hl={getCacheForType:function(e){var n=Lo(qo),t=n.data.get(e);return void 0===t&&(t=e(),n.data.set(e,t)),t},cacheSignal:function(){return Lo(qo).controller.signal}},pl="function"==typeof WeakMap?WeakMap:Map,ml=0,yl=null,vl=null,bl=0,wl=0,gl=null,kl=!1,Al=!1,El=!1,Tl=0,Sl=0,xl=0,Cl=0,Il=0,Ml=0,Ol=0,Rl=null,Nl=null,Bl=!1,Pl=0,Ll=0,Fl=1/0,Dl=null,Ul=null,Hl=0,jl=null,ql=null,Vl=0,Wl=0,zl=null,Gl=null,Yl=0,Jl=null;function Kl(){return 2&ml&&0!==bl?bl&-bl:null!==F.T?zc():je()}function Xl(){if(0===Ml)if(536870912&bl&&!po)Ml=536870912;else{var e=xe;!(3932160&(xe<<=1))&&(xe=262144),Ml=e}return null!==(e=Li.current)&&(e.flags|=32),Ml}function Ql(e,n,t){(e!==yl||2!==wl&&9!==wl)&&null===e.cancelPendingCommit||(rc(e,0),ec(e,bl,Ml,!1)),Pe(e,t),2&ml&&e===yl||(e===yl&&(!(2&ml)&&(Cl|=t),4===Sl&&ec(e,bl,Ml,!1)),Dc(e))}function Zl(e,n,t){if(6&ml)throw Error(r(327));for(var o=!t&&!(127&n)&&0===(n&e.expiredLanes)||Oe(e,n),i=o?function(e,n){var t=ml;ml|=2;var o=ac(),i=sc();yl!==e||bl!==n?(Dl=null,Fl=ce()+500,rc(e,n)):Al=Oe(e,n);e:for(;;)try{if(0!==wl&&null!==vl){n=vl;var a=gl;n:switch(wl){case 1:wl=0,gl=null,pc(e,n,a,1);break;case 2:case 9:if(oi(a)){wl=0,gl=null,hc(n);break}n=function(){2!==wl&&9!==wl||yl!==e||(wl=7),Dc(e)},a.then(n,n);break e;case 3:wl=7;break e;case 4:wl=5;break e;case 7:oi(a)?(wl=0,gl=null,hc(n)):(wl=0,gl=null,pc(e,n,a,7));break;case 5:var s=null;switch(vl.tag){case 26:s=vl.memoizedState;case 5:case 27:var u=vl;if(s?sd(s):u.stateNode.complete){wl=0,gl=null;var l=u.sibling;if(null!==l)vl=l;else{var c=u.return;null!==c?(vl=c,mc(c)):vl=null}break n}}wl=0,gl=null,pc(e,n,a,5);break;case 6:wl=0,gl=null,pc(e,n,a,6);break;case 8:tc(),Sl=6;break e;default:throw Error(r(462))}}fc();break}catch(f){oc(e,f)}return Co=xo=null,F.H=o,F.A=i,ml=t,null!==vl?0:(yl=null,bl=0,Nr(),Sl)}(e,n):lc(e,n,!0),a=o;;){if(0===i){Al&&!o&&ec(e,n,0,!1);break}if(t=e.current.alternate,!a||$l(t)){if(2===i){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 u=e;i=Rl;var l=u.current.memoizedState.isDehydrated;if(l&&(rc(u,s).flags|=256),2!==(s=lc(u,s,!1))){if(El&&!l){u.errorRecoveryDisabledLanes|=a,Cl|=a,i=4;break e}a=Nl,Nl=i,null!==a&&(null===Nl?Nl=a:Nl.push.apply(Nl,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){rc(e,0),ec(e,n,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&n)!==n)break;case 6:ec(o,n,Ml,!kl);break e;case 2:Nl=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&n)===n&&10<(i=Pl+300-ce())){if(ec(o,n,Ml,!kl),0!==Me(o,0,!0))break e;Vl=n,o.timeoutHandle=Tf(_l.bind(null,o,t,Nl,Dl,Bl,n,Ml,Cl,Ol,kl,a,"Throttled",-0,0),i)}else _l(o,t,Nl,Dl,Bl,n,Ml,Cl,Ol,kl,a,null,-0,0)}break}i=lc(e,n,!1),a=!1}Dc(e)}function _l(e,n,t,r,o,i,a,s,u,l,c,f,d,h){if(e.timeoutHandle=-1,8192&(f=n.subtreeFlags)||!(16785408&~f)){sl(n,i,f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln});var p=(62914560&i)===i?Pl-ce():(4194048&i)===i?Ll-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===ud&&(ud=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,n=0,t=performance.getEntriesByType("resource"),r=0;r<t.length;r++){var o=t[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&yf(a)){for(a=0,s=o.responseEnd,r+=1;r<t.length;r++){var u=t[r],l=u.startTime;if(l>s)break;var c=u.transferSize,f=u.initiatorType;c&&yf(f)&&(a+=c*((u=u.responseEnd)<s?1:(s-l)/(u-l)))}if(--r,n+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return n/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=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>ud?50:800)+n);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(f,p),null!==p)return Vl=i,e.cancelPendingCommit=p(vc.bind(null,e,n,i,t,r,o,a,s,u,c,f,null,d,h)),void ec(e,i,a,!l)}vc(e,n,i,t,r,o,a,s,u)}function $l(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 o=t[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))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&=~Il,n&=~Cl,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var o=n;0<o;){var i=31-Ae(o),a=1<<i;r[i]=-1,o&=~a}0!==t&&Le(e,t,n)}function nc(){return!!(6&ml)||(Uc(0),!1)}function tc(){if(null!==vl){if(0===wl)var e=vl.return;else Co=xo=null,la(e=vl),ci=null,fi=0,e=vl;for(;null!==e;)vu(e.alternate,e),e=e.return;vl=null}}function rc(e,n){var t=e.timeoutHandle;-1!==t&&(e.timeoutHandle=-1,Sf(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),Vl=0,tc(),yl=e,vl=t=Vr(e.current,null),bl=n,wl=0,gl=null,kl=!1,Al=Oe(e,n),El=!1,Ol=Ml=Il=Cl=xl=Sl=0,Nl=Rl=null,Bl=!1,8&n&&(n|=32&n);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=n;0<r;){var o=31-Ae(r),i=1<<o;n|=e[o],r&=~i}return Tl=n,Nr(),t}function oc(e,n){Gi=null,F.H=vs,n===ei||n===ti?(n=ui(),wl=3):n===ni?(n=ui(),wl=4):wl=n===Ps?8:null!==n&&"object"==typeof n&&"function"==typeof n.then?6:1,gl=n,null===vl&&(Sl=1,Ms(e,Qr(n,e.current)))}function ic(){var e=Li.current;return null===e||((4194048&bl)===bl?null===Fi:!!((62914560&bl)===bl||536870912&bl)&&e===Fi)}function ac(){var e=F.H;return F.H=vs,null===e?vs:e}function sc(){var e=F.A;return F.A=hl,e}function uc(){Sl=4,kl||(4194048&bl)!==bl&&null!==Li.current||(Al=!0),!(134217727&xl)&&!(134217727&Cl)||null===yl||ec(yl,bl,Ml,!1)}function lc(e,n,t){var r=ml;ml|=2;var o=ac(),i=sc();yl===e&&bl===n||(Dl=null,rc(e,n)),n=!1;var a=Sl;e:for(;;)try{if(0!==wl&&null!==vl){var s=vl,u=gl;switch(wl){case 8:tc(),a=6;break e;case 3:case 2:case 9:case 6:null===Li.current&&(n=!0);var l=wl;if(wl=0,gl=null,pc(e,s,u,l),t&&Al){a=0;break e}break;default:l=wl,wl=0,gl=null,pc(e,s,u,l)}}cc(),a=Sl;break}catch(c){oc(e,c)}return n&&e.shellSuspendCounter++,Co=xo=null,ml=r,F.H=o,F.A=i,null===vl&&(yl=null,bl=0,Nr()),a}function cc(){for(;null!==vl;)dc(vl)}function fc(){for(;null!==vl&&!ue();)dc(vl)}function dc(e){var n=uu(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===n?mc(e):vl=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,bl);break;case 11:n=Js(t,n,n.pendingProps,n.type.render,n.ref,bl);break;case 5:la(n);default:vu(t,n),n=uu(t,n=vl=Wr(n,Tl),Tl)}e.memoizedProps=e.pendingProps,null===n?mc(e):vl=n}function pc(e,n,t,o){Co=xo=null,la(n),ci=null,fi=0;var i=n.return;try{if(function(e,n,t,o,i){if(t.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(n=t.alternate)&&No(n,t,i,!0),null!==(t=Li.current)){switch(t.tag){case 31:case 13:return null===Fi?uc():null===t.alternate&&0===Sl&&(Sl=3),t.flags&=-257,t.flags|=65536,t.lanes=i,o===ri?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=/* @__PURE__ */new Set([o]):n.add(o),xc(e,o,i)),!1;case 22:return t.flags|=65536,o===ri?t.flags|=16384:(null===(n=t.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([o])},t.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=/* @__PURE__ */new Set([o]):t.add(o),xc(e,o,i)),!1}throw Error(r(435,t.tag))}return xc(e,o,i),uc(),!1}if(po)return null!==(n=Li.current)?(!(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=i,o!==vo&&To(Qr(e=Error(r(422),{cause:o}),t))):(o!==vo&&To(Qr(n=Error(r(423),{cause:o}),t)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Qr(o,t),Ti(e,i=Rs(e.stateNode,o,i)),4!==Sl&&(Sl=2)),!1;var a=Error(r(520),{cause:o});if(a=Qr(a,t),null===Rl?Rl=[a]:Rl.push(a),4!==Sl&&(Sl=2),null===n)return!0;o=Qr(o,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=i&-i,t.lanes|=e,Ti(t,e=Rs(t.stateNode,o,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!==Ul&&Ul.has(a))))return t.flags|=65536,i&=-i,t.lanes|=i,Bs(i=Ns(i),e,t,o),Ti(t,i),!1}t=t.return}while(null!==t);return!1}(e,i,n,t,bl))return Sl=1,Ms(e,Qr(t,e.current)),void(vl=null)}catch(a){if(null!==i)throw vl=i,a;return Sl=1,Ms(e,Qr(t,e.current)),void(vl=null)}32768&n.flags?(po||1===o?e=!0:Al||536870912&bl?e=!1:(kl=e=!0,(2===o||9===o||3===o||6===o)&&null!==(o=Li.current)&&13===o.tag&&(o.flags|=16384)),yc(n,e)):mc(n)}function mc(e){var n=e;do{if(32768&n.flags)return void yc(n,kl);e=n.return;var t=mu(n.alternate,n,Tl);if(null!==t)return void(vl=t);if(null!==(n=n.sibling))return void(vl=n);vl=n=e}while(null!==n);0===Sl&&(Sl=5)}function yc(e,n){do{var t=yu(e.alternate,e);if(null!==t)return t.flags&=32767,void(vl=t);if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling))return void(vl=e);vl=e=t}while(null!==e);Sl=6,vl=null}function vc(e,n,t,o,i,a,s,u,l){e.cancelPendingCommit=null;do{Ac()}while(0!==Hl);if(6&ml)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,o,i){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,u=e.expirationTimes,l=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-Ae(t),f=1<<c;s[c]=0,u[c]=-1;var d=l[c];if(null!==d)for(l[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!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~n))}(e,t,a|=Rr,s,u,l),e===yl&&(vl=yl=null,bl=0),ql=n,jl=e,Vl=t,Wl=a,zl=i,Gl=o,10256&n.subtreeFlags||10256&n.flags?(e.callbackNode=null,e.callbackPriority=0,ae(pe,function(){return Ec(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&n.flags),13878&n.subtreeFlags||o){o=F.T,F.T=null,i=D.p,D.p=2,s=ml,ml|=4;try{!function(e,n){if(e=e.containerInfo,vf=Ad,ar(e=ir(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(o&&0!==o.rangeCount){t=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{t.nodeType,a.nodeType}catch(y){t=null;break e}var s=0,u=-1,l=-1,c=0,f=0,d=e,h=null;n:for(;;){for(var p;d!==t||0!==i&&3!==d.nodeType||(u=s+i),d!==a||0!==o&&3!==d.nodeType||(l=s+o),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===i&&(u=s),h===a&&++f===o&&(l=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}t=-1===u||-1===l?null:{start:u,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(bf={focusedElem:e,selectionRange:t},Ad=!1,Lu=n;null!==Lu;)if(e=(n=Lu).child,1028&n.subtreeFlags&&null!==e)e.return=n,Lu=e;else for(;null!==Lu;){switch(a=(n=Lu).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++)(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:if(1024&e&&null!==a){e=void 0,t=n,i=a.memoizedProps,a=a.memoizedState,o=t.stateNode;try{var m=Ss(t.type,i);e=o.getSnapshotBeforeUpdate(m,a),o.de=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,Lu=e;break}Lu=n.return}}(e,n)}finally{ml=s,D.p=i,F.T=o}}Hl=1,bc(),wc(),gc()}}function bc(){if(1===Hl){Hl=0;var e=jl,n=ql,t=!!(13878&n.flags);if(13878&n.subtreeFlags||t){t=F.T,F.T=null;var r=D.p;D.p=2;var o=ml;ml|=4;try{Ju(n,e);var i=bf,a=ir(e.containerInfo),s=i.focusedElem,u=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==u&&ar(s)){var l=u.start,c=u.end;if(void 0===c&&(c=l),"selectionStart"in s)s.selectionStart=l,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(u.start,p),y=void 0===u.end?m:Math.min(u.end,p);!h.extend&&m>y&&(a=y,y=m,m=a);var v=rr(s,m),b=rr(s,y);if(v&&b&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var w=f.createRange();w.setStart(v.node,v.offset),h.removeAllRanges(),m>y?(h.addRange(w),h.extend(b.node,b.offset)):(w.setEnd(b.node,b.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,bf=vf=null}finally{ml=o,D.p=r,F.T=t}}e.current=n,Hl=2}}function wc(){if(2===Hl){Hl=0;var e=jl,n=ql,t=!!(8772&n.flags);if(8772&n.subtreeFlags||t){t=F.T,F.T=null;var r=D.p;D.p=2;var o=ml;ml|=4;try{Fu(e,n.alternate,n)}finally{ml=o,D.p=r,F.T=t}}Hl=3}}function gc(){if(4===Hl||3===Hl){Hl=0,le();var e=jl,n=ql,t=Vl,r=Gl;10256&n.subtreeFlags||10256&n.flags?Hl=5:(Hl=0,ql=jl=null,kc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Ul=null),He(t),n=n.stateNode,ge&&"function"==typeof ge.onCommitFiberRoot)try{ge.onCommitFiberRoot(we,n,void 0,!(128&~n.current.flags))}catch(u){}if(null!==r){n=F.T,o=D.p,D.p=2,F.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{F.T=n,D.p=o}}3&Vl&&Ac(),Dc(e),o=e.pendingLanes,261930&t&&42&o?e===Jl?Yl++:(Yl=0,Jl=e):Yl=0,Uc(0)}}function kc(e,n){0===(e.pooledCacheLanes&=n)&&null!=(n=e.pooledCache)&&(e.pooledCache=null,Wo(n))}function Ac(){return bc(),wc(),gc(),Ec()}function Ec(){if(5!==Hl)return!1;var e=jl,n=Wl;Wl=0;var t=He(Vl),o=F.T,i=D.p;try{D.p=32>t?32:t,F.T=null,t=zl,zl=null;var a=jl,s=Vl;if(Hl=0,ql=jl=null,Vl=0,6&ml)throw Error(r(331));var u=ml;if(ml|=4,cl(a.current),tl(a,a.current,s,t),ml=u,Uc(0),ge&&"function"==typeof ge.onPostCommitFiberRoot)try{ge.onPostCommitFiberRoot(we,a)}catch(l){}return!0}finally{D.p=i,F.T=o,kc(e,n)}}function Tc(e,n,t){n=Qr(t,n),null!==(e=Ai(e,n=Rs(e.stateNode,n,2),2))&&(Pe(e,2),Dc(e))}function Sc(e,n,t){if(3===e.tag)Tc(e,e,t);else for(;null!==n;){if(3===n.tag){Tc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){e=Qr(t,e),null!==(r=Ai(n,t=Ns(2),2))&&(Bs(t,r,n,e),Pe(r,2),Dc(r));break}}n=n.return}}function xc(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=/* @__PURE__ */new Set;r.set(n,o)}else void 0===(o=r.get(n))&&(o=/* @__PURE__ */new Set,r.set(n,o));o.has(t)||(El=!0,o.add(t),e=Cc.bind(null,e,n,t),n.then(e,e))}function Cc(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,yl===e&&(bl&t)===t&&(4===Sl||3===Sl&&(62914560&bl)===bl&&300>ce()-Pl?!(2&ml)&&rc(e,0):Il|=t,Ol===bl&&(Ol=0)),Dc(e)}function Ic(e,n){0===n&&(n=Ne()),null!==(e=Lr(e,n))&&(Pe(e,n),Dc(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 o=e.stateNode,i=e.memoizedState;null!==i&&(t=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode.le;break;default:throw Error(r(314))}null!==o&&o.delete(n),Ic(e,t)}var Rc=null,Nc=null,Bc=!1,Pc=!1,Lc=!1,Fc=0;function Dc(e){e!==Nc&&null===e.next&&(null===Nc?Rc=Nc=e:Nc=Nc.next=e),Pc=!0,Bc||(Bc=!0,Cf(function(){6&ml?ae(de,Hc):jc()}))}function Uc(e,n){if(!Lc&&Pc){Lc=!0;do{for(var t=!1,r=Rc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ae(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(t=!0,Wc(r,i))}else i=bl,!(3&(i=Me(r,r===yl?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Oe(r,i)||(t=!0,Wc(r,i));r=r.next}}while(t);Lc=!1}}function Hc(){jc()}function jc(){Pc=Bc=!1;var e,n=0;0!==Fc&&((e=window.event)&&"popstate"===e.type?e!==Ef&&(Ef=e,1):(Ef=null,0))&&(n=Fc);for(var t=ce(),r=null,o=Rc;null!==o;){var i=o.next,a=qc(o,t);0===a?(o.next=null,null===r?Rc=i:r.next=i,null===i&&(Nc=r)):(r=o,(0!==n||3&a)&&(Pc=!0)),o=i}0!==Hl&&5!==Hl||Uc(n),0!==Fc&&(Fc=0)}function qc(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ae(i),s=1<<a,u=o[a];-1===u?0!==(s&t)&&0===(s&r)||(o[a]=Re(s,n)):u<=n&&(e.expiredLanes|=s),i&=~s}if(t=bl,t=Me(e,e===(n=yl)?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===t||e===n&&(2===wl||9===wl)||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),He(t)){case 2:case 8:t=he;break;case 32:default:t=pe;break;case 268435456:t=ye}return r=Vc.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 Vc(e,n){if(0!==Hl&&5!==Hl)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Ac()&&e.callbackNode!==t)return null;var r=bl;return 0===(r=Me(e,e===yl?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zl(e,r,n),qc(e,ce()),null!=e.callbackNode&&e.callbackNode===t?Vc.bind(null,e):null)}function Wc(e,n){if(Ac())return null;Zl(e,n,!0)}function zc(){if(0===Fc){var e=Yo;0===e&&(e=Se,!(261888&(Se<<=1))&&(Se=256)),Fc=e}return Fc}function Gc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pn(""+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<xr.length;Jc++){var Kc=xr[Jc];Cr(Kc.toLowerCase(),"on"+(Kc[0].toUpperCase()+Kc.slice(1)))}Cr(br,"onAnimationEnd"),Cr(wr,"onAnimationIteration"),Cr(gr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(kr,"onTransitionRun"),Cr(Ar,"onTransitionStart"),Cr(Er,"onTransitionCancel"),Cr(Tr,"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],o=r.event;r=r.listeners;e:{var i=void 0;if(n)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=l;try{i(o)}catch(c){Ir(c)}o.currentTarget=null,i=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=l;try{i(o)}catch(c){Ir(c)}o.currentTarget=null,i=u}}}}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 o=Ed;break;case 8:o=Td;break;default:o=Sd}t=o.bind(null,n,t,e),o=void 0,!Gn||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(o=!0),r?void 0!==o?e.addEventListener(n,t,{capture:!0,passive:o}):e.addEventListener(n,t,!0):void 0!==o?e.addEventListener(n,t,{passive:o}):e.addEventListener(n,t,!1)}function rf(e,n,t,r,o){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 u=r.stateNode.containerInfo;if(u===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==u;){if(null===(s=_e(u)))return;if(5===(l=s.tag)||6===l||26===l||27===l){r=a=s;continue e}u=u.parentNode}}r=r.return}Vn(function(){var r=a,o=Dn(t),s=[];e:{var u=Sr.get(e);if(void 0!==u){var l=it,c=e;switch(e){case"keypress":if(0===Zn(t))break e;case"keydown":case"keyup":l=gt;break;case"focusin":c="focus",l=ft;break;case"focusout":c="blur",l=ft;break;case"beforeblur":case"afterblur":l=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":l=lt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ct;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=At;break;case br:case wr:case gr:l=dt;break;case Tr:l=Et;break;case"scroll":case"scrollend":l=st;break;case"wheel":l=Tt;break;case"copy":case"cut":case"paste":l=ht;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kt;break;case"toggle":case"beforetoggle":l=St}var f=!!(4&n),d=!f&&("scroll"===e||"scrollend"===e),h=f?null!==u?u+"Capture":null:u;f=[];for(var p,m=r;null!==m;){var y=m;if(p=y.stateNode,5!==(y=y.tag)&&26!==y&&27!==y||null===p||null===h||null!=(y=Wn(m,h))&&f.push(of(m,y,p)),d)break;m=m.return}0<f.length&&(u=new l(u,c,null,t,o),s.push({event:u,listeners:f}))}}if(!(7&n)){if(l="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||t===Fn||!(c=t.relatedTarget||t.fromElement)||!_e(c)&&!c[Ge])&&(l||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,l?(l=r,null!==(c=(c=t.relatedTarget||t.toElement)?_e(c):null)&&(d=i(c),f=c.tag,c!==d||5!==f&&27!==f&&6!==f)&&(c=null)):(l=null,c=r),l!==c)){if(f=lt,y="onMouseLeave",h="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(f=kt,y="onPointerLeave",h="onPointerEnter",m="pointer"),d=null==l?u:en(l),p=null==c?u:en(c),(u=new f(y,m+"leave",l,t,o)).target=d,u.relatedTarget=p,y=null,_e(o)===r&&((f=new f(h,m+"enter",c,t,o)).target=p,f.relatedTarget=d,y=f),d=y,l&&c)e:{for(f=sf,m=c,p=0,y=h=l;y;y=f(y))p++;y=0;for(var v=m;v;v=f(v))y++;for(;0<p-y;)h=f(h),p--;for(;0<y-p;)m=f(m),y--;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!==l&&uf(s,u,l,f,!1),null!==c&&null!==d&&uf(s,d,c,f,!0)}if("select"===(l=(u=r?en(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===l&&"file"===u.type)var b=Wt;else if(Dt(u))if(zt)b=$t;else{b=Zt;var w=Qt}else!(l=u.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type?r&&Rn(r.elementType)&&(b=Wt):b=_t;switch(b&&(b=b(e,r))?Ut(s,b,t,o):(w&&w(e,u,r),"focusout"===e&&r&&"number"===u.type&&null!=r.memoizedProps.value&&En(u,"number",u.value)),w=r?en(r):window,e){case"focusin":(Dt(w)||"true"===w.contentEditable)&&(ur=w,lr=r,cr=null);break;case"focusout":cr=lr=ur=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,dr(s,t,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":dr(s,t,o)}var g;if(Ct)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=o)?Jn.value:Jn.textContent,Lt=!0)),0<(w=af(r,k)).length&&(k=new pt(k,e,null,t,o),s.push({event:k,listeners:w}),(g||null!==(g=Pt(t)))&&(k.data=g))),(g=Mt?function(e,n){switch(e){case"compositionend":return Pt(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||!Ct&&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,o),s.push({event:w,listeners:k}),w.data=g),function(e,n,t,r,o){if("submit"===n&&t&&t.stateNode===o){var i=Gc((o[ze]||null).action),a=r.submitter;a&&null!==(n=(n=a[ze]||null)?Gc(n.formAction):a.getAttribute("formAction"))&&(i=n,a=null);var s=new it("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Fc){var e=a?Yc(o,a):new FormData(o);rs(t,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Yc(o,a):new FormData(o),rs(t,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,t,o)}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 o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Wn(e,t))&&r.unshift(of(e,o,i)),null!=(o=Wn(e,n))&&r.push(of(e,o,i))),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 uf(e,n,t,r,o){for(var i=n.oe,a=[];null!==t&&t!==r;){var s=t,u=s.alternate,l=s.stateNode;if(s=s.tag,null!==u&&u===r)break;5!==s&&26!==s&&27!==s||null===l||(u=l,o?null!=(l=Wn(t,i))&&a.unshift(of(t,l,u)):o||null!=(l=Wn(t,i))&&a.push(of(t,l,u))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}var lf=/\r\n?/g,cf=/\u0000|\uFFFD/g;function ff(e){return("string"==typeof e?e:""+e).replace(lf,"\n").replace(cf,"")}function df(e,n){return n=ff(n),ff(e)===n}function hf(e,n,t,o,i,a){switch(t){case"children":"string"==typeof o?"body"===n||"textarea"===n&&""===o||Cn(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==n&&Cn(e,""+o);break;case"className":dn(e,"class",o);break;case"tabIndex":dn(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dn(e,t,o);break;case"style":On(e,o,a);break;case"data":if("object"!==n){dn(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==n||"href"!==t)){e.removeAttribute(t);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(t);break}o=Pn(""+o),e.setAttribute(t,o);break;case"action":case"formAction":if("function"==typeof o){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",i.name,i,null),hf(e,n,"formEncType",i.formEncType,i,null),hf(e,n,"formMethod",i.formMethod,i,null),hf(e,n,"formTarget",i.formTarget,i,null)):(hf(e,n,"encType",i.encType,i,null),hf(e,n,"method",i.method,i,null),hf(e,n,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(t);break}o=Pn(""+o),e.setAttribute(t,o);break;case"onClick":null!=o&&(e.onclick=Ln);break;case"onScroll":null!=o&&_c("scroll",e);break;case"onScrollEnd":null!=o&&_c("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("me"in o))throw Error(r(61));if(null!=(t=o.me)){if(null!=i.children)throw Error(r(60));e.innerHTML=t}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}t=Pn(""+o),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!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(t,""+o):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":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===o?e.setAttribute(t,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(t,o):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(t,o):e.removeAttribute(t);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(t):e.setAttribute(t,o);break;case"popover":_c("beforetoggle",e),_c("toggle",e),fn(e,"popover",o);break;case"xlinkActuate":hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":hn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":hn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":hn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":hn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":fn(e,"is",o);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,o)}}function pf(e,n,t,o,i,a){switch(t){case"style":On(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("me"in o))throw Error(r(61));if(null!=(t=o.me)){if(null!=i.children)throw Error(r(60));e.innerHTML=t}}break;case"children":"string"==typeof o?Cn(e,o):("number"==typeof o||"bigint"==typeof o)&&Cn(e,""+o);break;case"onScroll":null!=o&&_c("scroll",e);break;case"onScrollEnd":null!=o&&_c("scrollend",e);break;case"onClick":null!=o&&(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]||(i=t.endsWith("Capture"),n=t.slice(2,i?t.length-7:void 0),"function"==typeof(a=null!=(a=e[ze]||null)?a[t]:null)&&e.removeEventListener(n,a,i),"function"!=typeof o)?t in e?e[t]=o:!0===o?e.setAttribute(t,""):fn(e,t,o):("function"!=typeof a&&null!==a&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,o,i)))}}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 o,i=!1,a=!1;for(o in t)if(t.hasOwnProperty(o)){var s=t[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:hf(e,n,o,s,t,null)}}return a&&hf(e,n,"srcSet",t.srcSet,t,null),void(i&&hf(e,n,"src",t.src,t,null));case"input":_c("invalid",e);var u=o=s=a=null,l=null,c=null;for(i in t)if(t.hasOwnProperty(i)){var f=t[i];if(null!=f)switch(i){case"name":a=f;break;case"type":s=f;break;case"checked":l=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":u=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,n));break;default:hf(e,n,i,f,t,null)}}return void An(e,o,u,l,c,s,a,!1);case"select":for(a in _c("invalid",e),i=s=o=null,t)if(t.hasOwnProperty(a)&&null!=(u=t[a]))switch(a){case"value":o=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:hf(e,n,a,u,t,null)}return n=o,t=s,e.multiple=!!i,void(null!=n?Tn(e,!!i,n,!1):null!=t&&Tn(e,!!i,t,!0));case"textarea":for(s in _c("invalid",e),o=a=i=null,t)if(t.hasOwnProperty(s)&&null!=(u=t[s]))switch(s){case"value":i=u;break;case"defaultValue":a=u;break;case"children":o=u;break;case"dangerouslySetInnerHTML":if(null!=u)throw Error(r(91));break;default:hf(e,n,s,u,t,null)}return void xn(e,i,a,o);case"option":for(l in t)t.hasOwnProperty(l)&&null!=(i=t[l])&&("selected"===l?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:hf(e,n,l,i,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(i=0;i<Xc.length;i++)_c(Xc[i],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!=(i=t[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:hf(e,n,c,i,t,null)}return;default:if(Rn(n)){for(f in t)t.hasOwnProperty(f)&&void 0!==(i=t[f])&&pf(e,n,f,i,t,void 0);return}}for(u in t)t.hasOwnProperty(u)&&null!=(i=t[u])&&hf(e,n,u,i,t,null)}function yf(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,bf=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.me}var Ef=null,Tf="function"==typeof setTimeout?setTimeout:void 0,Sf="function"==typeof clearTimeout?clearTimeout:void 0,xf="function"==typeof Promise?Promise:void 0,Cf="function"==typeof queueMicrotask?queueMicrotask:void 0!==xf?function(e){return xf.resolve(null).then(e).catch(If)}:Tf;function If(e){setTimeout(function(){throw e})}function Mf(e){return"head"===e}function Of(e,n){var t=n,r=0;do{var o=t.nextSibling;if(e.removeChild(t),o&&8===o.nodeType)if("/$"===(t=o.data)||"/&"===t){if(0===r)return e.removeChild(o),void Jd(n);r--}else if("$"===t||"$?"===t||"$~"===t||"$!"===t||"&"===t)r++;else if("html"===t)qf(e.ownerDocument.documentElement);else if("head"===t){qf(t=e.ownerDocument.head);for(var i=t.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||t.removeChild(i),i=a}}else"body"===t&&qf(e.ownerDocument.body);t=o}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.ve=t.nodeValue,t.nodeValue=""):t.nodeValue=t.ve||""),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=Ff(e.nextSibling)))return null}return e}function Pf(e){return"$?"===e.data||"$~"===e.data}function Lf(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ff(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 Df=null;function Uf(e){e=e.nextSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t||"/&"===t){if(0===n)return Ff(e.nextSibling);n--}else"$"!==t&&"$!"!==t&&"$?"!==t&&"$~"!==t&&"&"!==t||n++}e=e.nextSibling}return null}function Hf(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 jf(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 qf(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ze(e)}var Vf=/* @__PURE__ */new Map,Wf=/* @__PURE__ */new Set;function zf(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Gf=D.d;D.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?is(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 o='link[rel="preload"][as="'+gn(n)+'"]';"image"===n&&t&&t.imageSrcSet?(o+='[imagesrcset="'+gn(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(o+='[imagesizes="'+gn(t.imageSizes)+'"]')):o+='[href="'+gn(e)+'"]';var i=o;switch(n){case"style":i=Xf(e);break;case"script":i=_f(e)}Vf.has(i)||(e=c({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),Vf.set(i,e),null!==r.querySelector(o)||"style"===n&&r.querySelector(Qf(i))||"script"===n&&r.querySelector($f(i))||(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",o='link[rel="modulepreload"][as="'+gn(r)+'"][href="'+gn(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=_f(e)}if(!Vf.has(i)&&(e=c({rel:"modulepreload",href:e},n),Vf.set(i,e),null===t.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector($f(i)))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,o=_f(e),i=r.get(o);i||((i=t.querySelector($f(o)))||(e=c({src:e,async:!0},n),(n=Vf.get(o))&&rd(e,n),tn(i=t.createElement("script")),mf(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,n,t){Gf.S(e,n,t);var r=Yf;if(r&&e){var o=nn(r).hoistableStyles,i=Xf(e);n=n||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qf(i)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":n},t),(t=Vf.get(i))&&td(e,t);var u=a=r.createElement("link");tn(u),mf(u,"link",e),u.pe=new Promise(function(e,n){u.onload=e,u.onerror=n}),u.addEventListener("load",function(){s.loading|=1}),u.addEventListener("error",function(){s.loading|=2}),s.loading|=4,nd(a,n,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,n){Gf.M(e,n);var t=Yf;if(t&&e){var r=nn(t).hoistableScripts,o=_f(e),i=r.get(o);i||((i=t.querySelector($f(o)))||(e=c({src:e,async:!0,type:"module"},n),(n=Vf.get(o))&&rd(e,n),tn(i=t.createElement("script")),mf(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Yf="undefined"==typeof document?null:document;function Jf(e,n,t){var r=Yf;if(r&&"string"==typeof n&&n){var o=gn(n);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof t&&(o+='[crossorigin="'+t+'"]'),Wf.has(o)||(Wf.add(o),e={rel:e,crossOrigin:t,href:n},null===r.querySelector(o)&&(mf(n=r.createElement("link"),"link",e),tn(n),r.head.appendChild(n)))}}function Kf(e,n,t,o){var i,a,s,u,l=(l=K.current)?zf(l):null;if(!l)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),(o=(t=nn(l).hoistableStyles).get(n))||(o={type:"style",instance:null,count:0,state:null},t.set(n,o)),o):{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(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(Qf(e)))&&!c.pe&&(f.instance=c,f.state.loading=5),Vf.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},Vf.set(e,t),c||(i=l,a=e,s=t,u=f.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=i.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),mf(a,"link",s),tn(a),i.head.appendChild(a))))),n&&null===o)throw Error(r(528,""));return f}if(n&&null!==o)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),(o=(t=nn(l).hoistableScripts).get(n))||(o={type:"script",instance:null,count:0,state:null},t.set(n,o)),o):{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 o=e.querySelector('style[data-href~="'+gn(t.href)+'"]');if(o)return n.instance=o,tn(o),o;var i=c({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return tn(o=(e.ownerDocument||e).createElement("style")),mf(o,"style",i),nd(o,t.precedence,e),n.instance=o;case"stylesheet":i=Xf(t.href);var a=e.querySelector(Qf(i));if(a)return n.state.loading|=4,n.instance=a,tn(a),a;o=Zf(t),(i=Vf.get(i))&&td(o,i),tn(a=(e.ownerDocument||e).createElement("link"));var s=a;return s.pe=new Promise(function(e,n){s.onload=e,s.onerror=n}),mf(a,"link",o),n.state.loading|=4,nd(a,t.precedence,e),n.instance=a;case"script":return a=_f(t.src),(i=e.querySelector($f(a)))?(n.instance=i,tn(i),i):(o=t,(i=Vf.get(a))&&rd(o=c({},t),i),tn(i=(e=e.ownerDocument||e).createElement("script")),mf(i,"link",o),e.head.appendChild(i),n.instance=i);case"void":return null;default:throw Error(r(443,n.type))}else"stylesheet"===n.type&&!(4&n.state.loading)&&(o=n.instance,n.state.loading|=4,nd(o,t.precedence,e));return n.instance}function nd(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===n)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.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 od=null;function id(e,n,t){if(null===od){var r=/* @__PURE__ */new Map,o=od=/* @__PURE__ */new Map;o.set(t,r)}else(r=(o=od).get(t))||(r=/* @__PURE__ */new Map,o.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),o=0;o<t.length;o++){var i=t[o];if(!(i[Qe]||i[We]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(n)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}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 ud=0;function ld(){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,ld.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 o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),r=a)}r&&t.set(null,r)}a=(o=n.instance).getAttribute("data-precedence"),(i=t.get(a)||r)===r&&t.set(null,o),t.set(a,o),this.count++,r=ld.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),n.state.loading|=4}}var hd={$$typeof:w,Provider:null,Consumer:null,P:U,U:U,j:0};function pd(e,n,t,r,o,i,a,s,u){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=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=/* @__PURE__ */new Map}function md(e,n,t,r,o,i,a,s,u,l,c,f){return e=new pd(e,n,t,a,u,l,c,f,s),n=1,!0===i&&(n|=24),i=jr(3,null,null,n),e.current=i,i.stateNode=e,(n=Vo()).refCount++,e.pooledCache=n,n.refCount++,i.memoizedState={element:r,isDehydrated:t,cache:n},wi(i),e}function yd(e){return e?e=Ur:Ur}function vd(e,n,t,r,o,i){o=yd(o),null===r.context?r.context=o:r.pendingContext=o,(r=ki(n)).payload={element:t},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(t=Ai(e,r,n))&&(Ql(t,0,n),Ei(t,e,n))}function bd(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){bd(e,n),(e=e.alternate)&&bd(e,n)}function gd(e){if(13===e.tag||31===e.tag){var n=Lr(e,67108864);null!==n&&Ql(n,0,67108864),wd(e,67108864)}}function kd(e){if(13===e.tag||31===e.tag){var n=Kl(),t=Lr(e,n=Ue(n));null!==t&&Ql(t,0,n),wd(e,n)}}var Ad=!0;function Ed(e,n,t,r){var o=F.T;F.T=null;var i=D.p;try{D.p=2,Sd(e,n,t,r)}finally{D.p=i,F.T=o}}function Td(e,n,t,r){var o=F.T;F.T=null;var i=D.p;try{D.p=8,Sd(e,n,t,r)}finally{D.p=i,F.T=o}}function Sd(e,n,t,r){if(Ad){var o=xd(r);if(null===o)rf(e,n,r,Cd,t),Ud(e,r);else if(function(e,n,t,r,o){switch(n){case"focusin":return Rd=Hd(Rd,e,n,t,r,o),!0;case"dragenter":return Nd=Hd(Nd,e,n,t,r,o),!0;case"mouseover":return Bd=Hd(Bd,e,n,t,r,o),!0;case"pointerover":var i=o.pointerId;return Pd.set(i,Hd(Pd.get(i)||null,e,n,t,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ld.set(i,Hd(Ld.get(i)||null,e,n,t,r,o)),!0}return!1}(o,e,n,t,r))r.stopPropagation();else if(Ud(e,r),4&n&&-1<Dd.indexOf(e)){for(;null!==o;){var i=$e(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ie(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var u=1<<31-Ae(a);s.entanglements[1]|=u,a&=~u}Dc(i),!(6&ml)&&(Fl=ce()+500,Uc(0))}}break;case 31:case 13:null!==(s=Lr(i,2))&&Ql(s,0,2),nc(),wd(i,2)}if(null===(i=xd(r))&&rf(e,n,r,Cd,t),i===o)break;o=i}null!==o&&r.stopPropagation()}else rf(e,n,r,null,t)}}function xd(e){return Id(e=Dn(e))}var Cd=null;function Id(e){if(Cd=null,null!==(e=_e(e))){var n=i(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 Cd=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 ye:return 268435456;default:return 32}default:return 32}}var Od=!1,Rd=null,Nd=null,Bd=null,Pd=/* @__PURE__ */new Map,Ld=/* @__PURE__ */new Map,Fd=[],Dd="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 Ud(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":Pd.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ld.delete(n.pointerId)}}function Hd(e,n,t,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==n&&null!==(n=$e(n))&&gd(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==o&&-1===n.indexOf(o)&&n.push(o),e)}function jd(e){var n=_e(e.target);if(null!==n){var t=i(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=a(t)))return e.blockedOn=n,void qe(e.priority,function(){kd(t)})}else if(31===n){if(null!==(n=s(t)))return e.blockedOn=n,void qe(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 qd(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=xd(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);Fn=r,t.target.dispatchEvent(r),Fn=null,n.shift()}return!0}function Vd(e,n,t){qd(e)&&t.delete(n)}function Wd(){Od=!1,null!==Rd&&qd(Rd)&&(Rd=null),null!==Nd&&qd(Nd)&&(Nd=null),null!==Bd&&qd(Bd)&&(Bd=null),Pd.forEach(Vd),Ld.forEach(Vd)}function zd(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],o=n[e+2];if("function"!=typeof r){if(null===Id(r||t))continue;break}var i=$e(t);null!==i&&(n.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:t.method,action:r},r,o))}}))}function Jd(e){function n(n){return zd(n,e)}null!==Rd&&zd(Rd,e),null!==Nd&&zd(Nd,e),null!==Bd&&zd(Bd,e),Pd.forEach(n),Ld.forEach(n);for(var t=0;t<Fd.length;t++){var r=Fd[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Fd.length&&null===(t=Fd[0]).blockedOn;)jd(t),null===t.blockedOn&&Fd.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var o=t[r],i=t[r+1],a=o[ze]||null;if("function"==typeof i)a||Yd(t);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[ze]||null)s=a.formAction;else if(null!==Id(o))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 o=e})},focusReset:"manual",scroll:"manual"})}function n(){null!==o&&(o(),o=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,o=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!==o&&(o(),o=null)}}}function Xd(e){this.be=e}function Qd(e){this.be=e}Qd.prototype.render=Xd.prototype.render=function(e){var n=this.be;if(null===n)throw Error(r(409));vd(n.current,Kl(),e,n,null,null)},Qd.prototype.unmount=Xd.prototype.unmount=function(){var e=this.be;if(null!==e){this.be=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=je();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Fd.length&&0!==n&&n<Fd[t].priority;t++);Fd.splice(t,0,e),0===t&&jd(e)}};var Zd=n.version;if("19.2.4"!==Zd)throw Error(r(527,Zd,"19.2.4"));D.findDOMNode=function(e){var n=e.se;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=i(e)))throw Error(r(188));return n!==e?null:e}for(var t=e,o=n;;){var a=t.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){t=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===t)return u(a),e;if(s===o)return u(a),n;s=s.sibling}throw Error(r(188))}if(t.return!==o.return)t=a,o=s;else{for(var l=!1,c=a.child;c;){if(c===t){l=!0,t=a,o=s;break}if(c===o){l=!0,o=a,t=s;break}c=c.sibling}if(!l){for(c=s.child;c;){if(c===t){l=!0,t=s,o=a;break}if(c===o){l=!0,o=s,t=a;break}c=c.sibling}if(!l)throw Error(r(189))}}if(t.alternate!==o)throw Error(r(190))}if(3!==t.tag)throw Error(r(188));return t.stateNode.current===t?e:n}(n),null===(e=null!==e?l(e):null)?null:e.stateNode};var _d={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,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 E.createRoot=function(e,n){if(!o(e))throw Error(r(299));var t=!1,i="",a=xs,s=Cs,u=Is;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),n=md(e,1,!1,null,0,t,i,null,a,s,u,Kd),e[Ge]=n.current,nf(e),new Xd(n)},E.hydrateRoot=function(e,n,t){if(!o(e))throw Error(r(299));var i=!1,a="",s=xs,u=Cs,l=Is,c=null;return null!=t&&(!0===t.unstable_strictMode&&(i=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(s=t.onUncaughtError),void 0!==t.onCaughtError&&(u=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.formState&&(c=t.formState)),(n=md(e,1,!0,n,0,i,a,c,s,u,l,Kd)).context=yd(null),t=n.current,(a=ki(i=Ue(i=Kl()))).callback=null,Ai(t,a,i),t=i,n.current.lanes=t,Pe(n,t),Dc(n),e[Ge]=n.current,nf(e),new Qd(n)},E.version="19.2.4",E}()):A.exports=(F||(F=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,o){if(r>=t.length)return o;var i=t[r],a=Nf(e)?e.slice():pf({},e);return a[i]=n(e[i],t,r+1,o),a}function t(e,n,t){if(n.length===t.length){for(var o=0;o<t.length-1;o++)if(n[o]!==t[o])return;return r(e,n,t,0)}}function r(e,n,t,o){var i=n[o],a=Nf(e)?e.slice():pf({},e);return o+1===n.length?(a[t[o]]=a[i],Nf(a)?a.splice(i,1):delete a[i]):a[i]=r(e[i],n,t,o+1),a}function o(e,n,t){var r=n[t],i=Nf(e)?e.slice():pf({},e);return t+1===n.length?(Nf(i)?i.splice(r,1):delete i[r],i):(i[r]=o(e[r],n,t+1),i)}function i(){return!1}function a(){return null}function s(){}function u(){}function l(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 y(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=y(e)))return n;e=e.sibling}return null}function b(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 bf:return"Fragment";case gf:return"Profiler";case wf:return"StrictMode";case Tf: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.q.displayName||"Context")+".Consumer";case Ef:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case xf:return null!==(n=e.displayName||null)?n:w(e.type)||"Memo";case Cf:n=e.u,e=e.i;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.q.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.Y))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>Uf||(Df[Uf],e.current=Ff[Uf],Ff[Uf]=null,Df[Uf]=null,Uf--)}function E(e,n,t){Uf++,Ff[Uf]=e.current,Df[Uf]=t,e.current=n}function T(e,n){E(qf,n,e),E(jf,e,e),E(Hf,null,e);var t=n.nodeType;switch(t){case 9:case 11:t=9===t?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?Cl(n):Tk;break;default:if(t=n.tagName,n=n.namespaceURI)n=Il(n=Cl(n),t);else switch(t){case"svg":n=Sk;break;case"math":n=xk;break;default:n=Tk}}t={context:n,ancestorInfo:t=tn(null,t=t.toLowerCase())},A(Hf),E(Hf,t,e)}function S(e){A(Hf),A(jf),A(qf)}function x(){return Hf.current}function I(e){null!==e.memoizedState&&E(Vf,e,e);var n=Hf.current,t=e.type,r=Il(n.context,t);n!==(r={context:r,ancestorInfo:t=tn(n.ancestorInfo,t)})&&(E(jf,e,e),E(Hf,r,e))}function M(e){jf.current===e&&(A(Hf),A(jf)),Vf.current===e&&(A(Vf),fA.P=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===zf)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);zf=n&&n[1]||"",Gf=-1<t.stack.indexOf("\n at")?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+zf+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,uf=console.group,lf=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 o={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(o){var r=o}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}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]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=o.DetermineComponentFrameRoot(),s=a[0],u=a[1];if(s&&u){var l=s.split("\n"),c=u.split("\n");for(a=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(i===l.length||a===c.length)for(i=l.length-1,a=c.length-1;1<=i&&0<=a&&l[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==c[a]){if(1!==i||1!==a)do{if(i--,0>--a||l[i]!==c[a]){var f="\n"+l[i].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<=i&&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:uf}),groupCollapsed:pf({},e,{value:lf}),groupEnd:pf({},e,{value:cf})})}}(),Error.prepareStackTrace=r}return l=(l=e?e.displayName||e.name:"")?N(l):"","function"==typeof e&&Jf.set(e,l),l}function P(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 F(e){try{var n="",t=null;do{n+=P(e,t);var r=e.Y;if(r)for(var o=r.length-1;0<=o;o--){var i=r[o];if("string"==typeof i.name){var a=n;e:{var s=i.name,u=i.env,l=i.debugLocation;if(null!=l){var c=R(l),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+(u?" ["+u+"]":""))}n=a+h}}t=e,e=e.return}while(e);return n}catch(p){return"\nError generating stack: "+p.message+"\n"+p.stack}}function D(e){return(e=e?e.displayName||e.name:"")?N(e):""}function H(){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.we||""!==n||(n+=D(e.type));break;case 11:e.we||""!==n||(n+=D(e.type.render))}for(;e;)if("number"==typeof e.tag){var t=e;e=t.we;var r=t.J;if(e&&r){var o=R(r);""!==o&&(n+="\n"+o)}}else{if(null==e.debugStack)break;var i=e.debugStack;(e=e.owner)&&i&&(n+="\n"+R(i))}var a=n}catch(s){a="\nError generating stack: "+s.message+"\n"+s.stack}return a}function j(e,n,t,r,o,i,a){var s=Kf;q(e);try{return null!==e&&e.K?e.K.run(n.bind(null,t,r,o,i,a)):n(t,r,o,i,a)}finally{q(s)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function q(e){Bf.getCurrentStack=null===e?null:H,Xf=!1,Kf=e}function V(e){try{return W(e),!1}catch(n){return!0}}function W(e){return""+e}function z(e,n){if(V(e))return W(e)}function G(e,n){if(V(e))return W(e)}function Y(e){if(V(e))return W(e)}function J(e){if("function"==typeof ud&&ld(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 o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=K(r):0!==(a&=s)?o=K(a):t||0!==(t=s&~e)&&(o=K(t)):0!==(s=r&~i)?o=K(s):0!==a?o=K(a):t||0!==(t=r&~e)&&(o=K(t)),0===o?0:0!==n&&n!==o&&0===(n&i)&&((i=o&-o)>=(t=n&-n)||32===i&&4194048&t)?n:o}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),o=1<<r;o&n|e[r]&n&&(e[r]|=n),t&=~o}}function re(e,n){var t=n&-n;return 0!==((t=42&t?1:oe(t))&(e.suspendedLanes|n))?0:t}function oe(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 ie(e,n,t){if(hd)for(e=e.pendingUpdatersLaneMap;0<t;){var r=31-pd(t),o=1<<r;e[r].add(n),t&=~o}}function ae(e,n){if(hd)for(var t=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<n;){var o=31-pd(n);e=1<<o,0<(o=t[o]).size&&(o.forEach(function(e){var n=e.alternate;null!==n&&r.has(n)||r.add(e)}),o.clear()),n&=~e}}function se(e){return gd<(e&=-e)?kd<e?134217727&e?Ad:Ed:kd:gd}function ue(){var e=Pf.p;return 0!==e?e:void 0===(e=window.event)?Ad:Wc(e.type)}function le(e,n){var t=Pf.p;try{return Pf.p=e,n()}finally{Pf.p=t}}function ce(e){delete e[Sd],delete e[xd],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[Cd]||t[Sd]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=oc(e);null!==e;){if(t=e[Sd])return t;e=oc(e)}return n}t=(e=t).parentNode}return null}function de(e){if(e=e[Sd]||e[Cd]){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 ye(e,n){ve(e,n),ve(e+"Capture",n)}function ve(e,n){Pd[e],Pd[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 be(e,n){Fd[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(Hd,e)||!Qf.call(Ud,e)&&(Dd.test(e)?Hd[e]=!0:(Ud[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||(z(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)}z(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)}z(t),e.setAttribute(n,""+t)}}function Ee(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)}z(r),e.setAttributeNS(n,t,""+r)}}function Te(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 xe(e){if(!e.re){var n=Se(e)?"checked":"value";e.re=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 o=r.get,i=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(e){Y(e),t=""+e,i.call(this,e)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return t},setValue:function(e){Y(e),t=""+e},stopTracking:function(){e.re=null,delete e[n]}}}}(e,n,""+e[n])}}function Ce(e){if(!e)return!1;var n=e.re;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(jd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Oe(e,n){void 0===n.checked||void 0===n.defaultChecked||Vd||(Vd=!0),void 0===n.value||void 0===n.defaultValue||qd||(qd=!0)}function Re(e,n,t,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?(z(a),e.type=a):e.removeAttribute("type"),null!=n?"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+Te(n)):e.value!==""+Te(n)&&(e.value=""+Te(n)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=n?Be(e,a,Te(n)):null!=t?Be(e,a,Te(t)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?(z(s),e.name=""+Te(s)):e.removeAttribute("name")}function Ne(e,n,t,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(z(i),e.type=i),null!=n||null!=t){if(("submit"===i||"reset"===i)&&null==n)return void xe(e);t=null!=t?""+Te(t):"",n=null!=n?""+Te(n):t,s||n===e.value||(e.value=n),e.defaultValue=n}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(z(a),e.name=a),xe(e)}function Be(e,n,t){"number"===n&&Ie(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Pe(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||zd||(zd=!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 o=0;o<t.length;o++)n["$"+t[o]]=!0;for(t=0;t<e.length;t++)o=n.hasOwnProperty("$"+e[t].value),e[t].selected!==o&&(e[t].selected=o),o&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Te(t),n=null,o=0;o<e.length;o++){if(e[o].value===t)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==n||e[o].disabled||(n=e[o])}null!==n&&(n.selected=!0)}}function Fe(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 De(e,n){void 0===n.value||void 0===n.defaultValue||Kd||(Kd=!0),null!=n.children&&n.value}function Ue(e,n,t){null==n||((n=""+Te(n))!==e.value&&(e.value=n),null!=t)?e.defaultValue=null!=t?""+Te(t):"":e.defaultValue!==n&&(e.defaultValue=n)}function He(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=Te(n),e.defaultValue=t,(r=e.textContent)===t&&""!==r&&null!==r&&(e.value=r),xe(e)}function je(e,n){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?je(e.children[0],n):e}function qe(e){return" "+" ".repeat(e)}function Ve(e){return"+ "+" ".repeat(e)}function We(e){return"- "+" ".repeat(e)}function ze(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 Ve(t)+Ge(e,r)+"\n";if("string"==typeof n){for(var o=0;o<n.length&&o<e.length&&n.charCodeAt(o)===e.charCodeAt(o);o++);return o>r-8&&10<o&&(e="..."+e.slice(o-8),n="..."+n.slice(o-8)),Ve(t)+Ge(e,r)+"\n"+We(t)+Ge(n,r)+"\n"}return qe(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===yf)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 o=JSON.stringify(r);if(o!=='"'+r+'"'&&(r=o),n-=r.length-2,0>(n-=(o=Ke(e[r],15>n?n:15)).length)){t+=""===t?"...":", ...";break}t+=(""===t?"":",")+r+":"+o}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,o=120-t.length-e.length,i=[];for(r in n)if(n.hasOwnProperty(r)&&"children"!==r){var a=Xe(n[r],120-t.length-r.length-1);o-=r.length+a.length+2,i.push(r+"="+a)}return 0===i.length?t+"<"+e+">\n":0<o?t+"<"+e+" "+i.join(" ")+">\n":t+"<"+e+"\n"+t+" "+i.join("\n"+t+" ")+"\n"+t+">\n"}function Ze(e,n,t){var r,o="",i=pf({},n);for(r in e)if(e.hasOwnProperty(r)){delete i[r];var a=120-2*t-r.length-2,s=Ke(e[r],a);n.hasOwnProperty(r)?(a=Ke(n[r],a),o+=Ve(t)+r+": "+s+"\n",o+=We(t)+r+": "+a+"\n"):o+=Ve(t)+r+": "+s+"\n"}for(var u in i)i.hasOwnProperty(u)&&(e=Ke(i[u],120-2*t-u.length-2),o+=We(t)+u+": "+e+"\n");return o}function _e(e,n){var t=ze(e);if(null===t){for(t="",e=e.child;e;)t+=_e(e,n),e=e.sibling;return t}return qe(n)+"<"+t+">\n"}function $e(e,n){var t=je(e,n);if(t!==e&&(1!==e.children.length||e.children[0]!==t))return qe(n)+"...\n"+$e(t,n+1);t="";var r=e.fiber.Y;if(r)for(var o=0;o<r.length;o++){var i=r[o].name;"string"==typeof i&&(t+=qe(n)+"<"+i+">\n",n++)}if(r="",o=e.fiber.pendingProps,6===e.fiber.tag)r=Ye(o,e.serverProps,n),n++;else if(null!==(i=ze(e.fiber)))if(void 0===e.serverProps){var a=120-2*(r=n)-i.length-2,s="";for(l in o)if(o.hasOwnProperty(l)&&"children"!==l){var u=Xe(o[l],15);if(0>(a-=l.length+u.length+2)){s+=" ...";break}s+=" "+l+"="+u}r=qe(r)+"<"+i+s+">\n",n++}else null===e.serverProps?(r=Qe(i,o,Ve(n)),n++):"string"==typeof e.serverProps||(r=function(e,n,t,r){var o="",i=/* @__PURE__ */new Map;for(l in t)t.hasOwnProperty(l)&&i.set(l.toLowerCase(),l);if(1===i.size&&i.has("children"))o+=Qe(e,n,qe(r));else{for(var a in n)if(n.hasOwnProperty(a)&&"children"!==a){var s=120-2*(r+1)-a.length-1,u=i.get(a.toLowerCase());if(void 0!==u){i.delete(a.toLowerCase());var l=n[a];u=t[u];var c=Xe(l,s);s=Xe(u,s),"object"==typeof l&&null!==l&&"object"==typeof u&&null!==u&&"Object"===Je(l)&&"Object"===Je(u)&&(2<Object.keys(l).length||2<Object.keys(u).length||-1<c.indexOf("...")||-1<s.indexOf("..."))?o+=qe(r+1)+a+"={{\n"+Ze(l,u,r+2)+qe(r+1)+"}}\n":(o+=Ve(r+1)+a+"="+c+"\n",o+=We(r+1)+a+"="+s+"\n")}else o+=qe(r+1)+a+"="+Xe(n[a],s)+"\n"}i.forEach(function(e){if("children"!==e){var n=120-2*(r+1)-e.length-1;o+=We(r+1)+e+"="+Xe(t[e],n)+"\n"}}),o=""===o?qe(r)+"<"+e+">\n":qe(r)+"<"+e+"\n"+o+qe(r)+">\n"}return e=t.children,n=n.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(i="","string"!=typeof n&&"number"!=typeof n&&"bigint"!=typeof n||(i=""+n),o+=Ye(i,""+e,r+1)):"string"!=typeof n&&"number"!=typeof n&&"bigint"!=typeof n||(o=null==e?o+Ye(""+n,null,r+1):o+Ye(""+n,void 0,r+1)),o}(i,o,e.serverProps,n),n++);var l="";for(o=e.fiber.child,i=0;o&&i<e.children.length;)(a=e.children[i]).fiber===o?(l+=$e(a,n),i++):l+=_e(o,n),o=o.sibling;for(o&&0<e.children.length&&(l+=qe(n)+"...\n"),o=e.serverTail,null===e.serverProps&&n--,e=0;e<o.length;e++)l="string"==typeof(i=o[e])?l+(We(n)+Ge(i,120-2*n)+"\n"):l+Qe(i.type,i.props,We(n));return t+r+l}function en(e){try{return"\n\n"+$e(e,0)}catch(n){return""}}function nn(e,n,t){for(var r=n,o=null,i=0;r;)r===e&&(i=0),o={fiber:r,children:null!==o?[o]:[],serverProps:r===n?t:r===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,r=r.return;return null!==o?en(o).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 o=(n=Kf)?on(n.return,r):null;return null!==n&&null!==o&&nn(o,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===o||null===e||o===e&&e.we===n.we||j(o,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 un(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 ln(e,n,t){var r=0===n.indexOf("--");r||(-1<n.indexOf("-")||ih.test(n)?sh.hasOwnProperty(n)&&sh[n]||(sh[n]=!0):!ah.test(t)||uh.hasOwnProperty(t)&&uh[t]||(uh[t]=!0),"number"==typeof t&&(isNaN(t)?lh||(lh=!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 o in t)if(t.hasOwnProperty(o)&&!n.hasOwnProperty(o))for(var i=th[o]||[o],a=0;a<i.length;a++)r[i[a]]=o;for(var s in n)if(n.hasOwnProperty(s)&&(!t||t[s]!==n[s]))for(o=th[s]||[s],i=0;i<o.length;i++)r[o[i]]=s;for(var u in s={},n)for(o=th[u]||[u],i=0;i<o.length;i++)s[o[i]]=u;for(var l in u={},r)if(o=r[l],(i=s[l])&&o!==i&&!u[a=o+","+i]){u[a]=!0,a=console;var c=n[o];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",o,i)}}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)l=n[d],n.hasOwnProperty(d)&&t[d]!==l&&ln(e,d,l)}else for(r in n)n.hasOwnProperty(r)&&ln(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=yh.hasOwnProperty(e)?e:null))return vh[n]=!0;if(n!==e)return vh[n]=!0}if(bh.test(n)){if(e=n.toLowerCase(),null==(e=yh.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 o=n.toLowerCase();if("onfocusin"===o||"onfocusout"===o)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(o)?e[o]:null))return kh[n]=!0;if(Ah.test(n))return kh[n]=!0}else if(Ah.test(n))return Eh.test(n),kh[n]=!0;if(Th.test(n)||Sh.test(n))return!0;if("innerhtml"===o)return kh[n]=!0;if("aria"===o)return kh[n]=!0;if("is"===o&&null!=t&&"string"!=typeof t)return kh[n]=!0;if("number"==typeof t&&isNaN(t))return kh[n]=!0;if(mh.hasOwnProperty(o)){if((o=mh[o])!==n)return kh[n]=!0}else if(n!==o)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-"===(o=n.toLowerCase().slice(0,5))||"aria-"===o||(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 xh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}function vn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function bn(e){var n=de(e);if(n&&(e=n.stateNode)){var t=e[xd]||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(z(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 o=r[xd]||null;if(!o)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Re(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<t.length;n++)(r=t[n]).form===e.form&&Ce(r)}break e;case"textarea":Ue(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,bn(n),e)))for(n=0;n<e.length;n++)bn(e[n])}}function gn(e,n){var t=e.stateNode;if(null===t)return null;var r=t[xd]||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(Hh)return Hh;var e,n,t=Uh,r=t.length,o="value"in Dh?Dh.value:Dh.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return Hh=o.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 En(){return!0}function Tn(){return!1}function Sn(e){function n(n,t,r,o,i){for(var a in this.oe=n,this.ie=r,this.type=t,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?En:Tn,this.isPropagationStopped=Tn,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=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),n}function xn(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=ep[e])&&!!n[e]}function Cn(){return xn}function In(e,n){switch(e){case"keyup":return-1!==sp.indexOf(n.keyCode);case"keydown":return n.keyCode!==up;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=ol(n,"onChange")).length&&(t=new qh("onChange","change",null,t,r),e.push({event:t,listeners:n}))}function Nn(e){Zu(e,0)}function Bn(e){if(Ce(he(e)))return e}function Pn(e,n){if("change"===e)return n}function Ln(){bp&&(bp.detachEvent("onpropertychange",Fn),wp=bp=null)}function Fn(e){if("value"===e.propertyName&&Bn(wp)){var n=[];Rn(n,wp,e,vn(e)),wn(Nn,n)}}function Dn(e,n,t){"focusin"===e?(Ln(),wp=t,(bp=n).attachEvent("onpropertychange",Fn)):"focusout"===e&&Ln()}function Un(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(wp)}function Hn(e,n){if("click"===e)return Bn(n)}function jn(e,n){if("input"===e||"change"===e)return Bn(n)}function qn(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 o=t[r];if(!Qf.call(n,o)||!kp(e[o],n[o]))return!1}return!0}function Vn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,n){var t,r=Vn(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=Vn(r)}}function zn(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?zn(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;xp||null==Ep||Ep!==Ie(r)||(r="selectionStart"in(r=Ep)&&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&&qn(Sp,r)||(Sp=r,0<(r=ol(Tp,"onSelect")).length&&(n=new qh("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=Ep)))}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(!Cp[e])return e;var n,t=Cp[e];for(n in t)if(t.hasOwnProperty(n)&&n in Mp)return Ip[e]=t[n];return e}function Qn(e,n){Dp.set(e,n),ye(n,[e])}function Zn(e,n,t,r){for(var o in e)Qf.call(e,o)&&"_"!==o[0]&&_n(o,e[o],n,t,r)}function _n(e,n,t,r,o){switch(typeof n){case"object":if(null===n){n="null";break}if(n.$$typeof===yf){var i=w(n.type)||"…",a=n.key;n=n.props;var s=Object.keys(n),u=s.length;if(null==a&&0===u){n="<"+i+" />";break}if(3>r||1===u&&"children"===s[0]&&null==a){n="<"+i+" … />";break}for(var l in t.push([o+" ".repeat(r)+e,"<"+i]),null!==a&&_n("key",a,t,r+1,o),e=!1,n)"children"===l?null!=n.children&&(!Nf(n.children)||0<n.children.length)&&(e=!0):Qf.call(n,l)&&"_"!==l[0]&&_n(l,n[l],t,r+1,o);return void t.push(["",e?">…</"+i+">":"/>"])}if("Array"===(i=(i=Object.prototype.toString.call(n)).slice(8,i.length-1))){if(l=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),l===Jp||l===Gp){n=JSON.stringify(n);break}if(l===Kp){for(t.push([o+" ".repeat(r)+e,""]),e=0;e<n.length;e++)_n((i=n[e])[0],i[1],t,r+1,o);return}}if("Promise"===i){if("fulfilled"===n.status){if(i=t.length,_n(e,n.value,t,r,o),t.length>i)return void((t=t[i])[1]="Promise<"+(t[1]||"Object")+">")}else if("rejected"===n.status&&(i=t.length,_n(e,n.reason,t,r,o),t.length>i))return void((t=t[i])[1]="Rejected Promise<"+t[1]+">");return void t.push([" ".repeat(r)+e,"Promise"])}return"Object"===i&&(l=Object.getPrototypeOf(n))&&"function"==typeof l.constructor&&(i=l.constructor.name),t.push([o+" ".repeat(r)+e,"Object"===i?3>r?"":"…":i]),void(3>r&&Zn(n,t,r+1,o));case"function":n=""===n.name?"() => {}":n.name+"() {}";break;case"string":n=n===zp?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}t.push([o+" ".repeat(r)+e,n])}function $n(e,n,t,r){var o=!0;for(a in e)a in n||(t.push([Xp+" ".repeat(r)+a,"…"]),o=!1);for(var i in n)if(i in e){var a=e[i],s=n[i];if(a!==s){if(0===r&&"children"===i)o=" ".repeat(r)+i,t.push([Xp+o,"…"],[Qp+o,"…"]);else{if(!(3<=r))if("object"==typeof a&&"object"==typeof s&&null!==a&&null!==s&&a.$$typeof===s.$$typeof)if(s.$$typeof===yf){if(a.type===s.type&&a.key===s.key){a=w(s.type)||"…",o=" ".repeat(r)+i,a="<"+a+" … />",t.push([Xp+o,a],[Qp+o,a]),o=!1;continue}}else{var u=Object.prototype.toString.call(a),l=Object.prototype.toString.call(s);if(u===l&&("[object Object]"===l||"[object Array]"===l)){u=[Zp+" ".repeat(r)+i,"[object Array]"===l?"Array":""],t.push(u),l=t.length,$n(a,s,t,r+1)?l===t.length&&(u[1]="Referentially unequal but deeply equal objects. Consider memoization."):o=!1;continue}}else if("function"==typeof a&&"function"==typeof s&&a.name===s.name&&a.length===s.length&&(u=Function.prototype.toString.call(a))===(l=Function.prototype.toString.call(s))){a=""===s.name?"() => {}":s.name+"() {}",t.push([Zp+" ".repeat(r)+i,a+" Referentially unequal function closure. Consider memoization."]);continue}_n(i,a,t,r,Xp),_n(i,s,t,r,Qp)}o=!1}}else t.push([Qp+" ".repeat(r)+i,"…"]),o=!1;return o}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&&(om.start=n,om.end=t,rm.color="warning",rm.tooltipText=r,rm.properties=null,(e=e.K)?e.run(performance.measure.bind(performance,r,om)):performance.measure(r,om))}function tt(e,n,t){nt(e,n,t,"Reconnect")}function rt(e,n,t,r,o){var i=g(e);if(null!==i&&_p){var a=e.alternate,s=e.actualDuration;if(null===a||a.child!==e.child)for(var u=e.child;null!==u;u=u.sibling)s-=u.actualDuration;r=.5>s?r?"tertiary-light":"primary-light":10>s?r?"tertiary":"primary":100>s?r?"tertiary-dark":"primary-dark":"error";var l=e.memoizedProps;s=e.K,null!==l&&null!==a&&a.memoizedProps!==l?(u=[im],l=$n(a.memoizedProps,l,u,0),1<u.length&&(l&&!tm&&0===(a.lanes&o)&&100<e.actualDuration?(tm=!0,u[0]=sm,rm.color="warning",rm.tooltipText=am):(rm.color=r,rm.tooltipText=i),rm.properties=u,om.start=n,om.end=t,null!=s?s.run(performance.measure.bind(performance,""+i,om)):performance.measure(""+i,om))):null!=s&&s.run(function(){}.bind())}}function ot(e,n,t,r){if(_p){var o=g(e);if(null!==o){for(var i=null,a=[],s=0;s<r.length;s++){var u=r[s];null==i&&null!==u.source&&(i=u.source.K),u=u.value,a.push(["Error","object"==typeof u&&null!==u&&"string"==typeof u.message?String(u.message):String(u)])}null!==e.key&&_n("key",e.key,a,0,""),null!==e.memoizedProps&&Zn(e.memoizedProps,a,0,""),null==i&&(i=e.K),e={start:n,end:t,detail:{devtools:{color:"error",track:$p,tooltipText:13===e.tag?"Hydration failed":"Error boundary caught an error",properties:a}}},i?i.run(performance.measure.bind(performance,""+o,e)):performance.measure(""+o,e)}}}function it(e,n,t,r,o){if(null!==o){if(_p){var i=g(e);if(null!==i){r=[];for(var a=0;a<o.length;a++){var s=o[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.K)?e.run(performance.measure.bind(performance,""+i,n)):performance.measure(""+i,n)}}}else null!==(i=g(e))&&_p&&(o=1>r?"secondary-light":100>r?"secondary":500>r?"secondary-dark":"error",(e=e.K)&&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 ut(e,n,t,r){!_p||n<=e||r&&r.run(function(){}.bind())}function lt(e,n,t,r,o){if(_p&&!(n<=e)){for(var i=[],a=0;a<t.length;a++){var s=t[a].value;i.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:i}}},o?o.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 o=cm[n];cm[n++]=null;var i=cm[n];if(cm[n++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&pt(t,o,i)}}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 o=!1,i=e.return;null!==i;)i.childLanes|=t,null!==(r=i.alternate)&&(r.childLanes|=t),22===i.tag&&(null===(e=i.stateNode)||e.ae&um||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==n&&(o=31-pd(t),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[n]:r.push(n),n.lane=536870912|t),i):null}function mt(e){if(Mg>Ig)throw Pg=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.");Pg>Bg&&(Pg=0,Lg=null),null===e.alternate&&4098&e.flags&&Fu(e);for(var n=e,t=n.return;null!==t;)null===n.alternate&&!!(4098&n.flags)&&Fu(e),t=(n=t).return;return 3===n.tag?n.stateNode:null}function yt(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=yt(e.render),e.render!==n)?(n={$$typeof:Ef,render:n},void 0!==e.displayName&&(n.displayName=e.displayName),n):e:n.current}function bt(e,n){if(null===pm)return!1;var t=e.elementType,r=!1,o="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||o===Cf)&&(r=!0);break;case 11:(o===Ef||o===Cf)&&(r=!0);break;case 14:case 15:(o===xf||o===Cf)&&(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,o=r.alternate,i=r.child,a=r.sibling,s=r.tag;r=r.type;var u=null;switch(s){case 0:case 15:case 1:u=r;break;case 11:u=r.render}if(null===pm)throw Error("Expected resolveFamily to be set during hot reload.");var l=!1;if(r=!1,null!==u&&void 0!==(u=pm(u))&&(t.has(u)?r=!0:n.has(u)&&(1===s?r=!0:l=!0)),null!==mm&&(mm.has(e)||null!==o&&mm.has(o))&&(r=!0),r&&(e.ge=!0),(r||l)&&null!==(o=ht(e,2))&&Ks(o,e,2),null===i||r||gt(i,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.K=this.J=this.we=this.Y=null,this.ge=!1,this.ke=null,Am||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function At(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Et(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.we=e.we,t.J=e.J,t.K=e.K,t.ke=e.ke,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,Ae:n.Ae},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.Y=e.Y,t.ge=e.ge,t.tag){case 0:case 15:case 1:t.type=yt(e.type);break;case 11:t.type=vt(e.type)}return t}function Tt(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,Ae:n.Ae},e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration),e}function St(e,n,t,r,o,i){var a=0,s=e;if("function"==typeof e)At(e)&&(a=1),s=yt(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 o=n.onError,i=n.disabled;t=[],n.onLoad&&t.push("`onLoad`"),o&&t.push("`onError`"),null!=i&&t.push("`disabled`"),o=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),o+=1===t.length?" prop":" props",i=1===t.length?"an "+o:"the "+o,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=x())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case If:return(n=c(31,t,n,o)).elementType=If,n.lanes=i,n;case bf:return Ct(t.children,o,i,n);case wf:a=8,o|=wm,o|=gm;break;case gf:return r=o,(e=t).id,(n=c(12,e,n,r|bm)).elementType=gf,n.lanes=i,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Tf:return(n=c(13,t,n,o)).elementType=Tf,n.lanes=i,n;case Sf:return(n=c(19,t,n,o)).elementType=Sf,n.lanes=i,n;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Af:a=10;break e;case kf:a=9;break e;case Ef:a=11,s=vt(s);break e;case xf:a=14;break e;case Cf: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===yf?(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,o)).elementType=e,n.type=s,n.lanes=i,n.we=r,n}function xt(e,n,t){return(n=St(e.type,e.key,e.props,e.V,n,t)).we=e.V,n.J=e.J,n.K=e.K,n}function Ct(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,ym);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=Em.get(e);return void 0!==t?t:(n={value:e,source:n,stack:F(n)},Em.set(e,n),n)}return{value:e,source:n,stack:F(n)}}function Nt(e,n){Tm[Sm++]=Cm,Tm[Sm++]=xm,xm=e,Cm=n}function Bt(e,n,t){Im[Mm++]=Rm,Im[Mm++]=Nm,Im[Mm++]=Om,Om=e;var r=Rm;e=Nm;var o=32-pd(r)-1;r&=~(1<<o),t+=1;var i=32-pd(n)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Rm=1<<32-pd(n)+o|t<<o|r,Nm=i+e}else Rm=1<<i|t<<o|r,Nm=e}function Pt(e){null!==e.return&&(Nt(e,1),Bt(e,1,0))}function Lt(e){for(;e===xm;)xm=Tm[--Sm],Tm[Sm]=null,Cm=Tm[--Sm],Tm[Sm]=null;for(;e===Om;)Om=Im[--Mm],Im[Mm]=null,Nm=Im[--Mm],Im[Mm]=null,Rm=Im[--Mm],Im[Mm]=null}function Ft(){return null!==Om?{id:Rm,overflow:Nm}:null}function Dt(e,n){Im[Mm++]=Rm,Im[Mm++]=Nm,Im[Mm++]=Om,Rm=n.id,Nm=n.overflow,Om=e}function Ut(e,n){if(null===e.return){if(null===Dm)Dm={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Dm.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Dm.distanceFromLeaf>n&&(Dm.distanceFromLeaf=n)}return Dm}var t=Ut(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 Ht(e,n){Fm||((e=Ut(e,0)).serverProps=null,null!==n&&(n=nc(n),e.serverTail.push(n)))}function jt(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t="",r=Dm;throw null!==r&&(Dm=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)),jm}function qt(e){var n=e.stateNode,t=e.type,r=e.memoizedProps;switch(n[Sd]=e,n[xd]=r,sl(t,r),t){case"dialog":_u("cancel",n),_u("close",n);break;case"iframe":case"object":case"embed":_u("load",n);break;case"video":case"audio":for(t=0;t<Jg.length;t++)_u(Jg[t],n);break;case"source":_u("error",n);break;case"img":case"image":case"link":_u("error",n),_u("load",n);break;case"details":_u("toggle",n);break;case"input":be(0,r),_u("invalid",n),Oe(0,r),Ne(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"option":Pe(0,r);break;case"select":be(0,r),_u("invalid",n),Fe(n,r);break;case"textarea":be(0,r),_u("invalid",n),De(0,r),He(n,r.value,r.defaultValue,r.children)}"string"!=typeof(t=r.children)&&"number"!=typeof t&&"bigint"!=typeof t||n.textContent===""+t||!0===r.suppressHydrationWarning||dl(n.textContent,t)?(null!=r.popover&&(_u("beforetoggle",n),_u("toggle",n)),null!=r.onScroll&&_u("scroll",n),null!=r.onScrollEnd&&_u("scrollend",n),null!=r.onClick&&(n.onclick=yn),n=!0):n=!1,n||jt(e,!0)}function Vt(e){for(Bm=e.return;Bm;)switch(Bm.tag){case 5:case 31:case 13:return void(Hm=!1);case 27:case 3:return void(Hm=!0);default:Bm=Bm.return}}function Wt(e){if(e!==Bm)return!1;if(!Lm)return Vt(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)||Ml(e.type,e.memoizedProps)),n=!n),n&&Pm){for(n=Pm;n;){var r=Ut(e,0),o=nc(n);r.serverTail.push(o),n="Suspense"===o.type?rc(n):ec(n.nextSibling)}jt(e)}if(Vt(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.");Pm=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.");Pm=rc(e)}else 27===t?(t=Pm,Hl(e.type)?(e=Dk,Dk=null,Pm=e):Pm=t):Pm=Bm?ec(e.stateNode.nextSibling):null;return!0}function zt(){Pm=Bm=null,Fm=Lm=!1}function Gt(){var e=Um;return null!==e&&(null===Zw?Zw=e:Zw.push.apply(Zw,e),Um=null),e}function Yt(e){null===Um?Um=[e]:Um.push(e)}function Jt(){var e=Dm;if(null!==e){for(Dm=null,en(e);0<e.children.length;)e=e.children[0];j(e.fiber,function(){})}}function Kt(){Gm=zm=null}function Xt(e,n,t){E(qm,n.P,e),n.P=t,E(Vm,n._,e),void 0!==n._&&null!==n._&&n._,n._=Wm}function Qt(e,n){e.P=qm.current;var t=Vm.current;A(Vm),e._=t,A(qm)}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 o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var a=o.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=o;for(var u=0;u<n.length;u++)if(s.context===n[u]){i.lanes|=t,null!==(s=i.alternate)&&(s.lanes|=t),Zt(i.return,t,e),r||(a=null);break e}i=s.next}}else if(18===o.tag){if(null===(a=o.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!==(i=a.alternate)&&(i.lanes|=t),Zt(a,t,e),a=null}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}function $t(e,n,t,r){e=null;for(var o=n,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var a=o.alternate;if(null===a)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(a=a.memoizedProps)){var s=o.type;kp(o.pendingProps.value,a.value)||(null!==e?e.push(s):e=[s])}}else if(o===Vf.current){if(null===(a=o.alternate))throw Error("Should have a current fiber. This is a bug in React.");a.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(fA):e=[fA])}o=o.return}null!==e&&_t(n,e,t,r),n.flags|=262144}function er(e){for(e=e.firstContext;null!==e;){if(!kp(e.context.P,e.memoizedValue))return!0;e=e.next}return!1}function nr(e){zm=e,Gm=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function tr(e){return or(zm,e)}function rr(e,n){return null===zm&&nr(e),or(e,n)}function or(e,n){var t=n.P;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,Ae:null},e.flags|=524288}else Gm=Gm.next=n;return t}function ir(){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 ur(e,n,t){127&e?0>dy&&(dy=Qm(),hy=Zm(n),my=n,null!=t&&(yy=g(t)),(Tw&(mw|yw))!==pw&&(cy=!0,py=_m),e=Rl(),n=Ol(),e!==wy||n!==by?wy=-1.1:null!==n&&(py=_m),vy=e,by=n):4194048&e&&0>Ey&&(Ey=Qm(),Sy=Zm(n),xy=n,null!=t&&(Cy=g(t)),0>Ay)&&(e=Rl(),n=Ol(),e===Oy&&n===My||(Oy=-1.1),Iy=e,My=n)}function lr(){var e=iy;return iy=0,e}function cr(e){var n=iy;return iy=e,n}function fr(e){var n=iy;return iy+=e,n}function dr(){uy=sy=-1.1}function hr(){var e=sy;return sy=-1.1,e}function pr(e){0<=e&&(sy=e)}function mr(){var e=ay;return ay=-0,e}function yr(e){0<=e&&(ay=e)}function vr(){var e=ly;return ly=null,e}function br(){var e=cy;return cy=!1,e}function wr(e){oy=Qm(),0>e.actualStartTime&&(e.actualStartTime=oy)}function gr(e){if(0<=oy){var n=Qm()-oy;e.actualDuration+=n,e.selfBaseDuration=n,oy=-1}}function kr(e){if(0<=oy){var n=Qm()-oy;e.actualDuration+=n,oy=-1}}function Ar(){if(0<=oy){var e=Qm(),n=e-oy;oy=-1,iy+=n,ay+=n,uy=e}}function Er(e){null===ly&&(ly=[]),ly.push(e),null===ry&&(ry=[]),ry.push(e)}function Tr(){oy=Qm(),0>sy&&(sy=oy)}function Sr(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function xr(){if(0===--Uy&&(-1<Ey||(Ay=-1.1),null!==Dy)){null!==jy&&(jy.status="fulfilled");var e=Dy;Dy=null,Hy=0,jy=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Cr(){var e=Vy.current;return null!==e?e:Sw.pooledCache}function Ir(e,n){E(Vy,null===n?Vy.current:n.pool,e)}function Mr(){var e=Cr();return null===e?null:{parent:Xm.P,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(yn,yn),n=t),void 0===n.Y){e=performance.now();var o={name:"string"==typeof(r=n.displayName)?r:"Promise",start:e,end:e,value:n};n.Y=[{awaited:o}],"fulfilled"!==n.status&&"rejected"!==n.status&&(e=function(){o.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw Pr(e=n.reason),e;default:if("string"==typeof n.status)n.then(yn,yn);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 Pr(e=n.reason),e}throw Av=n,Ev=!0,bv}}function Nr(e){try{return vv(e)}catch(n){if(null!==n&&"object"==typeof n&&"function"==typeof n.then)throw Av=n,Ev=!0,bv;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,Ev=!1,e}function Pr(e){if(e===bv||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=xv;return null!=e&&(xv=null===n?e:n.concat(e)),n}function Fr(){var e=xv;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 Dr(e,n,t){for(var r=Object.keys(e.props),o=0;o<r.length;o++){var i=r[o];if("children"!==i&&"key"!==i){null===n&&((n=xt(e,t.mode,0)).Y=xv,n.return=t),j(n,function(e){},i);break}}}function Ur(e){var n=Sv;return Sv+=1,null===Tv&&(Tv={didWarnAboutUncachedPromise:!1,thenables:[]}),Rr(Tv,e,n)}function Hr(e,n){n=n.props.ref,e.ref=void 0!==n?n:null}function jr(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 qr(e,n){var t=Fr();null!==t?t.run(jr.bind(null,e,n)):jr(e,n)}function Vr(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=Fr();null!==t?t.run(Vr.bind(null,e,n)):Vr(e,n)}function zr(e,n){var t=g(e)||"Component";Mv[t]||(Mv[t]=!0,n=String(n),e.tag)}function Gr(e,n){var t=Fr();null!==t?t.run(zr.bind(null,e,n)):zr(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 o(e,n){return(e=Et(e,n)).index=0,e.sibling=null,e}function i(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.we=e,n.K=e.K,n.Y=xv,n):((n=o(n,t)).return=e,n.Y=xv,n)}function l(e,n,t,r){var i=t.type;return i===bf?(Dr(t,n=d(e,n,t.props.children,r,t.key),e),n):null!==n&&(n.elementType===i||bt(n,t)||"object"==typeof i&&null!==i&&i.$$typeof===Cf&&Nr(i)===n.type)?(Hr(n=o(n,t.props),t),n.return=e,n.we=t.V,n.Y=xv,n):(Hr(n=xt(t,e.mode,r),t),n.return=e,n.Y=xv,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.Y=xv,n):((n=o(n,t.children||[])).return=e,n.Y=xv,n)}function d(e,n,t,r,i){return null===n||7!==n.tag?((n=Ct(t,e.mode,r,i)).return=e,n.we=e,n.K=e.K,n.Y=xv,n):((n=o(n,t)).return=e,n.Y=xv,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.we=e,n.K=e.K,n.Y=xv,n;if("object"==typeof n&&null!==n){switch(n.$$typeof){case yf:return Hr(t=xt(n,e.mode,t),n),t.return=e,e=Lr(n.Y),t.Y=xv,xv=e,t;case vf:return(n=Ot(n,e.mode,t)).return=e,n.Y=xv,n;case Cf:var r=Lr(n.Y);return e=h(e,n=Nr(n),t),xv=r,e}if(Nf(n)||b(n))return(t=Ct(n,e.mode,t,null)).return=e,t.we=e,t.K=e.K,e=Lr(n.Y),t.Y=xv,xv=e,t;if("function"==typeof n.then)return r=Lr(n.Y),e=h(e,Ur(n),t),xv=r,e;if(n.$$typeof===Af)return h(e,rr(e,n),t);qr(e,n)}return"function"==typeof n&&Wr(e,n),"symbol"==typeof n&&Gr(e,n),null}function p(e,n,t,r){var o=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==o?null:s(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case yf:return t.key===o?(o=Lr(t.Y),e=l(e,n,t,r),xv=o,e):null;case vf:return t.key===o?f(e,n,t,r):null;case Cf:return o=Lr(t.Y),e=p(e,n,t=Nr(t),r),xv=o,e}if(Nf(t)||b(t))return null!==o?null:(o=Lr(t.Y),e=d(e,n,t,r,null),xv=o,e);if("function"==typeof t.then)return o=Lr(t.Y),e=p(e,n,Ur(t),r),xv=o,e;if(t.$$typeof===Af)return p(e,n,rr(e,t),r);qr(e,t)}return"function"==typeof t&&Wr(e,t),"symbol"==typeof t&&Gr(e,t),null}function m(e,n,t,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(n,e=e.get(t)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case yf:return t=e.get(null===r.key?t:r.key)||null,e=Lr(r.Y),n=l(n,t,r,o),xv=e,n;case vf:return f(n,e=e.get(null===r.key?t:r.key)||null,r,o);case Cf:var i=Lr(r.Y);return n=m(e,n,t,r=Nr(r),o),xv=i,n}if(Nf(r)||b(r))return t=e.get(t)||null,e=Lr(r.Y),n=d(n,t,r,o,null),xv=e,n;if("function"==typeof r.then)return i=Lr(r.Y),n=m(e,n,t,Ur(r),o),xv=i,n;if(r.$$typeof===Af)return m(e,n,t,rr(n,r),o);qr(n,r)}return"function"==typeof r&&Wr(n,r),"symbol"==typeof r&&Gr(n,r),null}function y(e,n,t,r){if("object"!=typeof t||null===t)return r;switch(t.$$typeof){case yf:case vf:u(e,n,t);var o=t.key;if("string"!=typeof o)break;if(null===r){(r=/* @__PURE__ */new Set).add(o);break}if(!r.has(o)){r.add(o);break}j(n,function(){});break;case Cf:y(e,n,t=Nr(t),r)}return r}function v(s,u,l,c){if("object"==typeof l&&null!==l&&l.type===bf&&null===l.key&&(Dr(l,null,s),l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case yf:var f=Lr(l.Y);e:{for(var d=l.key;null!==u;){if(u.key===d){if((d=l.type)===bf){if(7===u.tag){t(s,u.sibling),(c=o(u,l.props.children)).return=s,c.we=l.V,c.Y=xv,Dr(l,c,s),s=c;break e}}else if(u.elementType===d||bt(u,l)||"object"==typeof d&&null!==d&&d.$$typeof===Cf&&Nr(d)===u.type){t(s,u.sibling),Hr(c=o(u,l.props),l),c.return=s,c.we=l.V,c.Y=xv,s=c;break e}t(s,u);break}n(s,u),u=u.sibling}l.type===bf?((c=Ct(l.props.children,s.mode,c,l.key)).return=s,c.we=s,c.K=s.K,c.Y=xv,Dr(l,c,s),s=c):(Hr(c=xt(l,s.mode,c),l),c.return=s,c.Y=xv,s=c)}return s=a(s),xv=f,s;case vf:e:{for(l=(f=l).key;null!==u;){if(u.key===l){if(4===u.tag&&u.stateNode.containerInfo===f.containerInfo&&u.stateNode.implementation===f.implementation){t(s,u.sibling),(c=o(u,f.children||[])).return=s,s=c;break e}t(s,u);break}n(s,u),u=u.sibling}(c=Ot(f,s.mode,c)).return=s,s=c}return a(s);case Cf:return f=Lr(l.Y),s=v(s,u,l=Nr(l),c),xv=f,s}if(Nf(l))return f=Lr(l.Y),s=function(o,a,s,u){for(var l=null,c=null,f=null,d=a,v=a=0,b=null;null!==d&&v<s.length;v++){d.index>v?(b=d,d=null):b=d.sibling;var w=p(o,d,s[v],u);if(null===w){null===d&&(d=b);break}l=y(o,w,s[v],l),e&&d&&null===w.alternate&&n(o,d),a=i(w,a,v),null===f?c=w:f.sibling=w,f=w,d=b}if(v===s.length)return t(o,d),Lm&&Nt(o,v),c;if(null===d){for(;v<s.length;v++)null!==(d=h(o,s[v],u))&&(l=y(o,d,s[v],l),a=i(d,a,v),null===f?c=d:f.sibling=d,f=d);return Lm&&Nt(o,v),c}for(d=r(d);v<s.length;v++)null!==(b=m(d,o,v,s[v],u))&&(l=y(o,b,s[v],l),e&&null!==b.alternate&&d.delete(null===b.key?v:b.key),a=i(b,a,v),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach(function(e){return n(o,e)}),Lm&&Nt(o,v),c}(s,u,l,c),xv=f,s;if(b(l)){if(f=Lr(l.Y),"function"!=typeof(d=b(l)))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(l);return w===l?0===s.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(s.type)&&Object.prototype.toString.call(w):l.entries!==d||$y||($y=!0),s=function(o,a,s,u){if(null==s)throw Error("An iterable object provided no iterator.");for(var l=null,c=null,f=a,d=a=0,v=null,b=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(o,f,w.value,u);if(null===g){null===f&&(f=v);break}b=y(o,g,w.value,b),e&&f&&null===g.alternate&&n(o,f),a=i(g,a,d),null===c?l=g:c.sibling=g,c=g,f=v}if(w.done)return t(o,f),Lm&&Nt(o,d),l;if(null===f){for(;!w.done;d++,w=s.next())null!==(f=h(o,w.value,u))&&(b=y(o,f,w.value,b),a=i(f,a,d),null===c?l=f:c.sibling=f,c=f);return Lm&&Nt(o,d),l}for(f=r(f);!w.done;d++,w=s.next())null!==(v=m(f,o,d,w.value,u))&&(b=y(o,v,w.value,b),e&&null!==v.alternate&&f.delete(null===v.key?d:v.key),a=i(v,a,d),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return n(o,e)}),Lm&&Nt(o,d),l}(s,u,w,c),xv=f,s}if("function"==typeof l.then)return f=Lr(l.Y),s=v(s,u,Ur(l),c),xv=f,s;if(l.$$typeof===Af)return v(s,u,rr(s,l),c);qr(s,l)}return"string"==typeof l&&""!==l||"number"==typeof l||"bigint"==typeof l?(f=""+l,null!==u&&6===u.tag?(t(s,u.sibling),(c=o(u,f)).return=s,s=c):(t(s,u),(c=It(f,s.mode,c)).return=s,c.we=s,c.K=s.K,c.Y=xv,s=c),a(s)):("function"==typeof l&&Wr(s,l),"symbol"==typeof l&&Gr(s,l),t(s,u))}return function(e,n,t,r){var o=xv;xv=null;try{Sv=0;var i=v(e,n,t,r);return Tv=null,i}catch(l){if(l===bv||l===gv)throw l;var a=c(29,l,null,e.mode);a.lanes=r,a.return=e;var s=a.Y=xv;if(a.we=e.we,a.K=e.K,null!=s)for(var u=s.length-1;0<=u;u--)if("string"==typeof s[u].stack){a.we=s[u],a.K=s[u].debugTask;break}return a}finally{xv=o}}}function Jr(e,n){var t=Nf(e);return e=!t&&"function"==typeof b(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,Hv===r&&!Uv){var o=g(e);Uv=!0}return(Tw&mw)!==pw?(null===(o=r.pending)?n.next=n:(n.next=o.next,o.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 o=null,i=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,t=t.next}while(null!==t);null===i?o=i=n:i=i.next=n}else o=i=n;return t={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function eo(){if(jv&&null!==jy)throw jy}function no(e,n,t,r){jv=!1;var o=e.updateQueue;Dv=!1,Hv=o.shared;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?i=l:a.next=l,a=u;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u)}if(null!==i){var f=o.baseState;for(a=0,c=l=u=null,s=i;;){var d=-536870913&s.lane,h=d!==s.lane;if(h?(Cw&d)===d:(r&d)===d){0!==d&&d===Hy&&(jv=!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,y=t;switch(p.tag){case Pv:if("function"==typeof(p=p.payload)){var v=p.call(y,f,m);if(d.mode&wm){J(!0);try{p.call(y,f,m)}finally{J(!1)}}f=v;break e}f=p;break e;case Fv:d.flags=-65537&d.flags|128;case Bv:if("function"==typeof(v=p.payload)){if(p=v.call(y,f,m),d.mode&wm){J(!0);try{v.call(y,f,m)}finally{J(!1)}}}else p=v;if(null==p)break e;f=pf({},f,p);break e;case Lv:Dv=!0}}null!==(d=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[d]:h.push(d))}else h={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),Gw|=a,e.lanes=a,e.memoizedState=f}Hv=null}function to(e,n){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function ro(e,n){var t=e.shared.hiddenCallbacks;if(null!==t)for(e.shared.hiddenCallbacks=null,e=0;e<t.length;e++)to(t[e],n)}function oo(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)to(t[e],n)}function io(e,n){var t=Ww;E(Vv,t,e),E(qv,n,e),Ww=t|n.baseLanes}function ao(e){E(Vv,Ww,e),E(qv,qv.current,e)}function so(e){Ww=Vv.current,A(qv),A(Vv)}function uo(e){var n=e.alternate;E(Jv,Jv.current&Gv,e),E(Wv,e,e),null===zv&&(null===n||null!==qv.current||null!==n.memoizedState)&&(zv=e)}function lo(e){E(Jv,Jv.current,e),E(Wv,e,e),null===zv&&(zv=e)}function co(e){22===e.tag?(E(Jv,Jv.current,e),E(Wv,e,e),null===zv&&(zv=e)):fo(e)}function fo(e){E(Jv,Jv.current,e),E(Wv,Wv.current,e)}function ho(e){A(Wv),zv===e&&(zv=null),A(Jv)}function po(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||_l(t)||$l(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 mo(){var e=pb;null===mb?mb=[e]:mb.push(e)}function yo(){var e=pb;if(null!==mb&&(yb++,mb[yb]!==e)){var n=g(rb);if(!_v.has(n)&&(_v.add(n),null!==mb))for(var t=0;t<=yb;t++){var r=mb[t],o=t===yb?e:r;for(r=t+1+". "+r;30>r.length;)r+=" ";r+=o+"\n"}}}function vo(e){null==e||Nf(e)}function bo(){var e=g(rb);nb.has(e)||nb.add(e)}function wo(){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 go(e,n){if(vb)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 ko(e,n,t,r,o,i){tb=i,rb=n,mb=null!==e?e.ke:null,yb=-1,vb=null!==e&&e.type!==n.type,"[object AsyncFunction]"!==Object.prototype.toString.call(t)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(t)||(i=g(rb),eb.has(i)||eb.add(i)),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Bf.H=null!==e&&null!==e.memoizedState?kb:null!==mb?gb:wb,ub=i=(n.mode&wm)!==ym;var a=nv(t,r,o);if(ub=!1,sb&&(a=Eo(n,t,r,o)),i){J(!0);try{a=Eo(n,t,r,o)}finally{J(!1)}}return Ao(e,n),a}function Ao(e,n){n.ke=mb,null===n.dependencies?null!==fb&&(n.dependencies={lanes:0,firstContext:null,Ae:fb}):n.dependencies.Ae=fb,Bf.H=bb;var t=null!==ob&&null!==ob.next;if(tb=0,mb=pb=ib=ob=rb=null,yb=-1,null!==e&&(e.flags,n.flags),ab=!1,cb=0,fb=null,t)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||qb||null!==(e=e.dependencies)&&er(e)&&(qb=!0),Ev?(Ev=!1,e=!0):e=!1,e&&(n=g(n)||"Unknown",$v.has(n)||eb.has(n)||$v.add(n))}function Eo(e,n,t,r){rb=e;var o=0;do{if(sb&&(fb=null),cb=0,sb=!1,o>=hb)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o+=1,vb=!1,ib=ob=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}yb=-1,Bf.H=Ab,i=nv(n,t,r)}while(sb);return i}function To(){var e=Bf.H,n=e.useState()[0];return n="function"==typeof n.then?Oo(n):n,e=e.useState()[0],(null!==ob?ob.memoizedState:null)!==e&&(rb.flags|=1024),n}function So(){var e=0!==lb;return lb=0,e}function xo(e,n,t){n.updateQueue=e.updateQueue,n.flags=(n.mode&gm)!==ym?-402655237&n.flags:-2053&n.flags,e.lanes&=~t}function Co(e){if(ab){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}ab=!1}tb=0,mb=ib=ob=rb=null,yb=-1,pb=null,sb=!1,cb=lb=0,fb=null}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ib?rb.memoizedState=ib=e:ib=ib.next=e,ib}function Mo(){if(null===ob){var e=rb.alternate;e=null!==e?e.memoizedState:null}else e=ob.next;var n=null===ib?rb.memoizedState:ib.next;if(null!==n)ib=n,ob=e;else{if(null===e){if(null===rb.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:(ob=e).memoizedState,baseState:ob.baseState,baseQueue:ob.baseQueue,queue:ob.queue,next:null},null===ib?rb.memoizedState=ib=e:ib=ib.next=e}return ib}function Oo(e){var n=cb;return cb+=1,null===fb&&(fb={didWarnAboutUncachedPromise:!1,thenables:[]}),e=Rr(fb,e,n),n=rb,null===(null===ib?n.memoizedState:ib.next)&&(n=n.alternate,Bf.H=null!==n&&null!==n.memoizedState?kb:wb),e}function Ro(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Oo(e);if(e.$$typeof===Af)return tr(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function No(e){var n=null,t=rb.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=rb.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},rb.updateQueue=t),t.memoCache=n,void 0===(t=n.data[n.index])||vb)for(t=n.data[n.index]=Array(e),r=0;r<e;r++)t[r]=Mf;else t.length;return n.index++,t}function Bo(e,n){return"function"==typeof n?n(e):n}function Po(e,n,t){var r=Io();if(void 0!==t){var o=t(n);if(ub){J(!0);try{t(n)}finally{J(!1)}}}else o=n;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=qi.bind(null,rb,e),[r.memoizedState,e]}function Lo(e){return Fo(Mo(),ob,e)}function Fo(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 o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}n.baseQueue,n.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var s=a=null,u=null,l=n=o.next,c=!1;do{var f=-536870913&l.lane;if(f!==l.lane?(Cw&f)===f:(tb&f)===f){var d=l.revertLane;if(0===d)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),f===Hy&&(c=!0);else{if((tb&d)===d){l=l.next,d===Hy&&(c=!0);continue}f={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},null===u?(s=u=f,a=i):u=u.next=f,rb.lanes|=d,Gw|=d}f=l.action,ub&&t(i,f),i=l.hasEagerState?l.eagerState:t(i,f)}else d={lane:f,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},null===u?(s=u=d,a=i):u=u.next=d,rb.lanes|=f,Gw|=f;l=l.next}while(null!==l&&l!==n);if(null===u?a=i:u.next=s,!kp(i,e.memoizedState)&&(qb=!0,c&&null!==(t=jy)))throw t;e.memoizedState=i,e.baseState=a,e.baseQueue=u,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Do(e){var n=Mo(),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,o=t.pending,i=n.memoizedState;if(null!==o){t.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);kp(i,n.memoizedState)||(qb=!0),n.memoizedState=i,null===n.baseQueue&&(n.baseState=i),t.lastRenderedState=i}return[i,r]}function Uo(e,n,t){var r=rb,o=Io();if(Lm){if(void 0===t)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var i=t();Ov||i===t()||(Ov=!0)}else{if(i=n(),Ov||(t=n(),kp(i,t)||(Ov=!0)),null===Sw)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");127&Cw||jo(r,n,i)}return o.memoizedState=i,t={value:i,getSnapshot:n},o.queue=t,hi(Vo.bind(null,r,t,e),[e]),r.flags|=2048,li(Kv|Zv,{destroy:void 0},qo.bind(null,r,t,i,n),null),i}function Ho(e,n,t){var r=rb,o=Mo(),i=Lm;if(i){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((ob||o).memoizedState,t))&&(o.memoizedState=t,qb=!0),o=o.queue;var s=Vo.bind(null,r,o,e);if(di(2048,Zv,s,[e]),o.getSnapshot!==n||a||null!==ib&&ib.memoizedState.tag&Kv){if(r.flags|=2048,li(Kv|Zv,{destroy:void 0},qo.bind(null,r,o,t,n),null),null===Sw)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||127&tb||jo(r,n,t)}return t}function jo(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=rb.updateQueue)?(n={lastEffect:null,events:null,stores:null,memoCache:null},rb.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function qo(e,n,t,r){n.value=t,n.getSnapshot=r,Wo(n)&&zo(e)}function Vo(e,n,t){return t(function(){Wo(n)&&(ur(2,"updateSyncExternalStore()",e),zo(e))})}function Wo(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!kp(e,t)}catch(r){return!0}}function zo(e){var n=ht(e,2);null!==n&&Ks(n,e,2)}function Go(e){var n=Io();if("function"==typeof e){var t=e;if(e=t(),ub){J(!0);try{t()}finally{J(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},n}function Yo(e){var n=(e=Go(e)).queue,t=Vi.bind(null,rb,n);return n.dispatch=t,[e.memoizedState,t]}function Jo(e){var n=Io();n.memoizedState=n.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=t,n=zi.bind(null,rb,!0,t),t.dispatch=n,[e,n]}function Ko(e,n){return Xo(Mo(),0,e,n)}function Xo(e,n,t,r){return e.baseState=t,Fo(e,ob,"function"==typeof r?r:Bo)}function Qo(e,n){var t=Mo();return null!==ob?Xo(t,0,e,n):(t.baseState=e,[e,t.queue.dispatch])}function Zo(e,n,t,r,o){if(Gi(e))throw Error("Cannot update form state while rendering.");if(null!==(e=n.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==Bf.T?t(!0):i.isTransition=!1,r(i),null===(t=n.pending)?(i.next=n.pending=i,_o(n,i)):(i.next=t.next,n.pending=t.next=i)}}function _o(e,n){var t=n.action,r=n.payload,o=e.state;if(n.isTransition){var i=Bf.T,a={};a.ne=/* @__PURE__ */new Set,Bf.T=a;try{var s=t(o,r),u=Bf.S;null!==u&&u(a,s),$o(e,n,s)}catch(l){ni(e,n,l)}finally{null!==i&&null!==a.types&&(null!==i.types&&(i.types,a.types),i.types=a.types),Bf.T=i,null===i&&a.ne&&(e=a.ne.size,a.ne.clear())}}else try{$o(e,n,a=t(o,r))}catch(c){ni(e,n,c)}}function $o(e,n,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?(Bf.asyncTransitions++,t.then(Mi,Mi),t.then(function(t){ei(e,n,t)},function(t){return ni(e,n,t)}),n.isTransition):ei(e,n,t)}function ei(e,n,t){n.status="fulfilled",n.value=t,ti(n),e.state=t,null!==(n=e.pending)&&((t=n.next)===n?e.pending=null:(t=t.next,n.next=t,_o(e,t)))}function ni(e,n,t){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{n.status="rejected",n.reason=t,ti(n),n=n.next}while(n!==r)}e.action=null}function ti(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ri(e,n){return n}function oi(e,n){if(Lm){var t=Sw.formState;if(null!==t){e:{var r=rb;if(Lm){if(Pm){n:{for(var o=Pm,i=Hm;8!==o.nodeType;){if(!i){o=null;break n}if(null===(o=ec(o.nextSibling))){o=null;break n}}o=(i=o.data)===gk||i===kk?o:null}if(o){Pm=ec(o.nextSibling),r=o.data===gk;break e}}jt(r)}r=!1}r&&(n=t[0])}}return(t=Io()).memoizedState=t.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:n},t.queue=r,t=Vi.bind(null,rb,r),r.dispatch=t,r=Go(!1),i=zi.bind(null,rb,!1,r.queue),o={state:n,dispatch:null,action:e,pending:null},(r=Io()).queue=o,t=Zo.bind(null,rb,o,i,t),o.dispatch=t,r.memoizedState=e,[n,t,!1]}function ii(e){return ai(Mo(),ob,e)}function ai(e,n,t){if(n=Fo(e,n,ri)[0],e=Lo(Bo)[0],"object"==typeof n&&null!==n&&"function"==typeof n.then)try{var r=Oo(n)}catch(a){if(a===bv)throw gv;throw a}else r=n;var o=(n=Mo()).queue,i=o.dispatch;return t!==n.memoizedState&&(rb.flags|=2048,li(Kv|Zv,{destroy:void 0},si.bind(null,o,t),null)),[r,i,e]}function si(e,n){e.action=n}function ui(e){var n=Mo(),t=ob;if(null!==t)return ai(n,t,e);Mo(),n=n.memoizedState;var r=(t=Mo()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function li(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=rb.updateQueue)&&(n={lastEffect:null,events:null,stores:null,memoCache:null},rb.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 ci(e){return e={current:e},Io().memoizedState=e}function fi(e,n,t,r){var o=Io();rb.flags|=e,o.memoizedState=li(Kv|n,{destroy:void 0},t,void 0===r?null:r)}function di(e,n,t,r){var o=Mo();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==ob&&null!==r&&go(r,ob.memoizedState.deps)?o.memoizedState=li(n,i,t,r):(rb.flags|=e,o.memoizedState=li(Kv|n,i,t,r))}function hi(e,n){(rb.mode&gm)!==ym?fi(276826112,Zv,e,n):fi(8390656,Zv,e,n)}function pi(e){var n=Io(),t={impl:e};return n.memoizedState=t,function(){if((Tw&mw)!==pw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function mi(e){var n=Mo().memoizedState;return function(e){rb.flags|=4;var n=rb.updateQueue;if(null===n)n={lastEffect:null,events:null,stores:null,memoCache:null},rb.updateQueue=n,n.events=[e];else{var t=n.events;null===t?n.events=[e]:t.push(e)}}({ref:n,nextImpl:e}),function(){if((Tw&mw)!==pw)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function yi(e,n){var t=4194308;return(rb.mode&gm)!==ym&&(t|=134217728),fi(t,Qv,e,n)}function vi(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 bi(e,n,t){t=null!=t?t.concat([e]):null;var r=4194308;(rb.mode&gm)!==ym&&(r|=134217728),fi(r,Qv,vi.bind(null,n,e),t)}function wi(e,n,t){t=null!=t?t.concat([e]):null,di(4,Qv,vi.bind(null,n,e),t)}function gi(e,n){return Io().memoizedState=[e,void 0===n?null:n],e}function ki(e,n){var t=Mo();n=void 0===n?null:n;var r=t.memoizedState;return null!==n&&go(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Ai(e,n){var t=Io();n=void 0===n?null:n;var r=e();if(ub){J(!0);try{e()}finally{J(!1)}}return t.memoizedState=[r,n],r}function Ei(e,n){var t=Mo();n=void 0===n?null:n;var r=t.memoizedState;if(null!==n&&go(n,r[1]))return r[0];if(r=e(),ub){J(!0);try{e()}finally{J(!1)}}return t.memoizedState=[r,n],r}function Ti(e,n){return Ci(Io(),e,n)}function Si(e,n){return Ii(Mo(),ob.memoizedState,e,n)}function xi(e,n){var t=Mo();return null===ob?Ci(t,e,n):Ii(t,ob.memoizedState,e,n)}function Ci(e,n,t){return void 0===t||1073741824&tb&&!(261930&Cw)?e.memoizedState=n:(e.memoizedState=t,e=Js(),rb.lanes|=e,Gw|=e,t)}function Ii(e,n,t,r){return kp(t,n)?t:null!==qv.current?(e=Ci(e,t,r),kp(e,n)||(qb=!0),e):42&tb&&(!(1073741824&tb)||261930&Cw)?(e=Js(),rb.lanes|=e,Gw|=e,n):(qb=!0,e.memoizedState=t)}function Mi(){Bf.asyncTransitions--}function Oi(e,n,t,r,o){var i=Pf.p;Pf.p=0!==i&&i<kd?i:kd;var a,s,u,l=Bf.T,c={};c.ne=/* @__PURE__ */new Set,Bf.T=c,zi(e,!1,n,t);try{var f=o(),d=Bf.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){Bf.asyncTransitions++,f.then(Mi,Mi);var h=(a=r,s=[],u={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then(function(){u.status="fulfilled",u.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(u.status="rejected",u.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),u);Wi(e,n,h,Ys(e))}else Wi(e,n,r,Ys(e))}catch(p){Wi(e,n,{then:function(){},status:"rejected",reason:p},Ys(e))}finally{Pf.p=i,null!==l&&null!==c.types&&(null!==l.types&&(l.types,c.types),l.types=c.types),Bf.T=l,null===l&&c.ne&&(e=c.ne.size,c.ne.clear())}}function Ri(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 o=Ni(e).queue;!function(e){if(0>dy){dy=Qm(),hy=null!=e.K?e.K:null,(Tw&(mw|yw))!==pw&&(py=_m);var n=Rl(),t=Ol();n!==wy||t!==by?wy=-1.1:null!==t&&(py=_m),vy=n,by=t}0>Ey&&(Ey=Qm(),Sy=null!=e.K?e.K:null,0>Ay)&&(e=Rl(),n=Ol(),e===Oy&&n===My||(Oy=-1.1),Iy=e,My=n)}(e),Oi(e,o,n,cA,null===t?s:function(){return Bi(e),t(r)})}function Ni(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:Bo,lastRenderedState:cA},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:t},next:null},e.memoizedState=n,null!==(e=e.alternate)&&(e.memoizedState=n),n}function Bi(e){Bf.T;var n=Ni(e);null===n.next&&(n=e.alternate.memoizedState),Wi(e,n.next.queue,{},Ys(e))}function Pi(){var e=Go(!1);return e=Oi.bind(null,rb,e.queue,!0,!1),Io().memoizedState=e,[!1,e]}function Li(){var e=Lo(Bo)[0],n=Mo().memoizedState;return["boolean"==typeof e?e:Oo(e),n]}function Fi(){var e=Do(Bo)[0],n=Mo().memoizedState;return["boolean"==typeof e?e:Oo(e),n]}function Di(){return tr(fA)}function Ui(){var e=Io(),n=Sw.identifierPrefix;if(Lm){var t=Nm;n="_"+n+"R_"+(t=(Rm&~(1<<32-pd(Rm)-1)).toString(32)+t),0<(t=lb++)&&(n+="H"+t.toString(32)),n+="_"}else n="_"+n+"r_"+(t=db++).toString(32)+"_";return e.memoizedState=n}function Hi(){return Io().memoizedState=ji.bind(null,rb)}function ji(e,n){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var r=Ys(t),o=Qr(r),i=Zr(t,o,r);return null!==i&&(ur(r,"refresh()",e),Ks(i,t,r),_r(i,t,r)),e=ir(),void(o.payload={cache:e})}t=t.return}}function qi(e,n,t){var r=arguments;r[3];var o={lane:r=Ys(e),revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};Gi(e)?Yi(n,o):null!==(o=dt(e,n,o,r))&&(ur(r,"dispatch()",e),Ks(o,e,r),Ji(o,n,r))}function Vi(e,n,t){var r=arguments;r[3],Wi(e,n,t,r=Ys(e))&&ur(r,"setState()",e)}function Wi(e,n,t,r){var o={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Gi(e))Yi(n,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer)){var a=Bf.H;Bf.H=Tb;try{var s=n.lastRenderedState,u=i(s,t);if(o.hasEagerState=!0,o.eagerState=u,kp(u,s))return ft(e,n,o,0),null===Sw&&ct(),!1}catch(l){}finally{Bf.H=a}}if(null!==(t=dt(e,n,o,r)))return Ks(t,e,r),Ji(t,n,r),!0}return!1}function zi(e,n,t,r){if(Bf.T,r={lane:2,revertLane:Ju(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Gi(e)){if(n)throw Error("Cannot update optimistic state while rendering.")}else null!==(n=dt(e,t,r,2))&&(ur(2,"setOptimistic()",e),Ks(n,e,2))}function Gi(e){var n=e.alternate;return e===rb||null!==n&&n===rb}function Yi(e,n){sb=ab=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ji(e,n,t){if(4194048&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,te(e,t)}}function Ki(e){if(null!==e&&"function"!=typeof e){var n=String(e);Fb.has(n)||Fb.add(n)}}function Xi(e,n,t,r){var o=e.memoizedState,i=t(r,o);if(e.mode&wm){J(!0);try{i=t(r,o)}finally{J(!1)}}void 0===i&&(n=w(n)||"Component",Nb.has(n)||Nb.add(n)),o=null==i?o:pf({},o,i),e.memoizedState=o,0===e.lanes&&(e.updateQueue.baseState=o)}function Qi(e,n,t,r,o,i,a){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){if(t=s.shouldComponentUpdate(r,i,a),e.mode&wm){J(!0);try{t=s.shouldComponentUpdate(r,i,a)}finally{J(!1)}}return t}return!(n.prototype&&n.prototype.isPureReactComponent&&qn(t,r)&&qn(o,i))}function Zi(e,n,t,r){var o=n.state;"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==o&&(e=g(e)||"Component",Cb.has(e)||Cb.add(e),Db.enqueueReplaceState(n,n.state,null))}function _i(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 o in t===n&&(t=pf({},t)),e)void 0===t[o]&&(t[o]=e[o]);return t}function $i(e){Wp(e)}function ea(e){var n=Ub?"The above error occurred in the <"+Ub+"> 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, "+(Hb||"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=yA.apply(console.error,e))()}}function na(e){Wp(e)}function ta(e,n){try{Ub=n.source?g(n.source):null,Hb=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{Ub=t.source?g(t.source):null,Hb=g(n),(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function oa(e,n,t){return(t=Qr(t)).tag=Fv,t.payload={element:null},t.callback=function(){j(n.source,ta,e,n)},t}function ia(e){return(e=Qr(e)).tag=Fv,e}function aa(e,n,t,r){var o=t.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){wt(t),j(r.source,ra,n,t,r)}}var a=t.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){wt(t),j(r.source,ra,n,t,r),"function"!=typeof o&&(null===ag?ag=/* @__PURE__ */new Set([this]):ag.add(this)),lv(this,r),"function"==typeof o||t.lanes})}function sa(e,n,t,r){n.child=null===e?Nv(n,null,t,r):Rv(n,e.child,t,r)}function ua(e,n,t,r,o){t=t.render;var i=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=ko(e,n,t,a,i,o),s=So(),null===e||qb?(Lm&&s&&Pt(n),n.flags|=1,sa(e,n,r,o),n.child):(xo(e,n,o),Ra(e,n,o))}function la(e,n,t,r,o){if(null===e){var i=t.type;return"function"!=typeof i||At(i)||void 0!==i.defaultProps||null!==t.compare?((e=St(t.type,null,r,n,n.mode,o)).ref=n.ref,e.return=n,n.child=e):(t=yt(i),n.tag=15,n.type=t,ka(n,i),ca(e,n,t,r,o))}if(i=e.child,!Na(e,o)){var a=i.memoizedProps;if((t=null!==(t=t.compare)?t:qn)(a,r)&&e.ref===n.ref)return Ra(e,n,o)}return n.flags|=1,(e=Et(i,r)).ref=n.ref,e.return=n,n.child=e}function ca(e,n,t,r,o){if(null!==e){var i=e.memoizedProps;if(qn(i,r)&&e.ref===n.ref&&n.type===e.type){if(qb=!1,n.pendingProps=r=i,!Na(e,o))return n.lanes=e.lanes,Ra(e,n,o);131072&e.flags&&(qb=!0)}}return va(e,n,t,r,o)}function fa(e,n,t,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===n.stateNode&&(n.stateNode={ae:um,ue:null,le:null,ce:null}),"hidden"===r.mode){if(128&n.flags){if(i=null!==i?i.baseLanes|t:t,null!==e){for(r=n.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,n.child=null;return ha(e,n,i,t,r)}if(!(536870912&t))return r=n.lanes=536870912,ha(e,n,null!==i?i.baseLanes|t:t,t,r);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ir(n,null!==i?i.cachePool:null),null!==i?io(n,i):ao(n),co(n)}else null!==i?(Ir(n,i.cachePool),io(n,i),fo(n),n.memoizedState=null):(null!==e&&Ir(n,null),ao(n),fo(n));return sa(e,n,o,t),n.child}function da(e,n){return null!==e&&22===e.tag||null!==n.stateNode||(n.stateNode={ae:um,ue:null,le:null,ce:null}),n.sibling}function ha(e,n,t,r,o){var i=Cr();return i=null===i?null:{parent:Xm.P,pool:i},n.memoizedState={baseLanes:t,cachePool:i},null!==e&&Ir(n,null),ao(n),co(n),null!==e&&$t(e,n,r,!0),n.childLanes=o,null}function pa(e,n){return n.hidden,(n=xa({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,ho(n),n.memoizedState=null,e}function ya(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,o){if(t.prototype&&"function"==typeof t.prototype.render){var i=w(t)||"Unknown";Vb[i]||(Vb[i]=!0)}return n.mode&wm&&Wy.recordLegacyContextWarning(n,null),null===e&&(ka(n,n.type),t.contextTypes&&(i=w(t)||"Unknown",zb[i]||(zb[i]=!0))),nr(n),t=ko(e,n,t,r,void 0,o),r=So(),null===e||qb?(Lm&&r&&Pt(n),n.flags|=1,sa(e,n,t,o),n.child):(xo(e,n,o),Ra(e,n,o))}function ba(e,n,t,r,o,i){return nr(n),yb=-1,vb=null!==e&&e.type!==n.type,n.updateQueue=null,t=Eo(n,r,t,o),Ao(e,n),r=So(),null===e||qb?(Lm&&r&&Pt(n),n.flags|=1,sa(e,n,t,i),n.child):(xo(e,n,i),Ra(e,n,i))}function wa(e,n,t,r,o){switch(a(n)){case!1:var i=n.stateNode,s=new n.type(n.memoizedProps,i.context).state;i.updater.enqueueSetState(i,s,null);break;case!0:n.flags|=128,n.flags|=65536,i=Error("Simulated error coming from DevTools");var u=o&-o;if(n.lanes|=u,null===(s=Sw))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");aa(u=ia(u),s,n,Rt(i,n)),$r(n,u)}if(nr(n),null===n.stateNode){if(s=hm,i=t.contextType,"contextType"in t&&null!==i&&(void 0===i||i.$$typeof!==Af)&&!Lb.has(t)&&(Lb.add(t),u=void 0===i?" 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 i?" However, it is set to a "+typeof i+".":i.$$typeof===kf?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}."),"object"==typeof i&&null!==i&&(s=tr(i)),i=new t(r,s),n.mode&wm){J(!0);try{i=new t(r,s)}finally{J(!1)}}if(s=n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Db,n.stateNode=i,i.se=n,i.Ee=xb,"function"==typeof t.getDerivedStateFromProps&&null===s&&(s=w(t)||"Component",Ib.has(s)||Ib.add(s)),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate){var l=u=s=null;if("function"==typeof i.componentWillMount&&!0!==i.componentWillMount.Te?s="componentWillMount":"function"==typeof i.UNSAFE_componentWillMount&&(s="UNSAFE_componentWillMount"),"function"==typeof i.componentWillReceiveProps&&!0!==i.componentWillReceiveProps.Te?u="componentWillReceiveProps":"function"==typeof i.UNSAFE_componentWillReceiveProps&&(u="UNSAFE_componentWillReceiveProps"),"function"==typeof i.componentWillUpdate&&!0!==i.componentWillUpdate.Te?l="componentWillUpdate":"function"==typeof i.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==s||null!==u||null!==l){i=w(t)||"Component";var c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ob.has(i)||Ob.add(i)}}i=n.stateNode,s=w(t)||"Component",i.render||t.prototype&&t.prototype.render,!i.getInitialState||i.getInitialState.isReactClassApproved||i.state,i.getDefaultProps&&i.getDefaultProps.isReactClassApproved,i.contextType,t.childContextTypes&&!Pb.has(t)&&Pb.add(t),t.contextTypes&&!Bb.has(t)&&Bb.add(t),i.componentShouldUpdate,t.prototype&&t.prototype.isPureReactComponent&&i.shouldComponentUpdate,i.componentDidUnmount,i.componentDidReceiveProps,i.componentWillRecieveProps,i.UNSAFE_componentWillRecieveProps,u=i.props!==r,i.props,i.defaultProps,"function"!=typeof i.getSnapshotBeforeUpdate||"function"==typeof i.componentDidUpdate||Mb.has(t)||Mb.add(t),i.getDerivedStateFromProps,i.getDerivedStateFromError,t.getSnapshotBeforeUpdate,(u=i.state)&&("object"!=typeof u||Nf(u)),"function"==typeof i.getChildContext&&t.childContextTypes,(i=n.stateNode).props=r,i.state=n.memoizedState,i.refs={},Kr(n),s=t.contextType,i.context="object"==typeof s&&null!==s?tr(s):hm,i.state===r&&(s=w(t)||"Component",Rb.has(s)||Rb.add(s)),n.mode&wm&&Wy.recordLegacyContextWarning(n,i),Wy.recordUnsafeLifecycleWarnings(n,i),i.state=n.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(Xi(n,t,s,r),i.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&Db.enqueueReplaceState(i,i.state,null),no(n,r,i,o),eo(),i.state=n.memoizedState),"function"==typeof i.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==ym&&(n.flags|=134217728),i=!0}else if(null===e){i=n.stateNode;var f=n.memoizedProps;u=_i(t,f),i.props=u;var d=i.context;l=t.contextType,s=hm,"object"==typeof l&&null!==l&&(s=tr(l)),l="function"==typeof(c=t.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate,f=n.pendingProps!==f,l||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(f||d!==s)&&Zi(n,i,r,s),Dv=!1;var h=n.memoizedState;i.state=h,no(n,r,i,o),eo(),d=n.memoizedState,f||h!==d||Dv?("function"==typeof c&&(Xi(n,t,c,r),d=n.memoizedState),(u=Dv||Qi(n,t,u,r,h,d,s))?(l||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==ym&&(n.flags|=134217728)):("function"==typeof i.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==ym&&(n.flags|=134217728),n.memoizedProps=r,n.memoizedState=d),i.props=r,i.state=d,i.context=s,i=u):("function"==typeof i.componentDidMount&&(n.flags|=4194308),(n.mode&gm)!==ym&&(n.flags|=134217728),i=!1)}else{i=n.stateNode,Xr(e,n),l=_i(t,s=n.memoizedProps),i.props=l,c=n.pendingProps,h=i.context,d=t.contextType,u=hm,"object"==typeof d&&null!==d&&(u=tr(d)),(d="function"==typeof(f=t.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==c||h!==u)&&Zi(n,i,r,u),Dv=!1,h=n.memoizedState,i.state=h,no(n,r,i,o),eo();var p=n.memoizedState;s!==c||h!==p||Dv||null!==e&&null!==e.dependencies&&er(e.dependencies)?("function"==typeof f&&(Xi(n,t,f,r),p=n.memoizedState),(l=Dv||Qi(n,t,l,r,h,p,u)||null!==e&&null!==e.dependencies&&er(e.dependencies))?(d||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),i.props=r,i.state=p,i.context=u,i=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),i=!1)}if(u=i,ya(e,n),s=!!(128&n.flags),u||s){if(u=n.stateNode,q(n),s&&"function"!=typeof t.getDerivedStateFromError)t=null,oy=-1;else if(t=rv(u),n.mode&wm){J(!0);try{rv(u)}finally{J(!1)}}n.flags|=1,null!==e&&s?(n.child=Rv(n,e.child,null,o),n.child=Rv(n,null,t,o)):sa(e,n,t,o),n.memoizedState=u.state,e=n.child}else e=Ra(e,n,o);return o=n.stateNode,i&&o.props!==r&&(Yb=!0),e}function ga(e,n,t,r){return zt(),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",Gb[e]||(Gb[e]=!0)),"object"==typeof n.contextType&&null!==n.contextType&&(n=w(n)||"Unknown",Wb[n]||(Wb[n]=!0))}function Aa(e){return{baseLanes:e,cachePool:Mr()}}function Ea(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Kw),e}function Ta(e,n,t){var r,o=n.pendingProps;i(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?uo(n):fo(n),(e=Pm)?null!==(t=null!==(t=Zl(e,Hm))&&t.data!==ck?t:null)&&(r={dehydrated:t,treeContext:Ft(),retryLane:536870912,hydrationErrors:null},n.memoizedState=r,(r=Mt(t)).return=n,n.child=r,Bm=n,Pm=null):t=null,null===t)throw Ht(n,e),jt(n);return $l(t)?n.lanes=32:n.lanes=536870912,null}var u=o.children;if(o=o.fallback,a){fo(n);var l=n.mode;return u=xa({mode:"hidden",children:u},l),o=Ct(o,l,t,null),u.return=n,o.return=n,u.sibling=o,n.child=u,(o=n.child).memoizedState=Aa(t),o.childLanes=Ea(e,r,t),n.memoizedState=Xb,da(null,o)}return uo(n),Sa(n,u)}var c=e.memoizedState;if(null!==c){var f=c.dehydrated;if(null!==f){if(s)256&n.flags?(uo(n),n.flags&=-257,n=Ca(e,n,t)):null!==n.memoizedState?(fo(n),n.child=e.child,n.flags|=128,n=null):(fo(n),u=o.fallback,l=n.mode,o=xa({mode:"visible",children:o.children},l),(u=Ct(u,l,t,null)).flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,Rv(n,e.child,null,t),(o=n.child).memoizedState=Aa(t),o.childLanes=Ea(e,r,t),n.memoizedState=Xb,n=da(null,o));else if(uo(n),!!(536870912&t)&&su(n),$l(f)){if(r=f.nextSibling&&f.nextSibling.dataset){u=r.dgst;var d=r.msg;l=r.stck;var h=r.cstck}r=u,o=l,l=f=h,(u=(u=a=d)?Error(u):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=o||"",u.digest=r,o={value:u,source:null,stack:r=void 0===l?null:l},"string"==typeof r&&Em.set(u,o),Yt(o),n=Ca(e,n,t)}else if(qb||$t(e,n,t,!1),r=0!==(t&e.childLanes),qb||r){if(null!==(r=Sw)&&0!==(o=re(r,t))&&o!==c.retryLane)throw c.retryLane=o,ht(e,o),Ks(r,e,o),jb;_l(f)||uu(),n=Ca(e,n,t)}else _l(f)?(n.flags|=192,n.child=e.child,n=null):(e=c.treeContext,Pm=ec(f.nextSibling),Bm=n,Lm=!0,Um=null,Fm=!1,Dm=null,Hm=!1,null!==e&&Dt(n,e),(n=Sa(n,o.children)).flags|=4096);return n}}return a?(fo(n),u=o.fallback,l=n.mode,f=(h=e.child).sibling,(o=Et(h,{mode:"hidden",children:o.children})).subtreeFlags=65011712&h.subtreeFlags,null!==f?u=Et(f,u):(u=Ct(u,l,t,null)).flags|=2,u.return=n,o.return=n,o.sibling=u,n.child=o,da(null,o),o=n.child,null===(u=e.child.memoizedState)?u=Aa(t):(null!==(l=u.cachePool)?(h=Xm.P,l=l.parent!==h?{parent:h,pool:h}:l):l=Mr(),u={baseLanes:u.baseLanes|t,cachePool:l}),o.memoizedState=u,o.childLanes=Ea(e,r,t),n.memoizedState=Xb,da(e.child,o)):(null!==c&&(62914560&t)===t&&0!==(t&e.lanes)&&su(n),uo(n),e=(t=e.child).sibling,(t=Et(t,{mode:"visible",children:o.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=xa({mode:"visible",children:n},e.mode)).return=e,e.child=n}function xa(e,n){return(e=c(22,e,null,n)).lanes=0,e}function Ca(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,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:o,treeForkCount:i}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=o,a.treeForkCount=i)}function Oa(e,n,t){var r=n.pendingProps,o=r.revealOrder,i=r.tail,a=r.children,s=Jv.current;(r=0!==(s&Yv))?(s=s&Gv|Yv,n.flags|=128):s&=Gv,E(Jv,s,n),s=null==o?"null":o,"forwards"===o||"unstable_legacy-backwards"===o||"together"===o||"independent"===o||Jb[s]||(Jb[s]=!0,null==o||"backwards"===o||"string"==typeof o&&o.toLowerCase()),Kb[s=null==i?"null":i]||(null==i?"forwards"!==o&&"backwards"!==o&&"unstable_legacy-backwards"!==o||(Kb[s]=!0):("visible"!==i&&"collapsed"!==i&&"hidden"!==i||"forwards"!==o&&"backwards"!==o&&"unstable_legacy-backwards"!==o)&&(Kb[s]=!0));e:if(("forwards"===o||"backwards"===o||"unstable_legacy-backwards"===o)&&null!=a&&!1!==a)if(Nf(a)){for(s=0;s<a.length;s++)if(!Jr(a[s]))break e}else if(s=b(a),"function"==typeof s&&(s=s.call(a)))for(var u=s.next();!u.done;u=s.next())if(!Jr(u.value))break e;if(sa(e,n,a,t),a=Lm?Cm: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(o){case"forwards":for(t=n.child,o=null;null!==t;)null!==(e=t.alternate)&&null===po(e)&&(o=t),t=t.sibling;null===(t=o)?(o=n.child,n.child=null):(o=t.sibling,t.sibling=null),Ma(n,!1,o,t,i,a);break;case"backwards":case"unstable_legacy-backwards":for(t=null,o=n.child,n.child=null;null!==o;){if(null!==(e=o.alternate)&&null===po(e)){n.child=o;break}e=o.sibling,o.sibling=t,t=o,o=e}Ma(n,!0,t,null,i,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),oy=-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=Et(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Et(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.ge&&null!==e){(t=St(n.type,n.key,n.pendingProps,n.we||null,n.mode,n.lanes)).J=n.J,t.K=n.K;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.Y=n.Y,n===r.child)r.child=t;else{var o=r.child;if(null===o)throw Error("Expected parent to have a child.");for(;o.sibling!==n;)if(null===(o=o.sibling))throw Error("Expected to find the previous sibling.");o.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)qb=!0;else{if(!(Na(e,t)||128&n.flags))return qb=!1,function(e,n,t){switch(n.tag){case 3:T(n,n.stateNode.containerInfo),Xt(n,Xm,e.memoizedState.cache),zt();break;case 27:case 5:I(n);break;case 4:T(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,lo(n),null;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(uo(n),n.flags|=128,null):0!==(t&n.child.childLanes)?Ta(e,n,t):(uo(n),null!==(e=Ra(e,n,t))?e.sibling:null);uo(n);break;case 19:var o=!!(128&e.flags);if((r=0!==(t&n.childLanes))||($t(e,n,t,!1),r=0!==(t&n.childLanes)),o){if(r)return Oa(e,n,t);n.flags|=128}if(null!==(o=n.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),E(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);qb=!!(131072&e.flags)}else qb=!1,(r=Lm)&&(r=!!(1048576&n.flags)),r&&(r=n.index,Bt(n,Cm,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((o=e.$$typeof)===Ef){n.tag=11,n.type=e=vt(e),n=ua(null,n,e,r,t);break e}if(o===xf){n.tag=14,n=la(null,n,e,r,t);break e}}throw n="",null!==e&&"object"==typeof e&&e.$$typeof===Cf&&(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=_i(e,r),n.tag=1,n.type=e=yt(e),n=wa(null,n,e,r,t)):(n.tag=0,ka(n,e),n.type=e=yt(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,o=_i(r,n.pendingProps),t);case 3:e:{if(T(n,n.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=n.pendingProps;var i=n.memoizedState;o=i.element,Xr(e,n),no(n,r,null,t);var a=n.memoizedState;if(r=a.cache,Xt(n,Xm,r),r!==i.cache&&_t(n,[Xm],t,!0),eo(),r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache},n.updateQueue.baseState=i,n.memoizedState=i,256&n.flags){n=ga(e,n,r,t);break e}if(r!==o){Yt(o=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,Pm=ec(e.firstChild),Bm=n,Lm=!0,Um=null,Fm=!1,Dm=null,Hm=!0,t=Nv(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(zt(),r===o){n=Ra(e,n,t);break e}sa(e,n,r,t)}n=n.child}return n;case 26:return ya(e,n),null===e?(t=hc(n.type,null,n.pendingProps,null))?n.memoizedState=t:Lm||(t=n.type,e=n.pendingProps,(r=xl(r=qf.current).createElement(t))[Sd]=n,r[xd]=e,ml(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=qf.current,o=x(),r=n.stateNode=uc(n.type,n.pendingProps,r,o,!1),Fm||null!==(o=Tl(r,n.type,n.pendingProps,o))&&(Ut(n,0).serverProps=o),Bm=n,Hm=!0,o=Pm,Hl(n.type)?(Dk=o,Pm=ec(r.firstChild)):Pm=o),sa(e,n,n.pendingProps.children,t),ya(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&Lm&&(i=x(),r=an(n.type,i.ancestorInfo),(a=!(o=Pm))||(null!==(a=function(e,n,t,r){for(;1===e.nodeType;){var o=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"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;z(o.name);var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=ec(e.nextSibling)))break}return null}(o,n.type,n.pendingProps,Hm))?(n.stateNode=a,Fm||null!==(i=Tl(a,n.type,n.pendingProps,i))&&(Ut(n,0).serverProps=i),Bm=n,Pm=ec(a.firstChild),Hm=!1,i=!0):i=!1,a=!i),a&&(r&&Ht(n,o),jt(n))),I(n),o=n.type,i=n.pendingProps,a=null!==e?e.memoizedProps:null,r=i.children,Ml(o,i)?r=null:null!==a&&Ml(o,a)&&(n.flags|=32),null!==n.memoizedState&&(o=ko(e,n,To,null,null,t),fA.P=o),ya(e,n),sa(e,n,r,t),n.child;case 6:return null===e&&Lm&&(t=n.pendingProps,t=null==(r=(e=x()).ancestorInfo.current)||sn(t,r.tag,e.ancestorInfo.implicitRootScope),(r=!(e=Pm))||(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,Hm))?(n.stateNode=r,Bm=n,Pm=null,r=!0):r=!1,r=!r),r&&(t&&Ht(n,e),jt(n))),null;case 13:return Ta(e,n,t);case 4:return T(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 ua(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,i=(o=n.pendingProps).value,"value"in o||Qb||(Qb=!0),Xt(n,r,i),sa(e,n,o.children,t),n.child;case 9:return o=n.type.q,r=n.pendingProps.children,nr(n),o=tr(o),r=nv(r,o,void 0),n.flags|=1,sa(e,n,r,t),n.child;case 14:return la(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,o=!!(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(lo(n),(e=Pm)?null!==(t=null!==(t=Zl(e,Hm))&&t.data===ck?t:null)&&(r={dehydrated:t,treeContext:Ft(),retryLane:536870912,hydrationErrors:null},n.memoizedState=r,(r=Mt(t)).return=n,n.child=r,Bm=n,Pm=null):t=null,null===t)throw Ht(n,e),jt(n);return n.lanes=536870912,null}return pa(n,r)}var i=e.memoizedState;if(null!==i){var a=i.dehydrated;if(lo(n),o)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)&&su(n),qb||$t(e,n,t,!1),o=0!==(t&e.childLanes),qb||o){if(null!==(r=Sw)&&0!==(a=re(r,t))&&a!==i.retryLane)throw i.retryLane=a,ht(e,a),Ks(r,e,a),jb;uu(),n=ma(e,n,t)}else e=i.treeContext,Pm=ec(a.nextSibling),Bm=n,Lm=!0,Um=null,Fm=!1,Dm=null,Hm=!1,null!==e&&Dt(n,e),(n=pa(n,r)).flags|=4096;return n}return i=e.child,r={mode:r.mode,children:r.children},536870912&t&&0!==(t&e.lanes)&&su(n),(e=Et(i,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===(o=Cr())&&(o=Sw,i=ir(),o.pooledCache=i,ar(i),null!==i&&(o.pooledCacheLanes|=t),o=i),n.memoizedState={parent:r,cache:o},Kr(n),Xt(n,Xm,o)):(0!==(e.lanes&t)&&(Xr(e,n),no(n,null,null,t),eo()),o=e.memoizedState,i=n.memoizedState,o.parent!==r?(o={parent:r,cache:r},n.memoizedState=o,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=o),Xt(n,Xm,r)):(r=i.cache,Xt(n,Xm,r),r!==o.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 Pa(e){e.flags|=4}function La(e,n,t,r,o){if((n=(e.mode&km)!==ym)&&(n=!1),n){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!ou())throw Av=kv,wv;e.flags|=8192}}else e.flags&=-16777217}function Fa(e,n){if("stylesheet"!==n.type||(n.state.loading&Vk)!==Uk)e.flags&=-16777217;else if(e.flags|=16777216,!xc(n)){if(!ou())throw Av=kv,wv;e.flags|=8192}}function Da(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?_():536870912,e.lanes|=n,Xw|=n)}function Ua(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 Ha(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)if((e.mode&bm)!==ym){for(var o=e.selfBaseDuration,i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,o+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=o}else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else if((e.mode&bm)!==ym){o=e.actualDuration,i=e.selfBaseDuration;for(var a=e.child;null!==a;)t|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,o+=a.actualDuration,i+=a.treeBaseDuration,a=a.sibling;e.actualDuration=o,e.treeBaseDuration=i}else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ja(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 Ha(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(),Pa(n)):null===e||e.memoizedState.isDehydrated&&!(256&n.flags)||(n.flags|=1024,Gt())),Ha(n),null;case 26:var o=n.type,i=n.memoizedState;return null===e?(Pa(n),null!==i?(Ha(n),Fa(n,i)):(Ha(n),La(n,o,0,0,t))):i?i!==e.memoizedState?(Pa(n),Ha(n),Fa(n,i)):(Ha(n),n.flags&=-16777217):((e=e.memoizedProps)!==r&&Pa(n),Ha(n),La(n,o,0,0,t)),null;case 27:if(M(n),t=qf.current,o=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&Pa(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 Ha(n),null}e=x(),Wt(n)?qt(n):(e=uc(o,r,t,e,!0),n.stateNode=e,Pa(n))}return Ha(n),null;case 5:if(M(n),o=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&Pa(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 Ha(n),null}var a=x();if(Wt(n))qt(n);else{switch(i=qf.current,an(o,a.ancestorInfo),a=a.context,i=xl(i),a){case Sk:i=i.createElementNS(hh,o);break;case xk:i=i.createElementNS(dh,o);break;default:switch(o){case"svg":i=i.createElementNS(hh,o);break;case"math":i=i.createElementNS(dh,o);break;case"script":(i=i.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"==typeof r.is?i.createElement(o,{is:r.is}):i.createElement(o),-1===o.indexOf("-")&&(o.toLowerCase(),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||Qf.call(Mk,o)||(Mk[o]=!0))}}i[Sd]=n,i[xd]=r;e:for(a=n.child;null!==a;){if(5===a.tag||6===a.tag)i.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=i;e:switch(ml(i,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Pa(n)}}return Ha(n),La(n,n.type,null===e||e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&Pa(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=qf.current,t=x(),Wt(n)){if(e=n.stateNode,t=n.memoizedProps,o=!Fm,r=null,null!==(i=Bm))switch(i.tag){case 3:o&&null!==(o=tc(e,t,r))&&(Ut(n,0).serverProps=o);break;case 27:case 5:r=i.memoizedProps,o&&null!==(o=tc(e,t,r))&&(Ut(n,0).serverProps=o)}e[Sd]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||dl(e.nodeValue,t)))||jt(n,!0)}else null!=(o=t.ancestorInfo.current)&&sn(r,o.tag,t.ancestorInfo.implicitRootScope),(e=xl(e).createTextNode(r))[Sd]=n,n.stateNode=e}return Ha(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,Ha(n),(n.mode&bm)!==ym&&null!==t&&null!==(e=n.child)&&(n.treeBaseDuration-=e.treeBaseDuration)}else Jt(),zt(),!(128&n.flags)&&(t=n.memoizedState=null),n.flags|=4,Ha(n),(n.mode&bm)!==ym&&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?(ho(n),n):(ho(n),null);if(128&n.flags)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ha(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=r,i=Wt(n),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(i=null!==(i=n.memoizedState)?i.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.");i[Sd]=n,Ha(n),(n.mode&bm)!==ym&&null!==o&&null!==(o=n.child)&&(n.treeBaseDuration-=o.treeBaseDuration)}else Jt(),zt(),!(128&n.flags)&&(o=n.memoizedState=null),n.flags|=4,Ha(n),(n.mode&bm)!==ym&&null!==o&&null!==(o=n.child)&&(n.treeBaseDuration-=o.treeBaseDuration);o=!1}else o=Gt(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&n.flags?(ho(n),n):(ho(n),null)}return ho(n),128&n.flags?(n.lanes=t,(n.mode&bm)!==ym&&Sr(n),n):(t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(o=null,null!==(r=n.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),Da(n,n.updateQueue),Ha(n),(n.mode&bm)!==ym&&t&&null!==(e=n.child)&&(n.treeBaseDuration-=e.treeBaseDuration),null);case 4:return S(),null===e&&el(n.stateNode.containerInfo),Ha(n),null;case 10:return Qt(n.type),Ha(n),null;case 19:if(A(Jv),null===(r=n.memoizedState))return Ha(n),null;if(o=!!(128&n.flags),null===(i=r.rendering))if(o)Ua(r,!1);else{if(zw!==vw||null!==e&&128&e.flags)for(e=n.child;null!==e;){if(null!==(i=po(e))){for(n.flags|=128,Ua(r,!1),e=i.updateQueue,n.updateQueue=e,Da(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)Tt(t,e),t=t.sibling;return E(Jv,Jv.current&Gv|Yv,n),Lm&&Nt(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&nd()>tg&&(n.flags|=128,o=!0,Ua(r,!1),n.lanes=4194304)}else{if(!o)if(null!==(e=po(i))){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,Da(n,e),Ua(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!Lm)return Ha(n),null}else 2*nd()-r.renderingStartTime>tg&&536870912!==t&&(n.flags|=128,o=!0,Ua(r,!1),n.lanes=4194304);r.isBackwards?(i.sibling=n.child,n.child=i):(null!==(e=r.last)?e.sibling=i:n.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=nd(),e.sibling=null,t=Jv.current,E(Jv,t=o?t&Gv|Yv:t&Gv,n),Lm&&Nt(n,r.treeForkCount),e):(Ha(n),null);case 22:case 23:return ho(n),so(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?!!(536870912&t)&&!(128&n.flags)&&(Ha(n),6&n.subtreeFlags&&(n.flags|=8192)):Ha(n),null!==(t=n.updateQueue)&&Da(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(Vy),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),Qt(Xm),Ha(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 qa(e,n){switch(Lt(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&bm)!==ym&&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(ho(n),null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&bm)!==ym&&Sr(n),n):null;case 13:if(ho(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.");zt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&bm)!==ym&&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 ho(n),so(),null!==e&&A(Vy),65536&(e=n.flags)?(n.flags=-65537&e|128,(n.mode&bm)!==ym&&Sr(n),n):null;case 24:return Qt(Xm),null;default:return null}}function Va(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&&ho(n);break;case 13:ho(n);break;case 19:A(Jv);break;case 10:Qt(n.type);break;case 22:case 23:ho(n),so(),null!==e&&A(Vy);break;case 24:Qt(Xm)}}function Wa(e){return(e.mode&bm)!==ym}function za(e,n){Wa(e)?(Tr(),Ya(n,e),Ar()):Ya(n,e)}function Ga(e,n,t){Wa(e)?(Tr(),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 o=r.next;t=o;do{var i;(t.tag&e)===e&&(r=void 0,void 0!==(r=j(n,hv,t))&&"function"!=typeof r)&&j(n,function(e,n){},i=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 "+i+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+i+"(() => {\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!==o)}}catch(a){Cu(n,n.return,a)}}function Ja(e,n,t){try{var r=n.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;void 0!==s&&(a.destroy=void 0,j(o=n,mv,o,t,s))}r=r.next}while(r!==i)}}catch(u){Cu(n,n.return,u)}}function Ka(e,n){Wa(e)?(Tr(),Ya(n,e),Ar()):Ya(n,e)}function Xa(e,n,t){Wa(e)?(Tr(),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||Yb||(t.props,e.memoizedProps,t.state,e.memoizedState);try{j(e,oo,n,t)}catch(r){Cu(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||Yb||(n.props,e.memoizedProps,n.state,e.memoizedState);try{var o=j(e,Za,n,_i(e.type,t),r);t=Zb,void 0!==o||t.has(e.type)||(t.add(e.type),j(e,function(){})),n.de=o}catch(i){Cu(e,e.return,i)}}function $a(e,n,t){t.props=_i(e.type,e.memoizedProps),t.state=e.memoizedState,Wa(e)?(Tr(),j(e,fv,e,n,t),Ar()):j(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{Tr(),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{j(e,es,e)}catch(t){Cu(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{Tr(),j(e,r)}finally{Ar()}else j(e,r)}catch(o){Cu(e,n,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{if(Wa(e))try{Tr(),j(e,t,null)}finally{Ar()}else j(e,t,null)}catch(i){Cu(e,n,i)}else t.current=null}function rs(e,n,t,r){var o=e.memoizedProps,i=o.id,a=o.onCommit;o=o.onRender,n=null===n?"mount":"update",Ly&&(n="nested-update"),"function"==typeof o&&o(i,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,t),"function"==typeof a&&a(i,n,r,t)}function os(e,n,t,r){var o=e.memoizedProps;e=o.id,o=o.onPostCommit,n=null===n?"mount":"update",Ly&&(n="nested-update"),"function"==typeof o&&o(e,n,r,t)}function is(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{j(e,Bl,r,n,t,e)}catch(o){Cu(e,e.return,o)}}function as(e,n,t){try{j(e,Ll,e.stateNode,e.type,t,n,e)}catch(r){Cu(e,e.return,r)}}function ss(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Hl(e.type)||4===e.tag}function us(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&&Hl(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 ls(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(Ul(t),(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(e,n)):(Ul(t),(n=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(e),null!=(t=t.fe)||null!==n.onclick||(n.onclick=yn));else if(4!==r&&(27===r&&Hl(e.type)&&(t=e.stateNode,n=null),null!==(e=e.child)))for(ls(e,n,t),e=e.sibling;null!==e;)ls(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&&Hl(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=us(e),n);break;case 5:t=n.stateNode,32&n.flags&&(Fl(t),n.flags&=-33),cs(e,n=us(e),t);break;case 3:case 4:n=n.stateNode.containerInfo,ls(e,t=us(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{j(e,lc,e.type,t,n,e)}catch(r){Cu(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(),o=mr(),i=vr(),a=br(),s=t.flags;switch(t.tag){case 0:case 11:case 15:Ss(e,t),4&s&&za(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||Yb||(e.props,t.memoizedProps,e.state,t.memoizedState),Wa(t)?(Tr(),j(t,iv,t,e),Ar()):j(t,iv,t,e);else{var u=_i(t.type,n.memoizedProps);n=n.memoizedState,t.type.defaultProps||"ref"in t.memoizedProps||Yb||(e.props,t.memoizedProps,e.state,t.memoizedState),Wa(t)?(Tr(),j(t,sv,t,e,u,n,e.de),Ar()):j(t,sv,t,e,u,n,e.de)}64&s&&Qa(t),512&s&&ns(t,t.return);break;case 3:if(n=lr(),Ss(e,t),64&s&&null!==(s=t.updateQueue)){if(u=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:u=t.child.stateNode}try{j(t,oo,s,u)}catch(c){Cu(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)is(t);else if(64&s){e=t.type,n=t.memoizedProps,u=t.stateNode;try{j(t,Pl,u,e,n,t)}catch(c){Cu(t,t.return,c)}}512&s&&ns(t,t.return);break;case 12:if(4&s){s=lr(),Ss(e,t),(e=t.stateNode).effectDuration+=fr(s);try{j(t,rs,t,n,ny,e.effectDuration)}catch(c){Cu(t,t.return,c)}}else Ss(e,t);break;case 31:Ss(e,t),4&s&&bs(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.he=n;else if(e.data!==pk||t.readyState!==Ak)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e.he=r}}(e,s=Ru.bind(null,t));break;case 22:if(!(s=null!==t.memoizedState||_b)){n=null!==n&&null!==n.memoizedState||$b,u=_b;var l=$b;_b=s,($b=n)&&!l?(Ms(e,t,!!(8772&t.subtreeFlags)),(t.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&tt(t,sy,uy)):Ss(e,t),_b=u,$b=l}break;case 30:break;default:Ss(e,t)}(t.mode&bm)!==ym&&0<=sy&&0<=uy&&((cy||.05<ay)&&it(t,sy,uy,ay,ly),null===t.alternate&&null!==t.return&&null!==t.return.alternate&&.05<uy-sy&&(hs(t.return.alternate,t.return)||nt(t,sy,uy,"Mount"))),pr(r),yr(o),ly=i,cy=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.we=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ys(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(l){dd||(dd=!0)}var r=hr(),o=mr(),i=vr(),a=br();switch(t.tag){case 26:$b||ts(t,n),ys(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(e=t.stateNode).parentNode.removeChild(e);break;case 27:$b||ts(t,n);var s=iw,u=aw;Hl(t.type)&&(iw=t.stateNode,aw=!1),ys(e,n,t),j(t,cc,t.stateNode),iw=s,aw=u;break;case 5:$b||ts(t,n);case 6:if(s=iw,u=aw,iw=null,ys(e,n,t),aw=u,null!==(iw=s))if(aw)try{j(t,ql,iw,t.stateNode)}catch(c){Cu(t,n,c)}else try{j(t,jl,iw,t.stateNode)}catch(c){Cu(t,n,c)}break;case 18:null!==iw&&(aw?(Vl(9===(e=iw).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),_c(e)):Vl(iw,t.stateNode));break;case 4:s=iw,u=aw,iw=t.stateNode.containerInfo,aw=!0,ys(e,n,t),iw=s,aw=u;break;case 0:case 11:case 14:case 15:Ja(Xv,t,n),$b||Ga(t,n,Qv),ys(e,n,t);break;case 1:$b||(ts(t,n),"function"==typeof(s=t.stateNode).componentWillUnmount&&$a(t,n,s)),ys(e,n,t);break;case 21:ys(e,n,t);break;case 22:$b=(s=$b)||null!==t.memoizedState,ys(e,n,t),$b=s;break;default:ys(e,n,t)}(t.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(t,sy,uy,ay,ly),pr(r),yr(o),ly=i,cy=a}function bs(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{j(n,ac,e)}catch(t){Cu(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{j(n,sc,e)}catch(t){Cu(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).le)&&(n=e.le=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===ow)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Du(ow,rw)}var r=Nu.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 o=e,i=n,a=t[r],s=hr(),u=i;e:for(;null!==u;){switch(u.tag){case 27:if(Hl(u.type)){iw=u.stateNode,aw=!1;break e}break;case 5:iw=u.stateNode,aw=!1;break e;case 3:case 4:iw=u.stateNode.containerInfo,aw=!0;break e}u=u.return}if(null===iw)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vs(o,i,a),iw=null,aw=!1,(a.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&nt(a,sy,uy,"Unmount"),pr(s),null!==(i=(o=a).alternate)&&(i.return=null),o.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(),o=vr(),i=br(),a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ks(n,e),Es(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),Es(e),512&s&&($b||null===a||ts(a,a.return)),64&s&&_b&&null!==(s=e.updateQueue)&&null!==(a=s.callbacks)){var u=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=null===u?a:u.concat(a)}break;case 26:if(u=sw,ks(n,e),Es(e),512&s&&($b||null===a||ts(a,a.return)),4&s){var l=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,u=u.ownerDocument||u;n:switch(s){case"title":(!(l=u.getElementsByTagName("title")[0])||l[Nd]||l[Sd]||l.namespaceURI===hh||l.hasAttribute("itemprop"))&&(l=u.createElement(s),u.head.insertBefore(l,u.querySelector("head > title"))),ml(l,s,a),l[Sd]=e,me(l),s=l;break e;case"link":var c=Tc("link","href",u).get(s+(a.href||""));if(c)for(var f=0;f<c.length;f++)if((l=c[f]).getAttribute("href")===(null==a.href||""===a.href?null:a.href)&&l.getAttribute("rel")===(null==a.rel?null:a.rel)&&l.getAttribute("title")===(null==a.title?null:a.title)&&l.getAttribute("crossorigin")===(null==a.crossOrigin?null:a.crossOrigin)){c.splice(f,1);break n}ml(l=u.createElement(s),s,a),u.head.appendChild(l);break;case"meta":if(c=Tc("meta","content",u).get(s+(a.content||"")))for(f=0;f<c.length;f++)if(l=c[f],z(a.content),l.getAttribute("content")===(null==a.content?null:""+a.content)&&l.getAttribute("name")===(null==a.name?null:a.name)&&l.getAttribute("property")===(null==a.property?null:a.property)&&l.getAttribute("http-equiv")===(null==a.httpEquiv?null:a.httpEquiv)&&l.getAttribute("charset")===(null==a.charSet?null:a.charSet)){c.splice(f,1);break n}ml(l=u.createElement(s),s,a),u.head.appendChild(l);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}l[Sd]=e,me(l),s=l}e.stateNode=s}else Sc(u,e.type,e.stateNode);else e.stateNode=gc(u,s,e.memoizedProps);else l!==s?(null===l?null!==a.stateNode&&(a=a.stateNode).parentNode.removeChild(a):l.count--,null===s?Sc(u,e.type,e.stateNode):gc(u,s,e.memoizedProps)):null===s&&null!==e.stateNode&&as(e,e.memoizedProps,a.memoizedProps)}break;case 27:ks(n,e),Es(e),512&s&&($b||null===a||ts(a,a.return)),null!==a&&4&s&&as(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ks(n,e),Es(e),512&s&&($b||null===a||ts(a,a.return)),32&e.flags){u=e.stateNode;try{j(e,Fl,u)}catch(m){Cu(e,e.return,m)}}4&s&&null!=e.stateNode&&as(e,u=e.memoizedProps,null!==a?a.memoizedProps:u),1024&s&&(ew=!0,e.type);break;case 6:if(ks(n,e),Es(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,u=e.stateNode;try{j(e,Dl,u,a,s)}catch(m){Cu(e,e.return,m)}}break;case 3:if(u=lr(),rA=null,l=sw,sw=fc(n.containerInfo),ks(n,e),sw=l,Es(e),4&s&&null!==a&&a.memoizedState.isDehydrated)try{j(e,ic,n.containerInfo)}catch(m){Cu(e,e.return,m)}ew&&(ew=!1,Ts(e)),n.effectDuration+=cr(u);break;case 4:s=sw,sw=fc(e.stateNode.containerInfo),ks(n,e),Es(e),sw=s;break;case 12:s=lr(),ks(n,e),Es(e),e.stateNode.effectDuration+=fr(s);break;case 31:case 19:ks(n,e),Es(e),4&s&&null!==(s=e.updateQueue)&&(e.updateQueue=null,gs(e,s));break;case 13:ks(n,e),Es(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:u=null!==e.memoizedState;var d=null!==a&&null!==a.memoizedState,h=_b,p=$b;if(_b=h||u,$b=p||d,ks(n,e),$b=p,_b=h,d&&!u&&!h&&!p&&(e.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&tt(e,sy,uy),Es(e),8192&s)e:for(n=e.stateNode,n.ae=u?n.ae&~um:n.ae|um,!u||null===a||d||_b||$b||(Cs(e),(e.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&nt(e,sy,uy,"Disconnect")),a=null,n=e;;){if(5===n.tag||26===n.tag){if(null===a){d=a=n;try{l=d.stateNode,u?j(d,Gl,l):j(d,Kl,d.stateNode,d.memoizedProps)}catch(m){Cu(d,d.return,m)}}}else if(6===n.tag){if(null===a){d=n;try{c=d.stateNode,u?j(d,Yl,c):j(d,Xl,c,d.memoizedProps)}catch(m){Cu(d,d.return,m)}}}else if(18===n.tag){if(null===a){d=n;try{f=d.stateNode,u?j(d,zl,f):j(d,Jl,d.stateNode)}catch(m){Cu(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),Es(e)}(e.mode&bm)!==ym&&0<=sy&&0<=uy&&((cy||.05<ay)&&it(e,sy,uy,ay,ly),null===e.alternate&&null!==e.return&&null!==e.return.alternate&&.05<uy-sy&&(hs(e.return.alternate,e.return)||nt(e,sy,uy,"Mount"))),pr(t),yr(r),ly=o,cy=i}function Es(e){var n=e.flags;if(2&n){try{j(e,fs,e)}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Ts(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var n=e;Ts(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 xs(e){var n=hr(),t=mr(),r=vr(),o=br();switch(e.tag){case 0:case 11:case 14:case 15:Ga(e,e.return,Qv),Cs(e);break;case 1:ts(e,e.return);var i=e.stateNode;"function"==typeof i.componentWillUnmount&&$a(e,e.return,i),Cs(e);break;case 27:j(e,cc,e.stateNode);case 26:case 5:ts(e,e.return),Cs(e);break;case 22:null===e.memoizedState&&Cs(e);break;default:Cs(e)}(e.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(e,sy,uy,ay,ly),pr(n),yr(t),ly=r,cy=o}function Cs(e){for(e=e.child;null!==e;)xs(e),e=e.sibling}function Is(e,n,t,r){var o=hr(),i=mr(),a=vr(),s=br(),u=t.flags;switch(t.tag){case 0:case 11:case 15:Ms(e,t,r),za(t,Qv);break;case 1:if(Ms(e,t,r),"function"==typeof(n=t.stateNode).componentDidMount&&j(t,iv,t,n),null!==(n=t.updateQueue)){e=t.stateNode;try{j(t,ro,n,e)}catch(l){Cu(t,t.return,l)}}r&&64&u&&Qa(t),ns(t,t.return);break;case 27:ds(t);case 26:case 5:Ms(e,t,r),r&&null===n&&4&u&&is(t),ns(t,t.return);break;case 12:if(r&&4&u){u=lr(),Ms(e,t,r),(r=t.stateNode).effectDuration+=fr(u);try{j(t,rs,t,n,ny,r.effectDuration)}catch(l){Cu(t,t.return,l)}}else Ms(e,t,r);break;case 31:Ms(e,t,r),r&&4&u&&bs(e,t);break;case 13:Ms(e,t,r),r&&4&u&&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&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(t,sy,uy,ay,ly),pr(o),yr(i),ly=a,cy=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,o){if(10256&n.subtreeFlags||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child))for(n=n.child;null!==n;){var i=n.sibling;Bs(e,n,t,r,null!==i?i.actualStartTime:o),n=i}}function Bs(e,n,t,r,o){var i=hr(),a=mr(),s=vr(),u=br(),l=tm,c=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&bm)!==ym&&0<n.actualStartTime&&1&n.flags&&rt(n,n.actualStartTime,o,uw,t),Ns(e,n,t,r,o),2048&c&&Ka(n,Zv|Kv);break;case 1:(n.mode&bm)!==ym&&0<n.actualStartTime&&(128&n.flags?ot(n,n.actualStartTime,o,[]):1&n.flags&&rt(n,n.actualStartTime,o,uw,t)),Ns(e,n,t,r,o);break;case 3:var f=lr(),d=uw;uw=null!==n.alternate&&n.alternate.memoizedState.isDehydrated&&!(256&n.flags),Ns(e,n,t,r,o),uw=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=lr(),Ns(e,n,t,r,o),(e=n.stateNode).passiveEffectDuration+=fr(c);try{j(n,os,n,n.alternate,ny,e.passiveEffectDuration)}catch(h){Cu(n,n.return,h)}}else Ns(e,n,t,r,o);break;case 31:c=uw,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?(uw=!1,null!==(f=f.hydrationErrors)&&ot(n,n.actualStartTime,o,f)):uw=!0:uw=!1,Ns(e,n,t,r,o),uw=c;break;case 13:c=uw,f=null!==n.alternate?n.alternate.memoizedState:null,d=n.memoizedState,null===f||null===f.dehydrated||null!==d&&null!==d.dehydrated?uw=!1:null!==(d=n.deletions)&&0<d.length&&18===d[0].tag?(uw=!1,null!==(f=f.hydrationErrors)&&ot(n,n.actualStartTime,o,f)):uw=!0,Ns(e,n,t,r,o),uw=c;break;case 23:break;case 22:d=n.stateNode,f=n.alternate,null!==n.memoizedState?d.ae&lm?Ns(e,n,t,r,o):Fs(e,n,t,r,o):d.ae&lm?Ns(e,n,t,r,o):(d.ae|=lm,Ps(e,n,t,r,!!(10256&n.subtreeFlags)||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child),o),(n.mode&bm)===ym||uw||(0<=(e=n.actualStartTime)&&.05<o-e&&tt(n,e,o),0<=sy&&0<=uy&&.05<uy-sy&&tt(n,sy,uy))),2048&c&&Os(f,n);break;case 24:Ns(e,n,t,r,o),2048&c&&Rs(n.alternate,n);break;default:Ns(e,n,t,r,o)}(n.mode&bm)!==ym&&((e=!uw&&null===n.alternate&&null!==n.return&&null!==n.return.alternate)&&0<=(t=n.actualStartTime)&&.05<o-t&&nt(n,t,o,"Mount"),0<=sy&&0<=uy&&((cy||.05<ay)&&it(n,sy,uy,ay,ly),e&&.05<uy-sy&&nt(n,sy,uy,"Mount"))),pr(i),yr(a),ly=s,cy=u,tm=l}function Ps(e,n,t,r,o,i){for(o=o&&(!!(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,o,null!==a?a.actualStartTime:i),n=a}}function Ls(e,n,t,r,o,i){var a=hr(),s=mr(),u=vr(),l=br(),c=tm;o&&(n.mode&bm)!==ym&&0<n.actualStartTime&&1&n.flags&&rt(n,n.actualStartTime,i,uw,t);var f=n.flags;switch(n.tag){case 0:case 11:case 15:Ps(e,n,t,r,o,i),Ka(n,Zv);break;case 23:break;case 22:var d=n.stateNode;null!==n.memoizedState?d.ae&lm?Ps(e,n,t,r,o,i):Fs(e,n,t,r,i):(d.ae|=lm,Ps(e,n,t,r,o,i)),o&&2048&f&&Os(n.alternate,n);break;case 24:Ps(e,n,t,r,o,i),o&&2048&f&&Rs(n.alternate,n);break;default:Ps(e,n,t,r,o,i)}(n.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(n,sy,uy,ay,ly),pr(a),yr(s),ly=u,cy=l,tm=c}function Fs(e,n,t,r,o){if(10256&n.subtreeFlags||0!==n.actualDuration&&(null===n.alternate||n.alternate.child!==n.child))for(var i=n.child;null!==i;){var a=e,s=t,u=r,l=null!==(n=i.sibling)?n.actualStartTime:o,c=tm;(i.mode&bm)!==ym&&0<i.actualStartTime&&1&i.flags&&rt(i,i.actualStartTime,l,uw,s);var f=i.flags;switch(i.tag){case 22:Fs(a,i,s,u,l),2048&f&&Os(i.alternate,i);break;case 24:Fs(a,i,s,u,l),2048&f&&Rs(i.alternate,i);break;default:Fs(a,i,s,u,l)}tm=c,i=n}}function Ds(e,n,t){if(e.subtreeFlags&lw)for(e=e.child;null!==e;)Us(e,n,t),e=e.sibling}function Us(e,n,t){switch(e.tag){case 26:Ds(e,n,t),e.flags&lw&&null!==e.memoizedState&&function(e,n,t,r){if("stylesheet"===t.type&&("string"!=typeof r.media||!1!==matchMedia(r.media).matches)&&(t.state.loading&Vk)===Uk){if(null===t.instance){var o=mc(r.href),i=n.querySelector(yc(o));if(i)return null!==(n=i.pe)&&"object"==typeof n&&"function"==typeof n.then&&(e.count++,e=Cc.bind(e),n.then(e,e)),t.state.loading|=Vk,t.instance=i,void me(i);i=n.ownerDocument||n,r=vc(r),(o=Wk.get(o))&&Ac(r,o),me(i=i.createElement("link"));var a=i;a.pe=new Promise(function(e,n){a.onload=e,a.onerror=n}),ml(i,"link",r),t.instance=i}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&(t.state.loading&qk)===Uk&&(e.count++,t=Cc.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}(t,sw,e.memoizedState,e.memoizedProps);break;case 5:default:Ds(e,n,t);break;case 3:case 4:var r=sw;sw=fc(e.stateNode.containerInfo),Ds(e,n,t),sw=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=lw,lw=16777216,Ds(e,n,t),lw=r):Ds(e,n,t))}}function Hs(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 js(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t],o=hr();tw=r,zs(r,e),(r.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&nt(r,sy,uy,"Unmount"),pr(o)}Hs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)qs(e),e=e.sibling}function qs(e){var n=hr(),t=mr(),r=vr(),o=br();switch(e.tag){case 0:case 11:case 15:js(e),2048&e.flags&&Xa(e,e.return,Zv|Kv);break;case 3:var i=lr();js(e),e.stateNode.passiveEffectDuration+=cr(i);break;case 12:i=lr(),js(e),e.stateNode.passiveEffectDuration+=fr(i);break;case 22:i=e.stateNode,null!==e.memoizedState&&i.ae&lm&&(null===e.return||13!==e.return.tag)?(i.ae&=~lm,Vs(e),(e.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&nt(e,sy,uy,"Disconnect")):js(e);break;default:js(e)}(e.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(e,sy,uy,ay,ly),pr(n),yr(t),cy=o,ly=r}function Vs(e){var n=e.deletions;if(16&e.flags){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t],o=hr();tw=r,zs(r,e),(r.mode&bm)!==ym&&0<=sy&&0<=uy&&.05<uy-sy&&nt(r,sy,uy,"Unmount"),pr(o)}Hs(e)}for(e=e.child;null!==e;)Ws(e),e=e.sibling}function Ws(e){var n=hr(),t=mr(),r=vr(),o=br();switch(e.tag){case 0:case 11:case 15:Xa(e,e.return,Zv),Vs(e);break;case 22:var i=e.stateNode;i.ae&lm&&(i.ae&=~lm,Vs(e));break;default:Vs(e)}(e.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(e,sy,uy,ay,ly),pr(n),yr(t),cy=o,ly=r}function zs(e,n){for(;null!==tw;){var t=tw,r=t,o=n,i=hr(),a=mr(),s=vr(),u=br();switch(r.tag){case 0:case 11:case 15:Xa(r,o,Zv);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&null!=(o=r.memoizedState.cachePool.pool)&&ar(o);break;case 24:sr(r.memoizedState.cache)}if((r.mode&bm)!==ym&&0<=sy&&0<=uy&&(cy||.05<ay)&&it(r,sy,uy,ay,ly),pr(i),yr(a),cy=u,ly=s,null!==(r=t.child))r.return=t,tw=r;else e:for(t=e;null!==tw;){if(i=(r=tw).sibling,a=r.return,ms(r),r===t){tw=null;break e}if(null!==i){i.return=a,tw=i;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((Tw&mw)!==pw&&0!==Cw)return Cw&-Cw;var n=Bf.T;return null!==n?(n.ne||(n.ne=/* @__PURE__ */new Set),n.ne.add(e),Ju()):ue()}function Js(){if(0===Kw)if(536870912&Cw&&!Lm)Kw=536870912;else{var e=bd;!(3932160&(bd<<=1))&&(bd=262144),Kw=e}return null!==(e=Wv.current)&&(e.flags|=32),Kw}function Ks(e,n,t){if(Rg&&(Ng=!0),(e!==Sw||Uw!==Ow&&Uw!==Dw)&&null===e.cancelPendingCommit||(tu(e,0),_s(e,Cw,Kw,!1)),ee(e,t),(Tw&mw)!==pw&&e===Sw){if(Xf)switch(n.tag){case 0:case 11:case 15:e=xw&&g(xw)||"Unknown",Ug.has(e)||(Ug.add(e),n=g(n)||"Unknown");break;case 1:Dg||(Dg=!0)}}else hd&&ie(e,n,t),function(e){Gs()&&null===Bf.actQueue&&j(e,function(){})}(n),e===Sw&&((Tw&mw)===pw&&(Yw|=t),zw===kw&&_s(e,Cw,Kw,!1)),Uu(e)}function Xs(e,n,t){if((Tw&(mw|yw))!==pw)throw Error("Should not already be working.");if(0!==Cw&&null!==xw){var r=xw,o=nd();switch(By){case Rw:case Ow:var i=Py;_p&&(r=r.K)&&r.run(function(){}.bind());break;case Dw:i=Py,_p&&(r=r.K)&&r.run(function(){}.bind());break;default:_p&&(r=o-Py)}}i=(t=!t&&!(127&n)&&0===(n&e.expiredLanes)||Q(e,n))?function(e,n){var t=Tw;Tw|=mw;var r=iu(),o=au();if(Sw!==e||Cw!==n){if(hd){var i=e.memoizedUpdaters;0<i.size&&(Du(e,Cw),i.clear()),ae(e,n)}og=null,tg=nd()+rg,tu(e,n)}else qw=Q(e,n);e:for(;;)try{if(Uw!==Iw&&null!==xw)n:switch(n=xw,i=Hw,Uw){case Mw:Uw=Iw,Hw=null,mu(e,n,i,Mw);break;case Ow:case Dw:if(Or(i)){Uw=Iw,Hw=null,hu(n);break}n=function(){Uw!==Ow&&Uw!==Dw||Sw!==e||(Uw=Lw),Uu(e)},i.then(n,n);break e;case Rw:Uw=Lw;break e;case Nw:Uw=Bw;break e;case Lw:Or(i)?(Uw=Iw,Hw=null,hu(n)):(Uw=Iw,Hw=null,mu(e,n,i,Lw));break;case Bw:var a=null;switch(xw.tag){case 26:a=xw.memoizedState;case 5:case 27:var s=xw;if(a?xc(a):s.stateNode.complete){Uw=Iw,Hw=null;var u=s.sibling;if(null!==u)xw=u;else{var l=s.return;null!==l?(xw=l,yu(l)):xw=null}break n}}Uw=Iw,Hw=null,mu(e,n,i,Bw);break;case Pw:Uw=Iw,Hw=null,mu(e,n,i,Pw);break;case Fw:eu(),zw=Aw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==Bf.actQueue?cu():fu();break}catch(c){ru(e,c)}return Kt(),Bf.H=r,Bf.A=o,Tw=t,null!==xw?vw:(Sw=null,Cw=0,ct(),zw)}(e,n):lu(e,n,!0);for(var a=t;;){if(i===vw){qw&&!t&&_s(e,n,0,!1),n=Uw,Py=Qm(),By=n;break}if(r=nd(),o=e.current.alternate,!a||Zs(o)){if(i===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),ut(ey,r,0,ig),nu(n,r),n=s;e:{i=a,a=Qw;var u=(r=e).current.memoizedState.isDehydrated;if(u&&(tu(r,s).flags|=256),(s=lu(r,s,!1))!==ww){if(Vw&&!u){r.errorRecoveryDisabledLanes|=i,Yw|=i,i=kw;break e}r=Zw,Zw=a,null!==r&&(null===Zw?Zw=r:Zw.push.apply(Zw,r))}i=s}if(a=!1,i!==ww)continue;r=nd()}}if(i===bw){et(n),ut(ey,r,0,ig),nu(n,r),tu(e,0),_s(e,n,0,!0);break}e:{switch(t=e,i){case vw:case bw:throw Error("Root did not complete. This is a bug in React.");case kw:if((4194048&n)!==n)break;case Aw:et(n),at(ey,r,n,ig),nu(n,r),127&(o=n)?gy=r:4194048&o&&(Ry=r),_s(t,n,Kw,!jw);break e;case ww:Zw=null;break;case gw:case Ew:break;default:throw Error("Unknown root exit status.")}if(null!==Bf.actQueue)bu(t,o,n,Zw,og,_w,Kw,Yw,Xw,i,0,null,ey,r);else{if((62914560&n)===n&&10<(a=$w+ng-nd())){if(_s(t,n,Kw,!jw),0!==X(t,0,!0))break e;gg=n,t.timeoutHandle=Nk(Qs.bind(null,t,o,Zw,og,_w,n,Kw,Yw,Xw,jw,i,"Throttled",ey,r),a);break e}Qs(t,o,Zw,og,_w,n,Kw,Yw,Xw,jw,i,null,ey,r)}}break}et(n),o=ey,i=r,!_p||i<=o||ig&&ig.run(function(){}.bind()),nu(n,r),i=lu(e,n,!1),a=!1}Uu(e)}function Qs(e,n,t,r,o,i,a,s,u,l,c,f,d,h){e.timeoutHandle=Pk;var p,m,y=n.subtreeFlags,v=null;if((8192&y||!(16785408&~y))&&(Us(n,i,v={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn}),y=(62914560&i)===i?$w-nd():(4194048&i)===i?eg-nd():0,m=y,(p=v).stylesheets&&0===p.count&&Ic(p,p.stylesheets),y=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()}},oA+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 o=t[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&Sl(a)){for(a=0,s=o.responseEnd,r+=1;r<t.length;r++){var u=t[r],l=u.startTime;if(l>s)break;var c=u.transferSize,f=u.initiatorType;c&&Sl(f)&&(a+=c*((u=u.responseEnd)<s?1:(s-l)/(u-l)))}if(--r,n+=8*(i+a)/(o.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:iA)+m);return p.unsuspend=e,function(){p.unsuspend=null,clearTimeout(n),clearTimeout(t)}}:null,null!==y))return gg=i,e.cancelPendingCommit=y(bu.bind(null,e,n,i,t,r,o,a,s,u,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,i,a,!l);bu(e,n,i,t,r,o,a,s,u,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 o=t[r],i=o.getSnapshot;o=o.value;try{if(!kp(i(),o))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 o=n;0<o;){var i=31-pd(o),a=1<<i;r[i]=-1,o&=~a}0!==t&&ne(e,t,n)}function $s(){return(Tw&(mw|yw))!==pw||(Hu(0),!1)}function eu(){if(null!==xw){if(Uw===Iw)var e=xw.return;else e=xw,Kt(),Co(e),Tv=null,Sv=0,e=xw;for(;null!==e;)Va(e.alternate,e),e=e.return;xw=null}}function nu(e,n){127&e&&(fy=n),4194048&e&&(ky=n)}function tu(e,n){var t=ey;if(ey=Qm(),0!==Cw&&0<t){if(et(Cw),zw===gw||zw===kw)at(t,ey,n,ig);else{var r=ey,o=ig;if(_p&&!(r<=t)){var i=(738197653&n)===n?"tertiary-dark":"primary-dark",a=(536870912&n)===n?"Prewarm":(201326741&n)===n?"Interrupted Hydration":"Interrupted Render";o&&o.run(function(){}.bind())}}nu(Cw,ey)}if(t=ig,ig=null,127&n){ig=hy,o=0<=dy&&dy<fy?fy:dy,i=0<=(r=0<=vy&&vy<fy?fy:vy)?r:0<=o?o:ey,0<=gy&&(et(2),st(gy,i,n,t)),t=o;var s=r,u=by,l=0<wy,c=py===_m,f=py===$m;o=ey,r=hy,i=my,a=yy,_p&&(nm="Blocking",0<t?t>o&&(t=o):t=o,0<s?s>t&&(s=t):s=t,null!==u&&t>s&&r&&r.run(function(){}.bind()),o>t&&(s=c?"error":(738197653&n)===n?"tertiary-light":"primary-light",c=f?"Promise Resolved":c?"Cascading Update":5<o-t?"Update Blocked":"Update",f=[],null!=a&&f.push(["Component name",a]),null!=i&&f.push(["Method name",i]),t={start:t,end:o,detail:{devtools:{properties:f,track:nm,trackGroup:em,color:s}}},r?r.run(performance.measure.bind(performance,c,t)):performance.measure(c,t))),dy=-1.1,py=0,yy=my=null,gy=-1.1,wy=vy,vy=-1.1,fy=Qm()}if(4194048&n&&(ig=Sy,o=0<=Ay&&Ay<ky?ky:Ay,t=0<=Ey&&Ey<ky?ky:Ey,i=0<=(r=0<=Iy&&Iy<ky?ky:Iy)?r:0<=t?t:ey,0<=Ry&&(et(256),st(Ry,i,n,ig)),f=r,s=My,u=0<Oy,l=Ty===$m,i=ey,r=Sy,a=xy,c=Cy,_p&&(nm="Transition",0<t?t>i&&(t=i):t=i,0<o?o>t&&(o=t):o=t,0<f?f>o&&(f=o):f=o,o>f&&null!==s&&r&&r.run(function(){}.bind()),t>o&&r&&r.run(function(){}.bind()),i>t&&(o=l?"Promise Resolved":5<i-t?"Update Blocked":"Update",f=[],null!=c&&f.push(["Component name",c]),null!=a&&f.push(["Method name",a]),t={start:t,end:i,detail:{devtools:{properties:f,track:nm,trackGroup:em,color:"primary-light"}}},r?r.run(performance.measure.bind(performance,o,t)):performance.measure(o,t))),Ey=Ay=-1.1,Ty=0,Ry=-1.1,Oy=Iy,Iy=-1.1,ky=Qm()),62914560&n&&62914560&Ny&&et(4194304),2080374784&n&&2080374784&Ny&&et(268435456),(t=e.timeoutHandle)!==Pk&&(e.timeoutHandle=Pk,Bk(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),gg=0,eu(),Sw=e,xw=t=Et(e.current,null),Cw=n,Uw=Iw,Hw=null,jw=!1,qw=Q(e,n),Vw=!1,zw=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;)i=1<<(o=31-pd(r)),n|=e[o],r&=~i;return Ww=n,ct(),1e3<(e=qp())-Hp&&(Bf.recentlyCreatedOwnerStacks=0,Hp=e),Wy.discardPendingWarnings(),t}function ru(e,n){rb=null,Bf.H=bb,Bf.getCurrentStack=null,Xf=!1,Kf=null,n===bv||n===gv?(n=Br(),Uw=Rw):n===wv?(n=Br(),Uw=Nw):Uw=n===jb?Fw:null!==n&&"object"==typeof n&&"function"==typeof n.then?Pw:Mw,Hw=n;var t=xw;null===t?(zw=bw,ta(e,Rt(n,e.current))):t.mode&bm&&gr(t)}function ou(){var e=Wv.current;return null===e||((4194048&Cw)===Cw?null===zv:!!((62914560&Cw)===Cw||536870912&Cw)&&e===zv)}function iu(){var e=Bf.H;return Bf.H=bb,null===e?bb:e}function au(){var e=Bf.A;return Bf.A=cw,e}function su(e){null===ig&&(ig=null==e.K?null:e.K)}function uu(){zw=kw,jw||(4194048&Cw)!==Cw&&null!==Wv.current||(qw=!0),!(134217727&Gw)&&!(134217727&Yw)||null===Sw||_s(Sw,Cw,Kw,!1)}function lu(e,n,t){var r=Tw;Tw|=mw;var o=iu(),i=au();if(Sw!==e||Cw!==n){if(hd){var a=e.memoizedUpdaters;0<a.size&&(Du(e,Cw),a.clear()),ae(e,n)}og=null,tu(e,n)}n=!1,a=zw;e:for(;;)try{if(Uw!==Iw&&null!==xw){var s=xw,u=Hw;switch(Uw){case Fw:eu(),a=Aw;break e;case Rw:case Ow:case Dw:case Pw:null===Wv.current&&(n=!0);var l=Uw;if(Uw=Iw,Hw=null,mu(e,s,u,l),t&&qw){a=vw;break e}break;default:l=Uw,Uw=Iw,Hw=null,mu(e,s,u,l)}}cu(),a=zw;break}catch(c){ru(e,c)}return n&&e.shellSuspendCounter++,Kt(),Tw=r,Bf.H=o,Bf.A=i,null===xw&&(Sw=null,Cw=0,ct()),a}function cu(){for(;null!==xw;)du(xw)}function fu(){for(;null!==xw&&!$f();)du(xw)}function du(e){var n=e.alternate;(e.mode&bm)!==ym?(wr(e),n=j(e,Ba,n,e,Ww),gr(e)):n=j(e,Ba,n,e,Ww),e.memoizedProps=e.pendingProps,null===n?yu(e):xw=n}function hu(e){var n=j(e,pu,e);e.memoizedProps=e.pendingProps,null===n?yu(e):xw=n}function pu(e){var n=e.alternate,t=(e.mode&bm)!==ym;switch(t&&wr(e),e.tag){case 15:case 0:n=ba(n,e,e.pendingProps,e.type,void 0,Cw);break;case 11:n=ba(n,e,e.pendingProps,e.type.render,e.ref,Cw);break;case 5:Co(e);default:Va(n,e),n=Ba(n,e=xw=Tt(e,Ww),Ww)}return t&&gr(e),n}function mu(e,n,t,r){Kt(),Co(n),Tv=null,Sv=0;var o=n.return;try{if(function(e,n,t,r,o){if(t.flags|=32768,hd&&Du(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(n=t.alternate)&&$t(n,t,o,!0),Lm&&(Fm=!0),null!==(t=Wv.current)){switch(t.tag){case 31:case 13:return null===zv?uu():null===t.alternate&&zw===vw&&(zw=gw),t.flags&=-257,t.flags|=65536,t.lanes=o,r===kv?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=/* @__PURE__ */new Set([r]):n.add(r),Iu(e,r,o)),!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),Iu(e,r,o)),!1}throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}return Iu(e,r,o),uu(),!1}if(Lm)return Fm=!0,null!==(n=Wv.current)?(!(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=o,r!==jm&&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!==jm&&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,o&=-o,e.lanes|=o,r=Rt(r,t),$r(e,o=oa(e.stateNode,r,o)),zw!==kw&&(zw=ww)),!1;var i=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=[i]:Qw.push(i),zw!==kw&&(zw=ww),null===n)return!0;r=Rt(r,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=o&-o,t.lanes|=e,$r(t,e=oa(t.stateNode,r,e)),!1;case 1:if(n=t.type,i=t.stateNode,!(128&t.flags||"function"!=typeof n.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==ag&&ag.has(i))))return t.flags|=65536,o&=-o,t.lanes|=o,aa(o=ia(o),e,t,r),$r(t,o),!1}t=t.return}while(null!==t);return!1}(e,o,n,t,Cw))return zw=bw,ta(e,Rt(t,e.current)),void(xw=null)}catch(i){if(null!==o)throw xw=o,i;return zw=bw,ta(e,Rt(t,e.current)),void(xw=null)}32768&n.flags?(Lm||r===Mw?e=!0:qw||536870912&Cw?e=!1:(jw=e=!0,(r===Ow||r===Dw||r===Rw||r===Pw)&&null!==(r=Wv.current)&&13===r.tag&&(r.flags|=16384)),vu(n,e)):yu(n)}function yu(e){var n=e;do{if(32768&n.flags)return void vu(n,jw);var t=n.alternate;if(e=n.return,wr(n),t=j(n,ja,t,n,Ww),(n.mode&bm)!==ym&&kr(n),null!==t)return void(xw=t);if(null!==(n=n.sibling))return void(xw=n);xw=n=e}while(null!==n);zw===vw&&(zw=Ew)}function vu(e,n){do{var t=qa(e.alternate,e);if(null!==t)return t.flags&=32767,void(xw=t);if((e.mode&bm)!==ym){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(xw=e);xw=e=t}while(null!==e);zw=Aw,xw=null}function bu(e,n,t,r,o,i,a,s,u,l,c,f,d,h){e.cancelPendingCommit=null;do{Tu()}while(vg!==fg);if(Wy.flushLegacyContextWarning(),Wy.flushPendingUnsafeLifecycleWarnings(),(Tw&(mw|yw))!==pw)throw Error("Should not already be working.");if(et(t),l===ww?ut(d,h,0,ig):null!==r?function(e,n,t,r,o,i){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:o?"Hydration Failed":"Recovered after Error",properties:t}}},i?i.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),ig):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,ig),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(i=n.lanes|n.childLanes,function(e,n,t,r,o,i){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,u=e.expirationTimes,l=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-pd(t),f=1<<c;s[c]=0,u[c]=-1;var d=l[c];if(null!==d)for(l[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!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~n))}(e,t,i|=dm,a,s,u),e===Sw&&(xw=Sw=null,Cw=0),wg=n,bg=e,gg=t,kg=i,Eg=o,Tg=r,Ag=h,Sg=f,xg=sg,Cg=null,0!==n.actualDuration||10256&n.subtreeFlags||10256&n.flags?(e.callbackNode=null,e.callbackPriority=0,m=id,y=function(){return Rk=window.event,xg===sg&&(xg=lg),Su(),null},null!==(v=Bf.actQueue)?v.push(y):Zf(m,y)):(e.callbackNode=null,e.callbackPriority=0),ry=null,ny=Qm(),null!==f&&(p=ig,!_p||ny<=h||p&&p.run(function(){}.bind())),r=!!(13878&n.flags),13878&n.subtreeFlags||r){r=Bf.T,Bf.T=null,o=Pf.p,Pf.p=gd,a=Tw,Tw|=yw;try{!function(e,n){if(e=e.containerInfo,Ck=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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch(p){t=null;break e}var a=0,s=-1,u=-1,l=0,c=0,f=e,d=null;n:for(;;){for(var h;f!==t||0!==o&&3!==f.nodeType||(s=a+o),f!==i||0!==r&&3!==f.nodeType||(u=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&&++l===o&&(s=a),d===i&&++c===r&&(u=a),null!==(h=f.nextSibling))break;d=(f=d).parentNode}f=h}t=-1===s||-1===u?null:{start:s,end:u}}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,o=e.flags,e.tag){case 0:if(4&o&&null!==(e=null!==(e=e.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:1024&o&&null!==t&&_a(e,t);break;case 3:if(1024&o)if(9===(t=(e=e.stateNode.containerInfo).nodeType))Ql(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ql(e);break;default:e.textContent=""}break;default:if(1024&o)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{Tw=a,Pf.p=o,Bf.T=r}}vg=dg,wu(),gu(),ku()}var p,m,y,v}function wu(){if(vg===dg){vg=fg;var e=bg,n=wg,t=gg,r=!!(13878&n.flags);if(13878&n.subtreeFlags||r){r=Bf.T,Bf.T=null;var o=Pf.p;Pf.p=gd;var i=Tw;Tw|=yw;try{rw=t,ow=e,dr(),As(n,e),ow=rw=null,t=Ik;var a=Gn(e.containerInfo),s=t.focusedElem,u=t.selectionRange;if(a!==s&&s&&s.ownerDocument&&zn(s.ownerDocument.documentElement,s)){if(null!==u&&Yn(s)){var l=u.start,c=u.end;if(void 0===c&&(c=l),"selectionStart"in s)s.selectionStart=l,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(u.start,p),y=void 0===u.end?m:Math.min(u.end,p);!h.extend&&m>y&&(a=y,y=m,m=a);var v=Wn(s,m),b=Wn(s,y);if(v&&b&&(1!==h.rangeCount||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var w=f.createRange();w.setStart(v.node,v.offset),h.removeAllRanges(),m>y?(h.addRange(w),h.extend(b.node,b.offset)):(w.setEnd(b.node,b.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=!!Ck,Ik=Ck=null}finally{Tw=i,Pf.p=o,Bf.T=r}}e.current=n,vg=hg}}function gu(){if(vg===hg){vg=fg;var e=Cg;if(null!==e){ny=Qm();var n=ty,t=ny}e=bg,t=gg;var r=!!(8772&(n=wg).flags);if(8772&n.subtreeFlags||r){r=Bf.T,Bf.T=null;var o=Pf.p;Pf.p=gd;var i=Tw;Tw|=yw;try{rw=t,ow=e,dr(),ps(e,n.alternate,n),ow=rw=null}finally{Tw=i,Pf.p=o,Bf.T=r}}e=Ag,n=Sg,ty=Qm(),e=null===n?e:ny,n=ty,t=xg===ug,r=ig,null!==ry?lt(e,n,ry,!1,r):!_p||n<=e||r&&r.run(function(){}.bind()),vg=pg}}function ku(){if(vg===mg||vg===pg){if(vg===mg){var e=ty,n=ty=Qm(),t=xg===ug;xg!==ug&&(xg=cg)}vg=fg,ed(),e=bg;var r=wg;n=gg,t=Tg;var o=0!==r.actualDuration||!!(10256&r.subtreeFlags)||!!(10256&r.flags);o?vg=yg:(vg=fg,wg=bg=null,Eu(e,e.pendingLanes),Pg=0,Lg=null);var i=e.pendingLanes;if(0===i&&(ag=null),o||Lu(e),i=se(n),r=r.stateNode,fd&&"function"==typeof fd.onCommitFiberRoot)try{var a=!(128&~r.current.flags);switch(i){case gd:var s=rd;break;case kd:s=od;break;case Ad:s=id;break;case Ed:s=sd;break;default:s=id}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=Pf.p,Pf.p=gd,Bf.T=null;try{var u=e.onRecoverableError;for(r=0;r<t.length;r++){var l=t[r],c=Au(l.stack);j(l.source,u,l.value,c)}}finally{Bf.T=a,Pf.p=s}}3&gg&&Tu(),Uu(e),i=e.pendingLanes,261930&n&&42&i?(Fy=!0,e===Og?Mg++:(Mg=0,Og=e)):Mg=0,o||nu(n,ty),Hu(0)}}function Au(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){}}),e}function Eu(e,n){0===(e.pooledCacheLanes&=n)&&null!=(n=e.pooledCache)&&(e.pooledCache=null,sr(n))}function Tu(){return wu(),gu(),ku(),Su()}function Su(){if(vg!==yg)return!1;var e=bg,n=kg;kg=0;var t=se(gg),r=Ad>t?Ad:t;t=Bf.T;var o=Pf.p;try{Pf.p=r,Bf.T=null;var i=Eg;Eg=null,r=bg;var a,s=gg;if(vg=fg,wg=bg=null,gg=0,(Tw&(mw|yw))!==pw)throw Error("Cannot flush passive effects while already rendering.");if(et(s),Rg=!0,Ng=!1,ry=null,a=nd(),xg===cg);else{var u=ty;!_p||a<=u||ig&&ig.run(function(){}.bind())}u=Tw,Tw|=yw;var l=r.current;dr(),qs(l);var c=r.current;l=Ag,dr(),Bs(r,c,s,i,l),Lu(r),Tw=u;var f=nd();if(c=a,l=ig,null!==ry?lt(c,f,ry,!0,l):!_p||f<=c||l&&l.run(function(){}.bind()),nu(s,f),Hu(0),Ng?r===Lg?Pg++:(Pg=0,Lg=r):Pg=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{Pf.p=o,Bf.T=t,Eu(e,n)}}function xu(e,n,t){Er(n=Rt(t,n)),null!==(e=Zr(e,n=oa(e.stateNode,n,2),2))&&(ee(e,2),Uu(e))}function Cu(e,n,t){if(3===e.tag)xu(e,e,t);else for(;null!==n;){if(3===n.tag)return void xu(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 Er(e=Rt(t,e)),void(null!==(r=Zr(n,t=ia(2),2))&&(aa(t,r,n,e),ee(r,2),Uu(r)))}n=n.return}}function Iu(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new hw;var o=/* @__PURE__ */new Set;r.set(n,o)}else void 0===(o=r.get(n))&&(o=/* @__PURE__ */new Set,r.set(n,o));o.has(t)||(Vw=!0,o.add(t),r=Mu.bind(null,e,n,t),hd&&Du(e,t),n.then(r,r))}function Mu(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,127&t?0>dy&&(fy=dy=Qm(),hy=Zm("Promise Resolved"),py=$m):4194048&t&&0>Ey&&(ky=Ey=Qm(),Sy=Zm("Promise Resolved"),Ty=$m),Gs()&&Bf.actQueue,Sw===e&&(Cw&t)===t&&(zw===kw||zw===gw&&(62914560&Cw)===Cw&&nd()-$w<ng?(Tw&mw)===pw&&tu(e,0):Jw|=t,Xw===Cw&&(Xw=0)),Uu(e)}function Ou(e,n){0===n&&(n=_()),null!==(e=ht(e,n))&&(ee(e,n),Uu(e))}function Ru(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Ou(e,t)}function Nu(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(t=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode.le;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Ou(e,t)}function Bu(e,n,t){if(67117056&n.subtreeFlags)for(n=n.child;null!==n;){var r=e,o=n,i=o.type===wf;i=t||i,22!==o.tag?67108864&o.flags?i&&j(o,Pu,r,o):Bu(r,o,i):null===o.memoizedState&&(i&&8192&o.flags?j(o,Pu,r,o):67108864&o.subtreeFlags&&j(o,Bu,r,o,i)),n=n.sibling}}function Pu(e,n){J(!0);try{xs(n),Ws(n),Is(e,n.alternate,n,!1),Ls(e,n,0,null,!1,0)}finally{J(!1)}}function Lu(e){var n=!0;e.current.mode&(wm|gm)||(n=!1),Bu(e,e.current,n)}function Fu(e){if((Tw&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!==Fg){if(Fg.has(n))return;Fg.add(n)}else Fg=/* @__PURE__ */new Set([n]);j(e,function(){})}}}function Du(e,n){hd&&e.memoizedUpdaters.forEach(function(t){ie(e,t,n)})}function Uu(e){e!==jg&&null===e.next&&(null===jg?Hg=jg=e:jg=jg.next=e),Wg=!0,null!==Bf.actQueue?Vg||(Vg=!0,Yu()):qg||(qg=!0,Yu())}function Hu(e,n){if(!zg&&Wg){zg=!0;do{for(var t=!1,r=Hg;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-pd(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(t=!0,zu(r,i))}else i=Cw,!(3&(i=X(r,r===Sw?i:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Pk)))||Q(r,i)||(t=!0,zu(r,i));r=r.next}}while(t);zg=!1}}function ju(){Rk=window.event,qu()}function qu(){Wg=Vg=qg=!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,o=Hg;null!==o;){var i=o.next,a=Vu(o,t);0===a?(o.next=null,null===r?Hg=i:r.next=i,null===i&&(jg=r)):(r=o,(0!==n||3&a)&&(Wg=!0)),o=i}vg!==fg&&vg!==yg||Hu(n),0!==Gg&&(Gg=0)}function Vu(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-pd(i),s=1<<a,u=o[a];-1===u?0!==(s&t)&&0===(s&r)||(o[a]=Z(s,n)):u<=n&&(e.expiredLanes|=s),i&=~s}if(t=Cw,t=X(e,e===(n=Sw)?t:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Pk),r=e.callbackNode,0===t||e===n&&(Uw===Ow||Uw===Dw)||null!==e.cancelPendingCommit)return null!==r&&Gu(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(Gu(r),se(t)){case gd:case kd:t=od;break;case Ad:t=id;break;case Ed:t=sd;break;default:t=id}return r=Wu.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&&Gu(r),e.callbackPriority=2,e.callbackNode=null,2}function Wu(e,n){if(Fy=Ly=!1,Rk=window.event,vg!==fg&&vg!==yg)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(xg===sg&&(xg=lg),Tu()&&e.callbackNode!==t)return null;var r=Cw;return 0===(r=X(e,e===Sw?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Pk))?null:(Xs(e,r,n),Vu(e,nd()),null!=e.callbackNode&&e.callbackNode===t?Wu.bind(null,e):null)}function zu(e,n){if(Tu())return null;Ly=Fy,Fy=!1,Xs(e,n,!0)}function Gu(e){e!==Yg&&null!==e&&_f(e)}function Yu(){null!==Bf.actQueue&&Bf.actQueue.push(function(){return qu(),null}),Fk(function(){(Tw&(mw|yw))!==pw?Zf(rd,ju):qu()})}function Ju(){if(0===Gg){var e=Hy;0===e&&(e=vd,!(261888&(vd<<=1))&&(vd=256)),Gg=e}return Gg}function Ku(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(z(e),mn(""+e))}function Xu(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 Qu(e,n,t){e.currentTarget=t;try{n(e)}catch(r){Wp(r)}e.currentTarget=null}function Zu(e,n){n=!!(4&n);for(var t=0;t<e.length;t++){var r=e[t];e:{var o=void 0,i=r.event;if(r=r.listeners,n)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;null!==u?j(u,Qu,i,s,l):Qu(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;null!==u?j(u,Qu,i,s,l):Qu(i,s,l),o=u}}}}function _u(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)||(nl(n,e,2,!1),t.add(r))}function $u(e,n,t){Kg.has(e);var r=0;n&&(r|=4),nl(t,e,r,n)}function el(e){if(!e[Xg]){e[Xg]=!0,Bd.forEach(function(n){"selectionchange"!==n&&(Kg.has(n)||$u(n,!1,e),$u(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[Xg]||(n[Xg]=!0,$u("selectionchange",!1,n))}}function nl(e,n,t,r){switch(Wc(n)){case gd:var o=Uc;break;case kd:o=Hc;break;default:o=jc}t=o.bind(null,n,t,e),o=void 0,!Nh||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(o=!0),r?void 0!==o?e.addEventListener(n,t,{capture:!0,passive:o}):e.addEventListener(n,t,!0):void 0!==o?e.addEventListener(n,t,{passive:o}):e.addEventListener(n,t,!1)}function tl(e,n,t,r,o){var i=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===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=fe(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=i=a;continue e}s=s.parentNode}}r=r.return}wn(function(){var r=i,o=vn(t),a=[];e:{var s=Dp.get(e);if(void 0!==s){var u=qh,l=e;switch(e){case"keypress":if(0===An(t))break e;case"keydown":case"keyup":u=np;break;case"focusin":l="focus",u=Jh;break;case"focusout":l="blur",u=Jh;break;case"beforeblur":case"afterblur":u=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":u=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=Yh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=rp;break;case Op:case Rp:case Np:u=Kh;break;case Fp:u=op;break;case"scroll":case"scrollend":u=Wh;break;case"wheel":u=ip;break;case"copy":case"cut":case"paste":u=Xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=tp;break;case"toggle":case"beforetoggle":u=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 y=m;if(p=y.stateNode,5!==(y=y.tag)&&26!==y&&27!==y||null===p||null===h||null!=(y=gn(m,h))&&c.push(rl(m,y,p)),f)break;m=m.return}0<c.length&&(s=new u(s,l,null,t,o),a.push({event:s,listeners:c}))}}if(!(7&n)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||t===Ch||!(l=t.relatedTarget||t.fromElement)||!fe(l)&&!l[Cd])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=t.relatedTarget||t.toElement)?fe(l):null)&&(f=d(l),c=l.tag,l!==f||5!==c&&27!==c&&6!==c)&&(l=null)):(u=null,l=r),u!==l)){if(c=Gh,y="onMouseLeave",h="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=tp,y="onPointerLeave",h="onPointerEnter",m="pointer"),f=null==u?s:he(u),p=null==l?s:he(l),(s=new c(y,m+"leave",u,t,o)).target=f,s.relatedTarget=p,y=null,fe(o)===r&&((c=new c(h,m+"enter",l,t,o)).target=p,c.relatedTarget=f,y=c),f=y,u&&l)e:{for(c=il,m=l,p=0,y=h=u;y;y=c(y))p++;y=0;for(var v=m;v;v=c(v))y++;for(;0<p-y;)h=c(h),p--;for(;0<y-p;)m=c(m),y--;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!==u&&al(a,s,u,c,!1),null!==l&&null!==f&&al(a,f,l,c,!0)}if("select"===(u=(s=r?he(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=Pn;else if(On(s))if(gp)b=jn;else{b=Un;var w=Dn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&fn(r.elementType)&&(b=Pn):b=Hn;switch(b&&(b=b(e,r))?Rn(a,b,t,o):(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)&&(Ep=w,Tp=r,Sp=null);break;case"focusout":Sp=Tp=Ep=null;break;case"mousedown":xp=!0;break;case"contextmenu":case"mouseup":case"dragend":xp=!1,Jn(a,t,o);break;case"selectionchange":if(Ap)break;case"keydown":case"keyup":Jn(a,t,o)}var g;if(lp)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 yp?In(e,t)&&(k="onCompositionEnd"):"keydown"===e&&t.keyCode===up&&(k="onCompositionStart");k&&(dp&&"ko"!==t.locale&&(yp||"onCompositionStart"!==k?"onCompositionEnd"===k&&yp&&(g=kn()):(Uh="value"in(Dh=o)?Dh.value:Dh.textContent,yp=!0)),0<(w=ol(r,k)).length&&(k=new Qh(k,e,null,t,o),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(yp)return"compositionend"===e||!lp&&In(e,n)?(e=kn(),Hh=Uh=Dh=null,yp=!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=ol(r,"onBeforeInput")).length&&(w=new Zh("onBeforeInput","beforeinput",null,t,o),a.push({event:w,listeners:k}),w.data=g),function(e,n,t,r,o){if("submit"===n&&t&&t.stateNode===o){var i=Ku((o[xd]||null).action),a=r.submitter;a&&null!==(n=(n=a[xd]||null)?Ku(n.formAction):a.getAttribute("formAction"))&&(i=n,a=null);var s=new qh("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Gg){var e=a?Xu(o,a):new FormData(o),n={pending:!0,data:e,method:o.method,action:i};Object.freeze(n),Ri(t,n,null,e)}}else"function"==typeof i&&(s.preventDefault(),n={pending:!0,data:e=a?Xu(o,a):new FormData(o),method:o.method,action:i},Object.freeze(n),Ri(t,n,i,e))},currentTarget:o}]})}}(a,e,r,t,o)}Zu(a,n)})}function rl(e,n,t){return{instance:e,listener:n,currentTarget:t}}function ol(e,n){for(var t=n+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=gn(e,t))&&r.unshift(rl(e,o,i)),null!=(o=gn(e,n))&&r.push(rl(e,o,i))),3===e.tag)return r;e=e.return}return[]}function il(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function al(e,n,t,r,o){for(var i=n.oe,a=[];null!==t&&t!==r;){var s=t,u=s.alternate,l=s.stateNode;if(s=s.tag,null!==u&&u===r)break;5!==s&&26!==s&&27!==s||null===l||(u=l,o?null!=(l=gn(t,i))&&a.unshift(rl(t,l,u)):o||null!=(l=gn(t,i))&&a.push(rl(t,l,u))),t=t.return}0!==a.length&&e.push({event:n,listeners:a})}function sl(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:Pd,possibleRegistrationNames:Ld};fn(e)||"string"==typeof n.is||function(e,n,t){var r,o=[];for(r in n)pn(e,r,n[r],t)||o.push(r);n=o.map(function(e){return"`"+e+"`"}).join(", "),1===o.length||o.length}(e,n,t),n.contentEditable&&!n.suppressContentEditableWarning&&n.children}function ul(e,n,t,r){n!==t&&(t=fl(t),fl(n)!==t&&(r[e]=n))}function ll(e,n){}function cl(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 fl(e){return V(e)&&W(e),("string"==typeof e?e:""+e).replace(ok,"\n").replace(ik,"")}function dl(e,n){return n=fl(n),fl(e)===n}function hl(e,n,t,r,o,i){switch(t){case"children":"string"==typeof r?(sn(r,n,!1),"body"===n||"textarea"===n&&""===r||un(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(sn(""+r,n,!1),"body"!==n&&un(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,i);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}z(r),r=mn(""+r),e.setAttribute(t,r);break;case"action":case"formAction":if(null!=r&&("form"===n?"formAction"===t||"function"==typeof r&&(null==o.encType&&null==o.method||nk||(nk=!0),null==o.target||ek||(ek=!0)):("input"===n||"button"===n)&&("action"===t||("input"===n&&"submit"!==o.type&&"image"!==o.type&&!_g||"button"===n&&null!=o.type&&"submit"!==o.type&&!_g?_g=!0:"function"==typeof r&&(null==o.name||$g||($g=!0),null==o.formEncType&&null==o.formMethod||nk||(nk=!0),null==o.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 i&&("formAction"===t?("input"!==n&&hl(e,n,"name",o.name,o,null),hl(e,n,"formEncType",o.formEncType,o,null),hl(e,n,"formMethod",o.formMethod,o,null),hl(e,n,"formTarget",o.formTarget,o,null)):(hl(e,n,"encType",o.encType,o,null),hl(e,n,"method",o.method,o,null),hl(e,n,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(t);break}z(r),r=mn(""+r),e.setAttribute(t,r);break;case"onClick":null!=r&&(e.onclick=yn);break;case"onScroll":null!=r&&_u("scroll",e);break;case"onScrollEnd":null!=r&&_u("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("me"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.me)){if(null!=o.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}z(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?(z(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?(z(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?(z(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):(z(r),e.setAttribute(t,r));break;case"popover":_u("beforetoggle",e),_u("toggle",e),ke(e,"popover",r);break;case"xlinkActuate":Ee(e,ak,"xlink:actuate",r);break;case"xlinkArcrole":Ee(e,ak,"xlink:arcrole",r);break;case"xlinkRole":Ee(e,ak,"xlink:role",r);break;case"xlinkShow":Ee(e,ak,"xlink:show",r);break;case"xlinkTitle":Ee(e,ak,"xlink:title",r);break;case"xlinkType":Ee(e,ak,"xlink:type",r);break;case"xmlBase":Ee(e,sk,"xml:base",r);break;case"xmlLang":Ee(e,sk,"xml:lang",r);break;case"xmlSpace":Ee(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):Pd.hasOwnProperty(t)}}function pl(e,n,t,r,o,i){switch(t){case"style":cn(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("me"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.me)){if(null!=o.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=t}}break;case"children":"string"==typeof r?un(e,r):("number"==typeof r||"bigint"==typeof r)&&un(e,""+r);break;case"onScroll":null!=r&&_u("scroll",e);break;case"onScrollEnd":null!=r&&_u("scrollend",e);break;case"onClick":null!=r&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Pd.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(o=t.endsWith("Capture"),n=t.slice(2,o?t.length-7:void 0),"function"==typeof(i=null!=(i=e[xd]||null)?i[t]:null)&&e.removeEventListener(n,i,o),"function"!=typeof r)?t in e?e[t]=r:!0===r?e.setAttribute(t,""):ke(e,t,r):("function"!=typeof i&&null!==i&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,r,o)))}}function ml(e,n,t){switch(sl(n,t),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_u("error",e),_u("load",e);var r,o=!1,i=!1;for(r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hl(e,n,r,a,t,null)}}return i&&hl(e,n,"srcSet",t.srcSet,t,null),void(o&&hl(e,n,"src",t.src,t,null));case"input":be(0,t),_u("invalid",e);var s=r=a=i=null,u=null,l=null;for(o in t)if(t.hasOwnProperty(o)){var c=t[o];if(null!=c)switch(o){case"name":i=c;break;case"type":a=c;break;case"checked":u=c;break;case"defaultChecked":l=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:hl(e,n,o,c,t,null)}}return Oe(0,t),void Ne(e,r,s,u,l,a,i,!1);case"select":for(i in be(0,t),_u("invalid",e),o=a=r=null,t)if(t.hasOwnProperty(i)&&null!=(s=t[i]))switch(i){case"value":r=s;break;case"defaultValue":a=s;break;case"multiple":o=s;default:hl(e,n,i,s,t,null)}return Fe(e,t),n=r,t=a,e.multiple=!!o,void(null!=n?Le(e,!!o,n,!1):null!=t&&Le(e,!!o,t,!0));case"textarea":for(a in be(0,t),_u("invalid",e),r=i=o=null,t)if(t.hasOwnProperty(a)&&null!=(s=t[a]))switch(a){case"value":o=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:hl(e,n,a,s,t,null)}return De(0,t),void He(e,o,i,r);case"option":for(u in Pe(0,t),t)t.hasOwnProperty(u)&&null!=(o=t[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:hl(e,n,u,o,t,null));return;case"dialog":_u("beforetoggle",e),_u("toggle",e),_u("cancel",e),_u("close",e);break;case"iframe":case"object":_u("load",e);break;case"video":case"audio":for(o=0;o<Jg.length;o++)_u(Jg[o],e);break;case"image":_u("error",e),_u("load",e);break;case"details":_u("toggle",e);break;case"embed":case"source":case"link":_u("error",e),_u("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(l in t)if(t.hasOwnProperty(l)&&null!=(o=t[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hl(e,n,l,o,t,null)}return;default:if(fn(n)){for(c in t)t.hasOwnProperty(c)&&void 0!==(o=t[c])&&pl(e,n,c,o,t,void 0);return}}for(s in t)t.hasOwnProperty(s)&&null!=(o=t[s])&&hl(e,n,s,o,t,null)}function yl(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function vl(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 bl(e,n,t){if(null!=n&&"object"!=typeof n);else{var r,o,i=r="";for(o in n)if(n.hasOwnProperty(o)){var a=n[o];null!=a&&"boolean"!=typeof a&&""!==a&&(0===o.indexOf("--")?(G(a),r+=i+o+":"+(""+a).trim()):"number"!=typeof a||0===a||fh.has(o)?(G(a),r+=i+o.replace(rh,"-$1").toLowerCase().replace(oh,"-ms-")+":"+(""+a).trim()):r+=i+o.replace(rh,"-$1").toLowerCase().replace(oh,"-ms-")+":"+a+"px",i=";")}r=r||null,(n=e.getAttribute("style"))!==r&&(r=fl(r),fl(n)!==r&&(t.style=vl(e)))}}function wl(e,n,t,r,o,i){if(o.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(z(r),e===""+r)return}ul(n,e,r,i)}function gl(e,n,t,r,o,i){if(o.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}ul(n,e,r,i)}function kl(e,n,t,r,o,i){if(o.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(z(r),e===""+r)return}ul(n,e,r,i)}function Al(e,n,t,r,o,i){if(o.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)&&(z(r),e===""+r))return}ul(n,e,r,i)}function El(e,n,t,r,o,i){if(o.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(z(r),e===(t=mn(""+r)))return}ul(n,e,r,i)}function Tl(e,n,t,r){for(var o={},i=/* @__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:i.add(a[s].name)}if(fn(n)){for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(null!=l)if(Pd.hasOwnProperty(u))"function"!=typeof l&&ll();else if(!0!==t.suppressHydrationWarning)switch(u){case"children":"string"!=typeof l&&"number"!=typeof l||ul("children",e.textContent,l,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":a=e.innerHTML,null!=(l=l?l.me:void 0)&&ul(u,a,l=cl(e,l),o);continue;case"style":i.delete(u),bl(e,l,o);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(u.toLowerCase());continue;case"className":i.delete("class"),ul("className",a=ge(e,"class",l),l,o);continue;default:r.context===Tk&&"svg"!==n&&"math"!==n?i.delete(u.toLowerCase()):i.delete(u),ul(u,a=ge(e,u,l),l,o)}}}else for(l in t)if(t.hasOwnProperty(l)&&null!=(u=t[l]))if(Pd.hasOwnProperty(l))"function"!=typeof u&&ll();else if(!0!==t.suppressHydrationWarning)switch(l){case"children":"string"!=typeof u&&"number"!=typeof u||ul("children",e.textContent,u,o);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!=(u=u?u.me:void 0)&&a!==(u=cl(e,u))&&(o[l]={me:a});continue;case"className":wl(e,l,"class",u,i,o);continue;case"tabIndex":wl(e,l,"tabindex",u,i,o);continue;case"style":i.delete(l),bl(e,u,o);continue;case"multiple":i.delete(l),ul(l,e.multiple,u,o);continue;case"muted":i.delete(l),ul(l,e.muted,u,o);continue;case"autoFocus":i.delete("autofocus"),ul(l,e.autofocus,u,o);continue;case"data":if("object"!==n){i.delete(l),ul(l,a=e.getAttribute("data"),u,o);continue}case"src":case"href":if(!(""!==u||"a"===n&&"href"===l||"object"===n&&"data"===l))continue;El(e,l,l,u,i,o);continue;case"action":case"formAction":if(a=e.getAttribute(l),"function"==typeof u){i.delete(l.toLowerCase()),"formAction"===l?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}if(a===uk){i.delete(l.toLowerCase()),ul(l,"function",u,o);continue}El(e,l,l.toLowerCase(),u,i,o);continue;case"xlinkHref":El(e,l,"xlink:href",u,i,o);continue;case"contentEditable":kl(e,l,"contenteditable",u,i,o);continue;case"spellCheck":kl(e,l,"spellcheck",u,i,o);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kl(e,l,l,u,i,o);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":gl(e,l,l.toLowerCase(),u,i,o);continue;case"capture":case"download":e:{s=e;var c=a=l,f=o;if(i.delete(c),null===(s=s.getAttribute(c)))switch(typeof u){case"undefined":case"function":case"symbol":break e;default:if(!1===u)break e}else if(null!=u)switch(typeof u){case"function":case"symbol":break;case"boolean":if(!0===u&&""===s)break e;break;default:if(z(u),s===""+u)break e}ul(a,s,u,f)}continue;case"cols":case"rows":case"size":case"span":e:{if(s=e,c=a=l,f=o,i.delete(c),null===(s=s.getAttribute(c)))switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(u)||1>u)break e}else if(null!=u)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(u)||1>u)&&(z(u),s===""+u))break e}ul(a,s,u,f)}continue;case"rowSpan":Al(e,l,"rowspan",u,i,o);continue;case"start":Al(e,l,l,u,i,o);continue;case"xHeight":wl(e,l,"x-height",u,i,o);continue;case"xlinkActuate":wl(e,l,"xlink:actuate",u,i,o);continue;case"xlinkArcrole":wl(e,l,"xlink:arcrole",u,i,o);continue;case"xlinkRole":wl(e,l,"xlink:role",u,i,o);continue;case"xlinkShow":wl(e,l,"xlink:show",u,i,o);continue;case"xlinkTitle":wl(e,l,"xlink:title",u,i,o);continue;case"xlinkType":wl(e,l,"xlink:type",u,i,o);continue;case"xmlBase":wl(e,l,"xml:base",u,i,o);continue;case"xmlLang":wl(e,l,"xml:lang",u,i,o);continue;case"xmlSpace":wl(e,l,"xml:space",u,i,o);continue;case"inert":""!==u||rk[l]||(rk[l]=!0),gl(e,l,l,u,i,o);continue;default:if(!(2<l.length)||"o"!==l[0]&&"O"!==l[0]||"n"!==l[1]&&"N"!==l[1]){s=dn(l),a=!1,r.context===Tk&&"svg"!==n&&"math"!==n?i.delete(s.toLowerCase()):(c=l.toLowerCase(),null!==(c=mh.hasOwnProperty(c)&&mh[c]||null)&&c!==l&&(a=!0,i.delete(c)),i.delete(s));e:if(c=e,f=s,s=u,we(f))if(c.hasAttribute(f))c=c.getAttribute(f),z(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||ul(l,s,u,o)}}return 0<i.size&&!0!==t.suppressHydrationWarning&&function(e,n,t){n.forEach(function(n){t[yl(n)]="style"===n?vl(e):e.getAttribute(n)})}(e,i,o),0===Object.keys(o).length?null:o}function Sl(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xl(e){return 9===e.nodeType?e:e.ownerDocument}function Cl(e){switch(e){case hh:return Sk;case dh:return xk;default:return Tk}}function Il(e,n){if(e===Tk)switch(n){case"svg":return Sk;case"math":return xk;default:return Tk}return e===Sk&&"foreignObject"===n?Tk:e}function Ml(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.me}function Ol(){var e=window.event;return e&&e!==Rk?e.type:null}function Rl(){var e=window.event;return e&&e!==Rk?e.timeStamp:-1.1}function Nl(e){setTimeout(function(){throw e})}function Bl(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 Pl(){}function Ll(e,n,t,r){!function(e,n,t,r){switch(sl(n,r),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,a=null,s=null,u=null,l=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":u=f;default:r.hasOwnProperty(h)||hl(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":i=h;break;case"name":o=h;break;case"checked":l=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&&hl(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,u,l,c,i,o);case"select":for(i in h=a=s=d=null,t)if(u=t[i],t.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||hl(e,n,i,null,r,u)}for(o in r)if(i=r[o],u=t[o],r.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":d=i;break;case"defaultValue":s=i;break;case"multiple":a=i;default:i!==u&&hl(e,n,o,i,r,u)}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(o=t[s],t.hasOwnProperty(s)&&null!=o&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:hl(e,n,s,null,r,o)}for(a in r)if(o=r[a],i=t[a],r.hasOwnProperty(a)&&(null!=o||null!=i))switch(a){case"value":d=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:o!==i&&hl(e,n,a,o,r,i)}return void Ue(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:hl(e,n,p,null,r,d));for(u in r)d=r[u],h=t[u],!r.hasOwnProperty(u)||d===h||null==d&&null==h||("selected"===u?e.selected=d&&"function"!=typeof d&&"symbol"!=typeof d:hl(e,n,u,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)&&hl(e,n,m,null,r,d);for(l in r)if(d=r[l],h=t[l],r.hasOwnProperty(l)&&d!==h&&(null!=d||null!=h))switch(l){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:hl(e,n,l,d,r,h)}return;default:if(fn(n)){for(var y in t)d=t[y],t.hasOwnProperty(y)&&void 0!==d&&!r.hasOwnProperty(y)&&pl(e,n,y,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||pl(e,n,c,d,r,h);return}}for(var v in t)d=t[v],t.hasOwnProperty(v)&&null!=d&&!r.hasOwnProperty(v)&&hl(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||hl(e,n,f,d,r,h)}(e,n,t,r),e[xd]=r}function Fl(e){un(e,"")}function Dl(e,n,t){e.nodeValue=t}function Ul(e){if(!e.Se){var n=e[xd]||null;if(null!==n){var t=de(e);null!==t&&("string"==typeof n.children||"number"==typeof n.children||null!=n.dangerouslySetInnerHTML)&&(e.Se=!0,j(t,function(){}))}}}function Hl(e){return"head"===e}function jl(e,n){e.removeChild(n)}function ql(e,n){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(n)}function Vl(e,n){var t=n,r=0;do{var o=t.nextSibling;if(e.removeChild(t),o&&8===o.nodeType)if((t=o.data)===hk||t===fk){if(0===r)return e.removeChild(o),void _c(n);r--}else if(t===dk||t===pk||t===mk||t===yk||t===ck)r++;else if(t===vk)cc(e.ownerDocument.documentElement);else if(t===wk){cc(t=e.ownerDocument.head);for(var i=t.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Nd]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||t.removeChild(i),i=a}}else t===bk&&cc(e.ownerDocument.body);t=o}while(t);_c(n)}function Wl(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.ve=t.nodeValue,t.nodeValue=""):t.nodeValue=t.ve||""),r&&8===r.nodeType)if((t=r.data)===hk){if(0===e)break;e--}else t!==dk&&t!==pk&&t!==mk&&t!==yk||e++;t=r}while(t)}function zl(e){Wl(e,!0)}function Gl(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function Yl(e){e.nodeValue=""}function Jl(e){Wl(e,!1)}function Kl(e,n){n=null!=(n=n[Ek])&&n.hasOwnProperty("display")?n.display:null,e.style.display=null==n||"boolean"==typeof n?"":(""+n).trim()}function Xl(e,n){e.nodeValue=n}function Ql(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":Ql(t),ce(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Zl(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 _l(e){return e.data===pk||e.data===mk}function $l(e){return e.data===yk||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===yk||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,o=0;o<r.length;o++){var i=r[o];t[yl(i.name)]="style"===i.name.toLowerCase()?vl(e):i.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[lk]?(e.nodeValue===n?e=null:(n=fl(n),e=fl(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!==yk&&t!==pk&&t!==mk&&t!==ck||n++}e=e.nextSibling}return null}function oc(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(t===dk||t===yk||t===pk||t===mk||t===ck){if(0===n)return e;n--}else t!==hk&&t!==fk||n++}e=e.previousSibling}return null}function ic(e){_c(e)}function ac(e){_c(e)}function sc(e){_c(e)}function uc(e,n,t,r,o){switch(o&&an(e,r.ancestorInfo),n=xl(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 lc(e,n,t,r){if(!t[Cd]&&de(t))var o=t.tagName.toLowerCase();for(o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ml(t,e,n),t[Sd]=r,t[xd]=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 o=Me(n);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof t&&(o+='[crossorigin="'+t+'"]'),zk.has(o)||(zk.add(o),e={rel:e,crossOrigin:t,href:n},null===r.querySelector(o)&&(ml(n=r.createElement("link"),"link",e),me(n),r.head.appendChild(n)))}}function hc(e,n,t,r){var o=(o=qf.current)?fc(o):null;if(!o)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(o).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 i=pe(o).hoistableStyles,a=i.get(e);if(!a&&(o=o.ownerDocument||o,a={type:"stylesheet",instance:null,count:0,state:{loading:Uk,preload:null}},i.set(e,a),(i=o.querySelector(yc(e)))&&!i.pe&&(a.instance=i,a.state.loading=Hk|Vk),!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),i||function(e,n,t,r){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?r.loading=Hk:(n=e.createElement("link"),r.preload=n,n.addEventListener("load",function(){return r.loading|=Hk}),n.addEventListener("error",function(){return r.loading|=jk}),ml(n,"link",t),me(n),e.head.appendChild(n))}(o,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=bc(t),(r=(n=pe(o).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 yc(e){return'link[rel="stylesheet"]['+e+"]"}function vc(e){return pf({},e,{"data-precedence":e.precedence,precedence:null})}function bc(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 o=pf({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return me(r=(e.ownerDocument||e).createElement("style")),ml(r,"style",o),kc(r,t.precedence,e),n.instance=r;case"stylesheet":o=mc(t.href);var i=e.querySelector(yc(o));if(i)return n.state.loading|=Vk,n.instance=i,me(i),i;r=vc(t),(o=Wk.get(o))&&Ac(r,o),me(i=(e.ownerDocument||e).createElement("link"));var a=i;return a.pe=new Promise(function(e,n){a.onload=e,a.onerror=n}),ml(i,"link",r),n.state.loading|=Vk,kc(i,t.precedence,e),n.instance=i;case"script":return i=bc(t.src),(o=e.querySelector(wc(i)))?(n.instance=o,me(o),o):(r=t,(o=Wk.get(i))&&Ec(r=pf({},t),o),me(o=(e=e.ownerDocument||e).createElement("script")),ml(o,"link",r),e.head.appendChild(o),n.instance=o);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&Vk)===Uk&&(r=n.instance,n.state.loading|=Vk,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]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===n)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.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 Ec(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.integrity&&(e.integrity=n.integrity)}function Tc(e,n,t){if(null===rA){var r=/* @__PURE__ */new Map,o=rA=/* @__PURE__ */new Map;o.set(t,r)}else(r=(o=rA).get(t))||(r=/* @__PURE__ */new Map,o.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),o=0;o<t.length;o++){var i=t[o];if(!(i[Nd]||i[Sd]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&i.namespaceURI!==hh){var a=i.getAttribute(n)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function Sc(e,n,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===n?e.querySelector("head > title"):null)}function xc(e){return"stylesheet"!==e.type||(e.state.loading&qk)!==Uk}function Cc(){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++,lA=/* @__PURE__ */new Map,n.forEach(Mc,e),lA=null,Cc.call(e))}function Mc(e,n){if(!(n.state.loading&Vk)){var t=lA.get(e);if(t)var r=t.get(uA);else{t=/* @__PURE__ */new Map,lA.set(e,t);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),r=a)}r&&t.set(uA,r)}a=(o=n.instance).getAttribute("data-precedence"),(i=t.get(a)||r)===r&&t.set(uA,o),t.set(a,o),this.count++,r=Cc.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),n.state.loading|=Vk}}function Oc(e,n,t,r,o,i,a,s,u){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pk,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=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,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.xe=t?"hydrateRoot()":"createRoot()"}function Rc(e,n,t,r,o,i,a,s,u,l,f,d){return e=new Oc(e,n,t,a,u,l,f,d,s),n=vm,!0===i&&(n|=wm|gm),i=c(3,null,null,n|=bm),e.current=i,i.stateNode=e,ar(n=ir()),e.pooledCache=n,ar(n),i.memoizedState={element:r,isDehydrated:t,cache:n},Kr(i),e}function Nc(e){return e?e=hm:hm}function Bc(e,n,t,r,o,i){if(fd&&"function"==typeof fd.onScheduleFiberRoot)try{fd.onScheduleFiberRoot(cd,r,t)}catch(a){dd||(dd=!0)}o=Nc(o),null===r.context?r.context=o:r.pendingContext=o,Xf&&null!==Kf&&!vA&&(vA=!0),(r=Qr(n)).payload={element:t},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(t=Zr(e,r,n))&&(ur(n,"root.render()",null),Ks(t,e,n),_r(t,e,n))}function Pc(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){Pc(e,n),(e=e.alternate)&&Pc(e,n)}function Fc(e){if(13===e.tag||31===e.tag){var n=ht(e,67108864);null!==n&&Ks(n,e,67108864),Lc(e,67108864)}}function Dc(e){if(13===e.tag||31===e.tag){var n=Ys(e),t=ht(e,n=oe(n));null!==t&&Ks(t,e,n),Lc(e,n)}}function Uc(e,n,t,r){var o=Bf.T;Bf.T=null;var i=Pf.p;try{Pf.p=gd,jc(e,n,t,r)}finally{Pf.p=i,Bf.T=o}}function Hc(e,n,t,r){var o=Bf.T;Bf.T=null;var i=Pf.p;try{Pf.p=kd,jc(e,n,t,r)}finally{Pf.p=i,Bf.T=o}}function jc(e,n,t,r){if(wA){var o=qc(r);if(null===o)tl(e,n,r,gA,t),zc(e,r);else if(function(e,n,t,r,o){switch(n){case"focusin":return AA=Gc(AA,e,n,t,r,o),!0;case"dragenter":return EA=Gc(EA,e,n,t,r,o),!0;case"mouseover":return TA=Gc(TA,e,n,t,r,o),!0;case"pointerover":var i=o.pointerId;return SA.set(i,Gc(SA.get(i)||null,e,n,t,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xA.set(i,Gc(xA.get(i)||null,e,n,t,r,o)),!0}return!1}(o,e,n,t,r))r.stopPropagation();else if(zc(e,r),4&n&&-1<IA.indexOf(e)){for(;null!==o;){var i=de(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=K(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var u=1<<31-pd(a);s.entanglements[1]|=u,a&=~u}Uu(i),(Tw&(mw|yw))===pw&&(tg=nd()+rg,Hu(0))}}break;case 31:case 13:null!==(s=ht(i,2))&&Ks(s,i,2),$s(),Lc(i,2)}if(null===(i=qc(r))&&tl(e,n,r,gA,t),i===o)break;o=i}null!==o&&r.stopPropagation()}else tl(e,n,r,null,t)}}function qc(e){return Vc(e=vn(e))}function Vc(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 od:return kd;case id:case ad:return Ad;case sd:return Ed;default:return Ad}default:return Ad}}function zc(e,n){switch(e){case"focusin":case"focusout":AA=null;break;case"dragenter":case"dragleave":EA=null;break;case"mouseover":case"mouseout":TA=null;break;case"pointerover":case"pointerout":SA.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":xA.delete(n.pointerId)}}function Gc(e,n,t,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==n&&null!==(n=de(n))&&Fc(n),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==o&&-1===n.indexOf(o)&&n.push(o),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 le(e.priority,function(){Dc(t)})}else if(31===n){if(null!==(n=p(t)))return e.blockedOn=n,void le(e.priority,function(){Dc(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=qc(e.nativeEvent);if(null!==t)return null!==(n=de(t))&&Fc(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Ch=r,t.target.dispatchEvent(r),Ch=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!==EA&&Jc(EA)&&(EA=null),null!==TA&&Jc(TA)&&(TA=null),SA.forEach(Kc),xA.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],o=e[n+2];if("function"!=typeof r){if(null===Vc(r||t))continue;break}var i=de(t);null!==i&&(e.splice(n,3),n-=3,t={pending:!0,data:o,method:t.method,action:r},Object.freeze(t),Ri(i,t,r,o))}}))}function _c(e){function n(n){return Qc(n,e)}null!==AA&&Qc(AA,e),null!==EA&&Qc(EA,e),null!==TA&&Qc(TA,e),SA.forEach(n),xA.forEach(n);for(var t=0;t<CA.length;t++){var r=CA[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<CA.length&&null===(t=CA[0]).blockedOn;)Yc(t),null===t.blockedOn&&CA.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var o=t[r],i=t[r+1],a=o[xd]||null;if("function"==typeof i)a||Zc(t);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[xd]||null)s=a.formAction;else if(null!==Vc(o))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 o=e})},focusReset:"manual",scroll:"manual"})}function n(){null!==o&&(o(),o=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,o=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!==o&&(o(),o=null)}}}function ef(e){this.be=e}function nf(e){this.be=e}function tf(e){e[Cd]&&e.fe}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rf,of,af,sf,uf,lf,cf,ff=C(),df=v(),hf=L(),pf=Object.assign,mf=/* @__PURE__ */Symbol.for("react.element"),yf=/* @__PURE__ */Symbol.for("react.transitional.element"),vf=/* @__PURE__ */Symbol.for("react.portal"),bf=/* @__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"),Ef=/* @__PURE__ */Symbol.for("react.forward_ref"),Tf=/* @__PURE__ */Symbol.for("react.suspense"),Sf=/* @__PURE__ */Symbol.for("react.suspense_list"),xf=/* @__PURE__ */Symbol.for("react.memo"),Cf=/* @__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,Pf=hf.te,Lf=Object.freeze({pending:!1,data:null,method:null,action:null}),Ff=[],Df=[],Uf=-1,Hf=k(null),jf=k(null),qf=k(null),Vf=k(null),Wf=0;O.Ce=!0;var zf,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,od=ff.unstable_UserBlockingPriority,id=ff.unstable_NormalPriority,ad=ff.unstable_LowPriority,sd=ff.unstable_IdlePriority,ud=ff.log,ld=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)/yd|0)|0},md=Math.log,yd=Math.LN2,vd=256,bd=262144,wd=4194304,gd=2,kd=8,Ad=32,Ed=268435456,Td=Math.random().toString(36).slice(2),Sd="__reactFiber$"+Td,xd="__reactProps$"+Td,Cd="__reactContainer$"+Td,Id="__reactEvents$"+Td,Md="__reactListeners$"+Td,Od="__reactHandles$"+Td,Rd="__reactResources$"+Td,Nd="__reactMarker$"+Td,Bd=/* @__PURE__ */new Set,Pd={},Ld={},Fd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Dd=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]*$"),Ud={},Hd={},jd=/[\n"\\]/g,qd=!1,Vd=!1,Wd=!1,zd=!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,oh=/^ms-/,ih=/^(?:webkit|moz|o)[A-Z]/,ah=/;\s*$/,sh={},uh={},lh=!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"},yh={"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={},bh=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./,Eh=/^on[^A-Z]/,Th=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]*$"),xh=/^[\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,Ch=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 Ph,Lh,Fh,Dh=null,Uh=null,Hh=null,jh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qh=Sn(jh),Vh=pf({},jh,{view:0,detail:0}),Wh=Sn(Vh),zh=pf({},Vh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==Fh&&(Fh&&"mousemove"===e.type?(Ph=e.screenX-Fh.screenX,Lh=e.screenY-Fh.screenY):Lh=Ph=0,Fh=e),Ph)},movementY:function(e){return"movementY"in e?e.movementY:Lh}}),Gh=Sn(zh),Yh=Sn(pf({},zh,{dataTransfer:0})),Jh=Sn(pf({},Vh,{relatedTarget:0})),Kh=Sn(pf({},jh,{animationName:0,elapsedTime:0,pseudoElement:0})),Xh=Sn(pf({},jh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Qh=Sn(pf({},jh,{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({},Vh,{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:Cn,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({},zh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rp=Sn(pf({},Vh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),op=Sn(pf({},jh,{propertyName:0,elapsedTime:0,pseudoElement:0})),ip=Sn(pf({},zh,{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({},jh,{newState:0,oldState:0})),sp=[9,13,27,32],up=229,lp=Rh&&"CompositionEvent"in window,cp=null;Rh&&"documentMode"in document&&(cp=document.documentMode);var fp=Rh&&"TextEvent"in window&&!cp,dp=Rh&&(!lp||cp&&8<cp&&11>=cp),hp=32,pp=String.fromCharCode(hp),mp=!1,yp=!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},bp=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,Ep=null,Tp=null,Sp=null,xp=!1,Cp={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 Cp.animationend.animation,delete Cp.animationiteration.animation,delete Cp.animationstart.animation),"TransitionEvent"in window||delete Cp.transitionend.transition);var Op=Xn("animationend"),Rp=Xn("animationiteration"),Np=Xn("animationstart"),Bp=Xn("transitionrun"),Pp=Xn("transitionstart"),Lp=Xn("transitioncancel"),Fp=Xn("transitionend"),Dp=/* @__PURE__ */new Map,Up="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(" ");Up.push("scrollEnd");var Hp=0;if("object"==typeof performance&&"function"==typeof performance.now)var jp=performance,qp=function(){return jp.now()};else{var Vp=Date;qp=function(){return Vp.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)},zp="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},om={start:-0,end:-0,detail:{devtools:rm}},im=["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],um=1,lm=2,cm=[],fm=0,dm=0,hm={};Object.freeze(hm);var pm=null,mm=null,ym=0,vm=1,bm=2,wm=8,gm=16,km=32,Am=!1;try{Object.preventExtensions({});
|
|
3
3
|
/* @__PURE__ */}catch(NA){Am=!0}var Em=/* @__PURE__ */new WeakMap,Tm=[],Sm=0,xm=null,Cm=0,Im=[],Mm=0,Om=null,Rm=1,Nm="",Bm=null,Pm=null,Lm=!1,Fm=!1,Dm=null,Um=null,Hm=!1,jm=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."),qm=k(null),Vm=k(null),Wm={},zm=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,P:null,U:null,j:0,_:null,$:null},Qm=ff.unstable_now,Zm=console.createTask?console.createTask:function(){return null},_m=1,$m=2,ey=-0,ny=-0,ty=-0,ry=null,oy=-1.1,iy=-0,ay=-0,sy=-1.1,uy=-1.1,ly=null,cy=!1,fy=-0,dy=-1.1,hy=null,py=0,my=null,yy=null,vy=-1.1,by=null,wy=-1.1,gy=-1.1,ky=-0,Ay=-1.1,Ey=-1.1,Ty=0,Sy=null,xy=null,Cy=null,Iy=-1.1,My=null,Oy=-1.1,Ry=-1.1,Ny=0,By=0,Py=-1.1,Ly=!1,Fy=!1,Dy=null,Uy=0,Hy=0,jy=null,qy=Bf.S;Bf.S=function(e,n){if(eg=nd(),"object"==typeof n&&null!==n&&"function"==typeof n.then){if(0>Ay&&0>Ey){Ay=Qm();var t=Rl(),r=Ol();t===Oy&&r===My||(Oy=-1.1),Iy=t,My=r}!function(e,n){if(null===Dy){var t=Dy=[];Uy=0,Hy=Ju(),jy={status:"pending",value:void 0,then:function(e){t.push(e)}}}Uy++,n.then(xr,xr)}(0,n)}null!==qy&&qy(e,n)};var Vy=k(null),Wy={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},zy=[],Gy=[],Yy=[],Jy=[],Ky=[],Xy=[],Qy=/* @__PURE__ */new Set;Wy.recordUnsafeLifecycleWarnings=function(e,n){Qy.has(e.type)||("function"==typeof n.componentWillMount&&!0!==n.componentWillMount.Te&&zy.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillMount&&Gy.push(e),"function"==typeof n.componentWillReceiveProps&&!0!==n.componentWillReceiveProps.Te&&Yy.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillReceiveProps&&Jy.push(e),"function"==typeof n.componentWillUpdate&&!0!==n.componentWillUpdate.Te&&Ky.push(e),e.mode&wm&&"function"==typeof n.UNSAFE_componentWillUpdate&&Xy.push(e))},Wy.flushPendingUnsafeLifecycleWarnings=function(){var e=/* @__PURE__ */new Set;0<zy.length&&(zy.forEach(function(n){e.add(g(n)||"Component"),Qy.add(n.type)}),zy=[]);var n=/* @__PURE__ */new Set;0<Gy.length&&(Gy.forEach(function(e){n.add(g(e)||"Component"),Qy.add(e.type)}),Gy=[]);var t=/* @__PURE__ */new Set;0<Yy.length&&(Yy.forEach(function(e){t.add(g(e)||"Component"),Qy.add(e.type)}),Yy=[]);var r=/* @__PURE__ */new Set;0<Jy.length&&(Jy.forEach(function(e){r.add(g(e)||"Component"),Qy.add(e.type)}),Jy=[]);var o=/* @__PURE__ */new Set;0<Ky.length&&(Ky.forEach(function(e){o.add(g(e)||"Component"),Qy.add(e.type)}),Ky=[]);var i=/* @__PURE__ */new Set;0<Xy.length&&(Xy.forEach(function(e){i.add(g(e)||"Component"),Qy.add(e.type)}),Xy=[]),0<n.size&&l(n),0<r.size&&l(r),0<i.size&&l(i),0<e.size&&l(e),0<t.size&&l(t),0<o.size&&l(o)};var Zy=/* @__PURE__ */new Map,_y=/* @__PURE__ */new Set;Wy.recordLegacyContextWarning=function(e,n){for(var t=null,r=e;null!==r;)r.mode&wm&&(t=r),r=r.return;null===t||!_y.has(e.type)&&(r=Zy.get(t),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==n&&"function"==typeof n.getChildContext)&&(void 0===r&&(r=[],Zy.set(t,r)),r.push(e))},Wy.flushLegacyContextWarning=function(){Zy.forEach(function(e){if(0!==e.length){var n=e[0],t=/* @__PURE__ */new Set;e.forEach(function(e){t.add(g(e)||"Component"),_y.add(e.type)}),l(t),j(n,function(){})}})},Wy.discardPendingWarnings=function(){zy=[],Gy=[],Yy=[],Jy=[],Ky=[],Xy=[],Zy=/* @__PURE__ */new Map};var $y,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),ov={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(t){Cu(e,e.return,t)}}},iv=ov.react_stack_bottom_frame.bind(ov),av={react_stack_bottom_frame:function(e,n,t,r,o){try{n.componentDidUpdate(t,r,o)}catch(i){Cu(e,e.return,i)}}},sv=av.react_stack_bottom_frame.bind(av),uv={react_stack_bottom_frame:function(e,n){var t=n.stack;e.componentDidCatch(n.value,{componentStack:null!==t?t:""})}},lv=uv.react_stack_bottom_frame.bind(uv),cv={react_stack_bottom_frame:function(e,n,t){try{t.componentWillUnmount()}catch(r){Cu(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){Cu(e,n,r)}}},mv=pv.react_stack_bottom_frame.bind(pv),yv={react_stack_bottom_frame:function(e){return(0,e.i)(e.u)}},vv=yv.react_stack_bottom_frame.bind(yv),bv=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,Ev=!1,Tv=null,Sv=0,xv=null,Cv=($y=!1,{}),Iv={},Mv={};u=function(e,n,t){if(null!==t&&"object"==typeof t&&t.W&&(!t.W.validated&&null==t.key||2===t.W.validated)){if("object"!=typeof t.W)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.W.validated=1;var r=g(e),o=r||"null";if(!Cv[o]){Cv[o]=!0,t=t.V;var i="";(e=e.we)&&"number"==typeof e.tag&&(o=g(e))&&(i="\n\nCheck the render method of `"+o+"`."),i||r&&(i="\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)),j(n,function(){})}}};var Ov,Rv=Yr(!0),Nv=Yr(!1),Bv=0,Pv=1,Lv=2,Fv=3,Dv=!1,Uv=!1,Hv=null,jv=!1,qv=k(null),Vv=k(0),Wv=k(null),zv=null,Gv=1,Yv=2,Jv=k(0),Kv=1,Xv=2,Qv=4,Zv=8,_v=/* @__PURE__ */new Set,$v=/* @__PURE__ */new Set,eb=/* @__PURE__ */new Set,nb=/* @__PURE__ */new Set,tb=0,rb=null,ob=null,ib=null,ab=!1,sb=!1,ub=!1,lb=0,cb=0,fb=null,db=0,hb=25,pb=null,mb=null,yb=-1,vb=!1,bb={readContext:tr,use:Ro,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo};bb.useEffectEvent=wo;var wb=null,gb=null,kb=null,Ab=null,Eb=null,Tb=null,Sb=null;wb={readContext:function(e){return tr(e)},use:Ro,useCallback:function(e,n){return pb="useCallback",mo(),vo(n),gi(e,n)},useContext:function(e){return pb="useContext",mo(),tr(e)},useEffect:function(e,n){return pb="useEffect",mo(),vo(n),hi(e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",mo(),vo(t),bi(e,n,t)},useInsertionEffect:function(e,n){pb="useInsertionEffect",mo(),vo(n),fi(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",mo(),vo(n),yi(e,n)},useMemo:function(e,n){pb="useMemo",mo(),vo(n);var t=Bf.H;Bf.H=Eb;try{return Ai(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",mo();var r=Bf.H;Bf.H=Eb;try{return Po(e,n,t)}finally{Bf.H=r}},useRef:function(e){return pb="useRef",mo(),ci(e)},useState:function(e){pb="useState",mo();var n=Bf.H;Bf.H=Eb;try{return Yo(e)}finally{Bf.H=n}},useDebugValue:function(){pb="useDebugValue",mo()},useDeferredValue:function(e,n){return pb="useDeferredValue",mo(),Ti(e,n)},useTransition:function(){return pb="useTransition",mo(),Pi()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",mo(),Uo(e,n,t)},useId:function(){return pb="useId",mo(),Ui()},useFormState:function(e,n){return pb="useFormState",mo(),bo(),oi(e,n)},useActionState:function(e,n){return pb="useActionState",mo(),oi(e,n)},useOptimistic:function(e){return pb="useOptimistic",mo(),Jo(e)},useHostTransitionStatus:Di,useMemoCache:No,useCacheRefresh:function(){return pb="useCacheRefresh",mo(),Hi()},useEffectEvent:function(e){return pb="useEffectEvent",mo(),pi(e)}},gb={readContext:function(e){return tr(e)},use:Ro,useCallback:function(e,n){return pb="useCallback",yo(),gi(e,n)},useContext:function(e){return pb="useContext",yo(),tr(e)},useEffect:function(e,n){return pb="useEffect",yo(),hi(e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",yo(),bi(e,n,t)},useInsertionEffect:function(e,n){pb="useInsertionEffect",yo(),fi(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",yo(),yi(e,n)},useMemo:function(e,n){pb="useMemo",yo();var t=Bf.H;Bf.H=Eb;try{return Ai(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",yo();var r=Bf.H;Bf.H=Eb;try{return Po(e,n,t)}finally{Bf.H=r}},useRef:function(e){return pb="useRef",yo(),ci(e)},useState:function(e){pb="useState",yo();var n=Bf.H;Bf.H=Eb;try{return Yo(e)}finally{Bf.H=n}},useDebugValue:function(){pb="useDebugValue",yo()},useDeferredValue:function(e,n){return pb="useDeferredValue",yo(),Ti(e,n)},useTransition:function(){return pb="useTransition",yo(),Pi()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",yo(),Uo(e,n,t)},useId:function(){return pb="useId",yo(),Ui()},useActionState:function(e,n){return pb="useActionState",yo(),oi(e,n)},useFormState:function(e,n){return pb="useFormState",yo(),bo(),oi(e,n)},useOptimistic:function(e){return pb="useOptimistic",yo(),Jo(e)},useHostTransitionStatus:Di,useMemoCache:No,useCacheRefresh:function(){return pb="useCacheRefresh",yo(),Hi()},useEffectEvent:function(e){return pb="useEffectEvent",yo(),pi(e)}},kb={readContext:function(e){return tr(e)},use:Ro,useCallback:function(e,n){return pb="useCallback",yo(),ki(e,n)},useContext:function(e){return pb="useContext",yo(),tr(e)},useEffect:function(e,n){pb="useEffect",yo(),di(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",yo(),wi(e,n,t)},useInsertionEffect:function(e,n){return pb="useInsertionEffect",yo(),di(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",yo(),di(4,Qv,e,n)},useMemo:function(e,n){pb="useMemo",yo();var t=Bf.H;Bf.H=Tb;try{return Ei(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",yo();var r=Bf.H;Bf.H=Tb;try{return Lo(e)}finally{Bf.H=r}},useRef:function(){return pb="useRef",yo(),Mo().memoizedState},useState:function(){pb="useState",yo();var e=Bf.H;Bf.H=Tb;try{return Lo(Bo)}finally{Bf.H=e}},useDebugValue:function(){pb="useDebugValue",yo()},useDeferredValue:function(e,n){return pb="useDeferredValue",yo(),Si(e,n)},useTransition:function(){return pb="useTransition",yo(),Li()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",yo(),Ho(e,n,t)},useId:function(){return pb="useId",yo(),Mo().memoizedState},useFormState:function(e){return pb="useFormState",yo(),bo(),ii(e)},useActionState:function(e){return pb="useActionState",yo(),ii(e)},useOptimistic:function(e,n){return pb="useOptimistic",yo(),Ko(e,n)},useHostTransitionStatus:Di,useMemoCache:No,useCacheRefresh:function(){return pb="useCacheRefresh",yo(),Mo().memoizedState},useEffectEvent:function(e){return pb="useEffectEvent",yo(),mi(e)}},Ab={readContext:function(e){return tr(e)},use:Ro,useCallback:function(e,n){return pb="useCallback",yo(),ki(e,n)},useContext:function(e){return pb="useContext",yo(),tr(e)},useEffect:function(e,n){pb="useEffect",yo(),di(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",yo(),wi(e,n,t)},useInsertionEffect:function(e,n){return pb="useInsertionEffect",yo(),di(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",yo(),di(4,Qv,e,n)},useMemo:function(e,n){pb="useMemo",yo();var t=Bf.H;Bf.H=Sb;try{return Ei(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",yo();var r=Bf.H;Bf.H=Sb;try{return Do(e)}finally{Bf.H=r}},useRef:function(){return pb="useRef",yo(),Mo().memoizedState},useState:function(){pb="useState",yo();var e=Bf.H;Bf.H=Sb;try{return Do(Bo)}finally{Bf.H=e}},useDebugValue:function(){pb="useDebugValue",yo()},useDeferredValue:function(e,n){return pb="useDeferredValue",yo(),xi(e,n)},useTransition:function(){return pb="useTransition",yo(),Fi()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",yo(),Ho(e,n,t)},useId:function(){return pb="useId",yo(),Mo().memoizedState},useFormState:function(e){return pb="useFormState",yo(),bo(),ui(e)},useActionState:function(e){return pb="useActionState",yo(),ui(e)},useOptimistic:function(e,n){return pb="useOptimistic",yo(),Qo(e,n)},useHostTransitionStatus:Di,useMemoCache:No,useCacheRefresh:function(){return pb="useCacheRefresh",yo(),Mo().memoizedState},useEffectEvent:function(e){return pb="useEffectEvent",yo(),mi(e)}},Eb={readContext:function(e){return tr(e)},use:function(e){return Ro(e)},useCallback:function(e,n){return pb="useCallback",mo(),gi(e,n)},useContext:function(e){return pb="useContext",mo(),tr(e)},useEffect:function(e,n){return pb="useEffect",mo(),hi(e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",mo(),bi(e,n,t)},useInsertionEffect:function(e,n){pb="useInsertionEffect",mo(),fi(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",mo(),yi(e,n)},useMemo:function(e,n){pb="useMemo",mo();var t=Bf.H;Bf.H=Eb;try{return Ai(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",mo();var r=Bf.H;Bf.H=Eb;try{return Po(e,n,t)}finally{Bf.H=r}},useRef:function(e){return pb="useRef",mo(),ci(e)},useState:function(e){pb="useState",mo();var n=Bf.H;Bf.H=Eb;try{return Yo(e)}finally{Bf.H=n}},useDebugValue:function(){pb="useDebugValue",mo()},useDeferredValue:function(e,n){return pb="useDeferredValue",mo(),Ti(e,n)},useTransition:function(){return pb="useTransition",mo(),Pi()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",mo(),Uo(e,n,t)},useId:function(){return pb="useId",mo(),Ui()},useFormState:function(e,n){return pb="useFormState",mo(),oi(e,n)},useActionState:function(e,n){return pb="useActionState",mo(),oi(e,n)},useOptimistic:function(e){return pb="useOptimistic",mo(),Jo(e)},useMemoCache:function(e){return No(e)},useHostTransitionStatus:Di,useCacheRefresh:function(){return pb="useCacheRefresh",mo(),Hi()},useEffectEvent:function(e){return pb="useEffectEvent",mo(),pi(e)}},Tb={readContext:function(e){return tr(e)},use:function(e){return Ro(e)},useCallback:function(e,n){return pb="useCallback",yo(),ki(e,n)},useContext:function(e){return pb="useContext",yo(),tr(e)},useEffect:function(e,n){pb="useEffect",yo(),di(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",yo(),wi(e,n,t)},useInsertionEffect:function(e,n){return pb="useInsertionEffect",yo(),di(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",yo(),di(4,Qv,e,n)},useMemo:function(e,n){pb="useMemo",yo();var t=Bf.H;Bf.H=Tb;try{return Ei(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",yo();var r=Bf.H;Bf.H=Tb;try{return Lo(e)}finally{Bf.H=r}},useRef:function(){return pb="useRef",yo(),Mo().memoizedState},useState:function(){pb="useState",yo();var e=Bf.H;Bf.H=Tb;try{return Lo(Bo)}finally{Bf.H=e}},useDebugValue:function(){pb="useDebugValue",yo()},useDeferredValue:function(e,n){return pb="useDeferredValue",yo(),Si(e,n)},useTransition:function(){return pb="useTransition",yo(),Li()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",yo(),Ho(e,n,t)},useId:function(){return pb="useId",yo(),Mo().memoizedState},useFormState:function(e){return pb="useFormState",yo(),ii(e)},useActionState:function(e){return pb="useActionState",yo(),ii(e)},useOptimistic:function(e,n){return pb="useOptimistic",yo(),Ko(e,n)},useMemoCache:function(e){return No(e)},useHostTransitionStatus:Di,useCacheRefresh:function(){return pb="useCacheRefresh",yo(),Mo().memoizedState},useEffectEvent:function(e){return pb="useEffectEvent",yo(),mi(e)}},Sb={readContext:function(e){return tr(e)},use:function(e){return Ro(e)},useCallback:function(e,n){return pb="useCallback",yo(),ki(e,n)},useContext:function(e){return pb="useContext",yo(),tr(e)},useEffect:function(e,n){pb="useEffect",yo(),di(2048,Zv,e,n)},useImperativeHandle:function(e,n,t){return pb="useImperativeHandle",yo(),wi(e,n,t)},useInsertionEffect:function(e,n){return pb="useInsertionEffect",yo(),di(4,Xv,e,n)},useLayoutEffect:function(e,n){return pb="useLayoutEffect",yo(),di(4,Qv,e,n)},useMemo:function(e,n){pb="useMemo",yo();var t=Bf.H;Bf.H=Tb;try{return Ei(e,n)}finally{Bf.H=t}},useReducer:function(e,n,t){pb="useReducer",yo();var r=Bf.H;Bf.H=Tb;try{return Do(e)}finally{Bf.H=r}},useRef:function(){return pb="useRef",yo(),Mo().memoizedState},useState:function(){pb="useState",yo();var e=Bf.H;Bf.H=Tb;try{return Do(Bo)}finally{Bf.H=e}},useDebugValue:function(){pb="useDebugValue",yo()},useDeferredValue:function(e,n){return pb="useDeferredValue",yo(),xi(e,n)},useTransition:function(){return pb="useTransition",yo(),Fi()},useSyncExternalStore:function(e,n,t){return pb="useSyncExternalStore",yo(),Ho(e,n,t)},useId:function(){return pb="useId",yo(),Mo().memoizedState},useFormState:function(e){return pb="useFormState",yo(),ui(e)},useActionState:function(e){return pb="useActionState",yo(),ui(e)},useOptimistic:function(e,n){return pb="useOptimistic",yo(),Qo(e,n)},useMemoCache:function(e){return No(e)},useHostTransitionStatus:Di,useCacheRefresh:function(){return pb="useCacheRefresh",yo(),Mo().memoizedState},useEffectEvent:function(e){return pb="useEffectEvent",yo(),mi(e)}};var xb={},Cb=/* @__PURE__ */new Set,Ib=/* @__PURE__ */new Set,Mb=/* @__PURE__ */new Set,Ob=/* @__PURE__ */new Set,Rb=/* @__PURE__ */new Set,Nb=/* @__PURE__ */new Set,Bb=/* @__PURE__ */new Set,Pb=/* @__PURE__ */new Set,Lb=/* @__PURE__ */new Set,Fb=/* @__PURE__ */new Set;Object.freeze(xb);var Db={enqueueSetState:function(e,n,t){var r=Ys(e=e.se),o=Qr(r);o.payload=n,null!=t&&(Ki(t),o.callback=t),null!==(n=Zr(e,o,r))&&(ur(r,"this.setState()",e),Ks(n,e,r),_r(n,e,r))},enqueueReplaceState:function(e,n,t){var r=Ys(e=e.se),o=Qr(r);o.tag=Pv,o.payload=n,null!=t&&(Ki(t),o.callback=t),null!==(n=Zr(e,o,r))&&(ur(r,"this.replaceState()",e),Ks(n,e,r),_r(n,e,r))},enqueueForceUpdate:function(e,n){var t=Ys(e=e.se),r=Qr(t);r.tag=Lv,null!=n&&(Ki(n),r.callback=n),null!==(n=Zr(e,r,t))&&(ur(t,"this.forceUpdate()",e),Ks(n,e,t),_r(n,e,t))}},Ub=null,Hb=null,jb=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."),qb=!1,Vb={},Wb={},zb={},Gb={},Yb=!1,Jb={},Kb={},Xb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Qb=!1,Zb=null;Zb=/* @__PURE__ */new Set;var _b=!1,$b=!1,ew=!1,nw="function"==typeof WeakSet?WeakSet:Set,tw=null,rw=null,ow=null,iw=null,aw=!1,sw=null,uw=!1,lw=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,yw=4,vw=0,bw=1,ww=2,gw=3,kw=4,Aw=6,Ew=5,Tw=pw,Sw=null,xw=null,Cw=0,Iw=0,Mw=1,Ow=2,Rw=3,Nw=4,Bw=5,Pw=6,Lw=7,Fw=8,Dw=9,Uw=Iw,Hw=null,jw=!1,qw=!1,Vw=!1,Ww=0,zw=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,og=null,ig=null,ag=null,sg=0,ug=1,lg=2,cg=3,fg=0,dg=1,hg=2,pg=3,mg=4,yg=5,vg=0,bg=null,wg=null,gg=0,kg=0,Ag=-0,Eg=null,Tg=null,Sg=null,xg=sg,Cg=null,Ig=50,Mg=0,Og=null,Rg=!1,Ng=!1,Bg=50,Pg=0,Lg=null,Fg=null,Dg=!1,Ug=/* @__PURE__ */new Set,Hg=null,jg=null,qg=!1,Vg=!1,Wg=!1,zg=!1,Gg=0,Yg={};!function(){for(var e=0;e<Up.length;e++){var n=Up[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(Pp,"onTransitionStart"),Qn(Lp,"onTransitionCancel"),Qn(Fp,"onTransitionEnd")}(),ve("onMouseEnter",["mouseout","mouseover"]),ve("onMouseLeave",["mouseout","mouseover"]),ve("onPointerEnter",["pointerout","pointerover"]),ve("onPointerLeave",["pointerout","pointerover"]),ye("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ye("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),ye("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ye("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ye("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={},ok=/\r\n?/g,ik=/\u0000|\uFFFD/g,ak="http://www.w3.org/1999/xlink",sk="http://www.w3.org/XML/1998/namespace",uk="javascript:throw new Error('React form unexpectedly submitted.')",lk="suppressHydrationWarning",ck="&",fk="/&",dk="$",hk="/$",pk="$?",mk="$~",yk="$!",vk="html",bk="body",wk="head",gk="F!",kk="F",Ak="loading",Ek="style",Tk=0,Sk=1,xk=2,Ck=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,Pk=-1,Lk="function"==typeof Promise?Promise:void 0,Fk="function"==typeof queueMicrotask?queueMicrotask:void 0!==Lk?function(e){return Lk.resolve(null).then(e).catch(Nl)}:Nk,Dk=null,Uk=0,Hk=1,jk=2,qk=3,Vk=4,Wk=/* @__PURE__ */new Map,zk=/* @__PURE__ */new Set,Gk=Pf.d;Pf.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?Bi(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 o='link[rel="preload"][as="'+Me(n)+'"]';"image"===n&&t&&t.imageSrcSet?(o+='[imagesrcset="'+Me(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(o+='[imagesizes="'+Me(t.imageSizes)+'"]')):o+='[href="'+Me(e)+'"]';var i=o;switch(n){case"style":i=mc(e);break;case"script":i=bc(e)}Wk.has(i)||(e=pf({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),Wk.set(i,e),null!==r.querySelector(o)||"style"===n&&r.querySelector(yc(i))||"script"===n&&r.querySelector(wc(i))||(ml(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",o='link[rel="modulepreload"][as="'+Me(r)+'"][href="'+Me(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=bc(e)}if(!Wk.has(i)&&(e=pf({rel:"modulepreload",href:e},n),Wk.set(i,e),null===t.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(wc(i)))return}ml(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,o=bc(e),i=r.get(o);i||((i=t.querySelector(wc(o)))||(e=pf({src:e,async:!0},n),(n=Wk.get(o))&&Ec(e,n),me(i=t.createElement("script")),ml(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,n,t){Gk.S(e,n,t);var r=tA;if(r&&e){var o=pe(r).hoistableStyles,i=mc(e);n=n||"default";var a=o.get(i);if(!a){var s={loading:Uk,preload:null};if(a=r.querySelector(yc(i)))s.loading=Hk|Vk;else{e=pf({rel:"stylesheet",href:e,"data-precedence":n},t),(t=Wk.get(i))&&Ac(e,t);var u=a=r.createElement("link");me(u),ml(u,"link",e),u.pe=new Promise(function(e,n){u.onload=e,u.onerror=n}),u.addEventListener("load",function(){s.loading|=Hk}),u.addEventListener("error",function(){s.loading|=jk}),s.loading|=Vk,kc(a,n,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,n){Gk.M(e,n);var t=tA;if(t&&e){var r=pe(t).hoistableScripts,o=bc(e),i=r.get(o);i||((i=t.querySelector(wc(o)))||(e=pf({src:e,async:!0,type:"module"},n),(n=Wk.get(o))&&Ec(e,n),me(i=t.createElement("script")),ml(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Yk,Jk,Kk,Xk,Qk,Zk,_k,$k,eA,nA,tA="undefined"==typeof document?null:document,rA=null,oA=6e4,iA=800,aA=500,sA=0,uA=null,lA=null,cA=Lf,fA={$$typeof:Af,Provider:null,Consumer:null,P:cA,U: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=" ",yA=Function.prototype.bind,vA=!1;Yk=function(t,r,o,i){null!==(r=e(t,r))&&(o=n(r.memoizedState,o,0,i),r.memoizedState=o,r.baseState=o,t.memoizedProps=pf({},t.memoizedProps),null!==(o=ht(t,2))&&Ks(o,t,2))},Jk=function(n,t,r){null!==(t=e(n,t))&&(r=o(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,o,i){null!==(r=e(n,r))&&(o=t(r.memoizedState,o,i),r.memoizedState=o,r.baseState=o,n.memoizedProps=pf({},n.memoizedProps),null!==(o=ht(n,2))&&Ks(o,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=o(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){i=e};var bA,wA=!0,gA=null,kA=!1,AA=null,EA=null,TA=null,SA=/* @__PURE__ */new Map,xA=/* @__PURE__ */new Map,CA=[],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.be;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.be)){this.be=null;var n=e.containerInfo;Bc(e.current,2,null,e,null,null),$s(),n[Cd]=null}},nf.prototype.unstable_scheduleHydration=function(e){if(e){var n=ue();e={blockedOn:null,target:e,priority:n};for(var t=0;t<CA.length&&0!==n&&n<CA[t].priority;t++);CA.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,Pf.findDOMNode=function(e){var n=e.se;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 o=t.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){t=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===t)return m(o),e;if(i===r)return m(o),n;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=o,r=i;else{for(var a=!1,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){for(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)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?y(e):null)?null:e.stateNode},(bA={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Bf,reconcilerVersion:"19.2.4"}).overrideHookState=Yk,bA.overrideHookStateDeletePath=Jk,bA.overrideHookStateRenamePath=Kk,bA.overrideProps=Xk,bA.overridePropsDeletePath=Qk,bA.overridePropsRenamePath=Zk,bA.scheduleUpdate=_k,bA.scheduleRetry=$k,bA.setErrorHandler=eA,bA.setSuspenseHandler=nA,bA.scheduleRefresh=function(e,n){if(null!==pm){var t=n.staleFamilies;n=n.updatedFamilies,Tu(),gt(e.current,n,t),$s()}},bA.scheduleRoot=function(e,n){e.context===hm&&(Bc(e.current,2,n,e,null,null),$s())},bA.setRefreshHandler=function(e){pm=e},bA.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}(bA)&&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="",o=$i,i=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&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),n=Rc(e,1,!1,null,0,t,r,null,o,i,a,$c),e[Cd]=n.current,el(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,o="",i=$i,a=ea,s=na,u=null;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.formState&&(u=t.formState)),(n=Rc(e,1,!0,n,0,r,o,u,i,a,s,$c)).context=Nc(null),(o=Qr(r=oe(r=Ys(t=n.current)))).callback=null,Zr(t,o,r),ur(r,"hydrateRoot()",null),t=r,n.current.lanes=t,ee(n,t),Uu(n),e[Cd]=n.current,el(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)),A.exports),j=v();const q={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 now connected and ready to explore the world of Blockchain. I can assist you anytime with NFT insights, trading, price tracking, and portfolio analysis.",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.",sendNftViaWebsiteWithLink:"Please select the NFT you would like to send from the list and proceed via [this website]({link}).",viewNftViaWebsite:"Please view your NFT collection on this website for more details.",viewNftViaWebsiteWithLink:"Please view your NFT collection on [this website]({link}) for more details.",buyingOnChain:"Buying {symbol} on {chain}",viewOnExplorer:"View on Explorer",copyWalletAddress:"Copy wallet address",copied:"Copied!",copyAddress:"Copy address",poolGeneralInfoIntro:"💧 **Liquidity Pools** are smart contracts where users deposit token pairs to provide liquidity for DEX trading (like Uniswap). Liquidity providers (LPs) earn trading fees from each swap.",poolGeneralInfoMetricsTitle:"**Key Metrics:**",poolGeneralInfoMetricTVL:"**TVL** - Total Value Locked in the pool",poolGeneralInfoMetricAPR:"**APR** - Estimated annual return from fees",poolGeneralInfoMetricVol24h:"**Volume 24h** - Trading volume in last 24 hours",poolGeneralInfoMetricFeeTier:"**Fee Tier** - Trading fee (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'Try asking something specific, like: *"ETH/USDC pools on Base"* or *"Highest APR pools"*.',poolNoMatch:"❌ No matching pools found.",poolNoMatchForTokenOnChain:"❌ No matching pools found for **{token}** on **{chain}**.",poolSuggestionsTitle:"💡 **Suggestions:**",poolSuggestionTryChain:"Try a different chain (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"Try a more popular pair (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"Remove filters if too narrow",poolHeaderBest:"🏆 Best Pool",poolHeaderSafe:"🛡️ Safest Pools",poolHeaderTrending:"🔥 Trending Pools",poolHeaderHighApr:"📈 Highest APR Pools",poolHeaderLowFee:"💰 Lowest Fee Pools",poolHeaderCompare:"⚖️ Pool Comparison",poolHeaderDetail:"🔎 Pool Details",poolHeaderGeneral:"💧 Pool Info",poolHeaderSearch:"🔍 Search Results",poolTableMetric:"Metric",poolTableValue:"Value",poolTableLink:"Link",poolLinkView:"View on Uniswap",poolRecommendationHighApr:"👉 **Recommended:** [{pair}]({link}) - Highest APR at **{apr}%**. _Note: Higher APR may come with higher risk._",poolRecommendationLowFee:"👉 **Recommended:** [{pair}]({link}) - Lowest fee at **{fee}%**, ideal for frequent trading.",poolRecommendationSafe:"👉 **Recommended:** [{pair}]({link}) - Highest TVL at **{tvl}**, deep liquidity and stable.",poolRecommendationTrending:"👉 **Most Active:** [{pair}]({link}) - 24h Volume **{volume}**, highest trading activity.",poolRecommendationTopPick:"👉 **Top pick:** [{pair}]({link}) - TVL **{tvl}**, best match for your criteria.",sendPositionNoId:'Please provide your LP position ID to send it. For example: "send position 12345 to 0x...".',sendPositionNotFound:"Position #{id} was not found in your wallet on {chain}. Please make sure you own this position.",sendPositionReview:"📤 Send LP Position **#{positionId}** ({pair})\n\nPlease enter the recipient address below:",sendPositionFetchError:"Error fetching your positions. Please try again.",poolUnsupportedChain:"This chain is not supported for data queries. Sorry for the inconvenience.",poolUniswapV3Only:"I can only get information of pools that is on Subgraph Uniswap V3."},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次世代のブロックチェーンへ。NFT情報、トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。",sendOtherNfts:"\n送信したいNFTが上記のリストにない場合は、当ウェブサイトにアクセスして送信してください。",sendNftViaWebsite:"送信したいNFTをリストから選択し、当ウェブサイトで手続きを進めてください。",sendNftViaWebsiteWithLink:"送信したいNFTをリストから選択し、[当ウェブサイト]({link})で手続きを進めてください。",viewNftViaWebsite:"NFTコレクションの詳細は、当ウェブサイトでご確認ください。",viewNftViaWebsiteWithLink:"NFTコレクションの詳細は、[当ウェブサイト]({link})でご確認ください。",buyingOnChain:"{chain} チェーンで {symbol} を購入中",viewOnExplorer:"エクスプローラーで見る",copyWalletAddress:"ウォレットアドレスをコピー",copied:"コピーしました!",copyAddress:"アドレスをコピー",poolGeneralInfoIntro:"💧 **流動性プール** は、ユーザーがトークンペアを預けてDEX取引(Uniswap など)の流動性を提供するスマートコントラクトです。LP は各スワップの手数料を獲得します。",poolGeneralInfoMetricsTitle:"**主要メトリクス:**",poolGeneralInfoMetricTVL:"**TVL** - プールにロックされている総価値",poolGeneralInfoMetricAPR:"**APR** - 手数料に基づく年間想定利回り",poolGeneralInfoMetricVol24h:"**24時間出来高** - 直近24時間の取引量",poolGeneralInfoMetricFeeTier:"**手数料ティア** - 取引手数料 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'例: *"Base の ETH/USDC プール"* や *"APR が高いプール"* のように聞いてみてください。',poolNoMatch:"❌ 条件に一致するプールが見つかりませんでした。",poolNoMatchForTokenOnChain:"❌ **{chain}** 上で **{token}** に一致するプールが見つかりませんでした。",poolSuggestionsTitle:"💡 **提案:**",poolSuggestionTryChain:"別のチェーンを試す (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"より一般的なペアを試す (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"フィルター条件を緩める",poolHeaderBest:"🏆 最適なプール",poolHeaderSafe:"🛡️ 安全性の高いプール",poolHeaderTrending:"🔥 トレンドプール",poolHeaderHighApr:"📈 APRの高いプール",poolHeaderLowFee:"💰 手数料の低いプール",poolHeaderCompare:"⚖️ プール比較",poolHeaderDetail:"🔎 プール詳細",poolHeaderGeneral:"💧 プール情報",poolHeaderSearch:"🔍 検索結果",poolTableMetric:"指標",poolTableValue:"値",poolTableLink:"リンク",poolLinkView:"Uniswapで表示",poolRecommendationHighApr:"👉 **おすすめ:** [{pair}]({link}) - APR は **{apr}%** で最も高いです。_注意: APR が高いほどリスクも高い可能性があります。_",poolRecommendationLowFee:"👉 **おすすめ:** [{pair}]({link}) - 手数料 **{fee}%** で、頻繁な取引に適しています。",poolRecommendationSafe:"👉 **おすすめ:** [{pair}]({link}) - TVL **{tvl}** で流動性が厚く安定しています。",poolRecommendationTrending:"👉 **最も活発:** [{pair}]({link}) - 24時間出来高 **{volume}** で取引が最も活発です。",poolRecommendationTopPick:"👉 **トップ候補:** [{pair}]({link}) - TVL **{tvl}**、条件に最も適合しています。",sendPositionNoId:'LP ポジション ID を提供してください。例:"ポジション 12345 を 0x... に送信"。',sendPositionNotFound:"{chain} 上のウォレットにポジション #{id} が見つかりませんでした。このポジションを所有していることを確認してください。",sendPositionReview:"📤 LP ポジション **#{positionId}** ({pair}) を送信\n\n受取人アドレスを以下に入力してください:",sendPositionFetchError:"ポジションの取得中にエラーが発生しました。もう一度お試しください。",poolUnsupportedChain:"このチェーンはデータクエリに対応していません。ご不便をおかけして申し訳ございません。",poolUniswapV3Only:"Subgraph Uniswap V3 上のプールの情報のみ取得できます。"},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带你一起探索新一代区块链世界。我可以随时为您提供NFT资讯、交易支持、价格查询以及投资组合分析等服务。",sendOtherNfts:"\n如果您想发送的NFT不在上述列表中,请访问我们的网站进行发送。",sendNftViaWebsite:"请从列表中选择您想发送的NFT,并通过这个网站继续操作。",sendNftViaWebsiteWithLink:"请从列表中选择您想发送的NFT,并通过[这个网站]({link})继续操作。",viewNftViaWebsite:"如需查看更多详情,请在这个网站查看您的NFT收藏。",viewNftViaWebsiteWithLink:"如需查看更多详情,请在[这个网站]({link})查看您的NFT收藏。",buyingOnChain:"正在 {chain} 链上购买 {symbol}",viewOnExplorer:"在区块浏览器查看",copyWalletAddress:"复制钱包地址",copied:"已复制!",copyAddress:"复制地址",poolGeneralInfoIntro:"💧 **流动性池** 是用户存入代币对、为 DEX(如 Uniswap)提供流动性的智能合约。流动性提供者(LP)可从每笔兑换中获得手续费收益。",poolGeneralInfoMetricsTitle:"**关键指标:**",poolGeneralInfoMetricTVL:"**TVL** - 池中锁仓总价值",poolGeneralInfoMetricAPR:"**APR** - 基于手续费估算的年化收益",poolGeneralInfoMetricVol24h:"**24小时成交量** - 最近24小时交易量",poolGeneralInfoMetricFeeTier:"**费率档位** - 交易费率 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'你可以更具体地提问,例如:*"Base 上的 ETH/USDC 池"* 或 *"APR 最高的池"*。',poolNoMatch:"❌ 未找到匹配的流动性池。",poolNoMatchForTokenOnChain:"❌ 在 **{chain}** 上未找到 **{token}** 的匹配池。",poolSuggestionsTitle:"💡 **建议:**",poolSuggestionTryChain:"尝试其他链(Ethereum、Base、Arbitrum...)",poolSuggestionTryPair:"尝试更热门的交易对(ETH/USDC、ETH/USDT)",poolSuggestionRelaxFilters:"放宽筛选条件",poolHeaderBest:"🏆 最佳流动性池",poolHeaderSafe:"🛡️ 更稳健的流动性池",poolHeaderTrending:"🔥 热门流动性池",poolHeaderHighApr:"📈 高 APR 流动性池",poolHeaderLowFee:"💰 低费率流动性池",poolHeaderCompare:"⚖️ 流动性池对比",poolHeaderDetail:"🔎 流动性池详情",poolHeaderGeneral:"💧 流动性池信息",poolHeaderSearch:"🔍 搜索结果",poolTableMetric:"指标",poolTableValue:"数值",poolTableLink:"链接",poolLinkView:"在 Uniswap 查看",poolRecommendationHighApr:"👉 **推荐:**[{pair}]({link}) - APR 最高,为 **{apr}%**。_注意:APR 越高通常风险也越高。_",poolRecommendationLowFee:"👉 **推荐:**[{pair}]({link}) - 费率仅 **{fee}%**,适合高频交易。",poolRecommendationSafe:"👉 **推荐:**[{pair}]({link}) - TVL 达 **{tvl}**,流动性更充足且相对稳定。",poolRecommendationTrending:"👉 **最活跃:**[{pair}]({link}) - 24 小时成交量 **{volume}**,交易最活跃。",poolRecommendationTopPick:"👉 **首选:**[{pair}]({link}) - TVL **{tvl}**,最符合你的筛选条件。",sendPositionNoId:'请提供您的 LP 仓位 ID 以便转出。例如:"发送仓位 12345 至 0x..."。',sendPositionNotFound:"在 {chain} 上的钱包中未找到仓位 #{id}。请确认您拥有该仓位。",sendPositionReview:"📤 发送 LP 仓位 **#{positionId}** ({pair})\n\n请在下方填写接收者地址:",sendPositionFetchError:"获取您的仓位时出错。请重试。",poolUnsupportedChain:"该链不支持数据查询,给您带来不便,深表歉意。",poolUniswapV3Only:"我只能获取 Subgraph Uniswap V3 上的流动性池信息。"}};function V(e,n){return q[n]?.[e]??q.en[e]??e}const W=j.createContext(void 0),z=({children:e,initialLanguage:n="en"})=>{const[t,r]=j.useState(n);j.useEffect(()=>{n&&r(n)},[n]);const o=j.useCallback(e=>V(e,t),[t]),i=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 k.jsx(W.Provider,{value:{language:t,setLanguage:r,t:o,ti:i},children:e})},G=()=>{const e=j.useContext(W);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},Y=j.memo(({onClick:e,buttonSize:n=56,customIcon:t,customChatButton:r})=>{const{t:o}=G(),i=n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e())};return r?/* @__PURE__ */k.jsx("div",{onClick:e,onKeyDown:i,role:"button",tabIndex:0,children:r}):/* @__PURE__ */k.jsx("button",{className:"chat-button",onClick:e,onKeyDown:i,"aria-label":o("openChat"),title:o("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:/* @__PURE__ */k.jsx("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:t||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu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nhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),J={data:/* @__PURE__ */JSON.parse('[{"question":{"en":"Unveiling the Truth of Liquidity Pools & Earn Over 20% APR. How Is This Possible?"},"answer":{"en":"The high APR of liquidity pools like Uniswap comes from: Trading fees, Compensation for impermanent loss, Yieldfarming incentives, Market volatility in high-trading-volume pools"}},{"question":{"en":"What Is a Liquidity Pool?"},"answer":{"en":"A liquidity pool is a smart contract that holds two tokens and facilitates swaps using an AMM model. Liquidity providers (LPs) deposit tokens and earn trading fees from transactions in the pool."}},{"question":{"en":"What Are the Benefits of Liquidity Providers?"},"answer":{"en":"Liquidity providers (LPs) earn passive income by supplying tokens to pools, benefiting from trading fees, improved capital efficiency, yield farming rewards, and permissionless participation, while also potentially increasing their total coin holdings over time."}},{"question":{"en":"What risks do liquidity providers (LPs) face when providing liquidity?"},"answer":{"en":"Yes. While providing liquidity can generate returns, it also comes with certain risks that users should be aware of.\\nKey Risks\\nOut-of-Range Risk: If the market price moves outside your selected range, your liquidity becomes inactive. You stop earning fees and may end up holding only one asset in the pair. Adjusting or removing liquidity may be necessary.\\nImpermanent Loss: Significant price changes between the paired assets can reduce the value of your position compared to simply holding them.\\nAsset Imbalance: Over time, one asset may dominate the position, leaving you with an uneven or single-token exposure."}},{"question":{"en":"What is CoinPool?"},"answer":{"en":"CoinPool is a platform that provides a streamlined, non-custodial interface for accessing and managing liquidity positions across supported decentralized finance (DeFi) protocols.\\nIt simplifies how users interact with liquidity pools, making it easier to discover, enter, and manage positions, all while maintaining full control of their assets."}},{"question":{"en":"How Do I Get Started with CoinPool?"},"answer":{"en":"For example, if you hold USDC and select the ETH/WBTC pair, CoinPool will automatically swap USDC into ETH and WBTC, then create a liquidity position for you, making it easy to provide liquidity to the pool."}},{"question":{"en":"Why Should You Use CoinPool?"},"answer":{"en":"CoinPool simplifies and optimizes earning potential by prioritizing high-APR pools to maximize returns, while handling all liquidity provisioning automatically—eliminating the need for manual swaps or rebalancing. With just a single asset deposit, CoinPool seamlessly manages the process to generate efficient passive income."}},{"question":{"en":"What does CoinPool allow users to do?"},"answer":{"en":"CoinPool allows users to create an LP position with a single token, eliminating the need for direct access and manual operations on sites like Uniswap."}},{"question":{"en":"How do you manage Liquidity Positions (LPs)?"},"answer":{"en":"You can manage your LP position directly using the KEYRING PRO app. Since your LP NFT is linked to your wallet, CoinPool only provides smooth access to manage your position but does not hold or control your assets."}},{"question":{"en":"Why Should I Use the ‘High APR Pairs’ Feature?"},"answer":{"en":"The ‘High APR Pairs’ feature helps users quickly add liquidity to high-yield pools without needing to create a new pair, streamlining the liquidity provision process. Notice: Always select pairs from verified and reliable creators to ensure the best security and returns."}},{"question":{"en":"What is the Earnings Overview Dashboard?"},"answer":{"en":"The Earnings Overview Dashboard provides a clear summary of your liquidity value and earnings from providing liquidity, along with the average APR. It also allows you to view other users’ LP earnings and follow their strategies for insight and inspiration."}},{"question":{"en":"What tokens can I use to add liquidity?"},"answer":{"en":"CoinPool supports ETH. Users can use any of these assets, and CoinPool will automatically swap them into the required token pairs for liquidity provision."}},{"question":{"en":"How does CoinPool simplify liquidity provision?"},"answer":{"en":"Instead of manually swapping and balancing tokens, CoinPool automates the entire process. Users can simply deposit a single asset, and CoinPool will convert, balance, and provide liquidity in the selected pool, prioritizing those with the best APRs."}},{"question":{"en":"Can I create my own liquidity pool?"},"answer":{"en":"Yes! CoinPool allows users to create custom liquidity pools instead of joining existing ones. Users can also invite others to contribute liquidity to their pools."}},{"question":{"en":"How do I earn from providing liquidity?"},"answer":{"en":"Liquidity providers earn a share of trading fees generated by the pool.\\nTrading volume of the pool – Higher activity means more fees.\\nYour liquidity share – The more you contribute, the more you earn.\\nFee tier selection – Pools with higher fee tiers may generate higher earnings but attract fewer trades."}},{"question":{"en":"How do I choose the right fee tier when adding liquidity?"},"answer":{"en":"0.01% → Best for stablecoin pairs (e.g., USDT/USDC).\\n0.05% → Best for low-volatility tokens.\\n0.3% (Default) → Best for most trading pairs.\\n1% → Best for high-volatility, low-liquidity pairs.\\nIf unsure, check existing pools to see the most commonly used fee rate."}},{"question":{"en":"Can I lose money by providing liquidity?"},"answer":{"en":"Yes, the biggest risk is impermanent loss, which happens when token prices change significantly after you deposit them. However, this loss can be offset by the trading fees earned from the pool."}},{"question":{"en":"What happens if my liquidity goes out of range?"},"answer":{"en":"If you provide liquidity within a specific price range (Uniswap V3 model), your position can become inactive when the market price moves beyond your set range.\\nYou stop earning fees.\\nYour balance shifts toward one of the two tokens in the pair.\\nTo reactivate, you need to remove and re-add liquidity at a new range."}},{"question":{"en":"What is the difference between \'Collect Profit\' and \'Delete the Pair and Collect Profit\'?"},"answer":{"en":"\'Collect Profit\' – Withdraw only profit.\\n\'Delete the Pair and Collect Profit\' – Withdraw both initial liquidity and profit."}},{"question":{"en":"What is the URL of the CoinPool website?"},"answer":{"en":"The official website URL is https://coinpool.app/"}},{"question":{"en":"Where can I find pools with high volume-to-liquidity ratio?"},"answer":{"en":"You can find pools with a high volume-to-liquidity ratio on this page: https://coinpool.app/pool-ranking"}},{"question":{"en":"Where can I see my earnings or liquidity profits?"},"answer":{"en":"You can track your earnings and liquidity performance here: https://coinpool.app/earnings-overview"}},{"question":{"en":"Where can I view my NFT pools?"},"answer":{"en":"You can check your NFT pools on this page:https://coinpool.app/my-liquidity"}},{"question":{"en":"Where can I create or choose a pair to create a pool?"},"answer":{"en":"You can create or choose a pair to create a pool here: https://coinpool.app/pair"}},{"question":{"en":"What are CoinPool fee tiers?"},"answer":{"en":"0.01% - Used for highly stable pairs like stablecoin-to-stablecoin.\\n0.05% - Used for relatively stable pairs such as ETH/stETH.\\n0.3% - Used for most standard trading pairs.\\n1% - Used for minor or highly volatile pairs, such as meme coins."}},{"question":{"en":"What does the Min value mean when providing liquidity?"},"answer":{"en":"Min is the lowest price of Token A in terms of Token B at which you are willing to provide liquidity.If the price drops below this level, your liquidity will not be used in the pool. This helps protect your assets from excessive price drops.\\nExample: You create an ETH/USDC pair and set Min = 2000 USDC/ETH. If ETH\'s price falls below 2000 USDC, your liquidity will no longer be used."}},{"question":{"en":"What does the Max value mean when providing liquidity?"},"answer":{"en":"Max is the highest price of Token A in terms of Token B at which you are willing to provide liquidity. If the market price of Token A exceeds this limit, your liquidity will not be used for transactions. The main purpose of setting a Max value is to protect your liquidity from excessive price fluctuations. \\nExample: You create an ETH/USDC pair and set Max = 4000 USDC/ETH. If ETH\'s price rises above 4000 USDC, your liquidity will no longer be used for trading."}},{"question":{"en":"When should you choose the 0.01% fee tier when creating a pair?"},"answer":{"en":"0.01% - Best for very stable pairs. \\nSuitable for pairs with extremely low volatility, such as USDT/USDC. \\nThese pairs have almost no price fluctuation risk, so a low fee attracts more traders. \\nIdeal for those who want to provide liquidity long-term with stable returns."}},{"question":{"en":"When should you choose the 0.05% fee tier when creating a pair?"},"answer":{"en":"0.05% - Best for stable pairs.\\nWorks well for stablecoin pairs or low volatility pairs like ETH/stETH.\\nOffers a reasonable fee higher than 0.01% while still attracting traders.\\nA great choice for liquidity providers seeking earnings while maintaining low fees to encourage trading."}},{"question":{"en":"When should you choose the 0.3% fee tier when creating a pair?"},"answer":{"en":"0.3% - Best for most pairs.\\nThe standard fee for most trading pairs, including popular ones like ETH/USDC, BTC/ETH.\\nSuitable for high-liquidity pairs with some level of price fluctuation.\\nA balanced choice for liquidity providers who want both trading volume and fee income."}},{"question":{"en":"When should you choose the 1% fee tier when creating a pair?"},"answer":{"en":"1% - Best for exotic pairs. \\nDesigned for low-liquidity or highly volatile trading pairs, such as new or lesser-known tokens.\\nSince these pairs have higher risks, the high fee compensates liquidity providers.\\nA good choice if you are providing liquidity for new tokens and want to earn higher fees."}},{"question":{"en":"Would you like to add more liquidity to this position?"},"answer":{"en":"Select an existing liquidity pair to add more liquidity and increase your potential rewards.\\nYour liquidity will be locked in the pool until you decide to withdraw.\\nAdding liquidity may affect trading fees and rewards earned from swaps in the pool."}},{"question":{"en":"When can I collect earnings in CoinPool?"},"answer":{"en":"You can withdraw your accumulated rewards from the liquidity pool at any time. Collected rewards will be sent directly to your connected wallet."}},{"question":{"en":"Delete your liquidity & collect liquidity and earnings"},"answer":{"en":"This option allows you to withdraw both your initial liquidity and any earned rewards. Once removed, your liquidity will no longer participate in earning trading fees. This action does not burn your NFT, so you can reuse it later if needed."}},{"question":{"en":"What is the Repositioning feature and when should you use it?"},"answer":{"en":"When your liquidity position goes out of range, you can use the Repositioning feature to reconfigure the pair by setting your preferred Max Price and Min Price.\\nA wider price range provides more stable but lower fee income, while a narrower range can increase your potential returns.\\nf you want to adjust your position and narrow your range to boost fee earnings, please use this feature.\\nPlease note that DEX fees will apply each time the pool is reconfigured.\\nUncollected earnings are not added to liquidity but are returned to your wallet."}},{"question":{"en":"How does the auto-repositioning BOT work in CoinPool?"},"answer":{"en":"You can set the BOT to automatically reposition your liquidity pool whenever it goes out of range. When your pool’s liquidity falls outside the preset range, the BOT will automatically reconfigure the pool. Once automatic positioning is enabled, the BOT will continue to reposition based on the same settings until you manually stop it. \\nThis significantly reduces the time your liquidity stays outside the range, helping to maximize your potential fee income. The BOT does not operate in real time — it checks positions once every hour, and repositioning may occasionally fail. Please note that DEX fees apply for each automatic reconfiguration. Frequent reconfigurations may lead to net fee losses. Uncollected earnings are not added to liquidity but are returned to your wallet."}},{"question":{"en":"What is NFT burning?"},"answer":{"en":"Burning an NFT means permanently removing the NFT that represents your liquidity position. Once burned, the NFT cannot be restored, and all associated benefits will be lost. Only burn if you are sure you no longer need the NFT and have already withdrawn all liquidity."}},{"question":{"en":"When is the data updated?"},"answer":{"en":"Data is aggregated and updated at 00:00 UTC.\\nStarting from 23:00 UTC, LP token data is sequentially retrieved from the blockchain. The displayed values are then calculated based on the rates at 00:00 UTC. Please note that discrepancies may occur between the figures shown in the earnings overview and the actual values. The figures presented in the earnings summary are for reference only."}},{"question":{"en":"How can I view and manage my purchased token packages?"},"answer":{"en":"View your purchased token packages here \'https://coinpool.app/package\'. Each package is stored in a Token Bound Account (TBA), where you can easily check the included tokens and their asset value.\\nYou can unpack your package, the unpacked tokens will be sent to your connected wallet. Or you can unpack&Swap USDC, all tokens in your package will be swapped to USDC and sent to your connected wallet."}},{"question":{"en":"Can I create a custom token package?"},"answer":{"en":"You can create a custom package tailored to your investment preferences."}},{"question":{"en":"Token Bound Account 6551 (TBA)"},"answer":{"en":"A Token Bound Account (TBA), defined by the ERC-6551 Ethereum standard, is a smart contract wallet linked to an ERC-721 NFT. Your token package is securely stored in a TBA, which you can manage effortlessly through your account."}},{"question":{"en":"Which company developed the CoinPool website?"},"answer":{"en":"CoinPool is a platform developed by Bacoor Company in 2025"}},{"question":{"en":"How can I find the highest APR pair to start providing liquidity on this site?"},"answer":{"en":"Sorted by the highest APR, you can easily find the most suitable liquidity pool and start providing liquidity on this site!"}},{"question":{"en":"What is the purpose of the pair list section?"},"answer":{"en":"This section displays token pairs created by all this site\'s members.\\n• You can select a pair and add liquidity without creating a new one.\\n• Before adding liquidity, check details such as volume, APR, and current liquidity."}},{"question":{"en":"What is Buy Package on CoinPool?"},"answer":{"en":"Buy Package is a CoinPool feature that lets users purchase multiple tokens in one transaction and store them in a Smart Contract wallet (NFT TBA - ERC-6551). simply select your tokens and pay with ETH."}},{"question":{"en":"How to Buy Package on CoinPool?"},"answer":{"en":"Please check the guide here: https://coinpool.app/top?tab=buypack"}},{"question":{"en":"How To Unpack To Your Wallet on CoinPool?"},"answer":{"en":"Please check the guide here: https://coinpool.app/top?tab=buypack"}},{"question":{"en":"Why do I need to register my Solana Wallet?"},"answer":{"en":"CoinPool automatically recognizes your EVM-compatible wallet addresses.\\nSince Solana operates outside the EVM ecosystem, you must manually register your Solana address with CoinPool.\\nTo use CoinPool features on Solana-such as tracking and adding liquidity-you must also connect your Solana wallet.\\nOnce registered, this address cannot be changed."}},{"question":{"en":"What should I consider on the Pair Selection Screen before providing liquidity?"},"answer":{"en":"On the \'Select Pair\' screen, you\'ll see the total market cap and 24-hour trading volume for each cryptocurrency. The more rocket symbols, the more actively the asset is traded.\\n\\nEach trading pair also displays the available liquidity range and associated fees. Generally, higher fees suggest smaller or more volatile coins — offering higher potential returns, but also higher risk.\\nPlease check the guide here: https://coinpool.app/top?tab=pool"}},{"question":{"en":"Why should I use CoinPool?"},"answer":{"en":"CoinPool streamlines liquidity provision by removing the usual friction of manual swaps and asset balancing. Everything is handled in a single flow, allowing you to participate in high-APR pools more efficiently. With just one asset (such as ETH), CoinPool automatically performs the necessary swaps, balances the pair, and creates an optimized liquidity position on your behalf. It also surfaces high-performing pools, helping you identify better yield opportunities without the need for constant tracking.\\nKey Benefits\\nOptimized APR Selection: Prioritizes high-yield pools to help maximize returns.\\nStreamlined Liquidity Provision: Eliminates manual swaps and rebalancing steps.\\nSeamless Passive Income: Deposit a single asset, and CoinPool manages the rest automatically."}},{"question":{"en":"Is Coinpool Safe?"},"answer":{"en":"CoinPool operates as a non-custodial, interface-only service, meaning you remain in full control of your assets at all times.It does not take custody of funds, store private keys or seed phrases, or manage user wallets. CoinPool also does not deploy or control liquidity pools, bridges, or smart contracts. All transactions are executed directly on public blockchains and must be authorized and signed by your own wallet. Once confirmed on-chain, transactions are final and cannot be reversed.All transactions are executed directly on public blockchains and must be authorized and signed by your own wallet. Once confirmed on-chain, transactions are final and cannot be reversed. As a result, CoinPool does not have the ability to cancel, modify, recover, or refund any transaction or digital asset."}},{"question":{"en":"Is Coinpool Easy to use?"},"answer":{"en":"Ease of use can vary depending on the user, but overall feedback has been positive. Many users find CoinPool intuitive and straightforward to navigate. The interface is clean and well-structured, with clearly organized sections. Each feature includes simple explanations of its purpose, making it easier to understand and use effectively. CoinPool is built with users in mind, and the experience is continuously refined to make interactions as smooth and accessible as possible."}},{"question":{"en":"What is a Sub-Account"},"answer":{"en":"A sub-account is an additional account designed for operational use, allowing activities to be managed from a separate wallet address while remaining under the control of a main account.\\nUnlike a regular wallet, a sub-account is a smart contract address with no private key. It operates based on predefined rules, and only the main account (owner address) has the authority to transfer its assets. No other address can move funds from a sub-account.\\nMain Account (Owner Address)\\nThe primary wallet that has full control, including managing all sub-accounts and their assets.\\nSub-Account\\nA smart contract-based account created by the owner for operational purposes, without its own private key.\\nOperation Address\\nA separate wallet address assigned by the owner to perform operational actions for specific sub-accounts. This address is limited to operations only and cannot transfer assets. It must be a newly created wallet used exclusively for this purpose."}},{"question":{"en":"Why should I create Sub-Account"},"answer":{"en":"A sub-account allows you to entrust liquidity management to a more experienced operator, helping streamline decisions like pool selection and liquidity provision.\\nThis can save time and reduce the need for in-depth research, as operational tasks are handled on your behalf. It’s especially useful for users who prefer a more hands-off approach.\\nAt the same time, you remain in control. You decide how much capital is allocated to the sub-account, allowing you to manage risk while optimizing potential returns.\\nHowever, this setup requires trust, as you are choosing to assign control over operations to an operator."}},{"question":{"en":"What is Operators"},"answer":{"en":"Operators are trusted parties authorized by the user to manage certain activities on their behalf, such as adding liquidity to pools and optimizing yield strategies.\\nThey act through an Operation Address, which is a wallet designated by the owner to handle sub-account operations.\\nOperation-Only Account (Operation Address)\\nThis is a specific wallet assigned by the owner to manage sub-accounts. It is limited to operational tasks, such as pool configuration and swaps, and cannot transfer or withdraw assets."}},{"question":{"en":"Can Operators access my assets?"},"answer":{"en":"No. Operators cannot access or take control of your funds.\\nWhen you deposit assets, they are stored in your sub-account (a smart contract). Operators can use those assets only to perform approved actions, such as adding liquidity to pools.\\nAny LP tokens received are also held within the sub-account. Operators are only able to return assets and LP tokens back to your main wallet—they cannot withdraw them to their own wallet or any other address."}},{"question":{"en":"Can I stop using operator and Sub-Account?"},"answer":{"en":"Yes. You cannot delete a sub‑account in CoinPool, but you can withdraw all funds from it.\\nOperators can only use the money you put into the sub‑account. They cannot add funds themselves. You always keep full control and can withdraw anytime.\\nHow to stop: Move all funds back to your main account. When the balance is zero, the sub‑account still exists but has no assets, so the operator cannot use it."}},{"question":{"en":"Can I trust Operator?"},"answer":{"en":"Using an operator requires a level of trust, as they are authorized to perform actions on your sub-account. The relationship between you and the operator is entirely your own decision and responsibility. It is important to only assign operators you trust, as this is a private arrangement between both parties."}},{"question":{"en":"Why Do Operators Exist? What Do They Gain?"},"answer":{"en":"Operators are typically experienced users who are familiar with liquidity strategies and want to help others manage their positions more effectively.\\nIn return, they can earn a commission based on the profits generated from the sub-account they manage. This creates a shared incentive—when you earn, they earn—aligning both sides toward better performance.\\nA portion of the LP fees generated from sub-account operations can be allocated to the operator. This percentage is fully controlled by the main account owner and can be set anywhere from 0% to 100%.\\nThe rewards are sent to the operator’s designated operation-only account, which can then distribute these earnings to other wallet addresses if needed."}},{"question":{"en":"Can I manage my Sub-Account without an Operator?"},"answer":{"en":"No. A sub-account can only be created with an assigned operator, and all operational activities are managed by that operator.\\nAs the owner, your role is to provide capital for the sub-account, which the operator can then use for liquidity operations. You remain in control of your funds and can withdraw your assets at any time."}},{"question":{"en":"Does CoinPool use Third-party service?"},"answer":{"en":"Yes. CoinPool integrates with well-established third-party DeFi protocols that are widely used and trusted within the industry.\\nThese include, but are not limited to:\\nUniswap for liquidity provision, LP position management, and fee generation.\\ndeBridge & Relay for cross-chain swaps and asset bridging. These protocols operate independently and are not owned or controlled by CoinPool.\\nAll liquidity, swapping, and bridging activities are executed directly through the smart contracts of these third-party protocols, and are governed solely by their respective rules.\\nCoinPool does not act as a counterparty to any transaction, and does not audit, insure, or guarantee the security or performance of these external services."}},{"question":{"en":"Why Should I Become a Liquidity Provider?"},"answer":{"en":"Becoming a liquidity provider (LP) allows you to earn passive income by supplying tokens to liquidity pools and supporting decentralized trading.\\nKey Benefits\\nEarn Trading Fees: Receive a share of fees generated from every swap in the pool.\\nImproved Capital Efficiency: Your assets remain actively utilized, generating returns over time.\\nAdditionalYieldOpportunities: Some pools offer extra rewards, such as governance tokens.\\nDecentralized & Permissionless: Participate freely without relying on intermediaries.\\nGrowing Asset Exposure: Your token balances can increase over time as liquidity is utilized."}},{"question":{"en":"Can CoinPool Refund My Assets If I Incur Losses?"},"answer":{"en":"No. CoinPool cannot refund or recover any assets.\\nDue to its non-custodial and decentralized nature:\\nAll transactions are final once executed on-chain\\nNo refunds are available under any circumstances\\nFunds cannot be recovered or replaced\\nCoinPool cannot intervene in or override the behavior of third-party protocols"}},{"question":{"en":"Can CoinPool Guarantee Profits?"},"answer":{"en":"No. CoinPool cannot guarantee profits.\\nThe crypto market is inherently volatile, and even experienced participants can face both gains and losses. While CoinPool helps streamline access to liquidity strategies, outcomes ultimately depend on market conditions and individual decisions.\\nUsing sub-accounts with experienced operators may help improve efficiency, but it’s still important to do your own research and understand the risks involved."}},{"question":{"en":"Who Is Responsible If I Incur Losses?"},"answer":{"en":"All decisions—whether it’s providing liquidity, creating a sub-account, or selecting an operator—are made by you. Even if an operator does not generate profits, it remains your responsibility as you chose to assign them.\\nTo use CoinPool, you must:\\nBe at least 18 years old\\nHave the legal capacity to enter into binding agreements\\nBy using CoinPool, you confirm that you meet these requirements and that your actions comply with all applicable laws and regulations."}},{"question":{"en":"What assets are supported on CoinPool?"},"answer":{"en":"CoinPool supports a wide range of assets across EVM-compatible chains and Solana.\\nYou can also add custom assets to create liquidity pools, as long as they belong to supported networks."}},{"question":{"en":"Can I withdraw my funds at any time?"},"answer":{"en":"Yes. You can withdraw your funds at any time.\\nCoinPool is a non-custodial platform, meaning you retain full control of your assets. You can remove liquidity, withdraw funds to your wallet, or manage your positions freely at any time."}},{"question":{"en":"Are there any fees when using CoinPool?"},"answer":{"en":"Yes, there are a few fees to consider:\\nSub-Account Creation Fee: A one-time fee required to create a sub-account, depending on the network:\\nEthereum: 0.01 ETH\\nOptimism: 0.01 ETH\\nArbitrum: 0.01 ETH\\nBase: 0.01 ETH\\nBinance Smart Chain: 0.03 BNB\\nUnichain: 0.01 ETH\\nOperator Commission: A percentage of profits shared with the operator when gains are realized.\\nThis rate is fully configurable and based on a private agreement between you and the operator."}},{"question":{"en":"Can I track the performance of my liquidity positions?"},"answer":{"en":"Yes. CoinPool provides dedicated sections such as Earning Overview and My Liquidity, allowing you to monitor performance in detail.\\nYou can track your own positions and also view the performance of other addresses for additional insights."}},{"question":{"en":"Why can\'t I set up bots in My Liquidity?"},"answer":{"en":"Users need to create the two bots by clicking the “Create Bots” button in the My Liquidity section.\\nOnly after creating the bots can you proceed with the setup."}},{"question":{"en":"How I create pairs or add pools on Unichain network?"},"answer":{"en":"Coinpool supports many networks, including Unichain, so you can create pairs and add pools there."}},{"question":{"en":"Please provide information on some high-yield pools on Unichain network."},"answer":{"en":"Currently, querying information on the Unichain network is not supported here."}},{"question":{"en":"How I create pairs or add pools on Solana network?"},"answer":{"en":"Coinpool supports many networks, including Solana, so you can create pairs and add pools there."}},{"question":{"en":"Please provide information on some high-yield pools on Solana network."},"answer":{"en":"Currently, querying information on the Solana network is not supported here."}},{"question":{"en":"Please show my liquidity."},"answer":{"en":"Please check your liquidity at https://coinpool.app/my-liquidity"}}]')},K={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",webAppUrl:"https://nft-demo.keyring.app",isPackageTest:!0,apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:J,linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"},apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-coinpool":{name:"keyring-chatbot-coinpool",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:J,linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"},apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",webAppUrl:"https://nft.keyring.app",apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}}},X=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz","https://dev2-coinpool-op.bacoor-test001.xyz","https://rwa.bacoor-test001.xyz","https://test.coinpool.app"],Q=/^tuple(?<array>(\[(\d*)\])*)$/;function Z(e){let n=e.type;if(Q.test(e.type)&&"components"in e){n="(";const t=e.components.length;for(let o=0;o<t;o++)n+=Z(e.components[o]),o<t-1&&(n+=", ");const r=function(e,n){const t=e.exec(n);return t?.groups}(Q,e.type);return n+=`)${r?.array||""}`,Z({...e,type:n})}return"indexed"in e&&e.indexed&&(n=`${n} indexed`),e.name?`${n} ${e.name}`:n}function _(e){let n="";const t=e.length;for(let r=0;r<t;r++)n+=Z(e[r]),r!==t-1&&(n+=", ");return n}function $(e,{includeName:n=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new pe(e.type);return`${e.name}(${ee(e.inputs,{includeName:n})})`}function ee(e,{includeName:n=!1}={}){return e?e.map(e=>function(e,{includeName:n}){return e.type.startsWith("tuple")?`(${ee(e.components,{includeName:n})})${e.type.slice(5)}`:e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:n})).join(n?", ":","):""}function ne(e,{strict:n=!0}={}){return!!e&&"string"==typeof e&&(n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function te(e){return ne(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const re="2.47.0";let oe=`viem@${re}`;class ie extends Error{constructor(e,n={}){const t=n.cause instanceof ie?n.cause.details:n.cause?.message?n.cause.message:n.details,r=n.cause instanceof ie&&n.cause.docsPath||n.docsPath,o=(({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,""]:[],...o?[`Docs: ${o}`]:[],...t?[`Details: ${t}`]:[],...oe?[`Version: ${oe}`]:[]].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=re}walk(e){return ae(this,e)}}function ae(e,n){return n?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?ae(e.cause,n):n?null:e}class se extends ie{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 ue extends ie{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${te(n)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class le extends ie{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 ce extends ie{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 fe extends ie{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${$(e.abiItem)}\`, and`,`\`${n.type}\` in \`${$(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class de extends ie{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 he extends ie{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class pe extends ie{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class me extends ie{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 ye extends ie{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 ve(e,{dir:n,size:t=32}={}){return"string"==typeof e?be(e,{dir:n,size:t}):function(e,{dir:n,size:t=32}={}){if(null===t)return e;if(e.length>t)throw new ye({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let o=0;o<t;o++){const i="right"===n;r[i?o:t-o-1]=e[i?o:e.length-o-1]}return r}(e,{dir:n,size:t})}function be(e,{dir:n,size:t=32}={}){if(null===t)return e;const r=e.replace("0x","");if(r.length>2*t)throw new ye({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r["right"===n?"padEnd":"padStart"](2*t,"0")}`}class we extends ie{constructor({max:e,min:n,signed:t,size:r,value:o}){super(`Number "${o}" is not in safe ${r?`${8*r}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class ge extends ie{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ke(e,{dir:n="left"}={}){let t="string"==typeof e?e.replace("0x",""):e,r=0;for(let o=0;o<t.length-1&&"0"===t["left"===n?o:t.length-o-1].toString();o++)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 Ae(e,{size:n}){if(te(e)>n)throw new ge({givenSize:te(e),maxSize:n})}function Ee(e,n={}){const{signed:t}=n;n.size&&Ae(e,{size:n.size});const r=BigInt(e);if(!t)return r;const o=(e.length-2)/2;return r<=(1n<<8n*BigInt(o)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function Te(e,n={}){const t=Ee(e,n),r=Number(t);if(!Number.isSafeInteger(r))throw new we({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:n.signed,size:n.size,value:`${t}n`});return r}const Se=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function xe(e,n={}){return"number"==typeof e||"bigint"==typeof e?Me(e,n):"string"==typeof e?Re(e,n):"boolean"==typeof e?Ce(e,n):Ie(e,n)}function Ce(e,n={}){const t=`0x${Number(e)}`;return"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{size:n.size})):t}function Ie(e,n={}){let t="";for(let o=0;o<e.length;o++)t+=Se[e[o]];const r=`0x${t}`;return"number"==typeof n.size?(Ae(r,{size:n.size}),ve(r,{dir:"right",size:n.size})):r}function Me(e,n={}){const{signed:t,size:r}=n,o=BigInt(e);let i;r?i=t?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof e&&(i=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"==typeof i&&t?-i-1n:0;if(i&&o>i||o<a){const n="bigint"==typeof e?"n":"";throw new we({max:i?`${i}${n}`:void 0,min:`${a}${n}`,signed:t,size:r,value:`${e}${n}`})}const s=`0x${(t&&o<0?(1n<<BigInt(8*r))+BigInt(o):o).toString(16)}`;return r?ve(s,{size:r}):s}const Oe=/* @__PURE__ */new TextEncoder;function Re(e,n={}){return Ie(Oe.encode(e),n)}const Ne=/* @__PURE__ */new TextEncoder;function Be(e,n={}){return"number"==typeof e||"bigint"==typeof e?function(e,n){return Fe(Me(e,n))}(e,n):"boolean"==typeof e?function(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{size:n.size})):t}(e,n):ne(e)?Fe(e,n):De(e,n)}const Pe={zero:48,nine:57,A:65,F:70,a:97,f:102};function Le(e){return e>=Pe.zero&&e<=Pe.nine?e-Pe.zero:e>=Pe.A&&e<=Pe.F?e-(Pe.A-10):e>=Pe.a&&e<=Pe.f?e-(Pe.a-10):void 0}function Fe(e,n={}){let t=e;n.size&&(Ae(t,{size:n.size}),t=ve(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,i=new Uint8Array(o);for(let a=0,s=0;a<o;a++){const e=Le(r.charCodeAt(s++)),n=Le(r.charCodeAt(s++));if(void 0===e||void 0===n)throw new ie(`Invalid byte sequence ("${r[s-2]}${r[s-1]}" in "${r}").`);i[a]=16*e+n}return i}function De(e,n={}){const t=Ne.encode(e);return"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{dir:"right",size:n.size})):t}const Ue=/* @__PURE__ */BigInt(2**32-1),He=/* @__PURE__ */BigInt(32);function je(e,n=!1){return n?{h:Number(e&Ue),l:Number(e>>He&Ue)}:{h:0|Number(e>>He&Ue),l:0|Number(e&Ue)}}function qe(e,n=!1){const t=e.length;let r=new Uint32Array(t),o=new Uint32Array(t);for(let i=0;i<t;i++){const{h:t,l:a}=je(e[i],n);[r[i],o[i]]=[t,a]}return[r,o]}const Ve=(e,n,t)=>e>>>t,We=(e,n,t)=>e<<32-t|n>>>t,ze=(e,n,t)=>e>>>t|n<<32-t,Ge=(e,n,t)=>e<<32-t|n>>>t,Ye=(e,n,t)=>e<<64-t|n>>>t-32,Je=(e,n,t)=>e>>>t-32|n<<64-t;function Ke(e,n,t,r){const o=(n>>>0)+(r>>>0);return{h:e+t+(o/2**32|0)|0,l:0|o}}const Xe=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),Qe=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,Ze=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),_e=(e,n,t,r,o)=>n+t+r+o+(e/2**32|0)|0,$e=(e,n,t,r,o)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(o>>>0),en=(e,n,t,r,o,i)=>n+t+r+o+i+(e/2**32|0)|0,nn="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function tn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function rn(e,...n){if(!((t=e)instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw new Error("Uint8Array expected");var t;if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function on(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 an(e,n){rn(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function sn(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function un(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ln(e,n){return e<<32-n|e>>>n}function cn(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const fn=/* @__PURE__ */(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let n=0;n<e.length;n++)e[n]=cn(e[n]);return e};function dn(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)),rn(e),e}class hn{}function pn(e){const n=n=>e().update(dn(n)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function mn(e=32){if(nn&&"function"==typeof nn.getRandomValues)return nn.getRandomValues(new Uint8Array(e));if(nn&&"function"==typeof nn.randomBytes)return Uint8Array.from(nn.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const yn=BigInt(0),vn=BigInt(1),bn=BigInt(2),wn=BigInt(7),gn=BigInt(256),kn=BigInt(113),An=[],En=[],Tn=[];for(let bm=0,wm=vn,gm=1,km=0;bm<24;bm++){[gm,km]=[km,(2*gm+3*km)%5],An.push(2*(5*km+gm)),En.push((bm+1)*(bm+2)/2%64);let e=yn;for(let n=0;n<7;n++)wm=(wm<<vn^(wm>>wn)*kn)%gn,wm&bn&&(e^=vn<<(vn<</* @__PURE__ */BigInt(n))-vn);Tn.push(e)}const Sn=qe(Tn,!0),xn=Sn[0],Cn=Sn[1],In=(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),Mn=(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 On extends hn{constructor(e,n,t,r=!1,o=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=o,tn(t),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var i;this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this.Me()}keccak(){fn(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,o=(r+2)%10,i=t[o],a=t[o+1],s=In(i,a,1)^t[n],u=Mn(i,a,1)^t[n+1];for(let t=0;t<50;t+=10)e[r+t]^=s,e[r+t+1]^=u}let n=e[2],o=e[3];for(let t=0;t<24;t++){const r=En[t],i=In(n,o,r),a=Mn(n,o,r),s=An[t];n=e[s],o=e[s+1],e[s]=i,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]^=xn[r],e[1]^=Cn[r]}sn(t)}(this.state32,this.rounds),fn(this.state32),this.posOut=0,this.pos=0}update(e){on(this),rn(e=dn(e));const{blockLen:n,state:t}=this,r=e.length;for(let o=0;o<r;){const i=Math.min(n-this.pos,r-o);for(let n=0;n<i;n++)t[this.pos++]^=e[o++];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){on(this,!1),rn(e),this.finish();const n=this.state,{blockLen:t}=this;for(let r=0,o=e.length;r<o;){this.posOut>=t&&this.keccak();const i=Math.min(t-this.posOut,o-r);e.set(n.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return tn(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(an(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,sn(this.state)}Me(e){const{blockLen:n,suffix:t,outputLen:r,rounds:o,enableXOF:i}=this;return e||(e=new On(n,t,r,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=t,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}const Rn=/* @__PURE__ */(()=>pn(()=>new On(136,1,32)))();function Nn(e,n){const t=n||"hex",r=Rn(ne(e,{strict:!1})?Be(e):e);return"bytes"===t?r:xe(r)}function Bn(e){return n=function(e){let n=!0,t="",r=0,o="",i=!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?(o+=s,t+=s):","!==e[a-1]&&","!==t&&",("!==t&&(t="",n=!1);else if(" "===s&&["event","function",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}}if(!i)throw new ie("Unable to normalize signature.");return o}("string"==typeof(t=e)?t:"function"===(r=t).type?`function ${r.name}(${_(r.inputs)})${r.stateMutability&&"nonpayable"!==r.stateMutability?` ${r.stateMutability}`:""}${r.outputs?.length?` returns (${_(r.outputs)})`:""}`:"event"===r.type?`event ${r.name}(${_(r.inputs)})`:"error"===r.type?`error ${r.name}(${_(r.inputs)})`:"constructor"===r.type?`constructor(${_(r.inputs)})${"payable"===r.stateMutability?" payable":""}`:"fallback"===r.type?"fallback() external"+("payable"===r.stateMutability?" payable":""):"receive() external payable"),Nn(Be(n));var n,t,r}const Pn=Bn;class Ln extends ie{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 Fn 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 Dn=/* @__PURE__ */new Fn(8192),Un=/^0x[a-fA-F0-9]{40}$/,Hn=/* @__PURE__ */new Fn(8192);function jn(e,n){const{strict:t=!0}=n??{},r=`${e}.${t}`;if(Hn.has(r))return Hn.get(r);const o=!(!Un.test(e)||e.toLowerCase()!==e&&t&&function(e){if(Dn.has(`${e}.undefined`))return Dn.get(`${e}.undefined`);const n=e.substring(2).toLowerCase(),t=Nn(De(n),"bytes"),r=n.split("");for(let i=0;i<40;i+=2)t[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(15&t[i>>1])>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const o=`0x${r.join("")}`;return Dn.set(`${e}.undefined`,o),o}(e)!==e);return Hn.set(r,o),o}function qn(e){return"string"==typeof e[0]?Vn(e):function(e){let n=0;for(const o of e)n+=o.length;const t=new Uint8Array(n);let r=0;for(const o of e)t.set(o,r),r+=o.length;return t}(e)}function Vn(e){return`0x${e.reduce((e,n)=>e+n.replace("0x",""),"")}`}function Wn(e,n,t,{strict:r}={}){return ne(e,{strict:!1})?function(e,n,t,{strict:r}={}){zn(e,n);const o=`0x${e.replace("0x","").slice(2*(n??0),2*(t??e.length))}`;return r&&Gn(o,n,t),o}(e,n,t,{strict:r}):function(e,n,t,{strict:r}={}){zn(e,n);const o=e.slice(n,t);return r&&Gn(o,n,t),o}(e,n,t,{strict:r})}function zn(e,n){if("number"==typeof n&&n>0&&n>te(e)-1)throw new me({offset:n,position:"start",size:te(e)})}function Gn(e,n,t){if("number"==typeof n&&"number"==typeof t&&te(e)!==t-n)throw new me({offset:t,position:"end",size:te(e)})}const Yn=/^(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 Jn(e,n){if(e.length!==n.length)throw new le({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(Kn({param:e[r],value:n[r]}));return t}({params:e,values:n}),r=Xn(t);return 0===r.length?"0x":r}function Kn({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,o]=t;return function(e,{length:n,param:t}){const r=null===n;if(!Array.isArray(e))throw new he(e);if(!r&&e.length!==n)throw new se({expectedLength:n,givenLength:e.length,type:`${t.type}[${n}]`});let o=!1;const i=[];for(let a=0;a<e.length;a++){const n=Kn({param:t,value:e[a]});n.dynamic&&(o=!0),i.push(n)}if(r||o){const e=Xn(i);if(r){const n=Me(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?qn([n,e]):n}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:qn(i.map(({encoded:e})=>e))}}(n,{length:r,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:n}){let t=!1;const r=[];for(let o=0;o<n.components.length;o++){const i=n.components[o],a=Kn({param:i,value:e[Array.isArray(e)?o:i.name]});r.push(a),a.dynamic&&(t=!0)}return{dynamic:t,encoded:t?Xn(r):qn(r.map(({encoded:e})=>e))}}(n,{param:e});if("address"===e.type)return function(e){if(!jn(e))throw new Ln({address:e});return{dynamic:!1,encoded:be(e.toLowerCase())}}(n);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new ie(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:be(Ce(e))}}(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const t=e.type.startsWith("int"),[,,r="256"]=Yn.exec(e.type)??[];return function(e,{signed:n,size:t=256}){if("number"==typeof t){const r=2n**(BigInt(t)-(n?1n:0n))-1n,o=n?-r-1n:0n;if(e>r||e<o)throw new we({max:r.toString(),min:o.toString(),signed:n,size:t/8,value:e.toString()})}return{dynamic:!1,encoded:Me(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=te(e);if(!t){let n=e;return r%32!=0&&(n=be(n,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:qn([be(Me(r,{size:32})),n])}}if(r!==Number.parseInt(t,10))throw new ue({expectedSize:Number.parseInt(t,10),value:e});return{dynamic:!1,encoded:be(e,{dir:"right"})}}(n,{param:e});if("string"===e.type)return function(e){const n=Re(e),t=Math.ceil(te(n)/32),r=[];for(let o=0;o<t;o++)r.push(be(Wn(n,32*o,32*(o+1)),{dir:"right"}));return{dynamic:!0,encoded:qn([be(Me(te(n),{size:32})),...r])}}(n);throw new de(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Xn(e){let n=0;for(let i=0;i<e.length;i++){const{dynamic:t,encoded:r}=e[i];n+=t?32:te(r)}const t=[],r=[];let o=0;for(let i=0;i<e.length;i++){const{dynamic:a,encoded:s}=e[i];a?(t.push(Me(n+o,{size:32})),r.push(s),o+=te(s)):t.push(s)}return qn([...t,...r])}const Qn=e=>Wn(Bn(e),0,4);function Zn(e,n){const t=typeof e,r=n.type;switch(r){case"address":return jn(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&&Zn(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=>Zn(e,{...n,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))}}function _n(e,n,t){for(const r in e){const o=e[r],i=n[r];if("tuple"===o.type&&"tuple"===i.type&&"components"in o&&"components"in i)return _n(o.components,i.components,t[r]);const a=[o.type,i.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&jn(t[r],{strict:!1}))())return a}}function $n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const et="/docs/contract/encodeFunctionData";function nt(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 o=n[0];if(r){const e=function(e){const{abi:n,args:t=[],name:r}=e,o=ne(r,{strict:!1}),i=n.filter(e=>o?"function"===e.type?Qn(e)===r:"event"===e.type&&Pn(e)===r:"name"in e&&e.name===r);if(0===i.length)return;if(1===i.length)return i[0];let a;for(const s of i)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&&Zn(e,t)})){if(a&&"inputs"in a&&a.inputs){const e=_n(s.inputs,a.inputs,t);if(e)throw new fe({abiItem:s,type:e[0]},{abiItem:a,type:e[1]})}a=s}}else if(!s.inputs||0===s.inputs.length)return s;return a||i[0]}({abi:n,args:t,name:r});if(!e)throw new ce(r,{docsPath:et});o=e}if("function"!==o.type)throw new ce(void 0,{docsPath:et});return{abi:[o],functionName:Qn($(o))}}(e),o=t[0];return Vn([r,("inputs"in o&&o.inputs?Jn(o.inputs,n??[]):void 0)??"0x"])}class tt extends ie{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class rt extends ie{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class ot extends ie{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const it={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 ot({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new rt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tt({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 tt({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.Oe();const e=this.inspectByte();return this.position++,e},readBytes(e,n){this.assertReadLimit(),this.Oe();const t=this.inspectBytes(e);return this.position+=n??e,t},readUint8(){this.assertReadLimit(),this.Oe();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.Oe();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.Oe();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.Oe();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},Oe(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function at(e,{recursiveReadLimit:n=8192}={}){const t=Object.create(it);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 st={gwei:9,wei:18},ut={ether:-9,wei:9};function lt(e,n){let t=e.toString();const r=t.startsWith("-");r&&(t=t.slice(1)),t=t.padStart(n,"0");let[o,i]=[t.slice(0,t.length-n),t.slice(t.length-n)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${i?`.${i}`:""}`}function ct(e,n="wei"){return lt(e,st[n])}function ft(e,n="wei"){return lt(e,ut[n])}function dt(e){return e.reduce((e,{slot:n,value:t})=>`${e} ${n}: ${t}\n`,"")}function ht(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 pt extends ie{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class mt extends ie{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",ht(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 yt extends ie{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 vt extends ie{constructor(e,{account:n,docsPath:t,chain:r,data:o,gas:i,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:u,nonce:l,to:c,value:f,stateOverride:d}){const h=n?$n(n):void 0;let p=ht({from:h?.address,to:c,value:void 0!==f&&`${ct(f)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==a&&`${ft(a)} gwei`,maxFeePerGas:void 0!==s&&`${ft(s)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${ft(u)} gwei`,nonce:l});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+=dt(t.state)),t.stateDiff&&(r+=" stateDiff:\n",r+=dt(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 bt(e,n="hex"){const t=wt(e),r=at(new Uint8Array(t.length));return t.encode(r),"hex"===n?Ie(r.bytes):r.bytes}function wt(e){return Array.isArray(e)?function(e){const n=e.reduce((e,n)=>e+n.length,0),t=gt(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=>wt(e))):function(e){const n="string"==typeof e?Fe(e):e,t=gt(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 gt(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 ie("Length is too large.")}class kt extends ie{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(kt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(kt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class At extends ie{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ft(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(At,"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 Et extends ie{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ft(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Et,"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 Tt extends ie{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(Tt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class St extends ie{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(St,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class xt extends ie{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ct extends ie{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(Ct,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class It extends ie{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(It,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Mt extends ie{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(Mt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ot extends ie{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ot,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Rt extends ie{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:t}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${ft(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${ft(t)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(Rt,"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 Nt extends ie{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function Bt(e,{format:n}){if(!n)return{};const t={};return function n(r){const o=Object.keys(r);for(const i of o)i in e&&(t[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&n(r[i])}(n(e||{})),t}function Pt(e,n){return({exclude:t,format:r})=>({exclude:t,format:(e,o)=>{const i=n(e,o);if(t)for(const n of t)delete i[n];return{...i,...r(e,o)}},type:e})}const Lt={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ft(e,n){const t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?Me(BigInt(e.r)):e.r,s:e.s?Me(BigInt(e.s)):e.s,chainId:Me(e.chainId),nonce:Me(e.nonce),...void 0!==e.yParity?{yParity:Me(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Me(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=>Ie(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=Me(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=Me(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=Me(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=Me(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=Me(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=Me(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=Lt[e.type]),void 0!==e.value&&(t.value=Me(e.value)),t}const Dt=2n**256n-1n,Ut={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Ht(e,n){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Te(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?Te(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ut[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 jt=/* @__PURE__ */Pt("transaction",Ht);function qt(e,n){const t=(e.transactions??[]).map(e=>"string"==typeof e?e:Ht(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 Vt=/* @__PURE__ */Pt("block",qt);function Wt(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=>Fe(e)):e.blobs,o=[];for(const i of r)o.push(Uint8Array.from(n.blobToKzgCommitment(i)));return"bytes"===t?o:o.map(e=>Ie(e))}function zt(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=>Fe(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>Fe(e)):e.commitments,i=[];for(let a=0;a<r.length;a++){const e=r[a],t=o[a];i.push(Uint8Array.from(n.computeBlobKzgProof(e,t)))}return"bytes"===t?i:i.map(e=>Ie(e))}function Gt(e,n,t){return e&n^~e&t}function Yt(e,n,t){return e&n^e&t^n&t}class Jt extends hn{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=un(this.buffer)}update(e){on(this),rn(e=dn(e));const{view:n,buffer:t,blockLen:r}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(r-this.pos,o-i);if(a===r){const n=un(e);for(;r<=o-i;i+=r)this.process(n,i);continue}t.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){on(this),an(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:o}=this;let{pos:i}=this;n[i++]=128,sn(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(t,0),i=0);for(let c=i;c<r;c++)n[c]=0;!function(e,n,t,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(n,t,r);const o=BigInt(32),i=BigInt(4294967295),a=Number(t>>o&i),s=Number(t&i),u=r?4:0,l=r?0:4;e.setUint32(n+u,a,r),e.setUint32(n+l,s,r)}(t,r-8,BigInt(8*this.length),o),this.process(t,0);const a=un(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=s/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<u;c++)a.setUint32(4*c,l[c],o)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}Me(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:r,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this.Me()}}const Kt=/* @__PURE__ */Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xt=/* @__PURE__ */Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Qt=/* @__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]),Zt=/* @__PURE__ */new Uint32Array(64);class _t extends Jt{constructor(e=32){super(64,e,8,!1),this.A=0|Kt[0],this.B=0|Kt[1],this.C=0|Kt[2],this.D=0|Kt[3],this.E=0|Kt[4],this.F=0|Kt[5],this.G=0|Kt[6],this.H=0|Kt[7]}get(){const{A:e,B:n,C:t,D:r,E:o,F:i,G:a,H:s}=this;return[e,n,t,r,o,i,a,s]}set(e,n,t,r,o,i,a,s){this.A=0|e,this.B=0|n,this.C=0|t,this.D=0|r,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,n){for(let c=0;c<16;c++,n+=4)Zt[c]=e.getUint32(n,!1);for(let c=16;c<64;c++){const e=Zt[c-15],n=Zt[c-2],t=ln(e,7)^ln(e,18)^e>>>3,r=ln(n,17)^ln(n,19)^n>>>10;Zt[c]=r+Zt[c-7]+t+Zt[c-16]|0}let{A:t,B:r,C:o,D:i,E:a,F:s,G:u,H:l}=this;for(let c=0;c<64;c++){const e=l+(ln(a,6)^ln(a,11)^ln(a,25))+Gt(a,s,u)+Qt[c]+Zt[c]|0,n=(ln(t,2)^ln(t,13)^ln(t,22))+Yt(t,r,o)|0;l=u,u=s,s=a,a=i+e|0,i=o,o=r,r=t,t=e+n|0}t=t+this.A|0,r=r+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(t,r,o,i,a,s,u,l)}roundClean(){sn(Zt)}destroy(){this.set(0,0,0,0,0,0,0,0),sn(this.buffer)}}const $t=/* @__PURE__ */(()=>qe(["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))))(),er=/* @__PURE__ */(()=>$t[0])(),nr=/* @__PURE__ */(()=>$t[1])(),tr=/* @__PURE__ */new Uint32Array(80),rr=/* @__PURE__ */new Uint32Array(80);class or extends Jt{constructor(e=64){super(128,e,16,!1),this.Ah=0|Xt[0],this.Al=0|Xt[1],this.Bh=0|Xt[2],this.Bl=0|Xt[3],this.Ch=0|Xt[4],this.Cl=0|Xt[5],this.Dh=0|Xt[6],this.Dl=0|Xt[7],this.Eh=0|Xt[8],this.El=0|Xt[9],this.Fh=0|Xt[10],this.Fl=0|Xt[11],this.Gh=0|Xt[12],this.Gl=0|Xt[13],this.Hh=0|Xt[14],this.Hl=0|Xt[15]}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:o,Cl:i,Dh:a,Dl:s,Eh:u,El:l,Fh:c,Fl:f,Gh:d,Gl:h,Hh:p,Hl:m}=this;return[e,n,t,r,o,i,a,s,u,l,c,f,d,h,p,m]}set(e,n,t,r,o,i,a,s,u,l,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|o,this.Cl=0|i,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|l,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 b=0;b<16;b++,n+=4)tr[b]=e.getUint32(n),rr[b]=e.getUint32(n+=4);for(let b=16;b<80;b++){const e=0|tr[b-15],n=0|rr[b-15],t=ze(e,n,1)^ze(e,n,8)^Ve(e,0,7),r=Ge(e,n,1)^Ge(e,n,8)^We(e,n,7),o=0|tr[b-2],i=0|rr[b-2],a=ze(o,i,19)^Ye(o,i,61)^Ve(o,0,6),s=Ge(o,i,19)^Je(o,i,61)^We(o,i,6),u=Ze(r,s,rr[b-7],rr[b-16]),l=_e(u,t,a,tr[b-7],tr[b-16]);tr[b]=0|l,rr[b]=0|u}let{Ah:t,Al:r,Bh:o,Bl:i,Ch:a,Cl:s,Dh:u,Dl:l,Eh:c,El:f,Fh:d,Fl:h,Gh:p,Gl:m,Hh:y,Hl:v}=this;for(let b=0;b<80;b++){const e=ze(c,f,14)^ze(c,f,18)^Ye(c,f,41),n=Ge(c,f,14)^Ge(c,f,18)^Je(c,f,41),w=c&d^~c&p,g=$e(v,n,f&h^~f&m,nr[b],rr[b]),k=en(g,y,e,w,er[b],tr[b]),A=0|g,E=ze(t,r,28)^Ye(t,r,34)^Ye(t,r,39),T=Ge(t,r,28)^Je(t,r,34)^Je(t,r,39),S=t&o^t&a^o&a,x=r&i^r&s^i&s;y=0|p,v=0|m,p=0|d,m=0|h,d=0|c,h=0|f,({h:c,l:f}=Ke(0|u,0|l,0|k,0|A)),u=0|a,l=0|s,a=0|o,s=0|i,o=0|t,i=0|r;const C=Xe(A,T,x);t=Qe(C,k,E,S),r=0|C}({h:t,l:r}=Ke(0|this.Ah,0|this.Al,0|t,0|r)),({h:o,l:i}=Ke(0|this.Bh,0|this.Bl,0|o,0|i)),({h:a,l:s}=Ke(0|this.Ch,0|this.Cl,0|a,0|s)),({h:u,l:l}=Ke(0|this.Dh,0|this.Dl,0|u,0|l)),({h:c,l:f}=Ke(0|this.Eh,0|this.El,0|c,0|f)),({h:d,l:h}=Ke(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:m}=Ke(0|this.Gh,0|this.Gl,0|p,0|m)),({h:y,l:v}=Ke(0|this.Hh,0|this.Hl,0|y,0|v)),this.set(t,r,o,i,a,s,u,l,c,f,d,h,p,m,y,v)}roundClean(){sn(tr,rr)}destroy(){sn(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ir=/* @__PURE__ */pn(()=>new _t),ar=/* @__PURE__ */pn(()=>new or),sr=ir;function ur(e){const{commitment:n,version:t=1}=e,r=e.to??("string"==typeof n?"hex":"bytes"),o=sr(ne(i=n,{strict:!1})?Be(i):i);var i;return o.set([t],0),"bytes"===r?o:Ie(o)}const lr=761855;class cr extends ie{constructor({maxSize:e,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class fr extends ie{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class dr extends ie{constructor({hash:e,size:n}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class hr extends ie{constructor({hash:e,version:n}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}const pr=/* @__PURE__ */BigInt(0),mr=/* @__PURE__ */BigInt(1);function yr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function vr(e){if(!yr(e))throw new Error("Uint8Array expected")}function br(e,n){if("boolean"!=typeof n)throw new Error(e+" boolean expected, got "+n)}function wr(e){const n=e.toString(16);return 1&n.length?"0"+n:n}function gr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?pr:BigInt("0x"+e)}const kr="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Ar=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Er(e){if(vr(e),kr)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=Ar[e[t]];return n}function Tr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Sr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(kr)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 o=0,i=0;o<t;o++,i+=2){const n=Tr(e.charCodeAt(i)),t=Tr(e.charCodeAt(i+1));if(void 0===n||void 0===t){const n=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+n+'" at index '+i)}r[o]=16*n+t}return r}function xr(e){return gr(Er(e))}function Cr(e){return vr(e),gr(Er(Uint8Array.from(e).reverse()))}function Ir(e,n){return Sr(e.toString(16).padStart(2*n,"0"))}function Mr(e,n){return Ir(e,n).reverse()}function Or(e,n,t){let r;if("string"==typeof n)try{r=Sr(n)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else{if(!yr(n))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(n)}const o=r.length;if("number"==typeof t&&o!==t)throw new Error(e+" of length "+t+" expected, got "+o);return r}function Rr(...e){let n=0;for(let r=0;r<e.length;r++){const t=e[r];vr(t),n+=t.length}const t=new Uint8Array(n);for(let r=0,o=0;r<e.length;r++){const n=e[r];t.set(n,o),o+=n.length}return t}const Nr=e=>"bigint"==typeof e&&pr<=e;function Br(e,n,t){return Nr(e)&&Nr(n)&&Nr(t)&&n<=e&&e<t}function Pr(e,n,t,r){if(!Br(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}const Lr=e=>(mr<<BigInt(e))-mr,Fr=e=>new Uint8Array(e),Dr=e=>Uint8Array.from(e),Ur={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||yr(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,n)=>n.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function Hr(e,n,t={}){const r=(n,t,r)=>{const o=Ur[t];if("function"!=typeof o)throw new Error("invalid validator function");const i=e[n];if(!(r&&void 0===i||o(i,e)))throw new Error("param "+String(n)+" is invalid. Expected "+t+", got "+i)};for(const[o,i]of Object.entries(n))r(o,i,!1);for(const[o,i]of Object.entries(t))r(o,i,!0);return e}function jr(e){const n=/* @__PURE__ */new WeakMap;return(t,...r)=>{const o=n.get(t);if(void 0!==o)return o;const i=e(t,...r);return n.set(t,i),i}}class qr extends ie{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Vr extends ie{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 Wr={"0x0":"reverted","0x1":"success"};function zr(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?Te(e.transactionIndex):null,status:e.status?Wr[e.status]:null,type:e.type?Ut[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const Gr=/* @__PURE__ */Pt("transactionReceipt",zr);function Yr(e){const{chainId:n,maxPriorityFeePerGas:t,maxFeePerGas:r,to:o}=e;if(n<=0)throw new qr({chainId:n});if(o&&!jn(o))throw new Ln({address:o});if(r&&r>Dt)throw new At({maxFeePerGas:r});if(t&&r&&t>r)throw new Rt({maxFeePerGas:r,maxPriorityFeePerGas:t})}function Jr(e){if(!e||0===e.length)return[];const n=[];for(let t=0;t<e.length;t++){const{address:r,storageKeys:o}=e[t];for(let e=0;e<o.length;e++)if(o[e].length-2!=64)throw new yt({storageKey:o[e]});if(!jn(r,{strict:!1}))throw new Ln({address:r});n.push([r,o])}return n}function Kr(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 mt({transaction:e})}(e);return"eip1559"===t?function(e,n){const{chainId:t,gas:r,nonce:o,to:i,value:a,maxFeePerGas:s,maxPriorityFeePerGas:u,accessList:l,data:c}=e;Yr(e);const f=Jr(l);return Vn(["0x02",bt([Me(t),o?Me(o):"0x",u?Me(u):"0x",s?Me(s):"0x",r?Me(r):"0x",i??"0x",a?Me(a):"0x",c??"0x",f,...Xr(e,n)])])}(e,n):"eip2930"===t?function(e,n){const{chainId:t,gas:r,data:o,nonce:i,to:a,value:s,accessList:u,gasPrice:l}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:o,to:i}=e;if(n<=0)throw new qr({chainId:n});if(i&&!jn(i))throw new Ln({address:i});if(t||o)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Dt)throw new At({maxFeePerGas:r})}(e);const c=Jr(u);return Vn(["0x01",bt([Me(t),i?Me(i):"0x",l?Me(l):"0x",r?Me(r):"0x",a??"0x",s?Me(s):"0x",o??"0x",c,...Xr(e,n)])])}(e,n):"eip4844"===t?function(e,n){const{chainId:t,gas:r,nonce:o,to:i,value:a,maxFeePerBlobGas:s,maxFeePerGas:u,maxPriorityFeePerGas:l,accessList:c,data:f}=e;!function(e){const{blobVersionedHashes:n}=e;if(n){if(0===n.length)throw new fr;for(const e of n){const n=te(e),t=Te(Wn(e,0,1));if(32!==n)throw new dr({hash:e,size:n});if(1!==t)throw new hr({hash:e,version:t})}}Yr(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=>Ie(e)),t=e.kzg,r=Wt({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"),o=[];for(const i of n)o.push(ur({commitment:i,to:r,version:t}));return o}({commitments:r})),void 0===h&&(h=function(e){const{data:n,kzg:t,to:r}=e,o=e.blobs??function(e){const n=e.to??("string"==typeof e.data?"hex":"bytes"),t="string"==typeof e.data?Fe(e.data):e.data,r=te(t);if(!r)throw new fr;if(r>lr)throw new cr({maxSize:lr,size:r});const o=[];let i=!0,a=0;for(;i;){const e=at(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),i=!1;break}n++,a+=31}o.push(e)}return"bytes"===n?o.map(e=>e.bytes):o.map(e=>Ie(e.bytes))}({data:n,to:r}),i=e.commitments??Wt({blobs:o,kzg:t,to:r}),a=e.proofs??zt({blobs:o,commitments:i,kzg:t,to:r}),s=[];for(let u=0;u<o.length;u++)s.push({blob:o[u],commitment:i[u],proof:a[u]});return s}({blobs:n,commitments:r,proofs:zt({blobs:n,commitments:r,kzg:t})}))}const p=Jr(c),m=[Me(t),o?Me(o):"0x",l?Me(l):"0x",u?Me(u):"0x",r?Me(r):"0x",i??"0x",a?Me(a):"0x",f??"0x",p,s?Me(s):"0x",d??[],...Xr(e,n)],y=[],v=[],b=[];if(h)for(let w=0;w<h.length;w++){const{blob:e,commitment:n,proof:t}=h[w];y.push(e),v.push(n),b.push(t)}return Vn(["0x03",bt(h?[m,y,v,b]:m)])}(e,n):"eip7702"===t?function(e,n){const{authorizationList:t,chainId:r,gas:o,nonce:i,to:a,value:s,maxFeePerGas:u,maxPriorityFeePerGas:l,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(!jn(n))throw new Ln({address:n});if(e<0)throw new qr({chainId:e})}Yr(e)}(e);const d=Jr(c),h=function(e){if(!e||0===e.length)return[];const n=[];for(const t of e){const{chainId:e,nonce:r,...o}=t,i=t.address;n.push([e?xe(e):"0x",i,r?xe(r):"0x",...Xr({},o)])}return n}(t);return Vn(["0x04",bt([Me(r),i?Me(i):"0x",l?Me(l):"0x",u?Me(u):"0x",o?Me(o):"0x",a??"0x",s?Me(s):"0x",f??"0x",d,h,...Xr(e,n)])])}(e,n):function(e,n){const{chainId:t=0,gas:r,data:o,nonce:i,to:a,value:s,gasPrice:u}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:o,to:i}=e;if(i&&!jn(i))throw new Ln({address:i});if(void 0!==n&&n<=0)throw new qr({chainId:n});if(t||o)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Dt)throw new At({maxFeePerGas:r})}(e);let l=[i?Me(i):"0x",u?Me(u):"0x",r?Me(r):"0x",a??"0x",s?Me(s):"0x",o??"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 pt({v:n.v});return e})(),r=ke(n.r),o=ke(n.s);l=[...l,Me(e),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}else t>0&&(l=[...l,Me(t),"0x","0x"]);return bt(l)}(e,n)}function Xr(e,n){const t=n??e,{v:r,yParity:o}=t;if(void 0===t.r)return[];if(void 0===t.s)return[];if(void 0===r&&void 0===o)return[];const i=ke(t.r),a=ke(t.s);return["number"==typeof o?o?Me(1):"0x":0n===r?"0x":1n===r?Me(1):27n===r?"0x":Me(1),"0x00"===i?"0x":i,"0x00"===a?"0x":a]}function Qr(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,o={...n,...r};return Object.assign(o,{extend:e(o)})}}(n)})}class Zr extends hn{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");tn(e.outputLen),tn(e.blockLen)}(e);const t=dn(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,o=new Uint8Array(r);o.set(t.length>r?e.create().update(t).digest():t);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=e.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),sn(o)}update(e){return on(this),this.iHash.update(e),this}digestInto(e){on(this),rn(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}Me(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:r,destroyed:o,blockLen:i,outputLen:a}=this;return e.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=a,e.oHash=n.Me(e.oHash),e.iHash=t.Me(e.iHash),e}clone(){return this.Me()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const _r=(e,n,t)=>new Zr(e,n).update(t).digest();_r.create=(e,n)=>new Zr(e,n);const $r=BigInt(0),eo=BigInt(1),no=/* @__PURE__ */BigInt(2),to=/* @__PURE__ */BigInt(3),ro=/* @__PURE__ */BigInt(4),oo=/* @__PURE__ */BigInt(5),io=/* @__PURE__ */BigInt(8);function ao(e,n){const t=e%n;return t>=$r?t:n+t}function so(e,n,t){let r=e;for(;n-- >$r;)r*=r,r%=t;return r}function uo(e,n){if(e===$r)throw new Error("invert: expected non-zero number");if(n<=$r)throw new Error("invert: expected positive modulus, got "+n);let t=ao(e,n),r=n,o=$r,i=eo;for(;t!==$r;){const e=r%t,n=o-i*(r/t);r=t,t=e,o=i,i=n}if(r!==eo)throw new Error("invert: does not exist");return ao(o,n)}function lo(e,n){const t=(e.ORDER+eo)/ro,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function co(e,n){const t=(e.ORDER-oo)/io,r=e.mul(n,no),o=e.pow(r,t),i=e.mul(n,o),a=e.mul(e.mul(i,no),o),s=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),n))throw new Error("Cannot find square root");return s}const fo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ho(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),o=n.reduce((n,t,o)=>e.is0(t)?n:(r[o]=n,e.mul(n,t)),e.ONE),i=e.inv(o);return n.reduceRight((n,t,o)=>e.is0(t)?n:(r[o]=e.mul(n,r[o]),e.mul(n,t)),i),r}function po(e,n){const t=(e.ORDER-eo)/no,r=e.pow(n,t),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function mo(e,n){void 0!==n&&tn(n);const t=void 0!==n?n:e.toString(2).length;return{nBitLength:t,nByteLength:Math.ceil(t/8)}}function yo(e,n,t=!1,r={}){if(e<=$r)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:i}=mo(e,n);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,isLE:t,BITS:o,BYTES:i,MASK:Lr(o),ZERO:$r,ONE:eo,create:n=>ao(n,e),isValid:n=>{if("bigint"!=typeof n)throw new Error("invalid field element: expected bigint, got "+typeof n);return $r<=n&&n<e},is0:e=>e===$r,isOdd:e=>(e&eo)===eo,neg:n=>ao(-n,e),eql:(e,n)=>e===n,sqr:n=>ao(n*n,e),add:(n,t)=>ao(n+t,e),sub:(n,t)=>ao(n-t,e),mul:(n,t)=>ao(n*t,e),pow:(e,n)=>function(e,n,t){if(t<$r)throw new Error("invalid exponent, negatives unsupported");if(t===$r)return e.ONE;if(t===eo)return n;let r=e.ONE,o=n;for(;t>$r;)t&eo&&(r=e.mul(r,o)),o=e.sqr(o),t>>=eo;return r}(s,e,n),div:(n,t)=>ao(n*uo(t,e),e),sqrN:e=>e*e,addN:(e,n)=>e+n,subN:(e,n)=>e-n,mulN:(e,n)=>e*n,inv:n=>uo(n,e),sqrt:r.sqrt||(n=>{return a||(a=(t=e)%ro===to?lo:t%io===oo?co:function(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-eo,t=0;for(;n%no===$r;)n/=no,t++;let r=no;const o=yo(e);for(;1===po(o,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===t)return lo;let i=o.pow(r,n);const a=(n+eo)/no;return function(e,r){if(e.is0(r))return r;if(1!==po(e,r))throw new Error("Cannot find square root");let o=t,s=e.mul(e.ONE,i),u=e.pow(r,n),l=e.pow(r,a);for(;!e.eql(u,e.ONE);){if(e.is0(u))return e.ZERO;let n=1,t=e.sqr(u);for(;!e.eql(t,e.ONE);)if(n++,t=e.sqr(t),n===o)throw new Error("Cannot find square root");const r=eo<<BigInt(o-n-1),i=e.pow(s,r);o=n,s=e.sqr(i),u=e.mul(u,s),l=e.mul(l,i)}return l}}(t)),a(s,n);var t}),toBytes:e=>t?Mr(e,i):Ir(e,i),fromBytes:e=>{if(e.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+e.length);return t?Cr(e):xr(e)},invertBatch:e=>ho(s,e),cmov:(e,n,t)=>t?n:e});return Object.freeze(s)}function vo(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 bo(e){const n=vo(e);return n+Math.ceil(n/2)}const wo=BigInt(0),go=BigInt(1);function ko(e,n){const t=n.negate();return e?t:n}function Ao(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Eo(e,n){Ao(e,n);const t=2**e;return{windows:Math.ceil(n/e)+1,windowSize:2**(e-1),mask:Lr(e),maxNumber:t,shiftBy:BigInt(e)}}function To(e,n,t){const{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=t;let s=Number(e&o),u=e>>a;s>r&&(s-=i,u+=go);const l=n*r;return{nextN:u,offset:l+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:n%2!=0,offsetF:l}}const So=/* @__PURE__ */new WeakMap,xo=/* @__PURE__ */new WeakMap;function Co(e){return xo.get(e)||1}function Io(e,n){return{constTimeNegate:ko,hasPrecomputes:e=>1!==Co(e),unsafeLadder(n,t,r=e.ZERO){let o=n;for(;t>wo;)t&go&&(r=r.add(o)),o=o.double(),t>>=go;return r},precomputeWindow(e,t){const{windows:r,windowSize:o}=Eo(t,n),i=[];let a=e,s=a;for(let n=0;n<r;n++){s=a,i.push(s);for(let e=1;e<o;e++)s=s.add(a),i.push(s);a=s.double()}return i},wNAF(t,r,o){let i=e.ZERO,a=e.BASE;const s=Eo(t,n);for(let e=0;e<s.windows;e++){const{nextN:n,offset:t,isZero:u,isNeg:l,isNegF:c,offsetF:f}=To(o,e,s);o=n,u?a=a.add(ko(c,r[f])):i=i.add(ko(l,r[t]))}return{p:i,f:a}},wNAFUnsafe(t,r,o,i=e.ZERO){const a=Eo(t,n);for(let e=0;e<a.windows&&o!==wo;e++){const{nextN:n,offset:t,isZero:s,isNeg:u}=To(o,e,a);if(o=n,!s){const e=r[t];i=i.add(u?e.negate():e)}}return i},getPrecomputes(e,n,t){let r=So.get(n);return r||(r=this.precomputeWindow(n,e),1!==e&&So.set(n,t(r))),r},wNAFCached(e,n,t){const r=Co(e);return this.wNAF(r,this.getPrecomputes(r,e,t),n)},wNAFCachedUnsafe(e,n,t,r){const o=Co(e);return 1===o?this.unsafeLadder(e,n,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,t),n,r)},setWindowSize(e,t){Ao(t,n),xo.set(e,t),So.delete(e)}}}function Mo(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 o=t.length,i=r.length;if(o!==i)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=function(e){let n;for(n=0;e>pr;e>>=mr,n+=1);return n}(BigInt(o));let u=1;s>12?u=s-3:s>4?u=s-2:s>0&&(u=2);const l=Lr(u),c=new Array(Number(l)+1).fill(a);let f=a;for(let d=Math.floor((n.BITS-1)/u)*u;d>=0;d-=u){c.fill(a);for(let n=0;n<i;n++){const e=r[n],o=Number(e>>BigInt(d)&l);c[o]=c[o].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<u;n++)f=f.double()}return f}function Oo(e){return Hr(e.Fp,fo.reduce((e,n)=>(e[n]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),Hr(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...mo(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function Ro(e){void 0!==e.lowS&&br("lowS",e.lowS),void 0!==e.prehash&&br("prehash",e.prehash)}class No extends Error{constructor(e=""){super(e)}}const Bo={Err:No,Re:{encode:(e,n)=>{const{Err:t}=Bo;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,o=wr(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const i=r>127?wr(o.length/2|128):"";return wr(e)+i+o+n},decode(e,n){const{Err:t}=Bo;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 o=n[r++];let i=0;if(128&o){const e=127&o;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)i=i<<8|n;if(r+=e,i<128)throw new t("tlv.decode(long): not minimal encoding")}else i=o;const a=n.subarray(r,r+i);if(a.length!==i)throw new t("tlv.decode: wrong value length");return{v:a,l:n.subarray(r+i)}}},Ne:{encode(e){const{Err:n}=Bo;if(e<Lo)throw new n("integer: negative integers are not allowed");let t=wr(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}=Bo;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 xr(e)}},toSig(e){const{Err:n,Ne:t,Re:r}=Bo,o=Or("signature",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:s,l:u}=r.decode(2,i),{v:l,l:c}=r.decode(2,u);if(c.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(s),s:t.decode(l)}},hexFromSig(e){const{Re:n,Ne:t}=Bo,r=n.encode(2,t.encode(e.r))+n.encode(2,t.encode(e.s));return n.encode(48,r)}};function Po(e,n){return Er(Ir(e,n))}const Lo=BigInt(0),Fo=BigInt(1);BigInt(2);const Do=BigInt(3),Uo=BigInt(4);function Ho(e){const n=function(e){const n=Oo(e);return Hr(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}(e),{Fp:t,n:r,nByteLength:o,nBitLength:i}=n,a=t.BYTES+1,s=2*t.BYTES+1;function u(e){return ao(e,r)}function l(e){return uo(e,r)}const{ProjectivePoint:c,normPrivateKeyToScalar:f,weierstrassEquation:d,isWithinCurveOrder:h}=function(e){const n=function(e){const n=Oo(e);Hr(n,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:t,Fp:r,a:o}=n;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof t||"bigint"!=typeof t.beta||"function"!=typeof t.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...n})}(e),{Fp:t}=n,r=yo(n.n,n.nBitLength),o=n.toBytes||((e,n,r)=>{const o=n.toAffine();return Rr(Uint8Array.from([4]),t.toBytes(o.x),t.toBytes(o.y))}),i=n.fromBytes||(e=>{const n=e.subarray(1);return{x:t.fromBytes(n.subarray(0,t.BYTES)),y:t.fromBytes(n.subarray(t.BYTES,2*t.BYTES))}});function a(e){const{a:r,b:o}=n,i=t.sqr(e),a=t.mul(i,e);return t.add(t.add(a,t.mul(e,r)),o)}function s(e,n){const r=t.sqr(n),o=a(e);return t.eql(r,o)}if(!s(n.Gx,n.Gy))throw new Error("bad curve params: generator point");const u=t.mul(t.pow(n.a,Do),Uo),l=t.mul(t.sqr(n.b),BigInt(27));if(t.is0(t.add(u,l)))throw new Error("bad curve params: a or b");function c(e){const{allowedPrivateKeyLengths:t,nByteLength:r,wrapPrivateKey:o,n:i}=n;if(t&&"bigint"!=typeof e){if(yr(e)&&(e=Er(e)),"string"!=typeof e||!t.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*r,"0")}let a;try{a="bigint"==typeof e?e:xr(Or("private key",e,r))}catch(s){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof e)}return o&&(a=ao(a,i)),Pr("private key",a,Fo,i),a}function f(e){if(!(e instanceof p))throw new Error("ProjectivePoint expected")}const d=jr((e,n)=>{const{px:r,py:o,pz:i}=e;if(t.eql(i,t.ONE))return{x:r,y:o};const a=e.is0();null==n&&(n=a?t.ONE:t.inv(i));const s=t.mul(r,n),u=t.mul(o,n),l=t.mul(i,n);if(a)return{x:t.ZERO,y:t.ZERO};if(!t.eql(l,t.ONE))throw new Error("invZ was invalid");return{x:s,y:u}}),h=jr(e=>{if(e.is0()){if(n.allowInfinityPoint&&!t.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:r,y:o}=e.toAffine();if(!t.isValid(r)||!t.isValid(o))throw new Error("bad point: x or y not FE");if(!s(r,o))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,n,r){if(null==e||!t.isValid(e))throw new Error("x required");if(null==n||!t.isValid(n)||t.is0(n))throw new Error("y required");if(null==r||!t.isValid(r))throw new Error("z required");this.px=e,this.py=n,this.pz=r,Object.freeze(this)}static fromAffine(e){const{x:n,y:r}=e||{};if(!e||!t.isValid(n)||!t.isValid(r))throw new Error("invalid affine point");if(e instanceof p)throw new Error("projective point not allowed");const o=e=>t.eql(e,t.ZERO);return o(n)&&o(r)?p.ZERO:new p(n,r,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const n=ho(t,e.map(e=>e.pz));return e.map((e,t)=>e.toAffine(n[t])).map(p.fromAffine)}static fromHex(e){const n=p.fromAffine(i(Or("pointHex",e)));return n.assertValidity(),n}static fromPrivateKey(e){return p.BASE.multiply(c(e))}static msm(e,n){return Mo(p,r,e,n)}Be(e){v.setWindowSize(this,e)}assertValidity(){h(this)}hasEvenY(){const{y:e}=this.toAffine();if(t.isOdd)return!t.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){f(e);const{px:n,py:r,pz:o}=this,{px:i,py:a,pz:s}=e,u=t.eql(t.mul(n,s),t.mul(i,o)),l=t.eql(t.mul(r,s),t.mul(a,o));return u&&l}negate(){return new p(this.px,t.neg(this.py),this.pz)}double(){const{a:e,b:r}=n,o=t.mul(r,Do),{px:i,py:a,pz:s}=this;let u=t.ZERO,l=t.ZERO,c=t.ZERO,f=t.mul(i,i),d=t.mul(a,a),h=t.mul(s,s),m=t.mul(i,a);return m=t.add(m,m),c=t.mul(i,s),c=t.add(c,c),u=t.mul(e,c),l=t.mul(o,h),l=t.add(u,l),u=t.sub(d,l),l=t.add(d,l),l=t.mul(u,l),u=t.mul(m,u),c=t.mul(o,c),h=t.mul(e,h),m=t.sub(f,h),m=t.mul(e,m),m=t.add(m,c),c=t.add(f,f),f=t.add(c,f),f=t.add(f,h),f=t.mul(f,m),l=t.add(l,f),h=t.mul(a,s),h=t.add(h,h),f=t.mul(h,m),u=t.sub(u,f),c=t.mul(h,d),c=t.add(c,c),c=t.add(c,c),new p(u,l,c)}add(e){f(e);const{px:r,py:o,pz:i}=this,{px:a,py:s,pz:u}=e;let l=t.ZERO,c=t.ZERO,d=t.ZERO;const h=n.a,m=t.mul(n.b,Do);let y=t.mul(r,a),v=t.mul(o,s),b=t.mul(i,u),w=t.add(r,o),g=t.add(a,s);w=t.mul(w,g),g=t.add(y,v),w=t.sub(w,g),g=t.add(r,i);let k=t.add(a,u);return g=t.mul(g,k),k=t.add(y,b),g=t.sub(g,k),k=t.add(o,i),l=t.add(s,u),k=t.mul(k,l),l=t.add(v,b),k=t.sub(k,l),d=t.mul(h,g),l=t.mul(m,b),d=t.add(l,d),l=t.sub(v,d),d=t.add(v,d),c=t.mul(l,d),v=t.add(y,y),v=t.add(v,y),b=t.mul(h,b),g=t.mul(m,g),v=t.add(v,b),b=t.sub(y,b),b=t.mul(h,b),g=t.add(g,b),y=t.mul(v,g),c=t.add(c,y),y=t.mul(k,g),l=t.mul(w,l),l=t.sub(l,y),y=t.mul(w,v),d=t.mul(k,d),d=t.add(d,y),new p(l,c,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return v.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){const{endo:r,n:o}=n;Pr("scalar",e,Lo,o);const i=p.ZERO;if(e===Lo)return i;if(this.is0()||e===Fo)return this;if(!r||v.hasPrecomputes(this))return v.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:u,k2:l}=r.splitScalar(e),c=i,f=i,d=this;for(;s>Lo||l>Lo;)s&Fo&&(c=c.add(d)),l&Fo&&(f=f.add(d)),d=d.double(),s>>=Fo,l>>=Fo;return a&&(c=c.negate()),u&&(f=f.negate()),f=new p(t.mul(f.px,r.beta),f.py,f.pz),c.add(f)}multiply(e){const{endo:r,n:o}=n;let i,a;if(Pr("scalar",e,Fo,o),r){const{k1neg:n,k1:o,k2neg:s,k2:u}=r.splitScalar(e);let{p:l,f:c}=this.wNAF(o),{p:f,f:d}=this.wNAF(u);l=v.constTimeNegate(n,l),f=v.constTimeNegate(s,f),f=new p(t.mul(f.px,r.beta),f.py,f.pz),i=l.add(f),a=c.add(d)}else{const{p:n,f:t}=this.wNAF(e);i=n,a=t}return p.normalizeZ([i,a])[0]}multiplyAndAddUnsafe(e,n,t){const r=p.BASE,o=(e,n)=>n!==Lo&&n!==Fo&&e.equals(r)?e.multiply(n):e.multiplyUnsafe(n),i=o(this,n).add(o(e,t));return i.is0()?void 0:i}toAffine(e){return d(this,e)}isTorsionFree(){const{h:e,isTorsionFree:t}=n;if(e===Fo)return!0;if(t)return t(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:t}=n;return e===Fo?this:t?t(p,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return br("isCompressed",e),this.assertValidity(),o(p,this,e)}toHex(e=!0){return br("isCompressed",e),Er(this.toRawBytes(e))}}p.BASE=new p(n.Gx,n.Gy,t.ONE),p.ZERO=new p(t.ZERO,t.ONE,t.ZERO);const{endo:m,nBitLength:y}=n,v=Io(p,m?Math.ceil(y/2):y);return{CURVE:n,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:function(e){return Br(e,Fo,n.n)}}}({...n,toBytes(e,n,r){const o=n.toAffine(),i=t.toBytes(o.x),a=Rr;return br("isCompressed",r),r?a(Uint8Array.from([n.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,t.toBytes(o.y))},fromBytes(e){const n=e.length,r=e[0],o=e.subarray(1);if(n!==a||2!==r&&3!==r){if(n===s&&4===r)return{x:t.fromBytes(o.subarray(0,t.BYTES)),y:t.fromBytes(o.subarray(t.BYTES,2*t.BYTES))};throw new Error("invalid Point, expected length of "+a+", or uncompressed "+s+", got "+n)}{const e=xr(o);if(!Br(e,Fo,t.ORDER))throw new Error("Point is not on curve");const n=d(e);let a;try{a=t.sqrt(n)}catch(i){const e=i instanceof Error?": "+i.message:"";throw new Error("Point is not on curve"+e)}return!(1&~r)!=((a&Fo)===Fo)&&(a=t.neg(a)),{x:e,y:a}}}});function p(e){return e>r>>Fo}const m=(e,n,t)=>xr(e.slice(n,t));class y{constructor(e,n,t){Pr("r",e,Fo,r),Pr("s",n,Fo,r),this.r=e,this.s=n,null!=t&&(this.recovery=t),Object.freeze(this)}static fromCompact(e){const n=o;return e=Or("compactSignature",e,2*n),new y(m(e,0,n),m(e,n,2*n))}static fromDER(e){const{r:n,s:t}=Bo.toSig(Or("DER",e));return new y(n,t)}assertValidity(){}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:o,recovery:i}=this,a=g(Or("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const s=2===i||3===i?r+n.n:r;if(s>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const f=1&i?"03":"02",d=c.fromHex(f+Po(s,t.BYTES)),h=l(s),p=u(-a*h),m=u(o*h),y=c.BASE.multiplyAndAddUnsafe(d,p,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,u(-this.s),this.recovery):this}toDERRawBytes(){return Sr(this.toDERHex())}toDERHex(){return Bo.hexFromSig(this)}toCompactRawBytes(){return Sr(this.toCompactHex())}toCompactHex(){const e=o;return Po(this.r,e)+Po(this.s,e)}}const v={isValidPrivateKey(e){try{return f(e),!0}catch(n){return!1}},normPrivateKeyToScalar:f,randomPrivateKey:()=>{const e=bo(n.n);return function(e,n,t=!1){const r=e.length,o=vo(n),i=bo(n);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const a=ao(t?Cr(e):xr(e),n-eo)+eo;return t?Mr(a,o):Ir(a,o)}(n.randomBytes(e),n.n)},precompute:(e=8,n=c.BASE)=>(n.Be(e),n.multiply(BigInt(3)),n)};function b(e){if("bigint"==typeof e)return!1;if(e instanceof c)return!0;const r=Or("key",e).length,i=t.BYTES,a=i+1,s=2*i+1;return n.allowedPrivateKeyLengths||o===a?void 0:r===a||r===s}const w=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const n=xr(e),t=8*e.length-i;return t>0?n>>BigInt(t):n},g=n.bits2int_modN||function(e){return u(w(e))},k=Lr(i);function A(e){return Pr("num < 2^"+i,e,Lo,k),Ir(e,o)}const E={lowS:n.lowS,prehash:!1},T={lowS:n.lowS,prehash:!1};return c.BASE.Be(8),{CURVE:n,getPublicKey:function(e,n=!0){return c.fromPrivateKey(e).toRawBytes(n)},getSharedSecret:function(e,n,t=!0){if(!0===b(e))throw new Error("first arg must be private key");if(!1===b(n))throw new Error("second arg must be public key");return c.fromHex(n).multiply(f(e)).toRawBytes(t)},sign:function(e,r,o=E){const{seed:i,k2sig:a}=function(e,r,o=E){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:a}=n;let{lowS:s,prehash:d,extraEntropy:m}=o;null==s&&(s=!0),e=Or("msgHash",e),Ro(o),d&&(e=Or("prehashed msgHash",i(e)));const v=g(e),b=f(r),k=[A(b),A(v)];if(null!=m&&!1!==m){const e=!0===m?a(t.BYTES):m;k.push(Or("extraEntropy",e))}const T=Rr(...k),S=v;return{seed:T,k2sig:function(e){const n=w(e);if(!h(n))return;const t=l(n),r=c.BASE.multiply(n).toAffine(),o=u(r.x);if(o===Lo)return;const i=u(t*u(S+o*b));if(i===Lo)return;let a=(r.x===o?0:2)|Number(r.y&Fo),f=i;return s&&p(i)&&(f=function(e){return p(e)?u(-e):e}(i),a^=1),new y(o,f,a)}}}(e,r,o),s=n,d=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");let r=Fr(e),o=Fr(e),i=0;const a=()=>{r.fill(1),o.fill(0),i=0},s=(...e)=>t(o,r,...e),u=(e=Fr(0))=>{o=s(Dr([0]),e),r=s(),0!==e.length&&(o=s(Dr([1]),e),r=s())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const t=[];for(;e<n;){r=s();const n=r.slice();t.push(n),e+=r.length}return Rr(...t)};return(e,n)=>{let t;for(a(),u(e);!(t=n(l()));)u();return a(),t}}(s.hash.outputLen,s.nByteLength,s.hmac);return d(i,a)},verify:function(e,t,r,o=T){const i=e;t=Or("msgHash",t),r=Or("publicKey",r);const{lowS:a,prehash:s,format:f}=o;if(Ro(o),"strict"in o)throw new Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const d="string"==typeof i||yr(i),h=!d&&!f&&"object"==typeof i&&null!==i&&"bigint"==typeof i.r&&"bigint"==typeof i.s;if(!d&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(h&&(p=new y(i.r,i.s)),d){try{"compact"!==f&&(p=y.fromDER(i))}catch(x){if(!(x instanceof Bo.Err))throw x}p||"der"===f||(p=y.fromCompact(i))}m=c.fromHex(r)}catch(C){return!1}if(!p)return!1;if(a&&p.hasHighS())return!1;s&&(t=n.hash(t));const{r:v,s:b}=p,w=g(t),k=l(b),A=u(w*k),E=u(v*k),S=c.BASE.multiplyAndAddUnsafe(m,A,E)?.toAffine();return!!S&&u(S.x)===v},ProjectivePoint:c,Signature:y,utils:v}}function jo(e){return{hash:e,hmac:(n,...t)=>_r(e,n,function(...e){let n=0;for(let r=0;r<e.length;r++){const t=e[r];rn(t),n+=t.length}const t=new Uint8Array(n);for(let r=0,o=0;r<e.length;r++){const n=e[r];t.set(n,o),o+=n.length}return t}(...t)),randomBytes:mn}}const qo=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Vo=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Wo=BigInt(0),zo=BigInt(1),Go=BigInt(2),Yo=(e,n)=>(e+n/Go)/n,Jo=yo(qo,void 0,void 0,{sqrt:function(e){const n=qo,t=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),l=e*e*e%n,c=l*l*e%n,f=so(c,t,n)*c%n,d=so(f,t,n)*c%n,h=so(d,Go,n)*l%n,p=so(h,o,n)*h%n,m=so(p,i,n)*p%n,y=so(m,s,n)*m%n,v=so(y,u,n)*y%n,b=so(v,s,n)*m%n,w=so(b,t,n)*c%n,g=so(w,a,n)*p%n,k=so(g,r,n)*l%n,A=so(k,Go,n);if(!Jo.eql(Jo.sqr(A),e))throw new Error("Cannot find square root");return A}}),Ko=function(e){const n=n=>Ho({...e,...jo(n)});return{...n(ir),create:n}}({a:Wo,b:BigInt(7),Fp:Jo,n:Vo,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Vo,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-zo*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),s=Yo(i*e,n),u=Yo(-r*e,n);let l=ao(e-s*t-u*o,n),c=ao(-s*r-u*i,n);const f=l>a,d=c>a;if(f&&(l=n-l),d&&(c=n-c),l>a||c>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:l,k2neg:d,k2:c}}}});class Xo extends ie{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Qo(e,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Xo({value:e});let[t,r="0"]=e.split(".");const o=t.startsWith("-");if(o&&(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,o,i]=[r.slice(0,n-1),r.slice(n-1,n),r.slice(n)],a=Math.round(Number(`${o}.${i}`));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(`${o?"-":""}${t}${r}`)}const Zo="0x0000000000000000000000000000000000000000",_o={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:/* @__PURE__ */Vt({format(e){const n=e.transactions?.map(e=>{if("string"==typeof e)return e;const n=Ht(e);return"0x7e"===n.typeHex&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?Ee(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n});return{transactions:n,stateRoot:e.stateRoot}}}),transaction:/* @__PURE__ */jt({format(e){const n={};return"0x7e"===e.type&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?Ee(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n}}),transactionReceipt:/* @__PURE__ */Gr({format:e=>({l1GasPrice:e.l1GasPrice?Ee(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Ee(e.l1GasUsed):null,l1Fee:e.l1Fee?Ee(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&&!jn(n))throw new Ln({address:n});if(t&&!jn(t))throw new Ln({address:t})}(e);const{sourceHash:n,data:t,from:r,gas:o,isSystemTx:i,mint:a,to:s,value:u}=e;return Vn(["0x7e",bt([n,r,s??"0x",a?xe(a):"0x",u?xe(u):"0x",o?xe(o):"0x",i?"0x1":"0x",t??"0x"])])}(e):Kr(e,n)}}},$o=/* @__PURE__ */Qr({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}}}),ei=/* @__PURE__ */Qr({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}}}),ni=1,ti=/* @__PURE__ */Qr({..._o,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:{..._o.contracts,disputeGameFactory:{[ni]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ni]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ni]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ni]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),ri=/* @__PURE__ */Qr({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 oi(e,n){const{account:t=e.account}=n;if(!t)throw new Vr;const r=$n(t);try{const{accessList:t,blockNumber:o,blockTag:i,data:a,gas:s,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:d,value:h,...p}=n,m=("bigint"==typeof o?Me(o):void 0)||i;!function(e){const{account:n,maxFeePerGas:t,maxPriorityFeePerGas:r,to:o}=e,i=n?$n(n):void 0;if(i&&!jn(i.address))throw new Ln({address:i.address});if(o&&!jn(o))throw new Ln({address:o});if(t&&t>Dt)throw new At({maxFeePerGas:t});if(r&&t&&r>t)throw new Rt({maxFeePerGas:t,maxPriorityFeePerGas:r})}(n);const y=e.chain?.formatters?.transactionRequest?.format,v=(y||Ft)({...Bt(p,{format:y}),account:r,accessList:t,data:a,gas:s,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:d,value:h},"estimateGas"),{baseFeePerGas:b,gasLimit:w,priorityFeePerGas:g}=await e.request({method:"linea_estimateGas",params:m?[v,m]:[v]});return{baseFeePerGas:BigInt(b),gasLimit:BigInt(w),priorityFeePerGas:BigInt(g)}}catch(o){throw function(e,{docsPath:n,...t}){const r=(()=>{const n=function(e,n){const t=(e.details||"").toLowerCase(),r=e instanceof ie?e.walk(e=>e?.code===kt.code):e;return r instanceof ie?new kt({cause:e,message:r.details}):kt.nodeMessage.test(t)?new kt({cause:e,message:e.details}):At.nodeMessage.test(t)?new At({cause:e,maxFeePerGas:n?.maxFeePerGas}):Et.nodeMessage.test(t)?new Et({cause:e,maxFeePerGas:n?.maxFeePerGas}):Tt.nodeMessage.test(t)?new Tt({cause:e,nonce:n?.nonce}):St.nodeMessage.test(t)?new St({cause:e,nonce:n?.nonce}):xt.nodeMessage.test(t)?new xt({cause:e,nonce:n?.nonce}):Ct.nodeMessage.test(t)?new Ct({cause:e}):It.nodeMessage.test(t)?new It({cause:e,gas:n?.gas}):Mt.nodeMessage.test(t)?new Mt({cause:e,gas:n?.gas}):Ot.nodeMessage.test(t)?new Ot({cause:e}):Rt.nodeMessage.test(t)?new Rt({cause:e,maxFeePerGas:n?.maxFeePerGas,maxPriorityFeePerGas:n?.maxPriorityFeePerGas}):new Nt({cause:e})}(e,t);return n instanceof Nt?e:n})();return new vt(r,{docsPath:n,...t})}(o,{...n,account:r,chain:e.chain})}}async function ii({client:e,multiply:n,request:t,type:r}){try{const o=await oi(e,{...t,account:t?.account}),{priorityFeePerGas:i}=o,a=n(BigInt(o.baseFeePerGas))+i;return"legacy"===r?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:i}}catch{return null}}const ai=/* @__PURE__ */Qr({fees:{estimateFeesPerGas:ii,async maxPriorityFeePerGas({block:e,client:n,request:t}){const r=await ii({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}),si=1,ui=1,li={1:{.../* @__PURE__ */Qr({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:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJalJREFUeAHVfQl4HNWZ4F/V96Vu3ZItS7IlMLLNEWTAGAwGAjmGhJ1JyHwQIGQ3B2ENhOwm2Xgg6xwfJGQIuwMTNiwTjswZhhyETABD4jiEK8YH2JIPWdjWZVmybqmvqnrz/+9Vtaqrq7pbp81vl6r61Tv///3H+99REry/QTLdmSXc+M3gfQwSnP5AdZTufrwrFpHClwOTGyUJGpmmNYDGGpnEYvg+yhjemaankEGSpBHG1FFZ8hyRXS7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WgTHlmQuEVOmvd/2iK1lx5cbh05SbkqCVcCVvW7xk7F/id9pHSAvkiuWza+ayKndSgguDclFhGZi6Hcwt98UU7kE4Mbe3Ycd8TfR3P90ej0anR0VHiFsN0nndd4wSLTSBzua66ujpPd3c3EYpf51/9k0si1ed/wu0OXsgkaQmZy3ys4TBgpd0LGUJxBZU5VYCLJ7ETTsshRCa9JOm79fh0RY+SGn1lbHDvS7tfuvVPIDbxJvQ7GQCLwjE5dYRTCPTNNv2zYO6KigovynUfKl4fhnubLrpvTTi6ck0gtvwqWXK1ICaX8CVf1PtpRdgMFzcIn53MlxXT9klM36uqibdSiaH2gSO/fqljx4NHMFo6EokkfD5fanBwkIhi7BVdNI7JqTecHiDpFycWXSUlJV5VVb04tiAl5Kmov6Z0WcsNq/yR5S0eT3gpWlQt4gO87qWI8QgawJFpPNLKGW1cYto4HbOGYrMXuRE5ZLxbSQ93d7f95M2+w7+hww/SNhcRhU+pwCngGCucLgSyAre5W1tb5d7eXk86nXZhj3Zj73ahV8JNx0jje5ff75dxnsUgroQ9XzKO18Rnhs+GvtDQMNFwzKJiHsr4+LhQRvpQALIJcsqJ8n4DiT6lrH/zmrjLMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",tokenTrendingDefault:["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"],isSupported:!0},10:{.../* @__PURE__ */Qr({..._o,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:{..._o.contracts,disputeGameFactory:{[si]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[si]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[si]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[si]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjoUI2ohSBh05/mX+9wI80YF0D74cqS2vy5C95K0KYRMzJBlCtq0iGCEMTWUAcicWapRzfYtQU0AioXJHzCn+Qv/hE/Phzy/3UipAsszImqhalMELYIny3iPD+dps1ExcJYFyR2Tcf56WHazFQkjFVB2D0d4kxpttauKQ9xjPF6wQJZwoogm9Y9yWlzn2avDWtpkGGUVYzRbdq6YoBpPuFu83c17oaNWciWiRX5OcX9l0/JEEYEiV3Uj1SX/kTVILb0aJcJF1ZaECXGGF2vvIddNwyJUkoQFmMyFmNrZFHlQVFzV5n6WGFBnBiplBKlkCBODC2FRcktSBwzbjsxtCxzX+XlvDElVz8kEcCdGHowsHZdtVkOcllIOObf3/bZVH46bCm7pCOVYgvhQaSvnRiFmIw7zCJEgqhyyPbrgZvksLTMonVZLogbQxTk9Ra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PbOvjqmbk5s5CpcHEica2/HzuN8fFu8gAxgfKXesOEfZpmxQvbWjiuIFyiHCHvgUqwsnRz3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x68f180fcce6836688e9084f035309e29bf0a2095","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},56:{...ri,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZldQvmNHqOb8+e7XagQlRCyfTNpxym7yClZti1gFsNI6vQIuTb/RLcDgQkmBJuiuMmeAU4uirsJVIBMDuUrvR59ff7J7hYEwLuQ7fUkiRm7DBF56kD7XyHEibnaS8nffIvxJiTLDRH/l7jZ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a9PeJQgbm+IvgGd9SQsmYFh3I1HlZ/QZd8dXjyuNLSigZOO6YFh3IVCF4nYQVPNElrqWEkoHguKNoqdiZ6/ba+EKPLi56XyFlCDpz5zcLv5g4cyppluADNF2I7UgJKYMPFlKe2VmaKQTDK1TThdiSEjgycL6V0qaUyvuH7IkRPHgcwe/HpPkKLQMYeXHuQldp7Xfl2e9Zrwv8Xerdj26khJaBvSpVGYiyEOx1iTbwEuf+Z6hIykqpgoyUkVKrC9RzyyOF5iu4DJHEU9dbHiH4BoQL64F6XsisSKmEDNDb01Brlzbks/Uk4aF3apsQKZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",tokenTrendingDefault:["0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"],isSupported:!0},137:{.../* @__PURE__ */Qr({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/WfGxM4yzswWDptIXHs1SA9EQgqT33hhknEYYGfvFtykKlywn8xw32cn0pa0ZqjN1EyQ9ONNptLQeJWYeovBFqEaWcSNdz5kTuiByNpjsECO2PwBzpJOTJjNOhC1MaIKkd9/sY4bxLiPhF6JFqMIELog0TevWjYrw5zWKNqEIE6ggbw3PHeW8kG5w0+QG6WPevPjoKQqIQARB6Mo4/1MEzZMSIseZ5IwdDmK2GKQZzArDND+PqxgAn83g5udv7fnqIGlG2wyJka9wCRs/PvHY66QJLYIUTZR5RvxnffQAIqoKGc6MAzpMmG9BEM4aBjtDjZPc1YusiMKG/Iriy4dIMRi7TE0xQEr4lcu4JuQDzzNkRYz4hLS6yJkmH/JaF/MkSFMMRzyL4loQOHCEtU0xHMkJn/KUW5/iyodIMYSdbIqhRKf0KWiwuUBZEJlnQIymA3eDTAfc/IKyIMWkrymGW5CbjQ1/+a6L1zsji4RUGKcmnmHMOPTmBeeipKMgYTjx7U+2iMc6+Xz2i0XxWKIYouTkk+RAkE68a8dDNHxk44oYRT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TrendingDefault:["0x7ceb23fd6bc0add59e62ac25578270cff1b9f619","0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"],isSupported:!0},8453:{...ti,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoLQFYV4qC2BQiyiGET6WFrack60OBFyIHtBVtWi/tRN/djAsP8vEvvaanazFiY7QRgbAjzTjybKRabC+BfEuKYd/eoRyk0mwvgV5AvFGNFCsV3TNJgY80dwAE/4EaS87ikdSo/KFLZ8WEsI19AqQryqrBiE343fcV05d8PuLKQ6sWJa9vAi2IYj3AhiXNRhgeYTWRPpgL/swoXJBaEYIY6R/Qy7aDgRRSYIJ3lGjKqMoqR0uqJYr4/ZC5KzGI2P9Ae/rx+3h/+t86++XP8xzzkgEsVOkIzFaH4MLMwDiw3zmmKkgYKcRnr9/UyvHr41r6N3yAJrUaYXxMSMV/AsBk/8xrL+uPujrcAWCrOvL6WTt97FoSj3po0p0wniOYDzxD98oMfNn7kVYRwU58lfwNHf8MXUgX46QdaVNn73YtAFtb40FpEHtJTWc+DgGO5R+maYikVJdacyvSDr6jEcT/qytohJnOrLbe1nL64s9eQxnSBmkXAPDmGMePZt+gCdJbSW3d/hmm0tysRzOFkQD0H88dfGKooMrWR5x6m1pArykxcXuWrrSA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H5BLuMiZaKmWdwqPCvzkmXRFtkuF/1zwH5BOGtX1/7Mlq1fq++66AkcFDfbH6x3MnxPXekfEsIDXfsJlYVD3JabAjS7g28NC8LxsJItOBLOWrdLmkh3E7zYtp7CBfvpqwGxWYkDGE88FJPMjaQOoxN3PMI6yGhBqJzCEzjAU4XPzHFcFHN/XDHM8XlZpneUkzalZRfFsRjROOsg4wUx90nG/uK0lFUUxsJ73zssF8t5xw2lYifX7V1Tx3DYT6pMBTG5FOQ0w5+DpcPgxky2yamkJsA7cV2E9+Bp/kVeHWbQ5rDd8XaLTprB0mRBjHk5c12E5r/51AwfM+rnkRpaxfw3XjompGpKOdllJaypPf3TD+EYui5uoHFWrNgSxgrGOC85AhyxHgapGhmkF4QFBgIcw1MnNgrDEuQr97ONL16FMER4EaTem5teEJJRRzYWs9lo+stSZ4xIGrkI03Ym4bmhC8mo5RGhpbBcBa2GmzRtLSfpRXXyppslk01SRgYtjxJy6tDGLccUhpvz5+8AH942Gyx7SbYCnL/rJq6d55JdmWFTsIS6h+E4cmibl1CLMkiOjSUT6tarCU5ar8o3ffIAeCCCvK7Sw+QQR82J3ezC5YFwrO1oyb5U8DsrN2IQucsaxLT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported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5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",tokenTrendingDefault:["0x82af49447d8a07e3bd95bd0d56f35241523fbab1","0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],isSupported:!0},43114:{...ei,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQHRvhuSfbbTv7gLNI76/BYcRcJCHntcAKicCSZ4geIMfugaa6i9vikD4Adp3Dvl+Cw7hjCgqGjwS4kwFYsmACEk0JYkVFUk/uyBQqaL86Xm1eSkvqKboYglCxCB8FZ0ri/6vqyiJUkThqBBCXFZv78FdVD6CT0FwxXb0WBVlQsQYRmDFpjhWRGH3pMT4fuLE6IMdnfpxbXF9/QoMY1QUN3NGYVqCxLLJnGNMlE5TJVV0hP2J/YfBJs2IKA+99y8Egq5h/9MiCs4rYXxoRKso+yF35EEILOvMNdpE4V54IOQt7NfmKgmBtZ0gOK9jCEeLKH9775+ZEfT9PkrmeeHm7GTRPFNYlAeet0RCrmBKRGFhJArwwDt1eSrIECqvyg3Or8hJ7khxxWHNnz2LmaNH0X6wid1fbqvbB3CE3BGTSxTOIRVBt1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h/z1ZaLgiPpDMhf5uQS7S+6X8by6SUE672WRvzyvMSPE1UkyAixGQOL6LoJrNvYc6LxnCXQvnKM6neVfFiSOMsR48d4lEl5HEoJzzglnDAGRLyHXnqC9aluMiFJF6edF9JQgkBKCIO4oT7Wio/NXFGdE6adzNerKCeJtxgV5vDEZ9NJSXXAlBO6o5mmtrIiIw0lRBmGR1AdYF6gcfo7gSLiPMqEGIWqq7a8NihY6JYgtFQHqwxZN1af4p7OBQ9Di5emuiTDI/4Da9NgV2sBcAAAAAElFTkSuQmCC",chainId:43114,chainType:"avax",chainTypeMoralis:"avalanche",tokenTrendingDefault:["0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB","0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"],isSupported:!0},59144:{...ai,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABkCAYAAACWy14QAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABydJREFUeAHtnT1MHEcUxx8HEuAGYxdOY+fcpbBl6CJR+NI5FAR3oQJ6irhBiiiAKoEmRkIKXQgN7gwUyB1HgZLOh0SND2iSgs+GS3GQ/3+ZPR3H3bIfsx+3Nz9p2b1jl4/5z7z3Zm7mTZsklIcAp2x7e3vf9fV1H657cPD8sOqo5owH7i3y3NbWdoDzl6urq12cC2dAEkqbJAQWOgo8h0LM4eVruSlwnRR4QJx8uVzehiZFSQixisCCz2Qyoyj4YRROTiIEvzOP372cBEFiEQFln0OhT+OwzUus2IIcHx//KTEQqQiPHz8eg40ejbrWe6CIv20majEiEYGFj9o2jcusNAeRihGqCFVmJyfNSSRihCKCcris+T9JCkArXsPxLiwH3i6aYe2HAH/hMicpAa3hGxxj3d3d/11eXv4tmtEmAmv/gwcPfsEfu4SXXZI++D+9gRDZzs7O3VKppK3zp8UcofyzqP0fRX8HK6kUEeV9p8s8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aXiWyIwnb0YIgVlvm5fWyLAOefFEClwynn72lqfQOPU29ubjyundVxrGC4uLuKa9FWsTkrVUfWN9bhEKBTiiQs4JTKqeafV1Jr/6qHsZTOiGg0wRQvVrysimFA1GmpNEcnU3DArhlBBGc/UvndLBC5k4/4yYggFtf3Yeu37mTo3xrK5TytAh1wvy8sdEXDPslLMoBk45Lrmvu4H/cY3hMJso4SEDVeHoPO21cQbEiUKWhYcDTe9yDg8aFqDJhgROaXlbJgNslQqFbu7u3tx+a0YfKP6BeNO9zhO/oIjmTG96GDQDN13j6MIDKfwQ96KwS+zbjY/ujdXtjFL/mCn9/T0dNzNva7moiqzZMaVXKKiIVcCEE+bWCBk3TKrPe9HZXwsur3f9axs/lD6B+OonYEA4143wfO0pw78wz9dXV3/ojWkMj+SBmbhB96LRzzvLgUhCp2dnQdGiDvMnpyczIgPfO2zZoS4g28BiO8dB5UQnEH2BmK08pZfgQQggdO72HuvtVrUxABFbZS9LAHRthVwK4Wvqh/w1steak5oWTjIkAxRwXNcLkjKUVvF9+sSgGjdHv7y8vITHTYu+9KWuITmB//Tz6hs7+APS6IRrSIQOmz0JTiRjONNqcivx3EgHN9DgE8SAqHmXWt2p61sP53vmoRIJMnvIMYYhJhuFjGU6VnAEMT7RjtC6STSDIRJFyPqwreJJQ0kM6arXUsSsWmGsvmzdhb3qIk1F6favSSH2jca9cwOFjx+53bUtb4eiUmIqnJ2s4UMo4BeVSf01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",tokenTrendingDefault:["0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f","0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4"],isSupported:!0},130:{.../* @__PURE__ */Qr({..._o,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:{..._o.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[ui]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[ui]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[ui]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg52x7CbykU7Zn1+xZTaz+cP6W/fYrDjiw72b3ilAujw52d+BWQfStGOJi380yiABxGABcmHYQH4rgZnHPZnBwby8svu3q8trb/7D82r2j8Xh9CVM/vRQuLeHnaHPwzG/uXROnrl5cxXVvb5146Mqw+tC5TnlABrBPd5gtbvtOEVz0AMHHGHPwkLmApI6Zcx3naAJhwAyg/yr6hnbhN6WLruqHYTnfDtuQUXdMjPIb7w733PTF4X/9pF0WP/5zOG87PMPbM8aAD068cfW+cfej1/k1Lz8+e+ELohsfADBaUoUKfKeDZAwwHM3jCD2g5CPdQxqxI6mHDFwH+UL0HkSiPR9HE4r8PW2oD8FDuzvBO8P8EHJf4HHtTXiNGy4YXXLN/WHzf90wvP+Kv4XzZuEZ2H6mDEDzkv/R4pMPL4fx1Ue3Dv7FXrb7oRC394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fosWwdPGHDnvX7geu2H/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}},ci=e=>{const n=Object.values(li).find(n=>n.chainTypeMoralis===e);return n?.chainType||null};var fi,di,hi,pi={},mi={},yi={};function vi(){return hi||(hi=1,function(e){const n=function(){if(fi)return mi;fi=1,mi.byteLength=function(e){var n=i(e),t=n[0],r=n[1];return 3*(t+r)/4-r},mi.toByteArray=function(e){var r,o,a=i(e),s=a[0],u=a[1],l=new t(function(e,n,t){return 3*(n+t)/4-t}(0,s,u)),c=0,f=u>0?s-4:s;for(o=0;o<f;o+=4)r=n[e.charCodeAt(o)]<<18|n[e.charCodeAt(o+1)]<<12|n[e.charCodeAt(o+2)]<<6|n[e.charCodeAt(o+3)],l[c++]=r>>16&255,l[c++]=r>>8&255,l[c++]=255&r;return 2===u&&(r=n[e.charCodeAt(o)]<<2|n[e.charCodeAt(o+1)]>>4,l[c++]=255&r),1===u&&(r=n[e.charCodeAt(o)]<<10|n[e.charCodeAt(o+1)]<<4|n[e.charCodeAt(o+2)]>>2,l[c++]=r>>8&255,l[c++]=255&r),l},mi.fromByteArray=function(n){for(var t,r=n.length,o=r%3,i=[],a=16383,u=0,l=r-o;u<l;u+=a)i.push(s(n,u,u+a>l?l:u+a));return 1===o?(t=n[r-1],i.push(e[t>>2]+e[t<<4&63]+"==")):2===o&&(t=(n[r-2]<<8)+n[r-1],i.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"=")),i.join("")};for(var e=[],n=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=r[o],n[r.charCodeAt(o)]=o;function i(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,o=[],i=n;i<t;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(r));return o.join("")}return n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63,mi}(),t=(di||(di=1,yi.read=function(e,n,t,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=t?o-1:0,d=t?-1:1,h=e[n+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[n+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[n+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},yi.write=function(e,n,t,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-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*(u=Math.pow(2,-a))<1&&(a--,u*=2),(n+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(n*u-1)*Math.pow(2,o),a+=f):(s=n*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[t+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[t+h]=255&a,h+=p,a/=256,l-=8);e[t+h-p]|=128*m}),yi),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 o=2147483647;function i(e){if(e>o)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 l(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=i(t);const o=r.write(e,n);return o!==t&&(r=r.slice(0,o)),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 o=function(e){if(a.isBuffer(e)){const n=0|d(e.length),t=i(n);return 0===t.length||e.copy(t,0,0,n),t}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?i(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(o)return o;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 u(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 l(e){return u(e),i(e<0?0:0|d(e))}function c(e){const n=e.length<0?0:0|d(e.length),t=i(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>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.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 o=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return z(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(o)return r?-1:z(e).length;n=(""+n).toLowerCase(),o=!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 T(this,n,t);case"ascii":return x(this,n,t);case"latin1":case"binary":return C(this,n,t);case"base64":return E(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 y(e,n,t,r,o){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=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)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,o);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):v(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,n,t,r,o){let i,a=1,s=e.length,u=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,u/=2,t/=2}function l(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){let r=-1;for(i=t;i<s;i++)if(l(e,i)===l(n,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(t+u>s&&(t=s-u),i=t;i>=0;i--){let t=!0;for(let r=0;r<u;r++)if(l(e,i+r)!==l(n,r)){t=!1;break}if(t)return i}return-1}function b(e,n,t,r){t=Number(t)||0;const o=e.length-t;r?(r=Number(r))>o&&(r=o):r=o;const i=n.length;let a;for(r>i/2&&(r=i/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(z(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,o;const i=[];for(let a=0;a<e.length&&!((n-=2)<0);++a)t=e.charCodeAt(a),r=t>>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,n,t){t=Math.min(e.length,t);const r=[];let o=n;for(;o<t;){const n=e[o];let i=null,a=n>239?4:n>223?3:n>191?2:1;if(o+a<=t){let t,r,s,u;switch(a){case 1:n<128&&(i=n);break;case 2:t=e[o+1],128==(192&t)&&(u=(31&n)<<6|63&t,u>127&&(i=u));break;case 3:t=e[o+1],r=e[o+2],128==(192&t)&&128==(192&r)&&(u=(15&n)<<12|(63&t)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:t=e[o+1],r=e[o+2],s=e[o+3],128==(192&t)&&128==(192&r)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=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=o,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 u(e),e<=0?i(e):void 0!==n?"string"==typeof t?i(e).fill(n,t):i(e).fill(n):i(e)}(e,n,t)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e.Pe&&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 o=0,i=Math.min(t,r);o<i;++o)if(e[o]!==n[o]){t=e[o],r=n[o];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 o=0;for(t=0;t<e.length;++t){let n=e[t];if(J(n,Uint8Array))o+n.length>r.length?(a.isBuffer(n)||(n=a.from(n)),n.copy(r,o)):Uint8Array.prototype.set.call(r,n,o);else{if(!a.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(r,o)}o+=n.length}return r},a.byteLength=h,a.prototype.Pe=!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?T(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,o){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===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(t>>>=0)-(n>>>=0);const u=Math.min(i,s),l=this.slice(r,o),c=e.slice(n,t);for(let a=0;a<u;++a)if(l[a]!==c[a]){i=l[a],s=c[a];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(e,n,t){return-1!==this.indexOf(e,n,t)},a.prototype.indexOf=function(e,n,t){return y(this,e,n,t,!0)},a.prototype.lastIndexOf=function(e,n,t){return y(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 o=this.length-n;if((void 0===t||t>o)&&(t=o),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(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(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.Le||this,0)}};const S=4096;function x(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(127&e[o]);return r}function C(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(e[o]);return r}function I(e,n,t){const r=e.length;(!n||n<0)&&(n=0),(!t||t<0||t>r)&&(t=r);let o="";for(let i=n;i<t;++i)o+=X[e[i]];return o}function M(e,n,t){const r=e.slice(n,t);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}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,o,i){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)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,o){j(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i;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,o){j(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t+7]=i,i>>=8,e[t+6]=i,i>>=8,e[t+5]=i,i>>=8,e[t+4]=i;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 P(e,n,t,r,o,i){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,o,i){return n=+n,r>>>=0,i||P(e,0,r,4),t.write(e,n,r,o,23,4),r+4}function F(e,n,r,o,i){return n=+n,r>>>=0,i||P(e,0,r,8),t.write(e,n,r,o,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],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;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],o=1;for(;n>0&&(o*=256);)r+=this[e+--n]*o;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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(e,this.length-8);const r=n+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+t*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),a.prototype.readBigUInt64BE=Q(function(e){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(e,this.length-8);const r=n*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+t;return(BigInt(r)<<BigInt(32))+BigInt(o)}),a.prototype.readIntLE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=this[e],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(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,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(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 o=1,i=0;for(this[n]=255&e;++i<t&&(o*=256);)this[n+i]=e/o&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 o=t-1,i=1;for(this[n+o]=255&e;--o>=0&&(i*=256);)this[n+o]=e/i&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 o=0,i=1,a=0;for(this[n]=255&e;++o<t&&(i*=256);)e<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(e/i|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 o=t-1,i=1,a=0;for(this[n+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(e/i|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 F(this,e,n,!0,t)},a.prototype.writeDoubleBE=function(e,n,t){return F(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 o=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),o},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 o;if(n>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=n;o<t;++o)this[o]=e;else{const i=a.isBuffer(e)?e:a.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<t-n;++o)this[o+n]=i[o%s]}return this};const D={};function U(e,n,t){D[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 H(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 j(e,n,t,r,o,i){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*(i+1)}${t}`:`>= -(2${t} ** ${8*(i+1)-1}${t}) and < 2 ** ${8*(i+1)-1}${t}`,new D.ERR_OUT_OF_RANGE("value",r,e)}!function(e,n,t){q(n,"offset"),void 0!==e[n]&&void 0!==e[n+t]||V(n,e.length-(t+1))}(r,o,i)}function q(e,n){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(n,"number",e)}function V(e,n,t){if(Math.floor(e)!==e)throw q(e,t),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(n<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,n,t){let r=`The value of "${e}" is out of range.`,o=t;return Number.isInteger(t)&&Math.abs(t)>2**32?o=H(String(t)):"bigint"==typeof t&&(o=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(o=H(o)),o+="n"),r+=` It must be ${n}. Received ${o}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(e,n){let t;n=n||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.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;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}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 o;for(o=0;o<r&&!(o+t>=n.length||o>=e.length);++o)n[o+t]=e[o];return o}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 o=0;o<16;++o)n[r+o]=e[t]+e[o]}return n}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(pi)),pi}var bi=vi();const wi=BigInt(0),gi=BigInt(1),ki=BigInt(2),Ai=BigInt(8),Ei={zip215:!0};const Ti=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Si=/* @__PURE__ */BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const xi=BigInt(1),Ci=BigInt(2);BigInt(3);const Ii=BigInt(5),Mi=BigInt(8);function Oi(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Ri(e,n){const t=Ti,r=ao(n*n*n,t),o=function(e){const n=BigInt(10),t=BigInt(20),r=BigInt(40),o=BigInt(80),i=Ti,a=e*e%i*e%i,s=so(a,Ci,i)*a%i,u=so(s,xi,i)*e%i,l=so(u,Ii,i)*u%i,c=so(l,n,i)*l%i,f=so(c,t,i)*c%i,d=so(f,r,i)*f%i,h=so(d,o,i)*d%i,p=so(h,o,i)*d%i,m=so(p,n,i)*l%i;return{pow_p_5_8:so(m,Ci,i)*e%i,b2:a}}(e*ao(r*r*n,t)).pow_p_5_8;let i=ao(e*r*o,t);const a=ao(n*i*i,t),s=i,u=ao(i*Si,t),l=a===e,c=a===ao(-e,t),f=a===ao(-e*Si,t);return l&&(i=s),(c||f)&&(i=u),(ao(i,t)&eo)===eo&&(i=ao(-i,t)),{isValid:l||c,value:i}}const Ni=/* @__PURE__ */(()=>yo(Ti,void 0,!0))(),Bi=/* @__PURE__ */(()=>({a:Ni.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ni,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Mi,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ar,randomBytes:mn,adjustScalarBytes:Oi,uvRatio:Ri}))(),Pi=/* @__PURE__ */(()=>function(e){const n=function(e){const n=Oo(e);return Hr(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...n})}(e),{Fp:t,n:r,prehash:o,hash:i,randomBytes:a,nByteLength:s,h:u}=n,l=ki<<BigInt(8*s)-gi,c=t.create,f=yo(n.n,n.nBitLength);if(!function(e,r){const o=t.sqr(e),i=t.sqr(r),a=t.add(t.mul(n.a,o),i),s=t.add(t.ONE,t.mul(n.d,t.mul(o,i)));return t.eql(a,s)}(n.Gx,n.Gy))throw new Error("bad curve params: generator point");const d=n.uvRatio||((e,n)=>{try{return{isValid:!0,value:t.sqrt(e*t.inv(n))}}catch(r){return{isValid:!1,value:wi}}}),h=n.adjustScalarBytes||(e=>e),p=n.domain||((e,n,t)=>{if(br("phflag",t),n.length||t)throw new Error("Contexts/pre-hash are not supported");return e});function m(e,n,t=!1){Pr("coordinate "+e,n,t?gi:wi,l)}function y(e){if(!(e instanceof w))throw new Error("ExtendedPoint expected")}const v=jr((e,n)=>{const{ex:r,ey:o,ez:i}=e,a=e.is0();null==n&&(n=a?Ai:t.inv(i));const s=c(r*n),u=c(o*n),l=c(i*n);if(a)return{x:wi,y:gi};if(l!==gi)throw new Error("invZ was invalid");return{x:s,y:u}}),b=jr(e=>{const{a:t,d:r}=n;if(e.is0())throw new Error("bad point: ZERO");const{ex:o,ey:i,ez:a,et:s}=e,u=c(o*o),l=c(i*i),f=c(a*a),d=c(f*f),h=c(u*t);if(c(f*c(h+l))!==c(d+c(r*c(u*l))))throw new Error("bad point: equation left != right (1)");if(c(o*i)!==c(a*s))throw new Error("bad point: equation left != right (2)");return!0});class w{constructor(e,n,t,r){m("x",e),m("y",n),m("z",t,!0),m("t",r),this.ex=e,this.ey=n,this.ez=t,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof w)throw new Error("extended point not allowed");const{x:n,y:t}=e||{};return m("x",n),m("y",t),new w(n,t,gi,c(n*t))}static normalizeZ(e){const n=ho(t,e.map(e=>e.ez));return e.map((e,t)=>e.toAffine(n[t])).map(w.fromAffine)}static msm(e,n){return Mo(w,f,e,n)}Be(e){A.setWindowSize(this,e)}assertValidity(){b(this)}equals(e){y(e);const{ex:n,ey:t,ez:r}=this,{ex:o,ey:i,ez:a}=e,s=c(n*a),u=c(o*r),l=c(t*a),f=c(i*r);return s===u&&l===f}is0(){return this.equals(w.ZERO)}negate(){return new w(c(-this.ex),this.ey,this.ez,c(-this.et))}double(){const{a:e}=n,{ex:t,ey:r,ez:o}=this,i=c(t*t),a=c(r*r),s=c(ki*c(o*o)),u=c(e*i),l=t+r,f=c(c(l*l)-i-a),d=u+a,h=d-s,p=u-a,m=c(f*h),y=c(d*p),v=c(f*p),b=c(h*d);return new w(m,y,b,v)}add(e){y(e);const{a:t,d:r}=n,{ex:o,ey:i,ez:a,et:s}=this,{ex:u,ey:l,ez:f,et:d}=e,h=c(o*u),p=c(i*l),m=c(s*r*d),v=c(a*f),b=c((o+i)*(u+l)-h-p),g=v-m,k=v+m,A=c(p-t*h),E=c(b*g),T=c(k*A),S=c(b*A),x=c(g*k);return new w(E,T,x,S)}subtract(e){return this.add(e.negate())}wNAF(e){return A.wNAFCached(this,e,w.normalizeZ)}multiply(e){const n=e;Pr("scalar",n,gi,r);const{p:t,f:o}=this.wNAF(n);return w.normalizeZ([t,o])[0]}multiplyUnsafe(e,n=w.ZERO){const t=e;return Pr("scalar",t,wi,r),t===wi?k:this.is0()||t===gi?this:A.wNAFCachedUnsafe(this,t,w.normalizeZ,n)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return A.unsafeLadder(this,r).is0()}toAffine(e){return v(this,e)}clearCofactor(){const{h:e}=n;return e===gi?this:this.multiplyUnsafe(e)}static fromHex(e,r=!1){const{d:o,a:i}=n,a=t.BYTES;e=Or("pointHex",e,a),br("zip215",r);const s=e.slice(),u=e[a-1];s[a-1]=-129&u;const f=Cr(s),h=r?l:t.ORDER;Pr("pointHex.y",f,wi,h);const p=c(f*f),m=c(p-gi),y=c(o*p-i);let{isValid:v,value:b}=d(m,y);if(!v)throw new Error("Point.fromHex: invalid y coordinate");const g=(b&gi)===gi,k=!!(128&u);if(!r&&b===wi&&k)throw new Error("Point.fromHex: x=0 and x_0=1");return k!==g&&(b=c(-b)),w.fromAffine({x:b,y:f})}static fromPrivateKey(e){const{scalar:n}=S(e);return g.multiply(n)}toRawBytes(){const{x:e,y:n}=this.toAffine(),r=Mr(n,t.BYTES);return r[r.length-1]|=e&gi?128:0,r}toHex(){return Er(this.toRawBytes())}}w.BASE=new w(n.Gx,n.Gy,gi,c(n.Gx*n.Gy)),w.ZERO=new w(wi,gi,gi,wi);const{BASE:g,ZERO:k}=w,A=Io(w,8*s);function E(e){return ao(e,r)}function T(e){return E(Cr(e))}function S(e){const n=t.BYTES;e=Or("private key",e,n);const r=Or("hashed private key",i(e),2*n),o=h(r.slice(0,n));return{head:o,prefix:r.slice(n,2*n),scalar:T(o)}}function x(e){const{head:n,prefix:t,scalar:r}=S(e),o=g.multiply(r),i=o.toRawBytes();return{head:n,prefix:t,scalar:r,point:o,pointBytes:i}}function C(e=Uint8Array.of(),...n){const t=Rr(...n);return T(i(p(t,Or("context",e),!!o)))}const I=Ei;return g.Be(8),{CURVE:n,getPublicKey:function(e){return x(e).pointBytes},sign:function(e,n,i={}){e=Or("message",e),o&&(e=o(e));const{prefix:a,scalar:s,pointBytes:u}=x(n),l=C(i.context,a,e),c=g.multiply(l).toRawBytes(),f=E(l+C(i.context,c,u,e)*s);return Pr("signature.s",f,wi,r),Or("result",Rr(c,Mr(f,t.BYTES)),2*t.BYTES)},verify:function(e,n,r,i=I){const{context:a,zip215:s}=i,u=t.BYTES;e=Or("signature",e,2*u),n=Or("message",n),r=Or("publicKey",r,u),void 0!==s&&br("zip215",s),o&&(n=o(n));const l=Cr(e.slice(u,2*u));let c,f,d;try{c=w.fromHex(r,s),f=w.fromHex(e.slice(0,u),s),d=g.multiplyUnsafe(l)}catch(p){return!1}if(!s&&c.isSmallOrder())return!1;const h=C(a,f.toRawBytes(),c.toRawBytes(),n);return f.add(c.multiplyUnsafe(h)).subtract(d).clearCofactor().equals(w.ZERO)},ExtendedPoint:w,utils:{getExtendedPublicKey:x,randomPrivateKey:()=>a(t.BYTES),precompute:(e=8,n=w.BASE)=>(n.Be(e),n.multiply(BigInt(3)),n)}}}(Bi))();var Li={exports:{}};const Fi=/* @__PURE__ */t(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Di,Ui=Li.exports;function Hi(){return Di||(Di=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 o(e,n,t){if(o.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.i(e||0,n||10,t||"be"))}var i;"object"==typeof Li?Li.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Fi.Buffer}catch(x){}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 u(e,n,r,o){for(var i=0,a=0,s=Math.min(e.length,r),u=n;u<s;u++){var l=e.charCodeAt(u)-48;i*=o,a=l>=49?l-49+10:l>=17?l-17+10:l,t(l>=0&&a<o,"Invalid character"),i+=a}return i}function l(e,n){e.words=n.words,e.length=n.length,e.negative=n.negative,e.red=n.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,n){return e.cmp(n)>0?e:n},o.min=function(e,n){return e.cmp(n)<0?e:n},o.prototype.i=function(e,n,r){if("number"==typeof e)return this.Fe(e,n,r);if("object"==typeof e)return this.De(e,n,r);"hex"===n&&(n=16),t(n===(0|n)&&n>=2&&n<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===n?this.Ue(e,o,r):(this.He(e,n,o),"le"===r&&this.De(this.toArray(),n,r)))},o.prototype.Fe=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.De(this.toArray(),n,r)},o.prototype.De=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 o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.je()},o.prototype.Ue=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 o,i=0,a=0;if("be"===t)for(r=e.length-1;r>=n;r-=2)o=s(e,n,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-n)%2==0?n+1:n;r<e.length;r+=2)o=s(e,n,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.je()},o.prototype.He=function(e,n,t){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=n)r++;r--,o=o/n|0;for(var i=e.length-t,a=i%r,s=Math.min(i,i-a)+t,l=0,c=t;c<s;c+=r)l=u(e,c,c+r,n),this.imuln(o),this.words[0]+l<67108864?this.words[0]+=l:this.qe(l);if(0!==a){var f=1;for(l=u(e,c,e.length,n),c=0;c<a;c++)f*=n;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this.qe(l)}this.je()},o.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},o.prototype.Ve=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype.We=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.je=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.ze()},o.prototype.ze=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=c}catch(x){o.prototype.inspect=c}else o.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 o=0|e.words[0],i=0|n.words[0],a=o*i,s=67108863&a,u=a/67108864|0;t.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,n.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(o=0|e.words[p])*(i=0|n.words[h])+f)/67108864|0,f=67108863&a}t.words[l]=0|f,u=0|c}return 0!==u?t.words[l]=0|u:t.length--,t.je()}o.prototype.toString=function(e,n){var r;if(n=0|n||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);i=s>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),r=0!==i||a!==this.length-1?f[6-u.length]+u+r:u+r}for(0!==i&&(r=i.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 l=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[l-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")},o.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},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(e,n){return this.toArrayLike(i,e,n)}),o.prototype.toArray=function(e,n){return this.toArrayLike(Array,e,n)},o.prototype.toArrayLike=function(e,n,r){this.je();var o=this.byteLength(),i=r||Math.max(1,o);t(o<=i,"byte array longer than desired length"),t(i>0,"Requested array length <= 0");var a=function(e,n){return e.allocUnsafe?e.allocUnsafe(n):new e(n)}(e,i);return this["_toArrayLike"+("le"===n?"LE":"BE")](a,o),a},o.prototype.Ge=function(e,n){for(var t=0,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[t++]=255&a,t<e.length&&(e[t++]=a>>8&255),t<e.length&&(e[t++]=a>>16&255),6===i?(t<e.length&&(e[t++]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(t<e.length)for(e[t++]=r;t<e.length;)e[t++]=0},o.prototype.Ye=function(e,n){for(var t=e.length-1,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[t--]=255&a,t>=0&&(e[t--]=a>>8&255),t>=0&&(e[t--]=a>>16&255),6===i?(t>=0&&(e[t--]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(t>=0)for(e[t--]=r;t>=0;)e[t--]=0},Math.clz32?o.prototype.Je=function(e){return 32-Math.clz32(e)}:o.prototype.Je=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},o.prototype.Ke=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},o.prototype.bitLength=function(){var e=this.words[this.length-1],n=this.Je(e);return 26*(this.length-1)+n},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,n=0;n<this.length;n++){var t=this.Ke(this.words[n]);if(e+=t,26!==t)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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.je()},o.prototype.ior=function(e){return t(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.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.je()},o.prototype.iand=function(e){return t(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.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.je()},o.prototype.ixor=function(e){return t(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){t("number"==typeof e&&e>=0);var n=0|Math.ceil(e/26),r=e%26;this.We(n),r>0&&n--;for(var o=0;o<n;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.je()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,n){t("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this.We(r+1),this.words[r]=n?this.words[r]|1<<o:this.words[r]&~(1<<o),this.je()},o.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.ze();if(0===this.negative&&0!==e.negative)return e.negative=0,n=this.isub(e),e.negative=1,n.ze();this.length>e.length?(t=this,r=e):(t=e,r=this);for(var o=0,i=0;i<r.length;i++)n=(0|t.words[i])+(0|r.words[i])+o,this.words[i]=67108863&n,o=n>>>26;for(;0!==o&&i<t.length;i++)n=(0|t.words[i])+o,this.words[i]=67108863&n,o=n>>>26;if(this.length=t.length,0!==o)this.words[this.length]=o,this.length++;else if(t!==this)for(;i<t.length;i++)this.words[i]=t.words[i];return this},o.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)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var n=this.iadd(e);return e.negative=1,n.ze()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.ze();var t,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(t=this,r=e):(t=e,r=this);for(var i=0,a=0;a<r.length;a++)i=(n=(0|t.words[a])-(0|r.words[a])+i)>>26,this.words[a]=67108863&n;for(;0!==i&&a<t.length;a++)i=(n=(0|t.words[a])+i)>>26,this.words[a]=67108863&n;if(0===i&&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.je()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,n,t){var r,o,i,a=e.words,s=n.words,u=t.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],v=8191&y,b=y>>>13,w=0|a[3],g=8191&w,k=w>>>13,A=0|a[4],E=8191&A,T=A>>>13,S=0|a[5],x=8191&S,C=S>>>13,I=0|a[6],M=8191&I,O=I>>>13,R=0|a[7],N=8191&R,B=R>>>13,P=0|a[8],L=8191&P,F=P>>>13,D=0|a[9],U=8191&D,H=D>>>13,j=0|s[0],q=8191&j,V=j>>>13,W=0|s[1],z=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,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],ue=8191&se,le=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 ye=(l+(r=Math.imul(f,q))|0)+((8191&(o=(o=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((i=Math.imul(d,V))+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,q),o=(o=Math.imul(p,V))+Math.imul(m,q)|0,i=Math.imul(m,V);var ve=(l+(r=r+Math.imul(f,z)|0)|0)+((8191&(o=(o=o+Math.imul(f,G)|0)+Math.imul(d,z)|0))<<13)|0;l=((i=i+Math.imul(d,G)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,q),o=(o=Math.imul(v,V))+Math.imul(b,q)|0,i=Math.imul(b,V),r=r+Math.imul(p,z)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,z)|0,i=i+Math.imul(m,G)|0;var be=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(d,J)|0))<<13)|0;l=((i=i+Math.imul(d,K)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(g,q),o=(o=Math.imul(g,V))+Math.imul(k,q)|0,i=Math.imul(k,V),r=r+Math.imul(v,z)|0,o=(o=o+Math.imul(v,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0,r=r+Math.imul(p,J)|0,o=(o=o+Math.imul(p,K)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,K)|0;var we=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;l=((i=i+Math.imul(d,Z)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),o=(o=Math.imul(E,V))+Math.imul(T,q)|0,i=Math.imul(T,V),r=r+Math.imul(g,z)|0,o=(o=o+Math.imul(g,G)|0)+Math.imul(k,z)|0,i=i+Math.imul(k,G)|0,r=r+Math.imul(v,J)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Z)|0;var ge=(l+(r=r+Math.imul(f,$)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((i=i+Math.imul(d,ee)|0)+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(x,q),o=(o=Math.imul(x,V))+Math.imul(C,q)|0,i=Math.imul(C,V),r=r+Math.imul(E,z)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(T,z)|0,i=i+Math.imul(T,G)|0,r=r+Math.imul(g,J)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,$)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0;var ke=(l+(r=r+Math.imul(f,te)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(d,te)|0))<<13)|0;l=((i=i+Math.imul(d,re)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(M,q),o=(o=Math.imul(M,V))+Math.imul(O,q)|0,i=Math.imul(O,V),r=r+Math.imul(x,z)|0,o=(o=o+Math.imul(x,G)|0)+Math.imul(C,z)|0,i=i+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,K)|0,r=r+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(v,$)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,te)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,te)|0,i=i+Math.imul(m,re)|0;var Ae=(l+(r=r+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(d,ie)|0))<<13)|0;l=((i=i+Math.imul(d,ae)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,q),o=(o=Math.imul(N,V))+Math.imul(B,q)|0,i=Math.imul(B,V),r=r+Math.imul(M,z)|0,o=(o=o+Math.imul(M,G)|0)+Math.imul(O,z)|0,i=i+Math.imul(O,G)|0,r=r+Math.imul(x,J)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(g,$)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(v,te)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,te)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(o=(o=o+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((i=i+Math.imul(d,le)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,q),o=(o=Math.imul(L,V))+Math.imul(F,q)|0,i=Math.imul(F,V),r=r+Math.imul(N,z)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(B,z)|0,i=i+Math.imul(B,G)|0,r=r+Math.imul(M,J)|0,o=(o=o+Math.imul(M,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,Z)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(E,$)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(T,$)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(g,te)|0,o=(o=o+Math.imul(g,re)|0)+Math.imul(k,te)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,le)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,le)|0;var Te=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((i=i+Math.imul(d,de)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,q),o=(o=Math.imul(U,V))+Math.imul(H,q)|0,i=Math.imul(H,V),r=r+Math.imul(L,z)|0,o=(o=o+Math.imul(L,G)|0)+Math.imul(F,z)|0,i=i+Math.imul(F,G)|0,r=r+Math.imul(N,J)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,Z)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(x,$)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(E,te)|0,o=(o=o+Math.imul(E,re)|0)+Math.imul(T,te)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(g,ie)|0,o=(o=o+Math.imul(g,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,le)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,le)|0,r=r+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(m,fe)|0,i=i+Math.imul(m,de)|0;var Se=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((i=i+Math.imul(d,me)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,z),o=(o=Math.imul(U,G))+Math.imul(H,z)|0,i=Math.imul(H,G),r=r+Math.imul(L,J)|0,o=(o=o+Math.imul(L,K)|0)+Math.imul(F,J)|0,i=i+Math.imul(F,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Z)|0,r=r+Math.imul(M,$)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(x,te)|0,o=(o=o+Math.imul(x,re)|0)+Math.imul(C,te)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(g,ue)|0,o=(o=o+Math.imul(g,le)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,le)|0,r=r+Math.imul(v,fe)|0,o=(o=o+Math.imul(v,de)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,de)|0;var xe=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,J),o=(o=Math.imul(U,K))+Math.imul(H,J)|0,i=Math.imul(H,K),r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(F,Q)|0,i=i+Math.imul(F,Z)|0,r=r+Math.imul(N,$)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(M,te)|0,o=(o=o+Math.imul(M,re)|0)+Math.imul(O,te)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(x,ie)|0,o=(o=o+Math.imul(x,ae)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,o=(o=o+Math.imul(E,le)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,le)|0,r=r+Math.imul(g,fe)|0,o=(o=o+Math.imul(g,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,Q),o=(o=Math.imul(U,Z))+Math.imul(H,Q)|0,i=Math.imul(H,Z),r=r+Math.imul(L,$)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(F,$)|0,i=i+Math.imul(F,ee)|0,r=r+Math.imul(N,te)|0,o=(o=o+Math.imul(N,re)|0)+Math.imul(B,te)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(M,ie)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,ae)|0,r=r+Math.imul(x,ue)|0,o=(o=o+Math.imul(x,le)|0)+Math.imul(C,ue)|0,i=i+Math.imul(C,le)|0,r=r+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(T,fe)|0,i=i+Math.imul(T,de)|0;var Ie=(l+(r=r+Math.imul(g,pe)|0)|0)+((8191&(o=(o=o+Math.imul(g,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,$),o=(o=Math.imul(U,ee))+Math.imul(H,$)|0,i=Math.imul(H,ee),r=r+Math.imul(L,te)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(F,te)|0,i=i+Math.imul(F,re)|0,r=r+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,ae)|0,r=r+Math.imul(M,ue)|0,o=(o=o+Math.imul(M,le)|0)+Math.imul(O,ue)|0,i=i+Math.imul(O,le)|0,r=r+Math.imul(x,fe)|0,o=(o=o+Math.imul(x,de)|0)+Math.imul(C,fe)|0,i=i+Math.imul(C,de)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;l=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,te),o=(o=Math.imul(U,re))+Math.imul(H,te)|0,i=Math.imul(H,re),r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(F,ie)|0,i=i+Math.imul(F,ae)|0,r=r+Math.imul(N,ue)|0,o=(o=o+Math.imul(N,le)|0)+Math.imul(B,ue)|0,i=i+Math.imul(B,le)|0,r=r+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,de)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,de)|0;var Oe=(l+(r=r+Math.imul(x,pe)|0)|0)+((8191&(o=(o=o+Math.imul(x,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((i=i+Math.imul(C,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),o=(o=Math.imul(U,ae))+Math.imul(H,ie)|0,i=Math.imul(H,ae),r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,le)|0)+Math.imul(F,ue)|0,i=i+Math.imul(F,le)|0,r=r+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Re=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(o=(o=o+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((i=i+Math.imul(O,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,ue),o=(o=Math.imul(U,le))+Math.imul(H,ue)|0,i=Math.imul(H,le),r=r+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(F,fe)|0,i=i+Math.imul(F,de)|0;var Ne=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,me)|0)+Math.imul(B,pe)|0))<<13)|0;l=((i=i+Math.imul(B,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,fe),o=(o=Math.imul(U,de))+Math.imul(H,fe)|0,i=Math.imul(H,de);var Be=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(F,pe)|0))<<13)|0;l=((i=i+Math.imul(F,me)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Pe=(l+(r=Math.imul(U,pe))|0)+((8191&(o=(o=Math.imul(U,me))+Math.imul(H,pe)|0))<<13)|0;return l=((i=Math.imul(H,me))+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=we,u[4]=ge,u[5]=ke,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Se,u[10]=xe,u[11]=Ce,u[12]=Ie,u[13]=Me,u[14]=Oe,u[15]=Re,u[16]=Ne,u[17]=Be,u[18]=Pe,0!==l&&(u[19]=l,t.length++),t};function y(e,n,t){t.negative=n.negative^e.negative,t.length=e.length+n.length;for(var r=0,o=0,i=0;i<t.length-1;i++){var a=o;o=0;for(var s=67108863&r,u=Math.min(i,n.length-1),l=Math.max(0,i-e.length+1);l<=u;l++){var c=i-l,f=(0|e.words[c])*(0|n.words[l]),d=67108863&f;s=67108863&(d=d+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}t.words[i]=s,r=a,a=o}return 0!==r?t.words[i]=r:t.length--,t.je()}function v(e,n,t){return y(e,n,t)}Math.imul||(m=p),o.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?y(this,e,n):v(this,e,n)},o.prototype.mul=function(e){var n=new o(null);return n.words=new Array(this.length+e.length),this.mulTo(e,n)},o.prototype.mulf=function(e){var n=new o(null);return n.words=new Array(this.length+e.length),v(this,e,n)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var n=e<0;n&&(e=-e),t("number"==typeof e),t(e<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[o]=67108863&a}return 0!==r&&(this.words[o]=r,this.length++),this.length=0===e?1:this.length,n?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.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,o=t%26;n[t]=e.words[r]>>>o&1}return n}(e);if(0===n.length)return new o(1);for(var t=this,r=0;r<n.length&&0===n[r];r++,t=t.sqr());if(++r<n.length)for(var i=t.sqr();r<n.length;r++,i=i.sqr())0!==n[r]&&(t=t.mul(i));return t},o.prototype.iushln=function(e){t("number"==typeof e&&e>=0);var n,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(n=0;n<this.length;n++){var s=this.words[n]&i,u=(0|this.words[n])-s<<r;this.words[n]=u|a,a=s>>>26-r}a&&(this.words[n]=a,this.length++)}if(0!==o){for(n=this.length-1;n>=0;n--)this.words[n+o]=this.words[n];for(n=0;n<o;n++)this.words[n]=0;this.length+=o}return this.je()},o.prototype.ishln=function(e){return t(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,n,r){var o;t("number"==typeof e&&e>=0),o=n?(n-n%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=o);l--){var f=0|this.words[l];this.words[l]=c<<26-i|f>>>i,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.je()},o.prototype.ishrn=function(e,n,r){return t(0===this.negative),this.iushrn(e,n,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){t("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26,o=1<<n;return!(this.length<=r||!(this.words[r]&o))},o.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 o=67108863^67108863>>>n<<n;this.words[this.length-1]&=o}return 0===this.length&&(this.words[0]=0,this.length=1),this.je()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.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.qe(e)},o.prototype.qe=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},o.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.je()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype.Xe=function(e,n,r){var o,i,a=e.length+r;this.We(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+s;var u=(0|e.words[o])*n;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.je();for(t(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.je()},o.prototype.Qe=function(e,n){var t=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(t=26-this.Je(a))&&(i=i.ushln(t),r.iushln(t),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==n){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone().Xe(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r.Xe(i,d,f);0!==r.negative;)d--,r.negative=0,r.Xe(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.je(),r.je(),"div"!==n&&0!==t&&r.iushrn(t),{div:s||null,mod:r}},o.prototype.divmod=function(e,n,r){return t(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,n),"mod"!==n&&(i=s.div.neg()),"div"!==n&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),n),"mod"!==n&&(i=s.div.neg()),{div:i,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 o(0),mod:this}:1===e.length?"div"===n?{div:this.divn(e.words[0]),mod:null}:"mod"===n?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this.Qe(e,n);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),o=e.andln(1),i=t.cmp(r);return i<0||1===o&&0===i?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},o.prototype.modrn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%e;return n?-o:o},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/e|0,r=i%e}return this.je(),n?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.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 i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++l;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;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.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()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(s),a.isub(u)):(r.isub(n),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},o.prototype.Ze=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 i,a=new o(1),s=new o(0),u=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(n.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(n.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),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(u),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),a.isub(s)):(r.isub(n),s.isub(a))}return(i=0===n.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.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 o=n.cmp(t);if(o<0){var i=n;n=t,t=i}else if(0===o||0===t.cmpn(1))break;n.isub(t)}return t.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){t("number"==typeof e);var n=e%26,r=(e-n)/26,o=1<<n;if(this.length<=r)return this.We(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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.je(),this.length>1)n=1;else{r&&(e=-e),t(e<=67108863,"Number is too big");var o=0|this.words[0];n=o===e?0:o<e?-1:1}return 0!==this.negative?0|-n:n},o.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},o.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],o=0|e.words[t];if(r!==o){r<o?n=-1:r>o&&(n=1);break}}return n},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.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)},o.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._e=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return t(!this.red,"Already a number in reduction context"),this._e(e)},o.prototype.redAdd=function(e){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.$e(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.$e(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red.nn(this),this.red.sqr(this)},o.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red.nn(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red.nn(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red.nn(this),this.red.invm(this)},o.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red.nn(this),this.red.neg(this)},o.prototype.redPow=function(e){return t(this.red&&!e.red,"redPow(normalNum)"),this.red.nn(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,n){this.name=e,this.p=new o(n,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this.tn()}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 E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var n=o.rn(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){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.Ze(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.tn=function(){var e=new o(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.je(),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),o=0;o<r;o++)n.words[o]=e.words[o];if(n.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(n.words[n.length++]=i&t,o=10;o<e.length;o++){var a=0|e.words[o];e.words[o-10]=(a&t)<<4|i>>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&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(E,w),E.prototype.imulK=function(e){for(var n=0,t=0;t<e.length;t++){var r=19*(0|e.words[t])+n,o=67108863&r;r>>>=26,e.words[t]=o,n=r}return 0!==n&&(e.words[e.length++]=n),e},o.rn=function(e){if(b[e])return b[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 E}return b[e]=n,n},T.prototype.nn=function(e){t(0===e.negative,"red works only with positives"),t(e.red,"red works only with red numbers")},T.prototype.$e=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")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._e(this):(l(e,e.umod(this.m)._e(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._e(this)},T.prototype.add=function(e,n){this.$e(e,n);var t=e.add(n);return t.cmp(this.m)>=0&&t.isub(this.m),t._e(this)},T.prototype.iadd=function(e,n){this.$e(e,n);var t=e.iadd(n);return t.cmp(this.m)>=0&&t.isub(this.m),t},T.prototype.sub=function(e,n){this.$e(e,n);var t=e.sub(n);return t.cmpn(0)<0&&t.iadd(this.m),t._e(this)},T.prototype.isub=function(e,n){this.$e(e,n);var t=e.isub(n);return t.cmpn(0)<0&&t.iadd(this.m),t},T.prototype.shl=function(e,n){return this.nn(e),this.imod(e.ushln(n))},T.prototype.imul=function(e,n){return this.$e(e,n),this.imod(e.imul(n))},T.prototype.mul=function(e,n){return this.$e(e,n),this.imod(e.mul(n))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.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 o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);t(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();t(y<p);var v=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=y}return d},T.prototype.invm=function(e){var n=e.Ze(this.m);return 0!==n.negative?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},T.prototype.pow=function(e,n){if(n.isZero())return new o(1).toRed(this);if(0===n.cmpn(1))return e.clone();var t=new Array(16);t[0]=new o(1).toRed(this),t[1]=e;for(var r=2;r<t.length;r++)t[r]=this.mul(t[r-1],e);var i=t[0],a=0,s=0,u=n.bitLength()%26;for(0===u&&(u=26),r=n.length-1;r>=0;r--){for(var l=n.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==t[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,t[a]),s=0,a=0)):s=0}u=26}return i},T.prototype.convertTo=function(e){var n=e.umod(this.m);return n===e?n.clone():n},T.prototype.convertFrom=function(e){var n=e.clone();return n.red=null,n},o.mont=function(e){return new S(e)},r(S,T),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),o=t.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._e(this)},S.prototype.mul=function(e,n){if(e.isZero()||n.isZero())return new o(0)._e(this);var t=e.mul(n),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=t.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._e(this)},S.prototype.invm=function(e){return this.imod(e.Ze(this.m).mul(this.r2))._e(this)}}(0,Ui)),Li.exports}const ji=/* @__PURE__ */n(Hi());var qi,Vi,Wi,zi,Gi,Yi={exports:{}};function Ji(){if(Gi)return zi;Gi=1;var e=function(){if(Wi)return Vi;Wi=1;var e=(qi||(qi=1,function(e,n){var t=vi(),r=t.Buffer;function o(e,n){for(var t in e)n[t]=e[t]}function i(e,n,t){return r(e,n,t)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(o(t,n),n.Buffer=i),i.prototype=Object.create(r.prototype),o(r,i),i.from=function(e,n,t){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,n,t)},i.alloc=function(e,n,t){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==n?"string"==typeof t?o.fill(n,t):o.fill(n):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return t.SlowBuffer(e)}}(Yi,Yi.exports)),Yi.exports).Buffer;return Vi=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 o=0;o<n.length;o++){var i=n.charAt(o),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=o}var s=n.length,u=n.charAt(0),l=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,o=0,i=0;n[r]===u;)o++,r++;for(var a=(n.length-r)*l+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<i)&&-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");i=h,r++}for(var m=a-i;m!==a&&0===c[m];)m++;var y=e.allocUnsafe(o+(a-m));y.fill(0,0,o);for(var v=o;m!==a;)y[v++]=c[m++];return y}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,o=0,i=0,a=t.length;i!==a&&0===t[i];)i++,r++;for(var l=(a-i)*c+1>>>0,f=new Uint8Array(l);i!==a;){for(var d=t[i],h=0,p=l-1;(0!==d||h<o)&&-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");o=h,i++}for(var m=l-o;m!==l&&0===f[m];)m++;for(var y=u.repeat(r);m<l;++m)y+=n.charAt(f[m]);return y},decodeUnsafe:f,decode:function(e){var n=f(e);if(n)return n;throw new Error("Non-base"+s+" character")}}},Vi}();return zi=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const Ki=/* @__PURE__ */n(Ji());var Xi={};function Qi(e,n,t){return n<=e&&e<=t}function Zi(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function _i(e){this.tokens=[].slice.call(e)}_i.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 $i=-1;function ea(e,n){if(e)throw TypeError("Decoder error");return n||65533}var na="utf-8";function ta(e,n){if(!(this instanceof ta))return new ta(e,n);if((e=void 0!==e?String(e).toLowerCase():na)!==na)throw new Error("Encoding not supported. Only utf-8 is supported");n=Zi(n),this.an=!1,this.sn=!1,this.un=null,this.ln=Boolean(n.fatal),this.dn=Boolean(n.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.ln}),Object.defineProperty(this,"ignoreBOM",{value:this.dn})}function ra(e,n){if(!(this instanceof ra))return new ra(e,n);if((e=void 0!==e?String(e).toLowerCase():na)!==na)throw new Error("Encoding not supported. Only utf-8 is supported");n=Zi(n),this.an=!1,this.hn=null,this.pn={fatal:Boolean(n.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function oa(e){var n=e.fatal,t=0,r=0,o=0,i=128,a=191;this.handler=function(e,s){if(-1===s&&0!==o)return o=0,ea(n);if(-1===s)return $i;if(0===o){if(Qi(s,0,127))return s;if(Qi(s,194,223))o=1,t=s-192;else if(Qi(s,224,239))224===s&&(i=160),237===s&&(a=159),o=2,t=s-224;else{if(!Qi(s,240,244))return ea(n);240===s&&(i=144),244===s&&(a=143),o=3,t=s-240}return t<<=6*o,null}if(!Qi(s,i,a))return t=o=r=0,i=128,a=191,e.prepend(s),ea(n);if(i=128,a=191,t+=s-128<<6*(o-(r+=1)),r!==o)return null;var u=t;return t=o=r=0,u}}function ia(e){e.fatal,this.handler=function(e,n){if(-1===n)return $i;if(Qi(n,0,127))return n;var t,r;Qi(n,128,2047)?(t=1,r=192):Qi(n,2048,65535)?(t=2,r=224):Qi(n,65536,1114111)&&(t=3,r=240);for(var o=[(n>>6*t)+r];t>0;){var i=n>>6*(t-1);o.push(128|63&i),t-=1}return o}}ta.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=Zi(n),this.an||(this.un=new oa({fatal:this.ln}),this.sn=!1),this.an=Boolean(n.stream);for(var r,o=new _i(t),i=[];!o.endOfStream()&&(r=this.un.handler(o,o.read()))!==$i;)null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));if(!this.an){do{if((r=this.un.handler(o,o.read()))===$i)break;null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r))}while(!o.endOfStream());this.un=null}return i.length&&(-1===["utf-8"].indexOf(this.encoding)||this.dn||this.sn||(65279===i[0]?(this.sn=!0,i.shift()):this.sn=!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}(i)}},ra.prototype={encode:function(e,n){e=e?String(e):"",n=Zi(n),this.an||(this.hn=new ia(this.pn)),this.an=Boolean(n.stream);for(var t,r=[],o=new _i(function(e){for(var n=String(e),t=n.length,r=0,o=[];r<t;){var i=n.charCodeAt(r);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(r===t-1)o.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&i,u=1023&a;o.push(65536+(s<<10)+u),r+=1}else o.push(65533)}r+=1}return o}(e));!o.endOfStream()&&(t=this.hn.handler(o,o.read()))!==$i;)Array.isArray(t)?r.push.apply(r,t):r.push(t);if(!this.an){for(;(t=this.hn.handler(o,o.read()))!==$i;)Array.isArray(t)?r.push.apply(r,t):r.push(t);this.hn=null}return new Uint8Array(r)}};const aa=/* @__PURE__ */t(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,TextDecoder:ta,TextEncoder:ra},Symbol.toStringTag,{value:"Module"})));var sa,ua,la=function(){if(sa)return Xi;sa=1;var e=Xi&&Xi.mn||(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=Xi&&Xi.yn||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),t=Xi&&Xi.vn||function(e,n,t,r){var o,i=arguments.length,a=i<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--)(o=e[s])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a},r=Xi&&Xi.bn||function(t){if(t&&t.o)return t;var r={};if(null!=t)for(var o in t)"default"!==o&&Object.hasOwnProperty.call(t,o)&&e(r,t,o);return n(r,t),r},o=Xi&&Xi.wn||function(e){return e&&e.o?e:{default:e}};Object.defineProperty(Xi,"o",{value:!0}),Xi.deserializeUnchecked=Xi.deserialize=Xi.serialize=Xi.BinaryReader=Xi.BinaryWriter=Xi.BorshError=Xi.baseDecode=Xi.baseEncode=void 0;const i=o(Hi()),a=o(Ji()),s=r(aa),u=new("function"!=typeof TextDecoder?s.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Xi.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),a.default.encode(Buffer.from(e))},Xi.baseDecode=function(e){return Buffer.from(a.default.decode(e))};const l=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(".")}}Xi.BorshError=c;class f{constructor(){this.buf=Buffer.alloc(l),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(l)]))}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 i.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(l)]),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}}}Xi.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 i.default(e,"le")}readU128(){const e=this.readBuffer(16);return new i.default(e,"le")}readU256(){const e=this.readBuffer(32);return new i.default(e,"le")}readU512(){const e=this.readBuffer(64);return new i.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 u.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,o){try{if("string"==typeof r)o[`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`);o.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],o)}else o.writeArray(t,t=>{m(e,n,t,r[0],o)});else if(void 0!==r.kind)switch(r.kind){case"option":null==t?o.writeU8(0):(o.writeU8(1),m(e,n,t,r.type,o));break;case"map":o.writeU32(t.size),t.forEach((t,i)=>{m(e,n,i,r.key,o),m(e,n,t,r.value,o)});break;default:throw new c(`FieldType ${r} unrecognized`)}else y(e,t,o)}catch(i){throw i instanceof c&&i.addToFieldPath(n),i}}function y(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,o])=>{m(e,r,n[r],o,t)});else{if("enum"!==r.kind)throw new c(`Unexpected schema kind: ${r.kind} for ${n.constructor.name}`);{const o=n[r.field];for(let i=0;i<r.values.length;++i){const[a,s]=r.values[i];if(a===o){t.writeU8(i),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 o=0;o<t[1];o++)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 o=/* @__PURE__ */new Map;const i=r.readU32();for(let a=0;a<i;a++){const i=v(e,n,t.key,r),a=v(e,n,t.value,r);o.set(i,a)}return o}return b(e,t,r)}catch(o){throw o instanceof c&&o.addToFieldPath(n),o}}function b(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[o,i]of e.get(n).fields)r[o]=v(e,o,i,t);return new n(r)}if("enum"===r.kind){const o=t.readU8();if(o>=r.values.length)throw new c(`Enum index: ${o} is out of range`);const[i,a]=r.values[o],s=v(e,i,a,t);return new n({[i]: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),Xi.BinaryReader=h,Xi.serialize=function(e,n,t=f){const r=new t;return y(e,n,r),r.toArray()},Xi.deserialize=function(e,n,t,r=h){const o=new r(t),i=b(e,n,o);if(o.offset<t.length)throw new c(`Unexpected ${t.length-o.offset} bytes after deserialized data`);return i},Xi.deserializeUnchecked=function(e,n,t,r=h){return b(e,n,new r(t))},Xi}(),ca={},fa=function(){if(ua)return ca;ua=1,Object.defineProperty(ca,"o",{value:!0}),ca.s16=ca.s8=ca.nu64be=ca.u48be=ca.u40be=ca.u32be=ca.u24be=ca.u16be=ca.nu64=ca.u48=ca.u40=ca.u32=ca.u24=ca.u16=ca.u8=ca.offset=ca.greedy=ca.Constant=ca.UTF8=ca.CString=ca.Blob=ca.Boolean=ca.BitField=ca.BitStructure=ca.VariantLayout=ca.Union=ca.UnionLayoutDiscriminator=ca.UnionDiscriminator=ca.Structure=ca.Sequence=ca.DoubleBE=ca.Double=ca.FloatBE=ca.Float=ca.NearInt64BE=ca.NearInt64=ca.NearUInt64BE=ca.NearUInt64=ca.IntBE=ca.Int=ca.UIntBE=ca.UInt=ca.OffsetLayout=ca.GreedyCount=ca.ExternalLayout=ca.bindConstructorLayout=ca.nameWithProperty=ca.Layout=ca.uint8ArrayToBuffer=ca.checkUint8Array=void 0,ca.constant=ca.utf8=ca.cstr=ca.blob=ca.unionLayoutDiscriminator=ca.union=ca.seq=ca.bits=ca.struct=ca.f64be=ca.f64=ca.f32be=ca.f32=ca.ns64be=ca.s48be=ca.s40be=ca.s32be=ca.s24be=ca.s16be=ca.ns64=ca.s48=ca.s40=ca.s32=ca.s24=void 0;const e=vi();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)}ca.checkUint8Array=n,ca.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 o(e,n){return n.property?e+"["+n.property+"]":e}ca.Layout=r,ca.nameWithProperty=o,ca.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 i extends r{isCount(){throw new Error("ExternalLayout is abstract")}}ca.ExternalLayout=i;class a extends i{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}}ca.GreedyCount=a;class s extends i{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 u||this.layout instanceof l}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)}}ca.OffsetLayout=s;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).readUIntLE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntLE(e,r,this.span),this.span}}ca.UInt=u;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).readUIntBE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntBE(e,r,this.span),this.span}}ca.UIntBE=l;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}}ca.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}}ca.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),o=r.readUInt32LE(n);return p(r.readUInt32LE(n+4),o)}encode(e,n,r=0){const o=h(e),i=t(n);return i.writeUInt32LE(o.lo32,r),i.writeUInt32LE(o.hi32,r+4),8}}ca.NearUInt64=m;class y 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 o=h(e),i=t(n);return i.writeUInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}}ca.NearUInt64BE=y;class v extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e),o=r.readUInt32LE(n);return p(r.readInt32LE(n+4),o)}encode(e,n,r=0){const o=h(e),i=t(n);return i.writeUInt32LE(o.lo32,r),i.writeInt32LE(o.hi32,r+4),8}}ca.NearInt64=v;class b 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 o=h(e),i=t(n);return i.writeInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}}ca.NearInt64BE=b;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}}ca.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}}ca.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}}ca.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}}ca.DoubleBE=A;class E extends r{constructor(e,n,t){if(!(e instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof i&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let o=-1;!(n instanceof i)&&0<e.span&&(o=n*e.span),super(o,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 i&&(r=r.decode(e,n)),0<this.elementLayout.span)t=r*this.elementLayout.span;else{let o=0;for(;o<r;)t+=this.elementLayout.getSpan(e,n+t),++o}return t}decode(e,n=0){const t=[];let r=0,o=this.count;for(o instanceof i&&(o=o.decode(e,n));r<o;)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,o=e.reduce((e,o)=>e+r.encode(o,n,t+e),0);return this.count instanceof i&&this.count.encode(e.length,n,t),o}}ca.Sequence=E;class T 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 o=-1;try{o=e.reduce((e,n)=>e+n.getSpan(),0)}catch(i){}super(o,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 o=r.getSpan(e,n);return n+=o,t+o},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 o=0,i=0;for(const a of this.fields){let r=a.span;if(i=0<r?r:0,void 0!==a.property){const o=e[a.property];void 0!==o&&(i=a.encode(o,n,t),0>r&&(r=a.getSpan(n,t)))}o=t,t+=r}return o+i-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)}}}ca.Structure=T;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")}}ca.UnionDiscriminator=S;class x extends S{constructor(e,n){if(!(e instanceof i&&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)}}ca.UnionLayoutDiscriminator=x;class C extends r{constructor(e,n,t){let o;if(e instanceof u||e instanceof l)o=new x(new s(e));else if(e instanceof i&&e.isCount())o=new x(e);else{if(!(e instanceof S))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");o=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 u||e instanceof l)&&(a+=o.layout.span)),super(a,t),this.discriminator=o,this.usesPrefixDiscriminator=e instanceof u||e instanceof l,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,o=r.decode(e,n),i=this.registry[o];if(void 0===i){const i=this.defaultLayout;let a=0;this.usesPrefixDiscriminator&&(a=r.layout.span),t=this.makeDestinationObject(),t[r.property]=o,t[i.property]=i.decode(e,n+a)}else t=i.decode(e,n);return t}encode(e,n,t=0){const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,o=this.defaultLayout;let i=0;return this.usesPrefixDiscriminator&&(i=r.layout.span),r.encode(e[r.property],n,t),i+o.encode(e[o.property],n,t+i)}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]}}ca.Union=C;class I extends r{constructor(e,n,t,o){if(!(e instanceof C))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===o&&(o=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 o)throw new TypeError("variant must have a String property")}let i=e.span;0>e.span&&(i=t?t.span:0,0<=i&&e.usesPrefixDiscriminator&&(i+=e.discriminator.layout.span)),super(i,o),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 o=r;if(this.layout&&(this.layout.encode(e[this.property],n,t+r),o+=this.layout.getSpan(n,t+r),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function M(e){return 0>e&&(e+=4294967296),e}ca.VariantLayout=I;class O extends r{constructor(e,n,t){if(!(e instanceof u||e instanceof l))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.gn=function(e){return r=M(e),this},this.kn=function(){return r}}decode(e,n=0){const t=this.makeDestinationObject(),r=this.word.decode(e,n);this.gn(r);for(const o of this.fields)void 0!==o.property&&(t[o.property]=o.decode(e));return t}encode(e,n,t=0){const r=this.word.decode(n,t);this.gn(r);for(const o of this.fields)if(void 0!==o.property){const n=e[o.property];void 0!==n&&o.encode(n)}return this.word.encode(this.kn(),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}}ca.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,o=e.fields.reduce((e,n)=>e+n.bits,0);if(n+o>r)throw new Error("bits too long for span remainder ("+(r-o)+" of "+r+" remain)");this.container=e,this.bits=n,this.valueMask=(1<<n)-1,32===n&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=r-o-n),this.wordMask=M(this.valueMask<<this.start),this.property=t}decode(e,n){return M(this.container.kn()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==M(e&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const n=this.container.kn(),t=M(e<<this.start);this.container.gn(M(n&~this.wordMask)|t)}}ca.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)}}ca.Boolean=N;class B extends r{constructor(e,n){if(!(e instanceof i&&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 i||(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 i&&(a=e.length),!(e instanceof Uint8Array&&a===e.length))throw new TypeError(o("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 i&&this.length.encode(a,n,r),a}}ca.Blob=B;class P 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,o=0){"string"!=typeof n&&(n=String(n));const i=e.Buffer.from(n,"utf8"),a=i.length;if(o+a>r.length)throw new RangeError("encoding overruns Buffer");const s=t(r);return i.copy(s,o),s[o+a]=0,a+1}}ca.CString=P;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,o=0){"string"!=typeof n&&(n=String(n));const i=e.Buffer.from(n,"utf8"),a=i.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(o+a>r.length)throw new RangeError("encoding overruns Buffer");return i.copy(t(r),o),a}}ca.UTF8=L;class F extends r{constructor(e,n){super(0,n),this.value=e}decode(e,n){return this.value}encode(e,n,t){return 0}}return ca.Constant=F,ca.greedy=(e,n)=>new a(e,n),ca.offset=(e,n,t)=>new s(e,n,t),ca.u8=e=>new u(1,e),ca.u16=e=>new u(2,e),ca.u24=e=>new u(3,e),ca.u32=e=>new u(4,e),ca.u40=e=>new u(5,e),ca.u48=e=>new u(6,e),ca.nu64=e=>new m(e),ca.u16be=e=>new l(2,e),ca.u24be=e=>new l(3,e),ca.u32be=e=>new l(4,e),ca.u40be=e=>new l(5,e),ca.u48be=e=>new l(6,e),ca.nu64be=e=>new y(e),ca.s8=e=>new c(1,e),ca.s16=e=>new c(2,e),ca.s24=e=>new c(3,e),ca.s32=e=>new c(4,e),ca.s40=e=>new c(5,e),ca.s48=e=>new c(6,e),ca.ns64=e=>new v(e),ca.s16be=e=>new f(2,e),ca.s24be=e=>new f(3,e),ca.s32be=e=>new f(4,e),ca.s40be=e=>new f(5,e),ca.s48be=e=>new f(6,e),ca.ns64be=e=>new b(e),ca.f32=e=>new w(e),ca.f32be=e=>new g(e),ca.f64=e=>new k(e),ca.f64be=e=>new A(e),ca.struct=(e,n,t)=>new T(e,n,t),ca.bits=(e,n,t)=>new O(e,n,t),ca.seq=(e,n,t)=>new E(e,n,t),ca.union=(e,n,t)=>new C(e,n,t),ca.unionLayoutDiscriminator=(e,n)=>new x(e,n),ca.blob=(e,n)=>new B(e,n),ca.cstr=e=>new P(e),ca.utf8=(e,n)=>new L(e,n),ca.constant=(e,n)=>new F(e,n),ca}(),da=1,ha=2,pa=3,ma=4,ya=5,va=6,ba=7,wa=8,ga=9,ka=10,Aa=-32700,Ea=-32603,Ta=-32602,Sa=-32601,xa=-32600,Ca=-32016,Ia=-32015,Ma=-32014,Oa=-32013,Ra=-32012,Na=-32011,Ba=-32010,Pa=-32009,La=-32008,Fa=-32007,Da=-32006,Ua=-32005,Ha=-32004,ja=-32003,qa=-32002,Va=-32001,Wa=28e5,za=2800001,Ga=2800002,Ya=2800003,Ja=2800004,Ka=2800005,Xa=2800006,Qa=2800007,Za=2800008,_a=2800009,$a=2800010,es=2800011,ns=323e4,ts=32300001,rs=3230002,os=3230003,is=3230004,as=361e4,ss=3610001,us=3610002,ls=3610003,cs=3610004,fs=3610005,ds=3610006,hs=3610007,ps=3611e3,ms=3704e3,ys=3704001,vs=3704002,bs=3704003,ws=3704004,gs=4128e3,ks=4128001,As=4128002,Es=4615e3,Ts=4615001,Ss=4615002,xs=4615003,Cs=4615004,Is=4615005,Ms=4615006,Os=4615007,Rs=4615008,Ns=4615009,Bs=4615010,Ps=4615011,Ls=4615012,Fs=4615013,Ds=4615014,Us=4615015,Hs=4615016,js=4615017,qs=4615018,Vs=4615019,Ws=4615020,zs=4615021,Gs=4615022,Ys=4615023,Js=4615024,Ks=4615025,Xs=4615026,Qs=4615027,Zs=4615028,_s=4615029,$s=4615030,eu=4615031,nu=4615032,tu=4615033,ru=4615034,ou=4615035,iu=4615036,au=4615037,su=4615038,uu=4615039,lu=4615040,cu=4615041,fu=4615042,du=4615043,hu=4615044,pu=4615045,mu=4615046,yu=4615047,vu=4615048,bu=4615049,wu=4615050,gu=4615051,ku=4615052,Au=4615053,Eu=4615054,Tu=5508e3,Su=5508001,xu=5508002,Cu=5508003,Iu=5508004,Mu=5508005,Ou=5508006,Ru=5508007,Nu=5508008,Bu=5508009,Pu=5508010,Lu=5508011,Fu=5663e3,Du=5663001,Uu=5663002,Hu=5663003,ju=5663004,qu=5663005,Vu=5663006,Wu=5663007,zu=5663008,Gu=5663009,Yu=5663010,Ju=5663011,Ku=5663012,Xu=5663013,Qu=5663014,Zu=5663015,_u=5663016,$u=5663017,el=5663018,nl=5663019,tl=5663020,rl=705e4,ol=7050001,il=7050002,al=7050003,sl=7050004,ul=7050005,ll=7050006,cl=7050007,fl=7050008,dl=7050009,hl=7050010,pl=7050011,ml=7050012,yl=7050013,vl=7050014,bl=7050015,wl=7050016,gl=7050017,kl=7050018,Al=7050019,El=7050020,Tl=7050021,Sl=7050022,xl=7050023,Cl=7050024,Il=7050025,Ml=7050026,Ol=7050027,Rl=7050028,Nl=7050029,Bl=7050030,Pl=7050031,Ll=7050032,Fl=7050033,Dl=7050034,Ul=7050035,Hl=7050036,jl=8078e3,ql=8078001,Vl=8078002,Wl=8078003,zl=8078004,Gl=8078005,Yl=8078006,Jl=8078007,Kl=8078008,Xl=8078009,Ql=8078010,Zl=8078011,_l=8078012,$l=8078013,ec=8078014,nc=8078015,tc=8078016,rc=8078017,oc=8078018,ic=8078019,ac=8078020,sc=8078021,uc=8078022,lc=81e5,cc=8100001,fc=8100002,dc=8100003,hc=819e4,pc=8190001,mc=8190002,yc=8190003,vc=8190004,bc=99e5,wc=9900001,gc=9900002,kc=9900003,Ac=9900004;function Ec(e){return Array.isArray(e)?"%5B"+e.map(Ec).join("%2C%20")+"%5D":"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function Tc([e,n]){return`${e}=${Ec(n)}`}var Sc={[ns]:"Account not found at address: $address",[is]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[os]:"Expected decoded account at address: $address",[rs]:"Failed to decode account data at address: $address",[ts]:"Accounts not found at addresses: $addresses",[_a]:"Unable to find a viable program address bump seed.",[Ga]:"$putativeAddress is not a base58-encoded address.",[Wa]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Ya]:"The `CryptoKey` must be an `Ed25519` public key.",[es]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Za]:"Invalid seeds; point must fall off the Ed25519 curve.",[Ja]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Xa]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Qa]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Ka]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[$a]:"Program address cannot end with PDA marker.",[za]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[ma]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[da]:"The network has progressed past the last block for which this transaction could have been committed.",[jl]:"Codec [$codecDescription] cannot decode empty byte arrays.",[uc]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[ac]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Gl]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Yl]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[zl]:"Encoder and decoder must either both be fixed-size or variable-size.",[Kl]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Vl]:"Expected a fixed-size codec, got a variable-size one.",[$l]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Wl]:"Expected a variable-size codec, got a fixed-size one.",[ic]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ql]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[oc]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Xl]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ql]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[nc]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Jl]:"Expected [$codecDescription] to have $expected items, got $actual.",[_l]:"Invalid value $value for base $base with alphabet $alphabet.",[tc]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Zl]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[ec]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[sc]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[rc]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ps]:"No random values implementation could be found.",[Ns]:"instruction requires an uninitialized account",[Ys]:"instruction tries to borrow reference for an account which is already borrowed",[Js]:"instruction left account with an outstanding borrowed reference",[zs]:"program other than the account's owner changed the size of the account data",[Is]:"account data too small for instruction",[Gs]:"instruction expected an executable account",[mu]:"An account does not have enough lamports to be rent-exempt",[vu]:"Program arithmetic overflowed",[pu]:"Failed to serialize or deserialize account data: $encodedData",[Eu]:"Builtin programs must consume compute units",[nu]:"Cross-program invocation call depth too deep",[su]:"Computational budget exceeded",[Xs]:"custom program error: #$code",[js]:"instruction contains duplicate accounts",[Ks]:"instruction modifications of multiply-passed account differ",[$s]:"executable accounts must be rent exempt",[Zs]:"instruction changed executable accounts data",[_s]:"instruction changed the balance of an executable account",[qs]:"instruction changed executable bit of an account",[Ds]:"instruction modified data of an account it does not own",[Fs]:"instruction spent from the balance of an account it does not own",[Ts]:"generic instruction error",[wu]:"Provided owner is not allowed",[du]:"Account is immutable",[hu]:"Incorrect authority provided",[Os]:"incorrect program id for instruction",[Ms]:"insufficient funds for instruction",[Cs]:"invalid account data for instruction",[yu]:"Invalid account owner",[Ss]:"invalid program argument",[Qs]:"program returned invalid error code",[xs]:"invalid instruction data",[au]:"Failed to reallocate account data",[iu]:"Provided seeds do not result in a valid address",[gu]:"Accounts data allocations exceeded the maximum allowed per transaction",[ku]:"Max accounts exceeded",[Au]:"Max instruction trace length exceeded",[ou]:"Length of the seed is too long for address generation",[tu]:"An account required by the instruction is missing",[Rs]:"missing required signature for instruction",[Ls]:"instruction illegally modified the program id of an account",[Ws]:"insufficient account keys for instruction",[uu]:"Cross-program invocation with unauthorized signer or writable account",[lu]:"Failed to create program execution environment",[fu]:"Program failed to compile",[cu]:"Program failed to complete",[Hs]:"instruction modified data of a read-only account",[Us]:"instruction changed the balance of a read-only account",[ru]:"Cross-program invocation reentrancy not allowed for this instruction",[Vs]:"instruction modified rent epoch of an account",[Ps]:"sum of account balances before and after instruction do not match",[Bs]:"instruction requires an initialized account",[Es]:"",[eu]:"Unsupported program id",[bu]:"Unsupported sysvar",[gs]:"The instruction does not have any accounts.",[ks]:"The instruction does not have any data.",[As]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[ya]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[ha]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[gc]:"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",[Ac]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[wc]:"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",[bc]:"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",[kc]:"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",[Ea]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Ta]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[xa]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Sa]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Aa]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Ra]:"$__serverMessage",[Va]:"$__serverMessage",[Ha]:"$__serverMessage",[Ma]:"$__serverMessage",[Ba]:"$__serverMessage",[Pa]:"$__serverMessage",[Ca]:"Minimum context slot has not been reached",[Ua]:"Node is unhealthy; behind by $numSlotsBehind slots",[La]:"No snapshot",[qa]:"Transaction simulation failed",[Fa]:"$__serverMessage",[Na]:"Transaction history is not available from this node",[Da]:"$__serverMessage",[Oa]:"Transaction signature length mismatch",[ja]:"Transaction signature verification failure",[Ia]:"$__serverMessage",[ms]:"Key pair bytes must be of length 64, got $byteLength.",[ys]:"Expected private key bytes with length 32. Actual length: $actualLength.",[vs]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[ws]:"The provided private key does not match the provided public key.",[bs]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[va]:"Lamports value must be in the range [0, 2e64-1]",[ba]:"`$value` cannot be parsed as a `BigInt`",[ka]:"$message",[wa]:"`$value` cannot be parsed as a `Number`",[pa]:"No nonce account could be found at address `$nonceAccountAddress`",[hc]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[mc]:"WebSocket was closed before payload could be added to the send buffer",[yc]:"WebSocket connection closed",[vc]:"WebSocket failed to connect",[pc]:"Failed to obtain a subscription id from the server",[dc]:"Could not find an API plan for RPC method: `$method`",[lc]:"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`.",[fc]:"HTTP error ($statusCode): $message",[cc]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Tu]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Su]:"The provided value does not implement the `KeyPairSigner` interface",[Cu]:"The provided value does not implement the `MessageModifyingSigner` interface",[Iu]:"The provided value does not implement the `MessagePartialSigner` interface",[xu]:"The provided value does not implement any of the `MessageSigner` interfaces",[Ou]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Ru]:"The provided value does not implement the `TransactionPartialSigner` interface",[Nu]:"The provided value does not implement the `TransactionSendingSigner` interface",[Mu]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Bu]:"More than one `TransactionSendingSigner` was identified.",[Pu]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Lu]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[hs]:"Cannot export a non-extractable key.",[ss]:"No digest implementation could be found.",[as]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[us]:"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.",[ls]:"No signature verification implementation could be found.",[cs]:"No key generation implementation could be found.",[fs]:"No signing implementation could be found.",[ds]:"No key export implementation could be found.",[ga]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[wl]:"Transaction processing left an account with an outstanding borrowed reference",[ol]:"Account in use",[il]:"Account loaded twice",[al]:"Attempt to debit an account but found no record of a prior credit.",[xl]:"Transaction loads an address table account that doesn't exist",[cl]:"This transaction has already been processed",[fl]:"Blockhash not found",[dl]:"Loader call chain is too deep",[bl]:"Transactions are currently disabled due to cluster maintenance",[Bl]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ul]:"Insufficient funds for fee",[Pl]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[ll]:"This account may not be used to pay transaction fees",[pl]:"Transaction contains an invalid account reference",[Il]:"Transaction loads an address table account with invalid data",[Ml]:"Transaction address table lookup uses an invalid index",[Cl]:"Transaction loads an address table account with an invalid owner",[Fl]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[yl]:"This program may not be used for executing instructions",[Ol]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Al]:"Transaction loads a writable account that cannot be written",[Ll]:"Transaction exceeded max loaded accounts data size cap",[hl]:"Transaction requires a fee but has no signature present",[sl]:"Attempt to load a program that does not exist",[Ul]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Dl]:"ResanitizationNeeded",[vl]:"Transaction failed to sanitize accounts offsets correctly",[ml]:"Transaction did not pass signature verification",[Sl]:"Transaction locked too many accounts",[Hl]:"Sum of account balances before and after transaction do not match",[rl]:"The transaction failed with the error `$errorName`",[kl]:"Transaction version is unsupported",[Tl]:"Transaction would exceed account data limit within the block",[Nl]:"Transaction would exceed total account data limit",[El]:"Transaction would exceed max account limit within the block",[gl]:"Transaction would exceed max Block Cost Limit",[Rl]:"Transaction would exceed max Vote Cost Limit",[Zu]:"Attempted to sign a transaction with an address that is not a signer for it",[Yu]:"Transaction is missing an address at index: $index.",[_u]:"Transaction has no expected signers therefore it cannot be encoded",[tl]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Uu]:"Transaction does not have a blockhash lifetime",[Hu]:"Transaction is not a durable nonce transaction",[qu]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Vu]:"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",[zu]:"No fee payer set in CompiledTransaction",[Wu]:"Could not find program address at index $index",[el]:"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",[nl]:"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",[Ju]:"Transaction is missing a fee payer.",[Ku]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Qu]:"Transaction first instruction is not advance nonce account instruction.",[Xu]:"Transaction with no instructions cannot be durable nonce transaction.",[Fu]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Du]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[$u]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[Gu]:"Transaction is missing signatures for addresses: $addresses.",[ju]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},xc="i",Cc="t";var Ic=class extends Error{cause=this.cause;context;constructor(...[e,n]){let t,r;if(n){const{cause:e,...o}=n;e&&(r={cause:e}),Object.keys(o).length>0&&(t=o)}super(function(e,n={}){if("production"!==process.env.NODE_ENV)return function(e,n={}){const t=Sc[e];if(0===t.length)return"";let r;function o(e){if(2===r[Cc]){const o=t.slice(r[xc]+1,e);i.push(o in n?`${n[o]}`:`$${o}`)}else 1===r[Cc]&&i.push(t.slice(r[xc],e))}const i=[];return t.split("").forEach((e,n)=>{if(0===n)return void(r={[xc]:0,[Cc]:"\\"===t[0]?0:"$"===t[0]?2:1});let i;switch(r[Cc]){case 0:i={[xc]:n,[Cc]:1};break;case 1:"\\"===e?i={[xc]:n,[Cc]:0}:"$"===e&&(i={[xc]:n,[Cc]:2});break;case 2:"\\"===e?i={[xc]:n,[Cc]:0}:"$"===e?i={[xc]:n,[Cc]:2}:e.match(/\w/)||(i={[xc]:n,[Cc]:1})}i&&(r!==i&&o(n),r=i)}),o(),i.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(Tc).join("&");return btoa(n)}(n)}'`),`${t}\``}}(e,t),r),this.context={An:e,...t},this.name="SolanaError"}};function Mc(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function Oc(e){return 1!==e?.endian}var Rc=(e={})=>function(e,n){if(Mc(e)!==Mc(n))throw new Ic(zl);if(Mc(e)&&Mc(n)&&e.fixedSize!==n.fixedSize)throw new Ic(Gl,{decoderFixedSize:n.fixedSize,encoderFixedSize:e.fixedSize});if(!Mc(e)&&!Mc(n)&&e.maxSize!==n.maxSize)throw new Ic(Yl,{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 Ic(Zl,{codecDescription:e,max:t,min:n,value:r})}(n.name,n.range[0],n.range[1],e);const o=new ArrayBuffer(n.size);return n.set(new DataView(o),e,Oc(n.config)),t.set(new Uint8Array(o),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 Ic(jl,{codecDescription:e})}(n.name,e,t),function(e,n,t,r=0){const o=t.length-r;if(o<n)throw new Ic(ql,{bytesLength:o,codecDescription:e,expected:n})}(n.name,n.size,e,t);const r=new DataView(function(e,n,t){const r=e.byteOffset+(n??0),o=t??e.byteLength;return e.buffer.slice(r,r+o)}(e,t,n.size));return[n.get(r,Oc(n.config)),t+n.size]}},Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]});var n,t})(e));class Nc extends TypeError{constructor(e,n){let t;const{message:r,explanation:o,...i}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(o??s),null!=o&&(this.cause=s),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>t??(t=[e,...n()])}}function Bc(e){return"object"==typeof e&&null!=e}function Pc(e){return Bc(e)&&!Array.isArray(e)}function Lc(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function Fc(e,n,t,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=n,{type:a}=t,{refinement:s,message:u=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${Lc(r)}\``}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*Dc(e,n,t,r){var o;Bc(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const i of e){const e=Fc(i,n,t,r);e&&(yield e)}}function*Uc(e,n,t={}){const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=t,s={path:r,branch:o,mask:a};i&&(e=n.coercer(e,s));let u="valid";for(const l of n.validator(e,s))l.explanation=t.message,u="not_valid",yield[l,void 0];for(let[l,c,f]of n.entries(e,s)){const n=Uc(c,f,{path:void 0===l?r:[...r,l],branch:void 0===l?o:[...o,c],coerce:i,mask:a,message:t.message});for(const t of n)t[0]?(u=null!=t[0].refinement?"not_refined":"not_valid",yield[t[0],void 0]):i&&(c=t[1],void 0===l?e=c:e instanceof Map?e.set(l,c):e instanceof Set?e.add(c):Bc(e)&&(void 0!==c||l in e)&&(e[l]=c))}if("not_valid"!==u)for(const l of n.refiner(e,s))l.explanation=t.message,u="not_refined",yield[l,void 0];"valid"===u&&(yield[void 0,e])}let Hc=class{constructor(e){const{type:n,schema:t,validator:r,refiner:o,coercer:i=e=>e,entries:a=function*(){}}=e;this.type=n,this.schema=t,this.entries=a,this.coercer=i,this.validator=r?(e,n)=>Dc(r(e,n),n,this,e):()=>[],this.refiner=o?(e,n)=>Dc(o(e,n),n,this,e):()=>[]}assert(e,n){return function(e,n,t){const r=Vc(e,n,{message:t});if(r[0])throw r[0]}(e,this,n)}create(e,n){return jc(e,this,n)}is(e){return qc(e,this)}mask(e,n){return function(e,n,t){const r=Vc(e,n,{coerce:!0,mask:!0,message:t});if(r[0])throw r[0];return r[1]}(e,this,n)}validate(e,n={}){return Vc(e,this,n)}};function jc(e,n,t){const r=Vc(e,n,{coerce:!0,message:t});if(r[0])throw r[0];return r[1]}function qc(e,n){return!Vc(e,n)[0]}function Vc(e,n,t={}){const r=Uc(e,n,t),o=function(e){const{done:n,value:t}=e.next();return n?void 0:t}(r);return o[0]?[new Nc(o[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]:[void 0,o[1]]}function Wc(e,n){return new Hc({type:e,schema:null,validator:n})}function zc(e){return new Hc({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: ${Lc(e)}`})}function Gc(){return Wc("boolean",e=>"boolean"==typeof e)}function Yc(e){return Wc("instance",n=>n instanceof e||`Expected a \`${e.name}\` instance, but received: ${Lc(n)}`)}function Jc(e){const n=Lc(e),t=typeof e;return new Hc({type:"literal",schema:"string"===t||"number"===t||"boolean"===t?e:null,validator:t=>t===e||`Expected the literal \`${n}\`, but received: ${Lc(t)}`})}function Kc(e){return new Hc({...e,validator:(n,t)=>null===n||e.validator(n,t),refiner:(n,t)=>null===n||e.refiner(n,t)})}function Xc(){return Wc("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${Lc(e)}`)}function Qc(e){return new Hc({...e,validator:(n,t)=>void 0===n||e.validator(n,t),refiner:(n,t)=>void 0===n||e.refiner(n,t)})}function Zc(e,n){return new Hc({type:"record",schema:null,*entries(t){if(Bc(t))for(const r in t){const o=t[r];yield[r,r,e],yield[r,o,n]}},validator:e=>Pc(e)||`Expected an object, but received: ${Lc(e)}`,coercer:e=>Pc(e)?{...e}:e})}function _c(){return Wc("string",e=>"string"==typeof e||`Expected a string, but received: ${Lc(e)}`)}function $c(e){const n=Wc("never",()=>!1);return new Hc({type:"tuple",schema:null,*entries(t){if(Array.isArray(t)){const r=Math.max(e.length,t.length);for(let o=0;o<r;o++)yield[o,t[o],e[o]||n]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${Lc(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function ef(e){const n=Object.keys(e);return new Hc({type:"type",schema:e,*entries(t){if(Bc(t))for(const r of n)yield[r,t[r],e[r]]},validator:e=>Pc(e)||`Expected an object, but received: ${Lc(e)}`,coercer:e=>Pc(e)?{...e}:e})}function nf(e){const n=e.map(e=>e.type).join(" | ");return new Hc({type:"union",schema:null,coercer(n,t){for(const r of e){const[e,o]=r.validate(n,{coerce:!0,mask:t.mask});if(!e)return o}return n},validator(t,r){const o=[];for(const n of e){const[...e]=Uc(t,n,r),[i]=e;if(!i[0])return[];for(const[n]of e)n&&o.push(n)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Lc(t)}`,...o]}})}function tf(){return Wc("unknown",()=>!0)}function rf(e,n,t){return new Hc({...e,coercer:(r,o)=>qc(r,n)?e.coercer(t(r,o),o):e.coercer(r,o)})}var of,af=new Uint8Array(16);function sf(){if(!of&&!(of="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 of(af)}const uf=/^(?:[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 lf(e){return"string"==typeof e&&uf.test(e)}for(var cf,ff,df=[],hf=0;hf<256;++hf)df.push((hf+256).toString(16).substr(1));function pf(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(df[e[n+0]]+df[e[n+1]]+df[e[n+2]]+df[e[n+3]]+"-"+df[e[n+4]]+df[e[n+5]]+"-"+df[e[n+6]]+df[e[n+7]]+"-"+df[e[n+8]]+df[e[n+9]]+"-"+df[e[n+10]]+df[e[n+11]]+df[e[n+12]]+df[e[n+13]]+df[e[n+14]]+df[e[n+15]]).toLowerCase();if(!lf(t))throw TypeError("Stringified UUID is invalid");return t}var mf=0,yf=0;function vf(e){if(!lf(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 bf(e,n,t){function r(e,r,o,i){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=vf(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,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return pf(a)}try{r.name=e}catch(o){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function wf(e){return 14+(e+64>>>9<<4)+1}function gf(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function kf(e,n,t,r,o,i){return gf((a=gf(gf(n,e),gf(r,i)))<<(s=o)|a>>>32-s,t);var a,s}function Af(e,n,t,r,o,i,a){return kf(n&t|~n&r,e,n,o,i,a)}function Ef(e,n,t,r,o,i,a){return kf(n&r|t&~r,e,n,o,i,a)}function Tf(e,n,t,r,o,i,a){return kf(n^t^r,e,n,o,i,a)}function Sf(e,n,t,r,o,i,a){return kf(t^(n|~r),e,n,o,i,a)}var xf=bf("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",o=0;o<t;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);n.push(a)}return n}(function(e,n){e[n>>5]|=128<<n%32,e[wf(n)-1]=n;for(var t=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=t,u=r,l=o,c=i;t=Af(t,r,o,i,e[a],7,-680876936),i=Af(i,t,r,o,e[a+1],12,-389564586),o=Af(o,i,t,r,e[a+2],17,606105819),r=Af(r,o,i,t,e[a+3],22,-1044525330),t=Af(t,r,o,i,e[a+4],7,-176418897),i=Af(i,t,r,o,e[a+5],12,1200080426),o=Af(o,i,t,r,e[a+6],17,-1473231341),r=Af(r,o,i,t,e[a+7],22,-45705983),t=Af(t,r,o,i,e[a+8],7,1770035416),i=Af(i,t,r,o,e[a+9],12,-1958414417),o=Af(o,i,t,r,e[a+10],17,-42063),r=Af(r,o,i,t,e[a+11],22,-1990404162),t=Af(t,r,o,i,e[a+12],7,1804603682),i=Af(i,t,r,o,e[a+13],12,-40341101),o=Af(o,i,t,r,e[a+14],17,-1502002290),t=Ef(t,r=Af(r,o,i,t,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=Ef(i,t,r,o,e[a+6],9,-1069501632),o=Ef(o,i,t,r,e[a+11],14,643717713),r=Ef(r,o,i,t,e[a],20,-373897302),t=Ef(t,r,o,i,e[a+5],5,-701558691),i=Ef(i,t,r,o,e[a+10],9,38016083),o=Ef(o,i,t,r,e[a+15],14,-660478335),r=Ef(r,o,i,t,e[a+4],20,-405537848),t=Ef(t,r,o,i,e[a+9],5,568446438),i=Ef(i,t,r,o,e[a+14],9,-1019803690),o=Ef(o,i,t,r,e[a+3],14,-187363961),r=Ef(r,o,i,t,e[a+8],20,1163531501),t=Ef(t,r,o,i,e[a+13],5,-1444681467),i=Ef(i,t,r,o,e[a+2],9,-51403784),o=Ef(o,i,t,r,e[a+7],14,1735328473),t=Tf(t,r=Ef(r,o,i,t,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=Tf(i,t,r,o,e[a+8],11,-2022574463),o=Tf(o,i,t,r,e[a+11],16,1839030562),r=Tf(r,o,i,t,e[a+14],23,-35309556),t=Tf(t,r,o,i,e[a+1],4,-1530992060),i=Tf(i,t,r,o,e[a+4],11,1272893353),o=Tf(o,i,t,r,e[a+7],16,-155497632),r=Tf(r,o,i,t,e[a+10],23,-1094730640),t=Tf(t,r,o,i,e[a+13],4,681279174),i=Tf(i,t,r,o,e[a],11,-358537222),o=Tf(o,i,t,r,e[a+3],16,-722521979),r=Tf(r,o,i,t,e[a+6],23,76029189),t=Tf(t,r,o,i,e[a+9],4,-640364487),i=Tf(i,t,r,o,e[a+12],11,-421815835),o=Tf(o,i,t,r,e[a+15],16,530742520),t=Sf(t,r=Tf(r,o,i,t,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=Sf(i,t,r,o,e[a+7],10,1126891415),o=Sf(o,i,t,r,e[a+14],15,-1416354905),r=Sf(r,o,i,t,e[a+5],21,-57434055),t=Sf(t,r,o,i,e[a+12],6,1700485571),i=Sf(i,t,r,o,e[a+3],10,-1894986606),o=Sf(o,i,t,r,e[a+10],15,-1051523),r=Sf(r,o,i,t,e[a+1],21,-2054922799),t=Sf(t,r,o,i,e[a+8],6,1873313359),i=Sf(i,t,r,o,e[a+15],10,-30611744),o=Sf(o,i,t,r,e[a+6],15,-1560198380),r=Sf(r,o,i,t,e[a+13],21,1309151649),t=Sf(t,r,o,i,e[a+4],6,-145523070),i=Sf(i,t,r,o,e[a+11],10,-1120210379),o=Sf(o,i,t,r,e[a+2],15,718787259),r=Sf(r,o,i,t,e[a+9],21,-343485551),t=gf(t,s),r=gf(r,u),o=gf(o,l),i=gf(i,c)}return[t,r,o,i]}(function(e){if(0===e.length)return[];for(var n=8*e.length,t=new Uint32Array(wf(n)),r=0;r<n;r+=8)t[r>>5]|=(255&e[r/8])<<r%32;return t}(e),8*e.length))});function Cf(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 If(e,n){return e<<n|e>>>32-n}var Mf=bf("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 o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*u+4*c]<<24|e[64*u+4*c+1]<<16|e[64*u+4*c+2]<<8|e[64*u+4*c+3];s[u]=l}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]=If(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=t[0],y=t[1],v=t[2],b=t[3],w=t[4],g=0;g<80;++g){var k=Math.floor(g/20),A=If(m,5)+Cf(k,y,v,b)+w+n[k]+d[g]>>>0;w=b,b=v,v=If(y,30)>>>0,y=m,m=A}t[0]=t[0]+m>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+v>>>0,t[3]=t[3]+b>>>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 Of=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:vf,stringify:pf,v1:function(e,n,t){var r=n&&t||0,o=n||new Array(16),i=(e=e||{}).node||cf,a=void 0!==e.clockseq?e.clockseq:ff;if(null==i||null==a){var s=e.random||(e.rng||sf)();null==i&&(i=cf=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=ff=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:yf+1,c=u-mf+(l-yf)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||u>mf)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");mf=u,yf=l,ff=a;var f=(1e4*(268435455&(u+=122192928e5))+l)%4294967296;o[r++]=f>>>24&255,o[r++]=f>>>16&255,o[r++]=f>>>8&255,o[r++]=255&f;var d=u/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var h=0;h<6;++h)o[r+h]=i[h];return n||pf(o)},v3:xf,v4:function(e,n,t){var r=(e=e||{}).random||(e.rng||sf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=r[o];return n}return pf(r)},v5:Mf,validate:lf,version:function(e){if(!lf(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})),Rf=/* @__PURE__ */t(Of);var Nf,Bf,Pf,Lf;!function(){if(Lf)return Pf;Lf=1;const e=Rf.v4,n=function(){if(Bf)return Nf;Bf=1;const e=Rf.v4;return Nf=function(n,t,r,o){if("string"!=typeof n)throw new TypeError(n+" must be a string");const i="number"==typeof(o=o||{}).version?o.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");const a={method:n};if(2===i&&(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 o.generator?o.generator:function(){return e()};a.id=n(a,o)}else 2===i&&null===r?o.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};Pf=t,t.prototype.request=function(e,t,r,o){const i=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)o=t,a=e;else{"function"==typeof r&&(o=r,r=void 0);const i="function"==typeof o;try{a=n(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(i)return void o(l);throw l}if(!i)return a}let u;try{u=JSON.stringify(a,this.options.replacer)}catch(l){return void o(l)}return this.callServer(u,function(e,n){i.En(e,n,o)}),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(o){return void t(o)}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 Ff;function Df(e){try{return Pi.ExtendedPoint.fromHex(e),!0}catch{return!1}}Ff||(Ff=1,function(e){var n=Object.prototype.hasOwnProperty,t="~";function r(){}function o(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function i(e,n,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=t?t+n:n;return e.Tn[u]?e.Tn[u].fn?e.Tn[u]=[e.Tn[u],s]:e.Tn[u].push(s):(e.Tn[u]=s,e.Sn++),e}function a(e,n){0===--e.Sn?e.Tn=new r:delete e.Tn[n]}function s(){this.Tn=new r,this.Sn=0}Object.create&&(r.prototype=/* @__PURE__ */Object.create(null),(new r).__proto__||(t=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this.Sn)return o;for(r in e=this.Tn)n.call(e,r)&&o.push(t?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var n=t?t+e:e,r=this.Tn[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var n=t?t+e:e,r=this.Tn[n];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,n,r,o,i,a){var s=t?t+e:e;if(!this.Tn[s])return!1;var u,l,c=this.Tn[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,o),!0;case 5:return c.fn.call(c.context,n,r,o,i),!0;case 6:return c.fn.call(c.context,n,r,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,n);break;case 3:c[l].fn.call(c[l].context,n,r);break;case 4:c[l].fn.call(c[l].context,n,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(e,n,t){return i(this,e,n,t,!1)},s.prototype.once=function(e,n,t){return i(this,e,n,t,!0)},s.prototype.removeListener=function(e,n,r,o){var i=t?t+e:e;if(!this.Tn[i])return this;if(!n)return a(this,i),this;var s=this.Tn[i];if(s.fn)s.fn!==n||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==n||o&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this.Tn[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var n;return e?(n=t?t+e:e,this.Tn[n]&&a(this,n)):(this.Tn=new r,this.Sn=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=t,s.EventEmitter=s,e.exports=s}({exports:{}}));class Uf{constructor(e){Object.assign(this,e)}encode(){return bi.Buffer.from(la.serialize(Hf,this))}static decode(e){return la.deserialize(Hf,this,e)}static decodeUnchecked(e){return la.deserializeUnchecked(Hf,this,e)}}const Hf=/* @__PURE__ */new Map;var jf;let qf=1;class Vf extends Uf{constructor(e){if(super({}),this.xn=void 0,function(e){return void 0!==e.xn}(e))this.xn=e.xn;else{if("string"==typeof e){const n=Ki.decode(e);if(32!=n.length)throw new Error("Invalid public key input");this.xn=new ji(n)}else this.xn=new ji(e);if(this.xn.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new Vf(qf);return qf+=1,new Vf(e.toBuffer())}equals(e){return this.xn.eq(e.xn)}toBase58(){return Ki.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.xn.toArrayLike(bi.Buffer);if(32===e.length)return e;const n=bi.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=bi.Buffer.concat([e.toBuffer(),bi.Buffer.from(n),t.toBuffer()]),o=sr(r);return new Vf(o)}static createProgramAddressSync(e,n){let t=bi.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var n;t=bi.Buffer.concat([t,(n=e,bi.Buffer.isBuffer(n)?n:n instanceof Uint8Array?bi.Buffer.from(n.buffer,n.byteOffset,n.byteLength):bi.Buffer.from(n))])}),t=bi.Buffer.concat([t,n.toBuffer(),bi.Buffer.from("ProgramDerivedAddress")]);const r=sr(t);if(Df(r))throw new Error("Invalid seeds, address must fall off the curve");return new Vf(r)}static async createProgramAddress(e,n){return this.createProgramAddressSync(e,n)}static findProgramAddressSync(e,n){let t,r=255;for(;0!=r;){try{const o=e.concat(bi.Buffer.from([r]));t=this.createProgramAddressSync(o,n)}catch(o){if(o instanceof TypeError)throw o;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 Df(new Vf(e).toBytes())}}jf=Vf,Vf.default=new jf("11111111111111111111111111111111"),Hf.set(Vf,{kind:"struct",fields:[["_bn","u256"]]}),new Vf("BPFLoader1111111111111111111111111111111111");const Wf=(e="publicKey")=>fa.blob(32,e),zf=(e="string")=>{const n=fa.struct([fa.u32("length"),fa.u32("lengthPadding"),fa.blob(fa.offset(fa.u32(),-8),"chars")],e),t=n.decode.bind(n),r=n.encode.bind(n),o=n;return o.decode=(e,n)=>t(e,n).chars.toString(),o.encode=(e,n,t)=>{const o={chars:bi.Buffer.from(e,"utf8")};return r(o,n,t)},o.alloc=e=>fa.u32().span+fa.u32().span+bi.Buffer.from(e,"utf8").length,o};bi.Buffer.alloc(64).fill(0),new Vf("SysvarC1ock11111111111111111111111111111111"),new Vf("SysvarEpochSchedu1e111111111111111111111111"),new Vf("Sysvar1nstructions1111111111111111111111111"),new Vf("SysvarRecentB1ockHashes11111111111111111111"),new Vf("SysvarRent111111111111111111111111111111111"),new Vf("SysvarRewards111111111111111111111111111111"),new Vf("SysvarS1otHashes111111111111111111111111111"),new Vf("SysvarS1otHistory11111111111111111111111111"),new Vf("SysvarStakeHistory1111111111111111111111111");const Gf=fa.nu64("lamportsPerSignature");function Yf(e){const n=fa.blob(8,e),t=n.decode.bind(n),r=n.encode.bind(n),o=n,i=Rc();return o.decode=(e,n)=>{const r=t(e,n);return i.decode(r)},o.encode=(e,n,t)=>{const o=i.encode(e);return r(o,n,t)},o}fa.struct([fa.u32("version"),fa.u32("state"),Wf("authorizedPubkey"),Wf("nonce"),fa.struct([Gf],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports"),fa.ns64("space"),Wf("programId")])},Assign:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("programId")])},Transfer:{index:2,layout:fa.struct([fa.u32("instruction"),Yf("lamports")])},CreateWithSeed:{index:3,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),fa.ns64("lamports"),fa.ns64("space"),Wf("programId")])},AdvanceNonceAccount:{index:4,layout:fa.struct([fa.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:fa.struct([fa.u32("instruction"),Wf("authorized")])},AuthorizeNonceAccount:{index:7,layout:fa.struct([fa.u32("instruction"),Wf("authorized")])},Allocate:{index:8,layout:fa.struct([fa.u32("instruction"),fa.ns64("space")])},AllocateWithSeed:{index:9,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),fa.ns64("space"),Wf("programId")])},AssignWithSeed:{index:10,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),Wf("programId")])},TransferWithSeed:{index:11,layout:fa.struct([fa.u32("instruction"),Yf("lamports"),zf("seed"),Wf("programId")])},UpgradeNonceAccount:{index:12,layout:fa.struct([fa.u32("instruction")])}}),new Vf("11111111111111111111111111111111"),new Vf("BPFLoader2111111111111111111111111111111111"),fa.struct([fa.u32("typeIndex"),Yf("deactivationSlot"),fa.nu64("lastExtendedSlot"),fa.u8("lastExtendedStartIndex"),fa.u8(),fa.seq(Wf(),fa.offset(fa.u8(),-1),"authority")]);const Jf=rf(Yc(Vf),_c(),e=>new Vf(e)),Kf=$c([_c(),Jc("base64")]),Xf=rf(Yc(bi.Buffer),Kf,e=>bi.Buffer.from(e[0],"base64"));function Qf(e){return nf([ef({jsonrpc:Jc("2.0"),id:_c(),result:e}),ef({jsonrpc:Jc("2.0"),id:_c(),error:ef({code:tf(),message:_c(),data:Qc(Wc("any",()=>!0))})})])}const Zf=Qf(tf());function _f(e){return rf(Qf(e),Zf,n=>"error"in n?n:{...n,result:jc(n.result,e)})}function $f(e){return _f(ef({context:ef({slot:Xc()}),value:e}))}function ed(e){return ef({context:ef({slot:Xc()}),value:e})}const nd=ef({foundation:Xc(),foundationTerm:Xc(),initial:Xc(),taper:Xc(),terminal:Xc()});_f(zc(Kc(ef({epoch:Xc(),effectiveSlot:Xc(),amount:Xc(),postBalance:Xc(),commission:Qc(Kc(Xc()))}))));const td=zc(ef({slot:Xc(),prioritizationFee:Xc()})),rd=ef({total:Xc(),validator:Xc(),foundation:Xc(),epoch:Xc()}),od=ef({epoch:Xc(),slotIndex:Xc(),slotsInEpoch:Xc(),absoluteSlot:Xc(),blockHeight:Qc(Xc()),transactionCount:Qc(Xc())}),id=ef({slotsPerEpoch:Xc(),leaderScheduleSlotOffset:Xc(),warmup:Gc(),firstNormalEpoch:Xc(),firstNormalSlot:Xc()}),ad=Zc(_c(),zc(Xc())),sd=Kc(nf([ef({}),_c()])),ud=ef({err:sd}),ld=Jc("receivedSignature");ef({"solana-core":_c(),"feature-set":Qc(Xc())});const cd=ef({program:_c(),programId:Jf,parsed:tf()}),fd=ef({programId:Jf,accounts:zc(Jf),data:_c()});$f(ef({err:Kc(nf([ef({}),_c()])),logs:Kc(zc(_c())),accounts:Qc(Kc(zc(Kc(ef({executable:Gc(),owner:_c(),lamports:Xc(),data:zc(_c()),rentEpoch:Qc(Xc())}))))),unitsConsumed:Qc(Xc()),returnData:Qc(Kc(ef({programId:_c(),data:$c([_c(),Jc("base64")])}))),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(nf([cd,fd]))}))))})),$f(ef({byIdentity:Zc(_c(),zc(Xc())),range:ef({firstSlot:Xc(),lastSlot:Xc()})})),_f(nd),_f(rd),_f(td),_f(od),_f(id),_f(ad),_f(Xc()),$f(ef({total:Xc(),circulating:Xc(),nonCirculating:Xc(),nonCirculatingAccounts:zc(Jf)}));const dd=ef({amount:_c(),uiAmount:Kc(Xc()),decimals:Xc(),uiAmountString:Qc(_c())});$f(zc(ef({address:Jf,amount:_c(),uiAmount:Kc(Xc()),decimals:Xc(),uiAmountString:Qc(_c())}))),$f(zc(ef({pubkey:Jf,account:ef({executable:Gc(),owner:Jf,lamports:Xc(),data:Xf,rentEpoch:Xc()})})));const hd=ef({program:_c(),parsed:tf(),space:Xc()});$f(zc(ef({pubkey:Jf,account:ef({executable:Gc(),owner:Jf,lamports:Xc(),data:hd,rentEpoch:Xc()})}))),$f(zc(ef({lamports:Xc(),address:Jf})));const pd=ef({executable:Gc(),owner:Jf,lamports:Xc(),data:Xf,rentEpoch:Xc()});ef({pubkey:Jf,account:pd});const md=rf(nf([Yc(bi.Buffer),hd]),nf([Kf,hd]),e=>Array.isArray(e)?jc(e,Xf):e),yd=ef({executable:Gc(),owner:Jf,lamports:Xc(),data:md,rentEpoch:Xc()});ef({pubkey:Jf,account:yd}),ef({state:nf([Jc("active"),Jc("inactive"),Jc("activating"),Jc("deactivating")]),active:Xc(),inactive:Xc()}),_f(zc(ef({signature:_c(),slot:Xc(),err:sd,memo:Kc(_c()),blockTime:Qc(Kc(Xc()))}))),_f(zc(ef({signature:_c(),slot:Xc(),err:sd,memo:Kc(_c()),blockTime:Qc(Kc(Xc()))}))),ef({subscription:Xc(),result:ed(pd)});const vd=ef({pubkey:Jf,account:pd});ef({subscription:Xc(),result:ed(vd)});const bd=ef({parent:Xc(),slot:Xc(),root:Xc()});ef({subscription:Xc(),result:bd});const wd=nf([ef({type:nf([Jc("firstShredReceived"),Jc("completed"),Jc("optimisticConfirmation"),Jc("root")]),slot:Xc(),timestamp:Xc()}),ef({type:Jc("createdBank"),parent:Xc(),slot:Xc(),timestamp:Xc()}),ef({type:Jc("frozen"),slot:Xc(),timestamp:Xc(),stats:ef({numTransactionEntries:Xc(),numSuccessfulTransactions:Xc(),numFailedTransactions:Xc(),maxTransactionsPerEntry:Xc()})}),ef({type:Jc("dead"),slot:Xc(),timestamp:Xc(),err:_c()})]);ef({subscription:Xc(),result:wd}),ef({subscription:Xc(),result:ed(nf([ud,ld]))}),ef({subscription:Xc(),result:Xc()}),ef({pubkey:_c(),gossip:Kc(_c()),tpu:Kc(_c()),rpc:Kc(_c()),version:Kc(_c())});const gd=ef({votePubkey:_c(),nodePubkey:_c(),activatedStake:Xc(),epochVoteAccount:Gc(),epochCredits:zc($c([Xc(),Xc(),Xc()])),commission:Xc(),lastVote:Xc(),rootSlot:Kc(Xc())});_f(ef({current:zc(gd),delinquent:zc(gd)}));const kd=nf([Jc("processed"),Jc("confirmed"),Jc("finalized")]),Ad=ef({slot:Xc(),confirmations:Kc(Xc()),err:sd,confirmationStatus:Qc(kd)});$f(zc(Kc(Ad))),_f(Xc());const Ed=ef({accountKey:Jf,writableIndexes:zc(Xc()),readonlyIndexes:zc(Xc())}),Td=ef({signatures:zc(_c()),message:ef({accountKeys:zc(_c()),header:ef({numRequiredSignatures:Xc(),numReadonlySignedAccounts:Xc(),numReadonlyUnsignedAccounts:Xc()}),instructions:zc(ef({accounts:zc(Xc()),data:_c(),programIdIndex:Xc()})),recentBlockhash:_c(),addressTableLookups:Qc(zc(Ed))})}),Sd=ef({pubkey:Jf,signer:Gc(),writable:Gc(),source:Qc(nf([Jc("transaction"),Jc("lookupTable")]))}),xd=ef({accountKeys:zc(Sd),signatures:zc(_c())}),Cd=ef({parsed:tf(),program:_c(),programId:Jf}),Id=ef({accounts:zc(Jf),data:_c(),programId:Jf}),Md=rf(nf([Id,Cd]),nf([ef({parsed:tf(),program:_c(),programId:_c()}),ef({accounts:zc(_c()),data:_c(),programId:_c()})]),e=>jc(e,"accounts"in e?Id:Cd)),Od=ef({signatures:zc(_c()),message:ef({accountKeys:zc(Sd),instructions:zc(Md),recentBlockhash:_c(),addressTableLookups:Qc(Kc(zc(Ed)))})}),Rd=ef({accountIndex:Xc(),mint:_c(),owner:Qc(_c()),programId:Qc(_c()),uiTokenAmount:dd}),Nd=ef({writable:zc(Jf),readonly:zc(Jf)}),Bd=ef({err:sd,fee:Xc(),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(ef({accounts:zc(Xc()),data:_c(),programIdIndex:Xc()}))})))),preBalances:zc(Xc()),postBalances:zc(Xc()),logMessages:Qc(Kc(zc(_c()))),preTokenBalances:Qc(Kc(zc(Rd))),postTokenBalances:Qc(Kc(zc(Rd))),loadedAddresses:Qc(Nd),computeUnitsConsumed:Qc(Xc()),costUnits:Qc(Xc())}),Pd=ef({err:sd,fee:Xc(),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(Md)})))),preBalances:zc(Xc()),postBalances:zc(Xc()),logMessages:Qc(Kc(zc(_c()))),preTokenBalances:Qc(Kc(zc(Rd))),postTokenBalances:Qc(Kc(zc(Rd))),loadedAddresses:Qc(Nd),computeUnitsConsumed:Qc(Xc()),costUnits:Qc(Xc())}),Ld=nf([Jc(0),Jc("legacy")]),Fd=ef({pubkey:_c(),lamports:Xc(),postBalance:Kc(Xc()),rewardType:Kc(_c()),commission:Qc(Kc(Xc()))});_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Td,meta:Kc(Bd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:xd,meta:Kc(Bd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Od,meta:Kc(Pd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:xd,meta:Kc(Pd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Td,meta:Kc(Bd)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),signatures:zc(_c()),blockTime:Kc(Xc())}))),_f(Kc(ef({slot:Xc(),meta:Kc(Bd),blockTime:Qc(Kc(Xc())),transaction:Td,version:Qc(Ld)}))),_f(Kc(ef({slot:Xc(),transaction:Od,meta:Kc(Pd),blockTime:Qc(Kc(Xc())),version:Qc(Ld)}))),$f(ef({blockhash:_c(),lastValidBlockHeight:Xc()})),$f(Gc()),_f(zc(ef({slot:Xc(),numTransactions:Xc(),numSlots:Xc(),samplePeriodSecs:Xc()}))),$f(Kc(ef({feeCalculator:ef({lamportsPerSignature:Xc()})}))),_f(_c()),_f(_c());const Dd=ef({err:sd,logs:zc(_c()),signature:_c()});var Ud;ef({result:ed(Dd),subscription:Xc()}),Object.freeze({CreateLookupTable:{index:0,layout:fa.struct([fa.u32("instruction"),Yf("recentSlot"),fa.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:fa.struct([fa.u32("instruction")])},ExtendLookupTable:{index:2,layout:fa.struct([fa.u32("instruction"),Yf(),fa.seq(Wf(),fa.offset(fa.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:fa.struct([fa.u32("instruction")])},CloseLookupTable:{index:4,layout:fa.struct([fa.u32("instruction")])}}),new Vf("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:fa.struct([fa.u8("instruction"),fa.u32("units"),fa.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:fa.struct([fa.u8("instruction"),fa.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:fa.struct([fa.u8("instruction"),fa.u32("units")])},SetComputeUnitPrice:{index:3,layout:fa.struct([fa.u8("instruction"),Yf("microLamports")])}}),new Vf("ComputeBudget111111111111111111111111111111"),fa.struct([fa.u8("numSignatures"),fa.u8("padding"),fa.u16("signatureOffset"),fa.u16("signatureInstructionIndex"),fa.u16("publicKeyOffset"),fa.u16("publicKeyInstructionIndex"),fa.u16("messageDataOffset"),fa.u16("messageDataSize"),fa.u16("messageInstructionIndex")]),new Vf("Ed25519SigVerify111111111111111111111111111"),Ko.utils.isValidPrivateKey,fa.struct([fa.u8("numSignatures"),fa.u16("signatureOffset"),fa.u8("signatureInstructionIndex"),fa.u16("ethAddressOffset"),fa.u8("ethAddressInstructionIndex"),fa.u16("messageDataOffset"),fa.u16("messageDataSize"),fa.u8("messageInstructionIndex"),fa.blob(20,"ethAddress"),fa.blob(64,"signature"),fa.u8("recoveryId")]),new Vf("KeccakSecp256k11111111111111111111111111111"),new Vf("StakeConfig11111111111111111111111111111111");class Hd{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}}Ud=Hd,Hd.default=new Ud(0,0,Vf.default),Object.freeze({Initialize:{index:0,layout:fa.struct([fa.u32("instruction"),((e="authorized")=>fa.struct([Wf("staker"),Wf("withdrawer")],e))(),((e="lockup")=>fa.struct([fa.ns64("unixTimestamp"),fa.ns64("epoch"),Wf("custodian")],e))()])},Authorize:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:fa.struct([fa.u32("instruction")])},Split:{index:3,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},Withdraw:{index:4,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},Deactivate:{index:5,layout:fa.struct([fa.u32("instruction")])},Merge:{index:7,layout:fa.struct([fa.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("stakeAuthorizationType"),zf("authoritySeed"),Wf("authorityOwner")])}}),new Vf("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:fa.struct([fa.u32("instruction"),((e="voteInit")=>fa.struct([Wf("nodePubkey"),Wf("authorizedVoter"),Wf("authorizedWithdrawer"),fa.u8("commission")],e))()])},Authorize:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:fa.struct([fa.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:fa.struct([fa.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>fa.struct([fa.u32("voteAuthorizationType"),Wf("currentAuthorityDerivedKeyOwnerPubkey"),zf("currentAuthorityDerivedKeySeed"),Wf("newAuthorized")],e))()])}}),new Vf("Vote111111111111111111111111111111111111111"),new Vf("Va1idator1nfo111111111111111111111111111111"),ef({name:_c(),website:Qc(_c()),details:Qc(_c()),iconUrl:Qc(_c()),keybaseUsername:Qc(_c())}),new Vf("Vote111111111111111111111111111111111111111"),fa.struct([Wf("nodePubkey"),Wf("authorizedWithdrawer"),fa.u8("commission"),fa.nu64(),fa.seq(fa.struct([fa.nu64("slot"),fa.u32("confirmationCount")]),fa.offset(fa.u32(),-8),"votes"),fa.u8("rootSlotValid"),fa.nu64("rootSlot"),fa.nu64(),fa.seq(fa.struct([fa.nu64("epoch"),Wf("authorizedVoter")]),fa.offset(fa.u32(),-8),"authorizedVoters"),fa.struct([fa.seq(fa.struct([Wf("authorizedPubkey"),fa.nu64("epochOfLastAuthorizedSwitch"),fa.nu64("targetEpoch")]),32,"buf"),fa.nu64("idx"),fa.u8("isEmpty")],"priorVoters"),fa.nu64(),fa.seq(fa.struct([fa.nu64("epoch"),fa.nu64("credits"),fa.nu64("prevCredits")]),fa.offset(fa.u32(),-8),"epochCredits"),fa.struct([fa.nu64("slot"),fa.nu64("timestamp")],"lastTimestamp")]);const jd=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})},qd=e=>new Promise(n=>setTimeout(n,e||0)),Vd=(e,n=5,t=5)=>(e=e||"",e?.length<=n+t?e:`${e.substr(0,n)}...${e.substr(e.length-t,t)}`),Wd=e=>{if(!e)return"";const n=li[e];return n?n.chainTypeMoralis:""},zd=e=>{if(!e)return"";const n=li[e];return n?n.chainType:""},Gd={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 Yd(e){if(jn(e))return!0;try{return new Vf(e),!0}catch{return!1}}function Jd(){const e=String("keyring-chatbot-agent").trim().replace(/^['"]|['"]$/g,"").replace(/^['"]|['"]$/g,"").replace(/[;,]$/,"");return K[e||"keyring-chatbot-agent"]||K["keyring-chatbot-agent"]}const Kd=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,ellipsisAddress:Vd,formatDate:jd,getChainType:zd,getChainTypeMoralis:Wd,getDataPackage:Jd,isValidAddress:Yd,safeStorage:Gd,sleep:qd},Symbol.toStringTag,{value:"Module"})),Xd=j.createContext(void 0),Qd=()=>{const e=j.useContext(Xd);if(!e)throw new Error("useConnect must be used within ConnectProvider");return{...e,chainData:li[e?.account?.chainId]||void 0,chainId:e.account?.chainId||void 0,chainType:zd(e.account?.chainId||void 0),chainTypeMoralis:Wd(e.account?.chainId||void 0),isChainSupported:!!li[e?.account?.chainId]?.isSupported||!1}},Zd=({children:e,initialAccount:n})=>/* @__PURE__ */k.jsx(Xd.Provider,{value:{account:n||null},children:e}),_d=({address:e,chainId:n})=>{const[t,r]=j.useState(!1),{isChainSupported:o}=Qd(),{t:i}=G(),a=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__ */
|
|
4
|
+
return k.jsx(W.Provider,{value:{language:t,setLanguage:r,t:o,ti:i},children:e})},G=()=>{const e=j.useContext(W);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},Y=j.memo(({onClick:e,buttonSize:n=56,customIcon:t,customChatButton:r})=>{const{t:o}=G(),i=n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e())};return r?/* @__PURE__ */k.jsx("div",{onClick:e,onKeyDown:i,role:"button",tabIndex:0,children:r}):/* @__PURE__ */k.jsx("button",{className:"chat-button",onClick:e,onKeyDown:i,"aria-label":o("openChat"),title:o("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:/* @__PURE__ */k.jsx("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:t||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4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aVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),J={data:/* @__PURE__ */JSON.parse('[{"question":{"en":"Unveiling the Truth of Liquidity Pools & Earn Over 20% APR. How Is This Possible?"},"answer":{"en":"The high APR of liquidity pools like Uniswap comes from: Trading fees, Compensation for impermanent loss, Yieldfarming incentives, Market volatility in high-trading-volume pools"}},{"question":{"en":"What Is a Liquidity Pool?"},"answer":{"en":"A liquidity pool is a smart contract that holds two tokens and facilitates swaps using an AMM model. Liquidity providers (LPs) deposit tokens and earn trading fees from transactions in the pool."}},{"question":{"en":"What risks do liquidity providers (LPs) face when providing liquidity?"},"answer":{"en":"Yes. While providing liquidity can generate returns, it also comes with certain risks that users should be aware of.\\nKey Risks\\nOut-of-Range Risk: If the market price moves outside your selected range, your liquidity becomes inactive. You stop earning fees and may end up holding only one asset in the pair. Adjusting or removing liquidity may be necessary.\\nImpermanent Loss: Significant price changes between the paired assets can reduce the value of your position compared to simply holding them.\\nAsset Imbalance: Over time, one asset may dominate the position, leaving you with an uneven or single-token exposure."}},{"question":{"en":"What is CoinPool?"},"answer":{"en":"CoinPool is a platform that provides a streamlined, non-custodial interface for accessing and managing liquidity positions across supported decentralized finance (DeFi) protocols.\\nIt simplifies how users interact with liquidity pools, making it easier to discover, enter, and manage positions, all while maintaining full control of their assets."}},{"question":{"en":"How Do I Get Started with CoinPool?"},"answer":{"en":"For example, if you hold USDC and select the ETH/WBTC pair, CoinPool will automatically swap USDC into ETH and WBTC, then create a liquidity position for you, making it easy to provide liquidity to the pool."}},{"question":{"en":"How do you manage Liquidity Positions (LPs)?"},"answer":{"en":"You can manage your LP position directly using the KEYRING PRO app. Since your LP NFT is linked to your wallet, CoinPool only provides smooth access to manage your position but does not hold or control your assets."}},{"question":{"en":"Why Should I Use the ‘High APR Pairs’ Feature?"},"answer":{"en":"The ‘High APR Pairs’ feature helps users quickly add liquidity to high-yield pools without needing to create a new pair, streamlining the liquidity provision process. Notice: Always select pairs from verified and reliable creators to ensure the best security and returns."}},{"question":{"en":"What is the Earnings Overview Dashboard?"},"answer":{"en":"The Earnings Overview Dashboard provides a clear summary of your liquidity value and earnings from providing liquidity, along with the average APR. It also allows you to view other users’ LP earnings and follow their strategies for insight and inspiration."}},{"question":{"en":"What tokens can I use to add liquidity?"},"answer":{"en":"CoinPool supports ETH. Users can use any of these assets, and CoinPool will automatically swap them into the required token pairs for liquidity provision."}},{"question":{"en":"How does CoinPool simplify liquidity provision?"},"answer":{"en":"Instead of manually swapping and balancing tokens, CoinPool automates the entire process. Users can simply deposit a single asset, and CoinPool will convert, balance, and provide liquidity in the selected pool, prioritizing those with the best APRs."}},{"question":{"en":"Can I create my own liquidity pool?"},"answer":{"en":"Yes! CoinPool allows users to create custom liquidity pools instead of joining existing ones. Users can also invite others to contribute liquidity to their pools."}},{"question":{"en":"How do I earn from providing liquidity?"},"answer":{"en":"Liquidity providers earn a share of trading fees generated by the pool.\\nTrading volume of the pool – Higher activity means more fees.\\nYour liquidity share – The more you contribute, the more you earn.\\nFee tier selection – Pools with higher fee tiers may generate higher earnings but attract fewer trades."}},{"question":{"en":"How do I choose the right fee tier when adding liquidity?"},"answer":{"en":"0.01% → Best for stablecoin pairs (e.g., USDT/USDC).\\n0.05% → Best for low-volatility tokens.\\n0.3% (Default) → Best for most trading pairs.\\n1% → Best for high-volatility, low-liquidity pairs.\\nIf unsure, check existing pools to see the most commonly used fee rate."}},{"question":{"en":"What happens if my liquidity goes out of range?"},"answer":{"en":"If you provide liquidity within a specific price range (Uniswap V3 model), your position can become inactive when the market price moves beyond your set range.\\nYou stop earning fees.\\nYour balance shifts toward one of the two tokens in the pair.\\nTo reactivate, you need to remove and re-add liquidity at a new range."}},{"question":{"en":"What is the difference between \'Collect Profit\' and \'Delete the Pair and Collect Profit\'?"},"answer":{"en":"\'Collect Profit\' – Withdraw only profit.\\n\'Delete the Pair and Collect Profit\' – Withdraw both initial liquidity and profit."}},{"question":{"en":"What is the URL of the CoinPool website?"},"answer":{"en":"The official website URL is https://coinpool.app/"}},{"question":{"en":"Where can I find pools with high volume-to-liquidity ratio?"},"answer":{"en":"You can find pools with a high volume-to-liquidity ratio on this page: https://coinpool.app/pool-ranking"}},{"question":{"en":"Where can I see my earnings or liquidity profits?"},"answer":{"en":"You can track your earnings and liquidity performance here: https://coinpool.app/earnings-overview"}},{"question":{"en":"Where can I view my NFT pools?"},"answer":{"en":"You can check your NFT pools on this page:https://coinpool.app/my-liquidity"}},{"question":{"en":"Where can I create or choose a pair to create a pool?"},"answer":{"en":"You can create or choose a pair to create a pool here: https://coinpool.app/pair"}},{"question":{"en":"What are CoinPool fee tiers?"},"answer":{"en":"0.01% - Used for highly stable pairs like stablecoin-to-stablecoin.\\n0.05% - Used for relatively stable pairs such as ETH/stETH.\\n0.3% - Used for most standard trading pairs.\\n1% - Used for minor or highly volatile pairs, such as meme coins."}},{"question":{"en":"What does the Min value mean when providing liquidity?"},"answer":{"en":"Min is the lowest price of Token A in terms of Token B at which you are willing to provide liquidity.If the price drops below this level, your liquidity will not be used in the pool. This helps protect your assets from excessive price drops.\\nExample: You create an ETH/USDC pair and set Min = 2000 USDC/ETH. If ETH\'s price falls below 2000 USDC, your liquidity will no longer be used."}},{"question":{"en":"What does the Max value mean when providing liquidity?"},"answer":{"en":"Max is the highest price of Token A in terms of Token B at which you are willing to provide liquidity. If the market price of Token A exceeds this limit, your liquidity will not be used for transactions. The main purpose of setting a Max value is to protect your liquidity from excessive price fluctuations. \\nExample: You create an ETH/USDC pair and set Max = 4000 USDC/ETH. If ETH\'s price rises above 4000 USDC, your liquidity will no longer be used for trading."}},{"question":{"en":"When should you choose the 0.01% fee tier when creating a pair?"},"answer":{"en":"0.01% - Best for very stable pairs. \\nSuitable for pairs with extremely low volatility, such as USDT/USDC. \\nThese pairs have almost no price fluctuation risk, so a low fee attracts more traders. \\nIdeal for those who want to provide liquidity long-term with stable returns."}},{"question":{"en":"When should you choose the 0.05% fee tier when creating a pair?"},"answer":{"en":"0.05% - Best for stable pairs.\\nWorks well for stablecoin pairs or low volatility pairs like ETH/stETH.\\nOffers a reasonable fee higher than 0.01% while still attracting traders.\\nA great choice for liquidity providers seeking earnings while maintaining low fees to encourage trading."}},{"question":{"en":"When should you choose the 0.3% fee tier when creating a pair?"},"answer":{"en":"0.3% - Best for most pairs.\\nThe standard fee for most trading pairs, including popular ones like ETH/USDC, BTC/ETH.\\nSuitable for high-liquidity pairs with some level of price fluctuation.\\nA balanced choice for liquidity providers who want both trading volume and fee income."}},{"question":{"en":"When should you choose the 1% fee tier when creating a pair?"},"answer":{"en":"1% - Best for exotic pairs. \\nDesigned for low-liquidity or highly volatile trading pairs, such as new or lesser-known tokens.\\nSince these pairs have higher risks, the high fee compensates liquidity providers.\\nA good choice if you are providing liquidity for new tokens and want to earn higher fees."}},{"question":{"en":"Would you like to add more liquidity to this position?"},"answer":{"en":"Select an existing liquidity pair to add more liquidity and increase your potential rewards.\\nYour liquidity will be locked in the pool until you decide to withdraw.\\nAdding liquidity may affect trading fees and rewards earned from swaps in the pool."}},{"question":{"en":"When can I collect earnings in CoinPool?"},"answer":{"en":"You can withdraw your accumulated rewards from the liquidity pool at any time. Collected rewards will be sent directly to your connected wallet."}},{"question":{"en":"Delete your liquidity & collect liquidity and earnings"},"answer":{"en":"This option allows you to withdraw both your initial liquidity and any earned rewards. Once removed, your liquidity will no longer participate in earning trading fees. This action does not burn your NFT, so you can reuse it later if needed."}},{"question":{"en":"What is the Repositioning feature and when should you use it?"},"answer":{"en":"When your liquidity position goes out of range, you can use the Repositioning feature to reconfigure the pair by setting your preferred Max Price and Min Price.\\nA wider price range provides more stable but lower fee income, while a narrower range can increase your potential returns.\\nf you want to adjust your position and narrow your range to boost fee earnings, please use this feature.\\nPlease note that DEX fees will apply each time the pool is reconfigured.\\nUncollected earnings are not added to liquidity but are returned to your wallet."}},{"question":{"en":"How does the auto-repositioning BOT work in CoinPool?"},"answer":{"en":"You can set the BOT to automatically reposition your liquidity pool whenever it goes out of range. When your pool’s liquidity falls outside the preset range, the BOT will automatically reconfigure the pool. Once automatic positioning is enabled, the BOT will continue to reposition based on the same settings until you manually stop it. \\nThis significantly reduces the time your liquidity stays outside the range, helping to maximize your potential fee income. The BOT does not operate in real time — it checks positions once every hour, and repositioning may occasionally fail. Please note that DEX fees apply for each automatic reconfiguration. Frequent reconfigurations may lead to net fee losses. Uncollected earnings are not added to liquidity but are returned to your wallet."}},{"question":{"en":"What is NFT burning?"},"answer":{"en":"Burning an NFT means permanently removing the NFT that represents your liquidity position. Once burned, the NFT cannot be restored, and all associated benefits will be lost. Only burn if you are sure you no longer need the NFT and have already withdrawn all liquidity."}},{"question":{"en":"When is the data updated?"},"answer":{"en":"Data is aggregated and updated at 00:00 UTC.\\nStarting from 23:00 UTC, LP token data is sequentially retrieved from the blockchain. The displayed values are then calculated based on the rates at 00:00 UTC. Please note that discrepancies may occur between the figures shown in the earnings overview and the actual values. The figures presented in the earnings summary are for reference only."}},{"question":{"en":"How can I view and manage my purchased token packages?"},"answer":{"en":"View your purchased token packages here \'https://coinpool.app/package\'. Each package is stored in a Token Bound Account (TBA), where you can easily check the included tokens and their asset value.\\nYou can unpack your package, the unpacked tokens will be sent to your connected wallet. Or you can unpack&Swap USDC, all tokens in your package will be swapped to USDC and sent to your connected wallet."}},{"question":{"en":"Can I create a custom token package?"},"answer":{"en":"You can create a custom package tailored to your investment preferences."}},{"question":{"en":"Token Bound Account 6551 (TBA)"},"answer":{"en":"A Token Bound Account (TBA), defined by the ERC-6551 Ethereum standard, is a smart contract wallet linked to an ERC-721 NFT. Your token package is securely stored in a TBA, which you can manage effortlessly through your account."}},{"question":{"en":"Which company developed the CoinPool website?"},"answer":{"en":"CoinPool is a platform developed by Bacoor Company in 2025"}},{"question":{"en":"How can I find the highest APR pair to start providing liquidity on this site?"},"answer":{"en":"Sorted by the highest APR, you can easily find the most suitable liquidity pool and start providing liquidity on this site!"}},{"question":{"en":"What is the purpose of the pair list section?"},"answer":{"en":"This section displays token pairs created by all this site\'s members.\\n• You can select a pair and add liquidity without creating a new one.\\n• Before adding liquidity, check details such as volume, APR, and current liquidity."}},{"question":{"en":"What is Buy Package on CoinPool?"},"answer":{"en":"Buy Package is a CoinPool feature that lets users purchase multiple tokens in one transaction and store them in a Smart Contract wallet (NFT TBA - ERC-6551). simply select your tokens and pay with ETH."}},{"question":{"en":"How to Buy Package on CoinPool?"},"answer":{"en":"Please check the guide here: https://coinpool.app/top?tab=buypack"}},{"question":{"en":"How To Unpack To Your Wallet on CoinPool?"},"answer":{"en":"Please check the guide here: https://coinpool.app/top?tab=buypack"}},{"question":{"en":"Why do I need to register my Solana Wallet?"},"answer":{"en":"CoinPool automatically recognizes your EVM-compatible wallet addresses.\\nSince Solana operates outside the EVM ecosystem, you must manually register your Solana address with CoinPool.\\nTo use CoinPool features on Solana-such as tracking and adding liquidity-you must also connect your Solana wallet.\\nOnce registered, this address cannot be changed."}},{"question":{"en":"What should I consider on the Pair Selection Screen before providing liquidity?"},"answer":{"en":"On the \'Select Pair\' screen, you\'ll see the total market cap and 24-hour trading volume for each cryptocurrency. The more rocket symbols, the more actively the asset is traded.\\n\\nEach trading pair also displays the available liquidity range and associated fees. Generally, higher fees suggest smaller or more volatile coins — offering higher potential returns, but also higher risk.\\nPlease check the guide here: https://coinpool.app/top?tab=pool"}},{"question":{"en":"Why should I use CoinPool?"},"answer":{"en":"CoinPool streamlines liquidity provision by removing the usual friction of manual swaps and asset balancing. Everything is handled in a single flow, allowing you to participate in high-APR pools more efficiently. With just one asset (such as ETH), CoinPool automatically performs the necessary swaps, balances the pair, and creates an optimized liquidity position on your behalf. It also surfaces high-performing pools, helping you identify better yield opportunities without the need for constant tracking.\\nKey Benefits\\nOptimized APR Selection: Prioritizes high-yield pools to help maximize returns.\\nStreamlined Liquidity Provision: Eliminates manual swaps and rebalancing steps.\\nSeamless Passive Income: Deposit a single asset, and CoinPool manages the rest automatically."}},{"question":{"en":"Is Coinpool Safe?"},"answer":{"en":"CoinPool operates as a non-custodial, interface-only service, meaning you remain in full control of your assets at all times.It does not take custody of funds, store private keys or seed phrases, or manage user wallets. CoinPool also does not deploy or control liquidity pools, bridges, or smart contracts. All transactions are executed directly on public blockchains and must be authorized and signed by your own wallet. Once confirmed on-chain, transactions are final and cannot be reversed.All transactions are executed directly on public blockchains and must be authorized and signed by your own wallet. Once confirmed on-chain, transactions are final and cannot be reversed. As a result, CoinPool does not have the ability to cancel, modify, recover, or refund any transaction or digital asset."}},{"question":{"en":"Is Coinpool Easy to use?"},"answer":{"en":"Ease of use can vary depending on the user, but overall feedback has been positive. Many users find CoinPool intuitive and straightforward to navigate. The interface is clean and well-structured, with clearly organized sections. Each feature includes simple explanations of its purpose, making it easier to understand and use effectively. CoinPool is built with users in mind, and the experience is continuously refined to make interactions as smooth and accessible as possible."}},{"question":{"en":"What is a Sub-Account"},"answer":{"en":"A sub-account is an additional account designed for operational use, allowing activities to be managed from a separate wallet address while remaining under the control of a main account.\\nUnlike a regular wallet, a sub-account is a smart contract address with no private key. It operates based on predefined rules, and only the main account (owner address) has the authority to transfer its assets. No other address can move funds from a sub-account.\\nMain Account (Owner Address)\\nThe primary wallet that has full control, including managing all sub-accounts and their assets.\\nSub-Account\\nA smart contract-based account created by the owner for operational purposes, without its own private key.\\nOperation Address\\nA separate wallet address assigned by the owner to perform operational actions for specific sub-accounts. This address is limited to operations only and cannot transfer assets. It must be a newly created wallet used exclusively for this purpose."}},{"question":{"en":"Why should I create Sub-Account"},"answer":{"en":"A sub-account allows you to entrust liquidity management to a more experienced operator, helping streamline decisions like pool selection and liquidity provision.\\nThis can save time and reduce the need for in-depth research, as operational tasks are handled on your behalf. It’s especially useful for users who prefer a more hands-off approach.\\nAt the same time, you remain in control. You decide how much capital is allocated to the sub-account, allowing you to manage risk while optimizing potential returns.\\nHowever, this setup requires trust, as you are choosing to assign control over operations to an operator."}},{"question":{"en":"What is Operators"},"answer":{"en":"Operators are trusted parties authorized by the user to manage certain activities on their behalf, such as adding liquidity to pools and optimizing yield strategies.\\nThey act through an Operation Address, which is a wallet designated by the owner to handle sub-account operations.\\nOperation-Only Account (Operation Address)\\nThis is a specific wallet assigned by the owner to manage sub-accounts. It is limited to operational tasks, such as pool configuration and swaps, and cannot transfer or withdraw assets."}},{"question":{"en":"Can Operators access my assets?"},"answer":{"en":"No. Operators cannot access or take control of your funds.\\nWhen you deposit assets, they are stored in your sub-account (a smart contract). Operators can use those assets only to perform approved actions, such as adding liquidity to pools.\\nAny LP tokens received are also held within the sub-account. Operators are only able to return assets and LP tokens back to your main wallet—they cannot withdraw them to their own wallet or any other address."}},{"question":{"en":"Can I stop using operator and Sub-Account?"},"answer":{"en":"Yes. You cannot delete a sub‑account in CoinPool, but you can withdraw all funds from it.\\nOperators can only use the money you put into the sub‑account. They cannot add funds themselves. You always keep full control and can withdraw anytime.\\nHow to stop: Move all funds back to your main account. When the balance is zero, the sub‑account still exists but has no assets, so the operator cannot use it."}},{"question":{"en":"Can I trust Operator?"},"answer":{"en":"Using an operator requires a level of trust, as they are authorized to perform actions on your sub-account. The relationship between you and the operator is entirely your own decision and responsibility. It is important to only assign operators you trust, as this is a private arrangement between both parties."}},{"question":{"en":"Why Do Operators Exist? What Do They Gain?"},"answer":{"en":"Operators are typically experienced users who are familiar with liquidity strategies and want to help others manage their positions more effectively.\\nIn return, they can earn a commission based on the profits generated from the sub-account they manage. This creates a shared incentive—when you earn, they earn—aligning both sides toward better performance.\\nA portion of the LP fees generated from sub-account operations can be allocated to the operator. This percentage is fully controlled by the main account owner and can be set anywhere from 0% to 100%.\\nThe rewards are sent to the operator’s designated operation-only account, which can then distribute these earnings to other wallet addresses if needed."}},{"question":{"en":"Can I manage my Sub-Account without an Operator?"},"answer":{"en":"No. A sub-account can only be created with an assigned operator, and all operational activities are managed by that operator.\\nAs the owner, your role is to provide capital for the sub-account, which the operator can then use for liquidity operations. You remain in control of your funds and can withdraw your assets at any time."}},{"question":{"en":"Does CoinPool use Third-party service?"},"answer":{"en":"Yes. CoinPool integrates with well-established third-party DeFi protocols that are widely used and trusted within the industry.\\nThese include, but are not limited to:\\nUniswap for liquidity provision, LP position management, and fee generation.\\ndeBridge & Relay for cross-chain swaps and asset bridging. These protocols operate independently and are not owned or controlled by CoinPool.\\nAll liquidity, swapping, and bridging activities are executed directly through the smart contracts of these third-party protocols, and are governed solely by their respective rules.\\nCoinPool does not act as a counterparty to any transaction, and does not audit, insure, or guarantee the security or performance of these external services."}},{"question":{"en":"Why Should I Become a Liquidity Provider?"},"answer":{"en":"Becoming a liquidity provider (LP) allows you to earn passive income by supplying tokens to liquidity pools and supporting decentralized trading.\\nKey Benefits\\nEarn Trading Fees: Receive a share of fees generated from every swap in the pool.\\nImproved Capital Efficiency: Your assets remain actively utilized, generating returns over time.\\nAdditionalYieldOpportunities: Some pools offer extra rewards, such as governance tokens.\\nDecentralized & Permissionless: Participate freely without relying on intermediaries.\\nGrowing Asset Exposure: Your token balances can increase over time as liquidity is utilized."}},{"question":{"en":"Can CoinPool Refund My Assets If I Incur Losses?"},"answer":{"en":"No. CoinPool cannot refund or recover any assets.\\nDue to its non-custodial and decentralized nature:\\nAll transactions are final once executed on-chain\\nNo refunds are available under any circumstances\\nFunds cannot be recovered or replaced\\nCoinPool cannot intervene in or override the behavior of third-party protocols"}},{"question":{"en":"Can CoinPool Guarantee Profits?"},"answer":{"en":"No. CoinPool cannot guarantee profits.\\nThe crypto market is inherently volatile, and even experienced participants can face both gains and losses. While CoinPool helps streamline access to liquidity strategies, outcomes ultimately depend on market conditions and individual decisions.\\nUsing sub-accounts with experienced operators may help improve efficiency, but it’s still important to do your own research and understand the risks involved."}},{"question":{"en":"Who Is Responsible If I Incur Losses?"},"answer":{"en":"All decisions—whether it’s providing liquidity, creating a sub-account, or selecting an operator—are made by you. Even if an operator does not generate profits, it remains your responsibility as you chose to assign them.\\nTo use CoinPool, you must:\\nBe at least 18 years old\\nHave the legal capacity to enter into binding agreements\\nBy using CoinPool, you confirm that you meet these requirements and that your actions comply with all applicable laws and regulations."}},{"question":{"en":"What assets are supported on CoinPool?"},"answer":{"en":"CoinPool supports a wide range of assets across EVM-compatible chains and Solana.\\nYou can also add custom assets to create liquidity pools, as long as they belong to supported networks."}},{"question":{"en":"Can I withdraw my funds at any time?"},"answer":{"en":"Yes. You can withdraw your funds at any time.\\nCoinPool is a non-custodial platform, meaning you retain full control of your assets. You can remove liquidity, withdraw funds to your wallet, or manage your positions freely at any time."}},{"question":{"en":"Are there any fees when using CoinPool?"},"answer":{"en":"Yes, there are a few fees to consider:\\nSub-Account Creation Fee: A one-time fee required to create a sub-account, depending on the network:\\nEthereum: 0.01 ETH\\nOptimism: 0.01 ETH\\nArbitrum: 0.01 ETH\\nBase: 0.01 ETH\\nBinance Smart Chain: 0.03 BNB\\nUnichain: 0.01 ETH\\nOperator Commission: A percentage of profits shared with the operator when gains are realized.\\nThis rate is fully configurable and based on a private agreement between you and the operator."}},{"question":{"en":"Why can\'t I set up bots in My Liquidity?"},"answer":{"en":"Users need to create the two bots by clicking the “Create Bots” button in the My Liquidity section.\\nOnly after creating the bots can you proceed with the setup."}},{"question":{"en":"Do you provide information for the Unichain network and Solana networks?"},"answer":{"en":"Currently, querying information on the Unichain and Solana networks is not supported here."}}]')},K={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",webAppUrl:"https://nft-demo.keyring.app",isPackageTest:!0,apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:J,linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"},apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-coinpool":{name:"keyring-chatbot-coinpool",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:J,linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"},apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",webAppUrl:"https://nft.keyring.app",apiExternal:{baseUrl:"https://api.coinpool.app",keyringPool:"https://pool-data.keyring.app"}}},X=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz","https://dev2-coinpool-op.bacoor-test001.xyz","https://rwa.bacoor-test001.xyz","https://test.coinpool.app"],Q=/^tuple(?<array>(\[(\d*)\])*)$/;function Z(e){let n=e.type;if(Q.test(e.type)&&"components"in e){n="(";const t=e.components.length;for(let o=0;o<t;o++)n+=Z(e.components[o]),o<t-1&&(n+=", ");const r=function(e,n){const t=e.exec(n);return t?.groups}(Q,e.type);return n+=`)${r?.array||""}`,Z({...e,type:n})}return"indexed"in e&&e.indexed&&(n=`${n} indexed`),e.name?`${n} ${e.name}`:n}function _(e){let n="";const t=e.length;for(let r=0;r<t;r++)n+=Z(e[r]),r!==t-1&&(n+=", ");return n}function $(e,{includeName:n=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new pe(e.type);return`${e.name}(${ee(e.inputs,{includeName:n})})`}function ee(e,{includeName:n=!1}={}){return e?e.map(e=>function(e,{includeName:n}){return e.type.startsWith("tuple")?`(${ee(e.components,{includeName:n})})${e.type.slice(5)}`:e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:n})).join(n?", ":","):""}function ne(e,{strict:n=!0}={}){return!!e&&"string"==typeof e&&(n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function te(e){return ne(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const re="2.47.0";let oe=`viem@${re}`;class ie extends Error{constructor(e,n={}){const t=n.cause instanceof ie?n.cause.details:n.cause?.message?n.cause.message:n.details,r=n.cause instanceof ie&&n.cause.docsPath||n.docsPath,o=(({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,""]:[],...o?[`Docs: ${o}`]:[],...t?[`Details: ${t}`]:[],...oe?[`Version: ${oe}`]:[]].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=re}walk(e){return ae(this,e)}}function ae(e,n){return n?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?ae(e.cause,n):n?null:e}class se extends ie{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 ue extends ie{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${te(n)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class le extends ie{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 ce extends ie{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 fe extends ie{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${$(e.abiItem)}\`, and`,`\`${n.type}\` in \`${$(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class de extends ie{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 he extends ie{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class pe extends ie{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class me extends ie{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 ye extends ie{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 ve(e,{dir:n,size:t=32}={}){return"string"==typeof e?be(e,{dir:n,size:t}):function(e,{dir:n,size:t=32}={}){if(null===t)return e;if(e.length>t)throw new ye({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let o=0;o<t;o++){const i="right"===n;r[i?o:t-o-1]=e[i?o:e.length-o-1]}return r}(e,{dir:n,size:t})}function be(e,{dir:n,size:t=32}={}){if(null===t)return e;const r=e.replace("0x","");if(r.length>2*t)throw new ye({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r["right"===n?"padEnd":"padStart"](2*t,"0")}`}class we extends ie{constructor({max:e,min:n,signed:t,size:r,value:o}){super(`Number "${o}" is not in safe ${r?`${8*r}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class ge extends ie{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ke(e,{dir:n="left"}={}){let t="string"==typeof e?e.replace("0x",""):e,r=0;for(let o=0;o<t.length-1&&"0"===t["left"===n?o:t.length-o-1].toString();o++)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 Ae(e,{size:n}){if(te(e)>n)throw new ge({givenSize:te(e),maxSize:n})}function Ee(e,n={}){const{signed:t}=n;n.size&&Ae(e,{size:n.size});const r=BigInt(e);if(!t)return r;const o=(e.length-2)/2;return r<=(1n<<8n*BigInt(o)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function Te(e,n={}){const t=Ee(e,n),r=Number(t);if(!Number.isSafeInteger(r))throw new we({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:n.signed,size:n.size,value:`${t}n`});return r}const Se=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function xe(e,n={}){return"number"==typeof e||"bigint"==typeof e?Me(e,n):"string"==typeof e?Re(e,n):"boolean"==typeof e?Ce(e,n):Ie(e,n)}function Ce(e,n={}){const t=`0x${Number(e)}`;return"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{size:n.size})):t}function Ie(e,n={}){let t="";for(let o=0;o<e.length;o++)t+=Se[e[o]];const r=`0x${t}`;return"number"==typeof n.size?(Ae(r,{size:n.size}),ve(r,{dir:"right",size:n.size})):r}function Me(e,n={}){const{signed:t,size:r}=n,o=BigInt(e);let i;r?i=t?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof e&&(i=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"==typeof i&&t?-i-1n:0;if(i&&o>i||o<a){const n="bigint"==typeof e?"n":"";throw new we({max:i?`${i}${n}`:void 0,min:`${a}${n}`,signed:t,size:r,value:`${e}${n}`})}const s=`0x${(t&&o<0?(1n<<BigInt(8*r))+BigInt(o):o).toString(16)}`;return r?ve(s,{size:r}):s}const Oe=/* @__PURE__ */new TextEncoder;function Re(e,n={}){return Ie(Oe.encode(e),n)}const Ne=/* @__PURE__ */new TextEncoder;function Be(e,n={}){return"number"==typeof e||"bigint"==typeof e?function(e,n){return Fe(Me(e,n))}(e,n):"boolean"==typeof e?function(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{size:n.size})):t}(e,n):ne(e)?Fe(e,n):De(e,n)}const Pe={zero:48,nine:57,A:65,F:70,a:97,f:102};function Le(e){return e>=Pe.zero&&e<=Pe.nine?e-Pe.zero:e>=Pe.A&&e<=Pe.F?e-(Pe.A-10):e>=Pe.a&&e<=Pe.f?e-(Pe.a-10):void 0}function Fe(e,n={}){let t=e;n.size&&(Ae(t,{size:n.size}),t=ve(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const o=r.length/2,i=new Uint8Array(o);for(let a=0,s=0;a<o;a++){const e=Le(r.charCodeAt(s++)),n=Le(r.charCodeAt(s++));if(void 0===e||void 0===n)throw new ie(`Invalid byte sequence ("${r[s-2]}${r[s-1]}" in "${r}").`);i[a]=16*e+n}return i}function De(e,n={}){const t=Ne.encode(e);return"number"==typeof n.size?(Ae(t,{size:n.size}),ve(t,{dir:"right",size:n.size})):t}const Ue=/* @__PURE__ */BigInt(2**32-1),He=/* @__PURE__ */BigInt(32);function je(e,n=!1){return n?{h:Number(e&Ue),l:Number(e>>He&Ue)}:{h:0|Number(e>>He&Ue),l:0|Number(e&Ue)}}function qe(e,n=!1){const t=e.length;let r=new Uint32Array(t),o=new Uint32Array(t);for(let i=0;i<t;i++){const{h:t,l:a}=je(e[i],n);[r[i],o[i]]=[t,a]}return[r,o]}const Ve=(e,n,t)=>e>>>t,We=(e,n,t)=>e<<32-t|n>>>t,ze=(e,n,t)=>e>>>t|n<<32-t,Ge=(e,n,t)=>e<<32-t|n>>>t,Ye=(e,n,t)=>e<<64-t|n>>>t-32,Je=(e,n,t)=>e>>>t-32|n<<64-t;function Ke(e,n,t,r){const o=(n>>>0)+(r>>>0);return{h:e+t+(o/2**32|0)|0,l:0|o}}const Xe=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),Qe=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,Ze=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),_e=(e,n,t,r,o)=>n+t+r+o+(e/2**32|0)|0,$e=(e,n,t,r,o)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(o>>>0),en=(e,n,t,r,o,i)=>n+t+r+o+i+(e/2**32|0)|0,nn="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function tn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function rn(e,...n){if(!((t=e)instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw new Error("Uint8Array expected");var t;if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function on(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 an(e,n){rn(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function sn(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function un(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ln(e,n){return e<<32-n|e>>>n}function cn(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const fn=/* @__PURE__ */(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let n=0;n<e.length;n++)e[n]=cn(e[n]);return e};function dn(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)),rn(e),e}class hn{}function pn(e){const n=n=>e().update(dn(n)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function mn(e=32){if(nn&&"function"==typeof nn.getRandomValues)return nn.getRandomValues(new Uint8Array(e));if(nn&&"function"==typeof nn.randomBytes)return Uint8Array.from(nn.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const yn=BigInt(0),vn=BigInt(1),bn=BigInt(2),wn=BigInt(7),gn=BigInt(256),kn=BigInt(113),An=[],En=[],Tn=[];for(let bm=0,wm=vn,gm=1,km=0;bm<24;bm++){[gm,km]=[km,(2*gm+3*km)%5],An.push(2*(5*km+gm)),En.push((bm+1)*(bm+2)/2%64);let e=yn;for(let n=0;n<7;n++)wm=(wm<<vn^(wm>>wn)*kn)%gn,wm&bn&&(e^=vn<<(vn<</* @__PURE__ */BigInt(n))-vn);Tn.push(e)}const Sn=qe(Tn,!0),xn=Sn[0],Cn=Sn[1],In=(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),Mn=(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 On extends hn{constructor(e,n,t,r=!1,o=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=o,tn(t),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var i;this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this.Me()}keccak(){fn(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,o=(r+2)%10,i=t[o],a=t[o+1],s=In(i,a,1)^t[n],u=Mn(i,a,1)^t[n+1];for(let t=0;t<50;t+=10)e[r+t]^=s,e[r+t+1]^=u}let n=e[2],o=e[3];for(let t=0;t<24;t++){const r=En[t],i=In(n,o,r),a=Mn(n,o,r),s=An[t];n=e[s],o=e[s+1],e[s]=i,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]^=xn[r],e[1]^=Cn[r]}sn(t)}(this.state32,this.rounds),fn(this.state32),this.posOut=0,this.pos=0}update(e){on(this),rn(e=dn(e));const{blockLen:n,state:t}=this,r=e.length;for(let o=0;o<r;){const i=Math.min(n-this.pos,r-o);for(let n=0;n<i;n++)t[this.pos++]^=e[o++];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){on(this,!1),rn(e),this.finish();const n=this.state,{blockLen:t}=this;for(let r=0,o=e.length;r<o;){this.posOut>=t&&this.keccak();const i=Math.min(t-this.posOut,o-r);e.set(n.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return tn(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(an(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,sn(this.state)}Me(e){const{blockLen:n,suffix:t,outputLen:r,rounds:o,enableXOF:i}=this;return e||(e=new On(n,t,r,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=t,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}const Rn=/* @__PURE__ */(()=>pn(()=>new On(136,1,32)))();function Nn(e,n){const t=n||"hex",r=Rn(ne(e,{strict:!1})?Be(e):e);return"bytes"===t?r:xe(r)}function Bn(e){return n=function(e){let n=!0,t="",r=0,o="",i=!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?(o+=s,t+=s):","!==e[a-1]&&","!==t&&",("!==t&&(t="",n=!1);else if(" "===s&&["event","function",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}}if(!i)throw new ie("Unable to normalize signature.");return o}("string"==typeof(t=e)?t:"function"===(r=t).type?`function ${r.name}(${_(r.inputs)})${r.stateMutability&&"nonpayable"!==r.stateMutability?` ${r.stateMutability}`:""}${r.outputs?.length?` returns (${_(r.outputs)})`:""}`:"event"===r.type?`event ${r.name}(${_(r.inputs)})`:"error"===r.type?`error ${r.name}(${_(r.inputs)})`:"constructor"===r.type?`constructor(${_(r.inputs)})${"payable"===r.stateMutability?" payable":""}`:"fallback"===r.type?"fallback() external"+("payable"===r.stateMutability?" payable":""):"receive() external payable"),Nn(Be(n));var n,t,r}const Pn=Bn;class Ln extends ie{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 Fn 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 Dn=/* @__PURE__ */new Fn(8192),Un=/^0x[a-fA-F0-9]{40}$/,Hn=/* @__PURE__ */new Fn(8192);function jn(e,n){const{strict:t=!0}=n??{},r=`${e}.${t}`;if(Hn.has(r))return Hn.get(r);const o=!(!Un.test(e)||e.toLowerCase()!==e&&t&&function(e){if(Dn.has(`${e}.undefined`))return Dn.get(`${e}.undefined`);const n=e.substring(2).toLowerCase(),t=Nn(De(n),"bytes"),r=n.split("");for(let i=0;i<40;i+=2)t[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(15&t[i>>1])>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const o=`0x${r.join("")}`;return Dn.set(`${e}.undefined`,o),o}(e)!==e);return Hn.set(r,o),o}function qn(e){return"string"==typeof e[0]?Vn(e):function(e){let n=0;for(const o of e)n+=o.length;const t=new Uint8Array(n);let r=0;for(const o of e)t.set(o,r),r+=o.length;return t}(e)}function Vn(e){return`0x${e.reduce((e,n)=>e+n.replace("0x",""),"")}`}function Wn(e,n,t,{strict:r}={}){return ne(e,{strict:!1})?function(e,n,t,{strict:r}={}){zn(e,n);const o=`0x${e.replace("0x","").slice(2*(n??0),2*(t??e.length))}`;return r&&Gn(o,n,t),o}(e,n,t,{strict:r}):function(e,n,t,{strict:r}={}){zn(e,n);const o=e.slice(n,t);return r&&Gn(o,n,t),o}(e,n,t,{strict:r})}function zn(e,n){if("number"==typeof n&&n>0&&n>te(e)-1)throw new me({offset:n,position:"start",size:te(e)})}function Gn(e,n,t){if("number"==typeof n&&"number"==typeof t&&te(e)!==t-n)throw new me({offset:t,position:"end",size:te(e)})}const Yn=/^(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 Jn(e,n){if(e.length!==n.length)throw new le({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(Kn({param:e[r],value:n[r]}));return t}({params:e,values:n}),r=Xn(t);return 0===r.length?"0x":r}function Kn({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,o]=t;return function(e,{length:n,param:t}){const r=null===n;if(!Array.isArray(e))throw new he(e);if(!r&&e.length!==n)throw new se({expectedLength:n,givenLength:e.length,type:`${t.type}[${n}]`});let o=!1;const i=[];for(let a=0;a<e.length;a++){const n=Kn({param:t,value:e[a]});n.dynamic&&(o=!0),i.push(n)}if(r||o){const e=Xn(i);if(r){const n=Me(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?qn([n,e]):n}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:qn(i.map(({encoded:e})=>e))}}(n,{length:r,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:n}){let t=!1;const r=[];for(let o=0;o<n.components.length;o++){const i=n.components[o],a=Kn({param:i,value:e[Array.isArray(e)?o:i.name]});r.push(a),a.dynamic&&(t=!0)}return{dynamic:t,encoded:t?Xn(r):qn(r.map(({encoded:e})=>e))}}(n,{param:e});if("address"===e.type)return function(e){if(!jn(e))throw new Ln({address:e});return{dynamic:!1,encoded:be(e.toLowerCase())}}(n);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new ie(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:be(Ce(e))}}(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const t=e.type.startsWith("int"),[,,r="256"]=Yn.exec(e.type)??[];return function(e,{signed:n,size:t=256}){if("number"==typeof t){const r=2n**(BigInt(t)-(n?1n:0n))-1n,o=n?-r-1n:0n;if(e>r||e<o)throw new we({max:r.toString(),min:o.toString(),signed:n,size:t/8,value:e.toString()})}return{dynamic:!1,encoded:Me(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=te(e);if(!t){let n=e;return r%32!=0&&(n=be(n,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:qn([be(Me(r,{size:32})),n])}}if(r!==Number.parseInt(t,10))throw new ue({expectedSize:Number.parseInt(t,10),value:e});return{dynamic:!1,encoded:be(e,{dir:"right"})}}(n,{param:e});if("string"===e.type)return function(e){const n=Re(e),t=Math.ceil(te(n)/32),r=[];for(let o=0;o<t;o++)r.push(be(Wn(n,32*o,32*(o+1)),{dir:"right"}));return{dynamic:!0,encoded:qn([be(Me(te(n),{size:32})),...r])}}(n);throw new de(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Xn(e){let n=0;for(let i=0;i<e.length;i++){const{dynamic:t,encoded:r}=e[i];n+=t?32:te(r)}const t=[],r=[];let o=0;for(let i=0;i<e.length;i++){const{dynamic:a,encoded:s}=e[i];a?(t.push(Me(n+o,{size:32})),r.push(s),o+=te(s)):t.push(s)}return qn([...t,...r])}const Qn=e=>Wn(Bn(e),0,4);function Zn(e,n){const t=typeof e,r=n.type;switch(r){case"address":return jn(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&&Zn(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=>Zn(e,{...n,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))}}function _n(e,n,t){for(const r in e){const o=e[r],i=n[r];if("tuple"===o.type&&"tuple"===i.type&&"components"in o&&"components"in i)return _n(o.components,i.components,t[r]);const a=[o.type,i.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&jn(t[r],{strict:!1}))())return a}}function $n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const et="/docs/contract/encodeFunctionData";function nt(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 o=n[0];if(r){const e=function(e){const{abi:n,args:t=[],name:r}=e,o=ne(r,{strict:!1}),i=n.filter(e=>o?"function"===e.type?Qn(e)===r:"event"===e.type&&Pn(e)===r:"name"in e&&e.name===r);if(0===i.length)return;if(1===i.length)return i[0];let a;for(const s of i)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&&Zn(e,t)})){if(a&&"inputs"in a&&a.inputs){const e=_n(s.inputs,a.inputs,t);if(e)throw new fe({abiItem:s,type:e[0]},{abiItem:a,type:e[1]})}a=s}}else if(!s.inputs||0===s.inputs.length)return s;return a||i[0]}({abi:n,args:t,name:r});if(!e)throw new ce(r,{docsPath:et});o=e}if("function"!==o.type)throw new ce(void 0,{docsPath:et});return{abi:[o],functionName:Qn($(o))}}(e),o=t[0];return Vn([r,("inputs"in o&&o.inputs?Jn(o.inputs,n??[]):void 0)??"0x"])}class tt extends ie{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class rt extends ie{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class ot extends ie{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const it={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 ot({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new rt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tt({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 tt({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.Oe();const e=this.inspectByte();return this.position++,e},readBytes(e,n){this.assertReadLimit(),this.Oe();const t=this.inspectBytes(e);return this.position+=n??e,t},readUint8(){this.assertReadLimit(),this.Oe();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.Oe();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.Oe();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.Oe();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},Oe(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function at(e,{recursiveReadLimit:n=8192}={}){const t=Object.create(it);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 st={gwei:9,wei:18},ut={ether:-9,wei:9};function lt(e,n){let t=e.toString();const r=t.startsWith("-");r&&(t=t.slice(1)),t=t.padStart(n,"0");let[o,i]=[t.slice(0,t.length-n),t.slice(t.length-n)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${o||"0"}${i?`.${i}`:""}`}function ct(e,n="wei"){return lt(e,st[n])}function ft(e,n="wei"){return lt(e,ut[n])}function dt(e){return e.reduce((e,{slot:n,value:t})=>`${e} ${n}: ${t}\n`,"")}function ht(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 pt extends ie{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class mt extends ie{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",ht(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 yt extends ie{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 vt extends ie{constructor(e,{account:n,docsPath:t,chain:r,data:o,gas:i,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:u,nonce:l,to:c,value:f,stateOverride:d}){const h=n?$n(n):void 0;let p=ht({from:h?.address,to:c,value:void 0!==f&&`${ct(f)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==a&&`${ft(a)} gwei`,maxFeePerGas:void 0!==s&&`${ft(s)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${ft(u)} gwei`,nonce:l});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+=dt(t.state)),t.stateDiff&&(r+=" stateDiff:\n",r+=dt(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 bt(e,n="hex"){const t=wt(e),r=at(new Uint8Array(t.length));return t.encode(r),"hex"===n?Ie(r.bytes):r.bytes}function wt(e){return Array.isArray(e)?function(e){const n=e.reduce((e,n)=>e+n.length,0),t=gt(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=>wt(e))):function(e){const n="string"==typeof e?Fe(e):e,t=gt(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 gt(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 ie("Length is too large.")}class kt extends ie{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(kt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(kt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class At extends ie{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ft(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(At,"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 Et extends ie{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ft(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Et,"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 Tt extends ie{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(Tt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class St extends ie{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(St,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class xt extends ie{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ct extends ie{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(Ct,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class It extends ie{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(It,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Mt extends ie{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(Mt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ot extends ie{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ot,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Rt extends ie{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:t}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${ft(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${ft(t)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(Rt,"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 Nt extends ie{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function Bt(e,{format:n}){if(!n)return{};const t={};return function n(r){const o=Object.keys(r);for(const i of o)i in e&&(t[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&n(r[i])}(n(e||{})),t}function Pt(e,n){return({exclude:t,format:r})=>({exclude:t,format:(e,o)=>{const i=n(e,o);if(t)for(const n of t)delete i[n];return{...i,...r(e,o)}},type:e})}const Lt={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ft(e,n){const t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?Me(BigInt(e.r)):e.r,s:e.s?Me(BigInt(e.s)):e.s,chainId:Me(e.chainId),nonce:Me(e.nonce),...void 0!==e.yParity?{yParity:Me(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Me(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=>Ie(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=Me(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=Me(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=Me(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=Me(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=Me(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=Me(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=Lt[e.type]),void 0!==e.value&&(t.value=Me(e.value)),t}const Dt=2n**256n-1n,Ut={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Ht(e,n){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Te(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?Te(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ut[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 jt=/* @__PURE__ */Pt("transaction",Ht);function qt(e,n){const t=(e.transactions??[]).map(e=>"string"==typeof e?e:Ht(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 Vt=/* @__PURE__ */Pt("block",qt);function Wt(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=>Fe(e)):e.blobs,o=[];for(const i of r)o.push(Uint8Array.from(n.blobToKzgCommitment(i)));return"bytes"===t?o:o.map(e=>Ie(e))}function zt(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=>Fe(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>Fe(e)):e.commitments,i=[];for(let a=0;a<r.length;a++){const e=r[a],t=o[a];i.push(Uint8Array.from(n.computeBlobKzgProof(e,t)))}return"bytes"===t?i:i.map(e=>Ie(e))}function Gt(e,n,t){return e&n^~e&t}function Yt(e,n,t){return e&n^e&t^n&t}class Jt extends hn{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=un(this.buffer)}update(e){on(this),rn(e=dn(e));const{view:n,buffer:t,blockLen:r}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(r-this.pos,o-i);if(a===r){const n=un(e);for(;r<=o-i;i+=r)this.process(n,i);continue}t.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){on(this),an(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:o}=this;let{pos:i}=this;n[i++]=128,sn(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(t,0),i=0);for(let c=i;c<r;c++)n[c]=0;!function(e,n,t,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(n,t,r);const o=BigInt(32),i=BigInt(4294967295),a=Number(t>>o&i),s=Number(t&i),u=r?4:0,l=r?0:4;e.setUint32(n+u,a,r),e.setUint32(n+l,s,r)}(t,r-8,BigInt(8*this.length),o),this.process(t,0);const a=un(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=s/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<u;c++)a.setUint32(4*c,l[c],o)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}Me(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:r,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this.Me()}}const Kt=/* @__PURE__ */Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xt=/* @__PURE__ */Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Qt=/* @__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]),Zt=/* @__PURE__ */new Uint32Array(64);class _t extends Jt{constructor(e=32){super(64,e,8,!1),this.A=0|Kt[0],this.B=0|Kt[1],this.C=0|Kt[2],this.D=0|Kt[3],this.E=0|Kt[4],this.F=0|Kt[5],this.G=0|Kt[6],this.H=0|Kt[7]}get(){const{A:e,B:n,C:t,D:r,E:o,F:i,G:a,H:s}=this;return[e,n,t,r,o,i,a,s]}set(e,n,t,r,o,i,a,s){this.A=0|e,this.B=0|n,this.C=0|t,this.D=0|r,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,n){for(let c=0;c<16;c++,n+=4)Zt[c]=e.getUint32(n,!1);for(let c=16;c<64;c++){const e=Zt[c-15],n=Zt[c-2],t=ln(e,7)^ln(e,18)^e>>>3,r=ln(n,17)^ln(n,19)^n>>>10;Zt[c]=r+Zt[c-7]+t+Zt[c-16]|0}let{A:t,B:r,C:o,D:i,E:a,F:s,G:u,H:l}=this;for(let c=0;c<64;c++){const e=l+(ln(a,6)^ln(a,11)^ln(a,25))+Gt(a,s,u)+Qt[c]+Zt[c]|0,n=(ln(t,2)^ln(t,13)^ln(t,22))+Yt(t,r,o)|0;l=u,u=s,s=a,a=i+e|0,i=o,o=r,r=t,t=e+n|0}t=t+this.A|0,r=r+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(t,r,o,i,a,s,u,l)}roundClean(){sn(Zt)}destroy(){this.set(0,0,0,0,0,0,0,0),sn(this.buffer)}}const $t=/* @__PURE__ */(()=>qe(["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))))(),er=/* @__PURE__ */(()=>$t[0])(),nr=/* @__PURE__ */(()=>$t[1])(),tr=/* @__PURE__ */new Uint32Array(80),rr=/* @__PURE__ */new Uint32Array(80);class or extends Jt{constructor(e=64){super(128,e,16,!1),this.Ah=0|Xt[0],this.Al=0|Xt[1],this.Bh=0|Xt[2],this.Bl=0|Xt[3],this.Ch=0|Xt[4],this.Cl=0|Xt[5],this.Dh=0|Xt[6],this.Dl=0|Xt[7],this.Eh=0|Xt[8],this.El=0|Xt[9],this.Fh=0|Xt[10],this.Fl=0|Xt[11],this.Gh=0|Xt[12],this.Gl=0|Xt[13],this.Hh=0|Xt[14],this.Hl=0|Xt[15]}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:o,Cl:i,Dh:a,Dl:s,Eh:u,El:l,Fh:c,Fl:f,Gh:d,Gl:h,Hh:p,Hl:m}=this;return[e,n,t,r,o,i,a,s,u,l,c,f,d,h,p,m]}set(e,n,t,r,o,i,a,s,u,l,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|o,this.Cl=0|i,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|l,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 b=0;b<16;b++,n+=4)tr[b]=e.getUint32(n),rr[b]=e.getUint32(n+=4);for(let b=16;b<80;b++){const e=0|tr[b-15],n=0|rr[b-15],t=ze(e,n,1)^ze(e,n,8)^Ve(e,0,7),r=Ge(e,n,1)^Ge(e,n,8)^We(e,n,7),o=0|tr[b-2],i=0|rr[b-2],a=ze(o,i,19)^Ye(o,i,61)^Ve(o,0,6),s=Ge(o,i,19)^Je(o,i,61)^We(o,i,6),u=Ze(r,s,rr[b-7],rr[b-16]),l=_e(u,t,a,tr[b-7],tr[b-16]);tr[b]=0|l,rr[b]=0|u}let{Ah:t,Al:r,Bh:o,Bl:i,Ch:a,Cl:s,Dh:u,Dl:l,Eh:c,El:f,Fh:d,Fl:h,Gh:p,Gl:m,Hh:y,Hl:v}=this;for(let b=0;b<80;b++){const e=ze(c,f,14)^ze(c,f,18)^Ye(c,f,41),n=Ge(c,f,14)^Ge(c,f,18)^Je(c,f,41),w=c&d^~c&p,g=$e(v,n,f&h^~f&m,nr[b],rr[b]),k=en(g,y,e,w,er[b],tr[b]),A=0|g,E=ze(t,r,28)^Ye(t,r,34)^Ye(t,r,39),T=Ge(t,r,28)^Je(t,r,34)^Je(t,r,39),S=t&o^t&a^o&a,x=r&i^r&s^i&s;y=0|p,v=0|m,p=0|d,m=0|h,d=0|c,h=0|f,({h:c,l:f}=Ke(0|u,0|l,0|k,0|A)),u=0|a,l=0|s,a=0|o,s=0|i,o=0|t,i=0|r;const C=Xe(A,T,x);t=Qe(C,k,E,S),r=0|C}({h:t,l:r}=Ke(0|this.Ah,0|this.Al,0|t,0|r)),({h:o,l:i}=Ke(0|this.Bh,0|this.Bl,0|o,0|i)),({h:a,l:s}=Ke(0|this.Ch,0|this.Cl,0|a,0|s)),({h:u,l:l}=Ke(0|this.Dh,0|this.Dl,0|u,0|l)),({h:c,l:f}=Ke(0|this.Eh,0|this.El,0|c,0|f)),({h:d,l:h}=Ke(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:m}=Ke(0|this.Gh,0|this.Gl,0|p,0|m)),({h:y,l:v}=Ke(0|this.Hh,0|this.Hl,0|y,0|v)),this.set(t,r,o,i,a,s,u,l,c,f,d,h,p,m,y,v)}roundClean(){sn(tr,rr)}destroy(){sn(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ir=/* @__PURE__ */pn(()=>new _t),ar=/* @__PURE__ */pn(()=>new or),sr=ir;function ur(e){const{commitment:n,version:t=1}=e,r=e.to??("string"==typeof n?"hex":"bytes"),o=sr(ne(i=n,{strict:!1})?Be(i):i);var i;return o.set([t],0),"bytes"===r?o:Ie(o)}const lr=761855;class cr extends ie{constructor({maxSize:e,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class fr extends ie{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class dr extends ie{constructor({hash:e,size:n}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class hr extends ie{constructor({hash:e,version:n}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}const pr=/* @__PURE__ */BigInt(0),mr=/* @__PURE__ */BigInt(1);function yr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function vr(e){if(!yr(e))throw new Error("Uint8Array expected")}function br(e,n){if("boolean"!=typeof n)throw new Error(e+" boolean expected, got "+n)}function wr(e){const n=e.toString(16);return 1&n.length?"0"+n:n}function gr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?pr:BigInt("0x"+e)}const kr="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Ar=/* @__PURE__ */Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Er(e){if(vr(e),kr)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=Ar[e[t]];return n}function Tr(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Sr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(kr)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 o=0,i=0;o<t;o++,i+=2){const n=Tr(e.charCodeAt(i)),t=Tr(e.charCodeAt(i+1));if(void 0===n||void 0===t){const n=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+n+'" at index '+i)}r[o]=16*n+t}return r}function xr(e){return gr(Er(e))}function Cr(e){return vr(e),gr(Er(Uint8Array.from(e).reverse()))}function Ir(e,n){return Sr(e.toString(16).padStart(2*n,"0"))}function Mr(e,n){return Ir(e,n).reverse()}function Or(e,n,t){let r;if("string"==typeof n)try{r=Sr(n)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else{if(!yr(n))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(n)}const o=r.length;if("number"==typeof t&&o!==t)throw new Error(e+" of length "+t+" expected, got "+o);return r}function Rr(...e){let n=0;for(let r=0;r<e.length;r++){const t=e[r];vr(t),n+=t.length}const t=new Uint8Array(n);for(let r=0,o=0;r<e.length;r++){const n=e[r];t.set(n,o),o+=n.length}return t}const Nr=e=>"bigint"==typeof e&&pr<=e;function Br(e,n,t){return Nr(e)&&Nr(n)&&Nr(t)&&n<=e&&e<t}function Pr(e,n,t,r){if(!Br(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}const Lr=e=>(mr<<BigInt(e))-mr,Fr=e=>new Uint8Array(e),Dr=e=>Uint8Array.from(e),Ur={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||yr(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,n)=>n.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function Hr(e,n,t={}){const r=(n,t,r)=>{const o=Ur[t];if("function"!=typeof o)throw new Error("invalid validator function");const i=e[n];if(!(r&&void 0===i||o(i,e)))throw new Error("param "+String(n)+" is invalid. Expected "+t+", got "+i)};for(const[o,i]of Object.entries(n))r(o,i,!1);for(const[o,i]of Object.entries(t))r(o,i,!0);return e}function jr(e){const n=/* @__PURE__ */new WeakMap;return(t,...r)=>{const o=n.get(t);if(void 0!==o)return o;const i=e(t,...r);return n.set(t,i),i}}class qr extends ie{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Vr extends ie{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 Wr={"0x0":"reverted","0x1":"success"};function zr(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?Te(e.transactionIndex):null,status:e.status?Wr[e.status]:null,type:e.type?Ut[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const Gr=/* @__PURE__ */Pt("transactionReceipt",zr);function Yr(e){const{chainId:n,maxPriorityFeePerGas:t,maxFeePerGas:r,to:o}=e;if(n<=0)throw new qr({chainId:n});if(o&&!jn(o))throw new Ln({address:o});if(r&&r>Dt)throw new At({maxFeePerGas:r});if(t&&r&&t>r)throw new Rt({maxFeePerGas:r,maxPriorityFeePerGas:t})}function Jr(e){if(!e||0===e.length)return[];const n=[];for(let t=0;t<e.length;t++){const{address:r,storageKeys:o}=e[t];for(let e=0;e<o.length;e++)if(o[e].length-2!=64)throw new yt({storageKey:o[e]});if(!jn(r,{strict:!1}))throw new Ln({address:r});n.push([r,o])}return n}function Kr(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 mt({transaction:e})}(e);return"eip1559"===t?function(e,n){const{chainId:t,gas:r,nonce:o,to:i,value:a,maxFeePerGas:s,maxPriorityFeePerGas:u,accessList:l,data:c}=e;Yr(e);const f=Jr(l);return Vn(["0x02",bt([Me(t),o?Me(o):"0x",u?Me(u):"0x",s?Me(s):"0x",r?Me(r):"0x",i??"0x",a?Me(a):"0x",c??"0x",f,...Xr(e,n)])])}(e,n):"eip2930"===t?function(e,n){const{chainId:t,gas:r,data:o,nonce:i,to:a,value:s,accessList:u,gasPrice:l}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:o,to:i}=e;if(n<=0)throw new qr({chainId:n});if(i&&!jn(i))throw new Ln({address:i});if(t||o)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Dt)throw new At({maxFeePerGas:r})}(e);const c=Jr(u);return Vn(["0x01",bt([Me(t),i?Me(i):"0x",l?Me(l):"0x",r?Me(r):"0x",a??"0x",s?Me(s):"0x",o??"0x",c,...Xr(e,n)])])}(e,n):"eip4844"===t?function(e,n){const{chainId:t,gas:r,nonce:o,to:i,value:a,maxFeePerBlobGas:s,maxFeePerGas:u,maxPriorityFeePerGas:l,accessList:c,data:f}=e;!function(e){const{blobVersionedHashes:n}=e;if(n){if(0===n.length)throw new fr;for(const e of n){const n=te(e),t=Te(Wn(e,0,1));if(32!==n)throw new dr({hash:e,size:n});if(1!==t)throw new hr({hash:e,version:t})}}Yr(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=>Ie(e)),t=e.kzg,r=Wt({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"),o=[];for(const i of n)o.push(ur({commitment:i,to:r,version:t}));return o}({commitments:r})),void 0===h&&(h=function(e){const{data:n,kzg:t,to:r}=e,o=e.blobs??function(e){const n=e.to??("string"==typeof e.data?"hex":"bytes"),t="string"==typeof e.data?Fe(e.data):e.data,r=te(t);if(!r)throw new fr;if(r>lr)throw new cr({maxSize:lr,size:r});const o=[];let i=!0,a=0;for(;i;){const e=at(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),i=!1;break}n++,a+=31}o.push(e)}return"bytes"===n?o.map(e=>e.bytes):o.map(e=>Ie(e.bytes))}({data:n,to:r}),i=e.commitments??Wt({blobs:o,kzg:t,to:r}),a=e.proofs??zt({blobs:o,commitments:i,kzg:t,to:r}),s=[];for(let u=0;u<o.length;u++)s.push({blob:o[u],commitment:i[u],proof:a[u]});return s}({blobs:n,commitments:r,proofs:zt({blobs:n,commitments:r,kzg:t})}))}const p=Jr(c),m=[Me(t),o?Me(o):"0x",l?Me(l):"0x",u?Me(u):"0x",r?Me(r):"0x",i??"0x",a?Me(a):"0x",f??"0x",p,s?Me(s):"0x",d??[],...Xr(e,n)],y=[],v=[],b=[];if(h)for(let w=0;w<h.length;w++){const{blob:e,commitment:n,proof:t}=h[w];y.push(e),v.push(n),b.push(t)}return Vn(["0x03",bt(h?[m,y,v,b]:m)])}(e,n):"eip7702"===t?function(e,n){const{authorizationList:t,chainId:r,gas:o,nonce:i,to:a,value:s,maxFeePerGas:u,maxPriorityFeePerGas:l,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(!jn(n))throw new Ln({address:n});if(e<0)throw new qr({chainId:e})}Yr(e)}(e);const d=Jr(c),h=function(e){if(!e||0===e.length)return[];const n=[];for(const t of e){const{chainId:e,nonce:r,...o}=t,i=t.address;n.push([e?xe(e):"0x",i,r?xe(r):"0x",...Xr({},o)])}return n}(t);return Vn(["0x04",bt([Me(r),i?Me(i):"0x",l?Me(l):"0x",u?Me(u):"0x",o?Me(o):"0x",a??"0x",s?Me(s):"0x",f??"0x",d,h,...Xr(e,n)])])}(e,n):function(e,n){const{chainId:t=0,gas:r,data:o,nonce:i,to:a,value:s,gasPrice:u}=e;!function(e){const{chainId:n,maxPriorityFeePerGas:t,gasPrice:r,maxFeePerGas:o,to:i}=e;if(i&&!jn(i))throw new Ln({address:i});if(void 0!==n&&n<=0)throw new qr({chainId:n});if(t||o)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Dt)throw new At({maxFeePerGas:r})}(e);let l=[i?Me(i):"0x",u?Me(u):"0x",r?Me(r):"0x",a??"0x",s?Me(s):"0x",o??"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 pt({v:n.v});return e})(),r=ke(n.r),o=ke(n.s);l=[...l,Me(e),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}else t>0&&(l=[...l,Me(t),"0x","0x"]);return bt(l)}(e,n)}function Xr(e,n){const t=n??e,{v:r,yParity:o}=t;if(void 0===t.r)return[];if(void 0===t.s)return[];if(void 0===r&&void 0===o)return[];const i=ke(t.r),a=ke(t.s);return["number"==typeof o?o?Me(1):"0x":0n===r?"0x":1n===r?Me(1):27n===r?"0x":Me(1),"0x00"===i?"0x":i,"0x00"===a?"0x":a]}function Qr(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,o={...n,...r};return Object.assign(o,{extend:e(o)})}}(n)})}class Zr extends hn{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");tn(e.outputLen),tn(e.blockLen)}(e);const t=dn(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,o=new Uint8Array(r);o.set(t.length>r?e.create().update(t).digest():t);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=e.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),sn(o)}update(e){return on(this),this.iHash.update(e),this}digestInto(e){on(this),rn(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}Me(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:r,destroyed:o,blockLen:i,outputLen:a}=this;return e.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=a,e.oHash=n.Me(e.oHash),e.iHash=t.Me(e.iHash),e}clone(){return this.Me()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const _r=(e,n,t)=>new Zr(e,n).update(t).digest();_r.create=(e,n)=>new Zr(e,n);const $r=BigInt(0),eo=BigInt(1),no=/* @__PURE__ */BigInt(2),to=/* @__PURE__ */BigInt(3),ro=/* @__PURE__ */BigInt(4),oo=/* @__PURE__ */BigInt(5),io=/* @__PURE__ */BigInt(8);function ao(e,n){const t=e%n;return t>=$r?t:n+t}function so(e,n,t){let r=e;for(;n-- >$r;)r*=r,r%=t;return r}function uo(e,n){if(e===$r)throw new Error("invert: expected non-zero number");if(n<=$r)throw new Error("invert: expected positive modulus, got "+n);let t=ao(e,n),r=n,o=$r,i=eo;for(;t!==$r;){const e=r%t,n=o-i*(r/t);r=t,t=e,o=i,i=n}if(r!==eo)throw new Error("invert: does not exist");return ao(o,n)}function lo(e,n){const t=(e.ORDER+eo)/ro,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function co(e,n){const t=(e.ORDER-oo)/io,r=e.mul(n,no),o=e.pow(r,t),i=e.mul(n,o),a=e.mul(e.mul(i,no),o),s=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),n))throw new Error("Cannot find square root");return s}const fo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ho(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),o=n.reduce((n,t,o)=>e.is0(t)?n:(r[o]=n,e.mul(n,t)),e.ONE),i=e.inv(o);return n.reduceRight((n,t,o)=>e.is0(t)?n:(r[o]=e.mul(n,r[o]),e.mul(n,t)),i),r}function po(e,n){const t=(e.ORDER-eo)/no,r=e.pow(n,t),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function mo(e,n){void 0!==n&&tn(n);const t=void 0!==n?n:e.toString(2).length;return{nBitLength:t,nByteLength:Math.ceil(t/8)}}function yo(e,n,t=!1,r={}){if(e<=$r)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:i}=mo(e,n);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,isLE:t,BITS:o,BYTES:i,MASK:Lr(o),ZERO:$r,ONE:eo,create:n=>ao(n,e),isValid:n=>{if("bigint"!=typeof n)throw new Error("invalid field element: expected bigint, got "+typeof n);return $r<=n&&n<e},is0:e=>e===$r,isOdd:e=>(e&eo)===eo,neg:n=>ao(-n,e),eql:(e,n)=>e===n,sqr:n=>ao(n*n,e),add:(n,t)=>ao(n+t,e),sub:(n,t)=>ao(n-t,e),mul:(n,t)=>ao(n*t,e),pow:(e,n)=>function(e,n,t){if(t<$r)throw new Error("invalid exponent, negatives unsupported");if(t===$r)return e.ONE;if(t===eo)return n;let r=e.ONE,o=n;for(;t>$r;)t&eo&&(r=e.mul(r,o)),o=e.sqr(o),t>>=eo;return r}(s,e,n),div:(n,t)=>ao(n*uo(t,e),e),sqrN:e=>e*e,addN:(e,n)=>e+n,subN:(e,n)=>e-n,mulN:(e,n)=>e*n,inv:n=>uo(n,e),sqrt:r.sqrt||(n=>{return a||(a=(t=e)%ro===to?lo:t%io===oo?co:function(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-eo,t=0;for(;n%no===$r;)n/=no,t++;let r=no;const o=yo(e);for(;1===po(o,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===t)return lo;let i=o.pow(r,n);const a=(n+eo)/no;return function(e,r){if(e.is0(r))return r;if(1!==po(e,r))throw new Error("Cannot find square root");let o=t,s=e.mul(e.ONE,i),u=e.pow(r,n),l=e.pow(r,a);for(;!e.eql(u,e.ONE);){if(e.is0(u))return e.ZERO;let n=1,t=e.sqr(u);for(;!e.eql(t,e.ONE);)if(n++,t=e.sqr(t),n===o)throw new Error("Cannot find square root");const r=eo<<BigInt(o-n-1),i=e.pow(s,r);o=n,s=e.sqr(i),u=e.mul(u,s),l=e.mul(l,i)}return l}}(t)),a(s,n);var t}),toBytes:e=>t?Mr(e,i):Ir(e,i),fromBytes:e=>{if(e.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+e.length);return t?Cr(e):xr(e)},invertBatch:e=>ho(s,e),cmov:(e,n,t)=>t?n:e});return Object.freeze(s)}function vo(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 bo(e){const n=vo(e);return n+Math.ceil(n/2)}const wo=BigInt(0),go=BigInt(1);function ko(e,n){const t=n.negate();return e?t:n}function Ao(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Eo(e,n){Ao(e,n);const t=2**e;return{windows:Math.ceil(n/e)+1,windowSize:2**(e-1),mask:Lr(e),maxNumber:t,shiftBy:BigInt(e)}}function To(e,n,t){const{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=t;let s=Number(e&o),u=e>>a;s>r&&(s-=i,u+=go);const l=n*r;return{nextN:u,offset:l+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:n%2!=0,offsetF:l}}const So=/* @__PURE__ */new WeakMap,xo=/* @__PURE__ */new WeakMap;function Co(e){return xo.get(e)||1}function Io(e,n){return{constTimeNegate:ko,hasPrecomputes:e=>1!==Co(e),unsafeLadder(n,t,r=e.ZERO){let o=n;for(;t>wo;)t&go&&(r=r.add(o)),o=o.double(),t>>=go;return r},precomputeWindow(e,t){const{windows:r,windowSize:o}=Eo(t,n),i=[];let a=e,s=a;for(let n=0;n<r;n++){s=a,i.push(s);for(let e=1;e<o;e++)s=s.add(a),i.push(s);a=s.double()}return i},wNAF(t,r,o){let i=e.ZERO,a=e.BASE;const s=Eo(t,n);for(let e=0;e<s.windows;e++){const{nextN:n,offset:t,isZero:u,isNeg:l,isNegF:c,offsetF:f}=To(o,e,s);o=n,u?a=a.add(ko(c,r[f])):i=i.add(ko(l,r[t]))}return{p:i,f:a}},wNAFUnsafe(t,r,o,i=e.ZERO){const a=Eo(t,n);for(let e=0;e<a.windows&&o!==wo;e++){const{nextN:n,offset:t,isZero:s,isNeg:u}=To(o,e,a);if(o=n,!s){const e=r[t];i=i.add(u?e.negate():e)}}return i},getPrecomputes(e,n,t){let r=So.get(n);return r||(r=this.precomputeWindow(n,e),1!==e&&So.set(n,t(r))),r},wNAFCached(e,n,t){const r=Co(e);return this.wNAF(r,this.getPrecomputes(r,e,t),n)},wNAFCachedUnsafe(e,n,t,r){const o=Co(e);return 1===o?this.unsafeLadder(e,n,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,t),n,r)},setWindowSize(e,t){Ao(t,n),xo.set(e,t),So.delete(e)}}}function Mo(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 o=t.length,i=r.length;if(o!==i)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=function(e){let n;for(n=0;e>pr;e>>=mr,n+=1);return n}(BigInt(o));let u=1;s>12?u=s-3:s>4?u=s-2:s>0&&(u=2);const l=Lr(u),c=new Array(Number(l)+1).fill(a);let f=a;for(let d=Math.floor((n.BITS-1)/u)*u;d>=0;d-=u){c.fill(a);for(let n=0;n<i;n++){const e=r[n],o=Number(e>>BigInt(d)&l);c[o]=c[o].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<u;n++)f=f.double()}return f}function Oo(e){return Hr(e.Fp,fo.reduce((e,n)=>(e[n]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),Hr(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...mo(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function Ro(e){void 0!==e.lowS&&br("lowS",e.lowS),void 0!==e.prehash&&br("prehash",e.prehash)}class No extends Error{constructor(e=""){super(e)}}const Bo={Err:No,Re:{encode:(e,n)=>{const{Err:t}=Bo;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,o=wr(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const i=r>127?wr(o.length/2|128):"";return wr(e)+i+o+n},decode(e,n){const{Err:t}=Bo;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 o=n[r++];let i=0;if(128&o){const e=127&o;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)i=i<<8|n;if(r+=e,i<128)throw new t("tlv.decode(long): not minimal encoding")}else i=o;const a=n.subarray(r,r+i);if(a.length!==i)throw new t("tlv.decode: wrong value length");return{v:a,l:n.subarray(r+i)}}},Ne:{encode(e){const{Err:n}=Bo;if(e<Lo)throw new n("integer: negative integers are not allowed");let t=wr(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}=Bo;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 xr(e)}},toSig(e){const{Err:n,Ne:t,Re:r}=Bo,o=Or("signature",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:s,l:u}=r.decode(2,i),{v:l,l:c}=r.decode(2,u);if(c.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(s),s:t.decode(l)}},hexFromSig(e){const{Re:n,Ne:t}=Bo,r=n.encode(2,t.encode(e.r))+n.encode(2,t.encode(e.s));return n.encode(48,r)}};function Po(e,n){return Er(Ir(e,n))}const Lo=BigInt(0),Fo=BigInt(1);BigInt(2);const Do=BigInt(3),Uo=BigInt(4);function Ho(e){const n=function(e){const n=Oo(e);return Hr(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}(e),{Fp:t,n:r,nByteLength:o,nBitLength:i}=n,a=t.BYTES+1,s=2*t.BYTES+1;function u(e){return ao(e,r)}function l(e){return uo(e,r)}const{ProjectivePoint:c,normPrivateKeyToScalar:f,weierstrassEquation:d,isWithinCurveOrder:h}=function(e){const n=function(e){const n=Oo(e);Hr(n,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:t,Fp:r,a:o}=n;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof t||"bigint"!=typeof t.beta||"function"!=typeof t.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...n})}(e),{Fp:t}=n,r=yo(n.n,n.nBitLength),o=n.toBytes||((e,n,r)=>{const o=n.toAffine();return Rr(Uint8Array.from([4]),t.toBytes(o.x),t.toBytes(o.y))}),i=n.fromBytes||(e=>{const n=e.subarray(1);return{x:t.fromBytes(n.subarray(0,t.BYTES)),y:t.fromBytes(n.subarray(t.BYTES,2*t.BYTES))}});function a(e){const{a:r,b:o}=n,i=t.sqr(e),a=t.mul(i,e);return t.add(t.add(a,t.mul(e,r)),o)}function s(e,n){const r=t.sqr(n),o=a(e);return t.eql(r,o)}if(!s(n.Gx,n.Gy))throw new Error("bad curve params: generator point");const u=t.mul(t.pow(n.a,Do),Uo),l=t.mul(t.sqr(n.b),BigInt(27));if(t.is0(t.add(u,l)))throw new Error("bad curve params: a or b");function c(e){const{allowedPrivateKeyLengths:t,nByteLength:r,wrapPrivateKey:o,n:i}=n;if(t&&"bigint"!=typeof e){if(yr(e)&&(e=Er(e)),"string"!=typeof e||!t.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*r,"0")}let a;try{a="bigint"==typeof e?e:xr(Or("private key",e,r))}catch(s){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof e)}return o&&(a=ao(a,i)),Pr("private key",a,Fo,i),a}function f(e){if(!(e instanceof p))throw new Error("ProjectivePoint expected")}const d=jr((e,n)=>{const{px:r,py:o,pz:i}=e;if(t.eql(i,t.ONE))return{x:r,y:o};const a=e.is0();null==n&&(n=a?t.ONE:t.inv(i));const s=t.mul(r,n),u=t.mul(o,n),l=t.mul(i,n);if(a)return{x:t.ZERO,y:t.ZERO};if(!t.eql(l,t.ONE))throw new Error("invZ was invalid");return{x:s,y:u}}),h=jr(e=>{if(e.is0()){if(n.allowInfinityPoint&&!t.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:r,y:o}=e.toAffine();if(!t.isValid(r)||!t.isValid(o))throw new Error("bad point: x or y not FE");if(!s(r,o))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,n,r){if(null==e||!t.isValid(e))throw new Error("x required");if(null==n||!t.isValid(n)||t.is0(n))throw new Error("y required");if(null==r||!t.isValid(r))throw new Error("z required");this.px=e,this.py=n,this.pz=r,Object.freeze(this)}static fromAffine(e){const{x:n,y:r}=e||{};if(!e||!t.isValid(n)||!t.isValid(r))throw new Error("invalid affine point");if(e instanceof p)throw new Error("projective point not allowed");const o=e=>t.eql(e,t.ZERO);return o(n)&&o(r)?p.ZERO:new p(n,r,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const n=ho(t,e.map(e=>e.pz));return e.map((e,t)=>e.toAffine(n[t])).map(p.fromAffine)}static fromHex(e){const n=p.fromAffine(i(Or("pointHex",e)));return n.assertValidity(),n}static fromPrivateKey(e){return p.BASE.multiply(c(e))}static msm(e,n){return Mo(p,r,e,n)}Be(e){v.setWindowSize(this,e)}assertValidity(){h(this)}hasEvenY(){const{y:e}=this.toAffine();if(t.isOdd)return!t.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){f(e);const{px:n,py:r,pz:o}=this,{px:i,py:a,pz:s}=e,u=t.eql(t.mul(n,s),t.mul(i,o)),l=t.eql(t.mul(r,s),t.mul(a,o));return u&&l}negate(){return new p(this.px,t.neg(this.py),this.pz)}double(){const{a:e,b:r}=n,o=t.mul(r,Do),{px:i,py:a,pz:s}=this;let u=t.ZERO,l=t.ZERO,c=t.ZERO,f=t.mul(i,i),d=t.mul(a,a),h=t.mul(s,s),m=t.mul(i,a);return m=t.add(m,m),c=t.mul(i,s),c=t.add(c,c),u=t.mul(e,c),l=t.mul(o,h),l=t.add(u,l),u=t.sub(d,l),l=t.add(d,l),l=t.mul(u,l),u=t.mul(m,u),c=t.mul(o,c),h=t.mul(e,h),m=t.sub(f,h),m=t.mul(e,m),m=t.add(m,c),c=t.add(f,f),f=t.add(c,f),f=t.add(f,h),f=t.mul(f,m),l=t.add(l,f),h=t.mul(a,s),h=t.add(h,h),f=t.mul(h,m),u=t.sub(u,f),c=t.mul(h,d),c=t.add(c,c),c=t.add(c,c),new p(u,l,c)}add(e){f(e);const{px:r,py:o,pz:i}=this,{px:a,py:s,pz:u}=e;let l=t.ZERO,c=t.ZERO,d=t.ZERO;const h=n.a,m=t.mul(n.b,Do);let y=t.mul(r,a),v=t.mul(o,s),b=t.mul(i,u),w=t.add(r,o),g=t.add(a,s);w=t.mul(w,g),g=t.add(y,v),w=t.sub(w,g),g=t.add(r,i);let k=t.add(a,u);return g=t.mul(g,k),k=t.add(y,b),g=t.sub(g,k),k=t.add(o,i),l=t.add(s,u),k=t.mul(k,l),l=t.add(v,b),k=t.sub(k,l),d=t.mul(h,g),l=t.mul(m,b),d=t.add(l,d),l=t.sub(v,d),d=t.add(v,d),c=t.mul(l,d),v=t.add(y,y),v=t.add(v,y),b=t.mul(h,b),g=t.mul(m,g),v=t.add(v,b),b=t.sub(y,b),b=t.mul(h,b),g=t.add(g,b),y=t.mul(v,g),c=t.add(c,y),y=t.mul(k,g),l=t.mul(w,l),l=t.sub(l,y),y=t.mul(w,v),d=t.mul(k,d),d=t.add(d,y),new p(l,c,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return v.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){const{endo:r,n:o}=n;Pr("scalar",e,Lo,o);const i=p.ZERO;if(e===Lo)return i;if(this.is0()||e===Fo)return this;if(!r||v.hasPrecomputes(this))return v.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:u,k2:l}=r.splitScalar(e),c=i,f=i,d=this;for(;s>Lo||l>Lo;)s&Fo&&(c=c.add(d)),l&Fo&&(f=f.add(d)),d=d.double(),s>>=Fo,l>>=Fo;return a&&(c=c.negate()),u&&(f=f.negate()),f=new p(t.mul(f.px,r.beta),f.py,f.pz),c.add(f)}multiply(e){const{endo:r,n:o}=n;let i,a;if(Pr("scalar",e,Fo,o),r){const{k1neg:n,k1:o,k2neg:s,k2:u}=r.splitScalar(e);let{p:l,f:c}=this.wNAF(o),{p:f,f:d}=this.wNAF(u);l=v.constTimeNegate(n,l),f=v.constTimeNegate(s,f),f=new p(t.mul(f.px,r.beta),f.py,f.pz),i=l.add(f),a=c.add(d)}else{const{p:n,f:t}=this.wNAF(e);i=n,a=t}return p.normalizeZ([i,a])[0]}multiplyAndAddUnsafe(e,n,t){const r=p.BASE,o=(e,n)=>n!==Lo&&n!==Fo&&e.equals(r)?e.multiply(n):e.multiplyUnsafe(n),i=o(this,n).add(o(e,t));return i.is0()?void 0:i}toAffine(e){return d(this,e)}isTorsionFree(){const{h:e,isTorsionFree:t}=n;if(e===Fo)return!0;if(t)return t(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:t}=n;return e===Fo?this:t?t(p,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return br("isCompressed",e),this.assertValidity(),o(p,this,e)}toHex(e=!0){return br("isCompressed",e),Er(this.toRawBytes(e))}}p.BASE=new p(n.Gx,n.Gy,t.ONE),p.ZERO=new p(t.ZERO,t.ONE,t.ZERO);const{endo:m,nBitLength:y}=n,v=Io(p,m?Math.ceil(y/2):y);return{CURVE:n,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:function(e){return Br(e,Fo,n.n)}}}({...n,toBytes(e,n,r){const o=n.toAffine(),i=t.toBytes(o.x),a=Rr;return br("isCompressed",r),r?a(Uint8Array.from([n.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,t.toBytes(o.y))},fromBytes(e){const n=e.length,r=e[0],o=e.subarray(1);if(n!==a||2!==r&&3!==r){if(n===s&&4===r)return{x:t.fromBytes(o.subarray(0,t.BYTES)),y:t.fromBytes(o.subarray(t.BYTES,2*t.BYTES))};throw new Error("invalid Point, expected length of "+a+", or uncompressed "+s+", got "+n)}{const e=xr(o);if(!Br(e,Fo,t.ORDER))throw new Error("Point is not on curve");const n=d(e);let a;try{a=t.sqrt(n)}catch(i){const e=i instanceof Error?": "+i.message:"";throw new Error("Point is not on curve"+e)}return!(1&~r)!=((a&Fo)===Fo)&&(a=t.neg(a)),{x:e,y:a}}}});function p(e){return e>r>>Fo}const m=(e,n,t)=>xr(e.slice(n,t));class y{constructor(e,n,t){Pr("r",e,Fo,r),Pr("s",n,Fo,r),this.r=e,this.s=n,null!=t&&(this.recovery=t),Object.freeze(this)}static fromCompact(e){const n=o;return e=Or("compactSignature",e,2*n),new y(m(e,0,n),m(e,n,2*n))}static fromDER(e){const{r:n,s:t}=Bo.toSig(Or("DER",e));return new y(n,t)}assertValidity(){}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:o,recovery:i}=this,a=g(Or("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const s=2===i||3===i?r+n.n:r;if(s>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const f=1&i?"03":"02",d=c.fromHex(f+Po(s,t.BYTES)),h=l(s),p=u(-a*h),m=u(o*h),y=c.BASE.multiplyAndAddUnsafe(d,p,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,u(-this.s),this.recovery):this}toDERRawBytes(){return Sr(this.toDERHex())}toDERHex(){return Bo.hexFromSig(this)}toCompactRawBytes(){return Sr(this.toCompactHex())}toCompactHex(){const e=o;return Po(this.r,e)+Po(this.s,e)}}const v={isValidPrivateKey(e){try{return f(e),!0}catch(n){return!1}},normPrivateKeyToScalar:f,randomPrivateKey:()=>{const e=bo(n.n);return function(e,n,t=!1){const r=e.length,o=vo(n),i=bo(n);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const a=ao(t?Cr(e):xr(e),n-eo)+eo;return t?Mr(a,o):Ir(a,o)}(n.randomBytes(e),n.n)},precompute:(e=8,n=c.BASE)=>(n.Be(e),n.multiply(BigInt(3)),n)};function b(e){if("bigint"==typeof e)return!1;if(e instanceof c)return!0;const r=Or("key",e).length,i=t.BYTES,a=i+1,s=2*i+1;return n.allowedPrivateKeyLengths||o===a?void 0:r===a||r===s}const w=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const n=xr(e),t=8*e.length-i;return t>0?n>>BigInt(t):n},g=n.bits2int_modN||function(e){return u(w(e))},k=Lr(i);function A(e){return Pr("num < 2^"+i,e,Lo,k),Ir(e,o)}const E={lowS:n.lowS,prehash:!1},T={lowS:n.lowS,prehash:!1};return c.BASE.Be(8),{CURVE:n,getPublicKey:function(e,n=!0){return c.fromPrivateKey(e).toRawBytes(n)},getSharedSecret:function(e,n,t=!0){if(!0===b(e))throw new Error("first arg must be private key");if(!1===b(n))throw new Error("second arg must be public key");return c.fromHex(n).multiply(f(e)).toRawBytes(t)},sign:function(e,r,o=E){const{seed:i,k2sig:a}=function(e,r,o=E){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:a}=n;let{lowS:s,prehash:d,extraEntropy:m}=o;null==s&&(s=!0),e=Or("msgHash",e),Ro(o),d&&(e=Or("prehashed msgHash",i(e)));const v=g(e),b=f(r),k=[A(b),A(v)];if(null!=m&&!1!==m){const e=!0===m?a(t.BYTES):m;k.push(Or("extraEntropy",e))}const T=Rr(...k),S=v;return{seed:T,k2sig:function(e){const n=w(e);if(!h(n))return;const t=l(n),r=c.BASE.multiply(n).toAffine(),o=u(r.x);if(o===Lo)return;const i=u(t*u(S+o*b));if(i===Lo)return;let a=(r.x===o?0:2)|Number(r.y&Fo),f=i;return s&&p(i)&&(f=function(e){return p(e)?u(-e):e}(i),a^=1),new y(o,f,a)}}}(e,r,o),s=n,d=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");let r=Fr(e),o=Fr(e),i=0;const a=()=>{r.fill(1),o.fill(0),i=0},s=(...e)=>t(o,r,...e),u=(e=Fr(0))=>{o=s(Dr([0]),e),r=s(),0!==e.length&&(o=s(Dr([1]),e),r=s())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const t=[];for(;e<n;){r=s();const n=r.slice();t.push(n),e+=r.length}return Rr(...t)};return(e,n)=>{let t;for(a(),u(e);!(t=n(l()));)u();return a(),t}}(s.hash.outputLen,s.nByteLength,s.hmac);return d(i,a)},verify:function(e,t,r,o=T){const i=e;t=Or("msgHash",t),r=Or("publicKey",r);const{lowS:a,prehash:s,format:f}=o;if(Ro(o),"strict"in o)throw new Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const d="string"==typeof i||yr(i),h=!d&&!f&&"object"==typeof i&&null!==i&&"bigint"==typeof i.r&&"bigint"==typeof i.s;if(!d&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(h&&(p=new y(i.r,i.s)),d){try{"compact"!==f&&(p=y.fromDER(i))}catch(x){if(!(x instanceof Bo.Err))throw x}p||"der"===f||(p=y.fromCompact(i))}m=c.fromHex(r)}catch(C){return!1}if(!p)return!1;if(a&&p.hasHighS())return!1;s&&(t=n.hash(t));const{r:v,s:b}=p,w=g(t),k=l(b),A=u(w*k),E=u(v*k),S=c.BASE.multiplyAndAddUnsafe(m,A,E)?.toAffine();return!!S&&u(S.x)===v},ProjectivePoint:c,Signature:y,utils:v}}function jo(e){return{hash:e,hmac:(n,...t)=>_r(e,n,function(...e){let n=0;for(let r=0;r<e.length;r++){const t=e[r];rn(t),n+=t.length}const t=new Uint8Array(n);for(let r=0,o=0;r<e.length;r++){const n=e[r];t.set(n,o),o+=n.length}return t}(...t)),randomBytes:mn}}const qo=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Vo=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Wo=BigInt(0),zo=BigInt(1),Go=BigInt(2),Yo=(e,n)=>(e+n/Go)/n,Jo=yo(qo,void 0,void 0,{sqrt:function(e){const n=qo,t=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),l=e*e*e%n,c=l*l*e%n,f=so(c,t,n)*c%n,d=so(f,t,n)*c%n,h=so(d,Go,n)*l%n,p=so(h,o,n)*h%n,m=so(p,i,n)*p%n,y=so(m,s,n)*m%n,v=so(y,u,n)*y%n,b=so(v,s,n)*m%n,w=so(b,t,n)*c%n,g=so(w,a,n)*p%n,k=so(g,r,n)*l%n,A=so(k,Go,n);if(!Jo.eql(Jo.sqr(A),e))throw new Error("Cannot find square root");return A}}),Ko=function(e){const n=n=>Ho({...e,...jo(n)});return{...n(ir),create:n}}({a:Wo,b:BigInt(7),Fp:Jo,n:Vo,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Vo,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-zo*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),s=Yo(i*e,n),u=Yo(-r*e,n);let l=ao(e-s*t-u*o,n),c=ao(-s*r-u*i,n);const f=l>a,d=c>a;if(f&&(l=n-l),d&&(c=n-c),l>a||c>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:l,k2neg:d,k2:c}}}});class Xo extends ie{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Qo(e,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Xo({value:e});let[t,r="0"]=e.split(".");const o=t.startsWith("-");if(o&&(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,o,i]=[r.slice(0,n-1),r.slice(n-1,n),r.slice(n)],a=Math.round(Number(`${o}.${i}`));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(`${o?"-":""}${t}${r}`)}const Zo="0x0000000000000000000000000000000000000000",_o={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:/* @__PURE__ */Vt({format(e){const n=e.transactions?.map(e=>{if("string"==typeof e)return e;const n=Ht(e);return"0x7e"===n.typeHex&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?Ee(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n});return{transactions:n,stateRoot:e.stateRoot}}}),transaction:/* @__PURE__ */jt({format(e){const n={};return"0x7e"===e.type&&(n.isSystemTx=e.isSystemTx,n.mint=e.mint?Ee(e.mint):void 0,n.sourceHash=e.sourceHash,n.type="deposit"),n}}),transactionReceipt:/* @__PURE__ */Gr({format:e=>({l1GasPrice:e.l1GasPrice?Ee(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Ee(e.l1GasUsed):null,l1Fee:e.l1Fee?Ee(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&&!jn(n))throw new Ln({address:n});if(t&&!jn(t))throw new Ln({address:t})}(e);const{sourceHash:n,data:t,from:r,gas:o,isSystemTx:i,mint:a,to:s,value:u}=e;return Vn(["0x7e",bt([n,r,s??"0x",a?xe(a):"0x",u?xe(u):"0x",o?xe(o):"0x",i?"0x1":"0x",t??"0x"])])}(e):Kr(e,n)}}},$o=/* @__PURE__ */Qr({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}}}),ei=/* @__PURE__ */Qr({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}}}),ni=1,ti=/* @__PURE__ */Qr({..._o,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:{..._o.contracts,disputeGameFactory:{[ni]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ni]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ni]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ni]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),ri=/* @__PURE__ */Qr({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 oi(e,n){const{account:t=e.account}=n;if(!t)throw new Vr;const r=$n(t);try{const{accessList:t,blockNumber:o,blockTag:i,data:a,gas:s,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:d,value:h,...p}=n,m=("bigint"==typeof o?Me(o):void 0)||i;!function(e){const{account:n,maxFeePerGas:t,maxPriorityFeePerGas:r,to:o}=e,i=n?$n(n):void 0;if(i&&!jn(i.address))throw new Ln({address:i.address});if(o&&!jn(o))throw new Ln({address:o});if(t&&t>Dt)throw new At({maxFeePerGas:t});if(r&&t&&r>t)throw new Rt({maxFeePerGas:t,maxPriorityFeePerGas:r})}(n);const y=e.chain?.formatters?.transactionRequest?.format,v=(y||Ft)({...Bt(p,{format:y}),account:r,accessList:t,data:a,gas:s,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:d,value:h},"estimateGas"),{baseFeePerGas:b,gasLimit:w,priorityFeePerGas:g}=await e.request({method:"linea_estimateGas",params:m?[v,m]:[v]});return{baseFeePerGas:BigInt(b),gasLimit:BigInt(w),priorityFeePerGas:BigInt(g)}}catch(o){throw function(e,{docsPath:n,...t}){const r=(()=>{const n=function(e,n){const t=(e.details||"").toLowerCase(),r=e instanceof ie?e.walk(e=>e?.code===kt.code):e;return r instanceof ie?new kt({cause:e,message:r.details}):kt.nodeMessage.test(t)?new kt({cause:e,message:e.details}):At.nodeMessage.test(t)?new At({cause:e,maxFeePerGas:n?.maxFeePerGas}):Et.nodeMessage.test(t)?new Et({cause:e,maxFeePerGas:n?.maxFeePerGas}):Tt.nodeMessage.test(t)?new Tt({cause:e,nonce:n?.nonce}):St.nodeMessage.test(t)?new St({cause:e,nonce:n?.nonce}):xt.nodeMessage.test(t)?new xt({cause:e,nonce:n?.nonce}):Ct.nodeMessage.test(t)?new Ct({cause:e}):It.nodeMessage.test(t)?new It({cause:e,gas:n?.gas}):Mt.nodeMessage.test(t)?new Mt({cause:e,gas:n?.gas}):Ot.nodeMessage.test(t)?new Ot({cause:e}):Rt.nodeMessage.test(t)?new Rt({cause:e,maxFeePerGas:n?.maxFeePerGas,maxPriorityFeePerGas:n?.maxPriorityFeePerGas}):new Nt({cause:e})}(e,t);return n instanceof Nt?e:n})();return new vt(r,{docsPath:n,...t})}(o,{...n,account:r,chain:e.chain})}}async function ii({client:e,multiply:n,request:t,type:r}){try{const o=await oi(e,{...t,account:t?.account}),{priorityFeePerGas:i}=o,a=n(BigInt(o.baseFeePerGas))+i;return"legacy"===r?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:i}}catch{return null}}const ai=/* @__PURE__ */Qr({fees:{estimateFeesPerGas:ii,async maxPriorityFeePerGas({block:e,client:n,request:t}){const r=await ii({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}),si=1,ui=1,li={1:{.../* @__PURE__ */Qr({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:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJalJREFUeAHVfQl4HNWZ4F/V96Vu3ZItS7IlMLLNEWTAGAwGAjmGhJ1JyHwQIGQ3B2ENhOwm2Xgg6xwfJGQIuwMTNiwTjswZhhyETABD4jiEK8YH2JIPWdjWZVmybqmvqnrz/+9Vtaqrq7pbp81vl6r61Tv///3H+99REry/QTLdmSXc+M3gfQwSnP5AdZTufrwrFpHClwOTGyUJGpmmNYDGGpnEYvg+yhjemaankEGSpBHG1FFZ8hyRXS7QNPUdSfZ0qqmJd4bV4T1/v6llSM//tCbg6UggXqf/9aPjy72uwHVMhvOYplyuqUqDpqVBVdOIUgaaquavPYOs90gwkF0ekGU3vyTJddTl8e5mavo5Na3tvm9T5S5TytMGThcCcS6559HBjZLbcx1TlOtUTWlQlAQgApFR7HEmyy5MiP9kmSiA/2UdvZpIQ89MJe5xxLrb7cXLD5LbfdTl8mzT0qmnv/ulim08k9MATjWBpP/+SHtZhXfJnYqmXqcqyXOVVJwj1AxECBkRiQjkxOCcILkccgRbHtCQUAzzRU7kXKjxS8lOiuW4PT7weINHNU37tsbS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In53MlxXT9klM36uqibdSiaH2gSO/fqljx4NHMFo6EokkfD5fanBwkIhi7BVdNI7JqTecHiDpFycWXSUlJV5VVb04tiAl5Kmov6Z0WcsNq/yR5S0eT3gpWlQt4gO87qWI8QgawJFpPNLKGW1cYto4HbOGYrMXuRE5ZLxbSQ93d7f95M2+w7+hww/SNhcRhU+pwCngGCucLgSyAre5W1tb5d7eXk86nXZhj3Zj73ahV8JNx0jje5ff75dxnsUgroQ9XzKO18Rnhs+GvtDQMNFwzKJiHsr4+LhQRvpQALIJcsqJ8n4DiT6lrH/zmrjLMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",tokenTrendingDefault:["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"],isSupported:!0},10:{.../* @__PURE__ */Qr({..._o,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:{..._o.contracts,disputeGameFactory:{[si]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[si]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[si]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[si]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c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UR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x68f180fcce6836688e9084f035309e29bf0a2095","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},56:{...ri,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZldQvmNHqOb8+e7XagQlRCyfTNpxym7yClZti1gFsNI6vQIuTb/RLcDgQkmBJuiuMmeAU4uirsJVIBMDuUrvR59ff7J7hYEwLuQ7fUkiRm7DBF56kD7XyHEibnaS8nffIvxJiTLDRH/l7jZhhrhW4xzIdg0RU12hXDyLNQYX2KcCtl77QzmiJUqN01lkDmm+fN3roEjnAipa/NUgk4/JU+7iBYKlsGoiGP+NhxeGYgYqPK3775yxnozbC1CDkuuKAshfLX5xDt/BktYEYJNVCPi13lFxhO+wdwiEv6SjSbMWMhQxgb3PMLOc+QHf8r+ffjhSxAKW1KMhGSDPMI3QvaiUMaR7w+FfPRSUCkCUdQkS02D+pi2kKrJkNRdipaQqsqQ1FlKaSHZGAO7tRWVIamCFDFW+UnZnFJqHCITeNVlZI8Tj5HJPhAtPFd4zso8qZSQKvSmVGSMHh9Y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ZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",tokenTrendingDefault:["0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"],isSupported:!0},137:{.../* @__PURE__ */Qr({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,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLk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b1zzWoqaxHRu++Zp4ifImwI0KxHhaZO/9iiUVzISLH+Y8VaGdcNq/19H7RdXB2yFvVRP5RbX1XqqNMa9w4pOjE1uHar3GMYCXDt7ksTgNwdqBzs6M6Vx+aotIuLmROOz0MqX4MC6mazXIygEy/qBXqmjbatwi6lFXPRHl9fdGJ7YpnV6nvEKOLy6nuei9UxO3ZFXFAOrnh0z2CBtoHKCYdBZDQoa4bn6heeRRcHg6Rs/1ol78AZPzoaiU6esCl4eCeTposnlsnm4gBg/52DyLpiir8CkG8H/0akDHWkSQ+h+9CqRPKUYSWXpAweHEOsQAWu7UkaIsLj2FBIgeMPCZ+eKSFjGA9taaLLNwNhp7vyLvzeQnjk9s1XokVCC9Tnm+ummeYTHay7EcVG05SxzWNSvKCXTnsrG9Nw/J2RIXhx/QrCgn8K3kirOlkGaMHaQIU/QVy+lqh3npIrS9/aIqTJDmyY7QN1uMhDBoJjHzFGfJ8bCEsKjb7pcyoaTCYCP5GDEbMsJHnOP55fGgTVM16iZIOVgtieMySic0pChcsrg/A7djlO4AqCsNIUg5qI8lDGOAFxdWBHFqQ1Y8JhmxTIGxc2GbJCcaTpDVyK3QW5N9CZ7oNanQQ6VN68UFTZX2i6xMQIub6eREdzMn8iCM/lmDEjMFvjxLS4XJepkiVX4AbuLqSV+48XkAAAAASUVORK5CYII=",chainId:137,chainType:"matic",chainTypeMoralis:"polygon",tokenTrendingDefault:["0x7ceb23fd6bc0add59e62ac25578270cff1b9f619","0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"],isSupported:!0},8453:{...ti,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiD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k5c12E5r/51AwfM+rnkRpaxfw3XjompGpKOdllJaypPf3TD+EYui5uoHFWrNgSxgrGOC85AhyxHgapGhmkF4QFBgIcw1MnNgrDEuQr97ONL16FMER4EaTem5teEJJRRzYWs9lo+stSZ4xIGrkI03Ym4bmhC8mo5RGhpbBcBa2GmzRtLSfpRXXyppslk01SRgYtjxJy6tDGLccUhpvz5+8AH942Gyx7SbYCnL/rJq6d55JdmWFTsIS6h+E4cmibl1CLMkiOjSUT6tarCU5ar8o3ffIAeCCCvK7Sw+QQR82J3ezC5YFwrO1oyb5U8DsrN2IQucsaxLT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},42161:{...$o,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEuFJREFUeAHlXQ1sFOeZfmd2ba+NbWwwBv8QbAjY/BuKayeQsE5Acmp0NiRcepe0IVV71zvpjnA65VRdq8JdTydFOsXRnYh6rZqgUpoqTbDbEJwG4qUtDcZOMBiojQleEv5iSGPw7/7MfP3ez5717O7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G+2wl0pdRDeiSULDV+l0h0D1lnWmxtpEygaEgL6xTc1WhYwENoMDPu2+ZjyPW9X3HKxKLc1g1FvIXKobJ2KdKOqnL5qSDIGo3OsDxb9LkTs0qMI/I+uB1phVWP5mHuqrvUCHXvI9Vdz+NVTXbmunXGk4Y40Gi+oI6cZy6J7We7yxPovWnRLLs+EBeOt/xtq7WV7oJmYq62u16sjOS4Vtcy/r8qkEiZn6Wg/VXwUkjtAo1i0BIRNj1rCqMqi50vF2ud3ycD3SpL3MQvh2X74JN0KMvemCLTkRAK8RVgoFHHlkv8krQcmNqYE/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:{...ei,logo:"data:image/png;base64,iVBORw0KGgoAAA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"avalanche",tokenTrendingDefault:["0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB","0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"],isSupported:!0},59144:{...ai,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABkCAYAAACWy14QAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABydJREFUeAHtnT1MHEcUxx8HEuAGYxdOY+fcpbBl6CJR+NI5FAR3oQJ6irhBiiiAKoEmRkIKXQgN7gwUyB1HgZLOh0SND2iSgs+GS3GQ/3+ZPR3H3bIfsx+3Nz9p2b1jl4/5z7z3Zm7mTZsklIcAp2x7e3vf9fV1H657cPD8sOqo5owH7i3y3NbWdoDzl6urq12cC2dAEkqbJAQWOgo8h0LM4eVruSlwnRR4QJx8uVzehiZFSQixisCCz2Qyoyj4YRROTiIEvzOP372cBEFiEQFln0OhT+OwzUus2IIcHx//KTEQqQiPHz8eg40ejbrWe6CIv20majEiEYGFj9o2jcusNAeRihGqCFVmJyfNSSRihCKCcris+T9JCkArXsPxLiwH3i6aYe2HAH/hMicpAa3hGxxj3d3d/11eXv4tmtEmAmv/gwcPfsEfu4SXXZI++D+9gRDZzs7O3VKppK3zp8UcofyzqP0fRX8HK6kUEeV9p8s8ZSQgEKAPAmxJ6whAWOk+I+obFg0EMkcQYBR/zAdcfiWtB83TjzBPAj+xLQHwLYISYFnSaf+9kAsqhC8RqgQw3BBICM8i0A4iAvoghlp8C+FJBDphCMAoqNVNUCNyCF+LCF93vTzkOkRVYSijoKwYnDhT4WvB7QOuQ1QjgGs4ZPORldbtA65EePTo0W9iBPBCFmb7D7c33+sTOAyN069i8AREyMJRn7sZa3L0CcYPBIb+of++4Q1HcwQBZsQIEISHbsxSQ3OkwtHfxRAIN2apoTmCM/4iphXogmbpeaO5T3XNkXLGWUkhIyMjsrGxIfv7+4KP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/ujdXtjFL/mCn9/T0dNzNva7moiqzZMaVXKKiIVcCEE+bWCBk3TKrPe9HZXwsur3f9axs/lD6B+OonYEA4143wfO0pw78wz9dXV3/ojWkMj+SBmbhB96LRzzvLgUhCp2dnQdGiDvMnpyczIgPfO2zZoS4g28BiO8dB5UQnEH2BmK08pZfgQQggdO72HuvtVrUxABFbZS9LAHRthVwK4Wvqh/w1steak5oWTjIkAxRwXNcLkjKUVvF9+sSgGjdHv7y8vITHTYu+9KWuITmB//Tz6hs7+APS6IRrSIQOmz0JTiRjONNqcivx3EgHN9DgE8SAqHmXWt2p61sP53vmoRIJMnvIMYYhJhuFjGU6VnAEMT7RjtC6STSDIRJFyPqwreJJQ0kM6arXUsSsWmGsvmzdhb3qIk1F6favSSH2jca9cwOFjx+53bUtb4eiUmIqnJ2s4UMo4BeVSf01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",tokenTrendingDefault:["0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f","0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4"],isSupported:!0},130:{.../* @__PURE__ */Qr({..._o,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:{..._o.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[ui]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[ui]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[ui]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}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3gFPw/ZUacCO10yS8fft09edkr/s11a51W9xk8v3gDgNs/PbOO0shUqnP0csuRf6kYOs2xYGDMZsgvi5c9oFIcwQ5+w74qBJYi2SdmAtjF6TbLRivSXn9cUEBT1CCU/pLX4iQTGRQzsuL6v56Wvuh/Wf/wr84BsfnPn05p3N66kk1tO1LRjw51vvPWRdZ8/X7pmtOGFtedDRwW9tDWBeTJLUM7nixg9u7bb41DAoeWFIcLWGCM7VR8b3ZKlsnFdQa0hJX+IDhAFsafojfpRxxcf5yA9rRHZ0KZiCpQNoD669u7zrS18vL/36e2c+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}},ci=e=>{const n=Object.values(li).find(n=>n.chainTypeMoralis===e);return n?.chainType||null};var fi,di,hi,pi={},mi={},yi={};function vi(){return hi||(hi=1,function(e){const n=function(){if(fi)return mi;fi=1,mi.byteLength=function(e){var n=i(e),t=n[0],r=n[1];return 3*(t+r)/4-r},mi.toByteArray=function(e){var r,o,a=i(e),s=a[0],u=a[1],l=new t(function(e,n,t){return 3*(n+t)/4-t}(0,s,u)),c=0,f=u>0?s-4:s;for(o=0;o<f;o+=4)r=n[e.charCodeAt(o)]<<18|n[e.charCodeAt(o+1)]<<12|n[e.charCodeAt(o+2)]<<6|n[e.charCodeAt(o+3)],l[c++]=r>>16&255,l[c++]=r>>8&255,l[c++]=255&r;return 2===u&&(r=n[e.charCodeAt(o)]<<2|n[e.charCodeAt(o+1)]>>4,l[c++]=255&r),1===u&&(r=n[e.charCodeAt(o)]<<10|n[e.charCodeAt(o+1)]<<4|n[e.charCodeAt(o+2)]>>2,l[c++]=r>>8&255,l[c++]=255&r),l},mi.fromByteArray=function(n){for(var t,r=n.length,o=r%3,i=[],a=16383,u=0,l=r-o;u<l;u+=a)i.push(s(n,u,u+a>l?l:u+a));return 1===o?(t=n[r-1],i.push(e[t>>2]+e[t<<4&63]+"==")):2===o&&(t=(n[r-2]<<8)+n[r-1],i.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"=")),i.join("")};for(var e=[],n=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=r[o],n[r.charCodeAt(o)]=o;function i(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,o=[],i=n;i<t;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(r));return o.join("")}return n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63,mi}(),t=(di||(di=1,yi.read=function(e,n,t,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=t?o-1:0,d=t?-1:1,h=e[n+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[n+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[n+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},yi.write=function(e,n,t,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-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*(u=Math.pow(2,-a))<1&&(a--,u*=2),(n+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(n*u-1)*Math.pow(2,o),a+=f):(s=n*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[t+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[t+h]=255&a,h+=p,a/=256,l-=8);e[t+h-p]|=128*m}),yi),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 o=2147483647;function i(e){if(e>o)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 l(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=i(t);const o=r.write(e,n);return o!==t&&(r=r.slice(0,o)),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 o=function(e){if(a.isBuffer(e)){const n=0|d(e.length),t=i(n);return 0===t.length||e.copy(t,0,0,n),t}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?i(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(o)return o;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 u(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 l(e){return u(e),i(e<0?0:0|d(e))}function c(e){const n=e.length<0?0:0|d(e.length),t=i(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>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.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 o=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return z(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(o)return r?-1:z(e).length;n=(""+n).toLowerCase(),o=!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 T(this,n,t);case"ascii":return x(this,n,t);case"latin1":case"binary":return C(this,n,t);case"base64":return E(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 y(e,n,t,r,o){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=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)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,o);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):v(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,n,t,r,o){let i,a=1,s=e.length,u=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,u/=2,t/=2}function l(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){let r=-1;for(i=t;i<s;i++)if(l(e,i)===l(n,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(t+u>s&&(t=s-u),i=t;i>=0;i--){let t=!0;for(let r=0;r<u;r++)if(l(e,i+r)!==l(n,r)){t=!1;break}if(t)return i}return-1}function b(e,n,t,r){t=Number(t)||0;const o=e.length-t;r?(r=Number(r))>o&&(r=o):r=o;const i=n.length;let a;for(r>i/2&&(r=i/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(z(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,o;const i=[];for(let a=0;a<e.length&&!((n-=2)<0);++a)t=e.charCodeAt(a),r=t>>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,n,t){t=Math.min(e.length,t);const r=[];let o=n;for(;o<t;){const n=e[o];let i=null,a=n>239?4:n>223?3:n>191?2:1;if(o+a<=t){let t,r,s,u;switch(a){case 1:n<128&&(i=n);break;case 2:t=e[o+1],128==(192&t)&&(u=(31&n)<<6|63&t,u>127&&(i=u));break;case 3:t=e[o+1],r=e[o+2],128==(192&t)&&128==(192&r)&&(u=(15&n)<<12|(63&t)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:t=e[o+1],r=e[o+2],s=e[o+3],128==(192&t)&&128==(192&r)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=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=o,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 u(e),e<=0?i(e):void 0!==n?"string"==typeof t?i(e).fill(n,t):i(e).fill(n):i(e)}(e,n,t)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e.Pe&&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 o=0,i=Math.min(t,r);o<i;++o)if(e[o]!==n[o]){t=e[o],r=n[o];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 o=0;for(t=0;t<e.length;++t){let n=e[t];if(J(n,Uint8Array))o+n.length>r.length?(a.isBuffer(n)||(n=a.from(n)),n.copy(r,o)):Uint8Array.prototype.set.call(r,n,o);else{if(!a.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(r,o)}o+=n.length}return r},a.byteLength=h,a.prototype.Pe=!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?T(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,o){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===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(t>>>=0)-(n>>>=0);const u=Math.min(i,s),l=this.slice(r,o),c=e.slice(n,t);for(let a=0;a<u;++a)if(l[a]!==c[a]){i=l[a],s=c[a];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(e,n,t){return-1!==this.indexOf(e,n,t)},a.prototype.indexOf=function(e,n,t){return y(this,e,n,t,!0)},a.prototype.lastIndexOf=function(e,n,t){return y(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 o=this.length-n;if((void 0===t||t>o)&&(t=o),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(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(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.Le||this,0)}};const S=4096;function x(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(127&e[o]);return r}function C(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(e[o]);return r}function I(e,n,t){const r=e.length;(!n||n<0)&&(n=0),(!t||t<0||t>r)&&(t=r);let o="";for(let i=n;i<t;++i)o+=X[e[i]];return o}function M(e,n,t){const r=e.slice(n,t);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}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,o,i){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)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,o){j(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i;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,o){j(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t+7]=i,i>>=8,e[t+6]=i,i>>=8,e[t+5]=i,i>>=8,e[t+4]=i;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 P(e,n,t,r,o,i){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,o,i){return n=+n,r>>>=0,i||P(e,0,r,4),t.write(e,n,r,o,23,4),r+4}function F(e,n,r,o,i){return n=+n,r>>>=0,i||P(e,0,r,8),t.write(e,n,r,o,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],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;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],o=1;for(;n>0&&(o*=256);)r+=this[e+--n]*o;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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(e,this.length-8);const r=n+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+t*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),a.prototype.readBigUInt64BE=Q(function(e){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(e,this.length-8);const r=n*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+t;return(BigInt(r)<<BigInt(32))+BigInt(o)}),a.prototype.readIntLE=function(e,n,t){e>>>=0,n>>>=0,t||O(e,n,this.length);let r=this[e],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(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,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(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){q(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||V(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 o=1,i=0;for(this[n]=255&e;++i<t&&(o*=256);)this[n+i]=e/o&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 o=t-1,i=1;for(this[n+o]=255&e;--o>=0&&(i*=256);)this[n+o]=e/i&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 o=0,i=1,a=0;for(this[n]=255&e;++o<t&&(i*=256);)e<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(e/i|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 o=t-1,i=1,a=0;for(this[n+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(e/i|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 F(this,e,n,!0,t)},a.prototype.writeDoubleBE=function(e,n,t){return F(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 o=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),o},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 o;if(n>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=n;o<t;++o)this[o]=e;else{const i=a.isBuffer(e)?e:a.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<t-n;++o)this[o+n]=i[o%s]}return this};const D={};function U(e,n,t){D[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 H(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 j(e,n,t,r,o,i){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*(i+1)}${t}`:`>= -(2${t} ** ${8*(i+1)-1}${t}) and < 2 ** ${8*(i+1)-1}${t}`,new D.ERR_OUT_OF_RANGE("value",r,e)}!function(e,n,t){q(n,"offset"),void 0!==e[n]&&void 0!==e[n+t]||V(n,e.length-(t+1))}(r,o,i)}function q(e,n){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(n,"number",e)}function V(e,n,t){if(Math.floor(e)!==e)throw q(e,t),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(n<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,n,t){let r=`The value of "${e}" is out of range.`,o=t;return Number.isInteger(t)&&Math.abs(t)>2**32?o=H(String(t)):"bigint"==typeof t&&(o=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(o=H(o)),o+="n"),r+=` It must be ${n}. Received ${o}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(e,n){let t;n=n||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.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;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}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 o;for(o=0;o<r&&!(o+t>=n.length||o>=e.length);++o)n[o+t]=e[o];return o}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 o=0;o<16;++o)n[r+o]=e[t]+e[o]}return n}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(pi)),pi}var bi=vi();const wi=BigInt(0),gi=BigInt(1),ki=BigInt(2),Ai=BigInt(8),Ei={zip215:!0};const Ti=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Si=/* @__PURE__ */BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const xi=BigInt(1),Ci=BigInt(2);BigInt(3);const Ii=BigInt(5),Mi=BigInt(8);function Oi(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Ri(e,n){const t=Ti,r=ao(n*n*n,t),o=function(e){const n=BigInt(10),t=BigInt(20),r=BigInt(40),o=BigInt(80),i=Ti,a=e*e%i*e%i,s=so(a,Ci,i)*a%i,u=so(s,xi,i)*e%i,l=so(u,Ii,i)*u%i,c=so(l,n,i)*l%i,f=so(c,t,i)*c%i,d=so(f,r,i)*f%i,h=so(d,o,i)*d%i,p=so(h,o,i)*d%i,m=so(p,n,i)*l%i;return{pow_p_5_8:so(m,Ci,i)*e%i,b2:a}}(e*ao(r*r*n,t)).pow_p_5_8;let i=ao(e*r*o,t);const a=ao(n*i*i,t),s=i,u=ao(i*Si,t),l=a===e,c=a===ao(-e,t),f=a===ao(-e*Si,t);return l&&(i=s),(c||f)&&(i=u),(ao(i,t)&eo)===eo&&(i=ao(-i,t)),{isValid:l||c,value:i}}const Ni=/* @__PURE__ */(()=>yo(Ti,void 0,!0))(),Bi=/* @__PURE__ */(()=>({a:Ni.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ni,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Mi,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ar,randomBytes:mn,adjustScalarBytes:Oi,uvRatio:Ri}))(),Pi=/* @__PURE__ */(()=>function(e){const n=function(e){const n=Oo(e);return Hr(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...n})}(e),{Fp:t,n:r,prehash:o,hash:i,randomBytes:a,nByteLength:s,h:u}=n,l=ki<<BigInt(8*s)-gi,c=t.create,f=yo(n.n,n.nBitLength);if(!function(e,r){const o=t.sqr(e),i=t.sqr(r),a=t.add(t.mul(n.a,o),i),s=t.add(t.ONE,t.mul(n.d,t.mul(o,i)));return t.eql(a,s)}(n.Gx,n.Gy))throw new Error("bad curve params: generator point");const d=n.uvRatio||((e,n)=>{try{return{isValid:!0,value:t.sqrt(e*t.inv(n))}}catch(r){return{isValid:!1,value:wi}}}),h=n.adjustScalarBytes||(e=>e),p=n.domain||((e,n,t)=>{if(br("phflag",t),n.length||t)throw new Error("Contexts/pre-hash are not supported");return e});function m(e,n,t=!1){Pr("coordinate "+e,n,t?gi:wi,l)}function y(e){if(!(e instanceof w))throw new Error("ExtendedPoint expected")}const v=jr((e,n)=>{const{ex:r,ey:o,ez:i}=e,a=e.is0();null==n&&(n=a?Ai:t.inv(i));const s=c(r*n),u=c(o*n),l=c(i*n);if(a)return{x:wi,y:gi};if(l!==gi)throw new Error("invZ was invalid");return{x:s,y:u}}),b=jr(e=>{const{a:t,d:r}=n;if(e.is0())throw new Error("bad point: ZERO");const{ex:o,ey:i,ez:a,et:s}=e,u=c(o*o),l=c(i*i),f=c(a*a),d=c(f*f),h=c(u*t);if(c(f*c(h+l))!==c(d+c(r*c(u*l))))throw new Error("bad point: equation left != right (1)");if(c(o*i)!==c(a*s))throw new Error("bad point: equation left != right (2)");return!0});class w{constructor(e,n,t,r){m("x",e),m("y",n),m("z",t,!0),m("t",r),this.ex=e,this.ey=n,this.ez=t,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof w)throw new Error("extended point not allowed");const{x:n,y:t}=e||{};return m("x",n),m("y",t),new w(n,t,gi,c(n*t))}static normalizeZ(e){const n=ho(t,e.map(e=>e.ez));return e.map((e,t)=>e.toAffine(n[t])).map(w.fromAffine)}static msm(e,n){return Mo(w,f,e,n)}Be(e){A.setWindowSize(this,e)}assertValidity(){b(this)}equals(e){y(e);const{ex:n,ey:t,ez:r}=this,{ex:o,ey:i,ez:a}=e,s=c(n*a),u=c(o*r),l=c(t*a),f=c(i*r);return s===u&&l===f}is0(){return this.equals(w.ZERO)}negate(){return new w(c(-this.ex),this.ey,this.ez,c(-this.et))}double(){const{a:e}=n,{ex:t,ey:r,ez:o}=this,i=c(t*t),a=c(r*r),s=c(ki*c(o*o)),u=c(e*i),l=t+r,f=c(c(l*l)-i-a),d=u+a,h=d-s,p=u-a,m=c(f*h),y=c(d*p),v=c(f*p),b=c(h*d);return new w(m,y,b,v)}add(e){y(e);const{a:t,d:r}=n,{ex:o,ey:i,ez:a,et:s}=this,{ex:u,ey:l,ez:f,et:d}=e,h=c(o*u),p=c(i*l),m=c(s*r*d),v=c(a*f),b=c((o+i)*(u+l)-h-p),g=v-m,k=v+m,A=c(p-t*h),E=c(b*g),T=c(k*A),S=c(b*A),x=c(g*k);return new w(E,T,x,S)}subtract(e){return this.add(e.negate())}wNAF(e){return A.wNAFCached(this,e,w.normalizeZ)}multiply(e){const n=e;Pr("scalar",n,gi,r);const{p:t,f:o}=this.wNAF(n);return w.normalizeZ([t,o])[0]}multiplyUnsafe(e,n=w.ZERO){const t=e;return Pr("scalar",t,wi,r),t===wi?k:this.is0()||t===gi?this:A.wNAFCachedUnsafe(this,t,w.normalizeZ,n)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return A.unsafeLadder(this,r).is0()}toAffine(e){return v(this,e)}clearCofactor(){const{h:e}=n;return e===gi?this:this.multiplyUnsafe(e)}static fromHex(e,r=!1){const{d:o,a:i}=n,a=t.BYTES;e=Or("pointHex",e,a),br("zip215",r);const s=e.slice(),u=e[a-1];s[a-1]=-129&u;const f=Cr(s),h=r?l:t.ORDER;Pr("pointHex.y",f,wi,h);const p=c(f*f),m=c(p-gi),y=c(o*p-i);let{isValid:v,value:b}=d(m,y);if(!v)throw new Error("Point.fromHex: invalid y coordinate");const g=(b&gi)===gi,k=!!(128&u);if(!r&&b===wi&&k)throw new Error("Point.fromHex: x=0 and x_0=1");return k!==g&&(b=c(-b)),w.fromAffine({x:b,y:f})}static fromPrivateKey(e){const{scalar:n}=S(e);return g.multiply(n)}toRawBytes(){const{x:e,y:n}=this.toAffine(),r=Mr(n,t.BYTES);return r[r.length-1]|=e&gi?128:0,r}toHex(){return Er(this.toRawBytes())}}w.BASE=new w(n.Gx,n.Gy,gi,c(n.Gx*n.Gy)),w.ZERO=new w(wi,gi,gi,wi);const{BASE:g,ZERO:k}=w,A=Io(w,8*s);function E(e){return ao(e,r)}function T(e){return E(Cr(e))}function S(e){const n=t.BYTES;e=Or("private key",e,n);const r=Or("hashed private key",i(e),2*n),o=h(r.slice(0,n));return{head:o,prefix:r.slice(n,2*n),scalar:T(o)}}function x(e){const{head:n,prefix:t,scalar:r}=S(e),o=g.multiply(r),i=o.toRawBytes();return{head:n,prefix:t,scalar:r,point:o,pointBytes:i}}function C(e=Uint8Array.of(),...n){const t=Rr(...n);return T(i(p(t,Or("context",e),!!o)))}const I=Ei;return g.Be(8),{CURVE:n,getPublicKey:function(e){return x(e).pointBytes},sign:function(e,n,i={}){e=Or("message",e),o&&(e=o(e));const{prefix:a,scalar:s,pointBytes:u}=x(n),l=C(i.context,a,e),c=g.multiply(l).toRawBytes(),f=E(l+C(i.context,c,u,e)*s);return Pr("signature.s",f,wi,r),Or("result",Rr(c,Mr(f,t.BYTES)),2*t.BYTES)},verify:function(e,n,r,i=I){const{context:a,zip215:s}=i,u=t.BYTES;e=Or("signature",e,2*u),n=Or("message",n),r=Or("publicKey",r,u),void 0!==s&&br("zip215",s),o&&(n=o(n));const l=Cr(e.slice(u,2*u));let c,f,d;try{c=w.fromHex(r,s),f=w.fromHex(e.slice(0,u),s),d=g.multiplyUnsafe(l)}catch(p){return!1}if(!s&&c.isSmallOrder())return!1;const h=C(a,f.toRawBytes(),c.toRawBytes(),n);return f.add(c.multiplyUnsafe(h)).subtract(d).clearCofactor().equals(w.ZERO)},ExtendedPoint:w,utils:{getExtendedPublicKey:x,randomPrivateKey:()=>a(t.BYTES),precompute:(e=8,n=w.BASE)=>(n.Be(e),n.multiply(BigInt(3)),n)}}}(Bi))();var Li={exports:{}};const Fi=/* @__PURE__ */t(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Di,Ui=Li.exports;function Hi(){return Di||(Di=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 o(e,n,t){if(o.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.i(e||0,n||10,t||"be"))}var i;"object"==typeof Li?Li.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Fi.Buffer}catch(x){}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 u(e,n,r,o){for(var i=0,a=0,s=Math.min(e.length,r),u=n;u<s;u++){var l=e.charCodeAt(u)-48;i*=o,a=l>=49?l-49+10:l>=17?l-17+10:l,t(l>=0&&a<o,"Invalid character"),i+=a}return i}function l(e,n){e.words=n.words,e.length=n.length,e.negative=n.negative,e.red=n.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,n){return e.cmp(n)>0?e:n},o.min=function(e,n){return e.cmp(n)<0?e:n},o.prototype.i=function(e,n,r){if("number"==typeof e)return this.Fe(e,n,r);if("object"==typeof e)return this.De(e,n,r);"hex"===n&&(n=16),t(n===(0|n)&&n>=2&&n<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===n?this.Ue(e,o,r):(this.He(e,n,o),"le"===r&&this.De(this.toArray(),n,r)))},o.prototype.Fe=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.De(this.toArray(),n,r)},o.prototype.De=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 o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.je()},o.prototype.Ue=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 o,i=0,a=0;if("be"===t)for(r=e.length-1;r>=n;r-=2)o=s(e,n,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-n)%2==0?n+1:n;r<e.length;r+=2)o=s(e,n,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.je()},o.prototype.He=function(e,n,t){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=n)r++;r--,o=o/n|0;for(var i=e.length-t,a=i%r,s=Math.min(i,i-a)+t,l=0,c=t;c<s;c+=r)l=u(e,c,c+r,n),this.imuln(o),this.words[0]+l<67108864?this.words[0]+=l:this.qe(l);if(0!==a){var f=1;for(l=u(e,c,e.length,n),c=0;c<a;c++)f*=n;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this.qe(l)}this.je()},o.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},o.prototype.Ve=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype.We=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.je=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.ze()},o.prototype.ze=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=c}catch(x){o.prototype.inspect=c}else o.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 o=0|e.words[0],i=0|n.words[0],a=o*i,s=67108863&a,u=a/67108864|0;t.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,n.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(o=0|e.words[p])*(i=0|n.words[h])+f)/67108864|0,f=67108863&a}t.words[l]=0|f,u=0|c}return 0!==u?t.words[l]=0|u:t.length--,t.je()}o.prototype.toString=function(e,n){var r;if(n=0|n||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);i=s>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),r=0!==i||a!==this.length-1?f[6-u.length]+u+r:u+r}for(0!==i&&(r=i.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 l=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[l-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")},o.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},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(e,n){return this.toArrayLike(i,e,n)}),o.prototype.toArray=function(e,n){return this.toArrayLike(Array,e,n)},o.prototype.toArrayLike=function(e,n,r){this.je();var o=this.byteLength(),i=r||Math.max(1,o);t(o<=i,"byte array longer than desired length"),t(i>0,"Requested array length <= 0");var a=function(e,n){return e.allocUnsafe?e.allocUnsafe(n):new e(n)}(e,i);return this["_toArrayLike"+("le"===n?"LE":"BE")](a,o),a},o.prototype.Ge=function(e,n){for(var t=0,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[t++]=255&a,t<e.length&&(e[t++]=a>>8&255),t<e.length&&(e[t++]=a>>16&255),6===i?(t<e.length&&(e[t++]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(t<e.length)for(e[t++]=r;t<e.length;)e[t++]=0},o.prototype.Ye=function(e,n){for(var t=e.length-1,r=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|r;e[t--]=255&a,t>=0&&(e[t--]=a>>8&255),t>=0&&(e[t--]=a>>16&255),6===i?(t>=0&&(e[t--]=a>>24&255),r=0,i=0):(r=a>>>24,i+=2)}if(t>=0)for(e[t--]=r;t>=0;)e[t--]=0},Math.clz32?o.prototype.Je=function(e){return 32-Math.clz32(e)}:o.prototype.Je=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},o.prototype.Ke=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},o.prototype.bitLength=function(){var e=this.words[this.length-1],n=this.Je(e);return 26*(this.length-1)+n},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,n=0;n<this.length;n++){var t=this.Ke(this.words[n]);if(e+=t,26!==t)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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.je()},o.prototype.ior=function(e){return t(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.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.je()},o.prototype.iand=function(e){return t(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.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.je()},o.prototype.ixor=function(e){return t(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){t("number"==typeof e&&e>=0);var n=0|Math.ceil(e/26),r=e%26;this.We(n),r>0&&n--;for(var o=0;o<n;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.je()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,n){t("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this.We(r+1),this.words[r]=n?this.words[r]|1<<o:this.words[r]&~(1<<o),this.je()},o.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.ze();if(0===this.negative&&0!==e.negative)return e.negative=0,n=this.isub(e),e.negative=1,n.ze();this.length>e.length?(t=this,r=e):(t=e,r=this);for(var o=0,i=0;i<r.length;i++)n=(0|t.words[i])+(0|r.words[i])+o,this.words[i]=67108863&n,o=n>>>26;for(;0!==o&&i<t.length;i++)n=(0|t.words[i])+o,this.words[i]=67108863&n,o=n>>>26;if(this.length=t.length,0!==o)this.words[this.length]=o,this.length++;else if(t!==this)for(;i<t.length;i++)this.words[i]=t.words[i];return this},o.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)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var n=this.iadd(e);return e.negative=1,n.ze()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.ze();var t,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(t=this,r=e):(t=e,r=this);for(var i=0,a=0;a<r.length;a++)i=(n=(0|t.words[a])-(0|r.words[a])+i)>>26,this.words[a]=67108863&n;for(;0!==i&&a<t.length;a++)i=(n=(0|t.words[a])+i)>>26,this.words[a]=67108863&n;if(0===i&&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.je()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,n,t){var r,o,i,a=e.words,s=n.words,u=t.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],v=8191&y,b=y>>>13,w=0|a[3],g=8191&w,k=w>>>13,A=0|a[4],E=8191&A,T=A>>>13,S=0|a[5],x=8191&S,C=S>>>13,I=0|a[6],M=8191&I,O=I>>>13,R=0|a[7],N=8191&R,B=R>>>13,P=0|a[8],L=8191&P,F=P>>>13,D=0|a[9],U=8191&D,H=D>>>13,j=0|s[0],q=8191&j,V=j>>>13,W=0|s[1],z=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,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],ue=8191&se,le=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 ye=(l+(r=Math.imul(f,q))|0)+((8191&(o=(o=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((i=Math.imul(d,V))+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,q),o=(o=Math.imul(p,V))+Math.imul(m,q)|0,i=Math.imul(m,V);var ve=(l+(r=r+Math.imul(f,z)|0)|0)+((8191&(o=(o=o+Math.imul(f,G)|0)+Math.imul(d,z)|0))<<13)|0;l=((i=i+Math.imul(d,G)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,q),o=(o=Math.imul(v,V))+Math.imul(b,q)|0,i=Math.imul(b,V),r=r+Math.imul(p,z)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,z)|0,i=i+Math.imul(m,G)|0;var be=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(d,J)|0))<<13)|0;l=((i=i+Math.imul(d,K)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(g,q),o=(o=Math.imul(g,V))+Math.imul(k,q)|0,i=Math.imul(k,V),r=r+Math.imul(v,z)|0,o=(o=o+Math.imul(v,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0,r=r+Math.imul(p,J)|0,o=(o=o+Math.imul(p,K)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,K)|0;var we=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;l=((i=i+Math.imul(d,Z)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),o=(o=Math.imul(E,V))+Math.imul(T,q)|0,i=Math.imul(T,V),r=r+Math.imul(g,z)|0,o=(o=o+Math.imul(g,G)|0)+Math.imul(k,z)|0,i=i+Math.imul(k,G)|0,r=r+Math.imul(v,J)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Z)|0;var ge=(l+(r=r+Math.imul(f,$)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;l=((i=i+Math.imul(d,ee)|0)+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(x,q),o=(o=Math.imul(x,V))+Math.imul(C,q)|0,i=Math.imul(C,V),r=r+Math.imul(E,z)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(T,z)|0,i=i+Math.imul(T,G)|0,r=r+Math.imul(g,J)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0,r=r+Math.imul(p,$)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0;var ke=(l+(r=r+Math.imul(f,te)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(d,te)|0))<<13)|0;l=((i=i+Math.imul(d,re)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(M,q),o=(o=Math.imul(M,V))+Math.imul(O,q)|0,i=Math.imul(O,V),r=r+Math.imul(x,z)|0,o=(o=o+Math.imul(x,G)|0)+Math.imul(C,z)|0,i=i+Math.imul(C,G)|0,r=r+Math.imul(E,J)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(T,J)|0,i=i+Math.imul(T,K)|0,r=r+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Z)|0,r=r+Math.imul(v,$)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(p,te)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,te)|0,i=i+Math.imul(m,re)|0;var Ae=(l+(r=r+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(d,ie)|0))<<13)|0;l=((i=i+Math.imul(d,ae)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,q),o=(o=Math.imul(N,V))+Math.imul(B,q)|0,i=Math.imul(B,V),r=r+Math.imul(M,z)|0,o=(o=o+Math.imul(M,G)|0)+Math.imul(O,z)|0,i=i+Math.imul(O,G)|0,r=r+Math.imul(x,J)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,K)|0,r=r+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(T,Q)|0,i=i+Math.imul(T,Z)|0,r=r+Math.imul(g,$)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(v,te)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(b,te)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(o=(o=o+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((i=i+Math.imul(d,le)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,q),o=(o=Math.imul(L,V))+Math.imul(F,q)|0,i=Math.imul(F,V),r=r+Math.imul(N,z)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(B,z)|0,i=i+Math.imul(B,G)|0,r=r+Math.imul(M,J)|0,o=(o=o+Math.imul(M,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,Z)|0)+Math.imul(C,Q)|0,i=i+Math.imul(C,Z)|0,r=r+Math.imul(E,$)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(T,$)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(g,te)|0,o=(o=o+Math.imul(g,re)|0)+Math.imul(k,te)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,r=r+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,le)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,le)|0;var Te=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((i=i+Math.imul(d,de)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,q),o=(o=Math.imul(U,V))+Math.imul(H,q)|0,i=Math.imul(H,V),r=r+Math.imul(L,z)|0,o=(o=o+Math.imul(L,G)|0)+Math.imul(F,z)|0,i=i+Math.imul(F,G)|0,r=r+Math.imul(N,J)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,Z)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,Z)|0,r=r+Math.imul(x,$)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(E,te)|0,o=(o=o+Math.imul(E,re)|0)+Math.imul(T,te)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(g,ie)|0,o=(o=o+Math.imul(g,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,le)|0)+Math.imul(b,ue)|0,i=i+Math.imul(b,le)|0,r=r+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(m,fe)|0,i=i+Math.imul(m,de)|0;var Se=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((i=i+Math.imul(d,me)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,z),o=(o=Math.imul(U,G))+Math.imul(H,z)|0,i=Math.imul(H,G),r=r+Math.imul(L,J)|0,o=(o=o+Math.imul(L,K)|0)+Math.imul(F,J)|0,i=i+Math.imul(F,K)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Z)|0,r=r+Math.imul(M,$)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(x,te)|0,o=(o=o+Math.imul(x,re)|0)+Math.imul(C,te)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,r=r+Math.imul(g,ue)|0,o=(o=o+Math.imul(g,le)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,le)|0,r=r+Math.imul(v,fe)|0,o=(o=o+Math.imul(v,de)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,de)|0;var xe=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,J),o=(o=Math.imul(U,K))+Math.imul(H,J)|0,i=Math.imul(H,K),r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(F,Q)|0,i=i+Math.imul(F,Z)|0,r=r+Math.imul(N,$)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(M,te)|0,o=(o=o+Math.imul(M,re)|0)+Math.imul(O,te)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(x,ie)|0,o=(o=o+Math.imul(x,ae)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,o=(o=o+Math.imul(E,le)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,le)|0,r=r+Math.imul(g,fe)|0,o=(o=o+Math.imul(g,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((i=i+Math.imul(b,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,Q),o=(o=Math.imul(U,Z))+Math.imul(H,Q)|0,i=Math.imul(H,Z),r=r+Math.imul(L,$)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(F,$)|0,i=i+Math.imul(F,ee)|0,r=r+Math.imul(N,te)|0,o=(o=o+Math.imul(N,re)|0)+Math.imul(B,te)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(M,ie)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,ae)|0,r=r+Math.imul(x,ue)|0,o=(o=o+Math.imul(x,le)|0)+Math.imul(C,ue)|0,i=i+Math.imul(C,le)|0,r=r+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(T,fe)|0,i=i+Math.imul(T,de)|0;var Ie=(l+(r=r+Math.imul(g,pe)|0)|0)+((8191&(o=(o=o+Math.imul(g,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,$),o=(o=Math.imul(U,ee))+Math.imul(H,$)|0,i=Math.imul(H,ee),r=r+Math.imul(L,te)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(F,te)|0,i=i+Math.imul(F,re)|0,r=r+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,ae)|0,r=r+Math.imul(M,ue)|0,o=(o=o+Math.imul(M,le)|0)+Math.imul(O,ue)|0,i=i+Math.imul(O,le)|0,r=r+Math.imul(x,fe)|0,o=(o=o+Math.imul(x,de)|0)+Math.imul(C,fe)|0,i=i+Math.imul(C,de)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;l=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,te),o=(o=Math.imul(U,re))+Math.imul(H,te)|0,i=Math.imul(H,re),r=r+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(F,ie)|0,i=i+Math.imul(F,ae)|0,r=r+Math.imul(N,ue)|0,o=(o=o+Math.imul(N,le)|0)+Math.imul(B,ue)|0,i=i+Math.imul(B,le)|0,r=r+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,de)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,de)|0;var Oe=(l+(r=r+Math.imul(x,pe)|0)|0)+((8191&(o=(o=o+Math.imul(x,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((i=i+Math.imul(C,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),o=(o=Math.imul(U,ae))+Math.imul(H,ie)|0,i=Math.imul(H,ae),r=r+Math.imul(L,ue)|0,o=(o=o+Math.imul(L,le)|0)+Math.imul(F,ue)|0,i=i+Math.imul(F,le)|0,r=r+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Re=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(o=(o=o+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((i=i+Math.imul(O,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,ue),o=(o=Math.imul(U,le))+Math.imul(H,ue)|0,i=Math.imul(H,le),r=r+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(F,fe)|0,i=i+Math.imul(F,de)|0;var Ne=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,me)|0)+Math.imul(B,pe)|0))<<13)|0;l=((i=i+Math.imul(B,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,fe),o=(o=Math.imul(U,de))+Math.imul(H,fe)|0,i=Math.imul(H,de);var Be=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,me)|0)+Math.imul(F,pe)|0))<<13)|0;l=((i=i+Math.imul(F,me)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Pe=(l+(r=Math.imul(U,pe))|0)+((8191&(o=(o=Math.imul(U,me))+Math.imul(H,pe)|0))<<13)|0;return l=((i=Math.imul(H,me))+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=we,u[4]=ge,u[5]=ke,u[6]=Ae,u[7]=Ee,u[8]=Te,u[9]=Se,u[10]=xe,u[11]=Ce,u[12]=Ie,u[13]=Me,u[14]=Oe,u[15]=Re,u[16]=Ne,u[17]=Be,u[18]=Pe,0!==l&&(u[19]=l,t.length++),t};function y(e,n,t){t.negative=n.negative^e.negative,t.length=e.length+n.length;for(var r=0,o=0,i=0;i<t.length-1;i++){var a=o;o=0;for(var s=67108863&r,u=Math.min(i,n.length-1),l=Math.max(0,i-e.length+1);l<=u;l++){var c=i-l,f=(0|e.words[c])*(0|n.words[l]),d=67108863&f;s=67108863&(d=d+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}t.words[i]=s,r=a,a=o}return 0!==r?t.words[i]=r:t.length--,t.je()}function v(e,n,t){return y(e,n,t)}Math.imul||(m=p),o.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?y(this,e,n):v(this,e,n)},o.prototype.mul=function(e){var n=new o(null);return n.words=new Array(this.length+e.length),this.mulTo(e,n)},o.prototype.mulf=function(e){var n=new o(null);return n.words=new Array(this.length+e.length),v(this,e,n)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var n=e<0;n&&(e=-e),t("number"==typeof e),t(e<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[o]=67108863&a}return 0!==r&&(this.words[o]=r,this.length++),this.length=0===e?1:this.length,n?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.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,o=t%26;n[t]=e.words[r]>>>o&1}return n}(e);if(0===n.length)return new o(1);for(var t=this,r=0;r<n.length&&0===n[r];r++,t=t.sqr());if(++r<n.length)for(var i=t.sqr();r<n.length;r++,i=i.sqr())0!==n[r]&&(t=t.mul(i));return t},o.prototype.iushln=function(e){t("number"==typeof e&&e>=0);var n,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(n=0;n<this.length;n++){var s=this.words[n]&i,u=(0|this.words[n])-s<<r;this.words[n]=u|a,a=s>>>26-r}a&&(this.words[n]=a,this.length++)}if(0!==o){for(n=this.length-1;n>=0;n--)this.words[n+o]=this.words[n];for(n=0;n<o;n++)this.words[n]=0;this.length+=o}return this.je()},o.prototype.ishln=function(e){return t(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,n,r){var o;t("number"==typeof e&&e>=0),o=n?(n-n%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=o);l--){var f=0|this.words[l];this.words[l]=c<<26-i|f>>>i,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.je()},o.prototype.ishrn=function(e,n,r){return t(0===this.negative),this.iushrn(e,n,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){t("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26,o=1<<n;return!(this.length<=r||!(this.words[r]&o))},o.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 o=67108863^67108863>>>n<<n;this.words[this.length-1]&=o}return 0===this.length&&(this.words[0]=0,this.length=1),this.je()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.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.qe(e)},o.prototype.qe=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},o.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.je()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype.Xe=function(e,n,r){var o,i,a=e.length+r;this.We(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+s;var u=(0|e.words[o])*n;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.je();for(t(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.je()},o.prototype.Qe=function(e,n){var t=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(t=26-this.Je(a))&&(i=i.ushln(t),r.iushln(t),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==n){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone().Xe(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r.Xe(i,d,f);0!==r.negative;)d--,r.negative=0,r.Xe(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.je(),r.je(),"div"!==n&&0!==t&&r.iushrn(t),{div:s||null,mod:r}},o.prototype.divmod=function(e,n,r){return t(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,n),"mod"!==n&&(i=s.div.neg()),"div"!==n&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),n),"mod"!==n&&(i=s.div.neg()),{div:i,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 o(0),mod:this}:1===e.length?"div"===n?{div:this.divn(e.words[0]),mod:null}:"mod"===n?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this.Qe(e,n);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.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),o=e.andln(1),i=t.cmp(r);return i<0||1===o&&0===i?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},o.prototype.modrn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%e;return n?-o:o},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var n=e<0;n&&(e=-e),t(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/e|0,r=i%e}return this.je(),n?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.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 i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++l;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;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.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()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);n.cmp(r)>=0?(n.isub(r),i.isub(s),a.isub(u)):(r.isub(n),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},o.prototype.Ze=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 i,a=new o(1),s=new o(0),u=r.clone();n.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(n.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(n.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),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(u),s.iushrn(1);n.cmp(r)>=0?(n.isub(r),a.isub(s)):(r.isub(n),s.isub(a))}return(i=0===n.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.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 o=n.cmp(t);if(o<0){var i=n;n=t,t=i}else if(0===o||0===t.cmpn(1))break;n.isub(t)}return t.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){t("number"==typeof e);var n=e%26,r=(e-n)/26,o=1<<n;if(this.length<=r)return this.We(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.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.je(),this.length>1)n=1;else{r&&(e=-e),t(e<=67108863,"Number is too big");var o=0|this.words[0];n=o===e?0:o<e?-1:1}return 0!==this.negative?0|-n:n},o.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},o.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],o=0|e.words[t];if(r!==o){r<o?n=-1:r>o&&(n=1);break}}return n},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.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)},o.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._e=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return t(!this.red,"Already a number in reduction context"),this._e(e)},o.prototype.redAdd=function(e){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.$e(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return t(this.red,"redMul works only with red numbers"),this.red.$e(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red.nn(this),this.red.sqr(this)},o.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red.nn(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red.nn(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red.nn(this),this.red.invm(this)},o.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red.nn(this),this.red.neg(this)},o.prototype.redPow=function(e){return t(this.red&&!e.red,"redPow(normalNum)"),this.red.nn(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,n){this.name=e,this.p=new o(n,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this.tn()}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 E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var n=o.rn(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){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.Ze(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.tn=function(){var e=new o(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.je(),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),o=0;o<r;o++)n.words[o]=e.words[o];if(n.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(n.words[n.length++]=i&t,o=10;o<e.length;o++){var a=0|e.words[o];e.words[o-10]=(a&t)<<4|i>>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&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(E,w),E.prototype.imulK=function(e){for(var n=0,t=0;t<e.length;t++){var r=19*(0|e.words[t])+n,o=67108863&r;r>>>=26,e.words[t]=o,n=r}return 0!==n&&(e.words[e.length++]=n),e},o.rn=function(e){if(b[e])return b[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 E}return b[e]=n,n},T.prototype.nn=function(e){t(0===e.negative,"red works only with positives"),t(e.red,"red works only with red numbers")},T.prototype.$e=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")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._e(this):(l(e,e.umod(this.m)._e(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._e(this)},T.prototype.add=function(e,n){this.$e(e,n);var t=e.add(n);return t.cmp(this.m)>=0&&t.isub(this.m),t._e(this)},T.prototype.iadd=function(e,n){this.$e(e,n);var t=e.iadd(n);return t.cmp(this.m)>=0&&t.isub(this.m),t},T.prototype.sub=function(e,n){this.$e(e,n);var t=e.sub(n);return t.cmpn(0)<0&&t.iadd(this.m),t._e(this)},T.prototype.isub=function(e,n){this.$e(e,n);var t=e.isub(n);return t.cmpn(0)<0&&t.iadd(this.m),t},T.prototype.shl=function(e,n){return this.nn(e),this.imod(e.ushln(n))},T.prototype.imul=function(e,n){return this.$e(e,n),this.imod(e.imul(n))},T.prototype.mul=function(e,n){return this.$e(e,n),this.imod(e.mul(n))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.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 o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);t(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();t(y<p);var v=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=y}return d},T.prototype.invm=function(e){var n=e.Ze(this.m);return 0!==n.negative?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},T.prototype.pow=function(e,n){if(n.isZero())return new o(1).toRed(this);if(0===n.cmpn(1))return e.clone();var t=new Array(16);t[0]=new o(1).toRed(this),t[1]=e;for(var r=2;r<t.length;r++)t[r]=this.mul(t[r-1],e);var i=t[0],a=0,s=0,u=n.bitLength()%26;for(0===u&&(u=26),r=n.length-1;r>=0;r--){for(var l=n.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==t[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,t[a]),s=0,a=0)):s=0}u=26}return i},T.prototype.convertTo=function(e){var n=e.umod(this.m);return n===e?n.clone():n},T.prototype.convertFrom=function(e){var n=e.clone();return n.red=null,n},o.mont=function(e){return new S(e)},r(S,T),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),o=t.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._e(this)},S.prototype.mul=function(e,n){if(e.isZero()||n.isZero())return new o(0)._e(this);var t=e.mul(n),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=t.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._e(this)},S.prototype.invm=function(e){return this.imod(e.Ze(this.m).mul(this.r2))._e(this)}}(0,Ui)),Li.exports}const ji=/* @__PURE__ */n(Hi());var qi,Vi,Wi,zi,Gi,Yi={exports:{}};function Ji(){if(Gi)return zi;Gi=1;var e=function(){if(Wi)return Vi;Wi=1;var e=(qi||(qi=1,function(e,n){var t=vi(),r=t.Buffer;function o(e,n){for(var t in e)n[t]=e[t]}function i(e,n,t){return r(e,n,t)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=t:(o(t,n),n.Buffer=i),i.prototype=Object.create(r.prototype),o(r,i),i.from=function(e,n,t){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,n,t)},i.alloc=function(e,n,t){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==n?"string"==typeof t?o.fill(n,t):o.fill(n):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return t.SlowBuffer(e)}}(Yi,Yi.exports)),Yi.exports).Buffer;return Vi=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 o=0;o<n.length;o++){var i=n.charAt(o),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=o}var s=n.length,u=n.charAt(0),l=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,o=0,i=0;n[r]===u;)o++,r++;for(var a=(n.length-r)*l+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<i)&&-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");i=h,r++}for(var m=a-i;m!==a&&0===c[m];)m++;var y=e.allocUnsafe(o+(a-m));y.fill(0,0,o);for(var v=o;m!==a;)y[v++]=c[m++];return y}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,o=0,i=0,a=t.length;i!==a&&0===t[i];)i++,r++;for(var l=(a-i)*c+1>>>0,f=new Uint8Array(l);i!==a;){for(var d=t[i],h=0,p=l-1;(0!==d||h<o)&&-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");o=h,i++}for(var m=l-o;m!==l&&0===f[m];)m++;for(var y=u.repeat(r);m<l;++m)y+=n.charAt(f[m]);return y},decodeUnsafe:f,decode:function(e){var n=f(e);if(n)return n;throw new Error("Non-base"+s+" character")}}},Vi}();return zi=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const Ki=/* @__PURE__ */n(Ji());var Xi={};function Qi(e,n,t){return n<=e&&e<=t}function Zi(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function _i(e){this.tokens=[].slice.call(e)}_i.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 $i=-1;function ea(e,n){if(e)throw TypeError("Decoder error");return n||65533}var na="utf-8";function ta(e,n){if(!(this instanceof ta))return new ta(e,n);if((e=void 0!==e?String(e).toLowerCase():na)!==na)throw new Error("Encoding not supported. Only utf-8 is supported");n=Zi(n),this.an=!1,this.sn=!1,this.un=null,this.ln=Boolean(n.fatal),this.dn=Boolean(n.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.ln}),Object.defineProperty(this,"ignoreBOM",{value:this.dn})}function ra(e,n){if(!(this instanceof ra))return new ra(e,n);if((e=void 0!==e?String(e).toLowerCase():na)!==na)throw new Error("Encoding not supported. Only utf-8 is supported");n=Zi(n),this.an=!1,this.hn=null,this.pn={fatal:Boolean(n.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function oa(e){var n=e.fatal,t=0,r=0,o=0,i=128,a=191;this.handler=function(e,s){if(-1===s&&0!==o)return o=0,ea(n);if(-1===s)return $i;if(0===o){if(Qi(s,0,127))return s;if(Qi(s,194,223))o=1,t=s-192;else if(Qi(s,224,239))224===s&&(i=160),237===s&&(a=159),o=2,t=s-224;else{if(!Qi(s,240,244))return ea(n);240===s&&(i=144),244===s&&(a=143),o=3,t=s-240}return t<<=6*o,null}if(!Qi(s,i,a))return t=o=r=0,i=128,a=191,e.prepend(s),ea(n);if(i=128,a=191,t+=s-128<<6*(o-(r+=1)),r!==o)return null;var u=t;return t=o=r=0,u}}function ia(e){e.fatal,this.handler=function(e,n){if(-1===n)return $i;if(Qi(n,0,127))return n;var t,r;Qi(n,128,2047)?(t=1,r=192):Qi(n,2048,65535)?(t=2,r=224):Qi(n,65536,1114111)&&(t=3,r=240);for(var o=[(n>>6*t)+r];t>0;){var i=n>>6*(t-1);o.push(128|63&i),t-=1}return o}}ta.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=Zi(n),this.an||(this.un=new oa({fatal:this.ln}),this.sn=!1),this.an=Boolean(n.stream);for(var r,o=new _i(t),i=[];!o.endOfStream()&&(r=this.un.handler(o,o.read()))!==$i;)null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));if(!this.an){do{if((r=this.un.handler(o,o.read()))===$i)break;null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r))}while(!o.endOfStream());this.un=null}return i.length&&(-1===["utf-8"].indexOf(this.encoding)||this.dn||this.sn||(65279===i[0]?(this.sn=!0,i.shift()):this.sn=!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}(i)}},ra.prototype={encode:function(e,n){e=e?String(e):"",n=Zi(n),this.an||(this.hn=new ia(this.pn)),this.an=Boolean(n.stream);for(var t,r=[],o=new _i(function(e){for(var n=String(e),t=n.length,r=0,o=[];r<t;){var i=n.charCodeAt(r);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(r===t-1)o.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&i,u=1023&a;o.push(65536+(s<<10)+u),r+=1}else o.push(65533)}r+=1}return o}(e));!o.endOfStream()&&(t=this.hn.handler(o,o.read()))!==$i;)Array.isArray(t)?r.push.apply(r,t):r.push(t);if(!this.an){for(;(t=this.hn.handler(o,o.read()))!==$i;)Array.isArray(t)?r.push.apply(r,t):r.push(t);this.hn=null}return new Uint8Array(r)}};const aa=/* @__PURE__ */t(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,TextDecoder:ta,TextEncoder:ra},Symbol.toStringTag,{value:"Module"})));var sa,ua,la=function(){if(sa)return Xi;sa=1;var e=Xi&&Xi.mn||(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=Xi&&Xi.yn||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),t=Xi&&Xi.vn||function(e,n,t,r){var o,i=arguments.length,a=i<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--)(o=e[s])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a},r=Xi&&Xi.bn||function(t){if(t&&t.o)return t;var r={};if(null!=t)for(var o in t)"default"!==o&&Object.hasOwnProperty.call(t,o)&&e(r,t,o);return n(r,t),r},o=Xi&&Xi.wn||function(e){return e&&e.o?e:{default:e}};Object.defineProperty(Xi,"o",{value:!0}),Xi.deserializeUnchecked=Xi.deserialize=Xi.serialize=Xi.BinaryReader=Xi.BinaryWriter=Xi.BorshError=Xi.baseDecode=Xi.baseEncode=void 0;const i=o(Hi()),a=o(Ji()),s=r(aa),u=new("function"!=typeof TextDecoder?s.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Xi.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),a.default.encode(Buffer.from(e))},Xi.baseDecode=function(e){return Buffer.from(a.default.decode(e))};const l=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(".")}}Xi.BorshError=c;class f{constructor(){this.buf=Buffer.alloc(l),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(l)]))}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 i.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(l)]),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}}}Xi.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 i.default(e,"le")}readU128(){const e=this.readBuffer(16);return new i.default(e,"le")}readU256(){const e=this.readBuffer(32);return new i.default(e,"le")}readU512(){const e=this.readBuffer(64);return new i.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 u.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,o){try{if("string"==typeof r)o[`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`);o.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],o)}else o.writeArray(t,t=>{m(e,n,t,r[0],o)});else if(void 0!==r.kind)switch(r.kind){case"option":null==t?o.writeU8(0):(o.writeU8(1),m(e,n,t,r.type,o));break;case"map":o.writeU32(t.size),t.forEach((t,i)=>{m(e,n,i,r.key,o),m(e,n,t,r.value,o)});break;default:throw new c(`FieldType ${r} unrecognized`)}else y(e,t,o)}catch(i){throw i instanceof c&&i.addToFieldPath(n),i}}function y(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,o])=>{m(e,r,n[r],o,t)});else{if("enum"!==r.kind)throw new c(`Unexpected schema kind: ${r.kind} for ${n.constructor.name}`);{const o=n[r.field];for(let i=0;i<r.values.length;++i){const[a,s]=r.values[i];if(a===o){t.writeU8(i),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 o=0;o<t[1];o++)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 o=/* @__PURE__ */new Map;const i=r.readU32();for(let a=0;a<i;a++){const i=v(e,n,t.key,r),a=v(e,n,t.value,r);o.set(i,a)}return o}return b(e,t,r)}catch(o){throw o instanceof c&&o.addToFieldPath(n),o}}function b(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[o,i]of e.get(n).fields)r[o]=v(e,o,i,t);return new n(r)}if("enum"===r.kind){const o=t.readU8();if(o>=r.values.length)throw new c(`Enum index: ${o} is out of range`);const[i,a]=r.values[o],s=v(e,i,a,t);return new n({[i]: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),Xi.BinaryReader=h,Xi.serialize=function(e,n,t=f){const r=new t;return y(e,n,r),r.toArray()},Xi.deserialize=function(e,n,t,r=h){const o=new r(t),i=b(e,n,o);if(o.offset<t.length)throw new c(`Unexpected ${t.length-o.offset} bytes after deserialized data`);return i},Xi.deserializeUnchecked=function(e,n,t,r=h){return b(e,n,new r(t))},Xi}(),ca={},fa=function(){if(ua)return ca;ua=1,Object.defineProperty(ca,"o",{value:!0}),ca.s16=ca.s8=ca.nu64be=ca.u48be=ca.u40be=ca.u32be=ca.u24be=ca.u16be=ca.nu64=ca.u48=ca.u40=ca.u32=ca.u24=ca.u16=ca.u8=ca.offset=ca.greedy=ca.Constant=ca.UTF8=ca.CString=ca.Blob=ca.Boolean=ca.BitField=ca.BitStructure=ca.VariantLayout=ca.Union=ca.UnionLayoutDiscriminator=ca.UnionDiscriminator=ca.Structure=ca.Sequence=ca.DoubleBE=ca.Double=ca.FloatBE=ca.Float=ca.NearInt64BE=ca.NearInt64=ca.NearUInt64BE=ca.NearUInt64=ca.IntBE=ca.Int=ca.UIntBE=ca.UInt=ca.OffsetLayout=ca.GreedyCount=ca.ExternalLayout=ca.bindConstructorLayout=ca.nameWithProperty=ca.Layout=ca.uint8ArrayToBuffer=ca.checkUint8Array=void 0,ca.constant=ca.utf8=ca.cstr=ca.blob=ca.unionLayoutDiscriminator=ca.union=ca.seq=ca.bits=ca.struct=ca.f64be=ca.f64=ca.f32be=ca.f32=ca.ns64be=ca.s48be=ca.s40be=ca.s32be=ca.s24be=ca.s16be=ca.ns64=ca.s48=ca.s40=ca.s32=ca.s24=void 0;const e=vi();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)}ca.checkUint8Array=n,ca.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 o(e,n){return n.property?e+"["+n.property+"]":e}ca.Layout=r,ca.nameWithProperty=o,ca.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 i extends r{isCount(){throw new Error("ExternalLayout is abstract")}}ca.ExternalLayout=i;class a extends i{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}}ca.GreedyCount=a;class s extends i{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 u||this.layout instanceof l}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)}}ca.OffsetLayout=s;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).readUIntLE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntLE(e,r,this.span),this.span}}ca.UInt=u;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).readUIntBE(n,this.span)}encode(e,n,r=0){return t(n).writeUIntBE(e,r,this.span),this.span}}ca.UIntBE=l;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}}ca.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}}ca.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),o=r.readUInt32LE(n);return p(r.readUInt32LE(n+4),o)}encode(e,n,r=0){const o=h(e),i=t(n);return i.writeUInt32LE(o.lo32,r),i.writeUInt32LE(o.hi32,r+4),8}}ca.NearUInt64=m;class y 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 o=h(e),i=t(n);return i.writeUInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}}ca.NearUInt64BE=y;class v extends r{constructor(e){super(8,e)}decode(e,n=0){const r=t(e),o=r.readUInt32LE(n);return p(r.readInt32LE(n+4),o)}encode(e,n,r=0){const o=h(e),i=t(n);return i.writeUInt32LE(o.lo32,r),i.writeInt32LE(o.hi32,r+4),8}}ca.NearInt64=v;class b 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 o=h(e),i=t(n);return i.writeInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}}ca.NearInt64BE=b;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}}ca.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}}ca.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}}ca.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}}ca.DoubleBE=A;class E extends r{constructor(e,n,t){if(!(e instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof i&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let o=-1;!(n instanceof i)&&0<e.span&&(o=n*e.span),super(o,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 i&&(r=r.decode(e,n)),0<this.elementLayout.span)t=r*this.elementLayout.span;else{let o=0;for(;o<r;)t+=this.elementLayout.getSpan(e,n+t),++o}return t}decode(e,n=0){const t=[];let r=0,o=this.count;for(o instanceof i&&(o=o.decode(e,n));r<o;)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,o=e.reduce((e,o)=>e+r.encode(o,n,t+e),0);return this.count instanceof i&&this.count.encode(e.length,n,t),o}}ca.Sequence=E;class T 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 o=-1;try{o=e.reduce((e,n)=>e+n.getSpan(),0)}catch(i){}super(o,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 o=r.getSpan(e,n);return n+=o,t+o},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 o=0,i=0;for(const a of this.fields){let r=a.span;if(i=0<r?r:0,void 0!==a.property){const o=e[a.property];void 0!==o&&(i=a.encode(o,n,t),0>r&&(r=a.getSpan(n,t)))}o=t,t+=r}return o+i-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)}}}ca.Structure=T;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")}}ca.UnionDiscriminator=S;class x extends S{constructor(e,n){if(!(e instanceof i&&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)}}ca.UnionLayoutDiscriminator=x;class C extends r{constructor(e,n,t){let o;if(e instanceof u||e instanceof l)o=new x(new s(e));else if(e instanceof i&&e.isCount())o=new x(e);else{if(!(e instanceof S))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");o=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 u||e instanceof l)&&(a+=o.layout.span)),super(a,t),this.discriminator=o,this.usesPrefixDiscriminator=e instanceof u||e instanceof l,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,o=r.decode(e,n),i=this.registry[o];if(void 0===i){const i=this.defaultLayout;let a=0;this.usesPrefixDiscriminator&&(a=r.layout.span),t=this.makeDestinationObject(),t[r.property]=o,t[i.property]=i.decode(e,n+a)}else t=i.decode(e,n);return t}encode(e,n,t=0){const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,o=this.defaultLayout;let i=0;return this.usesPrefixDiscriminator&&(i=r.layout.span),r.encode(e[r.property],n,t),i+o.encode(e[o.property],n,t+i)}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]}}ca.Union=C;class I extends r{constructor(e,n,t,o){if(!(e instanceof C))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===o&&(o=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 o)throw new TypeError("variant must have a String property")}let i=e.span;0>e.span&&(i=t?t.span:0,0<=i&&e.usesPrefixDiscriminator&&(i+=e.discriminator.layout.span)),super(i,o),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 o=r;if(this.layout&&(this.layout.encode(e[this.property],n,t+r),o+=this.layout.getSpan(n,t+r),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function M(e){return 0>e&&(e+=4294967296),e}ca.VariantLayout=I;class O extends r{constructor(e,n,t){if(!(e instanceof u||e instanceof l))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.gn=function(e){return r=M(e),this},this.kn=function(){return r}}decode(e,n=0){const t=this.makeDestinationObject(),r=this.word.decode(e,n);this.gn(r);for(const o of this.fields)void 0!==o.property&&(t[o.property]=o.decode(e));return t}encode(e,n,t=0){const r=this.word.decode(n,t);this.gn(r);for(const o of this.fields)if(void 0!==o.property){const n=e[o.property];void 0!==n&&o.encode(n)}return this.word.encode(this.kn(),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}}ca.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,o=e.fields.reduce((e,n)=>e+n.bits,0);if(n+o>r)throw new Error("bits too long for span remainder ("+(r-o)+" of "+r+" remain)");this.container=e,this.bits=n,this.valueMask=(1<<n)-1,32===n&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=r-o-n),this.wordMask=M(this.valueMask<<this.start),this.property=t}decode(e,n){return M(this.container.kn()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==M(e&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const n=this.container.kn(),t=M(e<<this.start);this.container.gn(M(n&~this.wordMask)|t)}}ca.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)}}ca.Boolean=N;class B extends r{constructor(e,n){if(!(e instanceof i&&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 i||(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 i&&(a=e.length),!(e instanceof Uint8Array&&a===e.length))throw new TypeError(o("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 i&&this.length.encode(a,n,r),a}}ca.Blob=B;class P 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,o=0){"string"!=typeof n&&(n=String(n));const i=e.Buffer.from(n,"utf8"),a=i.length;if(o+a>r.length)throw new RangeError("encoding overruns Buffer");const s=t(r);return i.copy(s,o),s[o+a]=0,a+1}}ca.CString=P;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,o=0){"string"!=typeof n&&(n=String(n));const i=e.Buffer.from(n,"utf8"),a=i.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(o+a>r.length)throw new RangeError("encoding overruns Buffer");return i.copy(t(r),o),a}}ca.UTF8=L;class F extends r{constructor(e,n){super(0,n),this.value=e}decode(e,n){return this.value}encode(e,n,t){return 0}}return ca.Constant=F,ca.greedy=(e,n)=>new a(e,n),ca.offset=(e,n,t)=>new s(e,n,t),ca.u8=e=>new u(1,e),ca.u16=e=>new u(2,e),ca.u24=e=>new u(3,e),ca.u32=e=>new u(4,e),ca.u40=e=>new u(5,e),ca.u48=e=>new u(6,e),ca.nu64=e=>new m(e),ca.u16be=e=>new l(2,e),ca.u24be=e=>new l(3,e),ca.u32be=e=>new l(4,e),ca.u40be=e=>new l(5,e),ca.u48be=e=>new l(6,e),ca.nu64be=e=>new y(e),ca.s8=e=>new c(1,e),ca.s16=e=>new c(2,e),ca.s24=e=>new c(3,e),ca.s32=e=>new c(4,e),ca.s40=e=>new c(5,e),ca.s48=e=>new c(6,e),ca.ns64=e=>new v(e),ca.s16be=e=>new f(2,e),ca.s24be=e=>new f(3,e),ca.s32be=e=>new f(4,e),ca.s40be=e=>new f(5,e),ca.s48be=e=>new f(6,e),ca.ns64be=e=>new b(e),ca.f32=e=>new w(e),ca.f32be=e=>new g(e),ca.f64=e=>new k(e),ca.f64be=e=>new A(e),ca.struct=(e,n,t)=>new T(e,n,t),ca.bits=(e,n,t)=>new O(e,n,t),ca.seq=(e,n,t)=>new E(e,n,t),ca.union=(e,n,t)=>new C(e,n,t),ca.unionLayoutDiscriminator=(e,n)=>new x(e,n),ca.blob=(e,n)=>new B(e,n),ca.cstr=e=>new P(e),ca.utf8=(e,n)=>new L(e,n),ca.constant=(e,n)=>new F(e,n),ca}(),da=1,ha=2,pa=3,ma=4,ya=5,va=6,ba=7,wa=8,ga=9,ka=10,Aa=-32700,Ea=-32603,Ta=-32602,Sa=-32601,xa=-32600,Ca=-32016,Ia=-32015,Ma=-32014,Oa=-32013,Ra=-32012,Na=-32011,Ba=-32010,Pa=-32009,La=-32008,Fa=-32007,Da=-32006,Ua=-32005,Ha=-32004,ja=-32003,qa=-32002,Va=-32001,Wa=28e5,za=2800001,Ga=2800002,Ya=2800003,Ja=2800004,Ka=2800005,Xa=2800006,Qa=2800007,Za=2800008,_a=2800009,$a=2800010,es=2800011,ns=323e4,ts=32300001,rs=3230002,os=3230003,is=3230004,as=361e4,ss=3610001,us=3610002,ls=3610003,cs=3610004,fs=3610005,ds=3610006,hs=3610007,ps=3611e3,ms=3704e3,ys=3704001,vs=3704002,bs=3704003,ws=3704004,gs=4128e3,ks=4128001,As=4128002,Es=4615e3,Ts=4615001,Ss=4615002,xs=4615003,Cs=4615004,Is=4615005,Ms=4615006,Os=4615007,Rs=4615008,Ns=4615009,Bs=4615010,Ps=4615011,Ls=4615012,Fs=4615013,Ds=4615014,Us=4615015,Hs=4615016,js=4615017,qs=4615018,Vs=4615019,Ws=4615020,zs=4615021,Gs=4615022,Ys=4615023,Js=4615024,Ks=4615025,Xs=4615026,Qs=4615027,Zs=4615028,_s=4615029,$s=4615030,eu=4615031,nu=4615032,tu=4615033,ru=4615034,ou=4615035,iu=4615036,au=4615037,su=4615038,uu=4615039,lu=4615040,cu=4615041,fu=4615042,du=4615043,hu=4615044,pu=4615045,mu=4615046,yu=4615047,vu=4615048,bu=4615049,wu=4615050,gu=4615051,ku=4615052,Au=4615053,Eu=4615054,Tu=5508e3,Su=5508001,xu=5508002,Cu=5508003,Iu=5508004,Mu=5508005,Ou=5508006,Ru=5508007,Nu=5508008,Bu=5508009,Pu=5508010,Lu=5508011,Fu=5663e3,Du=5663001,Uu=5663002,Hu=5663003,ju=5663004,qu=5663005,Vu=5663006,Wu=5663007,zu=5663008,Gu=5663009,Yu=5663010,Ju=5663011,Ku=5663012,Xu=5663013,Qu=5663014,Zu=5663015,_u=5663016,$u=5663017,el=5663018,nl=5663019,tl=5663020,rl=705e4,ol=7050001,il=7050002,al=7050003,sl=7050004,ul=7050005,ll=7050006,cl=7050007,fl=7050008,dl=7050009,hl=7050010,pl=7050011,ml=7050012,yl=7050013,vl=7050014,bl=7050015,wl=7050016,gl=7050017,kl=7050018,Al=7050019,El=7050020,Tl=7050021,Sl=7050022,xl=7050023,Cl=7050024,Il=7050025,Ml=7050026,Ol=7050027,Rl=7050028,Nl=7050029,Bl=7050030,Pl=7050031,Ll=7050032,Fl=7050033,Dl=7050034,Ul=7050035,Hl=7050036,jl=8078e3,ql=8078001,Vl=8078002,Wl=8078003,zl=8078004,Gl=8078005,Yl=8078006,Jl=8078007,Kl=8078008,Xl=8078009,Ql=8078010,Zl=8078011,_l=8078012,$l=8078013,ec=8078014,nc=8078015,tc=8078016,rc=8078017,oc=8078018,ic=8078019,ac=8078020,sc=8078021,uc=8078022,lc=81e5,cc=8100001,fc=8100002,dc=8100003,hc=819e4,pc=8190001,mc=8190002,yc=8190003,vc=8190004,bc=99e5,wc=9900001,gc=9900002,kc=9900003,Ac=9900004;function Ec(e){return Array.isArray(e)?"%5B"+e.map(Ec).join("%2C%20")+"%5D":"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function Tc([e,n]){return`${e}=${Ec(n)}`}var Sc={[ns]:"Account not found at address: $address",[is]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[os]:"Expected decoded account at address: $address",[rs]:"Failed to decode account data at address: $address",[ts]:"Accounts not found at addresses: $addresses",[_a]:"Unable to find a viable program address bump seed.",[Ga]:"$putativeAddress is not a base58-encoded address.",[Wa]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Ya]:"The `CryptoKey` must be an `Ed25519` public key.",[es]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Za]:"Invalid seeds; point must fall off the Ed25519 curve.",[Ja]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Xa]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Qa]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Ka]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[$a]:"Program address cannot end with PDA marker.",[za]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[ma]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[da]:"The network has progressed past the last block for which this transaction could have been committed.",[jl]:"Codec [$codecDescription] cannot decode empty byte arrays.",[uc]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[ac]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Gl]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Yl]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[zl]:"Encoder and decoder must either both be fixed-size or variable-size.",[Kl]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Vl]:"Expected a fixed-size codec, got a variable-size one.",[$l]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Wl]:"Expected a variable-size codec, got a fixed-size one.",[ic]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ql]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[oc]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Xl]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ql]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[nc]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Jl]:"Expected [$codecDescription] to have $expected items, got $actual.",[_l]:"Invalid value $value for base $base with alphabet $alphabet.",[tc]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Zl]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[ec]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[sc]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[rc]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ps]:"No random values implementation could be found.",[Ns]:"instruction requires an uninitialized account",[Ys]:"instruction tries to borrow reference for an account which is already borrowed",[Js]:"instruction left account with an outstanding borrowed reference",[zs]:"program other than the account's owner changed the size of the account data",[Is]:"account data too small for instruction",[Gs]:"instruction expected an executable account",[mu]:"An account does not have enough lamports to be rent-exempt",[vu]:"Program arithmetic overflowed",[pu]:"Failed to serialize or deserialize account data: $encodedData",[Eu]:"Builtin programs must consume compute units",[nu]:"Cross-program invocation call depth too deep",[su]:"Computational budget exceeded",[Xs]:"custom program error: #$code",[js]:"instruction contains duplicate accounts",[Ks]:"instruction modifications of multiply-passed account differ",[$s]:"executable accounts must be rent exempt",[Zs]:"instruction changed executable accounts data",[_s]:"instruction changed the balance of an executable account",[qs]:"instruction changed executable bit of an account",[Ds]:"instruction modified data of an account it does not own",[Fs]:"instruction spent from the balance of an account it does not own",[Ts]:"generic instruction error",[wu]:"Provided owner is not allowed",[du]:"Account is immutable",[hu]:"Incorrect authority provided",[Os]:"incorrect program id for instruction",[Ms]:"insufficient funds for instruction",[Cs]:"invalid account data for instruction",[yu]:"Invalid account owner",[Ss]:"invalid program argument",[Qs]:"program returned invalid error code",[xs]:"invalid instruction data",[au]:"Failed to reallocate account data",[iu]:"Provided seeds do not result in a valid address",[gu]:"Accounts data allocations exceeded the maximum allowed per transaction",[ku]:"Max accounts exceeded",[Au]:"Max instruction trace length exceeded",[ou]:"Length of the seed is too long for address generation",[tu]:"An account required by the instruction is missing",[Rs]:"missing required signature for instruction",[Ls]:"instruction illegally modified the program id of an account",[Ws]:"insufficient account keys for instruction",[uu]:"Cross-program invocation with unauthorized signer or writable account",[lu]:"Failed to create program execution environment",[fu]:"Program failed to compile",[cu]:"Program failed to complete",[Hs]:"instruction modified data of a read-only account",[Us]:"instruction changed the balance of a read-only account",[ru]:"Cross-program invocation reentrancy not allowed for this instruction",[Vs]:"instruction modified rent epoch of an account",[Ps]:"sum of account balances before and after instruction do not match",[Bs]:"instruction requires an initialized account",[Es]:"",[eu]:"Unsupported program id",[bu]:"Unsupported sysvar",[gs]:"The instruction does not have any accounts.",[ks]:"The instruction does not have any data.",[As]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[ya]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[ha]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[gc]:"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",[Ac]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[wc]:"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",[bc]:"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",[kc]:"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",[Ea]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Ta]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[xa]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Sa]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Aa]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Ra]:"$__serverMessage",[Va]:"$__serverMessage",[Ha]:"$__serverMessage",[Ma]:"$__serverMessage",[Ba]:"$__serverMessage",[Pa]:"$__serverMessage",[Ca]:"Minimum context slot has not been reached",[Ua]:"Node is unhealthy; behind by $numSlotsBehind slots",[La]:"No snapshot",[qa]:"Transaction simulation failed",[Fa]:"$__serverMessage",[Na]:"Transaction history is not available from this node",[Da]:"$__serverMessage",[Oa]:"Transaction signature length mismatch",[ja]:"Transaction signature verification failure",[Ia]:"$__serverMessage",[ms]:"Key pair bytes must be of length 64, got $byteLength.",[ys]:"Expected private key bytes with length 32. Actual length: $actualLength.",[vs]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[ws]:"The provided private key does not match the provided public key.",[bs]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[va]:"Lamports value must be in the range [0, 2e64-1]",[ba]:"`$value` cannot be parsed as a `BigInt`",[ka]:"$message",[wa]:"`$value` cannot be parsed as a `Number`",[pa]:"No nonce account could be found at address `$nonceAccountAddress`",[hc]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[mc]:"WebSocket was closed before payload could be added to the send buffer",[yc]:"WebSocket connection closed",[vc]:"WebSocket failed to connect",[pc]:"Failed to obtain a subscription id from the server",[dc]:"Could not find an API plan for RPC method: `$method`",[lc]:"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`.",[fc]:"HTTP error ($statusCode): $message",[cc]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Tu]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Su]:"The provided value does not implement the `KeyPairSigner` interface",[Cu]:"The provided value does not implement the `MessageModifyingSigner` interface",[Iu]:"The provided value does not implement the `MessagePartialSigner` interface",[xu]:"The provided value does not implement any of the `MessageSigner` interfaces",[Ou]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Ru]:"The provided value does not implement the `TransactionPartialSigner` interface",[Nu]:"The provided value does not implement the `TransactionSendingSigner` interface",[Mu]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Bu]:"More than one `TransactionSendingSigner` was identified.",[Pu]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Lu]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[hs]:"Cannot export a non-extractable key.",[ss]:"No digest implementation could be found.",[as]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[us]:"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.",[ls]:"No signature verification implementation could be found.",[cs]:"No key generation implementation could be found.",[fs]:"No signing implementation could be found.",[ds]:"No key export implementation could be found.",[ga]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[wl]:"Transaction processing left an account with an outstanding borrowed reference",[ol]:"Account in use",[il]:"Account loaded twice",[al]:"Attempt to debit an account but found no record of a prior credit.",[xl]:"Transaction loads an address table account that doesn't exist",[cl]:"This transaction has already been processed",[fl]:"Blockhash not found",[dl]:"Loader call chain is too deep",[bl]:"Transactions are currently disabled due to cluster maintenance",[Bl]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ul]:"Insufficient funds for fee",[Pl]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[ll]:"This account may not be used to pay transaction fees",[pl]:"Transaction contains an invalid account reference",[Il]:"Transaction loads an address table account with invalid data",[Ml]:"Transaction address table lookup uses an invalid index",[Cl]:"Transaction loads an address table account with an invalid owner",[Fl]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[yl]:"This program may not be used for executing instructions",[Ol]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Al]:"Transaction loads a writable account that cannot be written",[Ll]:"Transaction exceeded max loaded accounts data size cap",[hl]:"Transaction requires a fee but has no signature present",[sl]:"Attempt to load a program that does not exist",[Ul]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Dl]:"ResanitizationNeeded",[vl]:"Transaction failed to sanitize accounts offsets correctly",[ml]:"Transaction did not pass signature verification",[Sl]:"Transaction locked too many accounts",[Hl]:"Sum of account balances before and after transaction do not match",[rl]:"The transaction failed with the error `$errorName`",[kl]:"Transaction version is unsupported",[Tl]:"Transaction would exceed account data limit within the block",[Nl]:"Transaction would exceed total account data limit",[El]:"Transaction would exceed max account limit within the block",[gl]:"Transaction would exceed max Block Cost Limit",[Rl]:"Transaction would exceed max Vote Cost Limit",[Zu]:"Attempted to sign a transaction with an address that is not a signer for it",[Yu]:"Transaction is missing an address at index: $index.",[_u]:"Transaction has no expected signers therefore it cannot be encoded",[tl]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Uu]:"Transaction does not have a blockhash lifetime",[Hu]:"Transaction is not a durable nonce transaction",[qu]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Vu]:"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",[zu]:"No fee payer set in CompiledTransaction",[Wu]:"Could not find program address at index $index",[el]:"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",[nl]:"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",[Ju]:"Transaction is missing a fee payer.",[Ku]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Qu]:"Transaction first instruction is not advance nonce account instruction.",[Xu]:"Transaction with no instructions cannot be durable nonce transaction.",[Fu]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Du]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[$u]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[Gu]:"Transaction is missing signatures for addresses: $addresses.",[ju]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},xc="i",Cc="t";var Ic=class extends Error{cause=this.cause;context;constructor(...[e,n]){let t,r;if(n){const{cause:e,...o}=n;e&&(r={cause:e}),Object.keys(o).length>0&&(t=o)}super(function(e,n={}){if("production"!==process.env.NODE_ENV)return function(e,n={}){const t=Sc[e];if(0===t.length)return"";let r;function o(e){if(2===r[Cc]){const o=t.slice(r[xc]+1,e);i.push(o in n?`${n[o]}`:`$${o}`)}else 1===r[Cc]&&i.push(t.slice(r[xc],e))}const i=[];return t.split("").forEach((e,n)=>{if(0===n)return void(r={[xc]:0,[Cc]:"\\"===t[0]?0:"$"===t[0]?2:1});let i;switch(r[Cc]){case 0:i={[xc]:n,[Cc]:1};break;case 1:"\\"===e?i={[xc]:n,[Cc]:0}:"$"===e&&(i={[xc]:n,[Cc]:2});break;case 2:"\\"===e?i={[xc]:n,[Cc]:0}:"$"===e?i={[xc]:n,[Cc]:2}:e.match(/\w/)||(i={[xc]:n,[Cc]:1})}i&&(r!==i&&o(n),r=i)}),o(),i.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(Tc).join("&");return btoa(n)}(n)}'`),`${t}\``}}(e,t),r),this.context={An:e,...t},this.name="SolanaError"}};function Mc(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function Oc(e){return 1!==e?.endian}var Rc=(e={})=>function(e,n){if(Mc(e)!==Mc(n))throw new Ic(zl);if(Mc(e)&&Mc(n)&&e.fixedSize!==n.fixedSize)throw new Ic(Gl,{decoderFixedSize:n.fixedSize,encoderFixedSize:e.fixedSize});if(!Mc(e)&&!Mc(n)&&e.maxSize!==n.maxSize)throw new Ic(Yl,{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 Ic(Zl,{codecDescription:e,max:t,min:n,value:r})}(n.name,n.range[0],n.range[1],e);const o=new ArrayBuffer(n.size);return n.set(new DataView(o),e,Oc(n.config)),t.set(new Uint8Array(o),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 Ic(jl,{codecDescription:e})}(n.name,e,t),function(e,n,t,r=0){const o=t.length-r;if(o<n)throw new Ic(ql,{bytesLength:o,codecDescription:e,expected:n})}(n.name,n.size,e,t);const r=new DataView(function(e,n,t){const r=e.byteOffset+(n??0),o=t??e.byteLength;return e.buffer.slice(r,r+o)}(e,t,n.size));return[n.get(r,Oc(n.config)),t+n.size]}},Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]});var n,t})(e));class Nc extends TypeError{constructor(e,n){let t;const{message:r,explanation:o,...i}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(o??s),null!=o&&(this.cause=s),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>t??(t=[e,...n()])}}function Bc(e){return"object"==typeof e&&null!=e}function Pc(e){return Bc(e)&&!Array.isArray(e)}function Lc(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function Fc(e,n,t,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=n,{type:a}=t,{refinement:s,message:u=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${Lc(r)}\``}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:u}}function*Dc(e,n,t,r){var o;Bc(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const i of e){const e=Fc(i,n,t,r);e&&(yield e)}}function*Uc(e,n,t={}){const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=t,s={path:r,branch:o,mask:a};i&&(e=n.coercer(e,s));let u="valid";for(const l of n.validator(e,s))l.explanation=t.message,u="not_valid",yield[l,void 0];for(let[l,c,f]of n.entries(e,s)){const n=Uc(c,f,{path:void 0===l?r:[...r,l],branch:void 0===l?o:[...o,c],coerce:i,mask:a,message:t.message});for(const t of n)t[0]?(u=null!=t[0].refinement?"not_refined":"not_valid",yield[t[0],void 0]):i&&(c=t[1],void 0===l?e=c:e instanceof Map?e.set(l,c):e instanceof Set?e.add(c):Bc(e)&&(void 0!==c||l in e)&&(e[l]=c))}if("not_valid"!==u)for(const l of n.refiner(e,s))l.explanation=t.message,u="not_refined",yield[l,void 0];"valid"===u&&(yield[void 0,e])}let Hc=class{constructor(e){const{type:n,schema:t,validator:r,refiner:o,coercer:i=e=>e,entries:a=function*(){}}=e;this.type=n,this.schema=t,this.entries=a,this.coercer=i,this.validator=r?(e,n)=>Dc(r(e,n),n,this,e):()=>[],this.refiner=o?(e,n)=>Dc(o(e,n),n,this,e):()=>[]}assert(e,n){return function(e,n,t){const r=Vc(e,n,{message:t});if(r[0])throw r[0]}(e,this,n)}create(e,n){return jc(e,this,n)}is(e){return qc(e,this)}mask(e,n){return function(e,n,t){const r=Vc(e,n,{coerce:!0,mask:!0,message:t});if(r[0])throw r[0];return r[1]}(e,this,n)}validate(e,n={}){return Vc(e,this,n)}};function jc(e,n,t){const r=Vc(e,n,{coerce:!0,message:t});if(r[0])throw r[0];return r[1]}function qc(e,n){return!Vc(e,n)[0]}function Vc(e,n,t={}){const r=Uc(e,n,t),o=function(e){const{done:n,value:t}=e.next();return n?void 0:t}(r);return o[0]?[new Nc(o[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]:[void 0,o[1]]}function Wc(e,n){return new Hc({type:e,schema:null,validator:n})}function zc(e){return new Hc({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: ${Lc(e)}`})}function Gc(){return Wc("boolean",e=>"boolean"==typeof e)}function Yc(e){return Wc("instance",n=>n instanceof e||`Expected a \`${e.name}\` instance, but received: ${Lc(n)}`)}function Jc(e){const n=Lc(e),t=typeof e;return new Hc({type:"literal",schema:"string"===t||"number"===t||"boolean"===t?e:null,validator:t=>t===e||`Expected the literal \`${n}\`, but received: ${Lc(t)}`})}function Kc(e){return new Hc({...e,validator:(n,t)=>null===n||e.validator(n,t),refiner:(n,t)=>null===n||e.refiner(n,t)})}function Xc(){return Wc("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${Lc(e)}`)}function Qc(e){return new Hc({...e,validator:(n,t)=>void 0===n||e.validator(n,t),refiner:(n,t)=>void 0===n||e.refiner(n,t)})}function Zc(e,n){return new Hc({type:"record",schema:null,*entries(t){if(Bc(t))for(const r in t){const o=t[r];yield[r,r,e],yield[r,o,n]}},validator:e=>Pc(e)||`Expected an object, but received: ${Lc(e)}`,coercer:e=>Pc(e)?{...e}:e})}function _c(){return Wc("string",e=>"string"==typeof e||`Expected a string, but received: ${Lc(e)}`)}function $c(e){const n=Wc("never",()=>!1);return new Hc({type:"tuple",schema:null,*entries(t){if(Array.isArray(t)){const r=Math.max(e.length,t.length);for(let o=0;o<r;o++)yield[o,t[o],e[o]||n]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${Lc(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function ef(e){const n=Object.keys(e);return new Hc({type:"type",schema:e,*entries(t){if(Bc(t))for(const r of n)yield[r,t[r],e[r]]},validator:e=>Pc(e)||`Expected an object, but received: ${Lc(e)}`,coercer:e=>Pc(e)?{...e}:e})}function nf(e){const n=e.map(e=>e.type).join(" | ");return new Hc({type:"union",schema:null,coercer(n,t){for(const r of e){const[e,o]=r.validate(n,{coerce:!0,mask:t.mask});if(!e)return o}return n},validator(t,r){const o=[];for(const n of e){const[...e]=Uc(t,n,r),[i]=e;if(!i[0])return[];for(const[n]of e)n&&o.push(n)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Lc(t)}`,...o]}})}function tf(){return Wc("unknown",()=>!0)}function rf(e,n,t){return new Hc({...e,coercer:(r,o)=>qc(r,n)?e.coercer(t(r,o),o):e.coercer(r,o)})}var of,af=new Uint8Array(16);function sf(){if(!of&&!(of="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 of(af)}const uf=/^(?:[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 lf(e){return"string"==typeof e&&uf.test(e)}for(var cf,ff,df=[],hf=0;hf<256;++hf)df.push((hf+256).toString(16).substr(1));function pf(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(df[e[n+0]]+df[e[n+1]]+df[e[n+2]]+df[e[n+3]]+"-"+df[e[n+4]]+df[e[n+5]]+"-"+df[e[n+6]]+df[e[n+7]]+"-"+df[e[n+8]]+df[e[n+9]]+"-"+df[e[n+10]]+df[e[n+11]]+df[e[n+12]]+df[e[n+13]]+df[e[n+14]]+df[e[n+15]]).toLowerCase();if(!lf(t))throw TypeError("Stringified UUID is invalid");return t}var mf=0,yf=0;function vf(e){if(!lf(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 bf(e,n,t){function r(e,r,o,i){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=vf(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,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return pf(a)}try{r.name=e}catch(o){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function wf(e){return 14+(e+64>>>9<<4)+1}function gf(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function kf(e,n,t,r,o,i){return gf((a=gf(gf(n,e),gf(r,i)))<<(s=o)|a>>>32-s,t);var a,s}function Af(e,n,t,r,o,i,a){return kf(n&t|~n&r,e,n,o,i,a)}function Ef(e,n,t,r,o,i,a){return kf(n&r|t&~r,e,n,o,i,a)}function Tf(e,n,t,r,o,i,a){return kf(n^t^r,e,n,o,i,a)}function Sf(e,n,t,r,o,i,a){return kf(t^(n|~r),e,n,o,i,a)}var xf=bf("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",o=0;o<t;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);n.push(a)}return n}(function(e,n){e[n>>5]|=128<<n%32,e[wf(n)-1]=n;for(var t=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=t,u=r,l=o,c=i;t=Af(t,r,o,i,e[a],7,-680876936),i=Af(i,t,r,o,e[a+1],12,-389564586),o=Af(o,i,t,r,e[a+2],17,606105819),r=Af(r,o,i,t,e[a+3],22,-1044525330),t=Af(t,r,o,i,e[a+4],7,-176418897),i=Af(i,t,r,o,e[a+5],12,1200080426),o=Af(o,i,t,r,e[a+6],17,-1473231341),r=Af(r,o,i,t,e[a+7],22,-45705983),t=Af(t,r,o,i,e[a+8],7,1770035416),i=Af(i,t,r,o,e[a+9],12,-1958414417),o=Af(o,i,t,r,e[a+10],17,-42063),r=Af(r,o,i,t,e[a+11],22,-1990404162),t=Af(t,r,o,i,e[a+12],7,1804603682),i=Af(i,t,r,o,e[a+13],12,-40341101),o=Af(o,i,t,r,e[a+14],17,-1502002290),t=Ef(t,r=Af(r,o,i,t,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=Ef(i,t,r,o,e[a+6],9,-1069501632),o=Ef(o,i,t,r,e[a+11],14,643717713),r=Ef(r,o,i,t,e[a],20,-373897302),t=Ef(t,r,o,i,e[a+5],5,-701558691),i=Ef(i,t,r,o,e[a+10],9,38016083),o=Ef(o,i,t,r,e[a+15],14,-660478335),r=Ef(r,o,i,t,e[a+4],20,-405537848),t=Ef(t,r,o,i,e[a+9],5,568446438),i=Ef(i,t,r,o,e[a+14],9,-1019803690),o=Ef(o,i,t,r,e[a+3],14,-187363961),r=Ef(r,o,i,t,e[a+8],20,1163531501),t=Ef(t,r,o,i,e[a+13],5,-1444681467),i=Ef(i,t,r,o,e[a+2],9,-51403784),o=Ef(o,i,t,r,e[a+7],14,1735328473),t=Tf(t,r=Ef(r,o,i,t,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=Tf(i,t,r,o,e[a+8],11,-2022574463),o=Tf(o,i,t,r,e[a+11],16,1839030562),r=Tf(r,o,i,t,e[a+14],23,-35309556),t=Tf(t,r,o,i,e[a+1],4,-1530992060),i=Tf(i,t,r,o,e[a+4],11,1272893353),o=Tf(o,i,t,r,e[a+7],16,-155497632),r=Tf(r,o,i,t,e[a+10],23,-1094730640),t=Tf(t,r,o,i,e[a+13],4,681279174),i=Tf(i,t,r,o,e[a],11,-358537222),o=Tf(o,i,t,r,e[a+3],16,-722521979),r=Tf(r,o,i,t,e[a+6],23,76029189),t=Tf(t,r,o,i,e[a+9],4,-640364487),i=Tf(i,t,r,o,e[a+12],11,-421815835),o=Tf(o,i,t,r,e[a+15],16,530742520),t=Sf(t,r=Tf(r,o,i,t,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=Sf(i,t,r,o,e[a+7],10,1126891415),o=Sf(o,i,t,r,e[a+14],15,-1416354905),r=Sf(r,o,i,t,e[a+5],21,-57434055),t=Sf(t,r,o,i,e[a+12],6,1700485571),i=Sf(i,t,r,o,e[a+3],10,-1894986606),o=Sf(o,i,t,r,e[a+10],15,-1051523),r=Sf(r,o,i,t,e[a+1],21,-2054922799),t=Sf(t,r,o,i,e[a+8],6,1873313359),i=Sf(i,t,r,o,e[a+15],10,-30611744),o=Sf(o,i,t,r,e[a+6],15,-1560198380),r=Sf(r,o,i,t,e[a+13],21,1309151649),t=Sf(t,r,o,i,e[a+4],6,-145523070),i=Sf(i,t,r,o,e[a+11],10,-1120210379),o=Sf(o,i,t,r,e[a+2],15,718787259),r=Sf(r,o,i,t,e[a+9],21,-343485551),t=gf(t,s),r=gf(r,u),o=gf(o,l),i=gf(i,c)}return[t,r,o,i]}(function(e){if(0===e.length)return[];for(var n=8*e.length,t=new Uint32Array(wf(n)),r=0;r<n;r+=8)t[r>>5]|=(255&e[r/8])<<r%32;return t}(e),8*e.length))});function Cf(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 If(e,n){return e<<n|e>>>32-n}var Mf=bf("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 o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*u+4*c]<<24|e[64*u+4*c+1]<<16|e[64*u+4*c+2]<<8|e[64*u+4*c+3];s[u]=l}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]=If(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=t[0],y=t[1],v=t[2],b=t[3],w=t[4],g=0;g<80;++g){var k=Math.floor(g/20),A=If(m,5)+Cf(k,y,v,b)+w+n[k]+d[g]>>>0;w=b,b=v,v=If(y,30)>>>0,y=m,m=A}t[0]=t[0]+m>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+v>>>0,t[3]=t[3]+b>>>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 Of=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:vf,stringify:pf,v1:function(e,n,t){var r=n&&t||0,o=n||new Array(16),i=(e=e||{}).node||cf,a=void 0!==e.clockseq?e.clockseq:ff;if(null==i||null==a){var s=e.random||(e.rng||sf)();null==i&&(i=cf=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=ff=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:yf+1,c=u-mf+(l-yf)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||u>mf)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");mf=u,yf=l,ff=a;var f=(1e4*(268435455&(u+=122192928e5))+l)%4294967296;o[r++]=f>>>24&255,o[r++]=f>>>16&255,o[r++]=f>>>8&255,o[r++]=255&f;var d=u/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var h=0;h<6;++h)o[r+h]=i[h];return n||pf(o)},v3:xf,v4:function(e,n,t){var r=(e=e||{}).random||(e.rng||sf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=r[o];return n}return pf(r)},v5:Mf,validate:lf,version:function(e){if(!lf(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})),Rf=/* @__PURE__ */t(Of);var Nf,Bf,Pf,Lf;!function(){if(Lf)return Pf;Lf=1;const e=Rf.v4,n=function(){if(Bf)return Nf;Bf=1;const e=Rf.v4;return Nf=function(n,t,r,o){if("string"!=typeof n)throw new TypeError(n+" must be a string");const i="number"==typeof(o=o||{}).version?o.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");const a={method:n};if(2===i&&(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 o.generator?o.generator:function(){return e()};a.id=n(a,o)}else 2===i&&null===r?o.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};Pf=t,t.prototype.request=function(e,t,r,o){const i=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)o=t,a=e;else{"function"==typeof r&&(o=r,r=void 0);const i="function"==typeof o;try{a=n(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(i)return void o(l);throw l}if(!i)return a}let u;try{u=JSON.stringify(a,this.options.replacer)}catch(l){return void o(l)}return this.callServer(u,function(e,n){i.En(e,n,o)}),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(o){return void t(o)}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 Ff;function Df(e){try{return Pi.ExtendedPoint.fromHex(e),!0}catch{return!1}}Ff||(Ff=1,function(e){var n=Object.prototype.hasOwnProperty,t="~";function r(){}function o(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function i(e,n,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=t?t+n:n;return e.Tn[u]?e.Tn[u].fn?e.Tn[u]=[e.Tn[u],s]:e.Tn[u].push(s):(e.Tn[u]=s,e.Sn++),e}function a(e,n){0===--e.Sn?e.Tn=new r:delete e.Tn[n]}function s(){this.Tn=new r,this.Sn=0}Object.create&&(r.prototype=/* @__PURE__ */Object.create(null),(new r).__proto__||(t=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this.Sn)return o;for(r in e=this.Tn)n.call(e,r)&&o.push(t?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var n=t?t+e:e,r=this.Tn[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var n=t?t+e:e,r=this.Tn[n];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,n,r,o,i,a){var s=t?t+e:e;if(!this.Tn[s])return!1;var u,l,c=this.Tn[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,o),!0;case 5:return c.fn.call(c.context,n,r,o,i),!0;case 6:return c.fn.call(c.context,n,r,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,n);break;case 3:c[l].fn.call(c[l].context,n,r);break;case 4:c[l].fn.call(c[l].context,n,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(e,n,t){return i(this,e,n,t,!1)},s.prototype.once=function(e,n,t){return i(this,e,n,t,!0)},s.prototype.removeListener=function(e,n,r,o){var i=t?t+e:e;if(!this.Tn[i])return this;if(!n)return a(this,i),this;var s=this.Tn[i];if(s.fn)s.fn!==n||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==n||o&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this.Tn[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var n;return e?(n=t?t+e:e,this.Tn[n]&&a(this,n)):(this.Tn=new r,this.Sn=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=t,s.EventEmitter=s,e.exports=s}({exports:{}}));class Uf{constructor(e){Object.assign(this,e)}encode(){return bi.Buffer.from(la.serialize(Hf,this))}static decode(e){return la.deserialize(Hf,this,e)}static decodeUnchecked(e){return la.deserializeUnchecked(Hf,this,e)}}const Hf=/* @__PURE__ */new Map;var jf;let qf=1;class Vf extends Uf{constructor(e){if(super({}),this.xn=void 0,function(e){return void 0!==e.xn}(e))this.xn=e.xn;else{if("string"==typeof e){const n=Ki.decode(e);if(32!=n.length)throw new Error("Invalid public key input");this.xn=new ji(n)}else this.xn=new ji(e);if(this.xn.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new Vf(qf);return qf+=1,new Vf(e.toBuffer())}equals(e){return this.xn.eq(e.xn)}toBase58(){return Ki.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.xn.toArrayLike(bi.Buffer);if(32===e.length)return e;const n=bi.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=bi.Buffer.concat([e.toBuffer(),bi.Buffer.from(n),t.toBuffer()]),o=sr(r);return new Vf(o)}static createProgramAddressSync(e,n){let t=bi.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var n;t=bi.Buffer.concat([t,(n=e,bi.Buffer.isBuffer(n)?n:n instanceof Uint8Array?bi.Buffer.from(n.buffer,n.byteOffset,n.byteLength):bi.Buffer.from(n))])}),t=bi.Buffer.concat([t,n.toBuffer(),bi.Buffer.from("ProgramDerivedAddress")]);const r=sr(t);if(Df(r))throw new Error("Invalid seeds, address must fall off the curve");return new Vf(r)}static async createProgramAddress(e,n){return this.createProgramAddressSync(e,n)}static findProgramAddressSync(e,n){let t,r=255;for(;0!=r;){try{const o=e.concat(bi.Buffer.from([r]));t=this.createProgramAddressSync(o,n)}catch(o){if(o instanceof TypeError)throw o;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 Df(new Vf(e).toBytes())}}jf=Vf,Vf.default=new jf("11111111111111111111111111111111"),Hf.set(Vf,{kind:"struct",fields:[["_bn","u256"]]}),new Vf("BPFLoader1111111111111111111111111111111111");const Wf=(e="publicKey")=>fa.blob(32,e),zf=(e="string")=>{const n=fa.struct([fa.u32("length"),fa.u32("lengthPadding"),fa.blob(fa.offset(fa.u32(),-8),"chars")],e),t=n.decode.bind(n),r=n.encode.bind(n),o=n;return o.decode=(e,n)=>t(e,n).chars.toString(),o.encode=(e,n,t)=>{const o={chars:bi.Buffer.from(e,"utf8")};return r(o,n,t)},o.alloc=e=>fa.u32().span+fa.u32().span+bi.Buffer.from(e,"utf8").length,o};bi.Buffer.alloc(64).fill(0),new Vf("SysvarC1ock11111111111111111111111111111111"),new Vf("SysvarEpochSchedu1e111111111111111111111111"),new Vf("Sysvar1nstructions1111111111111111111111111"),new Vf("SysvarRecentB1ockHashes11111111111111111111"),new Vf("SysvarRent111111111111111111111111111111111"),new Vf("SysvarRewards111111111111111111111111111111"),new Vf("SysvarS1otHashes111111111111111111111111111"),new Vf("SysvarS1otHistory11111111111111111111111111"),new Vf("SysvarStakeHistory1111111111111111111111111");const Gf=fa.nu64("lamportsPerSignature");function Yf(e){const n=fa.blob(8,e),t=n.decode.bind(n),r=n.encode.bind(n),o=n,i=Rc();return o.decode=(e,n)=>{const r=t(e,n);return i.decode(r)},o.encode=(e,n,t)=>{const o=i.encode(e);return r(o,n,t)},o}fa.struct([fa.u32("version"),fa.u32("state"),Wf("authorizedPubkey"),Wf("nonce"),fa.struct([Gf],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports"),fa.ns64("space"),Wf("programId")])},Assign:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("programId")])},Transfer:{index:2,layout:fa.struct([fa.u32("instruction"),Yf("lamports")])},CreateWithSeed:{index:3,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),fa.ns64("lamports"),fa.ns64("space"),Wf("programId")])},AdvanceNonceAccount:{index:4,layout:fa.struct([fa.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:fa.struct([fa.u32("instruction"),Wf("authorized")])},AuthorizeNonceAccount:{index:7,layout:fa.struct([fa.u32("instruction"),Wf("authorized")])},Allocate:{index:8,layout:fa.struct([fa.u32("instruction"),fa.ns64("space")])},AllocateWithSeed:{index:9,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),fa.ns64("space"),Wf("programId")])},AssignWithSeed:{index:10,layout:fa.struct([fa.u32("instruction"),Wf("base"),zf("seed"),Wf("programId")])},TransferWithSeed:{index:11,layout:fa.struct([fa.u32("instruction"),Yf("lamports"),zf("seed"),Wf("programId")])},UpgradeNonceAccount:{index:12,layout:fa.struct([fa.u32("instruction")])}}),new Vf("11111111111111111111111111111111"),new Vf("BPFLoader2111111111111111111111111111111111"),fa.struct([fa.u32("typeIndex"),Yf("deactivationSlot"),fa.nu64("lastExtendedSlot"),fa.u8("lastExtendedStartIndex"),fa.u8(),fa.seq(Wf(),fa.offset(fa.u8(),-1),"authority")]);const Jf=rf(Yc(Vf),_c(),e=>new Vf(e)),Kf=$c([_c(),Jc("base64")]),Xf=rf(Yc(bi.Buffer),Kf,e=>bi.Buffer.from(e[0],"base64"));function Qf(e){return nf([ef({jsonrpc:Jc("2.0"),id:_c(),result:e}),ef({jsonrpc:Jc("2.0"),id:_c(),error:ef({code:tf(),message:_c(),data:Qc(Wc("any",()=>!0))})})])}const Zf=Qf(tf());function _f(e){return rf(Qf(e),Zf,n=>"error"in n?n:{...n,result:jc(n.result,e)})}function $f(e){return _f(ef({context:ef({slot:Xc()}),value:e}))}function ed(e){return ef({context:ef({slot:Xc()}),value:e})}const nd=ef({foundation:Xc(),foundationTerm:Xc(),initial:Xc(),taper:Xc(),terminal:Xc()});_f(zc(Kc(ef({epoch:Xc(),effectiveSlot:Xc(),amount:Xc(),postBalance:Xc(),commission:Qc(Kc(Xc()))}))));const td=zc(ef({slot:Xc(),prioritizationFee:Xc()})),rd=ef({total:Xc(),validator:Xc(),foundation:Xc(),epoch:Xc()}),od=ef({epoch:Xc(),slotIndex:Xc(),slotsInEpoch:Xc(),absoluteSlot:Xc(),blockHeight:Qc(Xc()),transactionCount:Qc(Xc())}),id=ef({slotsPerEpoch:Xc(),leaderScheduleSlotOffset:Xc(),warmup:Gc(),firstNormalEpoch:Xc(),firstNormalSlot:Xc()}),ad=Zc(_c(),zc(Xc())),sd=Kc(nf([ef({}),_c()])),ud=ef({err:sd}),ld=Jc("receivedSignature");ef({"solana-core":_c(),"feature-set":Qc(Xc())});const cd=ef({program:_c(),programId:Jf,parsed:tf()}),fd=ef({programId:Jf,accounts:zc(Jf),data:_c()});$f(ef({err:Kc(nf([ef({}),_c()])),logs:Kc(zc(_c())),accounts:Qc(Kc(zc(Kc(ef({executable:Gc(),owner:_c(),lamports:Xc(),data:zc(_c()),rentEpoch:Qc(Xc())}))))),unitsConsumed:Qc(Xc()),returnData:Qc(Kc(ef({programId:_c(),data:$c([_c(),Jc("base64")])}))),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(nf([cd,fd]))}))))})),$f(ef({byIdentity:Zc(_c(),zc(Xc())),range:ef({firstSlot:Xc(),lastSlot:Xc()})})),_f(nd),_f(rd),_f(td),_f(od),_f(id),_f(ad),_f(Xc()),$f(ef({total:Xc(),circulating:Xc(),nonCirculating:Xc(),nonCirculatingAccounts:zc(Jf)}));const dd=ef({amount:_c(),uiAmount:Kc(Xc()),decimals:Xc(),uiAmountString:Qc(_c())});$f(zc(ef({address:Jf,amount:_c(),uiAmount:Kc(Xc()),decimals:Xc(),uiAmountString:Qc(_c())}))),$f(zc(ef({pubkey:Jf,account:ef({executable:Gc(),owner:Jf,lamports:Xc(),data:Xf,rentEpoch:Xc()})})));const hd=ef({program:_c(),parsed:tf(),space:Xc()});$f(zc(ef({pubkey:Jf,account:ef({executable:Gc(),owner:Jf,lamports:Xc(),data:hd,rentEpoch:Xc()})}))),$f(zc(ef({lamports:Xc(),address:Jf})));const pd=ef({executable:Gc(),owner:Jf,lamports:Xc(),data:Xf,rentEpoch:Xc()});ef({pubkey:Jf,account:pd});const md=rf(nf([Yc(bi.Buffer),hd]),nf([Kf,hd]),e=>Array.isArray(e)?jc(e,Xf):e),yd=ef({executable:Gc(),owner:Jf,lamports:Xc(),data:md,rentEpoch:Xc()});ef({pubkey:Jf,account:yd}),ef({state:nf([Jc("active"),Jc("inactive"),Jc("activating"),Jc("deactivating")]),active:Xc(),inactive:Xc()}),_f(zc(ef({signature:_c(),slot:Xc(),err:sd,memo:Kc(_c()),blockTime:Qc(Kc(Xc()))}))),_f(zc(ef({signature:_c(),slot:Xc(),err:sd,memo:Kc(_c()),blockTime:Qc(Kc(Xc()))}))),ef({subscription:Xc(),result:ed(pd)});const vd=ef({pubkey:Jf,account:pd});ef({subscription:Xc(),result:ed(vd)});const bd=ef({parent:Xc(),slot:Xc(),root:Xc()});ef({subscription:Xc(),result:bd});const wd=nf([ef({type:nf([Jc("firstShredReceived"),Jc("completed"),Jc("optimisticConfirmation"),Jc("root")]),slot:Xc(),timestamp:Xc()}),ef({type:Jc("createdBank"),parent:Xc(),slot:Xc(),timestamp:Xc()}),ef({type:Jc("frozen"),slot:Xc(),timestamp:Xc(),stats:ef({numTransactionEntries:Xc(),numSuccessfulTransactions:Xc(),numFailedTransactions:Xc(),maxTransactionsPerEntry:Xc()})}),ef({type:Jc("dead"),slot:Xc(),timestamp:Xc(),err:_c()})]);ef({subscription:Xc(),result:wd}),ef({subscription:Xc(),result:ed(nf([ud,ld]))}),ef({subscription:Xc(),result:Xc()}),ef({pubkey:_c(),gossip:Kc(_c()),tpu:Kc(_c()),rpc:Kc(_c()),version:Kc(_c())});const gd=ef({votePubkey:_c(),nodePubkey:_c(),activatedStake:Xc(),epochVoteAccount:Gc(),epochCredits:zc($c([Xc(),Xc(),Xc()])),commission:Xc(),lastVote:Xc(),rootSlot:Kc(Xc())});_f(ef({current:zc(gd),delinquent:zc(gd)}));const kd=nf([Jc("processed"),Jc("confirmed"),Jc("finalized")]),Ad=ef({slot:Xc(),confirmations:Kc(Xc()),err:sd,confirmationStatus:Qc(kd)});$f(zc(Kc(Ad))),_f(Xc());const Ed=ef({accountKey:Jf,writableIndexes:zc(Xc()),readonlyIndexes:zc(Xc())}),Td=ef({signatures:zc(_c()),message:ef({accountKeys:zc(_c()),header:ef({numRequiredSignatures:Xc(),numReadonlySignedAccounts:Xc(),numReadonlyUnsignedAccounts:Xc()}),instructions:zc(ef({accounts:zc(Xc()),data:_c(),programIdIndex:Xc()})),recentBlockhash:_c(),addressTableLookups:Qc(zc(Ed))})}),Sd=ef({pubkey:Jf,signer:Gc(),writable:Gc(),source:Qc(nf([Jc("transaction"),Jc("lookupTable")]))}),xd=ef({accountKeys:zc(Sd),signatures:zc(_c())}),Cd=ef({parsed:tf(),program:_c(),programId:Jf}),Id=ef({accounts:zc(Jf),data:_c(),programId:Jf}),Md=rf(nf([Id,Cd]),nf([ef({parsed:tf(),program:_c(),programId:_c()}),ef({accounts:zc(_c()),data:_c(),programId:_c()})]),e=>jc(e,"accounts"in e?Id:Cd)),Od=ef({signatures:zc(_c()),message:ef({accountKeys:zc(Sd),instructions:zc(Md),recentBlockhash:_c(),addressTableLookups:Qc(Kc(zc(Ed)))})}),Rd=ef({accountIndex:Xc(),mint:_c(),owner:Qc(_c()),programId:Qc(_c()),uiTokenAmount:dd}),Nd=ef({writable:zc(Jf),readonly:zc(Jf)}),Bd=ef({err:sd,fee:Xc(),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(ef({accounts:zc(Xc()),data:_c(),programIdIndex:Xc()}))})))),preBalances:zc(Xc()),postBalances:zc(Xc()),logMessages:Qc(Kc(zc(_c()))),preTokenBalances:Qc(Kc(zc(Rd))),postTokenBalances:Qc(Kc(zc(Rd))),loadedAddresses:Qc(Nd),computeUnitsConsumed:Qc(Xc()),costUnits:Qc(Xc())}),Pd=ef({err:sd,fee:Xc(),innerInstructions:Qc(Kc(zc(ef({index:Xc(),instructions:zc(Md)})))),preBalances:zc(Xc()),postBalances:zc(Xc()),logMessages:Qc(Kc(zc(_c()))),preTokenBalances:Qc(Kc(zc(Rd))),postTokenBalances:Qc(Kc(zc(Rd))),loadedAddresses:Qc(Nd),computeUnitsConsumed:Qc(Xc()),costUnits:Qc(Xc())}),Ld=nf([Jc(0),Jc("legacy")]),Fd=ef({pubkey:_c(),lamports:Xc(),postBalance:Kc(Xc()),rewardType:Kc(_c()),commission:Qc(Kc(Xc()))});_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Td,meta:Kc(Bd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:xd,meta:Kc(Bd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Od,meta:Kc(Pd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:xd,meta:Kc(Pd),version:Qc(Ld)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),rewards:Qc(zc(Fd)),blockTime:Kc(Xc()),blockHeight:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),transactions:zc(ef({transaction:Td,meta:Kc(Bd)})),rewards:Qc(zc(Fd)),blockTime:Kc(Xc())}))),_f(Kc(ef({blockhash:_c(),previousBlockhash:_c(),parentSlot:Xc(),signatures:zc(_c()),blockTime:Kc(Xc())}))),_f(Kc(ef({slot:Xc(),meta:Kc(Bd),blockTime:Qc(Kc(Xc())),transaction:Td,version:Qc(Ld)}))),_f(Kc(ef({slot:Xc(),transaction:Od,meta:Kc(Pd),blockTime:Qc(Kc(Xc())),version:Qc(Ld)}))),$f(ef({blockhash:_c(),lastValidBlockHeight:Xc()})),$f(Gc()),_f(zc(ef({slot:Xc(),numTransactions:Xc(),numSlots:Xc(),samplePeriodSecs:Xc()}))),$f(Kc(ef({feeCalculator:ef({lamportsPerSignature:Xc()})}))),_f(_c()),_f(_c());const Dd=ef({err:sd,logs:zc(_c()),signature:_c()});var Ud;ef({result:ed(Dd),subscription:Xc()}),Object.freeze({CreateLookupTable:{index:0,layout:fa.struct([fa.u32("instruction"),Yf("recentSlot"),fa.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:fa.struct([fa.u32("instruction")])},ExtendLookupTable:{index:2,layout:fa.struct([fa.u32("instruction"),Yf(),fa.seq(Wf(),fa.offset(fa.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:fa.struct([fa.u32("instruction")])},CloseLookupTable:{index:4,layout:fa.struct([fa.u32("instruction")])}}),new Vf("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:fa.struct([fa.u8("instruction"),fa.u32("units"),fa.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:fa.struct([fa.u8("instruction"),fa.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:fa.struct([fa.u8("instruction"),fa.u32("units")])},SetComputeUnitPrice:{index:3,layout:fa.struct([fa.u8("instruction"),Yf("microLamports")])}}),new Vf("ComputeBudget111111111111111111111111111111"),fa.struct([fa.u8("numSignatures"),fa.u8("padding"),fa.u16("signatureOffset"),fa.u16("signatureInstructionIndex"),fa.u16("publicKeyOffset"),fa.u16("publicKeyInstructionIndex"),fa.u16("messageDataOffset"),fa.u16("messageDataSize"),fa.u16("messageInstructionIndex")]),new Vf("Ed25519SigVerify111111111111111111111111111"),Ko.utils.isValidPrivateKey,fa.struct([fa.u8("numSignatures"),fa.u16("signatureOffset"),fa.u8("signatureInstructionIndex"),fa.u16("ethAddressOffset"),fa.u8("ethAddressInstructionIndex"),fa.u16("messageDataOffset"),fa.u16("messageDataSize"),fa.u8("messageInstructionIndex"),fa.blob(20,"ethAddress"),fa.blob(64,"signature"),fa.u8("recoveryId")]),new Vf("KeccakSecp256k11111111111111111111111111111"),new Vf("StakeConfig11111111111111111111111111111111");class Hd{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}}Ud=Hd,Hd.default=new Ud(0,0,Vf.default),Object.freeze({Initialize:{index:0,layout:fa.struct([fa.u32("instruction"),((e="authorized")=>fa.struct([Wf("staker"),Wf("withdrawer")],e))(),((e="lockup")=>fa.struct([fa.ns64("unixTimestamp"),fa.ns64("epoch"),Wf("custodian")],e))()])},Authorize:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:fa.struct([fa.u32("instruction")])},Split:{index:3,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},Withdraw:{index:4,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},Deactivate:{index:5,layout:fa.struct([fa.u32("instruction")])},Merge:{index:7,layout:fa.struct([fa.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("stakeAuthorizationType"),zf("authoritySeed"),Wf("authorityOwner")])}}),new Vf("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:fa.struct([fa.u32("instruction"),((e="voteInit")=>fa.struct([Wf("nodePubkey"),Wf("authorizedVoter"),Wf("authorizedWithdrawer"),fa.u8("commission")],e))()])},Authorize:{index:1,layout:fa.struct([fa.u32("instruction"),Wf("newAuthorized"),fa.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:fa.struct([fa.u32("instruction"),fa.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:fa.struct([fa.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:fa.struct([fa.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>fa.struct([fa.u32("voteAuthorizationType"),Wf("currentAuthorityDerivedKeyOwnerPubkey"),zf("currentAuthorityDerivedKeySeed"),Wf("newAuthorized")],e))()])}}),new Vf("Vote111111111111111111111111111111111111111"),new Vf("Va1idator1nfo111111111111111111111111111111"),ef({name:_c(),website:Qc(_c()),details:Qc(_c()),iconUrl:Qc(_c()),keybaseUsername:Qc(_c())}),new Vf("Vote111111111111111111111111111111111111111"),fa.struct([Wf("nodePubkey"),Wf("authorizedWithdrawer"),fa.u8("commission"),fa.nu64(),fa.seq(fa.struct([fa.nu64("slot"),fa.u32("confirmationCount")]),fa.offset(fa.u32(),-8),"votes"),fa.u8("rootSlotValid"),fa.nu64("rootSlot"),fa.nu64(),fa.seq(fa.struct([fa.nu64("epoch"),Wf("authorizedVoter")]),fa.offset(fa.u32(),-8),"authorizedVoters"),fa.struct([fa.seq(fa.struct([Wf("authorizedPubkey"),fa.nu64("epochOfLastAuthorizedSwitch"),fa.nu64("targetEpoch")]),32,"buf"),fa.nu64("idx"),fa.u8("isEmpty")],"priorVoters"),fa.nu64(),fa.seq(fa.struct([fa.nu64("epoch"),fa.nu64("credits"),fa.nu64("prevCredits")]),fa.offset(fa.u32(),-8),"epochCredits"),fa.struct([fa.nu64("slot"),fa.nu64("timestamp")],"lastTimestamp")]);const jd=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})},qd=e=>new Promise(n=>setTimeout(n,e||0)),Vd=(e,n=5,t=5)=>(e=e||"",e?.length<=n+t?e:`${e.substr(0,n)}...${e.substr(e.length-t,t)}`),Wd=e=>{if(!e)return"";const n=li[e];return n?n.chainTypeMoralis:""},zd=e=>{if(!e)return"";const n=li[e];return n?n.chainType:""},Gd={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 Yd(e){if(jn(e))return!0;try{return new Vf(e),!0}catch{return!1}}function Jd(){const e=String("keyring-chatbot-agent").trim().replace(/^['"]|['"]$/g,"").replace(/^['"]|['"]$/g,"").replace(/[;,]$/,"");return K[e||"keyring-chatbot-agent"]||K["keyring-chatbot-agent"]}const Kd=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,ellipsisAddress:Vd,formatDate:jd,getChainType:zd,getChainTypeMoralis:Wd,getDataPackage:Jd,isValidAddress:Yd,safeStorage:Gd,sleep:qd},Symbol.toStringTag,{value:"Module"})),Xd=j.createContext(void 0),Qd=()=>{const e=j.useContext(Xd);if(!e)throw new Error("useConnect must be used within ConnectProvider");return{...e,chainData:li[e?.account?.chainId]||void 0,chainId:e.account?.chainId||void 0,chainType:zd(e.account?.chainId||void 0),chainTypeMoralis:Wd(e.account?.chainId||void 0),isChainSupported:!!li[e?.account?.chainId]?.isSupported||!1}},Zd=({children:e,initialAccount:n})=>/* @__PURE__ */k.jsx(Xd.Provider,{value:{account:n||null},children:e}),_d=({address:e,chainId:n})=>{const[t,r]=j.useState(!1),{isChainSupported:o}=Qd(),{t:i}=G(),a=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__ */
|
|
5
5
|
return k.jsx(k.Fragment,{children:Yd(e||"")&&/* @__PURE__ */k.jsxs("div",{className:"chat-user-info",children:[
|
|
6
6
|
/* @__PURE__ */k.jsxs("span",{className:"user-wallet",children:[
|
|
7
7
|
/* @__PURE__ */k.jsxs("span",{style:{marginRight:8},children:[li[n]?.customName||li[n]?.name||`Chain ${n}`,":"]}),
|
|
@@ -17,7 +17,7 @@ return k.jsx(k.Fragment,{children:Yd(e||"")&&/* @__PURE__ */k.jsxs("div",{classN
|
|
|
17
17
|
/* @__PURE__ */k.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>y("amount",i.balanceFormatted),disabled:o||s,children:u("formMax")})]}),"amount"===t.key&&"send_nft"===e&&a&&/* @__PURE__ */k.jsx("div",{className:"action-form-pct-btns",children:/* @__PURE__ */k.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>y("amount",n.maxAmount||""),disabled:o||s,children:u("formMax")})})]}),(()=>{const e=!1===t.editable&&!!n[t.key]||s,r=o||e,i=[p[t.key]?"error":"",e?"readonly":""].filter(Boolean).join(" ");return"address"===t.type?/* @__PURE__ */k.jsx("textarea",{rows:2,placeholder:t.placeholder,value:f[t.key]||"",onChange:e=>y(t.key,e.target.value),className:i,disabled:r||s}):/* @__PURE__ */k.jsx("input",{type:"number"===t.type?"number":"text",placeholder:t.placeholder,value:f[t.key]||"",onChange:e=>y(t.key,e.target.value),className:i,disabled:r||s})})(),p[t.key]&&/* @__PURE__ */k.jsx("span",{className:"field-error",children:p[t.key]})]},t.key))}),!s&&/* @__PURE__ */k.jsxs("div",{className:"action-form-actions",children:[
|
|
18
18
|
/* @__PURE__ */k.jsx("button",{className:"message-button",onClick:r,type:"button",disabled:o,children:u("formCancel")}),
|
|
19
19
|
/* @__PURE__ */k.jsx("button",{className:"message-button",onClick:b,type:"button",disabled:o,children:u(o?"formProcessing":"formExecute")})]})]}):null},Rh=({scrollContainerRef:e,threshold:n=200})=>{const[t,r]=j.useState(!1);return j.useEffect(()=>{const t=e.current;if(!t)return;const o=()=>{const{scrollTop:e,scrollHeight:o,clientHeight:i}=t;r(o-e-i>n)};return t.addEventListener("scroll",o,{passive:!0}),o(),()=>{t.removeEventListener("scroll",o)}},[e,n]),t?/* @__PURE__ */k.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__ */k.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:/* @__PURE__ */k.jsx("path",{d:"M9 3V15M9 15L4 10M9 15L14 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null};var Nh,Bh,Ph={},Lh={exports:{}},Fh=Lh.exports;var Dh=function(){if(Bh)return Ph;Bh=1,Object.defineProperty(Ph,"o",{value:!0});var e,n=v(),t=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,r=function(){return Nh||(Nh=1,e=Lh,n=Lh.exports,function(t,r){var o="function",i="undefined",a="object",s="string",u="major",l="model",c="name",f="type",d="vendor",h="version",p="architecture",m="console",y="mobile",v="tablet",b="smarttv",w="wearable",g="embedded",k="Amazon",A="Apple",E="ASUS",T="BlackBerry",S="Browser",x="Chrome",C="Firefox",I="Google",M="Honor",O="Huawei",R="LG",N="Microsoft",B="Motorola",P="Nvidia",L="OnePlus",F="Opera",D="OPPO",U="Samsung",H="Sharp",j="Sony",q="Xiaomi",V="Zebra",W="Facebook",z="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===i?e:e.substring(0,500)},Z=function(e,n){for(var t,i,s,u,l,c,f=0;f<n.length&&!l;){var d=n[f],h=n[f+1];for(t=i=0;t<d.length&&!l&&d[t];)if(l=d[t++].exec(e))for(s=0;s<h.length;s++)c=l[++i],typeof(u=h[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):r:this[u[0]]=c?u[1].call(this,c,u[2]):r:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):r):this[u]=c||r;f+=2}},_=function(e,n){for(var t in n)if(typeof n[t]===a&&n[t].length>0){for(var o=0;o<n[t].length;o++)if(K(n[t][o],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,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[c,F+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[c,F]],[/\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,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[c,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[c,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[c,"MIUI"+Y]],[/fxios\/([\w\.-]+)/i],[h,[c,C]],[/\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,U+" 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,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,x+" 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,C+" 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],[l,[d,U],[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],[l,[d,U],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,A],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,A],[f,v]],[/(macintosh);/i],[l,[d,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,H],[f,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,M],[f,v]],[/honor([-\w ]+)[;\)]/i],[l,[d,M],[f,y]],[/\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],[l,[d,O],[f,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,O],[f,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,q],[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],[[l,/_/g," "],[d,q],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,D],[f,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,_,{OnePlus:["304","403","203"],"*":D}],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,y]],[/\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],[l,[d,B],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,B],[f,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[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],[l,[d,R],[f,y]],[/(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],[l,[d,"Lenovo"],[f,v]],[/(nokia) (t[12][01])/i],[d,l,[f,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[f,y],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,I],[f,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,I],[f,y]],[/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],[l,[d,j],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,j],[f,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,L],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,k],[f,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,k],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,T],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,E],[f,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,E],[f,y]],[/(nexus 9)/i],[l,[d,"HTC"],[f,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,y]],[/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],[l,[d,"TCL"],[f,v]],[/(itel) ((\w+))/i],[[d,X],l,[f,_,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[f,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[f,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[f,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[f,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[f,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[f,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[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,l,[f,y]],[/(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,l,[f,v]],[/(surface duo)/i],[l,[d,N],[f,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[l,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,v]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,v]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,v]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,v]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,v]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,v]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,v]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,y]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,v]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,v]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,v]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,P],[f,v]],[/(sprint) (\w+)/i],[d,l,[f,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,N],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,V],[f,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,V],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,b]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,U],[f,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,R],[f,b]],[/(apple) ?tv/i],[d,[l,A+" TV"],[f,b]],[/crkey/i],[[l,x+"cast"],[d,I],[f,b]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,k],[f,b]],[/(shield \w+ tv)/i],[l,[d,P],[f,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,H],[f,b]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,j],[f,b]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,q],[f,b]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Q],[l,Q],[f,b]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[f,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,m]],[/droid.+; (shield)( bui|\))/i],[l,[d,P],[f,m]],[/(playstation \w+)/i],[l,[d,j],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,N],[f,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,U],[f,w]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[f,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,D],[f,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,A],[f,w]],[/(opwwe\d{3})/i],[l,[d,L],[f,w]],[/(moto 360)/i],[l,[d,B],[f,w]],[/(smartwatch 3)/i],[l,[d,j],[f,w]],[/(g watch r)/i],[l,[d,R],[f,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,V],[f,w]],[/droid.+; (glass) \d/i],[l,[d,I],[f,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[f,w]],[/; (quest( \d| pro)?)/i],[l,[d,W],[f,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,g]],[/(aeobc)\b/i],[l,[d,k],[f,g]],[/(homepod).+mac os/i],[l,[d,A],[f,g]],[/windows iot/i],[[f,g]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[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,T]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[c,C+" 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,x+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,z],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(e,n){if(typeof e===a&&(n=e,e=r),!(this instanceof ne))return new ne(e,n).getResult();var m=typeof t!==i&&t.navigator?t.navigator:r,b=e||(m&&m.userAgent?m.userAgent:""),w=m&&m.userAgentData?m.userAgentData:r,g=n?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,n):ee,k=m&&m.userAgent==b;return this.getBrowser=function(){var e,n={};return n[c]=r,n[h]=r,Z.call(n,b,g.browser),n[u]=typeof(e=n[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,k&&m&&m.brave&&typeof m.brave.isBrave==o&&(n[c]="Brave"),n},this.getCPU=function(){var e={};return e[p]=r,Z.call(e,b,g.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,Z.call(e,b,g.device),k&&!e[f]&&w&&w.mobile&&(e[f]=y),k&&"Macintosh"==e[l]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[f]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[h]=r,Z.call(e,b,g.engine),e},this.getOS=function(){var e={};return e[c]=r,e[h]=r,Z.call(e,b,g.os),k&&!e[c]&&w&&w.platform&&"Unknown"!=w.platform&&(e[c]=w.platform.replace(/chrome os/i,z).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 b},this.setUA=function(e){return b=typeof e===s&&e.length>500?Q(e,500):e,this},this.setUA(b),this};ne.VERSION="1.0.41",ne.BROWSER=J([c,h,u]),ne.CPU=J([p]),ne.DEVICE=J([l,d,f,m,y,b,v,w,g]),ne.ENGINE=ne.OS=J([c,h]),e.exports&&(n=e.exports=ne),n.UAParser=ne;var te=typeof t!==i&&(t.jQuery||t.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:Fh)),Lh.exports;var e,n}(),o=new r,i=o.getBrowser(),a=o.getCPU(),s=o.getDevice(),u=o.getEngine(),l=o.getOS(),c=o.getUA(),f=function(e){return o.setUA(e)},d=function(e){if(e){var n=new r(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)}}}},h=/* @__PURE__ */Object.freeze({ClientUAInstance:o,browser:i,cpu:a,device:s,engine:u,os:l,ua:c,setUa:f,parseUserAgent:d});function p(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 m(e){return(m="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 y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(){return b=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},b.apply(this,arguments)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function k(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(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 T="mobile",S="tablet",x="smarttv",C="console",I="wearable",M="embedded",O=void 0,R={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"},N={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},B={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},P=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},L=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},F=function(e){var n=L();return n&&n.platform&&(-1!==n.platform.indexOf(e)||"MacIntel"===n.platform&&n.maxTouchPoints>1&&!window.MSStream)},D=function(e){return e.type===T},U=function(e){return e.type===S},H=function(e){var n=e.type;return n===T||n===S},j=function(e){return e.type===x},q=function(e){return e.type===O},V=function(e){return e.type===I},W=function(e){return e.type===C},z=function(e){return e.type===M},G=function(e){var n=e.vendor;return P(n)},Y=function(e){var n=e.model;return P(n)},J=function(e){var n=e.type;return P(n,"browser")},K=function(e){return e.name===N.Android},X=function(e){return e.name===N.Windows},Q=function(e){return e.name===N.MAC_OS},Z=function(e){return e.name===N.WindowsPhone},_=function(e){return e.name===N.IOS},$=function(e){var n=e.version;return P(n)},ee=function(e){var n=e.name;return P(n)},ne=function(e){return e.name===R.Chrome},te=function(e){return e.name===R.Firefox},re=function(e){return e.name===R.Chromium},oe=function(e){return e.name===R.Edge},ie=function(e){return e.name===R.Yandex},ae=function(e){var n=e.name;return n===R.Safari||n===R.MobileSafari},se=function(e){return e.name===R.MobileSafari},ue=function(e){return e.name===R.Opera},le=function(e){var n=e.name;return n===R.InternetExplorer||n===R.Ie},ce=function(e){return e.name===R.MIUI},fe=function(e){return e.name===R.SamsungBrowser},de=function(e){var n=e.version;return P(n)},he=function(e){var n=e.major;return P(n)},pe=function(e){var n=e.name;return P(n)},me=function(e){var n=e.name;return P(n)},ye=function(e){var n=e.version;return P(n)},ve=function(){var e=L(),n=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof n&&/electron/.test(n)},be=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},we=function(){var e=L();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ge=function(){return F("iPad")},ke=function(){return F("iPhone")},Ae=function(){return F("iPod")},Ee=function(e){return P(e)};function Te(e){var n=e||h,t=n.device,r=n.browser,o=n.os,i=n.engine,a=n.ua;return{isSmartTV:j(t),isConsole:W(t),isWearable:V(t),isEmbedded:z(t),isMobileSafari:se(r)||ge(),isChromium:re(r),isMobile:H(t)||ge(),isMobileOnly:D(t),isTablet:U(t)||ge(),isBrowser:q(t),isDesktop:q(t),isAndroid:K(o),isWinPhone:Z(o),isIOS:_(o)||ge(),isChrome:ne(r),isFirefox:te(r),isSafari:ae(r),isOpera:ue(r),isIE:le(r),osVersion:$(o),osName:ee(o),fullBrowserVersion:de(r),browserVersion:he(r),browserName:pe(r),mobileVendor:G(t),mobileModel:Y(t),engineName:me(i),engineVersion:ye(i),getUA:Ee(a),isEdge:oe(r)||be(a),isYandex:ie(r),deviceType:J(t),isIOS13:we(),isIPad13:ge(),isIPhone13:ke(),isIPod13:Ae(),isElectron:ve(),isEdgeChromium:be(a),isLegacyEdge:oe(r)&&!be(a),isWindows:X(o),isMacOs:Q(o),isMIUI:ce(r),isSamsungBrowser:fe(r)}}var Se=j(s),xe=W(s),Ce=V(s),Ie=z(s),Me=se(i)||ge(),Oe=re(i),Re=H(s)||ge(),Ne=D(s),Be=U(s)||ge(),Pe=q(s),Le=q(s),Fe=K(l),De=Z(l),Ue=_(l)||ge(),He=ne(i),je=te(i),qe=ae(i),Ve=ue(i),We=le(i),ze=$(l),Ge=ee(l),Ye=de(i),Je=he(i),Ke=pe(i),Xe=G(s),Qe=Y(s),Ze=me(u),_e=ye(u),$e=Ee(c),en=oe(i)||be(c),nn=ie(i),tn=J(s),rn=we(),on=ge(),an=ke(),sn=Ae(),un=ve(),ln=be(c),cn=oe(i)&&!be(c),fn=X(l),dn=Q(l),hn=ce(i),pn=fe(i);function mn(e){var n=e||window.navigator.userAgent;return d(n)}return Ph.AndroidView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Fe?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.BrowserTypes=R,Ph.BrowserView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Pe?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.ConsoleView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return xe?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.CustomView=function(e){var r=e.renderWithFragment,o=e.children;e.viewClassName,e.style;var i=e.condition,a=k(e,["renderWithFragment","children","viewClassName","style","condition"]);return i?r?t.createElement(n.Fragment,null,o):t.createElement("div",a,o):null},Ph.IEView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return We?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.IOSView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Ue?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.MobileOnlyView=function(e){var r=e.renderWithFragment,o=e.children;e.viewClassName,e.style;var i=k(e,["renderWithFragment","children","viewClassName","style"]);return Ne?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.MobileView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Re?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.OsTypes=N,Ph.SmartTVView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Se?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.TabletView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Be?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.WearableView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return Ce?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.WinPhoneView=function(e){var r=e.renderWithFragment,o=e.children,i=k(e,["renderWithFragment","children"]);return De?r?t.createElement(n.Fragment,null,o):t.createElement("div",i,o):null},Ph.browserName=Ke,Ph.browserVersion=Je,Ph.deviceDetect=function(e){var n=e?d(e):h,t=n.device,r=n.browser,o=n.engine,i=n.os,a=n.ua,s=function(e){switch(e){case T:return{isMobile:!0};case S:return{isTablet:!0};case x:return{isSmartTV:!0};case C:return{isConsole:!0};case I:return{isWearable:!0};case O:return{isBrowser:!0};case M:return{isEmbedded:!0};default:return B}}(t.type),u=s.isBrowser,l=s.isMobile,c=s.isTablet,f=s.isSmartTV,m=s.isConsole,v=s.isWearable,b=s.isEmbedded;return u?function(e,n,t,r,o){return{isBrowser:e,browserMajorVersion:P(n.major),browserFullVersion:P(n.version),browserName:P(n.name),engineName:P(t.name),engineVersion:P(t.version),osName:P(r.name),osVersion:P(r.version),userAgent:P(o)}}(u,r,o,i,a):f?function(e,n,t,r){return{isSmartTV:e,engineName:P(n.name),engineVersion:P(n.version),osName:P(t.name),osVersion:P(t.version),userAgent:P(r)}}(f,o,i,a):m?function(e,n,t,r){return{isConsole:e,engineName:P(n.name),engineVersion:P(n.version),osName:P(t.name),osVersion:P(t.version),userAgent:P(r)}}(m,o,i,a):l||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?p(Object(t),!0).forEach(function(n){y(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},e,{vendor:P(n.vendor),model:P(n.model),os:P(t.name),osVersion:P(t.version),ua:P(r)})}(s,t,i,a):v?function(e,n,t,r){return{isWearable:e,engineName:P(n.name),engineVersion:P(n.version),osName:P(t.name),osVersion:P(t.version),userAgent:P(r)}}(v,o,i,a):b?function(e,n,t,r,o){return{isEmbedded:e,vendor:P(n.vendor),model:P(n.model),engineName:P(t.name),engineVersion:P(t.version),osName:P(r.name),osVersion:P(r.version),userAgent:P(o)}}(b,t,o,i,a):void 0},Ph.deviceType=tn,Ph.engineName=Ze,Ph.engineVersion=_e,Ph.fullBrowserVersion=Ye,Ph.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var n=d(e);return Te({device:n.device,browser:n.browser,os:n.os,engine:n.engine,ua:n.ua})}},Ph.getUA=$e,Ph.isAndroid=Fe,Ph.isBrowser=Pe,Ph.isChrome=He,Ph.isChromium=Oe,Ph.isConsole=xe,Ph.isDesktop=Le,Ph.isEdge=en,Ph.isEdgeChromium=ln,Ph.isElectron=un,Ph.isEmbedded=Ie,Ph.isFirefox=je,Ph.isIE=We,Ph.isIOS=Ue,Ph.isIOS13=rn,Ph.isIPad13=on,Ph.isIPhone13=an,Ph.isIPod13=sn,Ph.isLegacyEdge=cn,Ph.isMIUI=hn,Ph.isMacOs=dn,Ph.isMobile=Re,Ph.isMobileOnly=Ne,Ph.isMobileSafari=Me,Ph.isOpera=Ve,Ph.isSafari=qe,Ph.isSamsungBrowser=pn,Ph.isSmartTV=Se,Ph.isTablet=Be,Ph.isWearable=Ce,Ph.isWinPhone=De,Ph.isWindows=fn,Ph.isYandex=nn,Ph.mobileModel=Qe,Ph.mobileVendor=Xe,Ph.osName=Ge,Ph.osVersion=ze,Ph.parseUserAgent=d,Ph.setUserAgent=function(e){return f(e)},Ph.useDeviceData=mn,Ph.useDeviceSelectors=function(e){var n=mn(e||window.navigator.userAgent);return[Te(n),n]},Ph.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,o,i=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==t.return||t.return()}finally{if(s)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return E(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)?E(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.")}()}(n.useState(function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}),2),t=e[0],r=e[1],o=n.useCallback(function(){var e=window.innerWidth>window.innerHeight?90:0,n={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};t.orientation!==n.orientation&&r(n)},[t.orientation]);return n.useEffect(function(){return void 0!==("undefined"==typeof window?"undefined":m(window))&&Re&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),t},Ph.withOrientationChange=function(e){/* @__PURE__ */
|
|
20
|
-
return function(n){function r(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),(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 A(e)}(this,w(r).call(this,e))).isEventListenerAdded=!1,n.handleOrientationChange=n.handleOrientationChange.bind(A(n)),n.onOrientationChange=n.onOrientationChange.bind(A(n)),n.onPageLoad=n.onPageLoad.bind(A(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&&g(e,n)}(r,n),o=r,(i=[{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":m(window))&&Re&&(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 t.createElement(e,b({},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)}}(o.prototype,i),r;var o,i}(t.Component)},Ph}();let Uh=null;function Hh(e){Uh=e}const jh="dataBuyToken",qh={srcTokenAddress:"",descTokenAddress:"",amount:"",srcTokenDecimals:18,descTokenDecimals:18};class Vh{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),o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:JSON.stringify(n),signal:t.signal});if(!o.ok){let e=null;try{e=await o.json()}catch{try{const n=await o.text();n&&(e={message:n})}catch{}}const n=new Error(e?.message||e?.errorMessage||`HTTP ${o.status}: ${o.statusText}`);throw n.status=o.status,n.statusText=o.statusText,e&&(n.data=e),n}return{data:await o.json(),status:o.status}}}const Wh=new class extends Vh{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}}};function zh(e,n){return new Promise(t=>{const r=setTimeout(t,e);n?.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}const Gh=Jd()?.webAppUrl||"https://nft.keyring.app",Yh=new Vh("https://wallet-api.pantograph.app"),Jh=Gh,Kh=new Vh(Jh);async function Xh(e){const{address:n,chain:t="base",token_addresses:r,exclude_spam:o,exclude_unverified_contracts:i}=e;if(!n)throw new Error("Address is required");let a="Unknown error";for(let l=1;l<=5;l++)try{const e={chain:t,exclude_spam:o??!1,exclude_unverified_contracts:i??!1};r&&(e.token_addresses=r);const a=(await Kh.get(`api/moralis/proxy/wallets/${encodeURIComponent(n)}/tokens`,{query:e})).data;if(a?.result?.length>0){a.result=a.result.filter(e=>new Mh(e?.balance||0).gt(0)),a.result=a.result.map(e=>({...e,token_address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"===e.token_address?Zo:e.token_address}));try{if(a.result.length>0){const e=ci(t)??t,n=a.result.map(e=>e.token_address),r=await Yh.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=Mh(n.balance_formatted||"0").multipliedBy(t.price).toNumber()),r}),a.result=a.result.filter(e=>null==e.usd_value||new Mh(e.usd_value).gte(.01))}}}catch(s){}}return{success:!0,data:a}}catch(u){a=u instanceof Error?u.message:"Unknown error",l<5&&await zh(1e3)}return{success:!1,error:a}}async function Qh(e){const{address:n,chain:t="base",signal:r}=e;if(!n)throw new Error("Token address is required");let o="Unknown error";for(let a=1;a<=5;a++){if(r?.aborted)return{success:!1,error:"Request cancelled"};try{const e=ci(t)??t,i=await Yh.get(`/keyrings/tokens/${e}/v2`,{query:{addresses:n},signal:r}),s=n===Zo,u=(Array.isArray(i.data)?i.data:[]).find(e=>e.address?.toLowerCase()===n.toLowerCase()||s&&""===e.address)??null;if(u)return{success:!0,data:{token_address:u.address??n,name:u.name??"",symbol:u.symbol??"",decimals:null!=u.decimals?Number(u.decimals):18,logo:u.icon_image||u.logo,thumbnail:u.icon_image||u.logo,usd_price:null!=u.price?parseFloat(u.price):void 0,usd_price_24hr_percent_change:u.price_change_percentage_24h??void 0,usd_price_24hr_usd_change:u.price_change_24h??void 0}};const[l,c]=await Promise.allSettled([Kh.get("api/moralis/proxy/erc20/metadata",{query:{chain:t,addresses:[n]},signal:r}),Kh.get(`api/moralis/proxy/erc20/${encodeURIComponent(n)}/price`,{query:{chain:t,include:"percent_change"},signal:r})]),f="fulfilled"===l.status?l.value.data:[];if(!f||0===f.length){if(o="Token metadata not found",a<5&&await zh(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(i){if(r?.aborted)return{success:!1,error:"Request cancelled"};if(o=i instanceof Error?i.message:"Unknown error",a<5&&await zh(1e3,r),r?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:o}}async function Zh(e){const{prompt:n,model:t="gpt-4.1-mini",stream:r=!1,systemPrompt:o,signal:i}=e;if(!n)throw new Error("Prompt is required");const a=new Vh(Jh),s=o?`${o}\n\n---\n\n Current User's question: ${n}`:n;let u="Unknown error";for(let c=1;c<=5;c++){if(i?.aborted)return{success:!1,error:"Request cancelled"};try{const e=(await a.post("api/moralis-cortex/proxy/chat",{prompt:s,model:t,stream:r},{headers:{Accept:"application/json","Content-Type":"application/json"},signal:i})).data;if(!e?.text?.trim()){if(u="Empty response from Cortex AI",c<5&&await zh(1e3,i),i?.aborted)return{success:!1,error:"Request cancelled"};continue}return{success:!0,data:e}}catch(l){if(i?.aborted)return{success:!1,error:"Request cancelled"};if(u=l instanceof Error?l.message:"Unknown error",c<5&&await zh(1e3,i),i?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:u}}async function _h(e){const{address:n,chain:t="base",limit:r=100,exclude_spam:o=!0,cursor:i,signal:a}=e;if(!n)throw new Error("Address is required");let s="Unknown error";for(let l=1;l<=5;l++){if(a?.aborted)return{success:!1,error:"Request cancelled"};try{const e={chain:t,format:"decimal",limit:r,exclude_spam:o,media_items:!0,normalizeMetadata:!0};i&&(e.cursor=i);return{success:!0,data:(await Kh.get(`api/moralis/proxy/${encodeURIComponent(n)}/nft`,{query:e,signal:a})).data}}catch(u){if(a?.aborted)return{success:!1,error:"Request cancelled"};if(s=u instanceof Error?u.message:"Unknown error",l<5&&await zh(1e3,a),a?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:s}}const $h=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,chatWithCortex:Zh,getNftContractMetadata: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 Kh.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"}}},getTokenMetadata:Qh,getWalletNFTs:_h,getWalletTokenBalances:Xh,moralisApi:Kh},Symbol.toStringTag,{value:"Module"})),ep=new Vh("https://dln.debridge.finance");async function np(e){const{chainId:n,tokenIn:t,tokenInAmount:r,tokenOut:o,accesstoken:i,slippage:a="auto",tokenOutRecipient:s}=e;if(!(n&&t&&r&&o))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"}),u=await e.json(),l=u?.others||{},c=l?.AFFILIATE_FEE_PERENT,f=l?.AFFILIATE_FEE_RECIPIENT,d=await ep.get("/v1.0/chain/transaction",{query:{chainId:String(n),tokenIn:t,tokenInAmount:r,tokenOut:o,slippage:String(a),tokenOutRecipient:s,accesstoken:i,affiliateFeePercent:c,affiliateFeeRecipient:f}});if(d.data?.error)throw new Error(`DeBridge API Error: ${d.data.error}`);return{success:!0,data:d.data}}catch(u){let e=u instanceof Error?u.message:"Unknown error";const n=u;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:u instanceof Error?u.message:"Unknown error",status:t,errorMessage:e,errorCode:n.data?.errorCode,errorId:n.data?.errorId}}}const tp={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",10:"0x4200000000000000000000000000000000000006",56:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",137:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},rp=[{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"}]}],op=[{name:"deposit",type:"function",stateMutability:"payable",inputs:[],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{name:"wad",type:"uint256"}],outputs:[]}],ip=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],ap=[{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 sp(e,n){if(n)return n;const t=li[e];return t?.rpcUrls?.default?.http?.[0]}function up(e){const{action:n,parameters:t,fromAddress:r,chainId:o}=e;switch(n){case"send_native":return function(e,n,t){const{to_address:r,amount:o}=e;if(!r)throw new Error("Recipient address is required");if(!o)throw new Error("Amount is required");return{from:n,to:r,data:"0x",value:Qo(Mh(o).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18).toString(),chainId:t,description:`Send ${o} native token to ${r}`}}(t,r,o);case"send_token":return function(e,n,t){const{contract_address:r,to_address:o,amount:i,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!o)throw new Error("Recipient address is required");if(!i)throw new Error("Amount is required");const u=parseInt(a)||18,l=Qo(Mh(i).decimalPlaces(u,Mh.ROUND_DOWN).toFixed(),u);return{from:n,to:r,data:nt({abi:rp,functionName:"transfer",args:[o,l]}),value:"0",chainId:t,description:`Send ${i} ${s||"tokens"} to ${o}`}}(t,r,o);case"approve_token":return function(e,n,t){const{contract_address:r,spender_address:o,amount:i,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!o)throw new Error("Spender address is required");const u=parseInt(a)||18,l=i&&""!==i?.trim()?Qo(Mh(i).decimalPlaces(u,Mh.ROUND_DOWN).toFixed(),u):Dt;return{from:n,to:r,data:nt({abi:rp,functionName:"approve",args:[o,l]}),value:"0",chainId:t,description:`Approve ${i||"unlimited"} ${s||"tokens"} for ${o}`}}(t,r,o);case"wrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const o=tp[t];if(!o)throw new Error(`WETH not supported on chain ${t}`);const i=Qo(Mh(r).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18).toString();return{from:n,to:o,data:nt({abi:op,functionName:"deposit"}),value:i,chainId:t,description:`Wrap ${r} native token`}}(t,r,o);case"unwrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const o=tp[t];if(!o)throw new Error(`WETH not supported on chain ${t}`);const i=Qo(Mh(r).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18);return{from:n,to:o,data:nt({abi:op,functionName:"withdraw",args:[i]}),value:"0",chainId:t,description:`Unwrap ${r} WETH`}}(t,r,o);case"send_nft":return function(e,n,t){const{contract_address:r,token_id:o,to_address:i,token_standard:a,amount:s,nft_name:u}=e;if(!r)throw new Error("NFT contract address is required");if(!o)throw new Error("Token ID is required");if(!i)throw new Error("Recipient address is required");const l=(a||"ERC721").toUpperCase(),c=BigInt(o);let f,d;if("ERC1155"===l){const e=BigInt(s||"1");f=nt({abi:ap,functionName:"safeTransferFrom",args:[n,i,c,e,"0x"]}),d=`Send ${e>1n?e.toString()+"x ":""}${u||"NFT"} (ERC1155 #${o}) to ${i}`}else f=nt({abi:ip,functionName:"safeTransferFrom",args:[n,i,c]}),d=`Send ${u||"NFT"} (ERC721 #${o}) to ${i}`;return{from:n,to:r,data:f,value:"0",chainId:t,description:d}}(t,r,o);default:throw new Error(`Action "${n}" does not produce a transaction`)}}async function lp(e){const{transactionHash:n,chainId:t,pollingInterval:r=3e3,timeout:o=12e4,rpcUrl:i}=e,a=sp(t,i);if(!a)throw new Error(`No RPC endpoint for chain ${t}`);const s=Date.now();for(;Date.now()-s<o;){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(u){}await new Promise(e=>setTimeout(e,r))}throw new Error(`Transaction ${n} was not mined within ${o/1e3}s`)}async function cp(e){const{tokenAddress:n,ownerAddress:t,spenderAddress:r,chainId:o,rpcUrl:i}=e,a=sp(o,i);if(!a)return BigInt(0);try{const e=nt({abi:rp,functionName:"allowance",args:[t,r]}),o=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"]})}),i=await o.json();return i.result&&"0x"!==i.result?BigInt(i.result):BigInt(0)}catch(s){return BigInt(0)}}function fp(e){const{tokenAddress:n,spenderAddress:t,fromAddress:r,chainId:o,tokenSymbol:i,amount:a}=e,s=a&&BigInt(a)>0n?BigInt(a):Dt;return{from:r,to:n,data:nt({abi:rp,functionName:"approve",args:[t,s]}),value:"0",chainId:o,description:`Approve ${i||"token"} for swap`}}async function dp(e){const{address:n,chainId:t,rpcUrl:r}=e,o=sp(t,r);if(!o)return new Mh(0);try{const e=await fetch(o,{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 Mh(BigInt(t.result).toString()):new Mh(0)}catch(i){return new Mh(0)}}async function hp(e){const{from:n,to:t,data:r,value:o,chainId:i,rpcUrl:a}=e,s=sp(i,a);if(!s)return new Mh(0);try{const[e,i]=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,...o&&"0"!==o?{value:o}:{}}]})}),fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_gasPrice",params:[]})})]),[a,u]=await Promise.all([e.json(),i.json()]),l=a.result?new Mh(BigInt(a.result).toString()):new Mh(0),c=u.result?new Mh(BigInt(u.result).toString()):new Mh(0);return l.times(c).times(1.1)}catch(u){return new Mh(0)}}async function pp(e){const{chainId:n,rpcUrl:t}=e,r=sp(n,t);if(!r)return new Mh(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 Mh(BigInt(n.result).toString()):new Mh(0)}catch(o){return new Mh(0)}}const mp=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,buildApproveForSwap:fp,buildTransaction:up,checkAllowance:cp,estimateTransactionFee:hp,getGasPrice:pp,getNativeBalance:dp,getRpcUrl:sp,isTransactionAction:function(e){return["send_native","send_token","approve_token","wrap_native","unwrap_native","send_nft"].includes(e)},waitForTransactionReceipt:lp},Symbol.toStringTag,{value:"Module"})),yp="gemini-2.5-flash-lite";let vp=null,bp=null;const wp=Jd()?.webAppUrl||"https://nft.keyring.app",gp=["faq","pool","general","crypto"],kp=new class extends Vh{enableGoogleSearch=!0;constructor(){super(wp)}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. **FOLLOW-UP / CONTINUATION**: If CURRENT USER QUESTION is a short follow-up (e.g. "yes", "ok", "sure", "tell me more", "details", "go ahead", "why?", "how?"), look at the CONVERSATION HISTORY above to understand what the user is responding to. Provide a relevant, detailed follow-up answer based on the LAST assistant message. NEVER say "too vague" or "please clarify" when history clearly shows the context.\n3. **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.\n4. **BREVITY**: Keep your answer extremely concise (under 3000 characters).\n5. **DATA INTEGRITY**: Do not mention data gaps or historical missing info; just answer based on available info.\n---\n`,o="/api/gemini-cortex/proxy",i={model:yp,data:{contents:[{parts:[{text:r}]}],tools:[{googleSearch:{}}]}};this.enableGoogleSearch||delete i.data.tools;const a=await this.post(o,i);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=await async function(){if(null!==vp)return vp;const e=await async function(){if(bp)return bp;const e=Jd(),n=[],t=e?.faqInternal;t&&Array.isArray(t.data)&&n.push(...t.data);const r=e?.faqUrl||"";if(r)try{const e=await fetch(r),t=await e.json();Array.isArray(t?.data)&&n.push(...t.data)}catch(o){}return bp=n,n}();return 0===e.length?(vp="",""):(vp=e.map((e,n)=>{const t=Object.keys(e.question),r=t.map(n=>e.question[n]?.trim()).filter(Boolean),o=t.map(n=>e.answer[n]?.trim()).filter(Boolean),i=r.join(" | ")||"",a=o[0]||"";return i?`[${n}] Q: ${i}\n A: ${a}`:""}).filter(Boolean).join("\n"),vp)}(),o=n+`---\nCURRENT USER QUESTION:\n${e}\n---`+(r?`\n\n## FAQ KNOWLEDGE BASE\n${r}\n\n`:"\n\n")+'Classify this question. Return ONLY a JSON object — no markdown, no explanation.\n\n## OUTPUT FORMAT\n{\n "model": "faq" | "pool" | "general" | "crypto",\n "language": "<ISO 639-1 code>",\n "faqAnswer": "<string>" | null\n}\n\n## FIELD DEFINITIONS\n- **model**: The AI pipeline route for this question (see classification steps below).\n- **language**: ISO 639-1 code detected from CURRENT USER QUESTION text only (en, vi, ja, zh, ko, es, fr, id, th, ru, etc.).\n- **faqAnswer**: Translated FAQ answer when model="faq"; always null otherwise.\n\n## CLASSIFICATION STEPS (follow in order)\n\n**Step 1 — Detect language**: Detect from CURRENT USER QUESTION text ONLY. Ignore language from history, system prompt, or FAQ data. For very short follow-ups (e.g. "yes", "ok"), detect language from the LAST user message in CONVERSATION HISTORY instead.\n\n**Step 1.5 — Detect Follow-up / Continuation**: If CURRENT USER QUESTION is a very short or vague follow-up that CANNOT stand alone (e.g., "yes", "no", "sure", "ok", "go ahead", "tell me more", "details", "please", "continue", "explain", "why?", "how?", "what about that?", "vâng", "ừ", "có", "tiếp", "はい", "對", single-word confirmations, affirmations, emojis, or any message that clearly references the previous assistant reply rather than introducing a new topic), then:\n - Look at the LAST assistant message in CONVERSATION HISTORY to determine the topic.\n - Route to the model that matches that topic: pool/liquidity/APR/positions → "pool", crypto/token/wallet/DeFi → "crypto", non-crypto topic → "general".\n - Do NOT classify the follow-up independently — the user is continuing the previous conversation.\n - Set faqAnswer = null (follow-ups are never FAQ).\n - STOP here, do not proceed to Step 2.\n - If there is NO CONVERSATION HISTORY, skip this step and proceed to Step 2.\n\n**Step 2 — Check FAQ FIRST**: Compare the CURRENT USER QUESTION against the FAQ KNOWLEDGE BASE above. Match by MEANING, not exact words — if the user asks in any language but a FAQ entry covers the same topic, it counts as a match. If the question semantically matches a FAQ entry:\n - Set model = "faq"\n - Set faqAnswer = the FAQ answer, translated/rewritten naturally into the user\'s detected language. Never output Vietnamese when language is "en".\n - STOP here, do not proceed further.\n\n**Step 3 — Check Pool (only if Step 2 did not match)**: Set model = "pool" ONLY when the user wants LIVE/REAL-TIME pool data that FAQ cannot answer:\n - Search/list/show actual pools with live data\n - Personal LP positions ("my pools", "my positions", "my liquidity")\n - Trending pools, pool by address/id, compare actual pool data\n - Live APR/TVL/volume numbers for specific pools\n - Send/transfer an LP position NFT ("send position 12345", "transfer my position to 0x...", "gửi position", "chuyển LP position")\n **NOT pool**: "show my NFTs", "view my NFTs", "what NFTs do I have", "xem NFT" — these are regular NFT collection queries → use "crypto".\n Use "general" or "crypto" for: token prices, swap/send/buy regular tokens, general wallet questions, educational pool questions already in FAQ, viewing/sending regular NFTs (non-LP-position).\n\n**Step 4 — Check if non-crypto (only if Steps 2 and 3 did not match)**: Set model = "general" ONLY if the question is completely unrelated to crypto, DeFi, NFT, wallet, blockchain, tokens, greetings, or financial topics (e.g. pure cooking, sports, unrelated coding).\n\n**Step 5 — Default**: Set model = "crypto" for everything crypto-related (tokens, DeFi, NFT, wallet, blockchain, greetings, chains, gas, smart contracts, send/swap/bridge/buy).\n\n## VALIDATION RULES\n- model="faq" requires faqAnswer != null\n- model != "faq" requires faqAnswer = null\n- If FAQ KNOWLEDGE BASE is empty, model must NOT be "faq"\n\nReturn only the JSON object.',i="/api/gemini-cortex/proxy",a={model:yp,data:{contents:[{parts:[{text:o}]}],generationConfig:{responseMimeType:"application/json"}}},s=await this.post(i,a),u=s?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||s?.data?.candidates?.[0]?.content?.parts?.[0]?.text;let l={model:"crypto",language:"en",faqAnswer:null};try{let e=u?.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=function(e){const n=gp.includes(e?.model)?e.model:"crypto",t="string"==typeof e?.language&&e.language.trim().length>0?e.language.trim().toLowerCase():"en",r="string"==typeof e?.faqAnswer&&e.faqAnswer.trim().length>0?e.faqAnswer.trim():null;return"faq"!==n||r?"faq"!==n?{model:n,language:t,faqAnswer:null}:{model:n,language:t,faqAnswer:r}:{model:"crypto",language:t,faqAnswer:null}}(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, mint 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",o={model:yp,data:{contents:[{parts:[{text:t}]}]}},i=await this.post(r,o),a=i?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||i?.data?.candidates?.[0]?.content?.parts?.[0]?.text;return a?.toLowerCase()?.startsWith("yes")}catch(t){throw t}}};var Ap,Ep,Tp,Sp={exports:{}},xp=(Ap||(Ap=1,Ep=Sp,Tp=Sp.exports,function(){var n,t="Expected a function",r="__lodash_hash_undefined__",o="__lodash_placeholder__",i=32,a=128,s=1/0,u=9007199254740991,l=NaN,c=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",i],["partialRight",64],["rearg",256]],d="[object Arguments]",h="[object Array]",p="[object Boolean]",m="[object Date]",y="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",g="[object Number]",k="[object Object]",A="[object Promise]",E="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",C="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",R="[object Float64Array]",N="[object Int8Array]",B="[object Int16Array]",P="[object Int32Array]",L="[object Uint8Array]",F="[object Uint8ClampedArray]",D="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,z=RegExp(V.source),G=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/[\\^$.*+?()[\]{}|]/g,$=RegExp(_.source),ee=/^\s+/,ne=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ae=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,ce=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,pe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ge="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+be+"]",xe="["+Te+"]",Ce="["+we+"]",Ie="\\d+",Me="["+ge+"]",Oe="["+ke+"]",Re="[^"+be+Te+Ie+ge+ke+Ae+"]",Ne="\\ud83c[\\udffb-\\udfff]",Be="[^"+be+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ae+"]",De="\\u200d",Ue="(?:"+Oe+"|"+Re+")",He="(?:"+Fe+"|"+Re+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Ce+"|"+Ne+")?",We="["+Ee+"]?",ze=We+Ve+"(?:"+De+"(?:"+[Be,Pe,Le].join("|")+")"+We+Ve+")*",Ge="(?:"+[Me,Pe,Le].join("|")+")"+ze,Ye="(?:"+[Be+Ce+"?",Ce,Pe,Le,Se].join("|")+")",Je=RegExp("['’]","g"),Ke=RegExp(Ce,"g"),Xe=RegExp(Ne+"(?="+Ne+")|"+Ye+ze,"g"),Qe=RegExp([Fe+"?"+Oe+"+"+je+"(?="+[xe,Fe,"$"].join("|")+")",He+"+"+qe+"(?="+[xe,Fe+Ue,"$"].join("|")+")",Fe+"?"+Ue+"+"+je,Fe+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),Ze=RegExp("["+De+be+we+Ee+"]"),_e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],en=-1,nn={};nn[O]=nn[R]=nn[N]=nn[B]=nn[P]=nn[L]=nn[F]=nn[D]=nn[U]=!0,nn[d]=nn[h]=nn[I]=nn[p]=nn[M]=nn[m]=nn[y]=nn[v]=nn[w]=nn[g]=nn[k]=nn[E]=nn[T]=nn[S]=nn[C]=!1;var tn={};tn[d]=tn[h]=tn[I]=tn[M]=tn[p]=tn[m]=tn[O]=tn[R]=tn[N]=tn[B]=tn[P]=tn[w]=tn[g]=tn[k]=tn[E]=tn[T]=tn[S]=tn[x]=tn[L]=tn[F]=tn[D]=tn[U]=!0,tn[y]=tn[v]=tn[C]=!1;var rn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},on=parseFloat,an=parseInt,sn="object"==typeof e&&e&&e.Object===Object&&e,un="object"==typeof self&&self&&self.Object===Object&&self,ln=sn||un||Function("return this")(),cn=Tp&&!Tp.nodeType&&Tp,fn=cn&&Ep&&!Ep.nodeType&&Ep,dn=fn&&fn.exports===cn,hn=dn&&sn.process,pn=function(){try{return fn&&fn.require&&fn.require("util").types||hn&&hn.binding&&hn.binding("util")}catch(e){}}(),mn=pn&&pn.isArrayBuffer,yn=pn&&pn.isDate,vn=pn&&pn.isMap,bn=pn&&pn.isRegExp,wn=pn&&pn.isSet,gn=pn&&pn.isTypedArray;function kn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function An(e,n,t,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];n(r,a,t(a),e)}return r}function En(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function Tn(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function Sn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function xn(e,n){for(var t=-1,r=null==e?0:e.length,o=0,i=[];++t<r;){var a=e[t];n(a,t,e)&&(i[o++]=a)}return i}function Cn(e,n){return!(null==e||!e.length)&&Dn(e,n,0)>-1}function In(e,n,t){for(var r=-1,o=null==e?0:e.length;++r<o;)if(t(n,e[r]))return!0;return!1}function Mn(e,n){for(var t=-1,r=null==e?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}function On(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}function Rn(e,n,t,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(t=e[++o]);++o<i;)t=n(t,e[o],o,e);return t}function Nn(e,n,t,r){var o=null==e?0:e.length;for(r&&o&&(t=e[--o]);o--;)t=n(t,e[o],o,e);return t}function Bn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var Pn=qn("length");function Ln(e,n,t){var r;return t(e,function(e,t,o){if(n(e,t,o))return r=t,!1}),r}function Fn(e,n,t,r){for(var o=e.length,i=t+(r?1:-1);r?i--:++i<o;)if(n(e[i],i,e))return i;return-1}function Dn(e,n,t){return n==n?function(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return-1}(e,n,t):Fn(e,Hn,t)}function Un(e,n,t,r){for(var o=t-1,i=e.length;++o<i;)if(r(e[o],n))return o;return-1}function Hn(e){return e!=e}function jn(e,n){var t=null==e?0:e.length;return t?zn(e,n)/t:l}function qn(e){return function(t){return null==t?n:t[e]}}function Vn(e){return function(t){return null==e?n:e[t]}}function Wn(e,n,t,r,o){return o(e,function(e,o,i){t=r?(r=!1,e):n(t,e,o,i)}),t}function zn(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Gn(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}function Yn(e){return e?e.slice(0,ut(e)+1).replace(ee,""):e}function Jn(e){return function(n){return e(n)}}function Kn(e,n){return Mn(n,function(n){return e[n]})}function Xn(e,n){return e.has(n)}function Qn(e,n){for(var t=-1,r=e.length;++t<r&&Dn(n,e[t],0)>-1;);return t}function Zn(e,n){for(var t=e.length;t--&&Dn(n,e[t],0)>-1;);return t}var _n=Vn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),$n=Vn({"&":"&","<":"<",">":">",'"':""","'":"'"});function et(e){return"\\"+rn[e]}function nt(e){return Ze.test(e)}function tt(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}function rt(e,n){return function(t){return e(n(t))}}function ot(e,n){for(var t=-1,r=e.length,i=0,a=[];++t<r;){var s=e[t];s!==n&&s!==o||(e[t]=o,a[i++]=t)}return a}function it(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}function at(e){return nt(e)?function(e){for(var n=Xe.lastIndex=0;Xe.test(e);)++n;return n}(e):Pn(e)}function st(e){return nt(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function ut(e){for(var n=e.length;n--&&ne.test(e.charAt(n)););return n}var lt=Vn({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ct=function e(ne){var be,we=(ne=null==ne?ln:ct.defaults(ln.Object(),ne,ct.pick(ln,$e))).Array,ge=ne.Date,ke=ne.Error,Ae=ne.Function,Ee=ne.Math,Te=ne.Object,Se=ne.RegExp,xe=ne.String,Ce=ne.TypeError,Ie=we.prototype,Me=Ae.prototype,Oe=Te.prototype,Re=ne["In"],Ne=Me.toString,Be=Oe.hasOwnProperty,Pe=0,Le=(be=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"",Fe=Oe.toString,De=Ne.call(Te),Ue=ln.Mn,He=Se("^"+Ne.call(Be).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=dn?ne.Buffer:n,qe=ne.Symbol,Ve=ne.Uint8Array,We=je?je.allocUnsafe:n,ze=rt(Te.getPrototypeOf,Te),Ge=Te.create,Ye=Oe.propertyIsEnumerable,Xe=Ie.splice,Ze=qe?qe.isConcatSpreadable:n,rn=qe?qe.iterator:n,sn=qe?qe.toStringTag:n,un=function(){try{var e=ui(Te,"defineProperty");return e({},"",{}),e}catch(n){}}(),cn=ne.clearTimeout!==ln.clearTimeout&&ne.clearTimeout,fn=ge&&ge.now!==ln.Date.now&&ge.now,hn=ne.setTimeout!==ln.setTimeout&&ne.setTimeout,pn=Ee.ceil,Pn=Ee.floor,Vn=Te.getOwnPropertySymbols,ft=je?je.isBuffer:n,dt=ne.isFinite,ht=Ie.join,pt=rt(Te.keys,Te),mt=Ee.max,yt=Ee.min,vt=ge.now,bt=ne.parseInt,wt=Ee.random,gt=Ie.reverse,kt=ui(ne,"DataView"),At=ui(ne,"Map"),Et=ui(ne,"Promise"),Tt=ui(ne,"Set"),St=ui(ne,"WeakMap"),xt=ui(Te,"create"),Ct=St&&new St,It={},Mt=Di(kt),Ot=Di(At),Rt=Di(Et),Nt=Di(Tt),Bt=Di(St),Pt=qe?qe.prototype:n,Lt=Pt?Pt.valueOf:n,Ft=Pt?Pt.toString:n;function Dt(e){if(es(e)&&!Wa(e)&&!(e instanceof qt)){if(e instanceof jt)return e;if(Be.call(e,"__wrapped__"))return Ui(e)}return new jt(e)}var Ut=/* @__PURE__ */function(){function e(){}return function(t){if(!$a(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Ht(){}function jt(e,t){this.On=e,this.Rn=[],this.Nn=!!t,this.Bn=0,this.Pn=n}function qt(e){this.On=e,this.Rn=[],this.Ln=1,this.Fn=!1,this.Dn=[],this.Un=c,this.Hn=[]}function Vt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Wt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function zt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Gt(e){var n=-1,t=null==e?0:e.length;for(this.jn=new zt;++n<t;)this.add(e[n])}function Yt(e){var n=this.jn=new Wt(e);this.size=n.size}function Jt(e,n){var t=Wa(e),r=!t&&Va(e),o=!t&&!r&&Ja(e),i=!t&&!r&&!o&&us(e),a=t||r||o||i,s=a?Gn(e.length,xe):[],u=s.length;for(var l in e)!n&&!Be.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mi(l,u))||s.push(l);return s}function Kt(e){var t=e.length;return t?e[zr(0,t-1)]:n}function Xt(e,n){return Ri(xo(e),or(n,0,e.length))}function Qt(e){return Ri(xo(e))}function Zt(e,t,r){(r!==n&&!Ha(e[t],r)||r===n&&!(t in e))&&tr(e,t,r)}function _t(e,t,r){var o=e[t];Be.call(e,t)&&Ha(o,r)&&(r!==n||t in e)||tr(e,t,r)}function $t(e,n){for(var t=e.length;t--;)if(Ha(e[t][0],n))return t;return-1}function er(e,n,t,r){return lr(e,function(e,o,i){n(r,e,t(e),i)}),r}function nr(e,n){return e&&Co(n,Os(n),e)}function tr(e,n,t){"__proto__"==n&&un?un(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function rr(e,t){for(var r=-1,o=t.length,i=we(o),a=null==e;++r<o;)i[r]=a?n:Ss(e,t[r]);return i}function or(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ir(e,t,r,o,i,a){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!$a(e))return e;var f=Wa(e);if(f){if(s=function(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&Be.call(e,"index")&&(t.index=e.index,t.input=e.input),t}(e),!u)return xo(e,s)}else{var h=fi(e),y=h==v||h==b;if(Ja(e))return go(e,u);if(h==k||h==d||y&&!i){if(s=l||y?{}:hi(e),!u)return l?function(e,n){return Co(e,ci(e),n)}(e,function(e,n){return e&&Co(n,Rs(n),e)}(s,e)):function(e,n){return Co(e,li(e),n)}(e,nr(s,e))}else{if(!tn[h])return i?e:{};s=function(e,n,t){var r,o=e.constructor;switch(n){case I:return ko(e);case p:case m:return new o(+e);case M:return function(e,n){var t=n?ko(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case O:case R:case N:case B:case P:case L:case F:case D:case U:return Ao(e,t);case w:return new o;case g:case S:return new o(e);case E:return function(e){var n=new e.constructor(e.source,le.exec(e));return n.lastIndex=e.lastIndex,n}(e);case T:return new o;case x:return r=e,Lt?Te(Lt.call(r)):{}}}(e,h,u)}}a||(a=new Yt);var A=a.get(e);if(A)return A;a.set(e,s),is(e)?e.forEach(function(n){s.add(ir(n,t,r,n,e,a))}):ns(e)&&e.forEach(function(n,o){s.set(o,ir(n,t,r,o,e,a))});var C=f?n:(c?l?ni:ei:l?Rs:Os)(e);return En(C||e,function(n,o){C&&(n=e[o=n]),_t(s,o,ir(n,t,r,o,e,a))}),s}function ar(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function sr(e,r,o){if("function"!=typeof e)throw new Ce(t);return Ci(function(){e.apply(n,o)},r)}function ur(e,n,t,r){var o=-1,i=Cn,a=!0,s=e.length,u=[],l=n.length;if(!s)return u;t&&(n=Mn(n,Jn(t))),r?(i=In,a=!1):n.length>=200&&(i=Xn,a=!1,n=new Gt(n));e:for(;++o<s;){var c=e[o],f=null==t?c:t(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=l;d--;)if(n[d]===f)continue e;u.push(c)}else i(n,f,r)||u.push(c)}return u}Dt.templateSettings={escape:Y,evaluate:J,interpolate:K,variable:"",imports:{Mn:Dt}},Dt.prototype=Ht.prototype,Dt.prototype.constructor=Dt,jt.prototype=Ut(Ht.prototype),jt.prototype.constructor=jt,qt.prototype=Ut(Ht.prototype),qt.prototype.constructor=qt,Vt.prototype.clear=function(){this.jn=xt?xt(null):{},this.size=0},Vt.prototype.delete=function(e){var n=this.has(e)&&delete this.jn[e];return this.size-=n?1:0,n},Vt.prototype.get=function(e){var t=this.jn;if(xt){var o=t[e];return o===r?n:o}return Be.call(t,e)?t[e]:n},Vt.prototype.has=function(e){var t=this.jn;return xt?t[e]!==n:Be.call(t,e)},Vt.prototype.set=function(e,t){var o=this.jn;return this.size+=this.has(e)?0:1,o[e]=xt&&t===n?r:t,this},Wt.prototype.clear=function(){this.jn=[],this.size=0},Wt.prototype.delete=function(e){var n=this.jn,t=$t(n,e);return!(t<0||(t==n.length-1?n.pop():Xe.call(n,t,1),--this.size,0))},Wt.prototype.get=function(e){var t=this.jn,r=$t(t,e);return r<0?n:t[r][1]},Wt.prototype.has=function(e){return $t(this.jn,e)>-1},Wt.prototype.set=function(e,n){var t=this.jn,r=$t(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},zt.prototype.clear=function(){this.size=0,this.jn={hash:new Vt,map:new(At||Wt),string:new Vt}},zt.prototype.delete=function(e){var n=ai(this,e).delete(e);return this.size-=n?1:0,n},zt.prototype.get=function(e){return ai(this,e).get(e)},zt.prototype.has=function(e){return ai(this,e).has(e)},zt.prototype.set=function(e,n){var t=ai(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this},Gt.prototype.add=Gt.prototype.push=function(e){return this.jn.set(e,r),this},Gt.prototype.has=function(e){return this.jn.has(e)},Yt.prototype.clear=function(){this.jn=new Wt,this.size=0},Yt.prototype.delete=function(e){var n=this.jn,t=n.delete(e);return this.size=n.size,t},Yt.prototype.get=function(e){return this.jn.get(e)},Yt.prototype.has=function(e){return this.jn.has(e)},Yt.prototype.set=function(e,n){var t=this.jn;if(t instanceof Wt){var r=t.jn;if(!At||r.length<199)return r.push([e,n]),this.size=++t.size,this;t=this.jn=new zt(r)}return t.set(e,n),this.size=t.size,this};var lr=Oo(vr),cr=Oo(br,!0);function fr(e,n){var t=!0;return lr(e,function(e,r,o){return t=!!n(e,r,o)}),t}function dr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(u===n?s==s&&!ss(s):r(s,u)))var u=s,l=a}return l}function hr(e,n){var t=[];return lr(e,function(e,r,o){n(e,r,o)&&t.push(e)}),t}function pr(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=pi),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?pr(s,n-1,t,r,o):On(o,s):r||(o[o.length]=s)}return o}var mr=Ro(),yr=Ro(!0);function vr(e,n){return e&&mr(e,n,Os)}function br(e,n){return e&&yr(e,n,Os)}function wr(e,n){return xn(n,function(n){return Qa(e[n])})}function gr(e,t){for(var r=0,o=(t=yo(t,e)).length;null!=e&&r<o;)e=e[Fi(t[r++])];return r&&r==o?e:n}function kr(e,n,t){var r=n(e);return Wa(e)?r:On(r,t(e))}function Ar(e){return null==e?e===n?"[object Undefined]":"[object Null]":sn&&sn in Te(e)?function(e){var t=Be.call(e,sn),r=e[sn];try{e[sn]=n;var o=!0}catch(a){}var i=Fe.call(e);return o&&(t?e[sn]=r:delete e[sn]),i}(e):function(e){return Fe.call(e)}(e)}function Er(e,n){return e>n}function Tr(e,n){return null!=e&&Be.call(e,n)}function Sr(e,n){return null!=e&&n in Te(e)}function xr(e,t,r){for(var o=r?In:Cn,i=e[0].length,a=e.length,s=a,u=we(a),l=1/0,c=[];s--;){var f=e[s];s&&t&&(f=Mn(f,Jn(t))),l=yt(f.length,l),u[s]=!r&&(t||i>=120&&f.length>=120)?new Gt(s&&f):n}f=e[0];var d=-1,h=u[0];e:for(;++d<i&&c.length<l;){var p=f[d],m=t?t(p):p;if(p=r||0!==p?p:0,!(h?Xn(h,m):o(c,m,r))){for(s=a;--s;){var y=u[s];if(!(y?Xn(y,m):o(e[s],m,r)))continue e}h&&h.push(m),c.push(p)}}return c}function Cr(e,t,r){var o=null==(e=Ti(e,t=yo(t,e)))?e:e[Fi(Xi(t))];return null==o?n:kn(o,e,r)}function Ir(e){return es(e)&&Ar(e)==d}function Mr(e,t,r,o,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Wa(e),u=Wa(t),l=s?h:fi(e),c=u?h:fi(t),f=(l=l==d?k:l)==k,v=(c=c==d?k:c)==k,b=l==c;if(b&&Ja(e)){if(!Ja(t))return!1;s=!0,f=!1}if(b&&!f)return a||(a=new Yt),s||us(e)?_o(e,t,r,o,i,a):function(e,n,t,r,o,i,a){switch(t){case M:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case I:return!(e.byteLength!=n.byteLength||!i(new Ve(e),new Ve(n)));case p:case m:case g:return Ha(+e,+n);case y:return e.name==n.name&&e.message==n.message;case E:case S:return e==n+"";case w:var s=tt;case T:var u=1&r;if(s||(s=it),e.size!=n.size&&!u)return!1;var l=a.get(e);if(l)return l==n;r|=2,a.set(e,n);var c=_o(s(e),s(n),r,o,i,a);return a.delete(e),c;case x:if(Lt)return Lt.call(e)==Lt.call(n)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var A=f&&Be.call(e,"__wrapped__"),C=v&&Be.call(t,"__wrapped__");if(A||C){var O=A?e.value():e,R=C?t.value():t;return a||(a=new Yt),i(O,R,r,o,a)}}return!!b&&(a||(a=new Yt),function(e,t,r,o,i,a){var s=1&r,u=ei(e),l=u.length;if(l!=ei(t).length&&!s)return!1;for(var c=l;c--;){var f=u[c];if(!(s?f in t:Be.call(t,f)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<l;){var y=e[f=u[c]],v=t[f];if(o)var b=s?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(b===n?y===v||i(y,v,r,o,a):b)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var w=e.constructor,g=t.constructor;w==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof g&&g instanceof g||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,o,i,a))}(e,t,r,o,Mr,i))}function Or(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Te(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var l=(u=r[i])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===n&&!(l in e))return!1}else{var d=new Yt;if(o)var h=o(c,f,l,e,t,d);if(!(h===n?Mr(f,c,3,o,d):h))return!1}}return!0}function Rr(e){return!(!$a(e)||(n=e,Le&&Le in n))&&(Qa(e)?He:de).test(Di(e));var n}function Nr(e){return"function"==typeof e?e:null==e?tu:"object"==typeof e?Wa(e)?Dr(e[0],e[1]):Fr(e):fu(e)}function Br(e){if(!gi(e))return pt(e);var n=[];for(var t in Te(e))Be.call(e,t)&&"constructor"!=t&&n.push(t);return n}function Pr(e,n){return e<n}function Lr(e,n){var t=-1,r=Ga(e)?we(e.length):[];return lr(e,function(e,o,i){r[++t]=n(e,o,i)}),r}function Fr(e){var n=si(e);return 1==n.length&&n[0][2]?Ai(n[0][0],n[0][1]):function(t){return t===e||Or(t,e,n)}}function Dr(e,t){return vi(e)&&ki(t)?Ai(Fi(e),t):function(r){var o=Ss(r,e);return o===n&&o===t?xs(r,e):Mr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&mr(t,function(a,s){if(i||(i=new Yt),$a(a))!function(e,t,r,o,i,a,s){var u=Si(e,r),l=Si(t,r),c=s.get(l);if(c)Zt(e,r,c);else{var f=a?a(u,l,r+"",e,t,s):n,d=f===n;if(d){var h=Wa(l),p=!h&&Ja(l),m=!h&&!p&&us(l);f=l,h||p||m?Wa(u)?f=u:Ya(u)?f=xo(u):p?(d=!1,f=go(l,!0)):m?(d=!1,f=Ao(l,!0)):f=[]:rs(l)||Va(l)?(f=u,Va(u)?f=ys(u):$a(u)&&!Qa(u)||(f=hi(l))):d=!1}d&&(s.set(l,f),i(f,l,o,a,s),s.delete(l)),Zt(e,r,f)}}(e,t,s,r,Ur,o,i);else{var u=o?o(Si(e,s),a,s+"",e,t,i):n;u===n&&(u=a),Zt(e,s,u)}},Rs)}function Hr(e,t){var r=e.length;if(r)return mi(t+=t<0?r:0,r)?e[t]:n}function jr(e,n,t){n=n.length?Mn(n,function(e){return Wa(e)?function(n){return gr(n,1===e.length?e[0]:e)}:e}):[tu];var r=-1;return n=Mn(n,Jn(ii())),function(e){var n=e.length;for(e.sort(function(e,n){return function(e,n,t){for(var r=-1,o=e.criteria,i=n.criteria,a=o.length,s=t.length;++r<a;){var u=Eo(o[r],i[r]);if(u)return r>=s?u:u*("desc"==t[r]?-1:1)}return e.index-n.index}(e,n,t)});n--;)e[n]=e[n].value;return e}(Lr(e,function(e,t,o){return{criteria:Mn(n,function(n){return n(e)}),index:++r,value:e}}))}function qr(e,n,t){for(var r=-1,o=n.length,i={};++r<o;){var a=n[r],s=gr(e,a);t(s,a)&&Xr(i,yo(a,e),s)}return i}function Vr(e,n,t,r){var o=r?Un:Dn,i=-1,a=n.length,s=e;for(e===n&&(n=xo(n)),t&&(s=Mn(e,Jn(t)));++i<a;)for(var u=0,l=n[i],c=t?t(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Wr(e,n){for(var t=e?n.length:0,r=t-1;t--;){var o=n[t];if(t==r||o!==i){var i=o;mi(o)?Xe.call(e,o,1):so(e,o)}}return e}function zr(e,n){return e+Pn(wt()*(n-e+1))}function Gr(e,n){var t="";if(!e||n<1||n>u)return t;do{n%2&&(t+=e),(n=Pn(n/2))&&(e+=e)}while(n);return t}function Yr(e,n){return Ii(Ei(e,n,tu),e+"")}function Jr(e){return Kt(Hs(e))}function Kr(e,n){var t=Hs(e);return Ri(t,or(n,0,t.length))}function Xr(e,t,r,o){if(!$a(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var l=Fi(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var f=u[l];(c=o?o(f,l,u):n)===n&&(c=$a(f)?f:mi(t[i+1])?[]:{})}_t(u,l,c),u=u[l]}return e}var Qr=Ct?function(e,n){return Ct.set(e,n),e}:tu,Zr=un?function(e,n){return un(e,"toString",{configurable:!0,enumerable:!1,value:$s(n),writable:!0})}:tu;function _r(e){return Ri(Hs(e))}function $r(e,n,t){var r=-1,o=e.length;n<0&&(n=-n>o?0:o+n),(t=t>o?o:t)<0&&(t+=o),o=n>t?0:t-n>>>0,n>>>=0;for(var i=we(o);++r<o;)i[r]=e[r+n];return i}function eo(e,n){var t;return lr(e,function(e,r,o){return!(t=n(e,r,o))}),!!t}function no(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n==n&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(t?a<=n:a<n)?r=i+1:o=i}return o}return to(e,n,tu,t)}function to(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,l=ss(t),c=t===n;i<a;){var f=Pn((i+a)/2),d=r(e[f]),h=d!==n,p=null===d,m=d==d,y=ss(d);if(s)var v=o||m;else v=c?m&&(o||h):u?m&&h&&(o||!p):l?m&&h&&!p&&(o||!y):!p&&!y&&(o?d<=t:d<t);v?i=f+1:a=f}return yt(a,4294967294)}function ro(e,n){for(var t=-1,r=e.length,o=0,i=[];++t<r;){var a=e[t],s=n?n(a):a;if(!t||!Ha(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:ss(e)?l:+e}function io(e){if("string"==typeof e)return e;if(Wa(e))return Mn(e,io)+"";if(ss(e))return Ft?Ft.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function ao(e,n,t){var r=-1,o=Cn,i=e.length,a=!0,s=[],u=s;if(t)a=!1,o=In;else if(i>=200){var l=n?null:Yo(e);if(l)return it(l);a=!1,o=Xn,u=new Gt}else u=n?[]:s;e:for(;++r<i;){var c=e[r],f=n?n(c):c;if(c=t||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;n&&u.push(f),s.push(c)}else o(u,f,t)||(u!==s&&u.push(f),s.push(c))}return s}function so(e,n){var t=-1,r=(n=yo(n,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++t<r;){var i=n[t];if("string"==typeof i){if("__proto__"===i&&!Be.call(e,"__proto__"))return!1;if("constructor"===i&&t+1<r&&"string"==typeof n[t+1]&&"prototype"===n[t+1]){if(o&&0===t)continue;return!1}}}var a=Ti(e,n);return null==a||delete a[Fi(Xi(n))]}function uo(e,n,t,r){return Xr(e,n,t(gr(e,n)),r)}function lo(e,n,t,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&n(e[i],i,e););return t?$r(e,r?0:i,r?i+1:o):$r(e,r?i+1:0,r?o:i)}function co(e,n){var t=e;return t instanceof qt&&(t=t.value()),Rn(n,function(e,n){return n.func.apply(n.thisArg,On([e],n.args))},t)}function fo(e,n,t){var r=e.length;if(r<2)return r?ao(e[0]):[];for(var o=-1,i=we(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=ur(i[o]||a,e[s],n,t));return ao(pr(i,1),n,t)}function ho(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var u=o<a?t[o]:n;r(s,e[o],u)}return s}function po(e){return Ya(e)?e:[]}function mo(e){return"function"==typeof e?e:tu}function yo(e,n){return Wa(e)?e:vi(e,n)?[e]:Li(vs(e))}var vo=Yr;function bo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:$r(e,t,r)}var wo=cn||function(e){return ln.clearTimeout(e)};function go(e,n){if(n)return e.slice();var t=e.length,r=We?We(t):new e.constructor(t);return e.copy(r),r}function ko(e){var n=new e.constructor(e.byteLength);return new Ve(n).set(new Ve(e)),n}function Ao(e,n){var t=n?ko(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ss(e),s=t!==n,u=null===t,l=t==t,c=ss(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!l)return-1}return 0}function To(e,n,t,r){for(var o=-1,i=e.length,a=t.length,s=-1,u=n.length,l=mt(i-a,0),c=we(u+l),f=!r;++s<u;)c[s]=n[s];for(;++o<a;)(f||o<i)&&(c[t[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function So(e,n,t,r){for(var o=-1,i=e.length,a=-1,s=t.length,u=-1,l=n.length,c=mt(i-s,0),f=we(c+l),d=!r;++o<c;)f[o]=e[o];for(var h=o;++u<l;)f[h+u]=n[u];for(;++a<s;)(d||o<i)&&(f[h+t[a]]=e[o++]);return f}function xo(e,n){var t=-1,r=e.length;for(n||(n=we(r));++t<r;)n[t]=e[t];return n}function Co(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=o?o(r[u],e[u],u,r,e):n;l===n&&(l=e[u]),i?tr(r,u,l):_t(r,u,l)}return r}function Io(e,n){return function(t,r){var o=Wa(t)?An:er,i=n?n():{};return o(t,e,ii(r,2),i)}}function Mo(e){return Yr(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&yi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Te(t);++o<i;){var u=r[o];u&&e(t,u,o,a)}return t})}function Oo(e,n){return function(t,r){if(null==t)return t;if(!Ga(t))return e(t,r);for(var o=t.length,i=n?o:-1,a=Te(t);(n?i--:++i<o)&&!1!==r(a[i],i,a););return t}}function Ro(e){return function(n,t,r){for(var o=-1,i=Te(n),a=r(n),s=a.length;s--;){var u=a[e?s:++o];if(!1===t(i[u],u,i))break}return n}}function No(e){return function(t){var r=nt(t=vs(t))?st(t):n,o=r?r[0]:t.charAt(0),i=r?bo(r,1).join(""):t.slice(1);return o[e]()+i}}function Bo(e){return function(n){return Rn(Qs(Vs(n).replace(Je,"")),e,"")}}function Po(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=Ut(e.prototype),r=e.apply(t,n);return $a(r)?r:t}}function Lo(e){return function(t,r,o){var i=Te(t);if(!Ga(t)){var a=ii(r,3);t=Os(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return $o(function(r){var o=r.length,i=o,a=jt.prototype.thru;for(e&&r.reverse();i--;){var s=r[i];if("function"!=typeof s)throw new Ce(t);if(a&&!u&&"wrapper"==ri(s))var u=new jt([],!0)}for(i=u?i:o;++i<o;){var l=ri(s=r[i]),c="wrapper"==l?ti(s):n;u=c&&bi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ri(c[0])].apply(u,c[3]):1==s.length&&bi(s)?u[l]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Wa(n))return u.plant(n).value();for(var t=0,i=o?r[t].apply(this,e):n;++t<o;)i=r[t].call(this,i);return i}})}function Do(e,t,r,o,i,s,u,l,c,f){var d=t&a,h=1&t,p=2&t,m=24&t,y=512&t,v=p?n:Po(e);return function a(){for(var b=arguments.length,w=we(b),g=b;g--;)w[g]=arguments[g];if(m)var k=oi(a),A=function(e,n){for(var t=e.length,r=0;t--;)e[t]===n&&++r;return r}(w,k);if(o&&(w=To(w,o,i,m)),s&&(w=So(w,s,u,m)),b-=A,m&&b<f){var E=ot(w,k);return zo(e,t,Do,a.placeholder,r,w,E,l,c,f-b)}var T=h?r:this,S=p?T[e]:e;return b=w.length,l?w=function(e,t){for(var r=e.length,o=yt(t.length,r),i=xo(e);o--;){var a=t[o];e[o]=mi(a,r)?i[a]:n}return e}(w,l):y&&b>1&&w.reverse(),d&&c<b&&(w.length=c),this&&this!==ln&&this instanceof a&&(S=v||Po(S)),S.apply(T,w)}}function Uo(e,n){return function(t,r){return function(e,n,t,r){return vr(e,function(e,o,i){n(r,t(e),o,i)}),r}(t,e,n(r),{})}}function Ho(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=io(r),o=io(o)):(r=oo(r),o=oo(o)),i=e(r,o)}return i}}function jo(e){return $o(function(n){return n=Mn(n,Jn(ii())),Yr(function(t){var r=this;return e(n,function(e){return kn(e,r,t)})})})}function qo(e,t){var r=(t=t===n?" ":io(t)).length;if(r<2)return r?Gr(t,e):t;var o=Gr(t,pn(e/at(t)));return nt(t)?bo(st(o),0,e).join(""):o.slice(0,e)}function Vo(e){return function(t,r,o){return o&&"number"!=typeof o&&yi(t,r,o)&&(r=o=n),t=ds(t),r===n?(r=t,t=0):r=ds(r),function(e,n,t,r){for(var o=-1,i=mt(pn((n-e)/(t||1)),0),a=we(i);i--;)a[r?i:++o]=e,e+=t;return a}(t,r,o=o===n?t<r?1:-1:ds(o),e)}}function Wo(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=ms(n),t=ms(t)),e(n,t)}}function zo(e,t,r,o,a,s,u,l,c,f){var d=8&t;t|=d?i:64,4&(t&=~(d?64:i))||(t&=-4);var h=[e,t,a,d?s:n,d?u:n,d?n:s,d?n:u,l,c,f],p=r.apply(n,h);return bi(e)&&xi(p,h),p.placeholder=o,Mi(p,e,t)}function Go(e){var n=Ee[e];return function(e,t){if(e=ms(e),(t=null==t?0:yt(hs(t),292))&&dt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return n(e)}}var Yo=Tt&&1/it(new Tt([,-0]))[1]==s?function(e){return new Tt(e)}:su;function Jo(e){return function(n){var t,r,o,i=fi(n);return i==w?tt(n):i==T?(t=n,r=-1,o=Array(t.size),t.forEach(function(e){o[++r]=[e,e]}),o):function(e,n){return Mn(n,function(n){return[n,e[n]]})}(n,e(n))}}function Ko(e,r,s,u,l,c,f,d){var h=2&r;if(!h&&"function"!=typeof e)throw new Ce(t);var p=u?u.length:0;if(p||(r&=-97,u=l=n),f=f===n?f:mt(hs(f),0),d=d===n?d:hs(d),p-=l?l.length:0,64&r){var m=u,y=l;u=l=n}var v=h?n:ti(e),b=[e,r,s,u,l,m,y,c,f,d];if(v&&function(e,n){var t=e[1],r=n[1],i=t|r,s=i<131,u=r==a&&8==t||r==a&&256==t&&e[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==t;if(!s&&!u)return e;1&r&&(e[2]=n[2],i|=1&t?0:4);var l=n[3];if(l){var c=e[3];e[3]=c?To(c,l,n[4]):l,e[4]=c?ot(e[3],o):n[4]}(l=n[5])&&(c=e[5],e[5]=c?So(c,l,n[6]):l,e[6]=c?ot(e[5],o):n[6]),(l=n[7])&&(e[7]=l),r&a&&(e[8]=null==e[8]?n[8]:yt(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=i}(b,v),e=b[0],r=b[1],s=b[2],u=b[3],l=b[4],!(d=b[9]=b[9]===n?h?0:e.length:mt(b[9]-p,0))&&24&r&&(r&=-25),r&&1!=r)w=8==r||16==r?function(e,t,r){var o=Po(e);return function i(){for(var a=arguments.length,s=we(a),u=a,l=oi(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:ot(s,l);return(a-=c.length)<r?zo(e,t,Do,i.placeholder,n,s,c,n,n,r-a):kn(this&&this!==ln&&this instanceof i?o:e,this,s)}}(e,r,d):r!=i&&33!=r||l.length?Do.apply(n,b):function(e,n,t,r){var o=1&n,i=Po(e);return function n(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=we(l+s),f=this&&this!==ln&&this instanceof n?i:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return kn(f,o?t:this,c)}}(e,r,s,u);else var w=function(e,n,t){var r=1&n,o=Po(e);return function n(){return(this&&this!==ln&&this instanceof n?o:e).apply(r?t:this,arguments)}}(e,r,s);return Mi((v?Qr:xi)(w,b),e,r)}function Xo(e,t,r,o){return e===n||Ha(e,Oe[r])&&!Be.call(o,r)?t:e}function Qo(e,t,r,o,i,a){return $a(e)&&$a(t)&&(a.set(t,e),Ur(e,t,n,Qo,a),a.delete(t)),e}function Zo(e){return rs(e)?n:e}function _o(e,t,r,o,i,a){var s=1&r,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=2&r?new Gt:n;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],y=t[d];if(o)var v=s?o(y,m,d,t,e,a):o(m,y,d,e,t,a);if(v!==n){if(v)continue;h=!1;break}if(p){if(!Bn(t,function(e,n){if(!Xn(p,n)&&(m===e||i(m,e,r,o,a)))return p.push(n)})){h=!1;break}}else if(m!==y&&!i(m,y,r,o,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function $o(e){return Ii(Ei(e,n,zi),e+"")}function ei(e){return kr(e,Os,li)}function ni(e){return kr(e,Rs,ci)}var ti=Ct?function(e){return Ct.get(e)}:su;function ri(e){for(var n=e.name+"",t=It[n],r=Be.call(It,n)?t.length:0;r--;){var o=t[r],i=o.func;if(null==i||i==e)return o.name}return n}function oi(e){return(Be.call(Dt,"placeholder")?Dt:e).placeholder}function ii(){var e=Dt.iteratee||ru;return e=e===ru?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,n){var t,r,o=e.jn;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function si(e){for(var n=Os(e),t=n.length;t--;){var r=n[t],o=e[r];n[t]=[r,o,ki(o)]}return n}function ui(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Rr(r)?r:n}var li=Vn?function(e){return null==e?[]:(e=Te(e),xn(Vn(e),function(n){return Ye.call(e,n)}))}:pu,ci=Vn?function(e){for(var n=[];e;)On(n,li(e)),e=ze(e);return n}:pu,fi=Ar;function di(e,n,t){for(var r=-1,o=(n=yo(n,e)).length,i=!1;++r<o;){var a=Fi(n[r]);if(!(i=null!=e&&t(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&_a(o)&&mi(a,o)&&(Wa(e)||Va(e))}function hi(e){return"function"!=typeof e.constructor||gi(e)?{}:Ut(ze(e))}function pi(e){return Wa(e)||Va(e)||!!(Ze&&e&&e[Ze])}function mi(e,n){var t=typeof e;return!!(n=null==n?u:n)&&("number"==t||"symbol"!=t&&pe.test(e))&&e>-1&&e%1==0&&e<n}function yi(e,n,t){if(!$a(t))return!1;var r=typeof n;return!!("number"==r?Ga(t)&&mi(n,t.length):"string"==r&&n in t)&&Ha(t[n],e)}function vi(e,n){if(Wa(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!ss(e))||Q.test(e)||!X.test(e)||null!=n&&e in Te(n)}function bi(e){var n=ri(e),t=Dt[n];if("function"!=typeof t||!(n in qt.prototype))return!1;if(e===t)return!0;var r=ti(t);return!!r&&e===r[0]}(kt&&fi(new kt(new ArrayBuffer(1)))!=M||At&&fi(new At)!=w||Et&&fi(Et.resolve())!=A||Tt&&fi(new Tt)!=T||St&&fi(new St)!=C)&&(fi=function(e){var t=Ar(e),r=t==k?e.constructor:n,o=r?Di(r):"";if(o)switch(o){case Mt:return M;case Ot:return w;case Rt:return A;case Nt:return T;case Bt:return C}return t});var wi=Re?Qa:mu;function gi(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Oe)}function ki(e){return e==e&&!$a(e)}function Ai(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Te(r))}}function Ei(e,t,r){return t=mt(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=mt(n.length-t,0),a=we(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=we(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),kn(e,this,s)}}function Ti(e,n){return n.length<2?e:gr(e,$r(n,0,-1))}function Si(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var xi=Oi(Qr),Ci=hn||function(e,n){return ln.setTimeout(e,n)},Ii=Oi(Zr);function Mi(e,n,t){var r=n+"";return Ii(e,function(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(te,"{\n/* [wrapped with "+n+"] */\n")}(r,function(e,n){return En(f,function(t){var r="_."+t[0];n&t[1]&&!Cn(e,r)&&e.push(r)}),e.sort()}(function(e){var n=e.match(re);return n?n[1].split(oe):[]}(r),t)))}function Oi(e){var t=0,r=0;return function(){var o=vt(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ri(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=zr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ni,Bi,Pi,Li=(Ni=function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(Z,function(e,t,r,o){n.push(r?o.replace(se,"$1"):t||e)}),n},Bi=Ba(Ni,function(e){return 500===Pi.size&&Pi.clear(),e}),Pi=Bi.cache,Bi);function Fi(e){if("string"==typeof e||ss(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function Di(e){if(null!=e){try{return Ne.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function Ui(e){if(e instanceof qt)return e.clone();var n=new jt(e.On,e.Nn);return n.Rn=xo(e.Rn),n.Bn=e.Bn,n.Pn=e.Pn,n}var Hi=Yr(function(e,n){return Ya(e)?ur(e,pr(n,1,Ya,!0)):[]}),ji=Yr(function(e,t){var r=Xi(t);return Ya(r)&&(r=n),Ya(e)?ur(e,pr(t,1,Ya,!0),ii(r,2)):[]}),qi=Yr(function(e,t){var r=Xi(t);return Ya(r)&&(r=n),Ya(e)?ur(e,pr(t,1,Ya,!0),n,r):[]});function Vi(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:hs(t);return o<0&&(o=mt(r+o,0)),Fn(e,ii(n,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?mt(o+i,0):yt(i,o-1)),Fn(e,ii(t,3),i,!0)}function zi(e){return null!=e&&e.length?pr(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Yi=Yr(function(e){var n=Mn(e,po);return n.length&&n[0]===e[0]?xr(n):[]}),Ji=Yr(function(e){var t=Xi(e),r=Mn(e,po);return t===Xi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?xr(r,ii(t,2)):[]}),Ki=Yr(function(e){var t=Xi(e),r=Mn(e,po);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?xr(r,n,t):[]});function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Qi=Yr(Zi);function Zi(e,n){return e&&e.length&&n&&n.length?Vr(e,n):e}var _i=$o(function(e,n){var t=null==e?0:e.length,r=rr(e,n);return Wr(e,Mn(n,function(e){return mi(e,t)?+e:e}).sort(Eo)),r});function $i(e){return null==e?e:gt.call(e)}var ea=Yr(function(e){return ao(pr(e,1,Ya,!0))}),na=Yr(function(e){var t=Xi(e);return Ya(t)&&(t=n),ao(pr(e,1,Ya,!0),ii(t,2))}),ta=Yr(function(e){var t=Xi(e);return t="function"==typeof t?t:n,ao(pr(e,1,Ya,!0),n,t)});function ra(e){if(!e||!e.length)return[];var n=0;return e=xn(e,function(e){if(Ya(e))return n=mt(e.length,n),!0}),Gn(n,function(n){return Mn(e,qn(n))})}function oa(e,t){if(!e||!e.length)return[];var r=ra(e);return null==t?r:Mn(r,function(e){return kn(t,n,e)})}var ia=Yr(function(e,n){return Ya(e)?ur(e,n):[]}),aa=Yr(function(e){return fo(xn(e,Ya))}),sa=Yr(function(e){var t=Xi(e);return Ya(t)&&(t=n),fo(xn(e,Ya),ii(t,2))}),ua=Yr(function(e){var t=Xi(e);return t="function"==typeof t?t:n,fo(xn(e,Ya),n,t)}),la=Yr(ra),ca=Yr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oa(e,r)});function fa(e){var n=Dt(e);return n.Nn=!0,n}function da(e,n){return n(e)}var ha=$o(function(e){var t=e.length,r=t?e[0]:0,o=this.On,i=function(n){return rr(n,e)};return!(t>1||this.Rn.length)&&o instanceof qt&&mi(r)?((o=o.slice(r,+r+(t?1:0))).Rn.push({func:da,args:[i],thisArg:n}),new jt(o,this.Nn).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(i)}),pa=Io(function(e,n,t){Be.call(e,t)?++e[t]:tr(e,t,1)}),ma=Lo(Vi),ya=Lo(Wi);function va(e,n){return(Wa(e)?En:lr)(e,ii(n,3))}function ba(e,n){return(Wa(e)?Tn:cr)(e,ii(n,3))}var wa=Io(function(e,n,t){Be.call(e,t)?e[t].push(n):tr(e,t,[n])}),ga=Yr(function(e,n,t){var r=-1,o="function"==typeof n,i=Ga(e)?we(e.length):[];return lr(e,function(e){i[++r]=o?kn(n,e,t):Cr(e,n,t)}),i}),ka=Io(function(e,n,t){tr(e,t,n)});function Aa(e,n){return(Wa(e)?Mn:Lr)(e,ii(n,3))}var Ea=Io(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]}),Ta=Yr(function(e,n){if(null==e)return[];var t=n.length;return t>1&&yi(e,n[0],n[1])?n=[]:t>2&&yi(n[0],n[1],n[2])&&(n=[n[0]]),jr(e,pr(n,1),[])}),Sa=fn||function(){return ln.Date.now()};function xa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ko(e,a,n,n,n,n,t)}function Ca(e,r){var o;if("function"!=typeof r)throw new Ce(t);return e=hs(e),function(){return--e>0&&(o=r.apply(this,arguments)),e<=1&&(r=n),o}}var Ia=Yr(function(e,n,t){var r=1;if(t.length){var o=ot(t,oi(Ia));r|=i}return Ko(e,r,n,t,o)}),Ma=Yr(function(e,n,t){var r=3;if(t.length){var o=ot(t,oi(Ma));r|=i}return Ko(n,r,e,t,o)});function Oa(e,r,o){var i,a,s,u,l,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Ce(t);function m(t){var r=i,o=a;return i=a=n,f=t,u=e.apply(o,r)}function y(e){var t=e-c;return c===n||t>=r||t<0||h&&e-f>=s}function v(){var e=Sa();if(y(e))return b(e);l=Ci(v,function(e){var n=r-(e-c);return h?yt(n,s-(e-f)):n}(e))}function b(e){return l=n,p&&i?m(e):(i=a=n,u)}function w(){var e=Sa(),t=y(e);if(i=arguments,a=this,c=e,t){if(l===n)return function(e){return f=e,l=Ci(v,r),d?m(e):u}(c);if(h)return wo(l),l=Ci(v,r),m(c)}return l===n&&(l=Ci(v,r)),u}return r=ms(r)||0,$a(o)&&(d=!!o.leading,s=(h="maxWait"in o)?mt(ms(o.maxWait)||0,r):s,p="trailing"in o?!!o.trailing:p),w.cancel=function(){l!==n&&wo(l),f=0,i=c=a=l=n},w.flush=function(){return l===n?u:b(Sa())},w}var Ra=Yr(function(e,n){return sr(e,1,n)}),Na=Yr(function(e,n,t){return sr(e,ms(n)||0,t)});function Ba(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ce(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ba.Cache||zt),r}function Pa(e){if("function"!=typeof e)throw new Ce(t);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}Ba.Cache=zt;var La=vo(function(e,n){var t=(n=1==n.length&&Wa(n[0])?Mn(n[0],Jn(ii())):Mn(pr(n,1),Jn(ii()))).length;return Yr(function(r){for(var o=-1,i=yt(r.length,t);++o<i;)r[o]=n[o].call(this,r[o]);return kn(e,this,r)})}),Fa=Yr(function(e,t){var r=ot(t,oi(Fa));return Ko(e,i,n,t,r)}),Da=Yr(function(e,t){var r=ot(t,oi(Da));return Ko(e,64,n,t,r)}),Ua=$o(function(e,t){return Ko(e,256,n,n,n,t)});function Ha(e,n){return e===n||e!=e&&n!=n}var ja=Wo(Er),qa=Wo(function(e,n){return e>=n}),Va=Ir(/* @__PURE__ */function(){return arguments}())?Ir:function(e){return es(e)&&Be.call(e,"callee")&&!Ye.call(e,"callee")},Wa=we.isArray,za=mn?Jn(mn):function(e){return es(e)&&Ar(e)==I};function Ga(e){return null!=e&&_a(e.length)&&!Qa(e)}function Ya(e){return es(e)&&Ga(e)}var Ja=ft||mu,Ka=yn?Jn(yn):function(e){return es(e)&&Ar(e)==m};function Xa(e){if(!es(e))return!1;var n=Ar(e);return n==y||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Qa(e){if(!$a(e))return!1;var n=Ar(e);return n==v||n==b||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Za(e){return"number"==typeof e&&e==hs(e)}function _a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function $a(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function es(e){return null!=e&&"object"==typeof e}var ns=vn?Jn(vn):function(e){return es(e)&&fi(e)==w};function ts(e){return"number"==typeof e||es(e)&&Ar(e)==g}function rs(e){if(!es(e)||Ar(e)!=k)return!1;var n=ze(e);if(null===n)return!0;var t=Be.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&Ne.call(t)==De}var os=bn?Jn(bn):function(e){return es(e)&&Ar(e)==E},is=wn?Jn(wn):function(e){return es(e)&&fi(e)==T};function as(e){return"string"==typeof e||!Wa(e)&&es(e)&&Ar(e)==S}function ss(e){return"symbol"==typeof e||es(e)&&Ar(e)==x}var us=gn?Jn(gn):function(e){return es(e)&&_a(e.length)&&!!nn[Ar(e)]},ls=Wo(Pr),cs=Wo(function(e,n){return e<=n});function fs(e){if(!e)return[];if(Ga(e))return as(e)?st(e):xo(e);if(rn&&e[rn])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[rn]());var n=fi(e);return(n==w?tt:n==T?it:Hs)(e)}function ds(e){return e?(e=ms(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var n=ds(e),t=n%1;return n==n?t?n-t:n:0}function ps(e){return e?or(hs(e),0,c):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return l;if($a(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=$a(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var t=fe.test(e);return t||he.test(e)?an(e.slice(2),t?2:8):ce.test(e)?l:+e}function ys(e){return Co(e,Rs(e))}function vs(e){return null==e?"":io(e)}var bs=Mo(function(e,n){if(gi(n)||Ga(n))Co(n,Os(n),e);else for(var t in n)Be.call(n,t)&&_t(e,t,n[t])}),ws=Mo(function(e,n){Co(n,Rs(n),e)}),gs=Mo(function(e,n,t,r){Co(n,Rs(n),e,r)}),ks=Mo(function(e,n,t,r){Co(n,Os(n),e,r)}),As=$o(rr),Es=Yr(function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&yi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Rs(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===n||Ha(f,Oe[c])&&!Be.call(e,c))&&(e[c]=a[c])}return e}),Ts=Yr(function(e){return e.push(n,Qo),kn(Bs,n,e)});function Ss(e,t,r){var o=null==e?n:gr(e,t);return o===n?r:o}function xs(e,n){return null!=e&&di(e,n,Sr)}var Cs=Uo(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Fe.call(n)),e[n]=t},$s(tu)),Is=Uo(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Fe.call(n)),Be.call(e,n)?e[n].push(t):e[n]=[t]},ii),Ms=Yr(Cr);function Os(e){return Ga(e)?Jt(e):Br(e)}function Rs(e){return Ga(e)?Jt(e,!0):function(e){if(!$a(e))return function(e){var n=[];if(null!=e)for(var t in Te(e))n.push(t);return n}(e);var n=gi(e),t=[];for(var r in e)("constructor"!=r||!n&&Be.call(e,r))&&t.push(r);return t}(e)}var Ns=Mo(function(e,n,t){Ur(e,n,t)}),Bs=Mo(function(e,n,t,r){Ur(e,n,t,r)}),Ps=$o(function(e,n){var t={};if(null==e)return t;var r=!1;n=Mn(n,function(n){return n=yo(n,e),r||(r=n.length>1),n}),Co(e,ni(e),t),r&&(t=ir(t,7,Zo));for(var o=n.length;o--;)so(t,n[o]);return t}),Ls=$o(function(e,n){return null==e?{}:function(e,n){return qr(e,n,function(n,t){return xs(e,t)})}(e,n)});function Fs(e,n){if(null==e)return{};var t=Mn(ni(e),function(e){return[e]});return n=ii(n),qr(e,t,function(e,t){return n(e,t[0])})}var Ds=Jo(Os),Us=Jo(Rs);function Hs(e){return null==e?[]:Kn(e,Os(e))}var js=Bo(function(e,n,t){return n=n.toLowerCase(),e+(t?qs(n):n)});function qs(e){return Xs(vs(e).toLowerCase())}function Vs(e){return(e=vs(e))&&e.replace(me,_n).replace(Ke,"")}var Ws=Bo(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),zs=Bo(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),Gs=No("toLowerCase"),Ys=Bo(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),Js=Bo(function(e,n,t){return e+(t?" ":"")+Xs(n)}),Ks=Bo(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Xs=No("toUpperCase");function Qs(e,t,r){return e=vs(e),(t=r?n:t)===n?function(e){return _e.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ie)||[]}(e):e.match(t)||[]}var Zs=Yr(function(e,t){try{return kn(e,n,t)}catch(r){return Xa(r)?r:new ke(r)}}),_s=$o(function(e,n){return En(n,function(n){n=Fi(n),tr(e,n,Ia(e[n],e))}),e});function $s(e){return function(){return e}}var eu=Fo(),nu=Fo(!0);function tu(e){return e}function ru(e){return Nr("function"==typeof e?e:ir(e,1))}var ou=Yr(function(e,n){return function(t){return Cr(t,e,n)}}),iu=Yr(function(e,n){return function(t){return Cr(e,t,n)}});function au(e,n,t){var r=Os(n),o=wr(n,r);null!=t||$a(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=wr(n,Os(n)));var i=!($a(t)&&"chain"in t&&!t.chain),a=Qa(e);return En(o,function(t){var r=n[t];e[t]=r,a&&(e.prototype[t]=function(){var n=this.Nn;if(i||n){var t=e(this.On);return(t.Rn=xo(this.Rn)).push({func:r,args:arguments,thisArg:e}),t.Nn=n,t}return r.apply(e,On([this.value()],arguments))})}),e}function su(){}var uu=jo(Mn),lu=jo(Sn),cu=jo(Bn);function fu(e){return vi(e)?qn(Fi(e)):function(e){return function(n){return gr(n,e)}}(e)}var du=Vo(),hu=Vo(!0);function pu(){return[]}function mu(){return!1}var yu,vu=Ho(function(e,n){return e+n},0),bu=Go("ceil"),wu=Ho(function(e,n){return e/n},1),gu=Go("floor"),ku=Ho(function(e,n){return e*n},1),Au=Go("round"),Eu=Ho(function(e,n){return e-n},0);return Dt.after=function(e,n){if("function"!=typeof n)throw new Ce(t);return e=hs(e),function(){if(--e<1)return n.apply(this,arguments)}},Dt.ary=xa,Dt.assign=bs,Dt.assignIn=ws,Dt.assignInWith=gs,Dt.assignWith=ks,Dt.at=As,Dt.before=Ca,Dt.bind=Ia,Dt.bindAll=_s,Dt.bindKey=Ma,Dt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Dt.chain=fa,Dt.chunk=function(e,t,r){t=(r?yi(e,t,r):t===n)?1:mt(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=we(pn(o/t));i<o;)s[a++]=$r(e,i,i+=t);return s},Dt.compact=function(e){for(var n=-1,t=null==e?0:e.length,r=0,o=[];++n<t;){var i=e[n];i&&(o[r++]=i)}return o},Dt.concat=function(){var e=arguments.length;if(!e)return[];for(var n=we(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return On(Wa(t)?xo(t):[t],pr(n,1))},Dt.cond=function(e){var n=null==e?0:e.length,r=ii();return e=n?Mn(e,function(e){if("function"!=typeof e[1])throw new Ce(t);return[r(e[0]),e[1]]}):[],Yr(function(t){for(var r=-1;++r<n;){var o=e[r];if(kn(o[0],this,t))return kn(o[1],this,t)}})},Dt.conforms=function(e){return function(e){var n=Os(e);return function(t){return ar(t,e,n)}}(ir(e,1))},Dt.constant=$s,Dt.countBy=pa,Dt.create=function(e,n){var t=Ut(e);return null==n?t:nr(t,n)},Dt.curry=function e(t,r,o){var i=Ko(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Dt.curryRight=function e(t,r,o){var i=Ko(t,16,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Dt.debounce=Oa,Dt.defaults=Es,Dt.defaultsDeep=Ts,Dt.defer=Ra,Dt.delay=Na,Dt.difference=Hi,Dt.differenceBy=ji,Dt.differenceWith=qi,Dt.drop=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Dt.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Dt.dropRightWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!0,!0):[]},Dt.dropWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!0):[]},Dt.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:ps(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Dt.filter=function(e,n){return(Wa(e)?xn:hr)(e,ii(n,3))},Dt.flatMap=function(e,n){return pr(Aa(e,n),1)},Dt.flatMapDeep=function(e,n){return pr(Aa(e,n),s)},Dt.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),pr(Aa(e,t),r)},Dt.flatten=zi,Dt.flattenDeep=function(e){return null!=e&&e.length?pr(e,s):[]},Dt.flattenDepth=function(e,t){return null!=e&&e.length?pr(e,t=t===n?1:hs(t)):[]},Dt.flip=function(e){return Ko(e,512)},Dt.flow=eu,Dt.flowRight=nu,Dt.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,r={};++n<t;){var o=e[n];r[o[0]]=o[1]}return r},Dt.functions=function(e){return null==e?[]:wr(e,Os(e))},Dt.functionsIn=function(e){return null==e?[]:wr(e,Rs(e))},Dt.groupBy=wa,Dt.initial=function(e){return null!=e&&e.length?$r(e,0,-1):[]},Dt.intersection=Yi,Dt.intersectionBy=Ji,Dt.intersectionWith=Ki,Dt.invert=Cs,Dt.invertBy=Is,Dt.invokeMap=ga,Dt.iteratee=ru,Dt.keyBy=ka,Dt.keys=Os,Dt.keysIn=Rs,Dt.map=Aa,Dt.mapKeys=function(e,n){var t={};return n=ii(n,3),vr(e,function(e,r,o){tr(t,n(e,r,o),e)}),t},Dt.mapValues=function(e,n){var t={};return n=ii(n,3),vr(e,function(e,r,o){tr(t,r,n(e,r,o))}),t},Dt.matches=function(e){return Fr(ir(e,1))},Dt.matchesProperty=function(e,n){return Dr(e,ir(n,1))},Dt.memoize=Ba,Dt.merge=Ns,Dt.mergeWith=Bs,Dt.method=ou,Dt.methodOf=iu,Dt.mixin=au,Dt.negate=Pa,Dt.nthArg=function(e){return e=hs(e),Yr(function(n){return Hr(n,e)})},Dt.omit=Ps,Dt.omitBy=function(e,n){return Fs(e,Pa(ii(n)))},Dt.once=function(e){return Ca(2,e)},Dt.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),jr(e,t,r))},Dt.over=uu,Dt.overArgs=La,Dt.overEvery=lu,Dt.overSome=cu,Dt.partial=Fa,Dt.partialRight=Da,Dt.partition=Ea,Dt.pick=Ls,Dt.pickBy=Fs,Dt.property=fu,Dt.propertyOf=function(e){return function(t){return null==e?n:gr(e,t)}},Dt.pull=Qi,Dt.pullAll=Zi,Dt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Vr(e,n,ii(t,2)):e},Dt.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,n,r):e},Dt.pullAt=_i,Dt.range=du,Dt.rangeRight=hu,Dt.rearg=Ua,Dt.reject=function(e,n){return(Wa(e)?xn:hr)(e,Pa(ii(n,3)))},Dt.remove=function(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],i=e.length;for(n=ii(n,3);++r<i;){var a=e[r];n(a,r,e)&&(t.push(a),o.push(r))}return Wr(e,o),t},Dt.rest=function(e,r){if("function"!=typeof e)throw new Ce(t);return Yr(e,r=r===n?r:hs(r))},Dt.reverse=$i,Dt.sampleSize=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:hs(t),(Wa(e)?Xt:Kr)(e,t)},Dt.set=function(e,n,t){return null==e?e:Xr(e,n,t)},Dt.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Xr(e,t,r,o)},Dt.shuffle=function(e){return(Wa(e)?Qt:_r)(e)},Dt.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),$r(e,t,r)):[]},Dt.sortBy=Ta,Dt.sortedUniq=function(e){return e&&e.length?ro(e):[]},Dt.sortedUniqBy=function(e,n){return e&&e.length?ro(e,ii(n,2)):[]},Dt.split=function(e,t,r){return r&&"number"!=typeof r&&yi(e,t,r)&&(t=r=n),(r=r===n?c:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=io(t))&&nt(e)?bo(st(e),0,r):e.split(t,r):[]},Dt.spread=function(e,n){if("function"!=typeof e)throw new Ce(t);return n=null==n?0:mt(hs(n),0),Yr(function(t){var r=t[n],o=bo(t,0,n);return r&&On(o,r),kn(e,this,o)})},Dt.tail=function(e){var n=null==e?0:e.length;return n?$r(e,1,n):[]},Dt.take=function(e,t,r){return e&&e.length?$r(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Dt.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Dt.takeRightWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!1,!0):[]},Dt.takeWhile=function(e,n){return e&&e.length?lo(e,ii(n,3)):[]},Dt.tap=function(e,n){return n(e),e},Dt.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new Ce(t);return $a(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Oa(e,n,{leading:o,maxWait:n,trailing:i})},Dt.thru=da,Dt.toArray=fs,Dt.toPairs=Ds,Dt.toPairsIn=Us,Dt.toPath=function(e){return Wa(e)?Mn(e,Fi):ss(e)?[e]:xo(Li(vs(e)))},Dt.toPlainObject=ys,Dt.transform=function(e,n,t){var r=Wa(e),o=r||Ja(e)||us(e);if(n=ii(n,4),null==t){var i=e&&e.constructor;t=o?r?new i:[]:$a(e)&&Qa(i)?Ut(ze(e)):{}}return(o?En:vr)(e,function(e,r,o){return n(t,e,r,o)}),t},Dt.unary=function(e){return xa(e,1)},Dt.union=ea,Dt.unionBy=na,Dt.unionWith=ta,Dt.uniq=function(e){return e&&e.length?ao(e):[]},Dt.uniqBy=function(e,n){return e&&e.length?ao(e,ii(n,2)):[]},Dt.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ao(e,n,t):[]},Dt.unset=function(e,n){return null==e||so(e,n)},Dt.unzip=ra,Dt.unzipWith=oa,Dt.update=function(e,n,t){return null==e?e:uo(e,n,mo(t))},Dt.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:uo(e,t,mo(r),o)},Dt.values=Hs,Dt.valuesIn=function(e){return null==e?[]:Kn(e,Rs(e))},Dt.without=ia,Dt.words=Qs,Dt.wrap=function(e,n){return Fa(mo(n),e)},Dt.xor=aa,Dt.xorBy=sa,Dt.xorWith=ua,Dt.zip=la,Dt.zipObject=function(e,n){return ho(e||[],n||[],_t)},Dt.zipObjectDeep=function(e,n){return ho(e||[],n||[],Xr)},Dt.zipWith=ca,Dt.entries=Ds,Dt.entriesIn=Us,Dt.extend=ws,Dt.extendWith=gs,au(Dt,Dt),Dt.add=vu,Dt.attempt=Zs,Dt.camelCase=js,Dt.capitalize=qs,Dt.ceil=bu,Dt.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))==r?r:0),t!==n&&(t=(t=ms(t))==t?t:0),or(ms(e),t,r)},Dt.clone=function(e){return ir(e,4)},Dt.cloneDeep=function(e){return ir(e,5)},Dt.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:n)},Dt.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:n)},Dt.conformsTo=function(e,n){return null==n||ar(e,n,Os(n))},Dt.deburr=Vs,Dt.defaultTo=function(e,n){return null==e||e!=e?n:e},Dt.divide=wu,Dt.endsWith=function(e,t,r){e=vs(e),t=io(t);var o=e.length,i=r=r===n?o:or(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Dt.eq=Ha,Dt.escape=function(e){return(e=vs(e))&&G.test(e)?e.replace(W,$n):e},Dt.escapeRegExp=function(e){return(e=vs(e))&&$.test(e)?e.replace(_,"\\$&"):e},Dt.every=function(e,t,r){var o=Wa(e)?Sn:fr;return r&&yi(e,t,r)&&(t=n),o(e,ii(t,3))},Dt.find=ma,Dt.findIndex=Vi,Dt.findKey=function(e,n){return Ln(e,ii(n,3),vr)},Dt.findLast=ya,Dt.findLastIndex=Wi,Dt.findLastKey=function(e,n){return Ln(e,ii(n,3),br)},Dt.floor=gu,Dt.forEach=va,Dt.forEachRight=ba,Dt.forIn=function(e,n){return null==e?e:mr(e,ii(n,3),Rs)},Dt.forInRight=function(e,n){return null==e?e:yr(e,ii(n,3),Rs)},Dt.forOwn=function(e,n){return e&&vr(e,ii(n,3))},Dt.forOwnRight=function(e,n){return e&&br(e,ii(n,3))},Dt.get=Ss,Dt.gt=ja,Dt.gte=qa,Dt.has=function(e,n){return null!=e&&di(e,n,Tr)},Dt.hasIn=xs,Dt.head=Gi,Dt.identity=tu,Dt.includes=function(e,n,t,r){e=Ga(e)?e:Hs(e),t=t&&!r?hs(t):0;var o=e.length;return t<0&&(t=mt(o+t,0)),as(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Dn(e,n,t)>-1},Dt.indexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:hs(t);return o<0&&(o=mt(r+o,0)),Dn(e,n,o)},Dt.inRange=function(e,t,r){return t=ds(t),r===n?(r=t,t=0):r=ds(r),function(e,n,t){return e>=yt(n,t)&&e<mt(n,t)}(e=ms(e),t,r)},Dt.invoke=Ms,Dt.isArguments=Va,Dt.isArray=Wa,Dt.isArrayBuffer=za,Dt.isArrayLike=Ga,Dt.isArrayLikeObject=Ya,Dt.isBoolean=function(e){return!0===e||!1===e||es(e)&&Ar(e)==p},Dt.isBuffer=Ja,Dt.isDate=Ka,Dt.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Dt.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ja(e)||us(e)||Va(e)))return!e.length;var n=fi(e);if(n==w||n==T)return!e.size;if(gi(e))return!Br(e).length;for(var t in e)if(Be.call(e,t))return!1;return!0},Dt.isEqual=function(e,n){return Mr(e,n)},Dt.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Mr(e,t,n,r):!!o},Dt.isError=Xa,Dt.isFinite=function(e){return"number"==typeof e&&dt(e)},Dt.isFunction=Qa,Dt.isInteger=Za,Dt.isLength=_a,Dt.isMap=ns,Dt.isMatch=function(e,n){return e===n||Or(e,n,si(n))},Dt.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,si(t),r)},Dt.isNaN=function(e){return ts(e)&&e!=+e},Dt.isNative=function(e){if(wi(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Dt.isNil=function(e){return null==e},Dt.isNull=function(e){return null===e},Dt.isNumber=ts,Dt.isObject=$a,Dt.isObjectLike=es,Dt.isPlainObject=rs,Dt.isRegExp=os,Dt.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=u},Dt.isSet=is,Dt.isString=as,Dt.isSymbol=ss,Dt.isTypedArray=us,Dt.isUndefined=function(e){return e===n},Dt.isWeakMap=function(e){return es(e)&&fi(e)==C},Dt.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Ar(e)},Dt.join=function(e,n){return null==e?"":ht.call(e,n)},Dt.kebabCase=Ws,Dt.last=Xi,Dt.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?mt(o+i,0):yt(i,o-1)),t==t?function(e,n,t){for(var r=t+1;r--;)if(e[r]===n)return r;return r}(e,t,i):Fn(e,Hn,i,!0)},Dt.lowerCase=zs,Dt.lowerFirst=Gs,Dt.lt=ls,Dt.lte=cs,Dt.max=function(e){return e&&e.length?dr(e,tu,Er):n},Dt.maxBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Er):n},Dt.mean=function(e){return jn(e,tu)},Dt.meanBy=function(e,n){return jn(e,ii(n,2))},Dt.min=function(e){return e&&e.length?dr(e,tu,Pr):n},Dt.minBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Pr):n},Dt.stubArray=pu,Dt.stubFalse=mu,Dt.stubObject=function(){return{}},Dt.stubString=function(){return""},Dt.stubTrue=function(){return!0},Dt.multiply=ku,Dt.nth=function(e,t){return e&&e.length?Hr(e,hs(t)):n},Dt.noConflict=function(){return ln.Mn===this&&(ln.Mn=Ue),this},Dt.noop=su,Dt.now=Sa,Dt.pad=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return qo(Pn(o),t)+e+qo(pn(o),t)},Dt.padEnd=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;return n&&r<n?e+qo(n-r,t):e},Dt.padStart=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;return n&&r<n?qo(n-r,t)+e:e},Dt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),bt(vs(e).replace(ee,""),n||0)},Dt.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ds(e),t===n?(t=e,e=0):t=ds(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=wt();return yt(e+i*(t-e+on("1e-"+((i+"").length-1))),t)}return zr(e,t)},Dt.reduce=function(e,n,t){var r=Wa(e)?Rn:Wn,o=arguments.length<3;return r(e,ii(n,4),t,o,lr)},Dt.reduceRight=function(e,n,t){var r=Wa(e)?Nn:Wn,o=arguments.length<3;return r(e,ii(n,4),t,o,cr)},Dt.repeat=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:hs(t),Gr(vs(e),t)},Dt.replace=function(){var e=arguments,n=vs(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Dt.result=function(e,t,r){var o=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Fi(t[o])];a===n&&(o=i,a=r),e=Qa(a)?a.call(e):a}return e},Dt.round=Au,Dt.runInContext=e,Dt.sample=function(e){return(Wa(e)?Kt:Jr)(e)},Dt.size=function(e){if(null==e)return 0;if(Ga(e))return as(e)?at(e):e.length;var n=fi(e);return n==w||n==T?e.size:Br(e).length},Dt.snakeCase=Ys,Dt.some=function(e,t,r){var o=Wa(e)?Bn:eo;return r&&yi(e,t,r)&&(t=n),o(e,ii(t,3))},Dt.sortedIndex=function(e,n){return no(e,n)},Dt.sortedIndexBy=function(e,n,t){return to(e,n,ii(t,2))},Dt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=no(e,n);if(r<t&&Ha(e[r],n))return r}return-1},Dt.sortedLastIndex=function(e,n){return no(e,n,!0)},Dt.sortedLastIndexBy=function(e,n,t){return to(e,n,ii(t,2),!0)},Dt.sortedLastIndexOf=function(e,n){if(null!=e&&e.length){var t=no(e,n,!0)-1;if(Ha(e[t],n))return t}return-1},Dt.startCase=Js,Dt.startsWith=function(e,n,t){return e=vs(e),t=null==t?0:or(hs(t),0,e.length),n=io(n),e.slice(t,t+n.length)==n},Dt.subtract=Eu,Dt.sum=function(e){return e&&e.length?zn(e,tu):0},Dt.sumBy=function(e,n){return e&&e.length?zn(e,ii(n,2)):0},Dt.template=function(e,t,r){var o=Dt.templateSettings;r&&yi(e,t,r)&&(t=n),e=vs(e),t=gs({},t,o,Xo);var i,a,s=gs({},t.imports,o.imports,Xo),u=Os(s),l=Kn(s,u),c=0,f=t.interpolate||ye,d="__p += '",h=Se((t.escape||ye).source+"|"+f.source+"|"+(f===K?ue:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),p="//# sourceURL="+(Be.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++en+"]")+"\n";e.replace(h,function(n,t,r,o,s,u){return r||(r=o),d+=e.slice(c,u).replace(ve,et),t&&(i=!0,d+="' +\n__e("+t+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+n.length,n}),d+="';\n";var m=Be.call(t,"variable")&&t.variable;if(m){if(ae.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(H,""):d).replace(j,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Zs(function(){return Ae(u,p+"return "+d).apply(n,l)});if(y.source=d,Xa(y))throw y;return y},Dt.times=function(e,n){if((e=hs(e))<1||e>u)return[];var t=c,r=yt(e,c);n=ii(n),e-=c;for(var o=Gn(r,n);++t<e;)n(t);return o},Dt.toFinite=ds,Dt.toInteger=hs,Dt.toLength=ps,Dt.toLower=function(e){return vs(e).toLowerCase()},Dt.toNumber=ms,Dt.toSafeInteger=function(e){return e?or(hs(e),-9007199254740991,u):0===e?e:0},Dt.toString=vs,Dt.toUpper=function(e){return vs(e).toUpperCase()},Dt.trim=function(e,t,r){if((e=vs(e))&&(r||t===n))return Yn(e);if(!e||!(t=io(t)))return e;var o=st(e),i=st(t);return bo(o,Qn(o,i),Zn(o,i)+1).join("")},Dt.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.slice(0,ut(e)+1);if(!e||!(t=io(t)))return e;var o=st(e);return bo(o,0,Zn(o,st(t))+1).join("")},Dt.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.replace(ee,"");if(!e||!(t=io(t)))return e;var o=st(e);return bo(o,Qn(o,st(t))).join("")},Dt.truncate=function(e,t){var r=30,o="...";if($a(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?io(t.omission):o}var a=(e=vs(e)).length;if(nt(e)){var s=st(e);a=s.length}if(r>=a)return e;var u=r-at(o);if(u<1)return o;var l=s?bo(s,0,u).join(""):e.slice(0,u);if(i===n)return l+o;if(s&&(u+=l.length-u),os(i)){if(e.slice(u).search(i)){var c,f=l;for(i.global||(i=Se(i.source,vs(le.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;l=l.slice(0,d===n?u:d)}}else if(e.indexOf(io(i),u)!=u){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+o},Dt.unescape=function(e){return(e=vs(e))&&z.test(e)?e.replace(V,lt):e},Dt.uniqueId=function(e){var n=++Pe;return vs(e)+n},Dt.upperCase=Ks,Dt.upperFirst=Xs,Dt.each=va,Dt.eachRight=ba,Dt.first=Gi,au(Dt,(yu={},vr(Dt,function(e,n){Be.call(Dt.prototype,n)||(yu[n]=e)}),yu),{chain:!1}),Dt.VERSION="4.17.23",En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dt[e].placeholder=Dt}),En(["drop","take"],function(e,t){qt.prototype[e]=function(r){r=r===n?1:mt(hs(r),0);var o=this.Fn&&!t?new qt(this):this.clone();return o.Fn?o.Un=yt(r,o.Un):o.Hn.push({size:yt(r,c),type:e+(o.Ln<0?"Right":"")}),o},qt.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),En(["filter","map","takeWhile"],function(e,n){var t=n+1,r=1==t||3==t;qt.prototype[e]=function(e){var n=this.clone();return n.Dn.push({iteratee:ii(e,3),type:t}),n.Fn=n.Fn||r,n}}),En(["head","last"],function(e,n){var t="take"+(n?"Right":"");qt.prototype[e]=function(){return this[t](1).value()[0]}}),En(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");qt.prototype[e]=function(){return this.Fn?new qt(this):this[t](1)}}),qt.prototype.compact=function(){return this.filter(tu)},qt.prototype.find=function(e){return this.filter(e).head()},qt.prototype.findLast=function(e){return this.reverse().find(e)},qt.prototype.invokeMap=Yr(function(e,n){return"function"==typeof e?new qt(this):this.map(function(t){return Cr(t,e,n)})}),qt.prototype.reject=function(e){return this.filter(Pa(ii(e)))},qt.prototype.slice=function(e,t){e=hs(e);var r=this;return r.Fn&&(e>0||t<0)?new qt(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},qt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qt.prototype.toArray=function(){return this.take(c)},vr(qt.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Dt[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Dt.prototype[t]=function(){var t=this.On,s=o?[1]:arguments,u=t instanceof qt,l=s[0],c=u||Wa(t),f=function(e){var n=i.apply(Dt,On([e],s));return o&&d?n[0]:n};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.Nn,h=!!this.Rn.length,p=a&&!d,m=u&&!h;if(!a&&c){t=m?t:new qt(this);var y=e.apply(t,s);return y.Rn.push({func:da,args:[f],thisArg:n}),new jt(y,d)}return p&&m?e.apply(this,s):(y=this.thru(f),p?o?y.value()[0]:y.value():y)})}),En(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ie[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dt.prototype[e]=function(){var e=arguments;if(r&&!this.Nn){var o=this.value();return n.apply(Wa(o)?o:[],e)}return this[t](function(t){return n.apply(Wa(t)?t:[],e)})}}),vr(qt.prototype,function(e,n){var t=Dt[n];if(t){var r=t.name+"";Be.call(It,r)||(It[r]=[]),It[r].push({name:n,func:t})}}),It[Do(n,2).name]=[{name:"wrapper",func:n}],qt.prototype.clone=function(){var e=new qt(this.On);return e.Rn=xo(this.Rn),e.Ln=this.Ln,e.Fn=this.Fn,e.Dn=xo(this.Dn),e.Un=this.Un,e.Hn=xo(this.Hn),e},qt.prototype.reverse=function(){if(this.Fn){var e=new qt(this);e.Ln=-1,e.Fn=!0}else(e=this.clone()).Ln*=-1;return e},qt.prototype.value=function(){var e=this.On.value(),n=this.Ln,t=Wa(e),r=n<0,o=t?e.length:0,i=function(e,n,t){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":n-=a;break;case"take":n=yt(n,e+a);break;case"takeRight":e=mt(e,n-a)}}return{start:e,end:n}}(0,o,this.Hn),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.Dn,f=c.length,d=0,h=yt(u,this.Un);if(!t||!r&&o==u&&h==u)return co(e,this.Rn);var p=[];e:for(;u--&&d<h;){for(var m=-1,y=e[l+=n];++m<f;){var v=c[m],b=v.iteratee,w=v.type,g=b(y);if(2==w)y=g;else if(!g){if(1==w)continue e;break e}}p[d++]=y}return p},Dt.prototype.at=ha,Dt.prototype.chain=function(){return fa(this)},Dt.prototype.commit=function(){return new jt(this.value(),this.Nn)},Dt.prototype.next=function(){this.Pn===n&&(this.Pn=fs(this.value()));var e=this.Bn>=this.Pn.length;return{done:e,value:e?n:this.Pn[this.Bn++]}},Dt.prototype.plant=function(e){for(var t,r=this;r instanceof Ht;){var o=Ui(r);o.Bn=0,o.Pn=n,t?i.On=o:t=o;var i=o;r=r.On}return i.On=e,t},Dt.prototype.reverse=function(){var e=this.On;if(e instanceof qt){var t=e;return this.Rn.length&&(t=new qt(this)),(t=t.reverse()).Rn.push({func:da,args:[$i],thisArg:n}),new jt(t,this.Nn)}return this.thru($i)},Dt.prototype.toJSON=Dt.prototype.valueOf=Dt.prototype.value=function(){return co(this.On,this.Rn)},Dt.prototype.first=Dt.prototype.head,rn&&(Dt.prototype[rn]=function(){return this}),Dt}();fn?((fn.exports=ct).Mn=ct,cn.Mn=ct):ln.Mn=ct}.call(Sp.exports)),Sp.exports);const Cp=Jd()?.webAppUrl||"https://nft.keyring.app";function Ip(e){const n=e.poolDayData?.[0];return!!n&&0!==parseFloat(n.volumeToken0||"0")&&0!==parseFloat(n.volumeToken1||"0")&&0!==parseFloat(n.volumeUSD||"0")}const Mp={ethereum:"https://gateway.thegraph.com/api/subgraphs/id/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV",arbitrum:"https://gateway.thegraph.com/api/subgraphs/id/FbCGRftH4a3yZugY7TnbYgPJVEv2LvMT6oF1fxPe9aJM",polygon:"https://gateway.thegraph.com/api/subgraphs/id/3hCPRGf4z88VC5rsBKU5AA9FBBq5nF3jbKJG7VZCbhjm",bsc:"https://gateway.thegraph.com/api/subgraphs/id/GcKPSgHoY42xNYVAkSPDhXSzi6aJDRQSKqBSXezL47gV",base:"https://gateway.thegraph.com/api/subgraphs/id/HMuAwufqZ1YCRmzL2SfHTVkzZovC9VL2UAKhjvRqKiR1",optimism:"https://gateway.thegraph.com/api/subgraphs/id/Cghf4LfVqPiFw6fp6Y5X5Ubc8UpmUhSfJL82zwiBFLaj",avalanche:"https://gateway.thegraph.com/api/subgraphs/id/GVH9h9KZ9CqheUEL93qMbq7QwgoBu32QXQDPR6bev4Eo"},Op={eth:"ethereum",ethereum:"ethereum",mainnet:"ethereum",1:"ethereum",arb:"arbitrum",arbitrum:"arbitrum",42161:"arbitrum",polygon:"polygon",matic:"polygon",137:"polygon",bsc:"bsc",bnb:"bsc",56:"bsc",base:"base",8453:"base",optimism:"optimism",10:"optimism",avax:"avalanche",avalanche:"avalanche",43114:"avalanche"},Rp={ethereum:1,arbitrum:42161,polygon:137,bsc:56,base:8453,optimism:10,avalanche:43114},Np={100:.01,500:.05,3e3:.3,1e4:1};function Bp(e){return e&&Op[e.toLowerCase()]||"ethereum"}function Pp(e){const n=e.toLowerCase();return n in Op||n in Mp}async function Lp(e,n,t={},r){const o=function(e){const n=Bp(e);return Mp[n]||null}(e);if(!o)throw new Error(`No subgraph available for chain: ${e}`);const i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer 4c67ac7a75b21befbd28dc9120c709f1"},body:JSON.stringify({query:n,variables:t}),signal:r});if(!i.ok)throw new Error(`Subgraph query failed: HTTP ${i.status}`);const a=await i.json();if(a.errors)throw new Error(`Subgraph error: ${a.errors[0]?.message||"Unknown"}`);return a.data}function Fp(e){return!isFinite(e)||isNaN(e)||e>1e11?0:e}function Dp(e,n){const t=Number(e.feeTier||0),r=Np[t]??t/1e4,o=Fp(parseFloat(e.totalValueLockedUSD||"0")),i=e.poolDayData?.[0],a=parseFloat(i?.volumeUSD||"0"),s=parseFloat(i?.feesUSD||"0");let u=null;return o>0&&s>0&&(u=parseFloat((365*s*100/o).toFixed(2))),{pair:`${e.token0.symbol}/${e.token1.symbol}`,poolAddress:e.id,token0:{symbol:e.token0.symbol,address:e.token0.id},token1:{symbol:e.token1.symbol,address:e.token1.id},tvl:o,volumePastDay:a,apr:u,fee:r,liquidity:e.liquidity||"0",chain:Bp(n)}}let Up=null,Hp=0;const jp={ethereum:"ethereum","arbitrum one":"arbitrum",arbitrum:"arbitrum",polygon:"polygon",bsc:"bsc",base:"base",optimism:"optimism","avalanche c-chain":"avalanche",avalanche:"avalanche"};async function qp(){const e=Date.now();if(Up&&e-Hp<3e5)return Up;try{const n=await fetch("https://yields.llama.fi/pools");if(!n.ok)throw new Error(`DefiLlama HTTP ${n.status}`);const t=((await n.json()).data||[]).filter(e=>"uniswap-v3"===e.project);return Up=t,Hp=e,t}catch(n){return Up??[]}}function Vp(e){if(!e)return null;const n=e.match(/^([\d.]+)%/);return n?Math.round(1e4*parseFloat(n[1])):null}function Wp(e,n){return n.length?e.map(e=>{const t=e.chain.toLowerCase(),r=Math.round(1e4*e.fee),o=e.token0.address.toLowerCase(),i=e.token1.address.toLowerCase(),a=n.filter(e=>jp[e.chain.toLowerCase()]===t);let s=a.find(e=>{if(!e.underlyingTokens||e.underlyingTokens.length<2)return!1;const n=e.underlyingTokens.map(e=>e.toLowerCase());if(!n.includes(o)||!n.includes(i))return!1;const t=Vp(e.poolMeta);return null===t||t===r});if(!s){const n=[e.token0.symbol.toUpperCase(),e.token1.symbol.toUpperCase()].sort().join("-");s=a.find(e=>{if([...e.symbol.split("-").map(e=>e.toUpperCase())].sort().join("-")!==n)return!1;const t=Vp(e.poolMeta);return null===t||t===r})}if(s){const n=s.apyBase??s.apyBase??s.apy??null,t=s.tvlUsd??null,r=s.volumeUsd1d??null;return{...e,...null!==n&&{apr:parseFloat(n.toFixed(2))},...null!==t&&{tvl:Fp(t)},...null!==r&&{volumePastDay:Fp(r)}}}return e}):e}async function zp(e){const{tokens:n,chain:t,sortBy:r,filters:o,signal:i}=e,a=Bp(t),s=n.map(e=>{const n=e.toUpperCase(),t=/* @__PURE__ */new Set([n]);return n.startsWith("W")||t.add("W"+n),n.startsWith("W")&&n.length>1&&t.add(n.slice(1)),[...t]}),u=['totalValueLockedUSD_gt: "10000"','liquidity_gt: "0", volumeUSD_gt: "0"'];o?.feeTier&&u.push(`feeTier: "${o.feeTier}"`);let l="totalValueLockedUSD";"volume"===r?l="volumeUSD":"fee"===r?l="feeTier":"liquidity"===r&&(l="liquidity");const c="fee"===r?"asc":"desc",f=e=>1===e.length?`symbol: "${e[0]}"`:`symbol_in: [${e.map(e=>`"${e}"`).join(", ")}]`,d=(e,n)=>`{\n pools(\n first: ${n}\n orderBy: ${l}\n orderDirection: ${c}\n where: { ${[...u,...e].join(", ")} }\n ) {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }`;let h;if(s.length>0){const e=100;let n,t;s.length>=2?(n=d([`token0_: { ${f(s[0])} }`,`token1_: { ${f(s[1])} }`],e),t=d([`token0_: { ${f(s[1])} }`,`token1_: { ${f(s[0])} }`],e)):(n=d([`token0_: { ${f(s[0])} }`],e),t=d([`token1_: { ${f(s[0])} }`],e));const[r,o]=await Promise.allSettled([Lp(a,n,{},i),Lp(a,t,{},i)]),u="fulfilled"===r.status?(r.value?.pools||[]).filter(Ip).map(e=>Dp(e,a)):[],l="fulfilled"===o.status?(o.value?.pools||[]).filter(Ip).map(e=>Dp(e,a)):[],c=new Set(u.map(e=>e.poolAddress));h=[...u,...l.filter(e=>!c.has(e.poolAddress))]}else{const e=await Lp(a,d([],100),{},i);h=(e?.pools||[]).filter(Ip).map(e=>Dp(e,a))}const p=await qp();return p.length>0&&(h=Wp(h,p)),o?.minTVL&&(h=h.filter(e=>e.tvl>=o.minTVL)),o?.maxTVL&&(h=h.filter(e=>e.tvl<=o.maxTVL)),o?.minAPR&&(h=h.filter(e=>null!==e.apr&&e.apr>=o.minAPR)),o?.maxAPR&&(h=h.filter(e=>null!==e.apr&&e.apr<=o.maxAPR)),"apr"===r?h.sort((e,n)=>(n.apr??0)-(e.apr??0)):"liquidity"===r&&h.sort((e,n)=>{const t=BigInt(n.liquidity||"0")-BigInt(e.liquidity||"0");return t>0n?1:t<0n?-1:0}),h}async function Gp(e){const{poolId:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n position(id: "${n}") {\n pool {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }\n }`,a=await Lp(o,i,{},r);return a?.position?.pool?Dp(a.position.pool,o):null}async function Yp(e){const{chain:n,signal:t}=e,r=Bp(n),o=await Lp(r,'{\n pools(\n first: 100\n orderBy: volumeUSD\n orderDirection: desc\n where: { totalValueLockedUSD_gt: "10000", liquidity_gt: "0", volumeUSD_gt: "0" }\n ) {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }',{},t);return(o?.pools||[]).filter(Ip).map(e=>Dp(e,r))}const Jp=new Vh(Cp),Kp=[{alias:"op",token:"OP",chain:"optimism"},{alias:"arb",token:"ARB",chain:"arbitrum"},{alias:"eth",token:"ETH",chain:"ethereum"},{alias:"bnb",token:"BNB",chain:"bsc"},{alias:"matic",token:"MATIC",chain:"polygon"}];function Xp(e){return e instanceof Error&&("AbortError"===e.name||e.message.toLowerCase().includes("aborted")||e.message.toLowerCase().includes("canceled"))}function Qp(e,n){return new Promise((t,r)=>{if(n?.aborted)return void r(new Error("Aborted"));const o=setTimeout(()=>{n?.removeEventListener("abort",i),t()},e),i=()=>{clearTimeout(o),n?.removeEventListener("abort",i),r(new Error("Aborted"))};n?.addEventListener("abort",i,{once:!0})})}function Zp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _p(e,n,t){const r=Zp(n),o=Zp(t);return new RegExp(`\\b(?:on|in|at|from|to|across|via|using|tr[eê]n|tai|tại)\\s+${r}\\b`,"i").test(e)||new RegExp(`\\b(?:on|in|at|from|to|across|via|using|tr[eê]n|tai|tại)\\s+${o}\\b`,"i").test(e)||new RegExp(`\\b${r}\\s+(?:chain|network)\\b`,"i").test(e)||new RegExp(`\\b${o}\\s+(?:chain|network)\\b`,"i").test(e)}const $p=Jd()?.linkAddLiquidity,em=`You are a knowledgeable DeFi assistant helping users find the best liquidity pools.\n\nYou will receive structured pool data and must answer the user's question in a helpful, natural, conversational tone — like an expert friend explaining DeFi, not a robot listing data.\n\nGuidelines:\n- Respond in the exact language of LANGUAGE.\n- **FOLLOW-UP / CONTINUATION**: If the user's question is a short follow-up (e.g., "yes", "ok", "sure", "tell me more", "details", "go ahead"), look at the CONVERSATION HISTORY to understand what they are responding to. Provide a relevant, detailed follow-up answer based on the last assistant message. NEVER say "too vague" or ask for clarification when history clearly shows the context.\n- Use ONLY the provided pool data. Never invent or estimate numbers.\n- Intelligently select and highlight the most relevant pools for the user's question. You don't need to list all pools — pick the ones that best answer what they asked.\n- When recommending pools, briefly explain WHY they stand out (e.g. high APR, deep liquidity, low fee, well-known pair).\n- Include key metrics naturally in your answer: TVL, volume past day, APR, fee tier.\n- Use the provided uniswapUrl for each pool you mention. Do NOT construct URLs yourself.\n- If position data is available, include the provided uniswapPositionUrl for each position.\n- If UNSUPPORTED_CHAINS is present (not "none"), respond ONLY with a notice informing the user that those chain(s) are not currently supported for pool data queries (translate this notice naturally into LANGUAGE). Then list the SUPPORTED_CHAINS so the user knows which chains they can query. Do NOT add any other information, pool data, or suggestions after this notice.\n- If POOLS_FOUND is 0 and POSITIONS_FOUND is 0 and COINPOOL_PAIRS_FOUND is 0 and UNSUPPORTED_CHAINS is "none", start your response with the UNISWAP_V3_NOTICE (provided below, already translated to LANGUAGE), then continue with your helpful response.\n- If POOLS_FOUND is 0 but COINPOOL_PAIRS_FOUND > 0, do NOT show the UNISWAP_V3_NOTICE. Instead, answer naturally using the CoinPool data available.\n- When POOLS_FOUND > 0 (i.e. pool data from Subgraph is shown), prepend the phrase "According to the latest data from Subgraph Uniswap V3 " (translated naturally into LANGUAGE) at the very beginning of your response, before any other content. Keep the word "Subgraph" as-is (do not translate it).\n- If no suitable data is available, acknowledge it naturally and suggest how to refine the search.\n- Keep the response focused and easy to read. Use markdown (bold, bullet points) to structure when helpful, but keep the tone warm and human.\n${$p&&`- If the user mentions adding liquidity / adding a pool / adding a position (including phrases like "add liquidity", "add pool", "add position", "create pool", "create pair", "thêm thanh khoản", "thêm pool", "thêm position"), keep your normal answer content and append this exact link at the end of the response: ${$p}`}\n- Never output raw JSON or data dumps.\n\n## CoinPool Data Rules (COINPOOL_PAIRS section)\nCOINPOOL_PAIRS contains liquidity positions from the CoinPool platform, each with a SPECIFIC price range.\n\n**CRITICAL: CoinPool APR is NOT the overall pool APR.** It is the APR earned ONLY within that specific price range. You MUST always show the price range together with the APR. Never present CoinPool APR as if it were the general pool APR — this would mislead users.\n\n### When to use POOL_DATA vs COINPOOL_PAIRS:\n- **POOL_DATA** (from Uniswap subgraph): Use for general pool info — TVL, volume past day, overall pool APR, fee tier. This is the default data source.\n- **COINPOOL_PAIRS**: Use ONLY when the user specifically asks about price ranges, concentrated liquidity strategies, or which price range to choose. Each entry represents a specific price range with its own APR.\n\n### Display rules:\n1. **User asks general pool info** (e.g. "show ETH/USDC pools") → Show POOL_DATA. Mention CoinPool ranges only briefly as additional info if available.\n2. **User asks about price ranges / which range to pick** (e.g. "what price range should I use?", "gợi ý khoảng giá", "best range for ETH/USDC") → Show CoinPool ranges sorted by APR. Clearly label: "APR for this price range: X%" with the min–max prices.\n3. **User provides a specific price range** → Check if any CoinPool entry covers that range. If yes, show its APR. If no, suggest the range with the highest APR from CoinPool data.\n4. **Always format CoinPool APR as**: "APR **X%** (for range: minPrice – maxPrice baseToken/quoteToken)" — never show APR alone without its range.\n5. **Best range suggestion**: When suggesting, pick the entry with the highest APR and explain why (higher concentration = higher returns but narrower range = higher risk of going out of range).`;function nm(e){return 0===e?"$0":e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toFixed(2)}`}const tm={ethereum:"ethereum",arbitrum:"arbitrum",polygon:"polygon",bsc:"bnb",base:"base",optimism:"optimism",avalanche:"avalanche"};async function rm(e,n,t){const r=om(n);try{const a=e.data.pools.length,s=e.data.positions?.length??0,u=e.data.coinpoolPairs?.length??0;let l="";if(e.chatHistory&&e.chatHistory.length>0){l="\n\nCONVERSATION HISTORY (last messages for context):\n";for(const n of e.chatHistory){l+=`${"user"===n.role?"User":"Assistant"}: ${n.content}\n`}l+="---"}const c=`${em}${l}\n\nLANGUAGE: ${n||"en"}\nINTENT: ${e.parsed.intent}\nQUESTION: ${e.question}\nPOOLS_FOUND: ${a}\nPOSITIONS_FOUND: ${s}\nCOINPOOL_PAIRS_FOUND: ${u}\nUNSUPPORTED_CHAINS: ${e.parsed.unsupportedChains&&e.parsed.unsupportedChains.length>0?e.parsed.unsupportedChains.join(", "):"none"}\nSUPPORTED_CHAINS: ${Object.keys(Mp).join(", ")}\nUNISWAP_V3_NOTICE: ${r.uniswapV3Only}\n\nPARSED_QUERY:\n${JSON.stringify({...e.parsed,limit:void 0},null,2)}\n\nPOOL_DATA:\n${o=[...e.data.pools].sort((e,n)=>(n.apr??0)-(e.apr??0)||n.tvl-e.tvl).slice(0,100),JSON.stringify(o.map(e=>{return{...e,tvl:nm(e.tvl),volumePastDay:nm(e.volumePastDay),apr:null!==e.apr?`${e.apr}%`:null,liquidity:e.liquidity,uniswapUrl:(n=e,`https://app.uniswap.org/explore/pools/${tm[n.chain]||n.chain}/${n.poolAddress}`)};var n}),null,2)}\n${e.data.positions&&e.data.positions.length>0?`\n\nUSER_POSITIONS:\n${JSON.stringify(e.data.positions.slice(0,100).map(e=>{return{...e,uniswapPositionUrl:(n=e,`https://app.uniswap.org/positions/v3/${tm[n.chain]||n.chain}/${n.positionId}`)};var n}),null,2)}`:""}\n${e.data.coinpoolPairs&&e.data.coinpoolPairs.length>0?(()=>{const n=[...e.data.coinpoolPairs].sort((e,n)=>(n.apr??-1/0)-(e.apr??-1/0));return`\n\nCOINPOOL_PAIRS (price-range-specific data from CoinPool — APR here is per-range, NOT overall pool APR):\nBest range APR: ${null!==n[0]?.apr?n[0].apr.toFixed(2)+"%":"N/A"}\n${t=e.data.coinpoolPairs,[...t].sort((e,n)=>(n.apr??-1/0)-(e.apr??-1/0)).map((e,n)=>`#${n+1} ${e.pair} | pool: ${e.poolId} | fee: ${e.fee} | Range APR : ${null!==e.aprAvg?e.aprAvg.toFixed(2)+"%":"N/A"} | token prices: ${nm(e.token0Price)} / ${nm(e.token1Price)} | price range (${e.priceRange.baseToken}/${e.priceRange.quoteToken}): ${e.priceRange.minPrice} – ${e.priceRange.maxPrice} (current: ${e.priceRange.currentPrice})`).join("\n")}`;var t})():""}\n\nGenerate the final response for the end user now.`,f=5,d=1e3;let h=null,p=null;for(let e=1;e<=f;e++)try{h=await Jp.post("api/moralis-cortex/proxy/chat",{prompt:c,model:"gpt-4.1-mini",stream:!1},{headers:{Accept:"application/json","Content-Type":"application/json"},signal:t}),p=null;break}catch(i){if(p=i,Xp(i))throw i;e<f&&await Qp(d,t)}if(p)throw p;const m=h?.data?.text?.trim();if(m)return m}catch(i){}var o;return function(e,n){const t=e.data?.pools||[],r=e.data?.positions||[],o=e.data?.coinpoolPairs||[],i=om(n);return 0===t.length&&0===r.length&&0===o.length?e.parsed.unsupportedChains&&e.parsed.unsupportedChains.length>0?i.unsupportedChain:`${i.uniswapV3Only} No pool data found for this query.`:["I cannot generate the final AI response right now. Here is the raw pool data:","```json",JSON.stringify({intent:e.parsed.intent,tokens:e.parsed.tokens,chains:e.parsed.chains,pools:t},null,2),"```"].join("\n")}(e,n)}function om(e){const n=e||"en";return{unsupportedChain:V("poolUnsupportedChain",n),uniswapV3Only:V("poolUniswapV3Only",n)}}async function im(e){const{question:n,language:t,currentChain:r,walletAddress:o,chatHistory:i,signal:a}=e,s=await async function(e,n,t){try{let o="";if(t&&t.length>0){o="\n\n## CONVERSATION HISTORY:\n";for(const e of t)o+=`${"user"===e.role?"User":"Assistant"}: ${e.content}\n`;o+="---\n"}const i=`You are a DeFi Pool Query Parser. You understand ALL languages.\n\nConvert the user question into a structured JSON object. Return ONLY valid JSON — no explanation, no markdown.\n\n## OUTPUT FORMAT\n{\n "intent": string,\n "tokens": string[],\n "chains": string[],\n "poolAddress": string | null,\n "poolId": string | null,\n "walletAddress": string | null,\n "toAddress": string | null,\n "filters": {\n "minTVL": number | null,\n "maxTVL": number | null,\n "minAPR": number | null,\n "maxAPR": number | null,\n "feeTier": number | null\n },\n "sortBy": string | null,\n "limit": number | null\n}\n\n## INTENT TYPES\n- "search_pool" — find/list/show pools, optionally filtered by token(s) or chain\n- "best_pool" — best pool by TVL, volume, etc.\n- "compare_pool" — compare multiple pools or fee tiers\n- "pool_detail" — specific pool by address, pool id, or exact token pair\n- "trending_pool" — hot/trending/most active pools\n- "new_pool" — recently created pools\n- "high_apr_pool" — highest APR/yield pools\n- "low_fee_pool" — lowest fee pools\n- "safe_pool" — high TVL/low risk/stable pools\n- "general_pool_info" — educational questions (what is a pool, how pools work)\n- "user_positions" — user's own LP positions ("my pools", "my positions", "my liquidity")\n- "position_detail" — specific position by numeric id ("position 962961", "position id 12345", "tell me about position 962961")\n- "send_position" — user wants to send/transfer their LP position NFT to another address ("send position 12345 to 0x...", "transfer my position", "gửi position", "chuyển LP position")\n- "unknown" — truly unrelated to pools\n\n## TOKEN EXTRACTION\n- Extract token symbols mentioned: ETH, USDC, BTC, LINK, ARB, OP, etc.\n- Normalize wrapped variants: WETH→ETH, WBTC→BTC\n- "stablecoin pool" → tokens: ["USDC", "USDT"]\n- No tokens mentioned → tokens: []\n- One token mentioned → tokens: ["TOKEN"] (single-token search is valid)\n- Two tokens mentioned → tokens: ["TOKEN_A", "TOKEN_B"]\n\n## CHAIN vs TOKEN DISAMBIGUATION (CRITICAL)\nSome short names can be EITHER a chain name OR a token symbol.\nAmbiguous aliases: OP, ARB, ETH, BNB, MATIC\n\n**Rule: Use chain only with EXPLICIT chain context.**\nExplicit chain context = prepositions like "on", "in", "from", "across", "trên", "tại" + alias, OR alias + "chain"/"network".\n\nExamples:\n- "show me pool OP" → tokens: ["OP"], chains: [] (OP = token)\n- "show me pools on OP" → tokens: [], chains: ["optimism"] (on OP = chain)\n- "find ETH pools" → tokens: ["ETH"], chains: [] (ETH = token)\n- "find pools on ETH" → tokens: [], chains: ["ethereum"] (on ETH = chain)\n- "OP/USDC pool on ARB" → tokens: ["OP", "USDC"], chains: ["arbitrum"] (OP = token, on ARB = chain)\n- "show me pools on OP and ARB" → tokens: [], chains: ["optimism", "arbitrum"]\n- "ETH/USDC trên Arbitrum" → tokens: ["ETH", "USDC"], chains: ["arbitrum"]\n\nChain canonical names: ethereum, arbitrum, polygon, bsc, base, optimism, avalanche\n\n**UNSUPPORTED CHAIN HANDLING**: If the user mentions a chain NOT in the list above (e.g. solana, fantom, cronos, sui, tron, near, etc.), you MUST still include it in the "chains" array exactly as mentioned. Do NOT silently ignore unsupported chains. The system will detect and notify the user.\n\n## SORT RULES\n- "best", "top", "largest", "highest TVL" → "tvl"\n- "most active", "highest volume" → "volume"\n- "highest yield", "best APR", "largest APR" → "apr"\n- "cheapest", "lowest fee" → "fee"\n- "highest liquidity", "most liquid", "deepest liquidity" → "liquidity"\n- Not specified → null\n\n## LIMIT\n- Default: 5 | "top 10" → 10 | "top 3" → 3 | Max: 20\n\n## ADDRESS / ID DETECTION\n- Hex address (0x...) with pool context → poolAddress, intent "pool_detail"\n- Numeric id ("pool id 962961", "position 12345", "position id 962961") → poolId as string, intent "position_detail"\n- "my pools"/"my positions"/"my liquidity" → intent "user_positions", walletAddress null\n- Hex address with position context → walletAddress, intent "user_positions"\n- "send/transfer position <id> to <0x...>" → poolId as string, toAddress as the recipient 0x address, intent "send_position"\n- "send position" / "transfer my position" without an id → poolId: null, toAddress: null, intent "send_position"\n\n## user_positions CHAIN RULES\n- No chain specified → chains: [] (system uses connected chain)\n- Chains specified → add all to chains array\n- "all chains" → chains: []\n\n## EXAMPLES\n"Show me ETH/USDC pools on Base" → {"intent":"search_pool","tokens":["ETH","USDC"],"chains":["base"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pool OP" → {"intent":"search_pool","tokens":["OP"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pools on OP" → {"intent":"search_pool","tokens":[],"chains":["optimism"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"OP/USDC pool on ARB" → {"intent":"search_pool","tokens":["OP","USDC"],"chains":["arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"What are trending pools?" → {"intent":"trending_pool","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"volume","limit":5}\n"Best pool for ETH with high APR" → {"intent":"high_apr_pool","tokens":["ETH"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"apr","limit":5}\n"Pool la gi?" → {"intent":"general_pool_info","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pools" → {"intent":"search_pool","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"tvl","limit":5}\n"Show my pools" → {"intent":"user_positions","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Pool của tôi trên Arbitrum" → {"intent":"user_positions","tokens":[],"chains":["arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Show my liquidity on OP and ARB" → {"intent":"user_positions","tokens":[],"chains":["optimism","arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Tell me about pool id 962961" → {"intent":"position_detail","tokens":[],"chains":[],"poolAddress":null,"poolId":"962961","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Position 12345 on Arbitrum" → {"intent":"position_detail","tokens":[],"chains":["arbitrum"],"poolAddress":null,"poolId":"12345","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"find ETH pools" → {"intent":"search_pool","tokens":["ETH"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"tvl","limit":5}\n"Send position 962961 to 0xAbC123..." → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":"962961","walletAddress":null,"toAddress":"0xAbC123...","filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Transfer my LP position to 0xdef..." → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":"0xdef...","filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Gửi position 12345" → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":"12345","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Send position" → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n\n## FOLLOW-UP / CONTINUATION DETECTION (CRITICAL)\nIf the user question is vague, short, or cannot stand alone (e.g., "yes", "show me ranges", "tell me more", "details", "go ahead", "the first one", "what about fees?", "show me ranges or get help adding liquidity"), you MUST:\n1. Look at the CONVERSATION HISTORY provided below the question.\n2. Extract tokens, chains, and intent from the previous messages (especially the last assistant message and the last user question that mentioned specific tokens/pools).\n3. Use that context to fill in tokens, chains, and intent — as if the user explicitly repeated their earlier query with the follow-up refinement.\n4. Example: If history shows user asked about "WBTC/ETH pools" and now says "show me ranges" → tokens: ["BTC", "ETH"], intent: appropriate intent for the follow-up.\n5. NEVER return tokens: [] for a follow-up when history clearly shows which tokens were discussed.\n\n## RULES\n- ALWAYS return valid JSON\n- NEVER hallucinate addresses\n- Detect intent from ANY language\n- When in doubt between intents, prefer "search_pool" over "unknown"${o}\n\n---\nUser question: "${e}"`;let a=null,s=null;for(let e=1;e<=5;e++)try{a=await Jp.post("/api/gemini-cortex/proxy",{model:"gemini-2.5-flash-lite",data:{contents:[{parts:[{text:i}]}],generationConfig:{responseMimeType:"application/json"}}},{signal:n}),s=null;break}catch(r){if(s=r,Xp(r))throw r;e<5&&await Qp(1e3,n)}if(!a)throw s instanceof Error?s:new Error("Pool parser API failed after retries");const u=a?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||a?.data?.candidates?.[0]?.content?.parts?.[0]?.text;if(!u)return null;let l=u.trim();l.startsWith("```json")?l=l.replace(/^```json\s*/,"").replace(/\s*```$/,""):l.startsWith("```")&&(l=l.replace(/^```\s*/,"").replace(/\s*```$/,""));const c=l.match(/\{[\s\S]*\}/);if(!c)return null;const f=function(e,n){const t=e.toLowerCase();if("user_positions"!==n.intent)for(const{alias:o,token:i,chain:a}of Kp)new RegExp(`\\b${Zp(o)}\\b`,"i").test(t)&&(_p(t,o,a)?(n.chains.includes(a)||n.chains.push(a),n.tokens=n.tokens.filter(e=>e.toUpperCase()!==i)):(n.tokens.some(e=>e.toUpperCase()===i)||n.tokens.push(i),n.chains=n.chains.filter(e=>e!==a)));const r=n.chains.filter(e=>!Pp(e));return r.length>0&&(n.unsupportedChains=r),n.tokens=[...new Set(n.tokens.map(e=>e.toUpperCase()))],n.chains=[...new Set(n.chains.filter(e=>Pp(e)).map(e=>Bp(e)))],n}(e,JSON.parse(c[0]));return(!f.limit||f.limit<1)&&(f.limit=5),f.limit>20&&(f.limit=20),Array.isArray(f.chains)||(f.chains=[]),void 0===f.poolId&&(f.poolId=null),void 0===f.walletAddress&&(f.walletAddress=null),void 0===f.toAddress&&(f.toAddress=null),f}catch(r){return null}}(n,a,i);if(!s)return null;if("unknown"===s.intent&&(s.intent="general_pool_info"),o&&!s.walletAddress&&(s.walletAddress=o),"send_position"===s.intent)return{response:"",parsed:s,pools:[],positions:[],sendPositionData:{positionId:s.poolId||""}};if(s.unsupportedChains&&s.unsupportedChains.length>0&&0===s.chains.length)return{response:om(t).unsupportedChain,parsed:s,pools:[],positions:[]};let u,l=[],c=[];if("position_detail"===s.intent&&s.poolId){const e=!(s.chains&&s.chains.length>0)&&s.unsupportedChains&&s.unsupportedChains.length>0?[]:s.chains&&s.chains.length>0?s.chains:r&&Pp(r)?[r]:["ethereum"],n=await Promise.allSettled(e.map(e=>async function(e){const{positionId:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n position(id: "${n}") {\n id\n liquidity\n depositedToken0\n depositedToken1\n withdrawnToken0\n withdrawnToken1\n collectedFeesToken0\n collectedFeesToken1\n pool {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }\n }`,a=await Lp(o,i,{},r);if(!a?.position?.pool)return null;const s=a.position,u=Dp(s.pool,o),l=Number(s.pool?.feeTier||0),c=Np[l]??l/1e4;return{position:{positionId:s.id,poolAddress:s.pool?.id||"",pair:`${s.pool?.token0?.symbol}/${s.pool?.token1?.symbol}`,token0:{symbol:s.pool?.token0?.symbol||"",address:s.pool?.token0?.id||""},token1:{symbol:s.pool?.token1?.symbol||"",address:s.pool?.token1?.id||""},fee:c,chain:o,liquidity:s.liquidity,depositedToken0:s.depositedToken0,depositedToken1:s.depositedToken1,withdrawnToken0:s.withdrawnToken0,withdrawnToken1:s.withdrawnToken1,collectedFeesToken0:s.collectedFeesToken0,collectedFeesToken1:s.collectedFeesToken1},pool:u}}({positionId:s.poolId,chain:Bp(e),signal:a})));for(const t of n)if("fulfilled"===t.status&&t.value){c.push(t.value.position);const e=t.value.pool.poolAddress;l.some(n=>n.poolAddress===e)||l.push(t.value.pool)}}else if("user_positions"===s.intent){const e=!(s.chains&&s.chains.length>0)&&s.unsupportedChains&&s.unsupportedChains.length>0;if(s.walletAddress&&!e){const e=s.chains&&s.chains.length>0?s.chains:r&&Pp(r)?[r]:[];c=await async function(e){const{walletAddress:n,chains:t,signal:r}=e,o=t&&t.length>0?t:Object.keys(Mp),i=await Promise.allSettled(o.map(e=>async function(e,n,t){if(!Pp(n))return[];const r=`{\n positions(\n where: { owner: "${e.toLowerCase()}" }\n orderBy: id\n orderDirection: desc\n first: 100\n ) {\n id\n liquidity\n depositedToken0\n depositedToken1\n withdrawnToken0\n withdrawnToken1\n collectedFeesToken0\n collectedFeesToken1\n pool {\n id\n feeTier\n token0 { id symbol }\n token1 { id symbol }\n }\n }\n }`,o=await Lp(n,r,{},t);return(o?.positions||[]).map(e=>{const t=Number(e.pool?.feeTier||0),r=Np[t]??t/1e4;return{positionId:e.id,poolAddress:e.pool?.id||"",pair:`${e.pool?.token0?.symbol}/${e.pool?.token1?.symbol}`,token0:{symbol:e.pool?.token0?.symbol||"",address:e.pool?.token0?.id||""},token1:{symbol:e.pool?.token1?.symbol||"",address:e.pool?.token1?.id||""},fee:r,chain:n,liquidity:e.liquidity,depositedToken0:e.depositedToken0,depositedToken1:e.depositedToken1,withdrawnToken0:e.withdrawnToken0,withdrawnToken1:e.withdrawnToken1,collectedFeesToken0:e.collectedFeesToken0,collectedFeesToken1:e.collectedFeesToken1}})}(n,e,r)));return i.filter(e=>"fulfilled"===e.status).flatMap(e=>e.value)}({walletAddress:s.walletAddress,chains:e,signal:a})}}else l=await async function(e,n,t){try{const r=e.chains&&e.chains.length>0;if(!r&&e.unsupportedChains&&e.unsupportedChains.length>0)return[];const o=r?e.chains:n&&Pp(n)?[n]:["ethereum"],i=await Promise.allSettled(o.map(n=>async function(e,n,t){if(!Pp(n))return[];switch(e.intent){case"pool_detail":if(e.poolAddress){const r=await async function(e){const{poolAddress:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n pool(id: "${n.toLowerCase()}") {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }`,a=await Lp(o,i,{},r);return a?.pool?Dp(a.pool,o):null}({poolAddress:e.poolAddress,chain:n,signal:t});return r?[r]:[]}if(e.poolId){const r=await Gp({poolId:e.poolId,chain:n,signal:t});return r?[r]:[]}return zp({tokens:e.tokens,chain:n,sortBy:e.sortBy,filters:e.filters,signal:t});case"trending_pool":return Yp({chain:n,signal:t});case"best_pool":case"safe_pool":return zp({tokens:e.tokens,chain:n,sortBy:"tvl",filters:e.filters,signal:t});case"high_apr_pool":return zp({tokens:e.tokens,chain:n,sortBy:"apr",filters:e.filters,signal:t});case"low_fee_pool":return zp({tokens:e.tokens,chain:n,sortBy:"fee",filters:e.filters,signal:t});case"general_pool_info":return e.tokens.length>0?zp({tokens:e.tokens,chain:n,sortBy:"tvl",filters:e.filters,signal:t}):Yp({chain:n,signal:t});case"position_detail":if(e.poolId){const r=await Gp({poolId:e.poolId,chain:n,signal:t});return r?[r]:[]}return[];default:return zp({tokens:e.tokens,chain:n,sortBy:e.sortBy||"tvl",filters:e.filters,signal:t})}}(e,n,t)));let a=i.filter(e=>"fulfilled"===e.status).flatMap(e=>e.value);const s=await qp();return s.length>0&&(a=Wp(a,s)),"apr"===e.sortBy&&a.sort((e,n)=>(n.apr??0)-(e.apr??0)),a}catch(r){return[]}}(s,r,a);if(s.tokens.length>=2)try{const e=s.chains[0]||r||"ethereum",n=Rp[Bp(e)];if(n){const e=await um(n),t=s.tokens[0].toUpperCase(),r=s.tokens[1].toUpperCase(),o=e.filter(e=>{const n=e.token0.symbol.toUpperCase(),o=e.token1.symbol.toUpperCase();return n.includes(t)&&o.includes(r)||n.includes(r)&&o.includes(t)||t.includes(n)&&r.includes(o)||t.includes(o)&&r.includes(n)});o.length>0&&(u=o.map(e=>{const n=e.selectorAddress.toLowerCase()===e.token0.address.toLowerCase(),t=null!==e.priceMin?Number(e.priceMin):0,r=null!==e.priceMax?Number(e.priceMax):0,o=null!==e.priceCurrent?Number(e.priceCurrent):0,i=n?t:r>0?1/r:0,a=n?r:t>0?1/t:0,s=n?o:o>0?1/o:0,u=n?e.token0.symbol:e.token1.symbol,l=n?e.token1.symbol:e.token0.symbol;return{poolId:e.poolId,pair:`${e.token0.symbol}/${e.token1.symbol}`,token0Price:e.token0.price,token1Price:e.token1.price,fee:`${Np[Number(e.fee)]??Number(e.fee)/1e4}%`,apr:e.apr,aprAvg:e.aprAvg,priceRange:{minPrice:i,maxPrice:a,currentPrice:s,baseToken:u,quoteToken:l}}}).filter(e=>{const{minPrice:n,maxPrice:t,currentPrice:r}=e.priceRange;if(!r||!n&&!t)return!1;const o=Math.min(n,t),i=Math.max(n,t);return r>=o&&r<=i}),0===u.length&&(u=void 0))}}catch(d){}const f={question:n,parsed:s,chatHistory:i,data:{pools:l,positions:c.length>0?c:void 0,coinpoolPairs:u}};return{response:await rm(f,t,a),parsed:s,pools:l,positions:c}}const am=Jd()?.apiExternal?.keyringPool,sm=Jd()?.apiExternal?.baseUrl,um=async e=>{try{const n=await fetch(`${sm}/pair/pure-list?chainId=${encodeURIComponent(e)}`);if(!n.ok)throw new Error(`HTTP ${n.status}`);const t=await n.json(),r=t?.pairs||[],o=await(async e=>{if(e?.length>0){const n=e[0]?.chainId,t=[];if(e.forEach(e=>{e?.transaction?.length>0&&e.transaction.forEach(e=>{e?.nftId&&t.push(e.nftId)})}),t.length>0)return(async(e,n)=>{const t=xp.chunk(n,200);return(await Promise.allSettled(t.map(async n=>{const t=new URLSearchParams({tokenIds:n.join(","),chainId:String(e)}),r=await fetch(`${am}/user/positions-details/v3?${t}`);if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}))).map(e=>"fulfilled"===e?.status&&(e?.value?.data||e?.value)||[]).flat()})(n,t)}return[]})(r.map(n=>({...n,chainId:e}))),i=/* @__PURE__ */new Map;for(const e of o){const n=String(e?.tokenId||"");n&&i.set(n,e)}return r.map(e=>{let n=null;for(const t of e.transaction||[])if(t.nftId&&(n=i.get(t.nftId),n))break;return{...e,apr:n?.apr??null,aprAvg:n?.aprAvg??null,priceCurrent:n?.tick?.currentTick??null,priceMin:n?.tick?.minTick??null,priceMax:n?.tick?.maxTick??null}})}catch(n){return[]}},lm=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.";function cm(e,n,t){if(!e)return e;const r=e.toLowerCase().trim();if("max"===r||"all"===r)return n||e;const o=r.match(/^(\d+(?:\.\d+)?)%$/);if(o){const e=parseFloat(o[1])/100;return((parseFloat(n)||0)*e).toFixed(8).replace(/\.?0+$/,"")||"0"}const i=r.match(/^\$?(\d+(?:\.\d+)?)\$?$/),a=r.startsWith("$")||r.endsWith("$")||/\d(usd|dollar|dollars|đô|đồng)$/.test(r);if(i&&a){const n=parseFloat(i[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}function fm(e){try{let n=e?.trim()||"";return n.startsWith("```json")?n=n.replace(/^```json\s*/,"").replace(/\s*```$/,""):n.startsWith("```")&&(n=n.replace(/^```\s*/,"").replace(/\s*```$/,"")),JSON.parse(function(e){const n=e.indexOf("{");if(-1===n)return e;let t=0,r=!1,o=!1;for(let i=n;i<e.length;i++){const a=e[i];if(o)o=!1;else if("\\"===a&&r)o=!0;else if('"'!==a){if(!r)if("{"===a)t++;else if("}"===a&&(t--,0===t))return e.slice(n,i+1)}else r=!r}return e}(n))}catch{return null}}function dm(e){const n=[],t=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]*)\]\(([^)]+)\)|(https?:\/\/[^\s<>]+)|\*\*(.+?)\*\*|__(.+?)__|\*(.+?)\*|_(.+?)_|~~(.+?)~~|`([^`]+)`/g;let r,o=0;for(;null!==(r=t.exec(e));)r.index>o&&n.push(e.slice(o,r.index)),void 0!==r[1]||void 0!==r[2]?n.push(
|
|
20
|
+
return function(n){function r(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),(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 A(e)}(this,w(r).call(this,e))).isEventListenerAdded=!1,n.handleOrientationChange=n.handleOrientationChange.bind(A(n)),n.onOrientationChange=n.onOrientationChange.bind(A(n)),n.onPageLoad=n.onPageLoad.bind(A(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&&g(e,n)}(r,n),o=r,(i=[{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":m(window))&&Re&&(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 t.createElement(e,b({},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)}}(o.prototype,i),r;var o,i}(t.Component)},Ph}();let Uh=null;function Hh(e){Uh=e}const jh="dataBuyToken",qh={srcTokenAddress:"",descTokenAddress:"",amount:"",srcTokenDecimals:18,descTokenDecimals:18};class Vh{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),o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:JSON.stringify(n),signal:t.signal});if(!o.ok){let e=null;try{e=await o.json()}catch{try{const n=await o.text();n&&(e={message:n})}catch{}}const n=new Error(e?.message||e?.errorMessage||`HTTP ${o.status}: ${o.statusText}`);throw n.status=o.status,n.statusText=o.statusText,e&&(n.data=e),n}return{data:await o.json(),status:o.status}}}const Wh=new class extends Vh{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}}};function zh(e,n){return new Promise(t=>{const r=setTimeout(t,e);n?.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}const Gh=Jd()?.webAppUrl||"https://nft.keyring.app",Yh=new Vh("https://wallet-api.pantograph.app"),Jh=Gh,Kh=new Vh(Jh);async function Xh(e){const{address:n,chain:t="base",token_addresses:r,exclude_spam:o,exclude_unverified_contracts:i}=e;if(!n)throw new Error("Address is required");let a="Unknown error";for(let l=1;l<=5;l++)try{const e={chain:t,exclude_spam:o??!1,exclude_unverified_contracts:i??!1};r&&(e.token_addresses=r);const a=(await Kh.get(`api/moralis/proxy/wallets/${encodeURIComponent(n)}/tokens`,{query:e})).data;if(a?.result?.length>0){a.result=a.result.filter(e=>new Mh(e?.balance||0).gt(0)),a.result=a.result.map(e=>({...e,token_address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"===e.token_address?Zo:e.token_address}));try{if(a.result.length>0){const e=ci(t)??t,n=a.result.map(e=>e.token_address),r=await Yh.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=Mh(n.balance_formatted||"0").multipliedBy(t.price).toNumber()),r}),a.result=a.result.filter(e=>null==e.usd_value||new Mh(e.usd_value).gte(.01))}}}catch(s){}}return{success:!0,data:a}}catch(u){a=u instanceof Error?u.message:"Unknown error",l<5&&await zh(1e3)}return{success:!1,error:a}}async function Qh(e){const{address:n,chain:t="base",signal:r}=e;if(!n)throw new Error("Token address is required");let o="Unknown error";for(let a=1;a<=5;a++){if(r?.aborted)return{success:!1,error:"Request cancelled"};try{const e=ci(t)??t,i=await Yh.get(`/keyrings/tokens/${e}/v2`,{query:{addresses:n},signal:r}),s=n===Zo,u=(Array.isArray(i.data)?i.data:[]).find(e=>e.address?.toLowerCase()===n.toLowerCase()||s&&""===e.address)??null;if(u)return{success:!0,data:{token_address:u.address??n,name:u.name??"",symbol:u.symbol??"",decimals:null!=u.decimals?Number(u.decimals):18,logo:u.icon_image||u.logo,thumbnail:u.icon_image||u.logo,usd_price:null!=u.price?parseFloat(u.price):void 0,usd_price_24hr_percent_change:u.price_change_percentage_24h??void 0,usd_price_24hr_usd_change:u.price_change_24h??void 0}};const[l,c]=await Promise.allSettled([Kh.get("api/moralis/proxy/erc20/metadata",{query:{chain:t,addresses:[n]},signal:r}),Kh.get(`api/moralis/proxy/erc20/${encodeURIComponent(n)}/price`,{query:{chain:t,include:"percent_change"},signal:r})]),f="fulfilled"===l.status?l.value.data:[];if(!f||0===f.length){if(o="Token metadata not found",a<5&&await zh(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(i){if(r?.aborted)return{success:!1,error:"Request cancelled"};if(o=i instanceof Error?i.message:"Unknown error",a<5&&await zh(1e3,r),r?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:o}}async function Zh(e){const{prompt:n,model:t="gpt-4.1-mini",stream:r=!1,systemPrompt:o,signal:i}=e;if(!n)throw new Error("Prompt is required");const a=new Vh(Jh),s=o?`${o}\n\n---\n\n Current User's question: ${n}`:n;let u="Unknown error";for(let c=1;c<=5;c++){if(i?.aborted)return{success:!1,error:"Request cancelled"};try{const e=(await a.post("api/moralis-cortex/proxy/chat",{prompt:s,model:t,stream:r},{headers:{Accept:"application/json","Content-Type":"application/json"},signal:i})).data;if(!e?.text?.trim()){if(u="Empty response from Cortex AI",c<5&&await zh(1e3,i),i?.aborted)return{success:!1,error:"Request cancelled"};continue}return{success:!0,data:e}}catch(l){if(i?.aborted)return{success:!1,error:"Request cancelled"};if(u=l instanceof Error?l.message:"Unknown error",c<5&&await zh(1e3,i),i?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:u}}async function _h(e){const{address:n,chain:t="base",limit:r=100,exclude_spam:o=!0,cursor:i,signal:a}=e;if(!n)throw new Error("Address is required");let s="Unknown error";for(let l=1;l<=5;l++){if(a?.aborted)return{success:!1,error:"Request cancelled"};try{const e={chain:t,format:"decimal",limit:r,exclude_spam:o,media_items:!0,normalizeMetadata:!0};i&&(e.cursor=i);return{success:!0,data:(await Kh.get(`api/moralis/proxy/${encodeURIComponent(n)}/nft`,{query:e,signal:a})).data}}catch(u){if(a?.aborted)return{success:!1,error:"Request cancelled"};if(s=u instanceof Error?u.message:"Unknown error",l<5&&await zh(1e3,a),a?.aborted)return{success:!1,error:"Request cancelled"}}}return{success:!1,error:s}}const $h=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,chatWithCortex:Zh,getNftContractMetadata: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 Kh.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"}}},getTokenMetadata:Qh,getWalletNFTs:_h,getWalletTokenBalances:Xh,moralisApi:Kh},Symbol.toStringTag,{value:"Module"})),ep=new Vh("https://dln.debridge.finance");async function np(e){const{chainId:n,tokenIn:t,tokenInAmount:r,tokenOut:o,accesstoken:i,slippage:a="auto",tokenOutRecipient:s}=e;if(!(n&&t&&r&&o))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"}),u=await e.json(),l=u?.others||{},c=l?.AFFILIATE_FEE_PERENT,f=l?.AFFILIATE_FEE_RECIPIENT,d=await ep.get("/v1.0/chain/transaction",{query:{chainId:String(n),tokenIn:t,tokenInAmount:r,tokenOut:o,slippage:String(a),tokenOutRecipient:s,accesstoken:i,affiliateFeePercent:c,affiliateFeeRecipient:f}});if(d.data?.error)throw new Error(`DeBridge API Error: ${d.data.error}`);return{success:!0,data:d.data}}catch(u){let e=u instanceof Error?u.message:"Unknown error";const n=u;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:u instanceof Error?u.message:"Unknown error",status:t,errorMessage:e,errorCode:n.data?.errorCode,errorId:n.data?.errorId}}}const tp={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",10:"0x4200000000000000000000000000000000000006",56:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",137:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},rp=[{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"}]}],op=[{name:"deposit",type:"function",stateMutability:"payable",inputs:[],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{name:"wad",type:"uint256"}],outputs:[]}],ip=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],ap=[{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 sp(e,n){if(n)return n;const t=li[e];return t?.rpcUrls?.default?.http?.[0]}function up(e){const{action:n,parameters:t,fromAddress:r,chainId:o}=e;switch(n){case"send_native":return function(e,n,t){const{to_address:r,amount:o}=e;if(!r)throw new Error("Recipient address is required");if(!o)throw new Error("Amount is required");return{from:n,to:r,data:"0x",value:Qo(Mh(o).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18).toString(),chainId:t,description:`Send ${o} native token to ${r}`}}(t,r,o);case"send_token":return function(e,n,t){const{contract_address:r,to_address:o,amount:i,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!o)throw new Error("Recipient address is required");if(!i)throw new Error("Amount is required");const u=parseInt(a)||18,l=Qo(Mh(i).decimalPlaces(u,Mh.ROUND_DOWN).toFixed(),u);return{from:n,to:r,data:nt({abi:rp,functionName:"transfer",args:[o,l]}),value:"0",chainId:t,description:`Send ${i} ${s||"tokens"} to ${o}`}}(t,r,o);case"approve_token":return function(e,n,t){const{contract_address:r,spender_address:o,amount:i,decimals:a,token_symbol:s}=e;if(!r)throw new Error("Token contract address is required");if(!o)throw new Error("Spender address is required");const u=parseInt(a)||18,l=i&&""!==i?.trim()?Qo(Mh(i).decimalPlaces(u,Mh.ROUND_DOWN).toFixed(),u):Dt;return{from:n,to:r,data:nt({abi:rp,functionName:"approve",args:[o,l]}),value:"0",chainId:t,description:`Approve ${i||"unlimited"} ${s||"tokens"} for ${o}`}}(t,r,o);case"wrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const o=tp[t];if(!o)throw new Error(`WETH not supported on chain ${t}`);const i=Qo(Mh(r).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18).toString();return{from:n,to:o,data:nt({abi:op,functionName:"deposit"}),value:i,chainId:t,description:`Wrap ${r} native token`}}(t,r,o);case"unwrap_native":return function(e,n,t){const{amount:r}=e;if(!r)throw new Error("Amount is required");const o=tp[t];if(!o)throw new Error(`WETH not supported on chain ${t}`);const i=Qo(Mh(r).decimalPlaces(18,Mh.ROUND_DOWN).toFixed(),18);return{from:n,to:o,data:nt({abi:op,functionName:"withdraw",args:[i]}),value:"0",chainId:t,description:`Unwrap ${r} WETH`}}(t,r,o);case"send_nft":return function(e,n,t){const{contract_address:r,token_id:o,to_address:i,token_standard:a,amount:s,nft_name:u}=e;if(!r)throw new Error("NFT contract address is required");if(!o)throw new Error("Token ID is required");if(!i)throw new Error("Recipient address is required");const l=(a||"ERC721").toUpperCase(),c=BigInt(o);let f,d;if("ERC1155"===l){const e=BigInt(s||"1");f=nt({abi:ap,functionName:"safeTransferFrom",args:[n,i,c,e,"0x"]}),d=`Send ${e>1n?e.toString()+"x ":""}${u||"NFT"} (ERC1155 #${o}) to ${i}`}else f=nt({abi:ip,functionName:"safeTransferFrom",args:[n,i,c]}),d=`Send ${u||"NFT"} (ERC721 #${o}) to ${i}`;return{from:n,to:r,data:f,value:"0",chainId:t,description:d}}(t,r,o);default:throw new Error(`Action "${n}" does not produce a transaction`)}}async function lp(e){const{transactionHash:n,chainId:t,pollingInterval:r=3e3,timeout:o=12e4,rpcUrl:i}=e,a=sp(t,i);if(!a)throw new Error(`No RPC endpoint for chain ${t}`);const s=Date.now();for(;Date.now()-s<o;){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(u){}await new Promise(e=>setTimeout(e,r))}throw new Error(`Transaction ${n} was not mined within ${o/1e3}s`)}async function cp(e){const{tokenAddress:n,ownerAddress:t,spenderAddress:r,chainId:o,rpcUrl:i}=e,a=sp(o,i);if(!a)return BigInt(0);try{const e=nt({abi:rp,functionName:"allowance",args:[t,r]}),o=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"]})}),i=await o.json();return i.result&&"0x"!==i.result?BigInt(i.result):BigInt(0)}catch(s){return BigInt(0)}}function fp(e){const{tokenAddress:n,spenderAddress:t,fromAddress:r,chainId:o,tokenSymbol:i,amount:a}=e,s=a&&BigInt(a)>0n?BigInt(a):Dt;return{from:r,to:n,data:nt({abi:rp,functionName:"approve",args:[t,s]}),value:"0",chainId:o,description:`Approve ${i||"token"} for swap`}}async function dp(e){const{address:n,chainId:t,rpcUrl:r}=e,o=sp(t,r);if(!o)return new Mh(0);try{const e=await fetch(o,{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 Mh(BigInt(t.result).toString()):new Mh(0)}catch(i){return new Mh(0)}}async function hp(e){const{from:n,to:t,data:r,value:o,chainId:i,rpcUrl:a}=e,s=sp(i,a);if(!s)return new Mh(0);try{const[e,i]=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,...o&&"0"!==o?{value:o}:{}}]})}),fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_gasPrice",params:[]})})]),[a,u]=await Promise.all([e.json(),i.json()]),l=a.result?new Mh(BigInt(a.result).toString()):new Mh(0),c=u.result?new Mh(BigInt(u.result).toString()):new Mh(0);return l.times(c).times(1.1)}catch(u){return new Mh(0)}}async function pp(e){const{chainId:n,rpcUrl:t}=e,r=sp(n,t);if(!r)return new Mh(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 Mh(BigInt(n.result).toString()):new Mh(0)}catch(o){return new Mh(0)}}const mp=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,buildApproveForSwap:fp,buildTransaction:up,checkAllowance:cp,estimateTransactionFee:hp,getGasPrice:pp,getNativeBalance:dp,getRpcUrl:sp,isTransactionAction:function(e){return["send_native","send_token","approve_token","wrap_native","unwrap_native","send_nft"].includes(e)},waitForTransactionReceipt:lp},Symbol.toStringTag,{value:"Module"})),yp="gemini-2.5-flash-lite";let vp=null,bp=null;const wp=Jd()?.webAppUrl||"https://nft.keyring.app",gp=["faq","pool","general","crypto"],kp=new class extends Vh{enableGoogleSearch=!0;constructor(){super(wp)}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. **FOLLOW-UP / CONTINUATION**: If CURRENT USER QUESTION is a short follow-up (e.g. "yes", "ok", "sure", "tell me more", "details", "go ahead", "why?", "how?"), look at the CONVERSATION HISTORY above to understand what the user is responding to. Provide a relevant, detailed follow-up answer based on the LAST assistant message. NEVER say "too vague" or "please clarify" when history clearly shows the context.\n3. **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.\n4. **BREVITY**: Keep your answer extremely concise (under 3000 characters).\n5. **DATA INTEGRITY**: Do not mention data gaps or historical missing info; just answer based on available info.\n---\n`,o="/api/gemini-cortex/proxy",i={model:yp,data:{contents:[{parts:[{text:r}]}],tools:[{googleSearch:{}}]}};this.enableGoogleSearch||delete i.data.tools;const a=await this.post(o,i);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=await async function(){if(null!==vp)return vp;const e=await async function(){if(bp)return bp;const e=Jd(),n=[],t=e?.faqInternal;t&&Array.isArray(t.data)&&n.push(...t.data);const r=e?.faqUrl||"";if(r)try{const e=await fetch(r),t=await e.json();Array.isArray(t?.data)&&n.push(...t.data)}catch(o){}return bp=n,n}();return 0===e.length?(vp="",""):(vp=e.map((e,n)=>{const t=Object.keys(e.question),r=t.map(n=>e.question[n]?.trim()).filter(Boolean),o=t.map(n=>e.answer[n]?.trim()).filter(Boolean),i=r.join(" | ")||"",a=o[0]||"";return i?`[${n}] Q: ${i}\n A: ${a}`:""}).filter(Boolean).join("\n"),vp)}(),o=n+`---\nCURRENT USER QUESTION:\n${e}\n---`+(r?`\n\n## FAQ KNOWLEDGE BASE\n${r}\n\n`:"\n\n")+'Classify this question. Return ONLY a JSON object — no markdown, no explanation.\n\n## OUTPUT FORMAT\n{\n "model": "faq" | "pool" | "general" | "crypto",\n "language": "<ISO 639-1 code>",\n "faqAnswer": "<string>" | null\n}\n\n## FIELD DEFINITIONS\n- **model**: The AI pipeline route for this question (see classification steps below).\n- **language**: ISO 639-1 code detected from CURRENT USER QUESTION text only (en, vi, ja, zh, ko, es, fr, id, th, ru, etc.).\n- **faqAnswer**: Translated FAQ answer when model="faq"; always null otherwise.\n\n## CLASSIFICATION STEPS (follow in order)\n\n**Step 1 — Detect language**: Detect from CURRENT USER QUESTION text ONLY. Ignore language from history, system prompt, or FAQ data. For very short follow-ups (e.g. "yes", "ok"), detect language from the LAST user message in CONVERSATION HISTORY instead.\n\n**Step 1.5 — Detect Follow-up / Continuation**: If CURRENT USER QUESTION is a very short or vague follow-up that CANNOT stand alone (e.g., "yes", "no", "sure", "ok", "go ahead", "tell me more", "details", "please", "continue", "explain", "why?", "how?", "what about that?", "vâng", "ừ", "có", "tiếp", "はい", "對", single-word confirmations, affirmations, emojis, or any message that clearly references the previous assistant reply rather than introducing a new topic), then:\n - Look at the LAST assistant message in CONVERSATION HISTORY to determine the topic.\n - Route to the model that matches that topic: pool/liquidity/APR/positions → "pool", crypto/token/wallet/DeFi → "crypto", non-crypto topic → "general".\n - Do NOT classify the follow-up independently — the user is continuing the previous conversation.\n - Set faqAnswer = null (follow-ups are never FAQ).\n - STOP here, do not proceed to Step 2.\n - If there is NO CONVERSATION HISTORY, skip this step and proceed to Step 2.\n\n**Step 2 — Check FAQ FIRST**: Compare the CURRENT USER QUESTION against the FAQ KNOWLEDGE BASE above. Match by MEANING, not exact words — if the user asks in any language but a FAQ entry covers the same topic, it counts as a match. If the question semantically matches a FAQ entry:\n - Set model = "faq"\n - Set faqAnswer = the FAQ answer, translated/rewritten naturally into the user\'s detected language. Never output Vietnamese when language is "en".\n - STOP here, do not proceed further.\n\n**Step 3 — Check Pool (only if Step 2 did not match)**: Set model = "pool" ONLY when the user wants LIVE/REAL-TIME pool data that FAQ cannot answer:\n - Search/list/show actual pools with live data\n - Personal LP positions ("my pools", "my positions", "my liquidity")\n - Trending pools, pool by address/id, compare actual pool data\n - Live APR/TVL/volume numbers for specific pools\n - Send/transfer an LP position NFT ("send position 12345", "transfer my position to 0x...", "gửi position", "chuyển LP position")\n **NOT pool**: "show my NFTs", "view my NFTs", "what NFTs do I have", "xem NFT" — these are regular NFT collection queries → use "crypto".\n Use "general" or "crypto" for: token prices, swap/send/buy regular tokens, general wallet questions, educational pool questions already in FAQ, viewing/sending regular NFTs (non-LP-position).\n\n**Step 4 — Check if non-crypto (only if Steps 2 and 3 did not match)**: Set model = "general" ONLY if the question is completely unrelated to crypto, DeFi, NFT, wallet, blockchain, tokens, greetings, or financial topics (e.g. pure cooking, sports, unrelated coding).\n\n**Step 5 — Default**: Set model = "crypto" for everything crypto-related (tokens, DeFi, NFT, wallet, blockchain, greetings, chains, gas, smart contracts, send/swap/bridge/buy).\n\n## VALIDATION RULES\n- model="faq" requires faqAnswer != null\n- model != "faq" requires faqAnswer = null\n- If FAQ KNOWLEDGE BASE is empty, model must NOT be "faq"\n\nReturn only the JSON object.',i="/api/gemini-cortex/proxy",a={model:yp,data:{contents:[{parts:[{text:o}]}],generationConfig:{responseMimeType:"application/json"}}},s=await this.post(i,a),u=s?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||s?.data?.candidates?.[0]?.content?.parts?.[0]?.text;let l={model:"crypto",language:"en",faqAnswer:null};try{let e=u?.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=function(e){const n=gp.includes(e?.model)?e.model:"crypto",t="string"==typeof e?.language&&e.language.trim().length>0?e.language.trim().toLowerCase():"en",r="string"==typeof e?.faqAnswer&&e.faqAnswer.trim().length>0?e.faqAnswer.trim():null;return"faq"!==n||r?"faq"!==n?{model:n,language:t,faqAnswer:null}:{model:n,language:t,faqAnswer:r}:{model:"crypto",language:t,faqAnswer:null}}(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, mint 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",o={model:yp,data:{contents:[{parts:[{text:t}]}]}},i=await this.post(r,o),a=i?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||i?.data?.candidates?.[0]?.content?.parts?.[0]?.text;return a?.toLowerCase()?.startsWith("yes")}catch(t){throw t}}};var Ap,Ep,Tp,Sp={exports:{}},xp=(Ap||(Ap=1,Ep=Sp,Tp=Sp.exports,function(){var n,t="Expected a function",r="__lodash_hash_undefined__",o="__lodash_placeholder__",i=32,a=128,s=1/0,u=9007199254740991,l=NaN,c=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",i],["partialRight",64],["rearg",256]],d="[object Arguments]",h="[object Array]",p="[object Boolean]",m="[object Date]",y="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",g="[object Number]",k="[object Object]",A="[object Promise]",E="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",C="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",R="[object Float64Array]",N="[object Int8Array]",B="[object Int16Array]",P="[object Int32Array]",L="[object Uint8Array]",F="[object Uint8ClampedArray]",D="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,z=RegExp(V.source),G=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/[\\^$.*+?()[\]{}|]/g,$=RegExp(_.source),ee=/^\s+/,ne=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ae=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,ce=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,pe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ge="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+be+"]",xe="["+Te+"]",Ce="["+we+"]",Ie="\\d+",Me="["+ge+"]",Oe="["+ke+"]",Re="[^"+be+Te+Ie+ge+ke+Ae+"]",Ne="\\ud83c[\\udffb-\\udfff]",Be="[^"+be+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ae+"]",De="\\u200d",Ue="(?:"+Oe+"|"+Re+")",He="(?:"+Fe+"|"+Re+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Ce+"|"+Ne+")?",We="["+Ee+"]?",ze=We+Ve+"(?:"+De+"(?:"+[Be,Pe,Le].join("|")+")"+We+Ve+")*",Ge="(?:"+[Me,Pe,Le].join("|")+")"+ze,Ye="(?:"+[Be+Ce+"?",Ce,Pe,Le,Se].join("|")+")",Je=RegExp("['’]","g"),Ke=RegExp(Ce,"g"),Xe=RegExp(Ne+"(?="+Ne+")|"+Ye+ze,"g"),Qe=RegExp([Fe+"?"+Oe+"+"+je+"(?="+[xe,Fe,"$"].join("|")+")",He+"+"+qe+"(?="+[xe,Fe+Ue,"$"].join("|")+")",Fe+"?"+Ue+"+"+je,Fe+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),Ze=RegExp("["+De+be+we+Ee+"]"),_e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],en=-1,nn={};nn[O]=nn[R]=nn[N]=nn[B]=nn[P]=nn[L]=nn[F]=nn[D]=nn[U]=!0,nn[d]=nn[h]=nn[I]=nn[p]=nn[M]=nn[m]=nn[y]=nn[v]=nn[w]=nn[g]=nn[k]=nn[E]=nn[T]=nn[S]=nn[C]=!1;var tn={};tn[d]=tn[h]=tn[I]=tn[M]=tn[p]=tn[m]=tn[O]=tn[R]=tn[N]=tn[B]=tn[P]=tn[w]=tn[g]=tn[k]=tn[E]=tn[T]=tn[S]=tn[x]=tn[L]=tn[F]=tn[D]=tn[U]=!0,tn[y]=tn[v]=tn[C]=!1;var rn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},on=parseFloat,an=parseInt,sn="object"==typeof e&&e&&e.Object===Object&&e,un="object"==typeof self&&self&&self.Object===Object&&self,ln=sn||un||Function("return this")(),cn=Tp&&!Tp.nodeType&&Tp,fn=cn&&Ep&&!Ep.nodeType&&Ep,dn=fn&&fn.exports===cn,hn=dn&&sn.process,pn=function(){try{return fn&&fn.require&&fn.require("util").types||hn&&hn.binding&&hn.binding("util")}catch(e){}}(),mn=pn&&pn.isArrayBuffer,yn=pn&&pn.isDate,vn=pn&&pn.isMap,bn=pn&&pn.isRegExp,wn=pn&&pn.isSet,gn=pn&&pn.isTypedArray;function kn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function An(e,n,t,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];n(r,a,t(a),e)}return r}function En(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function Tn(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function Sn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function xn(e,n){for(var t=-1,r=null==e?0:e.length,o=0,i=[];++t<r;){var a=e[t];n(a,t,e)&&(i[o++]=a)}return i}function Cn(e,n){return!(null==e||!e.length)&&Dn(e,n,0)>-1}function In(e,n,t){for(var r=-1,o=null==e?0:e.length;++r<o;)if(t(n,e[r]))return!0;return!1}function Mn(e,n){for(var t=-1,r=null==e?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}function On(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}function Rn(e,n,t,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(t=e[++o]);++o<i;)t=n(t,e[o],o,e);return t}function Nn(e,n,t,r){var o=null==e?0:e.length;for(r&&o&&(t=e[--o]);o--;)t=n(t,e[o],o,e);return t}function Bn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var Pn=qn("length");function Ln(e,n,t){var r;return t(e,function(e,t,o){if(n(e,t,o))return r=t,!1}),r}function Fn(e,n,t,r){for(var o=e.length,i=t+(r?1:-1);r?i--:++i<o;)if(n(e[i],i,e))return i;return-1}function Dn(e,n,t){return n==n?function(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return-1}(e,n,t):Fn(e,Hn,t)}function Un(e,n,t,r){for(var o=t-1,i=e.length;++o<i;)if(r(e[o],n))return o;return-1}function Hn(e){return e!=e}function jn(e,n){var t=null==e?0:e.length;return t?zn(e,n)/t:l}function qn(e){return function(t){return null==t?n:t[e]}}function Vn(e){return function(t){return null==e?n:e[t]}}function Wn(e,n,t,r,o){return o(e,function(e,o,i){t=r?(r=!1,e):n(t,e,o,i)}),t}function zn(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Gn(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}function Yn(e){return e?e.slice(0,ut(e)+1).replace(ee,""):e}function Jn(e){return function(n){return e(n)}}function Kn(e,n){return Mn(n,function(n){return e[n]})}function Xn(e,n){return e.has(n)}function Qn(e,n){for(var t=-1,r=e.length;++t<r&&Dn(n,e[t],0)>-1;);return t}function Zn(e,n){for(var t=e.length;t--&&Dn(n,e[t],0)>-1;);return t}var _n=Vn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),$n=Vn({"&":"&","<":"<",">":">",'"':""","'":"'"});function et(e){return"\\"+rn[e]}function nt(e){return Ze.test(e)}function tt(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}function rt(e,n){return function(t){return e(n(t))}}function ot(e,n){for(var t=-1,r=e.length,i=0,a=[];++t<r;){var s=e[t];s!==n&&s!==o||(e[t]=o,a[i++]=t)}return a}function it(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}function at(e){return nt(e)?function(e){for(var n=Xe.lastIndex=0;Xe.test(e);)++n;return n}(e):Pn(e)}function st(e){return nt(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function ut(e){for(var n=e.length;n--&&ne.test(e.charAt(n)););return n}var lt=Vn({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ct=function e(ne){var be,we=(ne=null==ne?ln:ct.defaults(ln.Object(),ne,ct.pick(ln,$e))).Array,ge=ne.Date,ke=ne.Error,Ae=ne.Function,Ee=ne.Math,Te=ne.Object,Se=ne.RegExp,xe=ne.String,Ce=ne.TypeError,Ie=we.prototype,Me=Ae.prototype,Oe=Te.prototype,Re=ne["In"],Ne=Me.toString,Be=Oe.hasOwnProperty,Pe=0,Le=(be=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"",Fe=Oe.toString,De=Ne.call(Te),Ue=ln.Mn,He=Se("^"+Ne.call(Be).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=dn?ne.Buffer:n,qe=ne.Symbol,Ve=ne.Uint8Array,We=je?je.allocUnsafe:n,ze=rt(Te.getPrototypeOf,Te),Ge=Te.create,Ye=Oe.propertyIsEnumerable,Xe=Ie.splice,Ze=qe?qe.isConcatSpreadable:n,rn=qe?qe.iterator:n,sn=qe?qe.toStringTag:n,un=function(){try{var e=ui(Te,"defineProperty");return e({},"",{}),e}catch(n){}}(),cn=ne.clearTimeout!==ln.clearTimeout&&ne.clearTimeout,fn=ge&&ge.now!==ln.Date.now&&ge.now,hn=ne.setTimeout!==ln.setTimeout&&ne.setTimeout,pn=Ee.ceil,Pn=Ee.floor,Vn=Te.getOwnPropertySymbols,ft=je?je.isBuffer:n,dt=ne.isFinite,ht=Ie.join,pt=rt(Te.keys,Te),mt=Ee.max,yt=Ee.min,vt=ge.now,bt=ne.parseInt,wt=Ee.random,gt=Ie.reverse,kt=ui(ne,"DataView"),At=ui(ne,"Map"),Et=ui(ne,"Promise"),Tt=ui(ne,"Set"),St=ui(ne,"WeakMap"),xt=ui(Te,"create"),Ct=St&&new St,It={},Mt=Di(kt),Ot=Di(At),Rt=Di(Et),Nt=Di(Tt),Bt=Di(St),Pt=qe?qe.prototype:n,Lt=Pt?Pt.valueOf:n,Ft=Pt?Pt.toString:n;function Dt(e){if(es(e)&&!Wa(e)&&!(e instanceof qt)){if(e instanceof jt)return e;if(Be.call(e,"__wrapped__"))return Ui(e)}return new jt(e)}var Ut=/* @__PURE__ */function(){function e(){}return function(t){if(!$a(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Ht(){}function jt(e,t){this.On=e,this.Rn=[],this.Nn=!!t,this.Bn=0,this.Pn=n}function qt(e){this.On=e,this.Rn=[],this.Ln=1,this.Fn=!1,this.Dn=[],this.Un=c,this.Hn=[]}function Vt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Wt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function zt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Gt(e){var n=-1,t=null==e?0:e.length;for(this.jn=new zt;++n<t;)this.add(e[n])}function Yt(e){var n=this.jn=new Wt(e);this.size=n.size}function Jt(e,n){var t=Wa(e),r=!t&&Va(e),o=!t&&!r&&Ja(e),i=!t&&!r&&!o&&us(e),a=t||r||o||i,s=a?Gn(e.length,xe):[],u=s.length;for(var l in e)!n&&!Be.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mi(l,u))||s.push(l);return s}function Kt(e){var t=e.length;return t?e[zr(0,t-1)]:n}function Xt(e,n){return Ri(xo(e),or(n,0,e.length))}function Qt(e){return Ri(xo(e))}function Zt(e,t,r){(r!==n&&!Ha(e[t],r)||r===n&&!(t in e))&&tr(e,t,r)}function _t(e,t,r){var o=e[t];Be.call(e,t)&&Ha(o,r)&&(r!==n||t in e)||tr(e,t,r)}function $t(e,n){for(var t=e.length;t--;)if(Ha(e[t][0],n))return t;return-1}function er(e,n,t,r){return lr(e,function(e,o,i){n(r,e,t(e),i)}),r}function nr(e,n){return e&&Co(n,Os(n),e)}function tr(e,n,t){"__proto__"==n&&un?un(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function rr(e,t){for(var r=-1,o=t.length,i=we(o),a=null==e;++r<o;)i[r]=a?n:Ss(e,t[r]);return i}function or(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ir(e,t,r,o,i,a){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!$a(e))return e;var f=Wa(e);if(f){if(s=function(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&Be.call(e,"index")&&(t.index=e.index,t.input=e.input),t}(e),!u)return xo(e,s)}else{var h=fi(e),y=h==v||h==b;if(Ja(e))return go(e,u);if(h==k||h==d||y&&!i){if(s=l||y?{}:hi(e),!u)return l?function(e,n){return Co(e,ci(e),n)}(e,function(e,n){return e&&Co(n,Rs(n),e)}(s,e)):function(e,n){return Co(e,li(e),n)}(e,nr(s,e))}else{if(!tn[h])return i?e:{};s=function(e,n,t){var r,o=e.constructor;switch(n){case I:return ko(e);case p:case m:return new o(+e);case M:return function(e,n){var t=n?ko(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case O:case R:case N:case B:case P:case L:case F:case D:case U:return Ao(e,t);case w:return new o;case g:case S:return new o(e);case E:return function(e){var n=new e.constructor(e.source,le.exec(e));return n.lastIndex=e.lastIndex,n}(e);case T:return new o;case x:return r=e,Lt?Te(Lt.call(r)):{}}}(e,h,u)}}a||(a=new Yt);var A=a.get(e);if(A)return A;a.set(e,s),is(e)?e.forEach(function(n){s.add(ir(n,t,r,n,e,a))}):ns(e)&&e.forEach(function(n,o){s.set(o,ir(n,t,r,o,e,a))});var C=f?n:(c?l?ni:ei:l?Rs:Os)(e);return En(C||e,function(n,o){C&&(n=e[o=n]),_t(s,o,ir(n,t,r,o,e,a))}),s}function ar(e,t,r){var o=r.length;if(null==e)return!o;for(e=Te(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function sr(e,r,o){if("function"!=typeof e)throw new Ce(t);return Ci(function(){e.apply(n,o)},r)}function ur(e,n,t,r){var o=-1,i=Cn,a=!0,s=e.length,u=[],l=n.length;if(!s)return u;t&&(n=Mn(n,Jn(t))),r?(i=In,a=!1):n.length>=200&&(i=Xn,a=!1,n=new Gt(n));e:for(;++o<s;){var c=e[o],f=null==t?c:t(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=l;d--;)if(n[d]===f)continue e;u.push(c)}else i(n,f,r)||u.push(c)}return u}Dt.templateSettings={escape:Y,evaluate:J,interpolate:K,variable:"",imports:{Mn:Dt}},Dt.prototype=Ht.prototype,Dt.prototype.constructor=Dt,jt.prototype=Ut(Ht.prototype),jt.prototype.constructor=jt,qt.prototype=Ut(Ht.prototype),qt.prototype.constructor=qt,Vt.prototype.clear=function(){this.jn=xt?xt(null):{},this.size=0},Vt.prototype.delete=function(e){var n=this.has(e)&&delete this.jn[e];return this.size-=n?1:0,n},Vt.prototype.get=function(e){var t=this.jn;if(xt){var o=t[e];return o===r?n:o}return Be.call(t,e)?t[e]:n},Vt.prototype.has=function(e){var t=this.jn;return xt?t[e]!==n:Be.call(t,e)},Vt.prototype.set=function(e,t){var o=this.jn;return this.size+=this.has(e)?0:1,o[e]=xt&&t===n?r:t,this},Wt.prototype.clear=function(){this.jn=[],this.size=0},Wt.prototype.delete=function(e){var n=this.jn,t=$t(n,e);return!(t<0||(t==n.length-1?n.pop():Xe.call(n,t,1),--this.size,0))},Wt.prototype.get=function(e){var t=this.jn,r=$t(t,e);return r<0?n:t[r][1]},Wt.prototype.has=function(e){return $t(this.jn,e)>-1},Wt.prototype.set=function(e,n){var t=this.jn,r=$t(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},zt.prototype.clear=function(){this.size=0,this.jn={hash:new Vt,map:new(At||Wt),string:new Vt}},zt.prototype.delete=function(e){var n=ai(this,e).delete(e);return this.size-=n?1:0,n},zt.prototype.get=function(e){return ai(this,e).get(e)},zt.prototype.has=function(e){return ai(this,e).has(e)},zt.prototype.set=function(e,n){var t=ai(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this},Gt.prototype.add=Gt.prototype.push=function(e){return this.jn.set(e,r),this},Gt.prototype.has=function(e){return this.jn.has(e)},Yt.prototype.clear=function(){this.jn=new Wt,this.size=0},Yt.prototype.delete=function(e){var n=this.jn,t=n.delete(e);return this.size=n.size,t},Yt.prototype.get=function(e){return this.jn.get(e)},Yt.prototype.has=function(e){return this.jn.has(e)},Yt.prototype.set=function(e,n){var t=this.jn;if(t instanceof Wt){var r=t.jn;if(!At||r.length<199)return r.push([e,n]),this.size=++t.size,this;t=this.jn=new zt(r)}return t.set(e,n),this.size=t.size,this};var lr=Oo(vr),cr=Oo(br,!0);function fr(e,n){var t=!0;return lr(e,function(e,r,o){return t=!!n(e,r,o)}),t}function dr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(u===n?s==s&&!ss(s):r(s,u)))var u=s,l=a}return l}function hr(e,n){var t=[];return lr(e,function(e,r,o){n(e,r,o)&&t.push(e)}),t}function pr(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=pi),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?pr(s,n-1,t,r,o):On(o,s):r||(o[o.length]=s)}return o}var mr=Ro(),yr=Ro(!0);function vr(e,n){return e&&mr(e,n,Os)}function br(e,n){return e&&yr(e,n,Os)}function wr(e,n){return xn(n,function(n){return Qa(e[n])})}function gr(e,t){for(var r=0,o=(t=yo(t,e)).length;null!=e&&r<o;)e=e[Fi(t[r++])];return r&&r==o?e:n}function kr(e,n,t){var r=n(e);return Wa(e)?r:On(r,t(e))}function Ar(e){return null==e?e===n?"[object Undefined]":"[object Null]":sn&&sn in Te(e)?function(e){var t=Be.call(e,sn),r=e[sn];try{e[sn]=n;var o=!0}catch(a){}var i=Fe.call(e);return o&&(t?e[sn]=r:delete e[sn]),i}(e):function(e){return Fe.call(e)}(e)}function Er(e,n){return e>n}function Tr(e,n){return null!=e&&Be.call(e,n)}function Sr(e,n){return null!=e&&n in Te(e)}function xr(e,t,r){for(var o=r?In:Cn,i=e[0].length,a=e.length,s=a,u=we(a),l=1/0,c=[];s--;){var f=e[s];s&&t&&(f=Mn(f,Jn(t))),l=yt(f.length,l),u[s]=!r&&(t||i>=120&&f.length>=120)?new Gt(s&&f):n}f=e[0];var d=-1,h=u[0];e:for(;++d<i&&c.length<l;){var p=f[d],m=t?t(p):p;if(p=r||0!==p?p:0,!(h?Xn(h,m):o(c,m,r))){for(s=a;--s;){var y=u[s];if(!(y?Xn(y,m):o(e[s],m,r)))continue e}h&&h.push(m),c.push(p)}}return c}function Cr(e,t,r){var o=null==(e=Ti(e,t=yo(t,e)))?e:e[Fi(Xi(t))];return null==o?n:kn(o,e,r)}function Ir(e){return es(e)&&Ar(e)==d}function Mr(e,t,r,o,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Wa(e),u=Wa(t),l=s?h:fi(e),c=u?h:fi(t),f=(l=l==d?k:l)==k,v=(c=c==d?k:c)==k,b=l==c;if(b&&Ja(e)){if(!Ja(t))return!1;s=!0,f=!1}if(b&&!f)return a||(a=new Yt),s||us(e)?_o(e,t,r,o,i,a):function(e,n,t,r,o,i,a){switch(t){case M:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case I:return!(e.byteLength!=n.byteLength||!i(new Ve(e),new Ve(n)));case p:case m:case g:return Ha(+e,+n);case y:return e.name==n.name&&e.message==n.message;case E:case S:return e==n+"";case w:var s=tt;case T:var u=1&r;if(s||(s=it),e.size!=n.size&&!u)return!1;var l=a.get(e);if(l)return l==n;r|=2,a.set(e,n);var c=_o(s(e),s(n),r,o,i,a);return a.delete(e),c;case x:if(Lt)return Lt.call(e)==Lt.call(n)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var A=f&&Be.call(e,"__wrapped__"),C=v&&Be.call(t,"__wrapped__");if(A||C){var O=A?e.value():e,R=C?t.value():t;return a||(a=new Yt),i(O,R,r,o,a)}}return!!b&&(a||(a=new Yt),function(e,t,r,o,i,a){var s=1&r,u=ei(e),l=u.length;if(l!=ei(t).length&&!s)return!1;for(var c=l;c--;){var f=u[c];if(!(s?f in t:Be.call(t,f)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<l;){var y=e[f=u[c]],v=t[f];if(o)var b=s?o(v,y,f,t,e,a):o(y,v,f,e,t,a);if(!(b===n?y===v||i(y,v,r,o,a):b)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var w=e.constructor,g=t.constructor;w==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof g&&g instanceof g||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,o,i,a))}(e,t,r,o,Mr,i))}function Or(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Te(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var l=(u=r[i])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===n&&!(l in e))return!1}else{var d=new Yt;if(o)var h=o(c,f,l,e,t,d);if(!(h===n?Mr(f,c,3,o,d):h))return!1}}return!0}function Rr(e){return!(!$a(e)||(n=e,Le&&Le in n))&&(Qa(e)?He:de).test(Di(e));var n}function Nr(e){return"function"==typeof e?e:null==e?tu:"object"==typeof e?Wa(e)?Dr(e[0],e[1]):Fr(e):fu(e)}function Br(e){if(!gi(e))return pt(e);var n=[];for(var t in Te(e))Be.call(e,t)&&"constructor"!=t&&n.push(t);return n}function Pr(e,n){return e<n}function Lr(e,n){var t=-1,r=Ga(e)?we(e.length):[];return lr(e,function(e,o,i){r[++t]=n(e,o,i)}),r}function Fr(e){var n=si(e);return 1==n.length&&n[0][2]?Ai(n[0][0],n[0][1]):function(t){return t===e||Or(t,e,n)}}function Dr(e,t){return vi(e)&&ki(t)?Ai(Fi(e),t):function(r){var o=Ss(r,e);return o===n&&o===t?xs(r,e):Mr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&mr(t,function(a,s){if(i||(i=new Yt),$a(a))!function(e,t,r,o,i,a,s){var u=Si(e,r),l=Si(t,r),c=s.get(l);if(c)Zt(e,r,c);else{var f=a?a(u,l,r+"",e,t,s):n,d=f===n;if(d){var h=Wa(l),p=!h&&Ja(l),m=!h&&!p&&us(l);f=l,h||p||m?Wa(u)?f=u:Ya(u)?f=xo(u):p?(d=!1,f=go(l,!0)):m?(d=!1,f=Ao(l,!0)):f=[]:rs(l)||Va(l)?(f=u,Va(u)?f=ys(u):$a(u)&&!Qa(u)||(f=hi(l))):d=!1}d&&(s.set(l,f),i(f,l,o,a,s),s.delete(l)),Zt(e,r,f)}}(e,t,s,r,Ur,o,i);else{var u=o?o(Si(e,s),a,s+"",e,t,i):n;u===n&&(u=a),Zt(e,s,u)}},Rs)}function Hr(e,t){var r=e.length;if(r)return mi(t+=t<0?r:0,r)?e[t]:n}function jr(e,n,t){n=n.length?Mn(n,function(e){return Wa(e)?function(n){return gr(n,1===e.length?e[0]:e)}:e}):[tu];var r=-1;return n=Mn(n,Jn(ii())),function(e){var n=e.length;for(e.sort(function(e,n){return function(e,n,t){for(var r=-1,o=e.criteria,i=n.criteria,a=o.length,s=t.length;++r<a;){var u=Eo(o[r],i[r]);if(u)return r>=s?u:u*("desc"==t[r]?-1:1)}return e.index-n.index}(e,n,t)});n--;)e[n]=e[n].value;return e}(Lr(e,function(e,t,o){return{criteria:Mn(n,function(n){return n(e)}),index:++r,value:e}}))}function qr(e,n,t){for(var r=-1,o=n.length,i={};++r<o;){var a=n[r],s=gr(e,a);t(s,a)&&Xr(i,yo(a,e),s)}return i}function Vr(e,n,t,r){var o=r?Un:Dn,i=-1,a=n.length,s=e;for(e===n&&(n=xo(n)),t&&(s=Mn(e,Jn(t)));++i<a;)for(var u=0,l=n[i],c=t?t(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Wr(e,n){for(var t=e?n.length:0,r=t-1;t--;){var o=n[t];if(t==r||o!==i){var i=o;mi(o)?Xe.call(e,o,1):so(e,o)}}return e}function zr(e,n){return e+Pn(wt()*(n-e+1))}function Gr(e,n){var t="";if(!e||n<1||n>u)return t;do{n%2&&(t+=e),(n=Pn(n/2))&&(e+=e)}while(n);return t}function Yr(e,n){return Ii(Ei(e,n,tu),e+"")}function Jr(e){return Kt(Hs(e))}function Kr(e,n){var t=Hs(e);return Ri(t,or(n,0,t.length))}function Xr(e,t,r,o){if(!$a(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var l=Fi(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var f=u[l];(c=o?o(f,l,u):n)===n&&(c=$a(f)?f:mi(t[i+1])?[]:{})}_t(u,l,c),u=u[l]}return e}var Qr=Ct?function(e,n){return Ct.set(e,n),e}:tu,Zr=un?function(e,n){return un(e,"toString",{configurable:!0,enumerable:!1,value:$s(n),writable:!0})}:tu;function _r(e){return Ri(Hs(e))}function $r(e,n,t){var r=-1,o=e.length;n<0&&(n=-n>o?0:o+n),(t=t>o?o:t)<0&&(t+=o),o=n>t?0:t-n>>>0,n>>>=0;for(var i=we(o);++r<o;)i[r]=e[r+n];return i}function eo(e,n){var t;return lr(e,function(e,r,o){return!(t=n(e,r,o))}),!!t}function no(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n==n&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(t?a<=n:a<n)?r=i+1:o=i}return o}return to(e,n,tu,t)}function to(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,l=ss(t),c=t===n;i<a;){var f=Pn((i+a)/2),d=r(e[f]),h=d!==n,p=null===d,m=d==d,y=ss(d);if(s)var v=o||m;else v=c?m&&(o||h):u?m&&h&&(o||!p):l?m&&h&&!p&&(o||!y):!p&&!y&&(o?d<=t:d<t);v?i=f+1:a=f}return yt(a,4294967294)}function ro(e,n){for(var t=-1,r=e.length,o=0,i=[];++t<r;){var a=e[t],s=n?n(a):a;if(!t||!Ha(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:ss(e)?l:+e}function io(e){if("string"==typeof e)return e;if(Wa(e))return Mn(e,io)+"";if(ss(e))return Ft?Ft.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function ao(e,n,t){var r=-1,o=Cn,i=e.length,a=!0,s=[],u=s;if(t)a=!1,o=In;else if(i>=200){var l=n?null:Yo(e);if(l)return it(l);a=!1,o=Xn,u=new Gt}else u=n?[]:s;e:for(;++r<i;){var c=e[r],f=n?n(c):c;if(c=t||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;n&&u.push(f),s.push(c)}else o(u,f,t)||(u!==s&&u.push(f),s.push(c))}return s}function so(e,n){var t=-1,r=(n=yo(n,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++t<r;){var i=n[t];if("string"==typeof i){if("__proto__"===i&&!Be.call(e,"__proto__"))return!1;if("constructor"===i&&t+1<r&&"string"==typeof n[t+1]&&"prototype"===n[t+1]){if(o&&0===t)continue;return!1}}}var a=Ti(e,n);return null==a||delete a[Fi(Xi(n))]}function uo(e,n,t,r){return Xr(e,n,t(gr(e,n)),r)}function lo(e,n,t,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&n(e[i],i,e););return t?$r(e,r?0:i,r?i+1:o):$r(e,r?i+1:0,r?o:i)}function co(e,n){var t=e;return t instanceof qt&&(t=t.value()),Rn(n,function(e,n){return n.func.apply(n.thisArg,On([e],n.args))},t)}function fo(e,n,t){var r=e.length;if(r<2)return r?ao(e[0]):[];for(var o=-1,i=we(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=ur(i[o]||a,e[s],n,t));return ao(pr(i,1),n,t)}function ho(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var u=o<a?t[o]:n;r(s,e[o],u)}return s}function po(e){return Ya(e)?e:[]}function mo(e){return"function"==typeof e?e:tu}function yo(e,n){return Wa(e)?e:vi(e,n)?[e]:Li(vs(e))}var vo=Yr;function bo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:$r(e,t,r)}var wo=cn||function(e){return ln.clearTimeout(e)};function go(e,n){if(n)return e.slice();var t=e.length,r=We?We(t):new e.constructor(t);return e.copy(r),r}function ko(e){var n=new e.constructor(e.byteLength);return new Ve(n).set(new Ve(e)),n}function Ao(e,n){var t=n?ko(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ss(e),s=t!==n,u=null===t,l=t==t,c=ss(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!l)return-1}return 0}function To(e,n,t,r){for(var o=-1,i=e.length,a=t.length,s=-1,u=n.length,l=mt(i-a,0),c=we(u+l),f=!r;++s<u;)c[s]=n[s];for(;++o<a;)(f||o<i)&&(c[t[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function So(e,n,t,r){for(var o=-1,i=e.length,a=-1,s=t.length,u=-1,l=n.length,c=mt(i-s,0),f=we(c+l),d=!r;++o<c;)f[o]=e[o];for(var h=o;++u<l;)f[h+u]=n[u];for(;++a<s;)(d||o<i)&&(f[h+t[a]]=e[o++]);return f}function xo(e,n){var t=-1,r=e.length;for(n||(n=we(r));++t<r;)n[t]=e[t];return n}function Co(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=o?o(r[u],e[u],u,r,e):n;l===n&&(l=e[u]),i?tr(r,u,l):_t(r,u,l)}return r}function Io(e,n){return function(t,r){var o=Wa(t)?An:er,i=n?n():{};return o(t,e,ii(r,2),i)}}function Mo(e){return Yr(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&yi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Te(t);++o<i;){var u=r[o];u&&e(t,u,o,a)}return t})}function Oo(e,n){return function(t,r){if(null==t)return t;if(!Ga(t))return e(t,r);for(var o=t.length,i=n?o:-1,a=Te(t);(n?i--:++i<o)&&!1!==r(a[i],i,a););return t}}function Ro(e){return function(n,t,r){for(var o=-1,i=Te(n),a=r(n),s=a.length;s--;){var u=a[e?s:++o];if(!1===t(i[u],u,i))break}return n}}function No(e){return function(t){var r=nt(t=vs(t))?st(t):n,o=r?r[0]:t.charAt(0),i=r?bo(r,1).join(""):t.slice(1);return o[e]()+i}}function Bo(e){return function(n){return Rn(Qs(Vs(n).replace(Je,"")),e,"")}}function Po(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=Ut(e.prototype),r=e.apply(t,n);return $a(r)?r:t}}function Lo(e){return function(t,r,o){var i=Te(t);if(!Ga(t)){var a=ii(r,3);t=Os(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return $o(function(r){var o=r.length,i=o,a=jt.prototype.thru;for(e&&r.reverse();i--;){var s=r[i];if("function"!=typeof s)throw new Ce(t);if(a&&!u&&"wrapper"==ri(s))var u=new jt([],!0)}for(i=u?i:o;++i<o;){var l=ri(s=r[i]),c="wrapper"==l?ti(s):n;u=c&&bi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ri(c[0])].apply(u,c[3]):1==s.length&&bi(s)?u[l]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Wa(n))return u.plant(n).value();for(var t=0,i=o?r[t].apply(this,e):n;++t<o;)i=r[t].call(this,i);return i}})}function Do(e,t,r,o,i,s,u,l,c,f){var d=t&a,h=1&t,p=2&t,m=24&t,y=512&t,v=p?n:Po(e);return function a(){for(var b=arguments.length,w=we(b),g=b;g--;)w[g]=arguments[g];if(m)var k=oi(a),A=function(e,n){for(var t=e.length,r=0;t--;)e[t]===n&&++r;return r}(w,k);if(o&&(w=To(w,o,i,m)),s&&(w=So(w,s,u,m)),b-=A,m&&b<f){var E=ot(w,k);return zo(e,t,Do,a.placeholder,r,w,E,l,c,f-b)}var T=h?r:this,S=p?T[e]:e;return b=w.length,l?w=function(e,t){for(var r=e.length,o=yt(t.length,r),i=xo(e);o--;){var a=t[o];e[o]=mi(a,r)?i[a]:n}return e}(w,l):y&&b>1&&w.reverse(),d&&c<b&&(w.length=c),this&&this!==ln&&this instanceof a&&(S=v||Po(S)),S.apply(T,w)}}function Uo(e,n){return function(t,r){return function(e,n,t,r){return vr(e,function(e,o,i){n(r,t(e),o,i)}),r}(t,e,n(r),{})}}function Ho(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=io(r),o=io(o)):(r=oo(r),o=oo(o)),i=e(r,o)}return i}}function jo(e){return $o(function(n){return n=Mn(n,Jn(ii())),Yr(function(t){var r=this;return e(n,function(e){return kn(e,r,t)})})})}function qo(e,t){var r=(t=t===n?" ":io(t)).length;if(r<2)return r?Gr(t,e):t;var o=Gr(t,pn(e/at(t)));return nt(t)?bo(st(o),0,e).join(""):o.slice(0,e)}function Vo(e){return function(t,r,o){return o&&"number"!=typeof o&&yi(t,r,o)&&(r=o=n),t=ds(t),r===n?(r=t,t=0):r=ds(r),function(e,n,t,r){for(var o=-1,i=mt(pn((n-e)/(t||1)),0),a=we(i);i--;)a[r?i:++o]=e,e+=t;return a}(t,r,o=o===n?t<r?1:-1:ds(o),e)}}function Wo(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=ms(n),t=ms(t)),e(n,t)}}function zo(e,t,r,o,a,s,u,l,c,f){var d=8&t;t|=d?i:64,4&(t&=~(d?64:i))||(t&=-4);var h=[e,t,a,d?s:n,d?u:n,d?n:s,d?n:u,l,c,f],p=r.apply(n,h);return bi(e)&&xi(p,h),p.placeholder=o,Mi(p,e,t)}function Go(e){var n=Ee[e];return function(e,t){if(e=ms(e),(t=null==t?0:yt(hs(t),292))&&dt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return n(e)}}var Yo=Tt&&1/it(new Tt([,-0]))[1]==s?function(e){return new Tt(e)}:su;function Jo(e){return function(n){var t,r,o,i=fi(n);return i==w?tt(n):i==T?(t=n,r=-1,o=Array(t.size),t.forEach(function(e){o[++r]=[e,e]}),o):function(e,n){return Mn(n,function(n){return[n,e[n]]})}(n,e(n))}}function Ko(e,r,s,u,l,c,f,d){var h=2&r;if(!h&&"function"!=typeof e)throw new Ce(t);var p=u?u.length:0;if(p||(r&=-97,u=l=n),f=f===n?f:mt(hs(f),0),d=d===n?d:hs(d),p-=l?l.length:0,64&r){var m=u,y=l;u=l=n}var v=h?n:ti(e),b=[e,r,s,u,l,m,y,c,f,d];if(v&&function(e,n){var t=e[1],r=n[1],i=t|r,s=i<131,u=r==a&&8==t||r==a&&256==t&&e[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==t;if(!s&&!u)return e;1&r&&(e[2]=n[2],i|=1&t?0:4);var l=n[3];if(l){var c=e[3];e[3]=c?To(c,l,n[4]):l,e[4]=c?ot(e[3],o):n[4]}(l=n[5])&&(c=e[5],e[5]=c?So(c,l,n[6]):l,e[6]=c?ot(e[5],o):n[6]),(l=n[7])&&(e[7]=l),r&a&&(e[8]=null==e[8]?n[8]:yt(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=i}(b,v),e=b[0],r=b[1],s=b[2],u=b[3],l=b[4],!(d=b[9]=b[9]===n?h?0:e.length:mt(b[9]-p,0))&&24&r&&(r&=-25),r&&1!=r)w=8==r||16==r?function(e,t,r){var o=Po(e);return function i(){for(var a=arguments.length,s=we(a),u=a,l=oi(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:ot(s,l);return(a-=c.length)<r?zo(e,t,Do,i.placeholder,n,s,c,n,n,r-a):kn(this&&this!==ln&&this instanceof i?o:e,this,s)}}(e,r,d):r!=i&&33!=r||l.length?Do.apply(n,b):function(e,n,t,r){var o=1&n,i=Po(e);return function n(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=we(l+s),f=this&&this!==ln&&this instanceof n?i:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return kn(f,o?t:this,c)}}(e,r,s,u);else var w=function(e,n,t){var r=1&n,o=Po(e);return function n(){return(this&&this!==ln&&this instanceof n?o:e).apply(r?t:this,arguments)}}(e,r,s);return Mi((v?Qr:xi)(w,b),e,r)}function Xo(e,t,r,o){return e===n||Ha(e,Oe[r])&&!Be.call(o,r)?t:e}function Qo(e,t,r,o,i,a){return $a(e)&&$a(t)&&(a.set(t,e),Ur(e,t,n,Qo,a),a.delete(t)),e}function Zo(e){return rs(e)?n:e}function _o(e,t,r,o,i,a){var s=1&r,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=2&r?new Gt:n;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],y=t[d];if(o)var v=s?o(y,m,d,t,e,a):o(m,y,d,e,t,a);if(v!==n){if(v)continue;h=!1;break}if(p){if(!Bn(t,function(e,n){if(!Xn(p,n)&&(m===e||i(m,e,r,o,a)))return p.push(n)})){h=!1;break}}else if(m!==y&&!i(m,y,r,o,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function $o(e){return Ii(Ei(e,n,zi),e+"")}function ei(e){return kr(e,Os,li)}function ni(e){return kr(e,Rs,ci)}var ti=Ct?function(e){return Ct.get(e)}:su;function ri(e){for(var n=e.name+"",t=It[n],r=Be.call(It,n)?t.length:0;r--;){var o=t[r],i=o.func;if(null==i||i==e)return o.name}return n}function oi(e){return(Be.call(Dt,"placeholder")?Dt:e).placeholder}function ii(){var e=Dt.iteratee||ru;return e=e===ru?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,n){var t,r,o=e.jn;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function si(e){for(var n=Os(e),t=n.length;t--;){var r=n[t],o=e[r];n[t]=[r,o,ki(o)]}return n}function ui(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Rr(r)?r:n}var li=Vn?function(e){return null==e?[]:(e=Te(e),xn(Vn(e),function(n){return Ye.call(e,n)}))}:pu,ci=Vn?function(e){for(var n=[];e;)On(n,li(e)),e=ze(e);return n}:pu,fi=Ar;function di(e,n,t){for(var r=-1,o=(n=yo(n,e)).length,i=!1;++r<o;){var a=Fi(n[r]);if(!(i=null!=e&&t(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&_a(o)&&mi(a,o)&&(Wa(e)||Va(e))}function hi(e){return"function"!=typeof e.constructor||gi(e)?{}:Ut(ze(e))}function pi(e){return Wa(e)||Va(e)||!!(Ze&&e&&e[Ze])}function mi(e,n){var t=typeof e;return!!(n=null==n?u:n)&&("number"==t||"symbol"!=t&&pe.test(e))&&e>-1&&e%1==0&&e<n}function yi(e,n,t){if(!$a(t))return!1;var r=typeof n;return!!("number"==r?Ga(t)&&mi(n,t.length):"string"==r&&n in t)&&Ha(t[n],e)}function vi(e,n){if(Wa(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!ss(e))||Q.test(e)||!X.test(e)||null!=n&&e in Te(n)}function bi(e){var n=ri(e),t=Dt[n];if("function"!=typeof t||!(n in qt.prototype))return!1;if(e===t)return!0;var r=ti(t);return!!r&&e===r[0]}(kt&&fi(new kt(new ArrayBuffer(1)))!=M||At&&fi(new At)!=w||Et&&fi(Et.resolve())!=A||Tt&&fi(new Tt)!=T||St&&fi(new St)!=C)&&(fi=function(e){var t=Ar(e),r=t==k?e.constructor:n,o=r?Di(r):"";if(o)switch(o){case Mt:return M;case Ot:return w;case Rt:return A;case Nt:return T;case Bt:return C}return t});var wi=Re?Qa:mu;function gi(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Oe)}function ki(e){return e==e&&!$a(e)}function Ai(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Te(r))}}function Ei(e,t,r){return t=mt(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=mt(n.length-t,0),a=we(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=we(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),kn(e,this,s)}}function Ti(e,n){return n.length<2?e:gr(e,$r(n,0,-1))}function Si(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var xi=Oi(Qr),Ci=hn||function(e,n){return ln.setTimeout(e,n)},Ii=Oi(Zr);function Mi(e,n,t){var r=n+"";return Ii(e,function(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(te,"{\n/* [wrapped with "+n+"] */\n")}(r,function(e,n){return En(f,function(t){var r="_."+t[0];n&t[1]&&!Cn(e,r)&&e.push(r)}),e.sort()}(function(e){var n=e.match(re);return n?n[1].split(oe):[]}(r),t)))}function Oi(e){var t=0,r=0;return function(){var o=vt(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ri(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=zr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ni,Bi,Pi,Li=(Ni=function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(Z,function(e,t,r,o){n.push(r?o.replace(se,"$1"):t||e)}),n},Bi=Ba(Ni,function(e){return 500===Pi.size&&Pi.clear(),e}),Pi=Bi.cache,Bi);function Fi(e){if("string"==typeof e||ss(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function Di(e){if(null!=e){try{return Ne.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function Ui(e){if(e instanceof qt)return e.clone();var n=new jt(e.On,e.Nn);return n.Rn=xo(e.Rn),n.Bn=e.Bn,n.Pn=e.Pn,n}var Hi=Yr(function(e,n){return Ya(e)?ur(e,pr(n,1,Ya,!0)):[]}),ji=Yr(function(e,t){var r=Xi(t);return Ya(r)&&(r=n),Ya(e)?ur(e,pr(t,1,Ya,!0),ii(r,2)):[]}),qi=Yr(function(e,t){var r=Xi(t);return Ya(r)&&(r=n),Ya(e)?ur(e,pr(t,1,Ya,!0),n,r):[]});function Vi(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:hs(t);return o<0&&(o=mt(r+o,0)),Fn(e,ii(n,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?mt(o+i,0):yt(i,o-1)),Fn(e,ii(t,3),i,!0)}function zi(e){return null!=e&&e.length?pr(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Yi=Yr(function(e){var n=Mn(e,po);return n.length&&n[0]===e[0]?xr(n):[]}),Ji=Yr(function(e){var t=Xi(e),r=Mn(e,po);return t===Xi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?xr(r,ii(t,2)):[]}),Ki=Yr(function(e){var t=Xi(e),r=Mn(e,po);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?xr(r,n,t):[]});function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Qi=Yr(Zi);function Zi(e,n){return e&&e.length&&n&&n.length?Vr(e,n):e}var _i=$o(function(e,n){var t=null==e?0:e.length,r=rr(e,n);return Wr(e,Mn(n,function(e){return mi(e,t)?+e:e}).sort(Eo)),r});function $i(e){return null==e?e:gt.call(e)}var ea=Yr(function(e){return ao(pr(e,1,Ya,!0))}),na=Yr(function(e){var t=Xi(e);return Ya(t)&&(t=n),ao(pr(e,1,Ya,!0),ii(t,2))}),ta=Yr(function(e){var t=Xi(e);return t="function"==typeof t?t:n,ao(pr(e,1,Ya,!0),n,t)});function ra(e){if(!e||!e.length)return[];var n=0;return e=xn(e,function(e){if(Ya(e))return n=mt(e.length,n),!0}),Gn(n,function(n){return Mn(e,qn(n))})}function oa(e,t){if(!e||!e.length)return[];var r=ra(e);return null==t?r:Mn(r,function(e){return kn(t,n,e)})}var ia=Yr(function(e,n){return Ya(e)?ur(e,n):[]}),aa=Yr(function(e){return fo(xn(e,Ya))}),sa=Yr(function(e){var t=Xi(e);return Ya(t)&&(t=n),fo(xn(e,Ya),ii(t,2))}),ua=Yr(function(e){var t=Xi(e);return t="function"==typeof t?t:n,fo(xn(e,Ya),n,t)}),la=Yr(ra),ca=Yr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oa(e,r)});function fa(e){var n=Dt(e);return n.Nn=!0,n}function da(e,n){return n(e)}var ha=$o(function(e){var t=e.length,r=t?e[0]:0,o=this.On,i=function(n){return rr(n,e)};return!(t>1||this.Rn.length)&&o instanceof qt&&mi(r)?((o=o.slice(r,+r+(t?1:0))).Rn.push({func:da,args:[i],thisArg:n}),new jt(o,this.Nn).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(i)}),pa=Io(function(e,n,t){Be.call(e,t)?++e[t]:tr(e,t,1)}),ma=Lo(Vi),ya=Lo(Wi);function va(e,n){return(Wa(e)?En:lr)(e,ii(n,3))}function ba(e,n){return(Wa(e)?Tn:cr)(e,ii(n,3))}var wa=Io(function(e,n,t){Be.call(e,t)?e[t].push(n):tr(e,t,[n])}),ga=Yr(function(e,n,t){var r=-1,o="function"==typeof n,i=Ga(e)?we(e.length):[];return lr(e,function(e){i[++r]=o?kn(n,e,t):Cr(e,n,t)}),i}),ka=Io(function(e,n,t){tr(e,t,n)});function Aa(e,n){return(Wa(e)?Mn:Lr)(e,ii(n,3))}var Ea=Io(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]}),Ta=Yr(function(e,n){if(null==e)return[];var t=n.length;return t>1&&yi(e,n[0],n[1])?n=[]:t>2&&yi(n[0],n[1],n[2])&&(n=[n[0]]),jr(e,pr(n,1),[])}),Sa=fn||function(){return ln.Date.now()};function xa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ko(e,a,n,n,n,n,t)}function Ca(e,r){var o;if("function"!=typeof r)throw new Ce(t);return e=hs(e),function(){return--e>0&&(o=r.apply(this,arguments)),e<=1&&(r=n),o}}var Ia=Yr(function(e,n,t){var r=1;if(t.length){var o=ot(t,oi(Ia));r|=i}return Ko(e,r,n,t,o)}),Ma=Yr(function(e,n,t){var r=3;if(t.length){var o=ot(t,oi(Ma));r|=i}return Ko(n,r,e,t,o)});function Oa(e,r,o){var i,a,s,u,l,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Ce(t);function m(t){var r=i,o=a;return i=a=n,f=t,u=e.apply(o,r)}function y(e){var t=e-c;return c===n||t>=r||t<0||h&&e-f>=s}function v(){var e=Sa();if(y(e))return b(e);l=Ci(v,function(e){var n=r-(e-c);return h?yt(n,s-(e-f)):n}(e))}function b(e){return l=n,p&&i?m(e):(i=a=n,u)}function w(){var e=Sa(),t=y(e);if(i=arguments,a=this,c=e,t){if(l===n)return function(e){return f=e,l=Ci(v,r),d?m(e):u}(c);if(h)return wo(l),l=Ci(v,r),m(c)}return l===n&&(l=Ci(v,r)),u}return r=ms(r)||0,$a(o)&&(d=!!o.leading,s=(h="maxWait"in o)?mt(ms(o.maxWait)||0,r):s,p="trailing"in o?!!o.trailing:p),w.cancel=function(){l!==n&&wo(l),f=0,i=c=a=l=n},w.flush=function(){return l===n?u:b(Sa())},w}var Ra=Yr(function(e,n){return sr(e,1,n)}),Na=Yr(function(e,n,t){return sr(e,ms(n)||0,t)});function Ba(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ce(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ba.Cache||zt),r}function Pa(e){if("function"!=typeof e)throw new Ce(t);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}Ba.Cache=zt;var La=vo(function(e,n){var t=(n=1==n.length&&Wa(n[0])?Mn(n[0],Jn(ii())):Mn(pr(n,1),Jn(ii()))).length;return Yr(function(r){for(var o=-1,i=yt(r.length,t);++o<i;)r[o]=n[o].call(this,r[o]);return kn(e,this,r)})}),Fa=Yr(function(e,t){var r=ot(t,oi(Fa));return Ko(e,i,n,t,r)}),Da=Yr(function(e,t){var r=ot(t,oi(Da));return Ko(e,64,n,t,r)}),Ua=$o(function(e,t){return Ko(e,256,n,n,n,t)});function Ha(e,n){return e===n||e!=e&&n!=n}var ja=Wo(Er),qa=Wo(function(e,n){return e>=n}),Va=Ir(/* @__PURE__ */function(){return arguments}())?Ir:function(e){return es(e)&&Be.call(e,"callee")&&!Ye.call(e,"callee")},Wa=we.isArray,za=mn?Jn(mn):function(e){return es(e)&&Ar(e)==I};function Ga(e){return null!=e&&_a(e.length)&&!Qa(e)}function Ya(e){return es(e)&&Ga(e)}var Ja=ft||mu,Ka=yn?Jn(yn):function(e){return es(e)&&Ar(e)==m};function Xa(e){if(!es(e))return!1;var n=Ar(e);return n==y||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Qa(e){if(!$a(e))return!1;var n=Ar(e);return n==v||n==b||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Za(e){return"number"==typeof e&&e==hs(e)}function _a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function $a(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function es(e){return null!=e&&"object"==typeof e}var ns=vn?Jn(vn):function(e){return es(e)&&fi(e)==w};function ts(e){return"number"==typeof e||es(e)&&Ar(e)==g}function rs(e){if(!es(e)||Ar(e)!=k)return!1;var n=ze(e);if(null===n)return!0;var t=Be.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&Ne.call(t)==De}var os=bn?Jn(bn):function(e){return es(e)&&Ar(e)==E},is=wn?Jn(wn):function(e){return es(e)&&fi(e)==T};function as(e){return"string"==typeof e||!Wa(e)&&es(e)&&Ar(e)==S}function ss(e){return"symbol"==typeof e||es(e)&&Ar(e)==x}var us=gn?Jn(gn):function(e){return es(e)&&_a(e.length)&&!!nn[Ar(e)]},ls=Wo(Pr),cs=Wo(function(e,n){return e<=n});function fs(e){if(!e)return[];if(Ga(e))return as(e)?st(e):xo(e);if(rn&&e[rn])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[rn]());var n=fi(e);return(n==w?tt:n==T?it:Hs)(e)}function ds(e){return e?(e=ms(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var n=ds(e),t=n%1;return n==n?t?n-t:n:0}function ps(e){return e?or(hs(e),0,c):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return l;if($a(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=$a(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var t=fe.test(e);return t||he.test(e)?an(e.slice(2),t?2:8):ce.test(e)?l:+e}function ys(e){return Co(e,Rs(e))}function vs(e){return null==e?"":io(e)}var bs=Mo(function(e,n){if(gi(n)||Ga(n))Co(n,Os(n),e);else for(var t in n)Be.call(n,t)&&_t(e,t,n[t])}),ws=Mo(function(e,n){Co(n,Rs(n),e)}),gs=Mo(function(e,n,t,r){Co(n,Rs(n),e,r)}),ks=Mo(function(e,n,t,r){Co(n,Os(n),e,r)}),As=$o(rr),Es=Yr(function(e,t){e=Te(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&yi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Rs(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===n||Ha(f,Oe[c])&&!Be.call(e,c))&&(e[c]=a[c])}return e}),Ts=Yr(function(e){return e.push(n,Qo),kn(Bs,n,e)});function Ss(e,t,r){var o=null==e?n:gr(e,t);return o===n?r:o}function xs(e,n){return null!=e&&di(e,n,Sr)}var Cs=Uo(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Fe.call(n)),e[n]=t},$s(tu)),Is=Uo(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Fe.call(n)),Be.call(e,n)?e[n].push(t):e[n]=[t]},ii),Ms=Yr(Cr);function Os(e){return Ga(e)?Jt(e):Br(e)}function Rs(e){return Ga(e)?Jt(e,!0):function(e){if(!$a(e))return function(e){var n=[];if(null!=e)for(var t in Te(e))n.push(t);return n}(e);var n=gi(e),t=[];for(var r in e)("constructor"!=r||!n&&Be.call(e,r))&&t.push(r);return t}(e)}var Ns=Mo(function(e,n,t){Ur(e,n,t)}),Bs=Mo(function(e,n,t,r){Ur(e,n,t,r)}),Ps=$o(function(e,n){var t={};if(null==e)return t;var r=!1;n=Mn(n,function(n){return n=yo(n,e),r||(r=n.length>1),n}),Co(e,ni(e),t),r&&(t=ir(t,7,Zo));for(var o=n.length;o--;)so(t,n[o]);return t}),Ls=$o(function(e,n){return null==e?{}:function(e,n){return qr(e,n,function(n,t){return xs(e,t)})}(e,n)});function Fs(e,n){if(null==e)return{};var t=Mn(ni(e),function(e){return[e]});return n=ii(n),qr(e,t,function(e,t){return n(e,t[0])})}var Ds=Jo(Os),Us=Jo(Rs);function Hs(e){return null==e?[]:Kn(e,Os(e))}var js=Bo(function(e,n,t){return n=n.toLowerCase(),e+(t?qs(n):n)});function qs(e){return Xs(vs(e).toLowerCase())}function Vs(e){return(e=vs(e))&&e.replace(me,_n).replace(Ke,"")}var Ws=Bo(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),zs=Bo(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),Gs=No("toLowerCase"),Ys=Bo(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),Js=Bo(function(e,n,t){return e+(t?" ":"")+Xs(n)}),Ks=Bo(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Xs=No("toUpperCase");function Qs(e,t,r){return e=vs(e),(t=r?n:t)===n?function(e){return _e.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ie)||[]}(e):e.match(t)||[]}var Zs=Yr(function(e,t){try{return kn(e,n,t)}catch(r){return Xa(r)?r:new ke(r)}}),_s=$o(function(e,n){return En(n,function(n){n=Fi(n),tr(e,n,Ia(e[n],e))}),e});function $s(e){return function(){return e}}var eu=Fo(),nu=Fo(!0);function tu(e){return e}function ru(e){return Nr("function"==typeof e?e:ir(e,1))}var ou=Yr(function(e,n){return function(t){return Cr(t,e,n)}}),iu=Yr(function(e,n){return function(t){return Cr(e,t,n)}});function au(e,n,t){var r=Os(n),o=wr(n,r);null!=t||$a(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=wr(n,Os(n)));var i=!($a(t)&&"chain"in t&&!t.chain),a=Qa(e);return En(o,function(t){var r=n[t];e[t]=r,a&&(e.prototype[t]=function(){var n=this.Nn;if(i||n){var t=e(this.On);return(t.Rn=xo(this.Rn)).push({func:r,args:arguments,thisArg:e}),t.Nn=n,t}return r.apply(e,On([this.value()],arguments))})}),e}function su(){}var uu=jo(Mn),lu=jo(Sn),cu=jo(Bn);function fu(e){return vi(e)?qn(Fi(e)):function(e){return function(n){return gr(n,e)}}(e)}var du=Vo(),hu=Vo(!0);function pu(){return[]}function mu(){return!1}var yu,vu=Ho(function(e,n){return e+n},0),bu=Go("ceil"),wu=Ho(function(e,n){return e/n},1),gu=Go("floor"),ku=Ho(function(e,n){return e*n},1),Au=Go("round"),Eu=Ho(function(e,n){return e-n},0);return Dt.after=function(e,n){if("function"!=typeof n)throw new Ce(t);return e=hs(e),function(){if(--e<1)return n.apply(this,arguments)}},Dt.ary=xa,Dt.assign=bs,Dt.assignIn=ws,Dt.assignInWith=gs,Dt.assignWith=ks,Dt.at=As,Dt.before=Ca,Dt.bind=Ia,Dt.bindAll=_s,Dt.bindKey=Ma,Dt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Dt.chain=fa,Dt.chunk=function(e,t,r){t=(r?yi(e,t,r):t===n)?1:mt(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=we(pn(o/t));i<o;)s[a++]=$r(e,i,i+=t);return s},Dt.compact=function(e){for(var n=-1,t=null==e?0:e.length,r=0,o=[];++n<t;){var i=e[n];i&&(o[r++]=i)}return o},Dt.concat=function(){var e=arguments.length;if(!e)return[];for(var n=we(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return On(Wa(t)?xo(t):[t],pr(n,1))},Dt.cond=function(e){var n=null==e?0:e.length,r=ii();return e=n?Mn(e,function(e){if("function"!=typeof e[1])throw new Ce(t);return[r(e[0]),e[1]]}):[],Yr(function(t){for(var r=-1;++r<n;){var o=e[r];if(kn(o[0],this,t))return kn(o[1],this,t)}})},Dt.conforms=function(e){return function(e){var n=Os(e);return function(t){return ar(t,e,n)}}(ir(e,1))},Dt.constant=$s,Dt.countBy=pa,Dt.create=function(e,n){var t=Ut(e);return null==n?t:nr(t,n)},Dt.curry=function e(t,r,o){var i=Ko(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Dt.curryRight=function e(t,r,o){var i=Ko(t,16,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Dt.debounce=Oa,Dt.defaults=Es,Dt.defaultsDeep=Ts,Dt.defer=Ra,Dt.delay=Na,Dt.difference=Hi,Dt.differenceBy=ji,Dt.differenceWith=qi,Dt.drop=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Dt.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Dt.dropRightWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!0,!0):[]},Dt.dropWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!0):[]},Dt.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:ps(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Dt.filter=function(e,n){return(Wa(e)?xn:hr)(e,ii(n,3))},Dt.flatMap=function(e,n){return pr(Aa(e,n),1)},Dt.flatMapDeep=function(e,n){return pr(Aa(e,n),s)},Dt.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),pr(Aa(e,t),r)},Dt.flatten=zi,Dt.flattenDeep=function(e){return null!=e&&e.length?pr(e,s):[]},Dt.flattenDepth=function(e,t){return null!=e&&e.length?pr(e,t=t===n?1:hs(t)):[]},Dt.flip=function(e){return Ko(e,512)},Dt.flow=eu,Dt.flowRight=nu,Dt.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,r={};++n<t;){var o=e[n];r[o[0]]=o[1]}return r},Dt.functions=function(e){return null==e?[]:wr(e,Os(e))},Dt.functionsIn=function(e){return null==e?[]:wr(e,Rs(e))},Dt.groupBy=wa,Dt.initial=function(e){return null!=e&&e.length?$r(e,0,-1):[]},Dt.intersection=Yi,Dt.intersectionBy=Ji,Dt.intersectionWith=Ki,Dt.invert=Cs,Dt.invertBy=Is,Dt.invokeMap=ga,Dt.iteratee=ru,Dt.keyBy=ka,Dt.keys=Os,Dt.keysIn=Rs,Dt.map=Aa,Dt.mapKeys=function(e,n){var t={};return n=ii(n,3),vr(e,function(e,r,o){tr(t,n(e,r,o),e)}),t},Dt.mapValues=function(e,n){var t={};return n=ii(n,3),vr(e,function(e,r,o){tr(t,r,n(e,r,o))}),t},Dt.matches=function(e){return Fr(ir(e,1))},Dt.matchesProperty=function(e,n){return Dr(e,ir(n,1))},Dt.memoize=Ba,Dt.merge=Ns,Dt.mergeWith=Bs,Dt.method=ou,Dt.methodOf=iu,Dt.mixin=au,Dt.negate=Pa,Dt.nthArg=function(e){return e=hs(e),Yr(function(n){return Hr(n,e)})},Dt.omit=Ps,Dt.omitBy=function(e,n){return Fs(e,Pa(ii(n)))},Dt.once=function(e){return Ca(2,e)},Dt.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),jr(e,t,r))},Dt.over=uu,Dt.overArgs=La,Dt.overEvery=lu,Dt.overSome=cu,Dt.partial=Fa,Dt.partialRight=Da,Dt.partition=Ea,Dt.pick=Ls,Dt.pickBy=Fs,Dt.property=fu,Dt.propertyOf=function(e){return function(t){return null==e?n:gr(e,t)}},Dt.pull=Qi,Dt.pullAll=Zi,Dt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Vr(e,n,ii(t,2)):e},Dt.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,n,r):e},Dt.pullAt=_i,Dt.range=du,Dt.rangeRight=hu,Dt.rearg=Ua,Dt.reject=function(e,n){return(Wa(e)?xn:hr)(e,Pa(ii(n,3)))},Dt.remove=function(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],i=e.length;for(n=ii(n,3);++r<i;){var a=e[r];n(a,r,e)&&(t.push(a),o.push(r))}return Wr(e,o),t},Dt.rest=function(e,r){if("function"!=typeof e)throw new Ce(t);return Yr(e,r=r===n?r:hs(r))},Dt.reverse=$i,Dt.sampleSize=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:hs(t),(Wa(e)?Xt:Kr)(e,t)},Dt.set=function(e,n,t){return null==e?e:Xr(e,n,t)},Dt.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Xr(e,t,r,o)},Dt.shuffle=function(e){return(Wa(e)?Qt:_r)(e)},Dt.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),$r(e,t,r)):[]},Dt.sortBy=Ta,Dt.sortedUniq=function(e){return e&&e.length?ro(e):[]},Dt.sortedUniqBy=function(e,n){return e&&e.length?ro(e,ii(n,2)):[]},Dt.split=function(e,t,r){return r&&"number"!=typeof r&&yi(e,t,r)&&(t=r=n),(r=r===n?c:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=io(t))&&nt(e)?bo(st(e),0,r):e.split(t,r):[]},Dt.spread=function(e,n){if("function"!=typeof e)throw new Ce(t);return n=null==n?0:mt(hs(n),0),Yr(function(t){var r=t[n],o=bo(t,0,n);return r&&On(o,r),kn(e,this,o)})},Dt.tail=function(e){var n=null==e?0:e.length;return n?$r(e,1,n):[]},Dt.take=function(e,t,r){return e&&e.length?$r(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Dt.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?$r(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Dt.takeRightWhile=function(e,n){return e&&e.length?lo(e,ii(n,3),!1,!0):[]},Dt.takeWhile=function(e,n){return e&&e.length?lo(e,ii(n,3)):[]},Dt.tap=function(e,n){return n(e),e},Dt.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new Ce(t);return $a(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Oa(e,n,{leading:o,maxWait:n,trailing:i})},Dt.thru=da,Dt.toArray=fs,Dt.toPairs=Ds,Dt.toPairsIn=Us,Dt.toPath=function(e){return Wa(e)?Mn(e,Fi):ss(e)?[e]:xo(Li(vs(e)))},Dt.toPlainObject=ys,Dt.transform=function(e,n,t){var r=Wa(e),o=r||Ja(e)||us(e);if(n=ii(n,4),null==t){var i=e&&e.constructor;t=o?r?new i:[]:$a(e)&&Qa(i)?Ut(ze(e)):{}}return(o?En:vr)(e,function(e,r,o){return n(t,e,r,o)}),t},Dt.unary=function(e){return xa(e,1)},Dt.union=ea,Dt.unionBy=na,Dt.unionWith=ta,Dt.uniq=function(e){return e&&e.length?ao(e):[]},Dt.uniqBy=function(e,n){return e&&e.length?ao(e,ii(n,2)):[]},Dt.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ao(e,n,t):[]},Dt.unset=function(e,n){return null==e||so(e,n)},Dt.unzip=ra,Dt.unzipWith=oa,Dt.update=function(e,n,t){return null==e?e:uo(e,n,mo(t))},Dt.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:uo(e,t,mo(r),o)},Dt.values=Hs,Dt.valuesIn=function(e){return null==e?[]:Kn(e,Rs(e))},Dt.without=ia,Dt.words=Qs,Dt.wrap=function(e,n){return Fa(mo(n),e)},Dt.xor=aa,Dt.xorBy=sa,Dt.xorWith=ua,Dt.zip=la,Dt.zipObject=function(e,n){return ho(e||[],n||[],_t)},Dt.zipObjectDeep=function(e,n){return ho(e||[],n||[],Xr)},Dt.zipWith=ca,Dt.entries=Ds,Dt.entriesIn=Us,Dt.extend=ws,Dt.extendWith=gs,au(Dt,Dt),Dt.add=vu,Dt.attempt=Zs,Dt.camelCase=js,Dt.capitalize=qs,Dt.ceil=bu,Dt.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ms(r))==r?r:0),t!==n&&(t=(t=ms(t))==t?t:0),or(ms(e),t,r)},Dt.clone=function(e){return ir(e,4)},Dt.cloneDeep=function(e){return ir(e,5)},Dt.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:n)},Dt.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:n)},Dt.conformsTo=function(e,n){return null==n||ar(e,n,Os(n))},Dt.deburr=Vs,Dt.defaultTo=function(e,n){return null==e||e!=e?n:e},Dt.divide=wu,Dt.endsWith=function(e,t,r){e=vs(e),t=io(t);var o=e.length,i=r=r===n?o:or(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Dt.eq=Ha,Dt.escape=function(e){return(e=vs(e))&&G.test(e)?e.replace(W,$n):e},Dt.escapeRegExp=function(e){return(e=vs(e))&&$.test(e)?e.replace(_,"\\$&"):e},Dt.every=function(e,t,r){var o=Wa(e)?Sn:fr;return r&&yi(e,t,r)&&(t=n),o(e,ii(t,3))},Dt.find=ma,Dt.findIndex=Vi,Dt.findKey=function(e,n){return Ln(e,ii(n,3),vr)},Dt.findLast=ya,Dt.findLastIndex=Wi,Dt.findLastKey=function(e,n){return Ln(e,ii(n,3),br)},Dt.floor=gu,Dt.forEach=va,Dt.forEachRight=ba,Dt.forIn=function(e,n){return null==e?e:mr(e,ii(n,3),Rs)},Dt.forInRight=function(e,n){return null==e?e:yr(e,ii(n,3),Rs)},Dt.forOwn=function(e,n){return e&&vr(e,ii(n,3))},Dt.forOwnRight=function(e,n){return e&&br(e,ii(n,3))},Dt.get=Ss,Dt.gt=ja,Dt.gte=qa,Dt.has=function(e,n){return null!=e&&di(e,n,Tr)},Dt.hasIn=xs,Dt.head=Gi,Dt.identity=tu,Dt.includes=function(e,n,t,r){e=Ga(e)?e:Hs(e),t=t&&!r?hs(t):0;var o=e.length;return t<0&&(t=mt(o+t,0)),as(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Dn(e,n,t)>-1},Dt.indexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:hs(t);return o<0&&(o=mt(r+o,0)),Dn(e,n,o)},Dt.inRange=function(e,t,r){return t=ds(t),r===n?(r=t,t=0):r=ds(r),function(e,n,t){return e>=yt(n,t)&&e<mt(n,t)}(e=ms(e),t,r)},Dt.invoke=Ms,Dt.isArguments=Va,Dt.isArray=Wa,Dt.isArrayBuffer=za,Dt.isArrayLike=Ga,Dt.isArrayLikeObject=Ya,Dt.isBoolean=function(e){return!0===e||!1===e||es(e)&&Ar(e)==p},Dt.isBuffer=Ja,Dt.isDate=Ka,Dt.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Dt.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ja(e)||us(e)||Va(e)))return!e.length;var n=fi(e);if(n==w||n==T)return!e.size;if(gi(e))return!Br(e).length;for(var t in e)if(Be.call(e,t))return!1;return!0},Dt.isEqual=function(e,n){return Mr(e,n)},Dt.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Mr(e,t,n,r):!!o},Dt.isError=Xa,Dt.isFinite=function(e){return"number"==typeof e&&dt(e)},Dt.isFunction=Qa,Dt.isInteger=Za,Dt.isLength=_a,Dt.isMap=ns,Dt.isMatch=function(e,n){return e===n||Or(e,n,si(n))},Dt.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,si(t),r)},Dt.isNaN=function(e){return ts(e)&&e!=+e},Dt.isNative=function(e){if(wi(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Dt.isNil=function(e){return null==e},Dt.isNull=function(e){return null===e},Dt.isNumber=ts,Dt.isObject=$a,Dt.isObjectLike=es,Dt.isPlainObject=rs,Dt.isRegExp=os,Dt.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=u},Dt.isSet=is,Dt.isString=as,Dt.isSymbol=ss,Dt.isTypedArray=us,Dt.isUndefined=function(e){return e===n},Dt.isWeakMap=function(e){return es(e)&&fi(e)==C},Dt.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Ar(e)},Dt.join=function(e,n){return null==e?"":ht.call(e,n)},Dt.kebabCase=Ws,Dt.last=Xi,Dt.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?mt(o+i,0):yt(i,o-1)),t==t?function(e,n,t){for(var r=t+1;r--;)if(e[r]===n)return r;return r}(e,t,i):Fn(e,Hn,i,!0)},Dt.lowerCase=zs,Dt.lowerFirst=Gs,Dt.lt=ls,Dt.lte=cs,Dt.max=function(e){return e&&e.length?dr(e,tu,Er):n},Dt.maxBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Er):n},Dt.mean=function(e){return jn(e,tu)},Dt.meanBy=function(e,n){return jn(e,ii(n,2))},Dt.min=function(e){return e&&e.length?dr(e,tu,Pr):n},Dt.minBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Pr):n},Dt.stubArray=pu,Dt.stubFalse=mu,Dt.stubObject=function(){return{}},Dt.stubString=function(){return""},Dt.stubTrue=function(){return!0},Dt.multiply=ku,Dt.nth=function(e,t){return e&&e.length?Hr(e,hs(t)):n},Dt.noConflict=function(){return ln.Mn===this&&(ln.Mn=Ue),this},Dt.noop=su,Dt.now=Sa,Dt.pad=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return qo(Pn(o),t)+e+qo(pn(o),t)},Dt.padEnd=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;return n&&r<n?e+qo(n-r,t):e},Dt.padStart=function(e,n,t){e=vs(e);var r=(n=hs(n))?at(e):0;return n&&r<n?qo(n-r,t)+e:e},Dt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),bt(vs(e).replace(ee,""),n||0)},Dt.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ds(e),t===n?(t=e,e=0):t=ds(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=wt();return yt(e+i*(t-e+on("1e-"+((i+"").length-1))),t)}return zr(e,t)},Dt.reduce=function(e,n,t){var r=Wa(e)?Rn:Wn,o=arguments.length<3;return r(e,ii(n,4),t,o,lr)},Dt.reduceRight=function(e,n,t){var r=Wa(e)?Nn:Wn,o=arguments.length<3;return r(e,ii(n,4),t,o,cr)},Dt.repeat=function(e,t,r){return t=(r?yi(e,t,r):t===n)?1:hs(t),Gr(vs(e),t)},Dt.replace=function(){var e=arguments,n=vs(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Dt.result=function(e,t,r){var o=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Fi(t[o])];a===n&&(o=i,a=r),e=Qa(a)?a.call(e):a}return e},Dt.round=Au,Dt.runInContext=e,Dt.sample=function(e){return(Wa(e)?Kt:Jr)(e)},Dt.size=function(e){if(null==e)return 0;if(Ga(e))return as(e)?at(e):e.length;var n=fi(e);return n==w||n==T?e.size:Br(e).length},Dt.snakeCase=Ys,Dt.some=function(e,t,r){var o=Wa(e)?Bn:eo;return r&&yi(e,t,r)&&(t=n),o(e,ii(t,3))},Dt.sortedIndex=function(e,n){return no(e,n)},Dt.sortedIndexBy=function(e,n,t){return to(e,n,ii(t,2))},Dt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=no(e,n);if(r<t&&Ha(e[r],n))return r}return-1},Dt.sortedLastIndex=function(e,n){return no(e,n,!0)},Dt.sortedLastIndexBy=function(e,n,t){return to(e,n,ii(t,2),!0)},Dt.sortedLastIndexOf=function(e,n){if(null!=e&&e.length){var t=no(e,n,!0)-1;if(Ha(e[t],n))return t}return-1},Dt.startCase=Js,Dt.startsWith=function(e,n,t){return e=vs(e),t=null==t?0:or(hs(t),0,e.length),n=io(n),e.slice(t,t+n.length)==n},Dt.subtract=Eu,Dt.sum=function(e){return e&&e.length?zn(e,tu):0},Dt.sumBy=function(e,n){return e&&e.length?zn(e,ii(n,2)):0},Dt.template=function(e,t,r){var o=Dt.templateSettings;r&&yi(e,t,r)&&(t=n),e=vs(e),t=gs({},t,o,Xo);var i,a,s=gs({},t.imports,o.imports,Xo),u=Os(s),l=Kn(s,u),c=0,f=t.interpolate||ye,d="__p += '",h=Se((t.escape||ye).source+"|"+f.source+"|"+(f===K?ue:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),p="//# sourceURL="+(Be.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++en+"]")+"\n";e.replace(h,function(n,t,r,o,s,u){return r||(r=o),d+=e.slice(c,u).replace(ve,et),t&&(i=!0,d+="' +\n__e("+t+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+n.length,n}),d+="';\n";var m=Be.call(t,"variable")&&t.variable;if(m){if(ae.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(H,""):d).replace(j,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Zs(function(){return Ae(u,p+"return "+d).apply(n,l)});if(y.source=d,Xa(y))throw y;return y},Dt.times=function(e,n){if((e=hs(e))<1||e>u)return[];var t=c,r=yt(e,c);n=ii(n),e-=c;for(var o=Gn(r,n);++t<e;)n(t);return o},Dt.toFinite=ds,Dt.toInteger=hs,Dt.toLength=ps,Dt.toLower=function(e){return vs(e).toLowerCase()},Dt.toNumber=ms,Dt.toSafeInteger=function(e){return e?or(hs(e),-9007199254740991,u):0===e?e:0},Dt.toString=vs,Dt.toUpper=function(e){return vs(e).toUpperCase()},Dt.trim=function(e,t,r){if((e=vs(e))&&(r||t===n))return Yn(e);if(!e||!(t=io(t)))return e;var o=st(e),i=st(t);return bo(o,Qn(o,i),Zn(o,i)+1).join("")},Dt.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.slice(0,ut(e)+1);if(!e||!(t=io(t)))return e;var o=st(e);return bo(o,0,Zn(o,st(t))+1).join("")},Dt.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.replace(ee,"");if(!e||!(t=io(t)))return e;var o=st(e);return bo(o,Qn(o,st(t))).join("")},Dt.truncate=function(e,t){var r=30,o="...";if($a(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?io(t.omission):o}var a=(e=vs(e)).length;if(nt(e)){var s=st(e);a=s.length}if(r>=a)return e;var u=r-at(o);if(u<1)return o;var l=s?bo(s,0,u).join(""):e.slice(0,u);if(i===n)return l+o;if(s&&(u+=l.length-u),os(i)){if(e.slice(u).search(i)){var c,f=l;for(i.global||(i=Se(i.source,vs(le.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;l=l.slice(0,d===n?u:d)}}else if(e.indexOf(io(i),u)!=u){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+o},Dt.unescape=function(e){return(e=vs(e))&&z.test(e)?e.replace(V,lt):e},Dt.uniqueId=function(e){var n=++Pe;return vs(e)+n},Dt.upperCase=Ks,Dt.upperFirst=Xs,Dt.each=va,Dt.eachRight=ba,Dt.first=Gi,au(Dt,(yu={},vr(Dt,function(e,n){Be.call(Dt.prototype,n)||(yu[n]=e)}),yu),{chain:!1}),Dt.VERSION="4.17.23",En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dt[e].placeholder=Dt}),En(["drop","take"],function(e,t){qt.prototype[e]=function(r){r=r===n?1:mt(hs(r),0);var o=this.Fn&&!t?new qt(this):this.clone();return o.Fn?o.Un=yt(r,o.Un):o.Hn.push({size:yt(r,c),type:e+(o.Ln<0?"Right":"")}),o},qt.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),En(["filter","map","takeWhile"],function(e,n){var t=n+1,r=1==t||3==t;qt.prototype[e]=function(e){var n=this.clone();return n.Dn.push({iteratee:ii(e,3),type:t}),n.Fn=n.Fn||r,n}}),En(["head","last"],function(e,n){var t="take"+(n?"Right":"");qt.prototype[e]=function(){return this[t](1).value()[0]}}),En(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");qt.prototype[e]=function(){return this.Fn?new qt(this):this[t](1)}}),qt.prototype.compact=function(){return this.filter(tu)},qt.prototype.find=function(e){return this.filter(e).head()},qt.prototype.findLast=function(e){return this.reverse().find(e)},qt.prototype.invokeMap=Yr(function(e,n){return"function"==typeof e?new qt(this):this.map(function(t){return Cr(t,e,n)})}),qt.prototype.reject=function(e){return this.filter(Pa(ii(e)))},qt.prototype.slice=function(e,t){e=hs(e);var r=this;return r.Fn&&(e>0||t<0)?new qt(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},qt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qt.prototype.toArray=function(){return this.take(c)},vr(qt.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Dt[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Dt.prototype[t]=function(){var t=this.On,s=o?[1]:arguments,u=t instanceof qt,l=s[0],c=u||Wa(t),f=function(e){var n=i.apply(Dt,On([e],s));return o&&d?n[0]:n};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.Nn,h=!!this.Rn.length,p=a&&!d,m=u&&!h;if(!a&&c){t=m?t:new qt(this);var y=e.apply(t,s);return y.Rn.push({func:da,args:[f],thisArg:n}),new jt(y,d)}return p&&m?e.apply(this,s):(y=this.thru(f),p?o?y.value()[0]:y.value():y)})}),En(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ie[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dt.prototype[e]=function(){var e=arguments;if(r&&!this.Nn){var o=this.value();return n.apply(Wa(o)?o:[],e)}return this[t](function(t){return n.apply(Wa(t)?t:[],e)})}}),vr(qt.prototype,function(e,n){var t=Dt[n];if(t){var r=t.name+"";Be.call(It,r)||(It[r]=[]),It[r].push({name:n,func:t})}}),It[Do(n,2).name]=[{name:"wrapper",func:n}],qt.prototype.clone=function(){var e=new qt(this.On);return e.Rn=xo(this.Rn),e.Ln=this.Ln,e.Fn=this.Fn,e.Dn=xo(this.Dn),e.Un=this.Un,e.Hn=xo(this.Hn),e},qt.prototype.reverse=function(){if(this.Fn){var e=new qt(this);e.Ln=-1,e.Fn=!0}else(e=this.clone()).Ln*=-1;return e},qt.prototype.value=function(){var e=this.On.value(),n=this.Ln,t=Wa(e),r=n<0,o=t?e.length:0,i=function(e,n,t){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":n-=a;break;case"take":n=yt(n,e+a);break;case"takeRight":e=mt(e,n-a)}}return{start:e,end:n}}(0,o,this.Hn),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.Dn,f=c.length,d=0,h=yt(u,this.Un);if(!t||!r&&o==u&&h==u)return co(e,this.Rn);var p=[];e:for(;u--&&d<h;){for(var m=-1,y=e[l+=n];++m<f;){var v=c[m],b=v.iteratee,w=v.type,g=b(y);if(2==w)y=g;else if(!g){if(1==w)continue e;break e}}p[d++]=y}return p},Dt.prototype.at=ha,Dt.prototype.chain=function(){return fa(this)},Dt.prototype.commit=function(){return new jt(this.value(),this.Nn)},Dt.prototype.next=function(){this.Pn===n&&(this.Pn=fs(this.value()));var e=this.Bn>=this.Pn.length;return{done:e,value:e?n:this.Pn[this.Bn++]}},Dt.prototype.plant=function(e){for(var t,r=this;r instanceof Ht;){var o=Ui(r);o.Bn=0,o.Pn=n,t?i.On=o:t=o;var i=o;r=r.On}return i.On=e,t},Dt.prototype.reverse=function(){var e=this.On;if(e instanceof qt){var t=e;return this.Rn.length&&(t=new qt(this)),(t=t.reverse()).Rn.push({func:da,args:[$i],thisArg:n}),new jt(t,this.Nn)}return this.thru($i)},Dt.prototype.toJSON=Dt.prototype.valueOf=Dt.prototype.value=function(){return co(this.On,this.Rn)},Dt.prototype.first=Dt.prototype.head,rn&&(Dt.prototype[rn]=function(){return this}),Dt}();fn?((fn.exports=ct).Mn=ct,cn.Mn=ct):ln.Mn=ct}.call(Sp.exports)),Sp.exports);const Cp=Jd()?.webAppUrl||"https://nft.keyring.app";function Ip(e){const n=e.poolDayData?.[0];return!!n&&0!==parseFloat(n.volumeToken0||"0")&&0!==parseFloat(n.volumeToken1||"0")&&0!==parseFloat(n.volumeUSD||"0")}const Mp={ethereum:"https://gateway.thegraph.com/api/subgraphs/id/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV",arbitrum:"https://gateway.thegraph.com/api/subgraphs/id/FbCGRftH4a3yZugY7TnbYgPJVEv2LvMT6oF1fxPe9aJM",polygon:"https://gateway.thegraph.com/api/subgraphs/id/3hCPRGf4z88VC5rsBKU5AA9FBBq5nF3jbKJG7VZCbhjm",bsc:"https://gateway.thegraph.com/api/subgraphs/id/GcKPSgHoY42xNYVAkSPDhXSzi6aJDRQSKqBSXezL47gV",base:"https://gateway.thegraph.com/api/subgraphs/id/HMuAwufqZ1YCRmzL2SfHTVkzZovC9VL2UAKhjvRqKiR1",optimism:"https://gateway.thegraph.com/api/subgraphs/id/Cghf4LfVqPiFw6fp6Y5X5Ubc8UpmUhSfJL82zwiBFLaj",avalanche:"https://gateway.thegraph.com/api/subgraphs/id/GVH9h9KZ9CqheUEL93qMbq7QwgoBu32QXQDPR6bev4Eo"},Op={eth:"ethereum",ethereum:"ethereum",mainnet:"ethereum",1:"ethereum",arb:"arbitrum",arbitrum:"arbitrum",42161:"arbitrum",polygon:"polygon",matic:"polygon",137:"polygon",bsc:"bsc",bnb:"bsc",56:"bsc",base:"base",8453:"base",optimism:"optimism",10:"optimism",avax:"avalanche",avalanche:"avalanche",43114:"avalanche"},Rp={ethereum:1,arbitrum:42161,polygon:137,bsc:56,base:8453,optimism:10,avalanche:43114},Np={100:.01,500:.05,3e3:.3,1e4:1};function Bp(e){return e&&Op[e.toLowerCase()]||"ethereum"}function Pp(e){const n=e.toLowerCase();return n in Op||n in Mp}async function Lp(e,n,t={},r){const o=function(e){const n=Bp(e);return Mp[n]||null}(e);if(!o)throw new Error(`No subgraph available for chain: ${e}`);const i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer 4c67ac7a75b21befbd28dc9120c709f1"},body:JSON.stringify({query:n,variables:t}),signal:r});if(!i.ok)throw new Error(`Subgraph query failed: HTTP ${i.status}`);const a=await i.json();if(a.errors)throw new Error(`Subgraph error: ${a.errors[0]?.message||"Unknown"}`);return a.data}function Fp(e){return!isFinite(e)||isNaN(e)||e>1e11?0:e}function Dp(e,n){const t=Number(e.feeTier||0),r=Np[t]??t/1e4,o=Fp(parseFloat(e.totalValueLockedUSD||"0")),i=e.poolDayData?.[0],a=parseFloat(i?.volumeUSD||"0"),s=parseFloat(i?.feesUSD||"0");let u=null;return o>0&&s>0&&(u=parseFloat((365*s*100/o).toFixed(2))),{pair:`${e.token0.symbol}/${e.token1.symbol}`,poolAddress:e.id,token0:{symbol:e.token0.symbol,address:e.token0.id},token1:{symbol:e.token1.symbol,address:e.token1.id},tvl:o,volumePastDay:a,apr:u,fee:r,liquidity:e.liquidity||"0",chain:Bp(n)}}let Up=null,Hp=0;const jp={ethereum:"ethereum","arbitrum one":"arbitrum",arbitrum:"arbitrum",polygon:"polygon",bsc:"bsc",base:"base",optimism:"optimism","avalanche c-chain":"avalanche",avalanche:"avalanche"};async function qp(){const e=Date.now();if(Up&&e-Hp<3e5)return Up;try{const n=await fetch("https://yields.llama.fi/pools");if(!n.ok)throw new Error(`DefiLlama HTTP ${n.status}`);const t=((await n.json()).data||[]).filter(e=>"uniswap-v3"===e.project);return Up=t,Hp=e,t}catch(n){return Up??[]}}function Vp(e){if(!e)return null;const n=e.match(/^([\d.]+)%/);return n?Math.round(1e4*parseFloat(n[1])):null}function Wp(e,n){return n.length?e.map(e=>{const t=e.chain.toLowerCase(),r=Math.round(1e4*e.fee),o=e.token0.address.toLowerCase(),i=e.token1.address.toLowerCase(),a=n.filter(e=>jp[e.chain.toLowerCase()]===t);let s=a.find(e=>{if(!e.underlyingTokens||e.underlyingTokens.length<2)return!1;const n=e.underlyingTokens.map(e=>e.toLowerCase());if(!n.includes(o)||!n.includes(i))return!1;const t=Vp(e.poolMeta);return null===t||t===r});if(!s){const n=[e.token0.symbol.toUpperCase(),e.token1.symbol.toUpperCase()].sort().join("-");s=a.find(e=>{if([...e.symbol.split("-").map(e=>e.toUpperCase())].sort().join("-")!==n)return!1;const t=Vp(e.poolMeta);return null===t||t===r})}if(s){const n=s.apyBase??s.apyBase??s.apy??null,t=s.tvlUsd??null,r=s.volumeUsd1d??null;return{...e,...null!==n&&{apr:parseFloat(n.toFixed(2))},...null!==t&&{tvl:Fp(t)},...null!==r&&{volumePastDay:Fp(r)}}}return e}):e}async function zp(e){const{tokens:n,chain:t,sortBy:r,filters:o,signal:i}=e,a=Bp(t),s=n.map(e=>{const n=e.toUpperCase(),t=/* @__PURE__ */new Set([n]);return n.startsWith("W")||t.add("W"+n),n.startsWith("W")&&n.length>1&&t.add(n.slice(1)),[...t]}),u=['totalValueLockedUSD_gt: "10000"','liquidity_gt: "0", volumeUSD_gt: "0"'];o?.feeTier&&u.push(`feeTier: "${o.feeTier}"`);let l="totalValueLockedUSD";"volume"===r?l="volumeUSD":"fee"===r?l="feeTier":"liquidity"===r&&(l="liquidity");const c="fee"===r?"asc":"desc",f=e=>1===e.length?`symbol: "${e[0]}"`:`symbol_in: [${e.map(e=>`"${e}"`).join(", ")}]`,d=(e,n)=>`{\n pools(\n first: ${n}\n orderBy: ${l}\n orderDirection: ${c}\n where: { ${[...u,...e].join(", ")} }\n ) {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }`;let h;if(s.length>0){const e=100;let n,t;s.length>=2?(n=d([`token0_: { ${f(s[0])} }`,`token1_: { ${f(s[1])} }`],e),t=d([`token0_: { ${f(s[1])} }`,`token1_: { ${f(s[0])} }`],e)):(n=d([`token0_: { ${f(s[0])} }`],e),t=d([`token1_: { ${f(s[0])} }`],e));const[r,o]=await Promise.allSettled([Lp(a,n,{},i),Lp(a,t,{},i)]),u="fulfilled"===r.status?(r.value?.pools||[]).filter(Ip).map(e=>Dp(e,a)):[],l="fulfilled"===o.status?(o.value?.pools||[]).filter(Ip).map(e=>Dp(e,a)):[],c=new Set(u.map(e=>e.poolAddress));h=[...u,...l.filter(e=>!c.has(e.poolAddress))]}else{const e=await Lp(a,d([],100),{},i);h=(e?.pools||[]).filter(Ip).map(e=>Dp(e,a))}const p=await qp();return p.length>0&&(h=Wp(h,p)),o?.minTVL&&(h=h.filter(e=>e.tvl>=o.minTVL)),o?.maxTVL&&(h=h.filter(e=>e.tvl<=o.maxTVL)),o?.minAPR&&(h=h.filter(e=>null!==e.apr&&e.apr>=o.minAPR)),o?.maxAPR&&(h=h.filter(e=>null!==e.apr&&e.apr<=o.maxAPR)),"apr"===r?h.sort((e,n)=>(n.apr??0)-(e.apr??0)):"liquidity"===r&&h.sort((e,n)=>{const t=BigInt(n.liquidity||"0")-BigInt(e.liquidity||"0");return t>0n?1:t<0n?-1:0}),h}async function Gp(e){const{poolId:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n position(id: "${n}") {\n pool {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }\n }`,a=await Lp(o,i,{},r);return a?.position?.pool?Dp(a.position.pool,o):null}async function Yp(e){const{chain:n,signal:t}=e,r=Bp(n),o=await Lp(r,'{\n pools(\n first: 100\n orderBy: volumeUSD\n orderDirection: desc\n where: { totalValueLockedUSD_gt: "10000", liquidity_gt: "0", volumeUSD_gt: "0" }\n ) {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }',{},t);return(o?.pools||[]).filter(Ip).map(e=>Dp(e,r))}const Jp=new Vh(Cp),Kp=[{alias:"op",token:"OP",chain:"optimism"},{alias:"arb",token:"ARB",chain:"arbitrum"},{alias:"eth",token:"ETH",chain:"ethereum"},{alias:"bnb",token:"BNB",chain:"bsc"},{alias:"matic",token:"MATIC",chain:"polygon"}];function Xp(e){return e instanceof Error&&("AbortError"===e.name||e.message.toLowerCase().includes("aborted")||e.message.toLowerCase().includes("canceled"))}function Qp(e,n){return new Promise((t,r)=>{if(n?.aborted)return void r(new Error("Aborted"));const o=setTimeout(()=>{n?.removeEventListener("abort",i),t()},e),i=()=>{clearTimeout(o),n?.removeEventListener("abort",i),r(new Error("Aborted"))};n?.addEventListener("abort",i,{once:!0})})}function Zp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _p(e,n,t){const r=Zp(n),o=Zp(t);return new RegExp(`\\b(?:on|in|at|from|to|across|via|using|tr[eê]n|tai|tại)\\s+${r}\\b`,"i").test(e)||new RegExp(`\\b(?:on|in|at|from|to|across|via|using|tr[eê]n|tai|tại)\\s+${o}\\b`,"i").test(e)||new RegExp(`\\b${r}\\s+(?:chain|network)\\b`,"i").test(e)||new RegExp(`\\b${o}\\s+(?:chain|network)\\b`,"i").test(e)}const $p=Jd()?.linkAddLiquidity,em=`You are a knowledgeable DeFi assistant helping users find the best liquidity pools.\n\nYou will receive structured pool data and must answer the user's question in a helpful, natural, conversational tone — like an expert friend explaining DeFi, not a robot listing data.\n\nGuidelines:\n- Respond in the exact language of LANGUAGE.\n- **FOLLOW-UP / CONTINUATION**: If the user's question is a short follow-up (e.g., "yes", "ok", "sure", "tell me more", "details", "go ahead"), look at the CONVERSATION HISTORY to understand what they are responding to. Provide a relevant, detailed follow-up answer based on the last assistant message. NEVER say "too vague" or ask for clarification when history clearly shows the context.\n- Use ONLY the provided pool data. Never invent or estimate numbers.\n- Intelligently select and highlight the most relevant pools for the user's question. You don't need to list all pools — pick the ones that best answer what they asked.\n- When recommending pools, briefly explain WHY they stand out (e.g. high APR, deep liquidity, low fee, well-known pair).\n- Include key metrics naturally in your answer: TVL, volume past day, APR, fee tier.\n- Use the provided uniswapUrl for each pool you mention. Do NOT construct URLs yourself.\n- If position data is available, include the provided uniswapPositionUrl for each position.\n- If UNSUPPORTED_CHAINS is present (not "none"), respond ONLY with a notice informing the user that those chain(s) are not currently supported for pool data queries (translate this notice naturally into LANGUAGE). Then list the SUPPORTED_CHAINS so the user knows which chains they can query. Do NOT add any other information, pool data, or suggestions after this notice.\n- If POOLS_FOUND is 0 and POSITIONS_FOUND is 0 and COINPOOL_PAIRS_FOUND is 0 and UNSUPPORTED_CHAINS is "none", start your response with the UNISWAP_V3_NOTICE (provided below, already translated to LANGUAGE), then continue with your helpful response.\n- If POOLS_FOUND is 0 but COINPOOL_PAIRS_FOUND > 0, do NOT show the UNISWAP_V3_NOTICE. Instead, answer naturally using the CoinPool data available.\n- When POOLS_FOUND > 0 (i.e. pool data from Subgraph is shown), prepend the phrase "According to the latest data from Subgraph Uniswap V3 " (translated naturally into LANGUAGE) at the very beginning of your response, before any other content. Keep the word "Subgraph" as-is (do not translate it).\n- If no suitable data is available, acknowledge it naturally and suggest how to refine the search.\n- Keep the response focused and easy to read. Use markdown (bold, bullet points) to structure when helpful, but keep the tone warm and human.\n${$p&&`- If the user mentions adding liquidity / adding a pool / adding a position (including phrases like "add liquidity", "add pool", "add position", "create pool", "create pair", "thêm thanh khoản", "thêm pool", "thêm position"), keep your normal answer content and append this exact link at the end of the response: ${$p}`}\n- Never output raw JSON or data dumps.\n\n## CoinPool Data Rules (COINPOOL_PAIRS section)\nCOINPOOL_PAIRS contains liquidity positions from the CoinPool platform, each with a SPECIFIC price range.\n\n**CRITICAL: CoinPool APR is NOT the overall pool APR.** It is the APR earned ONLY within that specific price range. You MUST always show the price range together with the APR. Never present CoinPool APR as if it were the general pool APR — this would mislead users.\n\n### When to use POOL_DATA vs COINPOOL_PAIRS:\n- **POOL_DATA** (from Uniswap subgraph): Use for general pool info — TVL, volume past day, overall pool APR, fee tier. This is the default data source.\n- **COINPOOL_PAIRS**: Use ONLY when the user specifically asks about price ranges, concentrated liquidity strategies, or which price range to choose. Each entry represents a specific price range with its own APR.\n\n### Display rules:\n1. **User asks general pool info** (e.g. "show ETH/USDC pools") → Show POOL_DATA. Mention CoinPool ranges only briefly as additional info if available.\n2. **User asks about price ranges / which range to pick** (e.g. "what price range should I use?", "gợi ý khoảng giá", "best range for ETH/USDC") → Show CoinPool ranges sorted by APR. Clearly label: "APR for this price range: X%" with the min–max prices.\n3. **User provides a specific price range** → Check if any CoinPool entry covers that range. If yes, show its APR. If no, suggest the range with the highest APR from CoinPool data.\n4. **Always format CoinPool APR as**: "APR **X%** (for range: minPrice – maxPrice baseToken/quoteToken)" — never show APR alone without its range.\n5. **Best range suggestion**: When suggesting, pick the entry with the highest APR and explain why (higher concentration = higher returns but narrower range = higher risk of going out of range).`;function nm(e){return 0===e?"$0":e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toFixed(2)}`}const tm={ethereum:"ethereum",arbitrum:"arbitrum",polygon:"polygon",bsc:"bnb",base:"base",optimism:"optimism",avalanche:"avalanche"};async function rm(e,n,t){const r=om(n);try{const a=e.data.pools.length,s=e.data.positions?.length??0,u=e.data.coinpoolPairs?.length??0;let l="";if(e.chatHistory&&e.chatHistory.length>0){l="\n\nCONVERSATION HISTORY (last messages for context):\n";for(const n of e.chatHistory){l+=`${"user"===n.role?"User":"Assistant"}: ${n.content}\n`}l+="---"}const c=`${em}${l}\n\nLANGUAGE: ${n||"en"}\nINTENT: ${e.parsed.intent}\nQUESTION: ${e.question}\nPOOLS_FOUND: ${a}\nPOSITIONS_FOUND: ${s}\nCOINPOOL_PAIRS_FOUND: ${u}\nUNSUPPORTED_CHAINS: ${e.parsed.unsupportedChains&&e.parsed.unsupportedChains.length>0?e.parsed.unsupportedChains.join(", "):"none"}\nSUPPORTED_CHAINS: ${Object.keys(Mp).join(", ")}\nUNISWAP_V3_NOTICE: ${r.uniswapV3Only}\n\nPARSED_QUERY:\n${JSON.stringify({...e.parsed,limit:void 0},null,2)}\n\nPOOL_DATA:\n${o=[...e.data.pools].sort((e,n)=>(n.apr??0)-(e.apr??0)||n.tvl-e.tvl).slice(0,100),JSON.stringify(o.map(e=>{return{...e,tvl:nm(e.tvl),volumePastDay:nm(e.volumePastDay),apr:null!==e.apr?`${e.apr}%`:null,liquidity:e.liquidity,uniswapUrl:(n=e,`https://app.uniswap.org/explore/pools/${tm[n.chain]||n.chain}/${n.poolAddress}`)};var n}),null,2)}\n${e.data.positions&&e.data.positions.length>0?`\n\nUSER_POSITIONS:\n${JSON.stringify(e.data.positions.slice(0,100).map(e=>{return{...e,uniswapPositionUrl:(n=e,`https://app.uniswap.org/positions/v3/${tm[n.chain]||n.chain}/${n.positionId}`)};var n}),null,2)}`:""}\n${e.data.coinpoolPairs&&e.data.coinpoolPairs.length>0?(()=>{const n=[...e.data.coinpoolPairs].sort((e,n)=>(n.apr??-1/0)-(e.apr??-1/0));return`\n\nCOINPOOL_PAIRS (price-range-specific data from CoinPool — APR here is per-range, NOT overall pool APR):\nBest range APR: ${null!==n[0]?.apr?n[0].apr.toFixed(2)+"%":"N/A"}\n${t=e.data.coinpoolPairs,[...t].sort((e,n)=>(n.apr??-1/0)-(e.apr??-1/0)).slice(0,10).map((e,n)=>`#${n+1} ${e.pair} | pool: ${e.poolId} | fee: ${e.fee} | Range APR : ${null!==e.aprAvg?e.aprAvg.toFixed(2)+"%":"N/A"} | token prices: ${nm(e.token0Price)} / ${nm(e.token1Price)} | price range (${e.priceRange.baseToken}/${e.priceRange.quoteToken}): ${e.priceRange.minPrice} – ${e.priceRange.maxPrice} (current: ${e.priceRange.currentPrice})`).join("\n")}`;var t})():""}\n\nGenerate the final response for the end user now.`,f=5,d=1e3;let h=null,p=null;for(let e=1;e<=f;e++)try{h=await Jp.post("api/moralis-cortex/proxy/chat",{prompt:c,model:"gpt-4.1-mini",stream:!1},{headers:{Accept:"application/json","Content-Type":"application/json"},signal:t}),p=null;break}catch(i){if(p=i,Xp(i))throw i;e<f&&await Qp(d,t)}if(p)throw p;const m=h?.data?.text?.trim();if(m)return m}catch(i){}var o;return function(e,n){const t=e.data?.pools||[],r=e.data?.positions||[],o=e.data?.coinpoolPairs||[],i=om(n);return 0===t.length&&0===r.length&&0===o.length?e.parsed.unsupportedChains&&e.parsed.unsupportedChains.length>0?i.unsupportedChain:`${i.uniswapV3Only} No pool data found for this query.`:["I cannot generate the final AI response right now. Here is the raw pool data:","```json",JSON.stringify({intent:e.parsed.intent,tokens:e.parsed.tokens,chains:e.parsed.chains,pools:t},null,2),"```"].join("\n")}(e,n)}function om(e){const n=e||"en";return{unsupportedChain:V("poolUnsupportedChain",n),uniswapV3Only:V("poolUniswapV3Only",n)}}async function im(e){const{question:n,language:t,currentChain:r,walletAddress:o,chatHistory:i,signal:a}=e,s=await async function(e,n,t){try{let o="";if(t&&t.length>0){o="\n\n## CONVERSATION HISTORY:\n";for(const e of t)o+=`${"user"===e.role?"User":"Assistant"}: ${e.content}\n`;o+="---\n"}const i=`You are a DeFi Pool Query Parser. You understand ALL languages.\n\nConvert the user question into a structured JSON object. Return ONLY valid JSON — no explanation, no markdown.\n\n## OUTPUT FORMAT\n{\n "intent": string,\n "tokens": string[],\n "chains": string[],\n "poolAddress": string | null,\n "poolId": string | null,\n "walletAddress": string | null,\n "toAddress": string | null,\n "filters": {\n "minTVL": number | null,\n "maxTVL": number | null,\n "minAPR": number | null,\n "maxAPR": number | null,\n "feeTier": number | null\n },\n "sortBy": string | null,\n "limit": number | null\n}\n\n## INTENT TYPES\n- "search_pool" — find/list/show pools, optionally filtered by token(s) or chain\n- "best_pool" — best pool by TVL, volume, etc.\n- "compare_pool" — compare multiple pools or fee tiers\n- "pool_detail" — specific pool by address, pool id, or exact token pair\n- "trending_pool" — hot/trending/most active pools\n- "new_pool" — recently created pools\n- "high_apr_pool" — highest APR/yield pools\n- "low_fee_pool" — lowest fee pools\n- "safe_pool" — high TVL/low risk/stable pools\n- "general_pool_info" — educational questions (what is a pool, how pools work)\n- "user_positions" — user's own LP positions ("my pools", "my positions", "my liquidity")\n- "position_detail" — specific position by numeric id ("position 962961", "position id 12345", "tell me about position 962961")\n- "send_position" — user wants to send/transfer their LP position NFT to another address ("send position 12345 to 0x...", "transfer my position", "gửi position", "chuyển LP position")\n- "unknown" — truly unrelated to pools\n\n## TOKEN EXTRACTION\n- Extract token symbols mentioned: ETH, USDC, BTC, LINK, ARB, OP, etc.\n- Normalize wrapped variants: WETH→ETH, WBTC→BTC\n- "stablecoin pool" → tokens: ["USDC", "USDT"]\n- No tokens mentioned → tokens: []\n- One token mentioned → tokens: ["TOKEN"] (single-token search is valid)\n- Two tokens mentioned → tokens: ["TOKEN_A", "TOKEN_B"]\n\n## CHAIN vs TOKEN DISAMBIGUATION (CRITICAL)\nSome short names can be EITHER a chain name OR a token symbol.\nAmbiguous aliases: OP, ARB, ETH, BNB, MATIC\n\n**Rule: Use chain only with EXPLICIT chain context.**\nExplicit chain context = prepositions like "on", "in", "from", "across", "trên", "tại" + alias, OR alias + "chain"/"network".\n\nExamples:\n- "show me pool OP" → tokens: ["OP"], chains: [] (OP = token)\n- "show me pools on OP" → tokens: [], chains: ["optimism"] (on OP = chain)\n- "find ETH pools" → tokens: ["ETH"], chains: [] (ETH = token)\n- "find pools on ETH" → tokens: [], chains: ["ethereum"] (on ETH = chain)\n- "OP/USDC pool on ARB" → tokens: ["OP", "USDC"], chains: ["arbitrum"] (OP = token, on ARB = chain)\n- "show me pools on OP and ARB" → tokens: [], chains: ["optimism", "arbitrum"]\n- "ETH/USDC trên Arbitrum" → tokens: ["ETH", "USDC"], chains: ["arbitrum"]\n\nChain canonical names: ethereum, arbitrum, polygon, bsc, base, optimism, avalanche\n\n**UNSUPPORTED CHAIN HANDLING**: If the user mentions a chain NOT in the list above (e.g. solana, fantom, cronos, sui, tron, near, etc.), you MUST still include it in the "chains" array exactly as mentioned. Do NOT silently ignore unsupported chains. The system will detect and notify the user.\n\n## SORT RULES\n- "best", "top", "largest", "highest TVL" → "tvl"\n- "most active", "highest volume" → "volume"\n- "highest yield", "best APR", "largest APR" → "apr"\n- "cheapest", "lowest fee" → "fee"\n- "highest liquidity", "most liquid", "deepest liquidity" → "liquidity"\n- Not specified → null\n\n## LIMIT\n- Default: 5 | "top 10" → 10 | "top 3" → 3 | Max: 20\n\n## ADDRESS / ID DETECTION\n- Hex address (0x...) with pool context → poolAddress, intent "pool_detail"\n- Numeric id ("pool id 962961", "position 12345", "position id 962961") → poolId as string, intent "position_detail"\n- "my pools"/"my positions"/"my liquidity" → intent "user_positions", walletAddress null\n- Hex address with position context → walletAddress, intent "user_positions"\n- "send/transfer position <id> to <0x...>" → poolId as string, toAddress as the recipient 0x address, intent "send_position"\n- "send position" / "transfer my position" without an id → poolId: null, toAddress: null, intent "send_position"\n\n## user_positions CHAIN RULES\n- No chain specified → chains: [] (system uses connected chain)\n- Chains specified → add all to chains array\n- "all chains" → chains: []\n\n## EXAMPLES\n"Show me ETH/USDC pools on Base" → {"intent":"search_pool","tokens":["ETH","USDC"],"chains":["base"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pool OP" → {"intent":"search_pool","tokens":["OP"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pools on OP" → {"intent":"search_pool","tokens":[],"chains":["optimism"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"OP/USDC pool on ARB" → {"intent":"search_pool","tokens":["OP","USDC"],"chains":["arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"What are trending pools?" → {"intent":"trending_pool","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"volume","limit":5}\n"Best pool for ETH with high APR" → {"intent":"high_apr_pool","tokens":["ETH"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"apr","limit":5}\n"Pool la gi?" → {"intent":"general_pool_info","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":5}\n"Show me pools" → {"intent":"search_pool","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"tvl","limit":5}\n"Show my pools" → {"intent":"user_positions","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Pool của tôi trên Arbitrum" → {"intent":"user_positions","tokens":[],"chains":["arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Show my liquidity on OP and ARB" → {"intent":"user_positions","tokens":[],"chains":["optimism","arbitrum"],"poolAddress":null,"poolId":null,"walletAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":20}\n"Tell me about pool id 962961" → {"intent":"position_detail","tokens":[],"chains":[],"poolAddress":null,"poolId":"962961","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Position 12345 on Arbitrum" → {"intent":"position_detail","tokens":[],"chains":["arbitrum"],"poolAddress":null,"poolId":"12345","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"find ETH pools" → {"intent":"search_pool","tokens":["ETH"],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":"tvl","limit":5}\n"Send position 962961 to 0xAbC123..." → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":"962961","walletAddress":null,"toAddress":"0xAbC123...","filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Transfer my LP position to 0xdef..." → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":"0xdef...","filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Gửi position 12345" → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":"12345","walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n"Send position" → {"intent":"send_position","tokens":[],"chains":[],"poolAddress":null,"poolId":null,"walletAddress":null,"toAddress":null,"filters":{"minTVL":null,"maxTVL":null,"minAPR":null,"maxAPR":null,"feeTier":null},"sortBy":null,"limit":1}\n\n## FOLLOW-UP / CONTINUATION DETECTION (CRITICAL)\nIf the user question is vague, short, or cannot stand alone (e.g., "yes", "show me ranges", "tell me more", "details", "go ahead", "the first one", "what about fees?", "show me ranges or get help adding liquidity"), you MUST:\n1. Look at the CONVERSATION HISTORY provided below the question.\n2. Extract tokens, chains, and intent from the previous messages (especially the last assistant message and the last user question that mentioned specific tokens/pools).\n3. Use that context to fill in tokens, chains, and intent — as if the user explicitly repeated their earlier query with the follow-up refinement.\n4. Example: If history shows user asked about "WBTC/ETH pools" and now says "show me ranges" → tokens: ["BTC", "ETH"], intent: appropriate intent for the follow-up.\n5. NEVER return tokens: [] for a follow-up when history clearly shows which tokens were discussed.\n\n## RULES\n- ALWAYS return valid JSON\n- NEVER hallucinate addresses\n- Detect intent from ANY language\n- When in doubt between intents, prefer "search_pool" over "unknown"${o}\n\n---\nUser question: "${e}"`;let a=null,s=null;for(let e=1;e<=5;e++)try{a=await Jp.post("/api/gemini-cortex/proxy",{model:"gemini-2.5-flash-lite",data:{contents:[{parts:[{text:i}]}],generationConfig:{responseMimeType:"application/json"}}},{signal:n}),s=null;break}catch(r){if(s=r,Xp(r))throw r;e<5&&await Qp(1e3,n)}if(!a)throw s instanceof Error?s:new Error("Pool parser API failed after retries");const u=a?.data?.data?.candidates?.[0]?.content?.parts?.[0]?.text||a?.data?.candidates?.[0]?.content?.parts?.[0]?.text;if(!u)return null;let l=u.trim();l.startsWith("```json")?l=l.replace(/^```json\s*/,"").replace(/\s*```$/,""):l.startsWith("```")&&(l=l.replace(/^```\s*/,"").replace(/\s*```$/,""));const c=l.match(/\{[\s\S]*\}/);if(!c)return null;const f=function(e,n){const t=e.toLowerCase();if("user_positions"!==n.intent)for(const{alias:o,token:i,chain:a}of Kp)new RegExp(`\\b${Zp(o)}\\b`,"i").test(t)&&(_p(t,o,a)?(n.chains.includes(a)||n.chains.push(a),n.tokens=n.tokens.filter(e=>e.toUpperCase()!==i)):(n.tokens.some(e=>e.toUpperCase()===i)||n.tokens.push(i),n.chains=n.chains.filter(e=>e!==a)));const r=n.chains.filter(e=>!Pp(e));return r.length>0&&(n.unsupportedChains=r),n.tokens=[...new Set(n.tokens.map(e=>e.toUpperCase()))],n.chains=[...new Set(n.chains.filter(e=>Pp(e)).map(e=>Bp(e)))],n}(e,JSON.parse(c[0]));return(!f.limit||f.limit<1)&&(f.limit=5),f.limit>20&&(f.limit=20),Array.isArray(f.chains)||(f.chains=[]),void 0===f.poolId&&(f.poolId=null),void 0===f.walletAddress&&(f.walletAddress=null),void 0===f.toAddress&&(f.toAddress=null),f}catch(r){return null}}(n,a,i);if(!s)return null;if("unknown"===s.intent&&(s.intent="general_pool_info"),o&&!s.walletAddress&&(s.walletAddress=o),"send_position"===s.intent)return{response:"",parsed:s,pools:[],positions:[],sendPositionData:{positionId:s.poolId||""}};if(s.unsupportedChains&&s.unsupportedChains.length>0&&0===s.chains.length)return{response:om(t).unsupportedChain,parsed:s,pools:[],positions:[]};let u,l=[],c=[];if("position_detail"===s.intent&&s.poolId){const e=!(s.chains&&s.chains.length>0)&&s.unsupportedChains&&s.unsupportedChains.length>0?[]:s.chains&&s.chains.length>0?s.chains:r&&Pp(r)?[r]:["ethereum"],n=await Promise.allSettled(e.map(e=>async function(e){const{positionId:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n position(id: "${n}") {\n id\n liquidity\n depositedToken0\n depositedToken1\n withdrawnToken0\n withdrawnToken1\n collectedFeesToken0\n collectedFeesToken1\n pool {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }\n }`,a=await Lp(o,i,{},r);if(!a?.position?.pool)return null;const s=a.position,u=Dp(s.pool,o),l=Number(s.pool?.feeTier||0),c=Np[l]??l/1e4;return{position:{positionId:s.id,poolAddress:s.pool?.id||"",pair:`${s.pool?.token0?.symbol}/${s.pool?.token1?.symbol}`,token0:{symbol:s.pool?.token0?.symbol||"",address:s.pool?.token0?.id||""},token1:{symbol:s.pool?.token1?.symbol||"",address:s.pool?.token1?.id||""},fee:c,chain:o,liquidity:s.liquidity,depositedToken0:s.depositedToken0,depositedToken1:s.depositedToken1,withdrawnToken0:s.withdrawnToken0,withdrawnToken1:s.withdrawnToken1,collectedFeesToken0:s.collectedFeesToken0,collectedFeesToken1:s.collectedFeesToken1},pool:u}}({positionId:s.poolId,chain:Bp(e),signal:a})));for(const t of n)if("fulfilled"===t.status&&t.value){c.push(t.value.position);const e=t.value.pool.poolAddress;l.some(n=>n.poolAddress===e)||l.push(t.value.pool)}}else if("user_positions"===s.intent){const e=!(s.chains&&s.chains.length>0)&&s.unsupportedChains&&s.unsupportedChains.length>0;if(s.walletAddress&&!e){const e=s.chains&&s.chains.length>0?s.chains:r&&Pp(r)?[r]:[];c=await async function(e){const{walletAddress:n,chains:t,signal:r}=e,o=t&&t.length>0?t:Object.keys(Mp),i=await Promise.allSettled(o.map(e=>async function(e,n,t){if(!Pp(n))return[];const r=`{\n positions(\n where: { owner: "${e.toLowerCase()}" }\n orderBy: id\n orderDirection: desc\n first: 100\n ) {\n id\n liquidity\n depositedToken0\n depositedToken1\n withdrawnToken0\n withdrawnToken1\n collectedFeesToken0\n collectedFeesToken1\n pool {\n id\n feeTier\n token0 { id symbol }\n token1 { id symbol }\n }\n }\n }`,o=await Lp(n,r,{},t);return(o?.positions||[]).map(e=>{const t=Number(e.pool?.feeTier||0),r=Np[t]??t/1e4;return{positionId:e.id,poolAddress:e.pool?.id||"",pair:`${e.pool?.token0?.symbol}/${e.pool?.token1?.symbol}`,token0:{symbol:e.pool?.token0?.symbol||"",address:e.pool?.token0?.id||""},token1:{symbol:e.pool?.token1?.symbol||"",address:e.pool?.token1?.id||""},fee:r,chain:n,liquidity:e.liquidity,depositedToken0:e.depositedToken0,depositedToken1:e.depositedToken1,withdrawnToken0:e.withdrawnToken0,withdrawnToken1:e.withdrawnToken1,collectedFeesToken0:e.collectedFeesToken0,collectedFeesToken1:e.collectedFeesToken1}})}(n,e,r)));return i.filter(e=>"fulfilled"===e.status).flatMap(e=>e.value)}({walletAddress:s.walletAddress,chains:e,signal:a})}}else l=await async function(e,n,t){try{const r=e.chains&&e.chains.length>0;if(!r&&e.unsupportedChains&&e.unsupportedChains.length>0)return[];const o=r?e.chains:n&&Pp(n)?[n]:["ethereum"],i=await Promise.allSettled(o.map(n=>async function(e,n,t){if(!Pp(n))return[];switch(e.intent){case"pool_detail":if(e.poolAddress){const r=await async function(e){const{poolAddress:n,chain:t,signal:r}=e,o=Bp(t),i=`{\n pool(id: "${n.toLowerCase()}") {\n \n id\n token0 { id symbol name }\n token1 { id symbol name }\n feeTier\n liquidity\n totalValueLockedUSD\n volumeUSD\n poolDayData(first: 1, orderBy: date, orderDirection: desc) {\n volumeUSD\n feesUSD\n tvlUSD\n date\n liquidity\n feesUSD\n pool\n sqrtPrice\n volumeToken0\n volumeToken1\n }\n \n }\n }`,a=await Lp(o,i,{},r);return a?.pool?Dp(a.pool,o):null}({poolAddress:e.poolAddress,chain:n,signal:t});return r?[r]:[]}if(e.poolId){const r=await Gp({poolId:e.poolId,chain:n,signal:t});return r?[r]:[]}return zp({tokens:e.tokens,chain:n,sortBy:e.sortBy,filters:e.filters,signal:t});case"trending_pool":return Yp({chain:n,signal:t});case"best_pool":case"safe_pool":return zp({tokens:e.tokens,chain:n,sortBy:"tvl",filters:e.filters,signal:t});case"high_apr_pool":return zp({tokens:e.tokens,chain:n,sortBy:"apr",filters:e.filters,signal:t});case"low_fee_pool":return zp({tokens:e.tokens,chain:n,sortBy:"fee",filters:e.filters,signal:t});case"general_pool_info":return e.tokens.length>0?zp({tokens:e.tokens,chain:n,sortBy:"tvl",filters:e.filters,signal:t}):Yp({chain:n,signal:t});case"position_detail":if(e.poolId){const r=await Gp({poolId:e.poolId,chain:n,signal:t});return r?[r]:[]}return[];default:return zp({tokens:e.tokens,chain:n,sortBy:e.sortBy||"tvl",filters:e.filters,signal:t})}}(e,n,t)));let a=i.filter(e=>"fulfilled"===e.status).flatMap(e=>e.value);const s=await qp();return s.length>0&&(a=Wp(a,s)),"apr"===e.sortBy&&a.sort((e,n)=>(n.apr??0)-(e.apr??0)),a}catch(r){return[]}}(s,r,a);if(s.tokens.length>=2)try{const e=s.chains[0]||r||"ethereum",n=Rp[Bp(e)];if(n){const e=await um(n),t=s.tokens[0].toUpperCase(),r=s.tokens[1].toUpperCase(),o=e.filter(e=>{const n=e.token0.symbol.toUpperCase(),o=e.token1.symbol.toUpperCase();return n.includes(t)&&o.includes(r)||n.includes(r)&&o.includes(t)||t.includes(n)&&r.includes(o)||t.includes(o)&&r.includes(n)});o.length>0&&(u=o.map(e=>{const n=e.selectorAddress.toLowerCase()===e.token0.address.toLowerCase(),t=null!==e.priceMin?Number(e.priceMin):0,r=null!==e.priceMax?Number(e.priceMax):0,o=null!==e.priceCurrent?Number(e.priceCurrent):0,i=n?t:r>0?1/r:0,a=n?r:t>0?1/t:0,s=n?o:o>0?1/o:0,u=n?e.token0.symbol:e.token1.symbol,l=n?e.token1.symbol:e.token0.symbol;return{poolId:e.poolId,pair:`${e.token0.symbol}/${e.token1.symbol}`,token0Price:e.token0.price,token1Price:e.token1.price,fee:`${Np[Number(e.fee)]??Number(e.fee)/1e4}%`,apr:e.apr,aprAvg:e.aprAvg,priceRange:{minPrice:i,maxPrice:a,currentPrice:s,baseToken:u,quoteToken:l}}}).filter(e=>{const{minPrice:n,maxPrice:t,currentPrice:r}=e.priceRange;if(!r||!n&&!t)return!1;const o=Math.min(n,t),i=Math.max(n,t);return r>=o&&r<=i}),0===u.length&&(u=void 0))}}catch(d){}const f={question:n,parsed:s,chatHistory:i,data:{pools:l,positions:c.length>0?c:void 0,coinpoolPairs:u}};return{response:await rm(f,t,a),parsed:s,pools:l,positions:c}}const am=Jd()?.apiExternal?.keyringPool,sm=Jd()?.apiExternal?.baseUrl,um=async e=>{try{const n=await fetch(`${sm}/pair/pure-list?chainId=${encodeURIComponent(e)}`);if(!n.ok)throw new Error(`HTTP ${n.status}`);const t=await n.json(),r=t?.pairs||[],o=await(async e=>{if(e?.length>0){const n=e[0]?.chainId,t=[];if(e.forEach(e=>{e?.transaction?.length>0&&e.transaction.forEach(e=>{e?.nftId&&t.push(e.nftId)})}),t.length>0)return(async(e,n)=>{const t=xp.chunk(n,200);return(await Promise.allSettled(t.map(async n=>{const t=new URLSearchParams({tokenIds:n.join(","),chainId:String(e)}),r=await fetch(`${am}/user/positions-details/v3?${t}`);if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}))).map(e=>"fulfilled"===e?.status&&(e?.value?.data||e?.value)||[]).flat()})(n,t)}return[]})(r.map(n=>({...n,chainId:e}))),i=/* @__PURE__ */new Map;for(const e of o){const n=String(e?.tokenId||"");n&&i.set(n,e)}return r.map(e=>{let n=null;for(const t of e.transaction||[])if(t.nftId&&(n=i.get(t.nftId),n))break;return{...e,apr:n?.apr??null,aprAvg:n?.aprAvg??null,priceCurrent:n?.tick?.currentTick??null,priceMin:n?.tick?.minTick??null,priceMax:n?.tick?.maxTick??null}})}catch(n){return[]}},lm=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.";function cm(e,n,t){if(!e)return e;const r=e.toLowerCase().trim();if("max"===r||"all"===r)return n||e;const o=r.match(/^(\d+(?:\.\d+)?)%$/);if(o){const e=parseFloat(o[1])/100;return((parseFloat(n)||0)*e).toFixed(8).replace(/\.?0+$/,"")||"0"}const i=r.match(/^\$?(\d+(?:\.\d+)?)\$?$/),a=r.startsWith("$")||r.endsWith("$")||/\d(usd|dollar|dollars|đô|đồng)$/.test(r);if(i&&a){const n=parseFloat(i[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}function fm(e){try{let n=e?.trim()||"";return n.startsWith("```json")?n=n.replace(/^```json\s*/,"").replace(/\s*```$/,""):n.startsWith("```")&&(n=n.replace(/^```\s*/,"").replace(/\s*```$/,"")),JSON.parse(function(e){const n=e.indexOf("{");if(-1===n)return e;let t=0,r=!1,o=!1;for(let i=n;i<e.length;i++){const a=e[i];if(o)o=!1;else if("\\"===a&&r)o=!0;else if('"'!==a){if(!r)if("{"===a)t++;else if("}"===a&&(t--,0===t))return e.slice(n,i+1)}else r=!r}return e}(n))}catch{return null}}function dm(e){const n=[],t=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]*)\]\(([^)]+)\)|(https?:\/\/[^\s<>]+)|\*\*(.+?)\*\*|__(.+?)__|\*(.+?)\*|_(.+?)_|~~(.+?)~~|`([^`]+)`/g;let r,o=0;for(;null!==(r=t.exec(e));)r.index>o&&n.push(e.slice(o,r.index)),void 0!==r[1]||void 0!==r[2]?n.push(
|
|
21
21
|
/* @__PURE__ */k.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(
|
|
22
22
|
/* @__PURE__ */k.jsx("a",{href:r[4],target:"_blank",rel:"noopener noreferrer",className:"mc-link",children:r[3]},r.index)):void 0!==r[5]?n.push(
|
|
23
23
|
/* @__PURE__ */k.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__ */k.jsx("strong",{children:dm(r[6])},r.index)):void 0!==r[7]?n.push(/* @__PURE__ */k.jsx("strong",{children:dm(r[7])},r.index)):void 0!==r[8]?n.push(/* @__PURE__ */k.jsx("em",{children:dm(r[8])},r.index)):void 0!==r[9]?n.push(/* @__PURE__ */k.jsx("em",{children:dm(r[9])},r.index)):void 0!==r[10]?n.push(/* @__PURE__ */k.jsx("del",{children:dm(r[10])},r.index)):void 0!==r[11]&&n.push(
|