keyring-chatbot-agent-sdk-test 0.0.30 → 0.0.31
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.
- package/dist/chat-widget.es.js +549 -558
- package/dist/chat-widget.umd.js +2 -2
- package/package.json +1 -1
package/dist/chat-widget.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){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-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:14px;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:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7}.chat-modal-header-left{display:flex;align-items:center;gap:12px}.keyring-logo{width:32px;height:32px}.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{background:#fff;padding:12px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e5e7}.user-avatar{width:20px;height:20px;border-radius:50%}.user-avatar img{border-radius:50%}.user-wallet,.user-wallet a{font-size:14px;font-weight:500;color:#1a1a1d}.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:20px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;background:#e5e5e7;padding:6px 16px;border-radius:12px;align-self:center;width:fit-content;margin:8px auto}.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:14px 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-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;margin-bottom:6px;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:10px 16px;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;padding:12px 16px;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{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:12px 16px;border-radius:16px;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:16px 20px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:12px;box-shadow:0 -5px 8px 4px #0000000d}.reply-preview{background:#f5f5f7;padding:10px 14px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600;margin-bottom:4px}.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:24px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s}.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:44px;height:44px;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:0;margin:0}}.action-status{margin-top:8px;padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.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}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top: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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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}.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)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { jsx as W, Fragment as ts, jsxs as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".chat-button{cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s ease;border-radius:16px}.chat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.chat-button:active{transform:scale(.95)}.chat-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;z-index:9999;pointer-events:all;animation:fadeIn .2s ease}#chat-modal-title{color:#0b3988;font-weight:900;font-style:Regular;font-size:18px}.chat-modal-overlay.chat-modal-overlay--left{justify-content:flex-start}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-modal{width:90%;max-width:480px;height:700px;max-height:calc(100dvh - 64px);background:#f5f5f7;border-radius:14px;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:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7}.chat-modal-header-left{display:flex;align-items:center;gap:12px}.keyring-logo{width:32px;height:32px}.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{background:#fff;padding:12px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e5e7}.user-avatar{width:20px;height:20px;border-radius:50%}.user-avatar img{border-radius:50%}.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:20px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;background:#e5e5e7;padding:6px 16px;border-radius:12px;align-self:center;width:fit-content;margin:8px auto}.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:14px 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-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;margin-bottom:6px;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:10px 16px;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;padding:12px 16px;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{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:12px 16px;border-radius:16px;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:16px 20px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:12px;box-shadow:0 -5px 8px 4px #0000000d}.reply-preview{background:#f5f5f7;padding:10px 14px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600;margin-bottom:4px}.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:24px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s}.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:44px;height:44px;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:0;margin:0}}.action-status{margin-top:8px;padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.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}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top: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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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:#6c5ce7;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}.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)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { jsx as W, Fragment as ts, jsxs as Ae } from "react/jsx-runtime";
|
|
3
3
|
import Va, { useState as je, useEffect as lt, useCallback as Ie, createContext as eo, useContext as to, memo as $a, useRef as It, useMemo as Ga } from "react";
|
|
4
|
-
const qa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5fZu3dDRVcJYfH5uVv/0tTdZbr/JEeuIHoyjxV5CA4+Duye7Skdq1JV9z87/g9NP8gGr5FpHunaWHd8w+9cmHhKV28/o6Tx0gIPd20IYlMUtza/+Pw8Pa6/C+HrBd/9SrtVF6zRuxiIWPXZ/k2RYxIySoNxhfUC0fAbLrhSrywQdZmdFV65vRi4sXs1HEjbAm9OLwWPHYUyAb9pC1zu+xe124TwjYjfbLwS0Bbv3K2ngRU0AiwIJwAesOxyJcMfOuZ98evftLDoXrrgjQuFpRgrgQU0Kl4YnBCwsDCw7kriNRJLm4E3Atou7ub06mR/EHE+JBROlHLiwQX/eHRr8JwUXhby86vkyvC79slxr+Biy2HKkD5dRyYFd2JC2IJN3V0qux9cp4mZKGuScqUvdCemFCjSYYkoU0pZH5rdh0NNAOwLV4rYjDiKDDcuWMAQEO/bqwtBXIteLqjY4yELWIJKFmTXkKfefzlIriD6yd/mE6kPOQbWCWpIU3Yg8UmquGcBG8DEyIsTi5QULGADwHV+cv5JcZUjCWKPgab3iLS7loY0CmkU2K5hkpUkxQOxClip3+gbSF6G3t0SCIhe6fd6vTEJYnOh4ZWEtQA8CDzKluQaMfEJmGS7aS0Tm4A+TDn7CGehnsMCNoGF5MpA9wU06bq9hPTG9uTdsd3zvPckuVLCeQHNyCBaVUZEZLRJLqJipNHOqONcfQjjvIBmnc0MFQGk72gkJyGi3cQG6IMmOZ3mfGpoaq38WttiMEWNg4fH+Y9fCbZHdWH4TrWh3N7CNLYNvIG9DSv2Z8ebO5sTFS9ye7grDBbBCvFsWwAOaEfE/0ZfcBKkKg5G4Xcr1a4QD0tIPNhbA6Z/CnDAPvjpL/pGL7pOP6h/CQdtvU/3b6KomKHepJvYBm+qaxxwYKzGzHMioYgypd1ntfSOdG3QGW0qsKRKg1Jf68/NqIVrs6GeDfZuDGKTfZXQQsSDipUNuD8zng/r/uHo1sA1l3OH+H2Xrkiy8a6/hdiHC0uAsQokMdUOsD0SD8vFd7GaYBIixNVKIrqK1w1KU2LUksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=", za = "Keyring Agent", Ya = "Close chat", ja = "Message ....", Ja = "Send message", Xa = "Bot is typing", Ka = "Can I help you with anything?", Za = "Reply to message", Qa = "Replying to", er = "You", tr = "Keyring Agent", nr = "Cancel reply", or = "Ask a question", sr = "I have a question", ar = "Ask me anything", rr = "Buy trending token", ir = "Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.", cr = "Please connect your wallet to see trending tokens.", lr = "⏳ Processing transaction...", dr = "✅ Transaction completed", ur = "❌ Action cancelled or failed", fr = "⏳ Transaction submitted. Waiting for confirmation...", mr = "✅ Transaction confirmed!", pr = "❌ Transaction reverted on-chain.", hr = "⚠️ Transaction submitted but confirmation timed out. Please check manually.", br = "✅ Transaction successful!", gr = "Transaction failed. Please try again.", wr = "⚠️ No transaction handler configured.", yr = "⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.", vr = "❌ Error: {message}",
|
|
4
|
+
const qa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5fZu3dDRVcJYfH5uVv/0tTdZbr/JEeuIHoyjxV5CA4+Duye7Skdq1JV9z87/g9NP8gGr5FpHunaWHd8w+9cmHhKV28/o6Tx0gIPd20IYlMUtza/+Pw8Pa6/C+HrBd/9SrtVF6zRuxiIWPXZ/k2RYxIySoNxhfUC0fAbLrhSrywQdZmdFV65vRi4sXs1HEjbAm9OLwWPHYUyAb9pC1zu+xe124TwjYjfbLwS0Bbv3K2ngRU0AiwIJwAesOxyJcMfOuZ98evftLDoXrrgjQuFpRgrgQU0Kl4YnBCwsDCw7kriNRJLm4E3Atou7ub06mR/EHE+JBROlHLiwQX/eHRr8JwUXhby86vkyvC79slxr+Biy2HKkD5dRyYFd2JC2IJN3V0qux9cp4mZKGuScqUvdCemFCjSYYkoU0pZH5rdh0NNAOwLV4rYjDiKDDcuWMAQEO/bqwtBXIteLqjY4yELWIJKFmTXkKfefzlIriD6yd/mE6kPOQbWCWpIU3Yg8UmquGcBG8DEyIsTi5QULGADwHV+cv5JcZUjCWKPgab3iLS7loY0CmkU2K5hkpUkxQOxClip3+gbSF6G3t0SCIhe6fd6vTEJYnOh4ZWEtQA8CDzKluQaMfEJmGS7aS0Tm4A+TDn7CGehnsMCNoGF5MpA9wU06bq9hPTG9uTdsd3zvPckuVLCeQHNyCBaVUZEZLRJLqJipNHOqONcfQjjvIBmnc0MFQGk72gkJyGi3cQG6IMmOZ3mfGpoaq38WttiMEWNg4fH+Y9fCbZHdWH4TrWh3N7CNLYNvIG9DSv2Z8ebO5sTFS9ye7grDBbBCvFsWwAOaEfE/0ZfcBKkKg5G4Xcr1a4QD0tIPNhbA6Z/CnDAPvjpL/pGL7pOP6h/CQdtvU/3b6KomKHepJvYBm+qaxxwYKzGzHMioYgypd1ntfSOdG3QGW0qsKRKg1Jf68/NqIVrs6GeDfZuDGKTfZXQQsSDipUNuD8zng/r/uHo1sA1l3OH+H2Xrkiy8a6/hdiHC0uAsQokMdUOsD0SD8vFd7GaYBIixNVKIrqK1w1KU2LUksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=", za = "Keyring Agent", Ya = "Close chat", ja = "Message ....", Ja = "Send message", Xa = "Bot is typing", Ka = "Can I help you with anything?", Za = "Reply to message", Qa = "Replying to", er = "You", tr = "Keyring Agent", nr = "Cancel reply", or = "Ask a question", sr = "I have a question", ar = "Ask me anything", rr = "Buy trending token", ir = "Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.", cr = "Please connect your wallet to see trending tokens.", lr = "⏳ Processing transaction...", dr = "✅ Transaction completed", ur = "❌ Action cancelled or failed", fr = "⏳ Transaction submitted. Waiting for confirmation...", mr = "✅ Transaction confirmed!", pr = "❌ Transaction reverted on-chain.", hr = "⚠️ Transaction submitted but confirmation timed out. Please check manually.", br = "✅ Transaction successful!", gr = "Transaction failed. Please try again.", wr = "⚠️ No transaction handler configured.", yr = "⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.", vr = "❌ Error: {message}", Ar = "Confirm", kr = "Confirm swap", Tr = "Ready to proceed with the swap?", xr = "⚠️ Unable to get swap estimation. Error: {error}", Er = "Cancel", Sr = "🚀 Execute", Nr = "⏳ Processing...", Ir = "Balance:", Cr = "Token not found in your wallet.", Br = "You have no {symbol} balance in your wallet.", Pr = "Insufficient balance. Available: {balance} {symbol}", Fr = "{field} is required", _r = "Invalid address (0x + 40 hex chars)", Dr = "Must be a positive number", Or = "Must be a valid number", Ur = "Open chat", Rr = "Open chat support", Mr = "This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.", Lr = "Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.", Hr = "Sorry, I could not fetch your wallet balance. Please try again.", Wr = "Sorry, I encountered an error fetching your wallet balance.", Vr = "Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.", $r = `📊 Select the amount of {symbol} to use:
|
|
5
5
|
|
|
6
6
|
Available: {balance} {symbol}`, Gr = `
|
|
7
7
|
⚠️ **Insufficient {symbol} for fees!**
|
|
@@ -21,12 +21,12 @@ Please review and fill in the recipient address below:`, yi = `🖼️ Your NFT
|
|
|
21
21
|
|
|
22
22
|
{list}
|
|
23
23
|
|
|
24
|
-
Select an NFT to send:`, vi = "🖼️ You don't have any NFTs in your wallet on this chain.",
|
|
24
|
+
Select an NFT to send:`, vi = "🖼️ You don't have any NFTs in your wallet on this chain.", Ai = `I couldn't find "{name}" in your NFT collection. Here are your NFTs:`, ki = "Sorry, I encountered an error fetching your NFTs.", Ti = "📈 Here is the list of tokens that are currently trending upwards on {chain} chain", xi = `
|
|
25
25
|
Is there any token you want to buy?`, Ei = "Sorry, I encountered an error fetching trending tokens.", Si = "Sorry, I encountered an error processing your request.", Ni = "Buy with {symbol}", Ii = "Use {percent}% of {symbol}", Ci = "Buy {name} ({symbol})", Bi = "Send {name}", Pi = "Swap to {name} ({symbol})", Fi = "Buy {symbol}", _i = "💰 Fetching your wallet balances...", Di = `💰 Your token balances on {chain}:
|
|
26
26
|
|
|
27
27
|
{list}
|
|
28
28
|
|
|
29
|
-
Select a token to interact with:`, Oi = "💰 You don't have any tokens in your wallet on this chain.", Ui = "Sorry, I encountered an error fetching your balances.", Ri = "Send {symbol}",
|
|
29
|
+
Select a token to interact with:`, Oi = "💰 You don't have any tokens in your wallet on this chain.", Ui = "Sorry, I encountered an error fetching your balances.", Ri = "Send {symbol}", Mi = "Swap {symbol}", Li = "Buy more {symbol}", Hi = "Send Native Token", Wi = "Send native token (ETH, BNB, MATIC, etc.) to an address", Vi = "Send Token (ERC20)", $i = "Send an ERC20 token to an address", Gi = "Swap Token", qi = "Swap one token for another", zi = "Approve Token", Yi = "Approve a spender to use your tokens", ji = "Wrap Native Token", Ji = "Wrap native token (ETH → WETH)", Xi = "Unwrap Native Token", Ki = "Unwrap native token (WETH → ETH)", Zi = "Send NFT", Qi = "Transfer an ERC721 or ERC1155 NFT to another address", ec = "Recipient Address", tc = "Amount", nc = "Token Contract", oc = "Token Symbol", sc = "Decimals", ac = "From Token", rc = "From Symbol", ic = "To Token", cc = "To Symbol", lc = "From Decimals", dc = "To Decimals", uc = "Spender Address", fc = "Amount (empty = unlimited)", mc = "NFT Contract", pc = "Token ID", hc = "Token Standard", bc = "NFT Name", gc = "Must be a positive integer", wc = "Amount cannot exceed available balance of {max}", yc = {
|
|
30
30
|
chatTitle: za,
|
|
31
31
|
closeChat: Ya,
|
|
32
32
|
messagePlaceholder: ja,
|
|
@@ -56,8 +56,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
56
56
|
txNoHandler: wr,
|
|
57
57
|
txInsufficientGas: yr,
|
|
58
58
|
txError: vr,
|
|
59
|
-
swapConfirmButton:
|
|
60
|
-
swapConfirmValue:
|
|
59
|
+
swapConfirmButton: Ar,
|
|
60
|
+
swapConfirmValue: kr,
|
|
61
61
|
swapReadyToProceed: Tr,
|
|
62
62
|
swapEstimationError: xr,
|
|
63
63
|
formCancel: Er,
|
|
@@ -73,8 +73,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
73
73
|
formMustBeValidNumber: Or,
|
|
74
74
|
openChat: Ur,
|
|
75
75
|
openChatTitle: Rr,
|
|
76
|
-
walletBalanceSpendable:
|
|
77
|
-
walletNoTokensFound:
|
|
76
|
+
walletBalanceSpendable: Mr,
|
|
77
|
+
walletNoTokensFound: Lr,
|
|
78
78
|
walletFetchFailed: Hr,
|
|
79
79
|
walletFetchError: Wr,
|
|
80
80
|
insufficientFeeToken: Vr,
|
|
@@ -110,8 +110,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
110
110
|
nftSendReview: wi,
|
|
111
111
|
nftCollectionHeader: yi,
|
|
112
112
|
nftNoCollection: vi,
|
|
113
|
-
nftNotFoundInWallet:
|
|
114
|
-
nftFetchError:
|
|
113
|
+
nftNotFoundInWallet: Ai,
|
|
114
|
+
nftFetchError: ki,
|
|
115
115
|
trendingTokensHeader: Ti,
|
|
116
116
|
trendingTokensQuestion: xi,
|
|
117
117
|
trendingTokensError: Ei,
|
|
@@ -127,8 +127,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
127
127
|
viewBalancesEmpty: Oi,
|
|
128
128
|
viewBalancesFetchError: Ui,
|
|
129
129
|
buttonSendToken: Ri,
|
|
130
|
-
buttonSwapToken:
|
|
131
|
-
buttonBuyMoreToken:
|
|
130
|
+
buttonSwapToken: Mi,
|
|
131
|
+
buttonBuyMoreToken: Li,
|
|
132
132
|
actionSendNativeLabel: Hi,
|
|
133
133
|
actionSendNativeDesc: Wi,
|
|
134
134
|
actionSendTokenLabel: Vi,
|
|
@@ -162,12 +162,12 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
162
162
|
fieldNftName: bc,
|
|
163
163
|
formMustBePositiveInteger: gc,
|
|
164
164
|
formAmountExceedsNft: wc
|
|
165
|
-
}, vc = "Keyringエージェント",
|
|
165
|
+
}, vc = "Keyringエージェント", Ac = "チャットを閉じる", kc = "メッセージ....", Tc = "メッセージを送信", xc = "ボットが入力中", Ec = "何かお手伝いできますか?", Sc = "メッセージに返信", Nc = "返信先:", Ic = "あなた", Cc = "Keyringエージェント", Bc = "返信をキャンセル", Pc = "質問する", Fc = "質問があります", _c = "何でも聞いてください", Dc = "トレンドトークンを購入", Oc = "ウォレットは接続されていますが、このチェーンは取引に対応していません。対応チェーンに切り替えてトレンドトークンを確認してください。", Uc = "トレンドトークンを確認するにはウォレットを接続してください。", Rc = "⏳ トランザクション処理中...", Mc = "✅ トランザクション完了", Lc = "❌ アクションがキャンセルまたは失敗しました", Hc = "⏳ トランザクションを送信しました。確認をお待ちください...", Wc = "✅ トランザクションが確認されました!", Vc = "❌ トランザクションはオンチェーンでリバートされました。", $c = "⚠️ トランザクションは送信されましたが、確認がタイムアウトしました。手動で確認してください。", Gc = "✅ トランザクションが成功しました!", qc = "トランザクションが失敗しました。もう一度お試しください。", zc = "⚠️ トランザクションハンドラが設定されていません。", Yc = "⚠️ **ガス代の{symbol}が不足しています!** {symbol}の残高は{balance}ですが、取引手数料として約{fee} {symbol}が必要です。ウォレットをチャージして再試行してください。", jc = "❌ エラー:{message}", Jc = "確認", Xc = "スワップを確認", Kc = "スワップを実行する準備ができていますか?", Zc = "⚠️ スワップの見積もりを取得できませんでした。エラー:{error}", Qc = "キャンセル", el = "🚀 実行", tl = "⏳ 処理中...", nl = "残高:", ol = "ウォレットにトークンが見つかりませんでした。", sl = "ウォレットに{symbol}の残高がありません。", al = "残高が不足しています。利用可能:{balance} {symbol}", rl = "{field}は必須です", il = "無効なアドレス(0x + 40桁の16進数)", cl = "正の数値を入力してください", ll = "有効な数値を入力してください", dl = "チャットを開く", ul = "チャットサポートを開く", fl = "{chain}チェーンのウォレットの利用可能残高です。この取引に使用するコインを選択してください。", ml = "申し訳ありませんが、{chain}チェーンのウォレットにトークンが見つかりませんでした。取引用のトークンがあることをご確認ください。", pl = "ウォレット残高を取得できませんでした。もう一度お試しください。", hl = "ウォレット残高の取得中にエラーが発生しました。", bl = "手数料が不足しています。{symbol}が取引手数料をカバーするのに十分であることを確認するか、別のトークンを選択してください。", gl = `📊 使用する{symbol}の量を選択:
|
|
166
166
|
|
|
167
167
|
利用可能: {balance} {symbol}`, wl = `
|
|
168
168
|
⚠️ **手数料の{symbol}が不足しています!**
|
|
169
169
|
{symbol}の残高は{balance}ですが、約{needed} {symbol}が必要です。
|
|
170
|
-
`, yl = "スワップ前に{symbol}の承認が必要です。", vl = "{symbol}を承認",
|
|
170
|
+
`, yl = "スワップ前に{symbol}の承認が必要です。", vl = "{symbol}を承認", Al = "スワップのために{symbol}を承認", kl = "⚠️ ウォレットにソーストークンがないか、残高が0です。", Tl = `Swap {from} → {to}
|
|
171
171
|
|
|
172
172
|
スワップする{from}の量を選択:
|
|
173
173
|
|
|
@@ -176,7 +176,7 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
176
176
|
ステップ1: {symbol}を承認
|
|
177
177
|
ステップ2: スワップを確認`, El = "⚠️ スワップの見積もりを取得できませんでした。もう一度お試しください。", Sl = "⚠️ 残高不足!{symbol}の残高は{balance}ですが、{amount}が必要です。ウォレットをチャージするか、金額を減らしてください。", Nl = "⚠️ ウォレットに{symbol}がありません。スワップ前に取得してください。", Il = "⚠️ 残高不足!{balance} {symbol}しかありませんが、{amount}が必要です。金額を減らすかトークンを追加してください。", Cl = `📊 スワップする{symbol}の量を選択:
|
|
178
178
|
|
|
179
|
-
利用可能: {balance} {symbol}`, Bl = "⚠️ トークンリストを読み込めませんでした。宛先トークンを指定してください。", Pl = "📈 {chain}チェーンのトレンドトークン。受け取りたいトークンを選択してください:", Fl = "トランザクション処理中... お待ちください。", _l = "✅ トランザクションが確認されました!スワップが完了しました。", Dl = "❌ トランザクションはオンチェーンでリバートされました。もう一度お試しください。", Ol = "✅ トランザクションが成功しました!スワップが完了しました。", Ul = "⚠️ トランザクションデータが利用できません。", Rl = "⚠️ 承認データが利用できません。",
|
|
179
|
+
利用可能: {balance} {symbol}`, Bl = "⚠️ トークンリストを読み込めませんでした。宛先トークンを指定してください。", Pl = "📈 {chain}チェーンのトレンドトークン。受け取りたいトークンを選択してください:", Fl = "トランザクション処理中... お待ちください。", _l = "✅ トランザクションが確認されました!スワップが完了しました。", Dl = "❌ トランザクションはオンチェーンでリバートされました。もう一度お試しください。", Ol = "✅ トランザクションが成功しました!スワップが完了しました。", Ul = "⚠️ トランザクションデータが利用できません。", Rl = "⚠️ 承認データが利用できません。", Ml = "{symbol}を承認中... ウォレットで確認してください。", Ll = "✅ {symbol}が正常に承認されました!", Hl = "スワップを実行できるようになりました。", Wl = "スワップを確認", Vl = "❌ 承認に失敗しました。もう一度お試しください。", $l = "⚠️ ウォレット残高を取得できませんでした。", Gl = "⚠️ 残高を読み込めませんでした。もう一度お試しください。", ql = "⚠️ 残高を取得できませんでした。もう一度お試しください。", zl = `📤 **{name}**を送信 ({standard} #{tokenId})
|
|
180
180
|
|
|
181
181
|
受取人のアドレスを確認・入力してください:`, Yl = `🖼️ あなたのNFTコレクション({count}件):
|
|
182
182
|
|
|
@@ -187,10 +187,10 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
187
187
|
|
|
188
188
|
{list}
|
|
189
189
|
|
|
190
|
-
インタラクトするトークンを選択:`, ld = "💰 このチェーンのウォレットにトークンがありません。", dd = "残高の取得中にエラーが発生しました。", ud = "{symbol}を送る", fd = "{symbol}をスワップ", md = "{symbol}をもっと買う", pd = "ネイティブトークンを送る", hd = "ネイティブトークン(ETH、BNB、MATICなど)をアドレスに送る", bd = "トークンを送る(ERC20)", gd = "ERC20トークンをアドレスに送る", wd = "トークンをスワップ", yd = "あるトークンを別のトークンに交換する", vd = "トークンを承認",
|
|
190
|
+
インタラクトするトークンを選択:`, ld = "💰 このチェーンのウォレットにトークンがありません。", dd = "残高の取得中にエラーが発生しました。", ud = "{symbol}を送る", fd = "{symbol}をスワップ", md = "{symbol}をもっと買う", pd = "ネイティブトークンを送る", hd = "ネイティブトークン(ETH、BNB、MATICなど)をアドレスに送る", bd = "トークンを送る(ERC20)", gd = "ERC20トークンをアドレスに送る", wd = "トークンをスワップ", yd = "あるトークンを別のトークンに交換する", vd = "トークンを承認", Ad = "指定したアドレスがトークンを使用することを承認する", kd = "ネイティブトークンをラップ", Td = "ネイティブトークンをラップする(ETH → WETH)", xd = "ネイティブトークンをアンラップ", Ed = "ネイティブトークンをアンラップする(WETH → ETH)", Sd = "NFTを送る", Nd = "ERC721またはERC1155のNFTを別のアドレスに転送する", Id = "受取アドレス", Cd = "数量", Bd = "トークンコントラクト", Pd = "トークンシンボル", Fd = "小数桁数", _d = "送信元トークン", Dd = "送信元シンボル", Od = "送信先トークン", Ud = "送信先シンボル", Rd = "送信元小数桁数", Md = "送信先小数桁数", Ld = "承認先アドレス", Hd = "数量(空欄 = 無制限)", Wd = "NFTコントラクト", Vd = "Token ID", $d = "トークン規格", Gd = "NFT名", qd = "正の整数でなければなりません", zd = "数量は利用可能な残高 {max} を超えられません", Yd = {
|
|
191
191
|
chatTitle: vc,
|
|
192
|
-
closeChat:
|
|
193
|
-
messagePlaceholder:
|
|
192
|
+
closeChat: Ac,
|
|
193
|
+
messagePlaceholder: kc,
|
|
194
194
|
sendMessage: Tc,
|
|
195
195
|
botIsTyping: xc,
|
|
196
196
|
canIHelpYou: Ec,
|
|
@@ -206,8 +206,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
206
206
|
walletConnectedChainUnsupported: Oc,
|
|
207
207
|
walletNotConnected: Uc,
|
|
208
208
|
actionProcessing: Rc,
|
|
209
|
-
actionSuccess:
|
|
210
|
-
actionFail:
|
|
209
|
+
actionSuccess: Mc,
|
|
210
|
+
actionFail: Lc,
|
|
211
211
|
txSubmitted: Hc,
|
|
212
212
|
txConfirmed: Wc,
|
|
213
213
|
txReverted: Vc,
|
|
@@ -243,8 +243,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
243
243
|
swapFeeWarning: wl,
|
|
244
244
|
swapNeedApprove: yl,
|
|
245
245
|
swapApproveButton: vl,
|
|
246
|
-
swapApproveValue:
|
|
247
|
-
swapNoSourceToken:
|
|
246
|
+
swapApproveValue: Al,
|
|
247
|
+
swapNoSourceToken: kl,
|
|
248
248
|
swapSelectAmount: Tl,
|
|
249
249
|
swapApprovalRequired: xl,
|
|
250
250
|
swapEstimationFailed: El,
|
|
@@ -260,8 +260,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
260
260
|
txSuccessfulSwap: Ol,
|
|
261
261
|
txDataNotAvailable: Ul,
|
|
262
262
|
approvalDataNotAvailable: Rl,
|
|
263
|
-
approving:
|
|
264
|
-
approvalSuccess:
|
|
263
|
+
approving: Ml,
|
|
264
|
+
approvalSuccess: Ll,
|
|
265
265
|
approvalConfirmSwap: Hl,
|
|
266
266
|
confirmSwapButton: Wl,
|
|
267
267
|
approvalFailed: Vl,
|
|
@@ -297,8 +297,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
297
297
|
actionSwapTokenLabel: wd,
|
|
298
298
|
actionSwapTokenDesc: yd,
|
|
299
299
|
actionApproveTokenLabel: vd,
|
|
300
|
-
actionApproveTokenDesc:
|
|
301
|
-
actionWrapNativeLabel:
|
|
300
|
+
actionApproveTokenDesc: Ad,
|
|
301
|
+
actionWrapNativeLabel: kd,
|
|
302
302
|
actionWrapNativeDesc: Td,
|
|
303
303
|
actionUnwrapNativeLabel: xd,
|
|
304
304
|
actionUnwrapNativeDesc: Ed,
|
|
@@ -314,8 +314,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
314
314
|
fieldTokenOut: Od,
|
|
315
315
|
fieldTokenOutSymbol: Ud,
|
|
316
316
|
fieldTokenInDecimals: Rd,
|
|
317
|
-
fieldTokenOutDecimals:
|
|
318
|
-
fieldSpenderAddress:
|
|
317
|
+
fieldTokenOutDecimals: Md,
|
|
318
|
+
fieldSpenderAddress: Ld,
|
|
319
319
|
fieldAmountUnlimited: Hd,
|
|
320
320
|
fieldNftContract: Wd,
|
|
321
321
|
fieldTokenId: Vd,
|
|
@@ -323,7 +323,7 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
323
323
|
fieldNftName: Gd,
|
|
324
324
|
formMustBePositiveInteger: qd,
|
|
325
325
|
formAmountExceedsNft: zd
|
|
326
|
-
}, jd = "Keyring 助手", Jd = "关闭聊天", Xd = "消息....", Kd = "发送消息", Zd = "机器人正在输入", Qd = "有什么可以帮您的吗?", eu = "回复消息", tu = "回复", nu = "你", ou = "Keyring 助手", su = "取消回复", au = "提问", ru = "我有一个问题", iu = "请随时提问", cu = "购买热门代币", lu = "您的钱包已连接,但该链不支持交易。请切换到受支持的链以查看热门代币。", du = "请连接钱包以查看热门代币。", uu = "⏳ 交易处理中...", fu = "✅ 交易完成", mu = "❌ 操作已取消或失败", pu = "⏳ 交易已提交,等待确认...", hu = "✅ 交易已确认!", bu = "❌ 交易在链上已回滚。", gu = "⚠️ 交易已提交,但确认超时,请手动检查。", wu = "✅ 交易成功!", yu = "交易失败,请重试。", vu = "⚠️ 未配置交易处理程序。",
|
|
326
|
+
}, jd = "Keyring 助手", Jd = "关闭聊天", Xd = "消息....", Kd = "发送消息", Zd = "机器人正在输入", Qd = "有什么可以帮您的吗?", eu = "回复消息", tu = "回复", nu = "你", ou = "Keyring 助手", su = "取消回复", au = "提问", ru = "我有一个问题", iu = "请随时提问", cu = "购买热门代币", lu = "您的钱包已连接,但该链不支持交易。请切换到受支持的链以查看热门代币。", du = "请连接钱包以查看热门代币。", uu = "⏳ 交易处理中...", fu = "✅ 交易完成", mu = "❌ 操作已取消或失败", pu = "⏳ 交易已提交,等待确认...", hu = "✅ 交易已确认!", bu = "❌ 交易在链上已回滚。", gu = "⚠️ 交易已提交,但确认超时,请手动检查。", wu = "✅ 交易成功!", yu = "交易失败,请重试。", vu = "⚠️ 未配置交易处理程序。", Au = "⚠️ **{symbol}不足以支付Gas费!** 您有 {balance} {symbol},但需要约 {fee} {symbol} 作为交易费用。请充值钱包后重试。", ku = "❌ 错误:{message}", Tu = "确认", xu = "确认兑换", Eu = "准备好进行兑换了吗?", Su = "⚠️ 无法获取兑换估算。错误:{error}", Nu = "取消", Iu = "🚀 执行", Cu = "⏳ 处理中...", Bu = "余额:", Pu = "您的钱包中未找到该代币。", Fu = "您的钱包中没有 {symbol} 余额。", _u = "余额不足。可用:{balance} {symbol}", Du = "{field}为必填项", Ou = "无效地址(0x + 40个十六进制字符)", Uu = "必须为正数", Ru = "必须为有效数字", Mu = "打开聊天", Lu = "打开聊天支持", Hu = "这是您在{chain}链上钱包的可用余额。请选择您要用于此交易的代币。", Wu = "抱歉,在{chain}链上您的钱包中找不到任何代币。请确保您有一些代币可以交易。", Vu = "无法获取钱包余额,请重试。", $u = "获取钱包余额时遇到错误。", Gu = "手续费不足。请确保您有足够的 {symbol} 支付交易手续费,或选择其他代币。", qu = `📊 选择要使用的 {symbol} 数量:
|
|
327
327
|
|
|
328
328
|
可用: {balance} {symbol}`, zu = `
|
|
329
329
|
⚠️ **{symbol}不足以支付手续费!**
|
|
@@ -337,9 +337,9 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
337
337
|
第1步:授权 {symbol}
|
|
338
338
|
第2步:确认兑换`, Qu = "⚠️ 获取兑换估算失败,请重试。", ef = "⚠️ 余额不足!您有 {balance} {symbol},但需要 {amount}。请充值钱包或减少金额。", tf = "⚠️ 您的钱包中没有 {symbol}。请先获取一些再进行兑换。", nf = "⚠️ 余额不足!您有 {balance} {symbol},但需要 {amount}。请减少金额或添加更多代币。", of = `📊 选择要兑换的 {symbol} 数量:
|
|
339
339
|
|
|
340
|
-
可用: {balance} {symbol}`, sf = "⚠️ 无法加载代币列表。请指定目标代币。", af = "📈 {chain}链上的热门代币。请选择您想接收的代币:", rf = "交易处理中... 请稍候。", cf = "✅ 交易已确认!您的兑换已完成。", lf = "❌ 交易在链上已回滚,请重试。", df = "✅ 交易成功!您的兑换已完成。", uf = "⚠️ 交易数据不可用。", ff = "⚠️ 授权数据不可用。", mf = "正在授权 {symbol}... 请在钱包中确认。", pf = "✅ {symbol} 授权成功!", hf = "现在您可以执行兑换了。", bf = "确认兑换", gf = "❌ 授权失败,请重试。", wf = "⚠️ 无法获取钱包余额。", yf = "⚠️ 无法加载余额,请重试。", vf = "⚠️ 无法获取余额,请重试。",
|
|
340
|
+
可用: {balance} {symbol}`, sf = "⚠️ 无法加载代币列表。请指定目标代币。", af = "📈 {chain}链上的热门代币。请选择您想接收的代币:", rf = "交易处理中... 请稍候。", cf = "✅ 交易已确认!您的兑换已完成。", lf = "❌ 交易在链上已回滚,请重试。", df = "✅ 交易成功!您的兑换已完成。", uf = "⚠️ 交易数据不可用。", ff = "⚠️ 授权数据不可用。", mf = "正在授权 {symbol}... 请在钱包中确认。", pf = "✅ {symbol} 授权成功!", hf = "现在您可以执行兑换了。", bf = "确认兑换", gf = "❌ 授权失败,请重试。", wf = "⚠️ 无法获取钱包余额。", yf = "⚠️ 无法加载余额,请重试。", vf = "⚠️ 无法获取余额,请重试。", Af = `📤 发送 **{name}** ({standard} #{tokenId})
|
|
341
341
|
|
|
342
|
-
请检查并填写收件人地址:`,
|
|
342
|
+
请检查并填写收件人地址:`, kf = `🖼️ 您的NFT收藏({count}件):
|
|
343
343
|
|
|
344
344
|
{list}
|
|
345
345
|
|
|
@@ -348,7 +348,7 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
348
348
|
|
|
349
349
|
{list}
|
|
350
350
|
|
|
351
|
-
选择要操作的代币:`,
|
|
351
|
+
选择要操作的代币:`, Mf = "💰 您的钱包在此链上没有任何代币。", Lf = "获取余额时遇到错误,请重试。", Hf = "发送{symbol}", Wf = "兑换{symbol}", Vf = "购买更多{symbol}", $f = "发送原生代币", Gf = "发送原生代币(ETH、BNB、MATIC 等)到某个地址", qf = "发送代币(ERC20)", zf = "将 ERC20 代币发送到某个地址", Yf = "兑换代币", jf = "将一种代币兑换为另一种代币", Jf = "授权代币", Xf = "授权某地址使用您的代币", Kf = "包装原生代币", Zf = "包装原生代币(ETH → WETH)", Qf = "解包原生代币", em = "解包原生代币(WETH → ETH)", tm = "发送 NFT", nm = "将 ERC721 或 ERC1155 NFT 转移到另一个地址", om = "收款地址", sm = "数量", am = "代币合约", rm = "代币符号", im = "小数位数", cm = "源代币", lm = "源代币符号", dm = "目标代币", um = "目标代币符号", fm = "源代币小数位", mm = "目标代币小数位", pm = "授权地址", hm = "数量(留空 = 无限授权)", bm = "NFT 合约", gm = "Token ID", wm = "代币标准", ym = "NFT 名称", vm = "必须是正整数", Am = "数量不能超过可用余额 {max}", km = {
|
|
352
352
|
chatTitle: jd,
|
|
353
353
|
closeChat: Jd,
|
|
354
354
|
messagePlaceholder: Xd,
|
|
@@ -376,8 +376,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
376
376
|
txSuccessful: wu,
|
|
377
377
|
txFailed: yu,
|
|
378
378
|
txNoHandler: vu,
|
|
379
|
-
txInsufficientGas:
|
|
380
|
-
txError:
|
|
379
|
+
txInsufficientGas: Au,
|
|
380
|
+
txError: ku,
|
|
381
381
|
swapConfirmButton: Tu,
|
|
382
382
|
swapConfirmValue: xu,
|
|
383
383
|
swapReadyToProceed: Eu,
|
|
@@ -393,8 +393,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
393
393
|
formInvalidAddress: Ou,
|
|
394
394
|
formMustBePositive: Uu,
|
|
395
395
|
formMustBeValidNumber: Ru,
|
|
396
|
-
openChat:
|
|
397
|
-
openChatTitle:
|
|
396
|
+
openChat: Mu,
|
|
397
|
+
openChatTitle: Lu,
|
|
398
398
|
walletBalanceSpendable: Hu,
|
|
399
399
|
walletNoTokensFound: Wu,
|
|
400
400
|
walletFetchFailed: Vu,
|
|
@@ -429,8 +429,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
429
429
|
couldNotFetchBalance: wf,
|
|
430
430
|
couldNotLoadBalance: yf,
|
|
431
431
|
couldNotFetchBalanceRetry: vf,
|
|
432
|
-
nftSendReview:
|
|
433
|
-
nftCollectionHeader:
|
|
432
|
+
nftSendReview: Af,
|
|
433
|
+
nftCollectionHeader: kf,
|
|
434
434
|
nftNoCollection: Tf,
|
|
435
435
|
nftNotFoundInWallet: xf,
|
|
436
436
|
nftFetchError: Ef,
|
|
@@ -446,8 +446,8 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
446
446
|
buttonBuySymbol: Of,
|
|
447
447
|
viewBalancesLoading: Uf,
|
|
448
448
|
viewBalancesHeader: Rf,
|
|
449
|
-
viewBalancesEmpty:
|
|
450
|
-
viewBalancesFetchError:
|
|
449
|
+
viewBalancesEmpty: Mf,
|
|
450
|
+
viewBalancesFetchError: Lf,
|
|
451
451
|
buttonSendToken: Hf,
|
|
452
452
|
buttonSwapToken: Wf,
|
|
453
453
|
buttonBuyMoreToken: Vf,
|
|
@@ -483,11 +483,11 @@ Select a token to interact with:`, Oi = "💰 You don't have any tokens in your
|
|
|
483
483
|
fieldTokenStandard: wm,
|
|
484
484
|
fieldNftName: ym,
|
|
485
485
|
formMustBePositiveInteger: vm,
|
|
486
|
-
formAmountExceedsNft:
|
|
486
|
+
formAmountExceedsNft: Am
|
|
487
487
|
}, Fo = {
|
|
488
488
|
en: yc,
|
|
489
489
|
ja: Yd,
|
|
490
|
-
cn:
|
|
490
|
+
cn: km
|
|
491
491
|
};
|
|
492
492
|
function _o(e, t) {
|
|
493
493
|
return Fo[t]?.[e] ?? Fo.en[e] ?? e;
|
|
@@ -623,7 +623,7 @@ function Gt(e, { strict: t = !0 } = {}) {
|
|
|
623
623
|
function Je(e) {
|
|
624
624
|
return Gt(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function kn(e, { dir: t = "left" } = {}) {
|
|
627
627
|
let n = typeof e == "string" ? e.replace("0x", "") : e, o = 0;
|
|
628
628
|
for (let s = 0; s < n.length - 1 && n[t === "left" ? s : n.length - s - 1].toString() === "0"; s++)
|
|
629
629
|
o++;
|
|
@@ -881,11 +881,11 @@ function Rm(e, { args: t, eventName: n } = {}) {
|
|
|
881
881
|
...n ? { args: t, eventName: n } : {}
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
|
-
const
|
|
884
|
+
const Mm = {
|
|
885
885
|
"0x0": "reverted",
|
|
886
886
|
"0x1": "success"
|
|
887
887
|
};
|
|
888
|
-
function
|
|
888
|
+
function Lm(e, t) {
|
|
889
889
|
const n = {
|
|
890
890
|
...e,
|
|
891
891
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -896,12 +896,12 @@ function Mm(e, t) {
|
|
|
896
896
|
logs: e.logs ? e.logs.map((o) => Rm(o)) : null,
|
|
897
897
|
to: e.to ? e.to : null,
|
|
898
898
|
transactionIndex: e.transactionIndex ? Tn(e.transactionIndex) : null,
|
|
899
|
-
status: e.status ?
|
|
899
|
+
status: e.status ? Mm[e.status] : null,
|
|
900
900
|
type: e.type ? ds[e.type] || e.type : null
|
|
901
901
|
};
|
|
902
902
|
return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
|
|
903
903
|
}
|
|
904
|
-
const Hm = /* @__PURE__ */ ao("transactionReceipt",
|
|
904
|
+
const Hm = /* @__PURE__ */ ao("transactionReceipt", Lm), Wm = {
|
|
905
905
|
legacy: "0x0",
|
|
906
906
|
eip2930: "0x1",
|
|
907
907
|
eip1559: "0x2",
|
|
@@ -1128,7 +1128,7 @@ const Xm = {
|
|
|
1128
1128
|
ether: -9,
|
|
1129
1129
|
wei: 9
|
|
1130
1130
|
};
|
|
1131
|
-
function
|
|
1131
|
+
function Me(e, t) {
|
|
1132
1132
|
let n = e.toString();
|
|
1133
1133
|
const o = n.startsWith("-");
|
|
1134
1134
|
o && (n = n.slice(1)), n = n.padStart(t, "0");
|
|
@@ -1139,10 +1139,10 @@ function Le(e, t) {
|
|
|
1139
1139
|
return a = a.replace(/(0+)$/, ""), `${o ? "-" : ""}${s || "0"}${a ? `.${a}` : ""}`;
|
|
1140
1140
|
}
|
|
1141
1141
|
function Zm(e, t = "wei") {
|
|
1142
|
-
return
|
|
1142
|
+
return Me(e, Xm[t]);
|
|
1143
1143
|
}
|
|
1144
1144
|
function Bt(e, t = "wei") {
|
|
1145
|
-
return
|
|
1145
|
+
return Me(e, Km[t]);
|
|
1146
1146
|
}
|
|
1147
1147
|
function ps(e) {
|
|
1148
1148
|
const t = Object.entries(e).map(([o, s]) => s === void 0 || s === !1 ? null : [o, s]).filter(Boolean), n = t.reduce((o, [s]) => Math.max(o, s.length), 0);
|
|
@@ -1345,9 +1345,9 @@ const vt = /* @__PURE__ */ Uint32Array.from([
|
|
|
1345
1345
|
2600822924,
|
|
1346
1346
|
528734635,
|
|
1347
1347
|
1541459225
|
|
1348
|
-
]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1),
|
|
1348
|
+
]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1), Mo = /* @__PURE__ */ BigInt(32);
|
|
1349
1349
|
function mp(e, t = !1) {
|
|
1350
|
-
return t ? { h: Number(e & hn), l: Number(e >>
|
|
1350
|
+
return t ? { h: Number(e & hn), l: Number(e >> Mo & hn) } : { h: Number(e >> Mo & hn) | 0, l: Number(e & hn) | 0 };
|
|
1351
1351
|
}
|
|
1352
1352
|
function pp(e, t = !1) {
|
|
1353
1353
|
const n = e.length;
|
|
@@ -1423,7 +1423,7 @@ const hp = (e, t, n) => e << n | t >>> 32 - n, bp = (e, t, n) => t << n | e >>>
|
|
|
1423
1423
|
2756734187,
|
|
1424
1424
|
3204031479,
|
|
1425
1425
|
3329325298
|
|
1426
|
-
]),
|
|
1426
|
+
]), At = /* @__PURE__ */ new Uint32Array(64);
|
|
1427
1427
|
class vp extends fp {
|
|
1428
1428
|
constructor(t = 32) {
|
|
1429
1429
|
super(64, t, 8, !1), this.A = vt[0] | 0, this.B = vt[1] | 0, this.C = vt[2] | 0, this.D = vt[3] | 0, this.E = vt[4] | 0, this.F = vt[5] | 0, this.G = vt[6] | 0, this.H = vt[7] | 0;
|
|
@@ -1438,28 +1438,28 @@ class vp extends fp {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
process(t, n) {
|
|
1440
1440
|
for (let R = 0; R < 16; R++, n += 4)
|
|
1441
|
-
|
|
1441
|
+
At[R] = t.getUint32(n, !1);
|
|
1442
1442
|
for (let R = 16; R < 64; R++) {
|
|
1443
|
-
const h =
|
|
1444
|
-
|
|
1443
|
+
const h = At[R - 15], x = At[R - 2], p = ut(h, 7) ^ ut(h, 18) ^ h >>> 3, C = ut(x, 17) ^ ut(x, 19) ^ x >>> 10;
|
|
1444
|
+
At[R] = C + At[R - 7] + p + At[R - 16] | 0;
|
|
1445
1445
|
}
|
|
1446
1446
|
let { A: o, B: s, C: a, D: r, E: l, F: d, G: T, H: I } = this;
|
|
1447
1447
|
for (let R = 0; R < 64; R++) {
|
|
1448
|
-
const h = ut(l, 6) ^ ut(l, 11) ^ ut(l, 25), x = I + h + dp(l, d, T) + yp[R] +
|
|
1448
|
+
const h = ut(l, 6) ^ ut(l, 11) ^ ut(l, 25), x = I + h + dp(l, d, T) + yp[R] + At[R] | 0, C = (ut(o, 2) ^ ut(o, 13) ^ ut(o, 22)) + up(o, s, a) | 0;
|
|
1449
1449
|
I = T, T = d, d = l, l = r + x | 0, r = a, a = s, s = o, o = x + C | 0;
|
|
1450
1450
|
}
|
|
1451
1451
|
o = o + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, r = r + this.D | 0, l = l + this.E | 0, d = d + this.F | 0, T = T + this.G | 0, I = I + this.H | 0, this.set(o, s, a, r, l, d, T, I);
|
|
1452
1452
|
}
|
|
1453
1453
|
roundClean() {
|
|
1454
|
-
nn(
|
|
1454
|
+
nn(At);
|
|
1455
1455
|
}
|
|
1456
1456
|
destroy() {
|
|
1457
1457
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), nn(this.buffer);
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
const
|
|
1460
|
+
const Ap = /* @__PURE__ */ ys(() => new vp()), kp = Ap;
|
|
1461
1461
|
function Tp(e, t) {
|
|
1462
|
-
return
|
|
1462
|
+
return kp(Gt(e, { strict: !1 }) ? so(e) : e);
|
|
1463
1463
|
}
|
|
1464
1464
|
function xp(e) {
|
|
1465
1465
|
const { commitment: t, version: n = 1 } = e, o = e.to ?? (typeof t == "string" ? "hex" : "bytes"), s = Tp(t);
|
|
@@ -1475,9 +1475,9 @@ function Ep(e) {
|
|
|
1475
1475
|
}));
|
|
1476
1476
|
return s;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const Lo = 6, vs = 32, co = 4096, As = vs * co, Ho = As * Lo - // terminator byte (0x80).
|
|
1479
1479
|
1 - // zero byte (0x00) appended to each field element.
|
|
1480
|
-
1 * co *
|
|
1480
|
+
1 * co * Lo, ks = 1;
|
|
1481
1481
|
class Sp extends ue {
|
|
1482
1482
|
constructor({ maxSize: t, size: n }) {
|
|
1483
1483
|
super("Blob size is too large.", {
|
|
@@ -1503,7 +1503,7 @@ class Ip extends ue {
|
|
|
1503
1503
|
constructor({ hash: t, version: n }) {
|
|
1504
1504
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1505
1505
|
metaMessages: [
|
|
1506
|
-
`Expected: ${
|
|
1506
|
+
`Expected: ${ks}`,
|
|
1507
1507
|
`Received: ${n}`
|
|
1508
1508
|
],
|
|
1509
1509
|
name: "InvalidVersionedHashVersionError"
|
|
@@ -1522,7 +1522,7 @@ function Cp(e) {
|
|
|
1522
1522
|
const s = [];
|
|
1523
1523
|
let a = !0, r = 0;
|
|
1524
1524
|
for (; a; ) {
|
|
1525
|
-
const l = us(new Uint8Array(
|
|
1525
|
+
const l = us(new Uint8Array(As));
|
|
1526
1526
|
let d = 0;
|
|
1527
1527
|
for (; d < co; ) {
|
|
1528
1528
|
const T = n.slice(r, r + (vs - 1));
|
|
@@ -1772,7 +1772,7 @@ for (let e = 0, t = Jt, n = 1, o = 0; e < 24; e++) {
|
|
|
1772
1772
|
Is.push(s);
|
|
1773
1773
|
}
|
|
1774
1774
|
const Cs = pp(Is, !0), Up = Cs[0], Rp = Cs[1], Wo = (e, t, n) => n > 32 ? gp(e, t, n) : hp(e, t, n), Vo = (e, t, n) => n > 32 ? wp(e, t, n) : bp(e, t, n);
|
|
1775
|
-
function
|
|
1775
|
+
function Mp(e, t = 24) {
|
|
1776
1776
|
const n = new Uint32Array(10);
|
|
1777
1777
|
for (let o = 24 - t; o < 24; o++) {
|
|
1778
1778
|
for (let r = 0; r < 10; r++)
|
|
@@ -1808,7 +1808,7 @@ class lo extends ws {
|
|
|
1808
1808
|
return this._cloneInto();
|
|
1809
1809
|
}
|
|
1810
1810
|
keccak() {
|
|
1811
|
-
Ro(this.state32),
|
|
1811
|
+
Ro(this.state32), Mp(this.state32, this.rounds), Ro(this.state32), this.posOut = 0, this.pos = 0;
|
|
1812
1812
|
}
|
|
1813
1813
|
update(t) {
|
|
1814
1814
|
xn(this), t = io(t), tn(t);
|
|
@@ -1862,7 +1862,7 @@ class lo extends ws {
|
|
|
1862
1862
|
return t || (t = new lo(n, o, s, r, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = o, t.outputLen = s, t.enableXOF = r, t.destroyed = this.destroyed, t;
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const Lp = (e, t, n) => ys(() => new lo(t, e, n)), Hp = Lp(1, 136, 256 / 8);
|
|
1866
1866
|
function Bs(e, t) {
|
|
1867
1867
|
const n = t || "hex", o = Hp(Gt(e, { strict: !1 }) ? so(e) : e);
|
|
1868
1868
|
return n === "bytes" ? o : Vt(o);
|
|
@@ -1939,7 +1939,7 @@ function zp(e) {
|
|
|
1939
1939
|
const o = Je(n), s = Tn(uo(n, 0, 1));
|
|
1940
1940
|
if (o !== 32)
|
|
1941
1941
|
throw new Np({ hash: n, size: o });
|
|
1942
|
-
if (s !==
|
|
1942
|
+
if (s !== ks)
|
|
1943
1943
|
throw new Ip({
|
|
1944
1944
|
hash: n,
|
|
1945
1945
|
version: s
|
|
@@ -2063,16 +2063,16 @@ function Zp(e, t) {
|
|
|
2063
2063
|
l ? ce(l) : "0x",
|
|
2064
2064
|
h ?? [],
|
|
2065
2065
|
...rn(e, t)
|
|
2066
|
-
], U = [],
|
|
2066
|
+
], U = [], ve = [], N = [];
|
|
2067
2067
|
if (x)
|
|
2068
2068
|
for (let $ = 0; $ < x.length; $++) {
|
|
2069
2069
|
const { blob: X, commitment: de, proof: fe } = x[$];
|
|
2070
|
-
U.push(X),
|
|
2070
|
+
U.push(X), ve.push(de), N.push(fe);
|
|
2071
2071
|
}
|
|
2072
2072
|
return Ot([
|
|
2073
2073
|
"0x03",
|
|
2074
2074
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
2075
|
-
_t(x ? [C, U,
|
|
2075
|
+
_t(x ? [C, U, ve, N] : C)
|
|
2076
2076
|
]);
|
|
2077
2077
|
}
|
|
2078
2078
|
function Qp(e, t) {
|
|
@@ -2135,7 +2135,7 @@ function th(e, t) {
|
|
|
2135
2135
|
if (t.v !== x)
|
|
2136
2136
|
throw new Qm({ v: t.v });
|
|
2137
2137
|
return x;
|
|
2138
|
-
})(), R =
|
|
2138
|
+
})(), R = kn(t.r), h = kn(t.s);
|
|
2139
2139
|
T = [
|
|
2140
2140
|
...T,
|
|
2141
2141
|
ce(I),
|
|
@@ -2158,7 +2158,7 @@ function rn(e, t) {
|
|
|
2158
2158
|
return [];
|
|
2159
2159
|
if (typeof o > "u" && typeof s > "u")
|
|
2160
2160
|
return [];
|
|
2161
|
-
const a =
|
|
2161
|
+
const a = kn(n.r), r = kn(n.s);
|
|
2162
2162
|
return [typeof s == "number" ? s ? ce(1) : "0x" : o === 0n ? "0x" : o === 1n ? ce(1) : o === 27n ? "0x" : ce(1), a === "0x00" ? "0x" : a, r === "0x00" ? "0x" : r];
|
|
2163
2163
|
}
|
|
2164
2164
|
const nh = {
|
|
@@ -2470,9 +2470,9 @@ class vh extends ue {
|
|
|
2470
2470
|
`), { name: "InvalidDefinitionTypeError" });
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
const
|
|
2474
|
-
function
|
|
2475
|
-
return
|
|
2473
|
+
const Ah = (e) => Bs(so(e));
|
|
2474
|
+
function kh(e) {
|
|
2475
|
+
return Ah(e);
|
|
2476
2476
|
}
|
|
2477
2477
|
function Th(e, t) {
|
|
2478
2478
|
return e.exec(t)?.groups;
|
|
@@ -2537,7 +2537,7 @@ const Sh = (e) => {
|
|
|
2537
2537
|
return Eh(t);
|
|
2538
2538
|
};
|
|
2539
2539
|
function Os(e) {
|
|
2540
|
-
return
|
|
2540
|
+
return kh(Sh(e));
|
|
2541
2541
|
}
|
|
2542
2542
|
const Us = (e) => uo(Os(e), 0, 4), Nh = /^(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)?$/;
|
|
2543
2543
|
function Ih(e, t) {
|
|
@@ -2719,9 +2719,9 @@ function Rh(e) {
|
|
|
2719
2719
|
[t[2] ? Number(t[2]) : null, t[1]]
|
|
2720
2720
|
) : void 0;
|
|
2721
2721
|
}
|
|
2722
|
-
const
|
|
2723
|
-
function
|
|
2724
|
-
const { abi: t, args: n = [], name: o } = e, s = Gt(o, { strict: !1 }), a = t.filter((l) => s ? l.type === "function" ? Us(l) === o : l.type === "event" ?
|
|
2722
|
+
const Mh = Os;
|
|
2723
|
+
function Lh(e) {
|
|
2724
|
+
const { abi: t, args: n = [], name: o } = e, s = Gt(o, { strict: !1 }), a = t.filter((l) => s ? l.type === "function" ? Us(l) === o : l.type === "event" ? Mh(l) === o : !1 : "name" in l && l.name === o);
|
|
2725
2725
|
if (a.length === 0)
|
|
2726
2726
|
return;
|
|
2727
2727
|
if (a.length === 1)
|
|
@@ -2896,7 +2896,7 @@ async function zh(e, t) {
|
|
|
2896
2896
|
throw new fh();
|
|
2897
2897
|
const o = mo(n);
|
|
2898
2898
|
try {
|
|
2899
|
-
const { accessList: s, blockNumber: a, blockTag: r, data: l, gas: d, gasPrice: T, maxFeePerGas: I, maxPriorityFeePerGas: R, nonce: h, to: x, value: p, ...C } = t,
|
|
2899
|
+
const { accessList: s, blockNumber: a, blockTag: r, data: l, gas: d, gasPrice: T, maxFeePerGas: I, maxPriorityFeePerGas: R, nonce: h, to: x, value: p, ...C } = t, ve = (typeof a == "bigint" ? ce(a) : void 0) || r;
|
|
2900
2900
|
qh(t);
|
|
2901
2901
|
const N = e.chain?.formatters?.transactionRequest?.format, X = (N || Vm)({
|
|
2902
2902
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
@@ -2913,7 +2913,7 @@ async function zh(e, t) {
|
|
|
2913
2913
|
value: p
|
|
2914
2914
|
}, "estimateGas"), { baseFeePerGas: de, gasLimit: fe, priorityFeePerGas: Ce } = await e.request({
|
|
2915
2915
|
method: "linea_estimateGas",
|
|
2916
|
-
params:
|
|
2916
|
+
params: ve ? [X, ve] : [X]
|
|
2917
2917
|
});
|
|
2918
2918
|
return {
|
|
2919
2919
|
baseFeePerGas: BigInt(de),
|
|
@@ -3092,7 +3092,7 @@ function Zh(e) {
|
|
|
3092
3092
|
const { abi: t, args: n, functionName: o } = e;
|
|
3093
3093
|
let s = t[0];
|
|
3094
3094
|
if (o) {
|
|
3095
|
-
const a =
|
|
3095
|
+
const a = Lh({
|
|
3096
3096
|
abi: t,
|
|
3097
3097
|
args: n,
|
|
3098
3098
|
name: o
|
|
@@ -3236,7 +3236,7 @@ const ft = {
|
|
|
3236
3236
|
// '0x0555e30da8f98308edb960aa94c0db47230d2b9c', //wbtc
|
|
3237
3237
|
// ],
|
|
3238
3238
|
// },
|
|
3239
|
-
},
|
|
3239
|
+
}, Ms = (e) => Object.values(ft).find(
|
|
3240
3240
|
(n) => n.chainTypeMoralis === e
|
|
3241
3241
|
)?.chainType || null, Qh = (e) => {
|
|
3242
3242
|
const t = /* @__PURE__ */ new Date(), n = new Date(t);
|
|
@@ -3320,10 +3320,10 @@ function gt(e, t) {
|
|
|
3320
3320
|
o = o.padEnd(t, "0");
|
|
3321
3321
|
return BigInt(`${s ? "-" : ""}${n}${o}`);
|
|
3322
3322
|
}
|
|
3323
|
-
const sb = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ze = "0x0000000000000000000000000000000000000000",
|
|
3323
|
+
const sb = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ze = "0x0000000000000000000000000000000000000000", Ls = eo(
|
|
3324
3324
|
void 0
|
|
3325
3325
|
), bo = () => {
|
|
3326
|
-
const e = to(
|
|
3326
|
+
const e = to(Ls);
|
|
3327
3327
|
if (!e)
|
|
3328
3328
|
throw new Error("useConnect must be used within ConnectProvider");
|
|
3329
3329
|
return {
|
|
@@ -3339,7 +3339,7 @@ const sb = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ze = "0x000000000000000
|
|
|
3339
3339
|
}, ab = ({
|
|
3340
3340
|
children: e,
|
|
3341
3341
|
initialAccount: t
|
|
3342
|
-
}) => /* @__PURE__ */ W(
|
|
3342
|
+
}) => /* @__PURE__ */ W(Ls.Provider, { value: { account: t || null }, children: e }), rb = ({ address: e, chainId: t }) => {
|
|
3343
3343
|
const [n, o] = je(!1), { isChainSupported: s } = bo(), a = Ie(() => {
|
|
3344
3344
|
if (!e) return;
|
|
3345
3345
|
const r = e, l = () => {
|
|
@@ -3355,7 +3355,7 @@ const sb = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ze = "0x000000000000000
|
|
|
3355
3355
|
d.value = r, document.body.appendChild(d), d.select(), document.execCommand("copy"), d.remove(), l();
|
|
3356
3356
|
}
|
|
3357
3357
|
}, [e]);
|
|
3358
|
-
return /* @__PURE__ */ W(ts, { children: We(e || "") && /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ W(ts, { children: We(e || "") && /* @__PURE__ */ Ae("div", { className: "chat-user-info", children: [
|
|
3359
3359
|
t && ft[t]?.logo && /* @__PURE__ */ W("div", { className: "user-avatar", children: /* @__PURE__ */ W(
|
|
3360
3360
|
"img",
|
|
3361
3361
|
{
|
|
@@ -3389,37 +3389,28 @@ const sb = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ze = "0x000000000000000
|
|
|
3389
3389
|
"path",
|
|
3390
3390
|
{
|
|
3391
3391
|
d: "M13.3333 4L6 11.3333L2.66667 8",
|
|
3392
|
-
stroke: "
|
|
3392
|
+
stroke: "#0B3988",
|
|
3393
3393
|
strokeWidth: "2",
|
|
3394
3394
|
strokeLinecap: "round",
|
|
3395
3395
|
strokeLinejoin: "round"
|
|
3396
3396
|
}
|
|
3397
|
-
) }) : /* @__PURE__ */
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
{
|
|
3415
|
-
d: "M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",
|
|
3416
|
-
stroke: "currentColor",
|
|
3417
|
-
strokeWidth: "2",
|
|
3418
|
-
strokeLinecap: "round",
|
|
3419
|
-
strokeLinejoin: "round"
|
|
3420
|
-
}
|
|
3421
|
-
)
|
|
3422
|
-
] })
|
|
3397
|
+
) }) : /* @__PURE__ */ W(
|
|
3398
|
+
"svg",
|
|
3399
|
+
{
|
|
3400
|
+
width: "14",
|
|
3401
|
+
height: "14",
|
|
3402
|
+
viewBox: "0 0 18 18",
|
|
3403
|
+
fill: "none",
|
|
3404
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3405
|
+
children: /* @__PURE__ */ W(
|
|
3406
|
+
"path",
|
|
3407
|
+
{
|
|
3408
|
+
d: "M8.1 15.75H13.23C12.9638 16.4152 12.5041 16.9852 11.9105 17.3863C11.3168 17.7874 10.6165 18.0012 9.9 18H3.6C2.64522 18 1.72955 17.6207 1.05442 16.9456C0.379285 16.2704 0 15.3548 0 14.4V7.2C0.00104929 6.32332 0.321408 5.47704 0.901163 4.81944C1.48092 4.16183 2.28037 3.73792 3.15 3.627V10.8C3.15238 12.1121 3.67466 13.3698 4.60245 14.2975C5.53024 15.2253 6.78791 15.7476 8.1 15.75ZM15.75 3.825H17.658C17.6027 3.74389 17.5393 3.66852 17.469 3.6L14.4 0.531C14.3337 0.460854 14.258 0.400274 14.175 0.351V2.25C14.1769 2.66713 14.3434 3.06664 14.6384 3.3616C14.9334 3.65656 15.3329 3.8231 15.75 3.825ZM15.75 5.175C14.9747 5.17357 14.2315 4.86494 13.6833 4.31671C13.1351 3.76847 12.8264 3.02532 12.825 2.25V0H8.1C7.14522 0 6.22955 0.379285 5.55442 1.05442C4.87928 1.72955 4.5 2.64522 4.5 3.6V10.8C4.5 11.7548 4.87928 12.6704 5.55442 13.3456C6.22955 14.0207 7.14522 14.4 8.1 14.4H14.4C15.3548 14.4 16.2705 14.0207 16.9456 13.3456C17.6207 12.6704 18 11.7548 18 10.8V5.175H15.75Z",
|
|
3409
|
+
fill: "#0B3988"
|
|
3410
|
+
}
|
|
3411
|
+
)
|
|
3412
|
+
}
|
|
3413
|
+
)
|
|
3423
3414
|
}
|
|
3424
3415
|
)
|
|
3425
3416
|
] }) });
|
|
@@ -3450,7 +3441,7 @@ function ub(e, t, n) {
|
|
|
3450
3441
|
function Hs(e, t, n) {
|
|
3451
3442
|
return jo.randomUUID && !e ? jo.randomUUID() : ub(e);
|
|
3452
3443
|
}
|
|
3453
|
-
const fb = "chat_widget_messages", go = fb, Jo = 200,
|
|
3444
|
+
const fb = "chat_widget_messages", go = fb, Jo = 200, Mt = [
|
|
3454
3445
|
{
|
|
3455
3446
|
id: Hs(),
|
|
3456
3447
|
text: `**Welcome! 🚀**
|
|
@@ -3490,12 +3481,12 @@ function bn(e, t) {
|
|
|
3490
3481
|
function pb() {
|
|
3491
3482
|
const { account: e } = bo(), t = mb(e?.address, e?.chainId), [n, o] = je(() => t || "pending"), [s, a] = je(() => {
|
|
3492
3483
|
const I = Ko();
|
|
3493
|
-
return t ? I && I.owner === t ? I.messages :
|
|
3484
|
+
return t ? I && I.owner === t ? I.messages : Mt : I?.messages ?? Mt;
|
|
3494
3485
|
});
|
|
3495
3486
|
if (n === "pending" && t) {
|
|
3496
3487
|
const I = Ko();
|
|
3497
3488
|
I && I.owner === t ? a(I.messages) : bn(t, s), o(t);
|
|
3498
|
-
} else n !== "pending" && t && n !== t && (a(
|
|
3489
|
+
} else n !== "pending" && t && n !== t && (a(Mt), bn(t, Mt), o(t));
|
|
3499
3490
|
lt(() => {
|
|
3500
3491
|
n !== "pending" && bn(n, s);
|
|
3501
3492
|
}, [s, n]), lt(() => {
|
|
@@ -3507,7 +3498,7 @@ function pb() {
|
|
|
3507
3498
|
I.forEach((R) => Pt.removeItem(R));
|
|
3508
3499
|
}, []);
|
|
3509
3500
|
const r = (I, R, h, x, p) => {
|
|
3510
|
-
const C = h ? s.find((
|
|
3501
|
+
const C = h ? s.find((ve) => ve.id === h) : void 0, U = {
|
|
3511
3502
|
id: Hs(),
|
|
3512
3503
|
text: I,
|
|
3513
3504
|
sender: R,
|
|
@@ -3522,8 +3513,8 @@ function pb() {
|
|
|
3522
3513
|
...x && { buttons: x },
|
|
3523
3514
|
...p && { actionData: p }
|
|
3524
3515
|
};
|
|
3525
|
-
return a((
|
|
3526
|
-
const N = [...
|
|
3516
|
+
return a((ve) => {
|
|
3517
|
+
const N = [...ve, U];
|
|
3527
3518
|
return N.length > Jo ? N.slice(N.length - Jo) : N;
|
|
3528
3519
|
}), U;
|
|
3529
3520
|
}, l = (I, R) => {
|
|
@@ -3537,7 +3528,7 @@ function pb() {
|
|
|
3537
3528
|
(h) => h.map((x) => x.id === I ? { ...x, text: R } : x)
|
|
3538
3529
|
);
|
|
3539
3530
|
}, T = Ie(() => {
|
|
3540
|
-
a(
|
|
3531
|
+
a(Mt), bn(t, Mt);
|
|
3541
3532
|
}, [t]);
|
|
3542
3533
|
return {
|
|
3543
3534
|
messages: s,
|
|
@@ -3557,7 +3548,7 @@ const Ws = eo(void 0), hb = () => {
|
|
|
3557
3548
|
children: e,
|
|
3558
3549
|
initialConfig: t
|
|
3559
3550
|
}) => /* @__PURE__ */ W(Ws.Provider, { value: { config: t || null }, children: e });
|
|
3560
|
-
var gb = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Dn = Math.ceil, ot = Math.floor, Ye = "[BigNumber Error] ", Zo = Ye + "Number primitive has more than 15 significant digits: ", ct = 1e14, he = 14, On = 9007199254740991, Un = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],
|
|
3551
|
+
var gb = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Dn = Math.ceil, ot = Math.floor, Ye = "[BigNumber Error] ", Zo = Ye + "Number primitive has more than 15 significant digits: ", ct = 1e14, he = 14, On = 9007199254740991, Un = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], kt = 1e7, He = 1e9;
|
|
3561
3552
|
function Vs(e) {
|
|
3562
3553
|
var t, n, o, s = N.prototype = { constructor: N, toString: null, valueOf: null }, a = new N(1), r = 20, l = 4, d = -7, T = 21, I = -1e7, R = 1e7, h = !1, x = 1, p = 0, C = {
|
|
3563
3554
|
prefix: "",
|
|
@@ -3569,9 +3560,9 @@ function Vs(e) {
|
|
|
3569
3560
|
fractionGroupSeparator: " ",
|
|
3570
3561
|
// non-breaking space
|
|
3571
3562
|
suffix: ""
|
|
3572
|
-
}, U = "0123456789abcdefghijklmnopqrstuvwxyz",
|
|
3563
|
+
}, U = "0123456789abcdefghijklmnopqrstuvwxyz", ve = !0;
|
|
3573
3564
|
function N(c, u) {
|
|
3574
|
-
var i, b, g, y, v, w,
|
|
3565
|
+
var i, b, g, y, v, w, k, A, E = this;
|
|
3575
3566
|
if (!(E instanceof N)) return new N(c, u);
|
|
3576
3567
|
if (u == null) {
|
|
3577
3568
|
if (c && c._isBigNumber === !0) {
|
|
@@ -3584,54 +3575,54 @@ function Vs(e) {
|
|
|
3584
3575
|
y > R ? E.c = E.e = null : (E.e = y, E.c = [c]);
|
|
3585
3576
|
return;
|
|
3586
3577
|
}
|
|
3587
|
-
|
|
3578
|
+
A = String(c);
|
|
3588
3579
|
} else {
|
|
3589
|
-
if (!gb.test(
|
|
3590
|
-
E.s =
|
|
3580
|
+
if (!gb.test(A = String(c))) return o(E, A, w);
|
|
3581
|
+
E.s = A.charCodeAt(0) == 45 ? (A = A.slice(1), -1) : 1;
|
|
3591
3582
|
}
|
|
3592
|
-
(y =
|
|
3583
|
+
(y = A.indexOf(".")) > -1 && (A = A.replace(".", "")), (v = A.search(/e/i)) > 0 ? (y < 0 && (y = v), y += +A.slice(v + 1), A = A.substring(0, v)) : y < 0 && (y = A.length);
|
|
3593
3584
|
} else {
|
|
3594
|
-
if (Fe(u, 2, U.length, "Base"), u == 10 &&
|
|
3585
|
+
if (Fe(u, 2, U.length, "Base"), u == 10 && ve)
|
|
3595
3586
|
return E = new N(c), fe(E, r + E.e + 1, l);
|
|
3596
|
-
if (
|
|
3597
|
-
if (c * 0 != 0) return o(E,
|
|
3598
|
-
if (E.s = 1 / c < 0 ? (
|
|
3587
|
+
if (A = String(c), w = typeof c == "number") {
|
|
3588
|
+
if (c * 0 != 0) return o(E, A, w, u);
|
|
3589
|
+
if (E.s = 1 / c < 0 ? (A = A.slice(1), -1) : 1, N.DEBUG && A.replace(/^0\.0*|\./, "").length > 15)
|
|
3599
3590
|
throw Error(Zo + c);
|
|
3600
3591
|
} else
|
|
3601
|
-
E.s =
|
|
3602
|
-
for (i = U.slice(0, u), y = v = 0,
|
|
3603
|
-
if (i.indexOf(b =
|
|
3592
|
+
E.s = A.charCodeAt(0) === 45 ? (A = A.slice(1), -1) : 1;
|
|
3593
|
+
for (i = U.slice(0, u), y = v = 0, k = A.length; v < k; v++)
|
|
3594
|
+
if (i.indexOf(b = A.charAt(v)) < 0) {
|
|
3604
3595
|
if (b == ".") {
|
|
3605
3596
|
if (v > y) {
|
|
3606
|
-
y =
|
|
3597
|
+
y = k;
|
|
3607
3598
|
continue;
|
|
3608
3599
|
}
|
|
3609
|
-
} else if (!g && (
|
|
3600
|
+
} else if (!g && (A == A.toUpperCase() && (A = A.toLowerCase()) || A == A.toLowerCase() && (A = A.toUpperCase()))) {
|
|
3610
3601
|
g = !0, v = -1, y = 0;
|
|
3611
3602
|
continue;
|
|
3612
3603
|
}
|
|
3613
3604
|
return o(E, String(c), w, u);
|
|
3614
3605
|
}
|
|
3615
|
-
w = !1,
|
|
3606
|
+
w = !1, A = n(A, u, 10, E.s), (y = A.indexOf(".")) > -1 ? A = A.replace(".", "") : y = A.length;
|
|
3616
3607
|
}
|
|
3617
|
-
for (v = 0;
|
|
3618
|
-
for (
|
|
3619
|
-
if (
|
|
3620
|
-
if (
|
|
3608
|
+
for (v = 0; A.charCodeAt(v) === 48; v++) ;
|
|
3609
|
+
for (k = A.length; A.charCodeAt(--k) === 48; ) ;
|
|
3610
|
+
if (A = A.slice(v, ++k)) {
|
|
3611
|
+
if (k -= v, w && N.DEBUG && k > 15 && (c > On || c !== ot(c)))
|
|
3621
3612
|
throw Error(Zo + E.s * c);
|
|
3622
3613
|
if ((y = y - v - 1) > R)
|
|
3623
3614
|
E.c = E.e = null;
|
|
3624
3615
|
else if (y < I)
|
|
3625
3616
|
E.c = [E.e = 0];
|
|
3626
3617
|
else {
|
|
3627
|
-
if (E.e = y, E.c = [], v = (y + 1) % he, y < 0 && (v += he), v <
|
|
3628
|
-
for (v && E.c.push(+
|
|
3629
|
-
E.c.push(+
|
|
3630
|
-
v = he - (
|
|
3618
|
+
if (E.e = y, E.c = [], v = (y + 1) % he, y < 0 && (v += he), v < k) {
|
|
3619
|
+
for (v && E.c.push(+A.slice(0, v)), k -= he; v < k; )
|
|
3620
|
+
E.c.push(+A.slice(v, v += he));
|
|
3621
|
+
v = he - (A = A.slice(v)).length;
|
|
3631
3622
|
} else
|
|
3632
|
-
v -=
|
|
3633
|
-
for (; v--;
|
|
3634
|
-
E.c.push(+
|
|
3623
|
+
v -= k;
|
|
3624
|
+
for (; v--; A += "0") ;
|
|
3625
|
+
E.c.push(+A);
|
|
3635
3626
|
}
|
|
3636
3627
|
} else
|
|
3637
3628
|
E.c = [E.e = 0];
|
|
@@ -3663,7 +3654,7 @@ function Vs(e) {
|
|
|
3663
3654
|
else throw Error(Ye + u + " not an object: " + i);
|
|
3664
3655
|
if (c.hasOwnProperty(u = "ALPHABET"))
|
|
3665
3656
|
if (i = c[u], typeof i == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(i))
|
|
3666
|
-
|
|
3657
|
+
ve = i.slice(0, 10) == "0123456789", U = i;
|
|
3667
3658
|
else
|
|
3668
3659
|
throw Error(Ye + u + " invalid: " + i);
|
|
3669
3660
|
} else
|
|
@@ -3709,30 +3700,30 @@ function Vs(e) {
|
|
|
3709
3700
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
3710
3701
|
};
|
|
3711
3702
|
return function(i) {
|
|
3712
|
-
var b, g, y, v, w,
|
|
3703
|
+
var b, g, y, v, w, k = 0, A = [], E = new N(a);
|
|
3713
3704
|
if (i == null ? i = r : Fe(i, 0, He), v = Dn(i / he), h)
|
|
3714
3705
|
if (crypto.getRandomValues) {
|
|
3715
|
-
for (b = crypto.getRandomValues(new Uint32Array(v *= 2));
|
|
3716
|
-
w = b[
|
|
3717
|
-
|
|
3706
|
+
for (b = crypto.getRandomValues(new Uint32Array(v *= 2)); k < v; )
|
|
3707
|
+
w = b[k] * 131072 + (b[k + 1] >>> 11), w >= 9e15 ? (g = crypto.getRandomValues(new Uint32Array(2)), b[k] = g[0], b[k + 1] = g[1]) : (A.push(w % 1e14), k += 2);
|
|
3708
|
+
k = v / 2;
|
|
3718
3709
|
} else if (crypto.randomBytes) {
|
|
3719
|
-
for (b = crypto.randomBytes(v *= 7);
|
|
3720
|
-
w = (b[
|
|
3721
|
-
|
|
3710
|
+
for (b = crypto.randomBytes(v *= 7); k < v; )
|
|
3711
|
+
w = (b[k] & 31) * 281474976710656 + b[k + 1] * 1099511627776 + b[k + 2] * 4294967296 + b[k + 3] * 16777216 + (b[k + 4] << 16) + (b[k + 5] << 8) + b[k + 6], w >= 9e15 ? crypto.randomBytes(7).copy(b, k) : (A.push(w % 1e14), k += 7);
|
|
3712
|
+
k = v / 7;
|
|
3722
3713
|
} else
|
|
3723
3714
|
throw h = !1, Error(Ye + "crypto unavailable");
|
|
3724
3715
|
if (!h)
|
|
3725
|
-
for (;
|
|
3726
|
-
w = u(), w < 9e15 && (k
|
|
3727
|
-
for (v =
|
|
3728
|
-
if (
|
|
3729
|
-
|
|
3716
|
+
for (; k < v; )
|
|
3717
|
+
w = u(), w < 9e15 && (A[k++] = w % 1e14);
|
|
3718
|
+
for (v = A[--k], i %= he, v && i && (w = Un[he - i], A[k] = ot(v / w) * w); A[k] === 0; A.pop(), k--) ;
|
|
3719
|
+
if (k < 0)
|
|
3720
|
+
A = [y = 0];
|
|
3730
3721
|
else {
|
|
3731
|
-
for (y = -1;
|
|
3732
|
-
for (
|
|
3733
|
-
|
|
3722
|
+
for (y = -1; A[0] === 0; A.splice(0, 1), y -= he) ;
|
|
3723
|
+
for (k = 1, w = A[0]; w >= 10; w /= 10, k++) ;
|
|
3724
|
+
k < he && (y -= he - k);
|
|
3734
3725
|
}
|
|
3735
|
-
return E.e = y, E.c =
|
|
3726
|
+
return E.e = y, E.c = A, E;
|
|
3736
3727
|
};
|
|
3737
3728
|
})(), N.sum = function() {
|
|
3738
3729
|
for (var c = 1, u = arguments, i = new N(u[0]); c < u.length; ) i = i.plus(u[c++]);
|
|
@@ -3740,52 +3731,52 @@ function Vs(e) {
|
|
|
3740
3731
|
}, n = /* @__PURE__ */ (function() {
|
|
3741
3732
|
var c = "0123456789";
|
|
3742
3733
|
function u(i, b, g, y) {
|
|
3743
|
-
for (var v, w = [0],
|
|
3744
|
-
for (
|
|
3745
|
-
for (w[0] += y.indexOf(i.charAt(
|
|
3734
|
+
for (var v, w = [0], k, A = 0, E = i.length; A < E; ) {
|
|
3735
|
+
for (k = w.length; k--; w[k] *= b) ;
|
|
3736
|
+
for (w[0] += y.indexOf(i.charAt(A++)), v = 0; v < w.length; v++)
|
|
3746
3737
|
w[v] > g - 1 && (w[v + 1] == null && (w[v + 1] = 0), w[v + 1] += w[v] / g | 0, w[v] %= g);
|
|
3747
3738
|
}
|
|
3748
3739
|
return w.reverse();
|
|
3749
3740
|
}
|
|
3750
3741
|
return function(i, b, g, y, v) {
|
|
3751
|
-
var w,
|
|
3752
|
-
for (
|
|
3742
|
+
var w, k, A, E, F, q, oe, me, ke = i.indexOf("."), Ee = r, j = l;
|
|
3743
|
+
for (ke >= 0 && (E = p, p = 0, i = i.replace(".", ""), me = new N(b), q = me.pow(i.length - ke), p = E, me.c = u(
|
|
3753
3744
|
bt(tt(q.c), q.e, "0"),
|
|
3754
3745
|
10,
|
|
3755
3746
|
g,
|
|
3756
3747
|
c
|
|
3757
|
-
), me.e = me.c.length), oe = u(i, b, g, v ? (w = U, c) : (w = c, U)),
|
|
3748
|
+
), me.e = me.c.length), oe = u(i, b, g, v ? (w = U, c) : (w = c, U)), A = E = oe.length; oe[--E] == 0; oe.pop()) ;
|
|
3758
3749
|
if (!oe[0]) return w.charAt(0);
|
|
3759
|
-
if (
|
|
3750
|
+
if (ke < 0 ? --A : (q.c = oe, q.e = A, q.s = y, q = t(q, me, Ee, j, g), oe = q.c, F = q.r, A = q.e), k = A + Ee + 1, ke = oe[k], E = g / 2, F = F || k < 0 || oe[k + 1] != null, F = j < 4 ? (ke != null || F) && (j == 0 || j == (q.s < 0 ? 3 : 2)) : ke > E || ke == E && (j == 4 || F || j == 6 && oe[k - 1] & 1 || j == (q.s < 0 ? 8 : 7)), k < 1 || !oe[0])
|
|
3760
3751
|
i = F ? bt(w.charAt(1), -Ee, w.charAt(0)) : w.charAt(0);
|
|
3761
3752
|
else {
|
|
3762
|
-
if (oe.length =
|
|
3763
|
-
for (--g; ++oe[--
|
|
3764
|
-
oe[
|
|
3753
|
+
if (oe.length = k, F)
|
|
3754
|
+
for (--g; ++oe[--k] > g; )
|
|
3755
|
+
oe[k] = 0, k || (++A, oe = [1].concat(oe));
|
|
3765
3756
|
for (E = oe.length; !oe[--E]; ) ;
|
|
3766
|
-
for (
|
|
3767
|
-
i = bt(i,
|
|
3757
|
+
for (ke = 0, i = ""; ke <= E; i += w.charAt(oe[ke++])) ;
|
|
3758
|
+
i = bt(i, A, w.charAt(0));
|
|
3768
3759
|
}
|
|
3769
3760
|
return i;
|
|
3770
3761
|
};
|
|
3771
3762
|
})(), t = /* @__PURE__ */ (function() {
|
|
3772
3763
|
function c(b, g, y) {
|
|
3773
|
-
var v, w,
|
|
3764
|
+
var v, w, k, A, E = 0, F = b.length, q = g % kt, oe = g / kt | 0;
|
|
3774
3765
|
for (b = b.slice(); F--; )
|
|
3775
|
-
|
|
3766
|
+
k = b[F] % kt, A = b[F] / kt | 0, v = oe * k + A * q, w = q * k + v % kt * kt + E, E = (w / y | 0) + (v / kt | 0) + oe * A, b[F] = w % y;
|
|
3776
3767
|
return E && (b = [E].concat(b)), b;
|
|
3777
3768
|
}
|
|
3778
3769
|
function u(b, g, y, v) {
|
|
3779
|
-
var w,
|
|
3770
|
+
var w, k;
|
|
3780
3771
|
if (y != v)
|
|
3781
|
-
|
|
3772
|
+
k = y > v ? 1 : -1;
|
|
3782
3773
|
else
|
|
3783
|
-
for (w =
|
|
3774
|
+
for (w = k = 0; w < y; w++)
|
|
3784
3775
|
if (b[w] != g[w]) {
|
|
3785
|
-
|
|
3776
|
+
k = b[w] > g[w] ? 1 : -1;
|
|
3786
3777
|
break;
|
|
3787
3778
|
}
|
|
3788
|
-
return
|
|
3779
|
+
return k;
|
|
3789
3780
|
}
|
|
3790
3781
|
function i(b, g, y, v) {
|
|
3791
3782
|
for (var w = 0; y--; )
|
|
@@ -3793,57 +3784,57 @@ function Vs(e) {
|
|
|
3793
3784
|
for (; !b[0] && b.length > 1; b.splice(0, 1)) ;
|
|
3794
3785
|
}
|
|
3795
3786
|
return function(b, g, y, v, w) {
|
|
3796
|
-
var
|
|
3787
|
+
var k, A, E, F, q, oe, me, ke, Ee, j, pe, xe, $e, at, Xe, _e, Ge, Le = b.s == g.s ? 1 : -1, De = b.c, Te = g.c;
|
|
3797
3788
|
if (!De || !De[0] || !Te || !Te[0])
|
|
3798
3789
|
return new N(
|
|
3799
3790
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
3800
3791
|
!b.s || !g.s || (De ? Te && De[0] == Te[0] : !Te) ? NaN : (
|
|
3801
3792
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
3802
|
-
De && De[0] == 0 || !Te ?
|
|
3793
|
+
De && De[0] == 0 || !Te ? Le * 0 : Le / 0
|
|
3803
3794
|
)
|
|
3804
3795
|
);
|
|
3805
|
-
for (
|
|
3806
|
-
if (Te[E] > (De[E] || 0) &&
|
|
3796
|
+
for (ke = new N(Le), Ee = ke.c = [], A = b.e - g.e, Le = y + A + 1, w || (w = ct, A = st(b.e / he) - st(g.e / he), Le = Le / he | 0), E = 0; Te[E] == (De[E] || 0); E++) ;
|
|
3797
|
+
if (Te[E] > (De[E] || 0) && A--, Le < 0)
|
|
3807
3798
|
Ee.push(1), F = !0;
|
|
3808
3799
|
else {
|
|
3809
|
-
for (at = De.length, _e = Te.length, E = 0,
|
|
3800
|
+
for (at = De.length, _e = Te.length, E = 0, Le += 2, q = ot(w / (Te[0] + 1)), q > 1 && (Te = c(Te, q, w), De = c(De, q, w), _e = Te.length, at = De.length), $e = _e, j = De.slice(0, _e), pe = j.length; pe < _e; j[pe++] = 0) ;
|
|
3810
3801
|
Ge = Te.slice(), Ge = [0].concat(Ge), Xe = Te[0], Te[1] >= w / 2 && Xe++;
|
|
3811
3802
|
do {
|
|
3812
|
-
if (q = 0,
|
|
3803
|
+
if (q = 0, k = u(Te, j, _e, pe), k < 0) {
|
|
3813
3804
|
if (xe = j[0], _e != pe && (xe = xe * w + (j[1] || 0)), q = ot(xe / Xe), q > 1)
|
|
3814
3805
|
for (q >= w && (q = w - 1), oe = c(Te, q, w), me = oe.length, pe = j.length; u(oe, j, me, pe) == 1; )
|
|
3815
|
-
q--, i(oe, _e < me ? Ge : Te, me, w), me = oe.length,
|
|
3806
|
+
q--, i(oe, _e < me ? Ge : Te, me, w), me = oe.length, k = 1;
|
|
3816
3807
|
else
|
|
3817
|
-
q == 0 && (
|
|
3818
|
-
if (me < pe && (oe = [0].concat(oe)), i(j, oe, pe, w), pe = j.length,
|
|
3808
|
+
q == 0 && (k = q = 1), oe = Te.slice(), me = oe.length;
|
|
3809
|
+
if (me < pe && (oe = [0].concat(oe)), i(j, oe, pe, w), pe = j.length, k == -1)
|
|
3819
3810
|
for (; u(Te, j, _e, pe) < 1; )
|
|
3820
3811
|
q++, i(j, _e < pe ? Ge : Te, pe, w), pe = j.length;
|
|
3821
|
-
} else
|
|
3812
|
+
} else k === 0 && (q++, j = [0]);
|
|
3822
3813
|
Ee[E++] = q, j[0] ? j[pe++] = De[$e] || 0 : (j = [De[$e]], pe = 1);
|
|
3823
|
-
} while (($e++ < at || j[0] != null) &&
|
|
3814
|
+
} while (($e++ < at || j[0] != null) && Le--);
|
|
3824
3815
|
F = j[0] != null, Ee[0] || Ee.splice(0, 1);
|
|
3825
3816
|
}
|
|
3826
3817
|
if (w == ct) {
|
|
3827
|
-
for (E = 1,
|
|
3828
|
-
fe(
|
|
3818
|
+
for (E = 1, Le = Ee[0]; Le >= 10; Le /= 10, E++) ;
|
|
3819
|
+
fe(ke, y + (ke.e = E + A * he - 1) + 1, v, F);
|
|
3829
3820
|
} else
|
|
3830
|
-
|
|
3831
|
-
return
|
|
3821
|
+
ke.e = A, ke.r = +F;
|
|
3822
|
+
return ke;
|
|
3832
3823
|
};
|
|
3833
3824
|
})();
|
|
3834
3825
|
function $(c, u, i, b) {
|
|
3835
|
-
var g, y, v, w,
|
|
3826
|
+
var g, y, v, w, k;
|
|
3836
3827
|
if (i == null ? i = l : Fe(i, 0, 8), !c.c) return c.toString();
|
|
3837
3828
|
if (g = c.c[0], v = c.e, u == null)
|
|
3838
|
-
|
|
3839
|
-
else if (c = fe(new N(c), u, i), y = c.e,
|
|
3840
|
-
for (; w < u;
|
|
3841
|
-
|
|
3842
|
-
} else if (u -= v + (b === 2 && y > v),
|
|
3843
|
-
if (--u > 0) for (
|
|
3829
|
+
k = tt(c.c), k = b == 1 || b == 2 && (v <= d || v >= T) ? wn(k, v) : bt(k, v, "0");
|
|
3830
|
+
else if (c = fe(new N(c), u, i), y = c.e, k = tt(c.c), w = k.length, b == 1 || b == 2 && (u <= y || y <= d)) {
|
|
3831
|
+
for (; w < u; k += "0", w++) ;
|
|
3832
|
+
k = wn(k, y);
|
|
3833
|
+
} else if (u -= v + (b === 2 && y > v), k = bt(k, y, "0"), y + 1 > w) {
|
|
3834
|
+
if (--u > 0) for (k += "."; u--; k += "0") ;
|
|
3844
3835
|
} else if (u += y - w, u > 0)
|
|
3845
|
-
for (y + 1 == w && (
|
|
3846
|
-
return c.s < 0 && g ? "-" +
|
|
3836
|
+
for (y + 1 == w && (k += "."); u--; k += "0") ;
|
|
3837
|
+
return c.s < 0 && g ? "-" + k : k;
|
|
3847
3838
|
}
|
|
3848
3839
|
function X(c, u) {
|
|
3849
3840
|
for (var i, b, g = 1, y = new N(c[0]); g < c.length; g++)
|
|
@@ -3857,55 +3848,55 @@ function Vs(e) {
|
|
|
3857
3848
|
}
|
|
3858
3849
|
o = /* @__PURE__ */ (function() {
|
|
3859
3850
|
var c = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, i = /^\.([^.]+)$/, b = /^-?(Infinity|NaN)$/, g = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
3860
|
-
return function(y, v, w,
|
|
3861
|
-
var
|
|
3851
|
+
return function(y, v, w, k) {
|
|
3852
|
+
var A, E = w ? v : v.replace(g, "");
|
|
3862
3853
|
if (b.test(E))
|
|
3863
3854
|
y.s = isNaN(E) ? null : E < 0 ? -1 : 1;
|
|
3864
3855
|
else {
|
|
3865
3856
|
if (!w && (E = E.replace(c, function(F, q, oe) {
|
|
3866
|
-
return
|
|
3867
|
-
}),
|
|
3868
|
-
return new N(E,
|
|
3857
|
+
return A = (oe = oe.toLowerCase()) == "x" ? 16 : oe == "b" ? 2 : 8, !k || k == A ? q : F;
|
|
3858
|
+
}), k && (A = k, E = E.replace(u, "$1").replace(i, "0.$1")), v != E))
|
|
3859
|
+
return new N(E, A);
|
|
3869
3860
|
if (N.DEBUG)
|
|
3870
|
-
throw Error(Ye + "Not a" + (
|
|
3861
|
+
throw Error(Ye + "Not a" + (k ? " base " + k : "") + " number: " + v);
|
|
3871
3862
|
y.s = null;
|
|
3872
3863
|
}
|
|
3873
3864
|
y.c = y.e = null;
|
|
3874
3865
|
};
|
|
3875
3866
|
})();
|
|
3876
3867
|
function fe(c, u, i, b) {
|
|
3877
|
-
var g, y, v, w,
|
|
3868
|
+
var g, y, v, w, k, A, E, F = c.c, q = Un;
|
|
3878
3869
|
if (F) {
|
|
3879
3870
|
e: {
|
|
3880
3871
|
for (g = 1, w = F[0]; w >= 10; w /= 10, g++) ;
|
|
3881
3872
|
if (y = u - g, y < 0)
|
|
3882
|
-
y += he, v = u,
|
|
3883
|
-
else if (
|
|
3873
|
+
y += he, v = u, k = F[A = 0], E = ot(k / q[g - v - 1] % 10);
|
|
3874
|
+
else if (A = Dn((y + 1) / he), A >= F.length)
|
|
3884
3875
|
if (b) {
|
|
3885
|
-
for (; F.length <=
|
|
3886
|
-
|
|
3876
|
+
for (; F.length <= A; F.push(0)) ;
|
|
3877
|
+
k = E = 0, g = 1, y %= he, v = y - he + 1;
|
|
3887
3878
|
} else
|
|
3888
3879
|
break e;
|
|
3889
3880
|
else {
|
|
3890
|
-
for (
|
|
3891
|
-
y %= he, v = y - he + g, E = v < 0 ? 0 : ot(
|
|
3881
|
+
for (k = w = F[A], g = 1; w >= 10; w /= 10, g++) ;
|
|
3882
|
+
y %= he, v = y - he + g, E = v < 0 ? 0 : ot(k / q[g - v - 1] % 10);
|
|
3892
3883
|
}
|
|
3893
3884
|
if (b = b || u < 0 || // Are there any non-zero digits after the rounding digit?
|
|
3894
3885
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
3895
3886
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
3896
|
-
F[
|
|
3897
|
-
(y > 0 ? v > 0 ?
|
|
3887
|
+
F[A + 1] != null || (v < 0 ? k : k % q[g - v - 1]), b = i < 4 ? (E || b) && (i == 0 || i == (c.s < 0 ? 3 : 2)) : E > 5 || E == 5 && (i == 4 || b || i == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
3888
|
+
(y > 0 ? v > 0 ? k / q[g - v] : 0 : F[A - 1]) % 10 & 1 || i == (c.s < 0 ? 8 : 7)), u < 1 || !F[0])
|
|
3898
3889
|
return F.length = 0, b ? (u -= c.e + 1, F[0] = q[(he - u % he) % he], c.e = -u || 0) : F[0] = c.e = 0, c;
|
|
3899
|
-
if (y == 0 ? (F.length =
|
|
3890
|
+
if (y == 0 ? (F.length = A, w = 1, A--) : (F.length = A + 1, w = q[he - y], F[A] = v > 0 ? ot(k / q[g - v] % q[v]) * w : 0), b)
|
|
3900
3891
|
for (; ; )
|
|
3901
|
-
if (
|
|
3892
|
+
if (A == 0) {
|
|
3902
3893
|
for (y = 1, v = F[0]; v >= 10; v /= 10, y++) ;
|
|
3903
3894
|
for (v = F[0] += w, w = 1; v >= 10; v /= 10, w++) ;
|
|
3904
3895
|
y != w && (c.e++, F[0] == ct && (F[0] = 1));
|
|
3905
3896
|
break;
|
|
3906
3897
|
} else {
|
|
3907
|
-
if (F[
|
|
3908
|
-
F[
|
|
3898
|
+
if (F[A] += w, F[A] != ct) break;
|
|
3899
|
+
F[A--] = 0, w = 1;
|
|
3909
3900
|
}
|
|
3910
3901
|
for (y = F.length; F[--y] === 0; F.pop()) ;
|
|
3911
3902
|
}
|
|
@@ -3934,36 +3925,36 @@ function Vs(e) {
|
|
|
3934
3925
|
}, s.dividedToIntegerBy = s.idiv = function(c, u) {
|
|
3935
3926
|
return t(this, new N(c, u), 0, 1);
|
|
3936
3927
|
}, s.exponentiatedBy = s.pow = function(c, u) {
|
|
3937
|
-
var i, b, g, y, v, w,
|
|
3928
|
+
var i, b, g, y, v, w, k, A, E, F = this;
|
|
3938
3929
|
if (c = new N(c), c.c && !c.isInteger())
|
|
3939
3930
|
throw Error(Ye + "Exponent not an integer: " + Ce(c));
|
|
3940
3931
|
if (u != null && (u = new N(u)), w = c.e > 14, !F.c || !F.c[0] || F.c[0] == 1 && !F.e && F.c.length == 1 || !c.c || !c.c[0])
|
|
3941
3932
|
return E = new N(Math.pow(+Ce(F), w ? c.s * (2 - gn(c)) : +Ce(c))), u ? E.mod(u) : E;
|
|
3942
|
-
if (
|
|
3933
|
+
if (k = c.s < 0, u) {
|
|
3943
3934
|
if (u.c ? !u.c[0] : !u.s) return new N(NaN);
|
|
3944
|
-
b = !
|
|
3935
|
+
b = !k && F.isInteger() && u.isInteger(), b && (F = F.mod(u));
|
|
3945
3936
|
} else {
|
|
3946
3937
|
if (c.e > 9 && (F.e > 0 || F.e < -1 || (F.e == 0 ? F.c[0] > 1 || w && F.c[1] >= 24e7 : F.c[0] < 8e13 || w && F.c[0] <= 9999975e7)))
|
|
3947
|
-
return y = F.s < 0 && gn(c) ? -0 : 0, F.e > -1 && (y = 1 / y), new N(
|
|
3938
|
+
return y = F.s < 0 && gn(c) ? -0 : 0, F.e > -1 && (y = 1 / y), new N(k ? 1 / y : y);
|
|
3948
3939
|
p && (y = Dn(p / he + 2));
|
|
3949
3940
|
}
|
|
3950
|
-
for (w ? (i = new N(0.5),
|
|
3951
|
-
if (
|
|
3941
|
+
for (w ? (i = new N(0.5), k && (c.s = 1), A = gn(c)) : (g = Math.abs(+Ce(c)), A = g % 2), E = new N(a); ; ) {
|
|
3942
|
+
if (A) {
|
|
3952
3943
|
if (E = E.times(F), !E.c) break;
|
|
3953
3944
|
y ? E.c.length > y && (E.c.length = y) : b && (E = E.mod(u));
|
|
3954
3945
|
}
|
|
3955
3946
|
if (g) {
|
|
3956
3947
|
if (g = ot(g / 2), g === 0) break;
|
|
3957
|
-
|
|
3948
|
+
A = g % 2;
|
|
3958
3949
|
} else if (c = c.times(i), fe(c, c.e + 1, 1), c.e > 14)
|
|
3959
|
-
|
|
3950
|
+
A = gn(c);
|
|
3960
3951
|
else {
|
|
3961
3952
|
if (g = +Ce(c), g === 0) break;
|
|
3962
|
-
|
|
3953
|
+
A = g % 2;
|
|
3963
3954
|
}
|
|
3964
3955
|
F = F.times(F), y ? F.c && F.c.length > y && (F.c.length = y) : b && (F = F.mod(u));
|
|
3965
3956
|
}
|
|
3966
|
-
return b ? E : (
|
|
3957
|
+
return b ? E : (k && (E = a.div(E)), u ? E.mod(u) : y ? fe(E, p, l, v) : E);
|
|
3967
3958
|
}, s.integerValue = function(c) {
|
|
3968
3959
|
var u = new N(this);
|
|
3969
3960
|
return c == null ? c = l : Fe(c, 0, 8), fe(u, u.e + 1, c);
|
|
@@ -3994,8 +3985,8 @@ function Vs(e) {
|
|
|
3994
3985
|
if (c = new N(c, u), u = c.s, !w || !u) return new N(NaN);
|
|
3995
3986
|
if (w != u)
|
|
3996
3987
|
return c.s = -u, v.plus(c);
|
|
3997
|
-
var
|
|
3998
|
-
if (!
|
|
3988
|
+
var k = v.e / he, A = c.e / he, E = v.c, F = c.c;
|
|
3989
|
+
if (!k || !A) {
|
|
3999
3990
|
if (!E || !F) return E ? (c.s = -u, c) : new N(F ? v : NaN);
|
|
4000
3991
|
if (!E[0] || !F[0])
|
|
4001
3992
|
return F[0] ? (c.s = -u, c) : new N(E[0] ? v : (
|
|
@@ -4003,8 +3994,8 @@ function Vs(e) {
|
|
|
4003
3994
|
l == 3 ? -0 : 0
|
|
4004
3995
|
));
|
|
4005
3996
|
}
|
|
4006
|
-
if (
|
|
4007
|
-
for ((y = w < 0) ? (w = -w, g = E) : (
|
|
3997
|
+
if (k = st(k), A = st(A), E = E.slice(), w = k - A) {
|
|
3998
|
+
for ((y = w < 0) ? (w = -w, g = E) : (A = k, g = F), g.reverse(), u = w; u--; g.push(0)) ;
|
|
4008
3999
|
g.reverse();
|
|
4009
4000
|
} else
|
|
4010
4001
|
for (b = (y = (w = E.length) < (u = F.length)) ? w : u, w = u = 0; u < b; u++)
|
|
@@ -4020,19 +4011,19 @@ function Vs(e) {
|
|
|
4020
4011
|
}
|
|
4021
4012
|
E[b] -= F[b];
|
|
4022
4013
|
}
|
|
4023
|
-
for (; E[0] == 0; E.splice(0, 1), --
|
|
4024
|
-
return E[0] ? de(c, E,
|
|
4014
|
+
for (; E[0] == 0; E.splice(0, 1), --A) ;
|
|
4015
|
+
return E[0] ? de(c, E, A) : (c.s = l == 3 ? -1 : 1, c.c = [c.e = 0], c);
|
|
4025
4016
|
}, s.modulo = s.mod = function(c, u) {
|
|
4026
4017
|
var i, b, g = this;
|
|
4027
4018
|
return c = new N(c, u), !g.c || !c.s || c.c && !c.c[0] ? new N(NaN) : !c.c || g.c && !g.c[0] ? new N(g) : (x == 9 ? (b = c.s, c.s = 1, i = t(g, c, 0, 3), c.s = b, i.s *= b) : i = t(g, c, 0, x), c = g.minus(i.times(c)), !c.c[0] && x == 1 && (c.s = g.s), c);
|
|
4028
4019
|
}, s.multipliedBy = s.times = function(c, u) {
|
|
4029
|
-
var i, b, g, y, v, w,
|
|
4020
|
+
var i, b, g, y, v, w, k, A, E, F, q, oe, me, ke, Ee, j = this, pe = j.c, xe = (c = new N(c, u)).c;
|
|
4030
4021
|
if (!pe || !xe || !pe[0] || !xe[0])
|
|
4031
4022
|
return !j.s || !c.s || pe && !pe[0] && !xe || xe && !xe[0] && !pe ? c.c = c.e = c.s = null : (c.s *= j.s, !pe || !xe ? c.c = c.e = null : (c.c = [0], c.e = 0)), c;
|
|
4032
|
-
for (b = st(j.e / he) + st(c.e / he), c.s *= j.s,
|
|
4033
|
-
for (
|
|
4034
|
-
for (i = 0, q = xe[g] % Ee, oe = xe[g] / Ee | 0, v =
|
|
4035
|
-
|
|
4023
|
+
for (b = st(j.e / he) + st(c.e / he), c.s *= j.s, k = pe.length, F = xe.length, k < F && (me = pe, pe = xe, xe = me, g = k, k = F, F = g), g = k + F, me = []; g--; me.push(0)) ;
|
|
4024
|
+
for (ke = ct, Ee = kt, g = F; --g >= 0; ) {
|
|
4025
|
+
for (i = 0, q = xe[g] % Ee, oe = xe[g] / Ee | 0, v = k, y = g + v; y > g; )
|
|
4026
|
+
A = pe[--v] % Ee, E = pe[v] / Ee | 0, w = oe * A + E * q, A = q * A + w % Ee * Ee + me[y] + i, i = (A / ke | 0) + (w / Ee | 0) + oe * E, me[y--] = A % ke;
|
|
4036
4027
|
me[y] = i;
|
|
4037
4028
|
}
|
|
4038
4029
|
return i ? ++b : me.splice(0, 1), de(c, me, b);
|
|
@@ -4044,17 +4035,17 @@ function Vs(e) {
|
|
|
4044
4035
|
if (c = new N(c, u), u = c.s, !g || !u) return new N(NaN);
|
|
4045
4036
|
if (g != u)
|
|
4046
4037
|
return c.s = -u, b.minus(c);
|
|
4047
|
-
var y = b.e / he, v = c.e / he, w = b.c,
|
|
4038
|
+
var y = b.e / he, v = c.e / he, w = b.c, k = c.c;
|
|
4048
4039
|
if (!y || !v) {
|
|
4049
|
-
if (!w || !
|
|
4050
|
-
if (!w[0] || !
|
|
4040
|
+
if (!w || !k) return new N(g / 0);
|
|
4041
|
+
if (!w[0] || !k[0]) return k[0] ? c : new N(w[0] ? b : g * 0);
|
|
4051
4042
|
}
|
|
4052
4043
|
if (y = st(y), v = st(v), w = w.slice(), g = y - v) {
|
|
4053
|
-
for (g > 0 ? (v = y, i =
|
|
4044
|
+
for (g > 0 ? (v = y, i = k) : (g = -g, i = w), i.reverse(); g--; i.push(0)) ;
|
|
4054
4045
|
i.reverse();
|
|
4055
4046
|
}
|
|
4056
|
-
for (g = w.length, u =
|
|
4057
|
-
g = (w[--u] = w[u] +
|
|
4047
|
+
for (g = w.length, u = k.length, g - u < 0 && (i = k, k = w, w = i, u = g), g = 0; u; )
|
|
4048
|
+
g = (w[--u] = w[u] + k[u] + g) / ct | 0, w[u] = ct === w[u] ? 0 : w[u] % ct;
|
|
4058
4049
|
return g && (w = [g].concat(w), ++v), de(c, w, v);
|
|
4059
4050
|
}, s.precision = s.sd = function(c, u) {
|
|
4060
4051
|
var i, b, g, y = this;
|
|
@@ -4069,18 +4060,18 @@ function Vs(e) {
|
|
|
4069
4060
|
}, s.shiftedBy = function(c) {
|
|
4070
4061
|
return Fe(c, -On, On), this.times("1e" + c);
|
|
4071
4062
|
}, s.squareRoot = s.sqrt = function() {
|
|
4072
|
-
var c, u, i, b, g, y = this, v = y.c, w = y.s,
|
|
4063
|
+
var c, u, i, b, g, y = this, v = y.c, w = y.s, k = y.e, A = r + 4, E = new N("0.5");
|
|
4073
4064
|
if (w !== 1 || !v || !v[0])
|
|
4074
4065
|
return new N(!w || w < 0 && (!v || v[0]) ? NaN : v ? y : 1 / 0);
|
|
4075
|
-
if (w = Math.sqrt(+Ce(y)), w == 0 || w == 1 / 0 ? (u = tt(v), (u.length +
|
|
4076
|
-
for (
|
|
4077
|
-
if (g = i, i = E.times(g.plus(t(y, g,
|
|
4078
|
-
if (i.e <
|
|
4066
|
+
if (w = Math.sqrt(+Ce(y)), w == 0 || w == 1 / 0 ? (u = tt(v), (u.length + k) % 2 == 0 && (u += "0"), w = Math.sqrt(+u), k = st((k + 1) / 2) - (k < 0 || k % 2), w == 1 / 0 ? u = "5e" + k : (u = w.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + k), i = new N(u)) : i = new N(w + ""), i.c[0]) {
|
|
4067
|
+
for (k = i.e, w = k + A, w < 3 && (w = 0); ; )
|
|
4068
|
+
if (g = i, i = E.times(g.plus(t(y, g, A, 1))), tt(g.c).slice(0, w) === (u = tt(i.c)).slice(0, w))
|
|
4069
|
+
if (i.e < k && --w, u = u.slice(w - 3, w + 1), u == "9999" || !b && u == "4999") {
|
|
4079
4070
|
if (!b && (fe(g, g.e + r + 2, 0), g.times(g).eq(y))) {
|
|
4080
4071
|
i = g;
|
|
4081
4072
|
break;
|
|
4082
4073
|
}
|
|
4083
|
-
|
|
4074
|
+
A += 4, w += 4, b = 1;
|
|
4084
4075
|
} else {
|
|
4085
4076
|
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (fe(i, i.e + r + 2, 1), c = !i.times(i).eq(y));
|
|
4086
4077
|
break;
|
|
@@ -4098,34 +4089,34 @@ function Vs(e) {
|
|
|
4098
4089
|
else if (typeof i != "object")
|
|
4099
4090
|
throw Error(Ye + "Argument not an object: " + i);
|
|
4100
4091
|
if (b = g.toFixed(c, u), g.c) {
|
|
4101
|
-
var y, v = b.split("."), w = +i.groupSize,
|
|
4102
|
-
if (
|
|
4103
|
-
for (y = me % w || w, E = oe.substr(0, y); y < me; y += w) E +=
|
|
4104
|
-
|
|
4092
|
+
var y, v = b.split("."), w = +i.groupSize, k = +i.secondaryGroupSize, A = i.groupSeparator || "", E = v[0], F = v[1], q = g.s < 0, oe = q ? E.slice(1) : E, me = oe.length;
|
|
4093
|
+
if (k && (y = w, w = k, k = y, me -= y), w > 0 && me > 0) {
|
|
4094
|
+
for (y = me % w || w, E = oe.substr(0, y); y < me; y += w) E += A + oe.substr(y, w);
|
|
4095
|
+
k > 0 && (E += A + oe.slice(y)), q && (E = "-" + E);
|
|
4105
4096
|
}
|
|
4106
|
-
b = F ? E + (i.decimalSeparator || "") + ((
|
|
4107
|
-
new RegExp("\\d{" +
|
|
4097
|
+
b = F ? E + (i.decimalSeparator || "") + ((k = +i.fractionGroupSize) ? F.replace(
|
|
4098
|
+
new RegExp("\\d{" + k + "}\\B", "g"),
|
|
4108
4099
|
"$&" + (i.fractionGroupSeparator || "")
|
|
4109
4100
|
) : F) : E;
|
|
4110
4101
|
}
|
|
4111
4102
|
return (i.prefix || "") + b + (i.suffix || "");
|
|
4112
4103
|
}, s.toFraction = function(c) {
|
|
4113
|
-
var u, i, b, g, y, v, w,
|
|
4104
|
+
var u, i, b, g, y, v, w, k, A, E, F, q, oe = this, me = oe.c;
|
|
4114
4105
|
if (c != null && (w = new N(c), !w.isInteger() && (w.c || w.s !== 1) || w.lt(a)))
|
|
4115
4106
|
throw Error(Ye + "Argument " + (w.isInteger() ? "out of range: " : "not an integer: ") + Ce(w));
|
|
4116
4107
|
if (!me) return new N(oe);
|
|
4117
|
-
for (u = new N(a),
|
|
4118
|
-
i = b, b = g,
|
|
4119
|
-
return g = t(c.minus(i), b, 0, 1),
|
|
4120
|
-
t(
|
|
4121
|
-
) < 1 ? [
|
|
4108
|
+
for (u = new N(a), A = i = new N(a), b = k = new N(a), q = tt(me), y = u.e = q.length - oe.e - 1, u.c[0] = Un[(v = y % he) < 0 ? he + v : v], c = !c || w.comparedTo(u) > 0 ? y > 0 ? u : A : w, v = R, R = 1 / 0, w = new N(q), k.c[0] = 0; E = t(w, u, 0, 1), g = i.plus(E.times(b)), g.comparedTo(c) != 1; )
|
|
4109
|
+
i = b, b = g, A = k.plus(E.times(g = A)), k = g, u = w.minus(E.times(g = u)), w = g;
|
|
4110
|
+
return g = t(c.minus(i), b, 0, 1), k = k.plus(g.times(A)), i = i.plus(g.times(b)), k.s = A.s = oe.s, y = y * 2, F = t(A, b, y, l).minus(oe).abs().comparedTo(
|
|
4111
|
+
t(k, i, y, l).minus(oe).abs()
|
|
4112
|
+
) < 1 ? [A, b] : [k, i], R = v, F;
|
|
4122
4113
|
}, s.toNumber = function() {
|
|
4123
4114
|
return +Ce(this);
|
|
4124
4115
|
}, s.toPrecision = function(c, u) {
|
|
4125
4116
|
return c != null && Fe(c, 1, He), $(this, c, u, 2);
|
|
4126
4117
|
}, s.toString = function(c) {
|
|
4127
4118
|
var u, i = this, b = i.s, g = i.e;
|
|
4128
|
-
return g === null ? b ? (u = "Infinity", b < 0 && (u = "-" + u)) : u = "NaN" : (c == null ? u = g <= d || g >= T ? wn(tt(i.c), g) : bt(tt(i.c), g, "0") : c === 10 &&
|
|
4119
|
+
return g === null ? b ? (u = "Infinity", b < 0 && (u = "-" + u)) : u = "NaN" : (c == null ? u = g <= d || g >= T ? wn(tt(i.c), g) : bt(tt(i.c), g, "0") : c === 10 && ve ? (i = fe(new N(i), r + g + 1, l), u = bt(tt(i.c), i.e, "0")) : (Fe(c, 2, U.length, "Base"), u = n(bt(tt(i.c), g, "0"), 10, c, b, !0)), b < 0 && i.c[0] && (u = "-" + u)), u;
|
|
4129
4120
|
}, s.valueOf = s.toJSON = function() {
|
|
4130
4121
|
return Ce(this);
|
|
4131
4122
|
}, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && N.set(e), N;
|
|
@@ -4280,7 +4271,7 @@ async function Qe(e) {
|
|
|
4280
4271
|
token_address: I.token_address === sb ? ze : I.token_address
|
|
4281
4272
|
}));
|
|
4282
4273
|
try {
|
|
4283
|
-
const I =
|
|
4274
|
+
const I = Ms(n) ?? n, R = T.result.map((x) => x.token_address), h = await $s.get(
|
|
4284
4275
|
`/keyrings/tokens/${I}/v2`,
|
|
4285
4276
|
{ query: { addresses: R.join(",") } }
|
|
4286
4277
|
);
|
|
@@ -4327,7 +4318,7 @@ async function vb(e) {
|
|
|
4327
4318
|
if (!t)
|
|
4328
4319
|
throw new Error("Token address is required");
|
|
4329
4320
|
try {
|
|
4330
|
-
const o =
|
|
4321
|
+
const o = Ms(n) ?? n, s = await $s.get(
|
|
4331
4322
|
`/keyrings/tokens/${o}/v2`,
|
|
4332
4323
|
{ query: { addresses: t } }
|
|
4333
4324
|
), r = (Array.isArray(s.data) ? s.data : []).find(
|
|
@@ -4383,7 +4374,7 @@ async function vb(e) {
|
|
|
4383
4374
|
return console.error("❌ Error fetching token metadata:", s), { success: !1, error: s };
|
|
4384
4375
|
}
|
|
4385
4376
|
}
|
|
4386
|
-
async function
|
|
4377
|
+
async function Ab(e) {
|
|
4387
4378
|
const {
|
|
4388
4379
|
prompt: t,
|
|
4389
4380
|
model: n = "gpt-4.1-mini",
|
|
@@ -4424,7 +4415,7 @@ User: ${t}` : t;
|
|
|
4424
4415
|
};
|
|
4425
4416
|
}
|
|
4426
4417
|
}
|
|
4427
|
-
async function
|
|
4418
|
+
async function kb(e) {
|
|
4428
4419
|
const { address: t, chain: n = "base" } = e;
|
|
4429
4420
|
if (!t)
|
|
4430
4421
|
throw new Error("Contract address is required");
|
|
@@ -4690,7 +4681,7 @@ const Ib = ({ content: e }) => {
|
|
|
4690
4681
|
for (o++; o < t.length && !t[o].trimStart().startsWith("```"); )
|
|
4691
4682
|
l.push(t[o]), o++;
|
|
4692
4683
|
n.push(
|
|
4693
|
-
/* @__PURE__ */
|
|
4684
|
+
/* @__PURE__ */ Ae("div", { className: "mc-codeblock", children: [
|
|
4694
4685
|
r && /* @__PURE__ */ W("div", { className: "mc-codeblock-lang", children: r }),
|
|
4695
4686
|
/* @__PURE__ */ W("pre", { children: /* @__PURE__ */ W("code", { children: l.join(`
|
|
4696
4687
|
`) }) })
|
|
@@ -5003,7 +4994,7 @@ const Ib = ({ content: e }) => {
|
|
|
5003
4994
|
function Bb(e) {
|
|
5004
4995
|
return We(e);
|
|
5005
4996
|
}
|
|
5006
|
-
function
|
|
4997
|
+
function Mn(e) {
|
|
5007
4998
|
if (!e || e?.trim() === "") return !1;
|
|
5008
4999
|
const t = parseFloat(e);
|
|
5009
5000
|
return !isNaN(t) && t > 0;
|
|
@@ -5037,7 +5028,7 @@ const Pb = ({
|
|
|
5037
5028
|
});
|
|
5038
5029
|
else {
|
|
5039
5030
|
const de = t.amount?.trim();
|
|
5040
|
-
de &&
|
|
5031
|
+
de && Mn(de) && parseFloat(de) > X && (N.amount = d("formInsufficientBalance", {
|
|
5041
5032
|
balance: a.balanceFormatted,
|
|
5042
5033
|
symbol: a.symbol ?? ""
|
|
5043
5034
|
}));
|
|
@@ -5064,7 +5055,7 @@ const Pb = ({
|
|
|
5064
5055
|
return;
|
|
5065
5056
|
}
|
|
5066
5057
|
if (X) {
|
|
5067
|
-
if ($.validation === "address" && !Bb(X) && (N[$.key] = l("formInvalidAddress")), $.validation === "amount" && !
|
|
5058
|
+
if ($.validation === "address" && !Bb(X) && (N[$.key] = l("formInvalidAddress")), $.validation === "amount" && !Mn(X) && (N[$.key] = l("formMustBePositive")), $.key === "amount" && X && Mn(X) && a?.balanceFormatted) {
|
|
5068
5059
|
const de = parseFloat(X), fe = parseFloat(a.balanceFormatted);
|
|
5069
5060
|
de > fe && (N[$.key] = d("formInsufficientBalance", {
|
|
5070
5061
|
balance: a.balanceFormatted,
|
|
@@ -5089,16 +5080,16 @@ const Pb = ({
|
|
|
5089
5080
|
}
|
|
5090
5081
|
}
|
|
5091
5082
|
return p(N), Object.keys(N).length === 0;
|
|
5092
|
-
}, [T, I, a, e, t, l, d]),
|
|
5083
|
+
}, [T, I, a, e, t, l, d]), ve = Ie(() => {
|
|
5093
5084
|
U() && n(e, I);
|
|
5094
5085
|
}, [U, n, e, I]);
|
|
5095
|
-
return T ? /* @__PURE__ */
|
|
5086
|
+
return T ? /* @__PURE__ */ Ae("div", { className: "action-form", children: [
|
|
5096
5087
|
/* @__PURE__ */ W("div", { className: "action-form-title", children: /* @__PURE__ */ W("span", { children: l(T.label) }) }),
|
|
5097
|
-
h && /* @__PURE__ */
|
|
5088
|
+
h && /* @__PURE__ */ Ae("div", { className: "action-form-general-error", children: [
|
|
5098
5089
|
"⚠️ ",
|
|
5099
5090
|
h
|
|
5100
5091
|
] }),
|
|
5101
|
-
a && /* @__PURE__ */ W("div", { className: "action-form-token-info", children: /* @__PURE__ */
|
|
5092
|
+
a && /* @__PURE__ */ W("div", { className: "action-form-token-info", children: /* @__PURE__ */ Ae("div", { className: "token-info-row", children: [
|
|
5102
5093
|
a.logo && /* @__PURE__ */ W(
|
|
5103
5094
|
"img",
|
|
5104
5095
|
{
|
|
@@ -5109,20 +5100,20 @@ const Pb = ({
|
|
|
5109
5100
|
height: 20
|
|
5110
5101
|
}
|
|
5111
5102
|
),
|
|
5112
|
-
/* @__PURE__ */
|
|
5113
|
-
/* @__PURE__ */
|
|
5103
|
+
/* @__PURE__ */ Ae("div", { className: "token-info-details", children: [
|
|
5104
|
+
/* @__PURE__ */ Ae("span", { className: "token-info-name", children: [
|
|
5114
5105
|
a.name,
|
|
5115
5106
|
" (",
|
|
5116
5107
|
a.symbol,
|
|
5117
5108
|
")"
|
|
5118
5109
|
] }),
|
|
5119
|
-
/* @__PURE__ */
|
|
5110
|
+
/* @__PURE__ */ Ae("span", { className: "token-info-balance", children: [
|
|
5120
5111
|
l("formBalance"),
|
|
5121
5112
|
" ",
|
|
5122
5113
|
ie(a.balanceFormatted).decimalPlaces(8, ie.ROUND_DOWN).toFormat(),
|
|
5123
5114
|
" ",
|
|
5124
5115
|
a.symbol,
|
|
5125
|
-
a.usdValue !== void 0 && /* @__PURE__ */
|
|
5116
|
+
a.usdValue !== void 0 && /* @__PURE__ */ Ae("span", { className: "token-info-usd", children: [
|
|
5126
5117
|
" ",
|
|
5127
5118
|
"≈ $",
|
|
5128
5119
|
a.usdValue.toFixed(2)
|
|
@@ -5141,14 +5132,14 @@ const Pb = ({
|
|
|
5141
5132
|
}
|
|
5142
5133
|
}
|
|
5143
5134
|
) }),
|
|
5144
|
-
/* @__PURE__ */ W("div", { className: "action-form-fields", children: T.fields.map((N) => N.hidden || N.key === "amount" && e === "send_nft" && I.token_standard?.toUpperCase() !== "ERC1155" ? null : /* @__PURE__ */
|
|
5145
|
-
/* @__PURE__ */
|
|
5146
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ W("div", { className: "action-form-fields", children: T.fields.map((N) => N.hidden || N.key === "amount" && e === "send_nft" && I.token_standard?.toUpperCase() !== "ERC1155" ? null : /* @__PURE__ */ Ae("div", { className: "action-form-field", children: [
|
|
5136
|
+
/* @__PURE__ */ Ae("div", { className: "action-form-field-header", children: [
|
|
5137
|
+
/* @__PURE__ */ Ae("div", { className: "action-form-field-label", children: [
|
|
5147
5138
|
l(N.label),
|
|
5148
5139
|
N.required && " *"
|
|
5149
5140
|
] }),
|
|
5150
|
-
N.key === "amount" && a && e !== "send_nft" && /* @__PURE__ */
|
|
5151
|
-
[25, 50, 75].map(($) => /* @__PURE__ */
|
|
5141
|
+
N.key === "amount" && a && e !== "send_nft" && /* @__PURE__ */ Ae("div", { className: "action-form-pct-btns", children: [
|
|
5142
|
+
[25, 50, 75].map(($) => /* @__PURE__ */ Ae(
|
|
5152
5143
|
"button",
|
|
5153
5144
|
{
|
|
5154
5145
|
type: "button",
|
|
@@ -5206,7 +5197,7 @@ const Pb = ({
|
|
|
5206
5197
|
})(),
|
|
5207
5198
|
x[N.key] && /* @__PURE__ */ W("span", { className: "field-error", children: x[N.key] })
|
|
5208
5199
|
] }, N.key)) }),
|
|
5209
|
-
/* @__PURE__ */
|
|
5200
|
+
/* @__PURE__ */ Ae("div", { className: "action-form-actions", children: [
|
|
5210
5201
|
/* @__PURE__ */ W(
|
|
5211
5202
|
"button",
|
|
5212
5203
|
{
|
|
@@ -5221,7 +5212,7 @@ const Pb = ({
|
|
|
5221
5212
|
"button",
|
|
5222
5213
|
{
|
|
5223
5214
|
className: "action-form-submit",
|
|
5224
|
-
onClick:
|
|
5215
|
+
onClick: ve,
|
|
5225
5216
|
type: "button",
|
|
5226
5217
|
disabled: s,
|
|
5227
5218
|
children: l(s ? "formProcessing" : "formExecute")
|
|
@@ -5682,9 +5673,9 @@ function Ub(e) {
|
|
|
5682
5673
|
case "send_native":
|
|
5683
5674
|
return Rb(n, o, s);
|
|
5684
5675
|
case "send_token":
|
|
5685
|
-
return Lb(n, o, s);
|
|
5686
|
-
case "approve_token":
|
|
5687
5676
|
return Mb(n, o, s);
|
|
5677
|
+
case "approve_token":
|
|
5678
|
+
return Lb(n, o, s);
|
|
5688
5679
|
case "wrap_native":
|
|
5689
5680
|
return Hb(n, o, s);
|
|
5690
5681
|
case "unwrap_native":
|
|
@@ -5709,7 +5700,7 @@ function Rb(e, t, n) {
|
|
|
5709
5700
|
description: `Send ${s} native token to ${o}`
|
|
5710
5701
|
};
|
|
5711
5702
|
}
|
|
5712
|
-
function
|
|
5703
|
+
function Mb(e, t, n) {
|
|
5713
5704
|
const { contract_address: o, to_address: s, amount: a, decimals: r, token_symbol: l } = e;
|
|
5714
5705
|
if (!o) throw new Error("Token contract address is required");
|
|
5715
5706
|
if (!s) throw new Error("Recipient address is required");
|
|
@@ -5728,7 +5719,7 @@ function Lb(e, t, n) {
|
|
|
5728
5719
|
description: `Send ${a} ${l || "tokens"} to ${s}`
|
|
5729
5720
|
};
|
|
5730
5721
|
}
|
|
5731
|
-
function
|
|
5722
|
+
function Lb(e, t, n) {
|
|
5732
5723
|
const { contract_address: o, spender_address: s, amount: a, token_symbol: r } = e;
|
|
5733
5724
|
if (!o) throw new Error("Token contract address is required");
|
|
5734
5725
|
if (!s) throw new Error("Spender address is required");
|
|
@@ -5793,7 +5784,7 @@ function Vb(e) {
|
|
|
5793
5784
|
"send_nft"
|
|
5794
5785
|
].includes(e);
|
|
5795
5786
|
}
|
|
5796
|
-
async function
|
|
5787
|
+
async function Ln(e) {
|
|
5797
5788
|
const {
|
|
5798
5789
|
transactionHash: t,
|
|
5799
5790
|
chainId: n,
|
|
@@ -5921,7 +5912,7 @@ function $b(e, t, n) {
|
|
|
5921
5912
|
description: h
|
|
5922
5913
|
};
|
|
5923
5914
|
}
|
|
5924
|
-
async function
|
|
5915
|
+
async function An(e) {
|
|
5925
5916
|
const { address: t, chainId: n, rpcUrl: o } = e, s = dn(n, o);
|
|
5926
5917
|
if (!s)
|
|
5927
5918
|
return console.warn(`No RPC endpoint for chain ${n}`), new ie(0);
|
|
@@ -6007,7 +5998,7 @@ var ne = {}, en = { exports: {} }, Gb = en.exports, Qo;
|
|
|
6007
5998
|
function qb() {
|
|
6008
5999
|
return Qo || (Qo = 1, (function(e, t) {
|
|
6009
6000
|
(function(n, o) {
|
|
6010
|
-
var s = "1.0.41", a = "", r = "?", l = "function", d = "undefined", T = "object", I = "string", R = "major", h = "model", x = "name", p = "type", C = "vendor", U = "version",
|
|
6001
|
+
var s = "1.0.41", a = "", r = "?", l = "function", d = "undefined", T = "object", I = "string", R = "major", h = "model", x = "name", p = "type", C = "vendor", U = "version", ve = "architecture", N = "console", $ = "mobile", X = "tablet", de = "smarttv", fe = "wearable", Ce = "embedded", c = 500, u = "Amazon", i = "Apple", b = "ASUS", g = "BlackBerry", y = "Browser", v = "Chrome", w = "Edge", k = "Firefox", A = "Google", E = "Honor", F = "Huawei", q = "Lenovo", oe = "LG", me = "Microsoft", ke = "Motorola", Ee = "Nvidia", j = "OnePlus", pe = "Opera", xe = "OPPO", $e = "Samsung", at = "Sharp", Xe = "Sony", _e = "Xiaomi", Ge = "Zebra", Le = "Facebook", De = "Chromium OS", Te = "Mac OS", St = " Browser", Ut = function(O, Q) {
|
|
6011
6002
|
var H = {};
|
|
6012
6003
|
for (var te in O)
|
|
6013
6004
|
Q[te] && Q[te].length % 2 === 0 ? H[te] = Q[te].concat(O[te]) : H[te] = O[te];
|
|
@@ -6026,12 +6017,12 @@ function qb() {
|
|
|
6026
6017
|
if (typeof O === I)
|
|
6027
6018
|
return O = O.replace(/^\s\s*/, a), typeof Q === d ? O : O.substring(0, c);
|
|
6028
6019
|
}, K = function(O, Q) {
|
|
6029
|
-
for (var H = 0, te, ge, se,
|
|
6020
|
+
for (var H = 0, te, ge, se, M, _, L; H < Q.length && !_; ) {
|
|
6030
6021
|
var be = Q[H], Be = Q[H + 1];
|
|
6031
6022
|
for (te = ge = 0; te < be.length && !_ && be[te]; )
|
|
6032
6023
|
if (_ = be[te++].exec(O), _)
|
|
6033
6024
|
for (se = 0; se < Be.length; se++)
|
|
6034
|
-
|
|
6025
|
+
L = _[++ge], M = Be[se], typeof M === T && M.length > 0 ? M.length === 2 ? typeof M[1] == l ? this[M[0]] = M[1].call(this, L) : this[M[0]] = M[1] : M.length === 3 ? typeof M[1] === l && !(M[1].exec && M[1].test) ? this[M[0]] = L ? M[1].call(this, L, M[2]) : o : this[M[0]] = L ? L.replace(M[1], M[2]) : o : M.length === 4 && (this[M[0]] = L ? M[3].call(this, L.replace(M[1], M[2])) : o) : this[M] = L || o;
|
|
6035
6026
|
H += 2;
|
|
6036
6027
|
}
|
|
6037
6028
|
}, z = function(O, Q) {
|
|
@@ -6043,25 +6034,25 @@ function qb() {
|
|
|
6043
6034
|
} else if (D(Q[H], O))
|
|
6044
6035
|
return H === r ? o : H;
|
|
6045
6036
|
return Q.hasOwnProperty("*") ? Q["*"] : O;
|
|
6046
|
-
}, Y = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, re = { 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" }, we = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [U, [x, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [U, [x, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [x, U], [/opios[\/ ]+([\w\.]+)/i], [U, [x, pe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [U, [x, pe + " GX"]], [/\bopr\/([\w\.]+)/i], [U, [x, pe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [U, [x, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [U, [x, "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], [x, U], [/quark(?:pc)?\/([-\w\.]+)/i], [U, [x, "Quark"]], [/\bddg\/([\w\.]+)/i], [U, [x, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [U, [x, "UC" + y]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [U, [x, "WeChat"]], [/konqueror\/([\w\.]+)/i], [U, [x, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [U, [x, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [U, [x, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [U, [x, "Smart Lenovo " + y]], [/(avast|avg)\/([\w\.]+)/i], [[x, /(.+)/, "$1 Secure " + y], U], [/\bfocus\/([\w\.]+)/i], [U, [x, A + " Focus"]], [/\bopt\/([\w\.]+)/i], [U, [x, pe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [U, [x, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [U, [x, "Dolphin"]], [/coast\/([\w\.]+)/i], [U, [x, pe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [U, [x, "MIUI" + St]], [/fxios\/([\w\.-]+)/i], [U, [x, A]], [/\bqihoobrowser\/?([\w\.]*)/i], [U, [x, "360"]], [/\b(qq)\/([\w\.]+)/i], [[x, /(.+)/, "$1Browser"], U], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[x, /(.+)/, "$1" + St], U], [/samsungbrowser\/([\w\.]+)/i], [U, [x, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [U, [x, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[x, "Sogou Mobile"], U], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [x, U], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [x], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [U, x], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[x, Me], U], [/(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], [x, U], [/\bgsa\/([\w\.]+) .*safari\//i], [U, [x, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [U, [x, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [U, [x, v + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[x, v + " WebView"], U], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [U, [x, "Android " + y]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [x, U], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [U, [x, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [U, x], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [x, [U, z, Y]], [/(webkit|khtml)\/([\w\.]+)/i], [x, U], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[x, "Netscape"], U], [/(wolvic|librewolf)\/([\w\.]+)/i], [x, U], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [U, [x, A + " 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], [x, [U, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [x, [U, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[ke, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[ke, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[ke, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[ke, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[ke, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[ke, /ower/, a, Z]], [/ sun4\w[;\)]/i], [[ke, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[ke, Z]]], 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], [h, [C, $e], [p, X]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [h, [C, $e], [p, $]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [h, [C, i], [p, $]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [h, [C, i], [p, X]], [/(macintosh);/i], [h, [C, i]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [h, [C, at], [p, $]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [h, [C, E], [p, X]], [/honor([-\w ]+)[;\)]/i], [h, [C, E], [p, $]], [/\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], [h, [C, F], [p, X]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [h, [C, F], [p, $]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[h, /_/g, " "], [C, _e], [p, X]], [/\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], [[h, /_/g, " "], [C, _e], [p, $]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [h, [C, xe], [p, $]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [h, [C, z, { OnePlus: ["304", "403", "203"], "*": xe }], [p, X]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [h, [C, "Vivo"], [p, $]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [h, [C, "Realme"], [p, $]], [/\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], [h, [C, Ae], [p, $]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [h, [C, Ae], [p, X]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [h, [C, oe], [p, X]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [h, [C, oe], [p, $]], [/(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], [h, [C, q], [p, X]], [/(nokia) (t[12][01])/i], [C, h, [p, X]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[h, /_/g, " "], [p, $], [C, "Nokia"]], [/(pixel (c|tablet))\b/i], [h, [C, k], [p, X]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [C, k], [p, $]], [/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], [h, [C, Xe], [p, $]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [C, Xe], [p, X]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [h, [C, j], [p, $]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [h, [C, u], [p, X]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[h, /(.+)/g, "Fire Phone $1"], [C, u], [p, $]], [/(playbook);[-\w\),; ]+(rim)/i], [h, C, [p, X]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [h, [C, g], [p, $]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [h, [C, b], [p, X]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [h, [C, b], [p, $]], [/(nexus 9)/i], [h, [C, "HTC"], [p, X]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [C, [h, /_/g, " "], [p, $]], [/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], [h, [C, "TCL"], [p, X]], [/(itel) ((\w+))/i], [[C, Z], h, [p, z, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [h, [C, "Acer"], [p, X]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [h, [C, "Meizu"], [p, $]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [h, [C, "Ulefone"], [p, $]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [h, [C, "Energizer"], [p, $]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [h, [C, "Cat"], [p, $]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [h, [C, "Smartfren"], [p, $]], [/droid.+; (a(?:015|06[35]|142p?))/i], [h, [C, "Nothing"], [p, $]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [h, [C, "Archos"], [p, X]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [h, [C, "Archos"], [p, $]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [C, h, [p, X]], [/(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], [C, h, [p, $]], [/(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], [C, h, [p, X]], [/(surface duo)/i], [h, [C, me], [p, X]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [h, [C, "Fairphone"], [p, $]], [/(u304aa)/i], [h, [C, "AT&T"], [p, $]], [/\bsie-(\w*)/i], [h, [C, "Siemens"], [p, $]], [/\b(rct\w+) b/i], [h, [C, "RCA"], [p, X]], [/\b(venue[\d ]{2,7}) b/i], [h, [C, "Dell"], [p, X]], [/\b(q(?:mv|ta)\w+) b/i], [h, [C, "Verizon"], [p, X]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [h, [C, "Barnes & Noble"], [p, X]], [/\b(tm\d{3}\w+) b/i], [h, [C, "NuVision"], [p, X]], [/\b(k88) b/i], [h, [C, "ZTE"], [p, X]], [/\b(nx\d{3}j) b/i], [h, [C, "ZTE"], [p, $]], [/\b(gen\d{3}) b.+49h/i], [h, [C, "Swiss"], [p, $]], [/\b(zur\d{3}) b/i], [h, [C, "Swiss"], [p, X]], [/\b((zeki)?tb.*\b) b/i], [h, [C, "Zeki"], [p, X]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[C, "Dragon Touch"], h, [p, X]], [/\b(ns-?\w{0,9}) b/i], [h, [C, "Insignia"], [p, X]], [/\b((nxa|next)-?\w{0,9}) b/i], [h, [C, "NextBook"], [p, X]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[C, "Voice"], h, [p, $]], [/\b(lvtel\-)?(v1[12]) b/i], [[C, "LvTel"], h, [p, $]], [/\b(ph-1) /i], [h, [C, "Essential"], [p, $]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [h, [C, "Envizen"], [p, X]], [/\b(trio[-\w\. ]+) b/i], [h, [C, "MachSpeed"], [p, X]], [/\btu_(1491) b/i], [h, [C, "Rotor"], [p, X]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [h, [C, Ee], [p, X]], [/(sprint) (\w+)/i], [C, h, [p, $]], [/(kin\.[onetw]{3})/i], [[h, /\./g, " "], [C, me], [p, $]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [h, [C, Ge], [p, X]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [h, [C, Ge], [p, $]], [/smart-tv.+(samsung)/i], [C, [p, de]], [/hbbtv.+maple;(\d+)/i], [[h, /^/, "SmartTV"], [C, $e], [p, de]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[C, oe], [p, de]], [/(apple) ?tv/i], [C, [h, i + " TV"], [p, de]], [/crkey/i], [[h, v + "cast"], [C, k], [p, de]], [/droid.+aft(\w+)( bui|\))/i], [h, [C, u], [p, de]], [/(shield \w+ tv)/i], [h, [C, Ee], [p, de]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [C, at], [p, de]], [/(bravia[\w ]+)( bui|\))/i], [h, [C, Xe], [p, de]], [/(mi(tv|box)-?\w+) bui/i], [h, [C, _e], [p, de]], [/Hbbtv.*(technisat) (.*);/i], [C, h, [p, de]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[C, ee], [h, ee], [p, de]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [h, [p, de]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, de]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [C, h, [p, N]], [/droid.+; (shield)( bui|\))/i], [h, [C, Ee], [p, N]], [/(playstation \w+)/i], [h, [C, Xe], [p, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [C, me], [p, N]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [h, [C, $e], [p, fe]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [C, h, [p, fe]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [h, [C, xe], [p, fe]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [h, [C, i], [p, fe]], [/(opwwe\d{3})/i], [h, [C, j], [p, fe]], [/(moto 360)/i], [h, [C, Ae], [p, fe]], [/(smartwatch 3)/i], [h, [C, Xe], [p, fe]], [/(g watch r)/i], [h, [C, oe], [p, fe]], [/droid.+; (wt63?0{2,3})\)/i], [h, [C, Ge], [p, fe]], [/droid.+; (glass) \d/i], [h, [C, k], [p, fe]], [/(pico) (4|neo3(?: link|pro)?)/i], [C, h, [p, fe]], [/; (quest( \d| pro)?)/i], [h, [C, Me], [p, fe]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [C, [p, Ce]], [/(aeobc)\b/i], [h, [C, u], [p, Ce]], [/(homepod).+mac os/i], [h, [C, i], [p, Ce]], [/windows iot/i], [[p, Ce]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [h, [p, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [h, [p, X]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, X]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, $]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [h, [C, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [U, [x, w + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [x, U], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [U, [x, "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], [x, U], [/ladybird\//i], [[x, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [U, x]], os: [[/microsoft (windows) (vista|xp)/i], [x, U], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [x, [U, z, re]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[U, z, re], [x, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[U, /_/g, "."], [x, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[x, Te], [U, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [U, x], [/(ubuntu) ([\w\.]+) like android/i], [[x, /(.+)/, "$1 Touch"], U], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [x, U], [/\(bb(10);/i], [U, [x, g]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [U, [x, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [U, [x, A + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [U, [x, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [U, [x, "watchOS"]], [/crkey\/([\d\.]+)/i], [U, [x, v + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[x, De], U], [/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], [x, U], [/(sunos) ?([\w\.\d]*)/i], [[x, "Solaris"], U], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [x, U]] }, ae = function(O, Q) {
|
|
6037
|
+
}, Y = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, re = { 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" }, we = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [U, [x, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [U, [x, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [x, U], [/opios[\/ ]+([\w\.]+)/i], [U, [x, pe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [U, [x, pe + " GX"]], [/\bopr\/([\w\.]+)/i], [U, [x, pe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [U, [x, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [U, [x, "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], [x, U], [/quark(?:pc)?\/([-\w\.]+)/i], [U, [x, "Quark"]], [/\bddg\/([\w\.]+)/i], [U, [x, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [U, [x, "UC" + y]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [U, [x, "WeChat"]], [/konqueror\/([\w\.]+)/i], [U, [x, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [U, [x, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [U, [x, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [U, [x, "Smart Lenovo " + y]], [/(avast|avg)\/([\w\.]+)/i], [[x, /(.+)/, "$1 Secure " + y], U], [/\bfocus\/([\w\.]+)/i], [U, [x, k + " Focus"]], [/\bopt\/([\w\.]+)/i], [U, [x, pe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [U, [x, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [U, [x, "Dolphin"]], [/coast\/([\w\.]+)/i], [U, [x, pe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [U, [x, "MIUI" + St]], [/fxios\/([\w\.-]+)/i], [U, [x, k]], [/\bqihoobrowser\/?([\w\.]*)/i], [U, [x, "360"]], [/\b(qq)\/([\w\.]+)/i], [[x, /(.+)/, "$1Browser"], U], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[x, /(.+)/, "$1" + St], U], [/samsungbrowser\/([\w\.]+)/i], [U, [x, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [U, [x, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[x, "Sogou Mobile"], U], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [x, U], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [x], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [U, x], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[x, Le], U], [/(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], [x, U], [/\bgsa\/([\w\.]+) .*safari\//i], [U, [x, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [U, [x, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [U, [x, v + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[x, v + " WebView"], U], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [U, [x, "Android " + y]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [x, U], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [U, [x, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [U, x], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [x, [U, z, Y]], [/(webkit|khtml)\/([\w\.]+)/i], [x, U], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[x, "Netscape"], U], [/(wolvic|librewolf)\/([\w\.]+)/i], [x, U], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [U, [x, k + " 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], [x, [U, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [x, [U, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[ve, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[ve, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[ve, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[ve, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[ve, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[ve, /ower/, a, Z]], [/ sun4\w[;\)]/i], [[ve, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[ve, Z]]], 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], [h, [C, $e], [p, X]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [h, [C, $e], [p, $]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [h, [C, i], [p, $]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [h, [C, i], [p, X]], [/(macintosh);/i], [h, [C, i]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [h, [C, at], [p, $]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [h, [C, E], [p, X]], [/honor([-\w ]+)[;\)]/i], [h, [C, E], [p, $]], [/\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], [h, [C, F], [p, X]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [h, [C, F], [p, $]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[h, /_/g, " "], [C, _e], [p, X]], [/\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], [[h, /_/g, " "], [C, _e], [p, $]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [h, [C, xe], [p, $]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [h, [C, z, { OnePlus: ["304", "403", "203"], "*": xe }], [p, X]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [h, [C, "Vivo"], [p, $]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [h, [C, "Realme"], [p, $]], [/\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], [h, [C, ke], [p, $]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [h, [C, ke], [p, X]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [h, [C, oe], [p, X]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [h, [C, oe], [p, $]], [/(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], [h, [C, q], [p, X]], [/(nokia) (t[12][01])/i], [C, h, [p, X]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[h, /_/g, " "], [p, $], [C, "Nokia"]], [/(pixel (c|tablet))\b/i], [h, [C, A], [p, X]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [C, A], [p, $]], [/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], [h, [C, Xe], [p, $]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [C, Xe], [p, X]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [h, [C, j], [p, $]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [h, [C, u], [p, X]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[h, /(.+)/g, "Fire Phone $1"], [C, u], [p, $]], [/(playbook);[-\w\),; ]+(rim)/i], [h, C, [p, X]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [h, [C, g], [p, $]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [h, [C, b], [p, X]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [h, [C, b], [p, $]], [/(nexus 9)/i], [h, [C, "HTC"], [p, X]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [C, [h, /_/g, " "], [p, $]], [/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], [h, [C, "TCL"], [p, X]], [/(itel) ((\w+))/i], [[C, Z], h, [p, z, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [h, [C, "Acer"], [p, X]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [h, [C, "Meizu"], [p, $]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [h, [C, "Ulefone"], [p, $]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [h, [C, "Energizer"], [p, $]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [h, [C, "Cat"], [p, $]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [h, [C, "Smartfren"], [p, $]], [/droid.+; (a(?:015|06[35]|142p?))/i], [h, [C, "Nothing"], [p, $]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [h, [C, "Archos"], [p, X]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [h, [C, "Archos"], [p, $]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [C, h, [p, X]], [/(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], [C, h, [p, $]], [/(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], [C, h, [p, X]], [/(surface duo)/i], [h, [C, me], [p, X]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [h, [C, "Fairphone"], [p, $]], [/(u304aa)/i], [h, [C, "AT&T"], [p, $]], [/\bsie-(\w*)/i], [h, [C, "Siemens"], [p, $]], [/\b(rct\w+) b/i], [h, [C, "RCA"], [p, X]], [/\b(venue[\d ]{2,7}) b/i], [h, [C, "Dell"], [p, X]], [/\b(q(?:mv|ta)\w+) b/i], [h, [C, "Verizon"], [p, X]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [h, [C, "Barnes & Noble"], [p, X]], [/\b(tm\d{3}\w+) b/i], [h, [C, "NuVision"], [p, X]], [/\b(k88) b/i], [h, [C, "ZTE"], [p, X]], [/\b(nx\d{3}j) b/i], [h, [C, "ZTE"], [p, $]], [/\b(gen\d{3}) b.+49h/i], [h, [C, "Swiss"], [p, $]], [/\b(zur\d{3}) b/i], [h, [C, "Swiss"], [p, X]], [/\b((zeki)?tb.*\b) b/i], [h, [C, "Zeki"], [p, X]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[C, "Dragon Touch"], h, [p, X]], [/\b(ns-?\w{0,9}) b/i], [h, [C, "Insignia"], [p, X]], [/\b((nxa|next)-?\w{0,9}) b/i], [h, [C, "NextBook"], [p, X]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[C, "Voice"], h, [p, $]], [/\b(lvtel\-)?(v1[12]) b/i], [[C, "LvTel"], h, [p, $]], [/\b(ph-1) /i], [h, [C, "Essential"], [p, $]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [h, [C, "Envizen"], [p, X]], [/\b(trio[-\w\. ]+) b/i], [h, [C, "MachSpeed"], [p, X]], [/\btu_(1491) b/i], [h, [C, "Rotor"], [p, X]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [h, [C, Ee], [p, X]], [/(sprint) (\w+)/i], [C, h, [p, $]], [/(kin\.[onetw]{3})/i], [[h, /\./g, " "], [C, me], [p, $]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [h, [C, Ge], [p, X]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [h, [C, Ge], [p, $]], [/smart-tv.+(samsung)/i], [C, [p, de]], [/hbbtv.+maple;(\d+)/i], [[h, /^/, "SmartTV"], [C, $e], [p, de]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[C, oe], [p, de]], [/(apple) ?tv/i], [C, [h, i + " TV"], [p, de]], [/crkey/i], [[h, v + "cast"], [C, A], [p, de]], [/droid.+aft(\w+)( bui|\))/i], [h, [C, u], [p, de]], [/(shield \w+ tv)/i], [h, [C, Ee], [p, de]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [C, at], [p, de]], [/(bravia[\w ]+)( bui|\))/i], [h, [C, Xe], [p, de]], [/(mi(tv|box)-?\w+) bui/i], [h, [C, _e], [p, de]], [/Hbbtv.*(technisat) (.*);/i], [C, h, [p, de]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[C, ee], [h, ee], [p, de]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [h, [p, de]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, de]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [C, h, [p, N]], [/droid.+; (shield)( bui|\))/i], [h, [C, Ee], [p, N]], [/(playstation \w+)/i], [h, [C, Xe], [p, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [C, me], [p, N]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [h, [C, $e], [p, fe]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [C, h, [p, fe]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [h, [C, xe], [p, fe]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [h, [C, i], [p, fe]], [/(opwwe\d{3})/i], [h, [C, j], [p, fe]], [/(moto 360)/i], [h, [C, ke], [p, fe]], [/(smartwatch 3)/i], [h, [C, Xe], [p, fe]], [/(g watch r)/i], [h, [C, oe], [p, fe]], [/droid.+; (wt63?0{2,3})\)/i], [h, [C, Ge], [p, fe]], [/droid.+; (glass) \d/i], [h, [C, A], [p, fe]], [/(pico) (4|neo3(?: link|pro)?)/i], [C, h, [p, fe]], [/; (quest( \d| pro)?)/i], [h, [C, Le], [p, fe]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [C, [p, Ce]], [/(aeobc)\b/i], [h, [C, u], [p, Ce]], [/(homepod).+mac os/i], [h, [C, i], [p, Ce]], [/windows iot/i], [[p, Ce]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [h, [p, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [h, [p, X]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, X]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, $]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [h, [C, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [U, [x, w + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [x, U], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [U, [x, "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], [x, U], [/ladybird\//i], [[x, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [U, x]], os: [[/microsoft (windows) (vista|xp)/i], [x, U], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [x, [U, z, re]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[U, z, re], [x, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[U, /_/g, "."], [x, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[x, Te], [U, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [U, x], [/(ubuntu) ([\w\.]+) like android/i], [[x, /(.+)/, "$1 Touch"], U], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [x, U], [/\(bb(10);/i], [U, [x, g]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [U, [x, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [U, [x, k + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [U, [x, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [U, [x, "watchOS"]], [/crkey\/([\d\.]+)/i], [U, [x, v + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[x, De], U], [/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], [x, U], [/(sunos) ?([\w\.\d]*)/i], [[x, "Solaris"], U], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [x, U]] }, ae = function(O, Q) {
|
|
6047
6038
|
if (typeof O === T && (Q = O, O = o), !(this instanceof ae))
|
|
6048
6039
|
return new ae(O, Q).getResult();
|
|
6049
|
-
var H = typeof n !== d && n.navigator ? n.navigator : o, te = O || (H && H.userAgent ? H.userAgent : a), ge = H && H.userAgentData ? H.userAgentData : o, se = Q ? Ut(we, Q) : we,
|
|
6040
|
+
var H = typeof n !== d && n.navigator ? n.navigator : o, te = O || (H && H.userAgent ? H.userAgent : a), ge = H && H.userAgentData ? H.userAgentData : o, se = Q ? Ut(we, Q) : we, M = H && H.userAgent == te;
|
|
6050
6041
|
return this.getBrowser = function() {
|
|
6051
6042
|
var _ = {};
|
|
6052
|
-
return _[x] = o, _[U] = o, K.call(_, te, se.browser), _[R] = G(_[U]),
|
|
6043
|
+
return _[x] = o, _[U] = o, K.call(_, te, se.browser), _[R] = G(_[U]), M && H && H.brave && typeof H.brave.isBrave == l && (_[x] = "Brave"), _;
|
|
6053
6044
|
}, this.getCPU = function() {
|
|
6054
6045
|
var _ = {};
|
|
6055
|
-
return _[
|
|
6046
|
+
return _[ve] = o, K.call(_, te, se.cpu), _;
|
|
6056
6047
|
}, this.getDevice = function() {
|
|
6057
6048
|
var _ = {};
|
|
6058
|
-
return _[C] = o, _[h] = o, _[p] = o, K.call(_, te, se.device),
|
|
6049
|
+
return _[C] = o, _[h] = o, _[p] = o, K.call(_, te, se.device), M && !_[p] && ge && ge.mobile && (_[p] = $), M && _[h] == "Macintosh" && H && typeof H.standalone !== d && H.maxTouchPoints && H.maxTouchPoints > 2 && (_[h] = "iPad", _[p] = X), _;
|
|
6059
6050
|
}, this.getEngine = function() {
|
|
6060
6051
|
var _ = {};
|
|
6061
6052
|
return _[x] = o, _[U] = o, K.call(_, te, se.engine), _;
|
|
6062
6053
|
}, this.getOS = function() {
|
|
6063
6054
|
var _ = {};
|
|
6064
|
-
return _[x] = o, _[U] = o, K.call(_, te, se.os),
|
|
6055
|
+
return _[x] = o, _[U] = o, K.call(_, te, se.os), M && !_[x] && ge && ge.platform && ge.platform != "Unknown" && (_[x] = ge.platform.replace(/chrome os/i, De).replace(/macos/i, Te)), _;
|
|
6065
6056
|
}, this.getResult = function() {
|
|
6066
6057
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
6067
6058
|
}, this.getUA = function() {
|
|
@@ -6070,7 +6061,7 @@ function qb() {
|
|
|
6070
6061
|
return te = typeof _ === I && _.length > c ? ee(_, c) : _, this;
|
|
6071
6062
|
}, this.setUA(te), this;
|
|
6072
6063
|
};
|
|
6073
|
-
ae.VERSION = s, ae.BROWSER = pt([x, U, R]), ae.CPU = pt([
|
|
6064
|
+
ae.VERSION = s, ae.BROWSER = pt([x, U, R]), ae.CPU = pt([ve]), ae.DEVICE = pt([h, C, p, N, $, de, X, fe, Ce]), ae.ENGINE = ae.OS = pt([x, U]), e.exports && (t = e.exports = ae), t.UAParser = ae;
|
|
6074
6065
|
var J = typeof n !== d && (n.jQuery || n.Zepto);
|
|
6075
6066
|
if (J && !J.ua) {
|
|
6076
6067
|
var B = new ae();
|
|
@@ -6153,7 +6144,7 @@ function zb() {
|
|
|
6153
6144
|
return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
|
|
6154
6145
|
}, U(S);
|
|
6155
6146
|
}
|
|
6156
|
-
function
|
|
6147
|
+
function ve(S, f) {
|
|
6157
6148
|
if (!(S instanceof f))
|
|
6158
6149
|
throw new TypeError("Cannot call a class as a function");
|
|
6159
6150
|
}
|
|
@@ -6235,7 +6226,7 @@ function zb() {
|
|
|
6235
6226
|
return b(S);
|
|
6236
6227
|
}
|
|
6237
6228
|
function y(S, f) {
|
|
6238
|
-
return v(S) || w(S, f) ||
|
|
6229
|
+
return v(S) || w(S, f) || k(S, f) || E();
|
|
6239
6230
|
}
|
|
6240
6231
|
function v(S) {
|
|
6241
6232
|
if (Array.isArray(S)) return S;
|
|
@@ -6259,15 +6250,15 @@ function zb() {
|
|
|
6259
6250
|
return P;
|
|
6260
6251
|
}
|
|
6261
6252
|
}
|
|
6262
|
-
function
|
|
6253
|
+
function k(S, f) {
|
|
6263
6254
|
if (S) {
|
|
6264
|
-
if (typeof S == "string") return
|
|
6255
|
+
if (typeof S == "string") return A(S, f);
|
|
6265
6256
|
var m = Object.prototype.toString.call(S).slice(8, -1);
|
|
6266
6257
|
if (m === "Object" && S.constructor && (m = S.constructor.name), m === "Map" || m === "Set") return Array.from(S);
|
|
6267
|
-
if (m === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)) return
|
|
6258
|
+
if (m === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)) return A(S, f);
|
|
6268
6259
|
}
|
|
6269
6260
|
}
|
|
6270
|
-
function
|
|
6261
|
+
function A(S, f) {
|
|
6271
6262
|
(f == null || f > S.length) && (f = S.length);
|
|
6272
6263
|
for (var m = 0, P = new Array(f); m < f; m++) P[m] = S[m];
|
|
6273
6264
|
return P;
|
|
@@ -6311,7 +6302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6311
6302
|
isSmartTV: !1,
|
|
6312
6303
|
isConsole: !1,
|
|
6313
6304
|
isWearable: !1
|
|
6314
|
-
},
|
|
6305
|
+
}, ke = function(f) {
|
|
6315
6306
|
switch (f) {
|
|
6316
6307
|
case F.Mobile:
|
|
6317
6308
|
return {
|
|
@@ -6401,7 +6392,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6401
6392
|
osVersion: j(P.version),
|
|
6402
6393
|
userAgent: j(V)
|
|
6403
6394
|
};
|
|
6404
|
-
},
|
|
6395
|
+
}, Le = function(f, m, P, V, ye) {
|
|
6405
6396
|
return {
|
|
6406
6397
|
isEmbedded: f,
|
|
6407
6398
|
vendor: j(m.vendor),
|
|
@@ -6414,7 +6405,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6414
6405
|
};
|
|
6415
6406
|
};
|
|
6416
6407
|
function De(S) {
|
|
6417
|
-
var f = S ? h(S) : x, m = f.device, P = f.browser, V = f.engine, ye = f.os, Re = f.ua, qe =
|
|
6408
|
+
var f = S ? h(S) : x, m = f.device, P = f.browser, V = f.engine, ye = f.os, Re = f.ua, qe = ke(m.type), pn = qe.isBrowser, Ha = qe.isMobile, Wa = qe.isTablet, Io = qe.isSmartTV, Co = qe.isConsole, Bo = qe.isWearable, Po = qe.isEmbedded;
|
|
6418
6409
|
if (pn)
|
|
6419
6410
|
return $e(pn, P, V, ye, Re);
|
|
6420
6411
|
if (Io)
|
|
@@ -6426,7 +6417,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6426
6417
|
if (Bo)
|
|
6427
6418
|
return Ge(Bo, V, ye, Re);
|
|
6428
6419
|
if (Po)
|
|
6429
|
-
return
|
|
6420
|
+
return Le(Po, m, V, ye, Re);
|
|
6430
6421
|
}
|
|
6431
6422
|
var Te = function(f) {
|
|
6432
6423
|
var m = f.type;
|
|
@@ -6494,13 +6485,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6494
6485
|
}, se = function(f) {
|
|
6495
6486
|
var m = f.name;
|
|
6496
6487
|
return m === q.Edge;
|
|
6497
|
-
},
|
|
6488
|
+
}, M = function(f) {
|
|
6498
6489
|
var m = f.name;
|
|
6499
6490
|
return m === q.Yandex;
|
|
6500
6491
|
}, _ = function(f) {
|
|
6501
6492
|
var m = f.name;
|
|
6502
6493
|
return m === q.Safari || m === q.MobileSafari;
|
|
6503
|
-
},
|
|
6494
|
+
}, L = function(f) {
|
|
6504
6495
|
var m = f.name;
|
|
6505
6496
|
return m === q.MobileSafari;
|
|
6506
6497
|
}, be = function(f) {
|
|
@@ -6554,7 +6545,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6554
6545
|
isConsole: G(m),
|
|
6555
6546
|
isWearable: Z(m),
|
|
6556
6547
|
isEmbedded: ee(m),
|
|
6557
|
-
isMobileSafari:
|
|
6548
|
+
isMobileSafari: L(P) || Ze(),
|
|
6558
6549
|
isChromium: ge(P),
|
|
6559
6550
|
isMobile: Ut(m) || Ze(),
|
|
6560
6551
|
isMobileOnly: Te(m),
|
|
@@ -6580,7 +6571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6580
6571
|
engineVersion: et(ye),
|
|
6581
6572
|
getUA: Ue(Re),
|
|
6582
6573
|
isEdge: se(P) || rt(Re),
|
|
6583
|
-
isYandex:
|
|
6574
|
+
isYandex: M(P),
|
|
6584
6575
|
deviceType: Y(m),
|
|
6585
6576
|
isIOS13: Nt(),
|
|
6586
6577
|
isIPad13: Ze(),
|
|
@@ -6595,7 +6586,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6595
6586
|
isSamsungBrowser: Se(P)
|
|
6596
6587
|
};
|
|
6597
6588
|
}
|
|
6598
|
-
var fn = pt(l), wo = G(l), yo = Z(l), zs = ee(l), Ys =
|
|
6589
|
+
var fn = pt(l), wo = G(l), yo = Z(l), zs = ee(l), Ys = L(a) || Ze(), js = ge(a), mn = Ut(l) || Ze(), vo = Te(l), Ao = St(l) || Ze(), ko = D(l), Js = D(l), To = re(T), xo = J(T), Eo = B(T) || Ze(), Xs = H(a), Ks = te(a), Zs = _(a), Qs = be(a), So = Be(a), ea = O(T), ta = Q(T), na = Pe(a), oa = Ne(a), sa = Oe(a), aa = K(l), ra = z(l), ia = Ke(d), ca = et(d), la = Ue(I), da = se(a) || rt(I), ua = M(a), fa = Y(l), ma = Nt(), pa = Ze(), ha = jt(), ba = Rt(), ga = dt(), wa = rt(I), ya = se(a) && !rt(I), va = we(T), Aa = ae(T), ka = le(a), Ta = Se(a), xa = function(f) {
|
|
6599
6590
|
if (!f || typeof f != "string") {
|
|
6600
6591
|
console.error("No valid user agent string was provided");
|
|
6601
6592
|
return;
|
|
@@ -6613,7 +6604,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6613
6604
|
return To ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
6614
6605
|
}, Sa = function(f) {
|
|
6615
6606
|
var m = f.renderWithFragment, P = f.children, V = i(f, ["renderWithFragment", "children"]);
|
|
6616
|
-
return
|
|
6607
|
+
return ko ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
6617
6608
|
}, Na = function(f) {
|
|
6618
6609
|
var m = f.renderWithFragment, P = f.children, V = i(f, ["renderWithFragment", "children"]);
|
|
6619
6610
|
return So ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
@@ -6625,7 +6616,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6625
6616
|
return mn ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
6626
6617
|
}, Ba = function(f) {
|
|
6627
6618
|
var m = f.renderWithFragment, P = f.children, V = i(f, ["renderWithFragment", "children"]);
|
|
6628
|
-
return
|
|
6619
|
+
return Ao ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
6629
6620
|
}, Pa = function(f) {
|
|
6630
6621
|
var m = f.renderWithFragment, P = f.children, V = i(f, ["renderWithFragment", "children"]);
|
|
6631
6622
|
return xo ? m ? n.createElement(t.Fragment, null, P) : n.createElement("div", V, P) : null;
|
|
@@ -6654,7 +6645,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6654
6645
|
fe(m, f);
|
|
6655
6646
|
function m(P) {
|
|
6656
6647
|
var V;
|
|
6657
|
-
return
|
|
6648
|
+
return ve(this, m), V = g(this, Ce(m).call(this, P)), V.isEventListenerAdded = !1, V.handleOrientationChange = V.handleOrientationChange.bind(b(V)), V.onOrientationChange = V.onOrientationChange.bind(b(V)), V.onPageLoad = V.onPageLoad.bind(b(V)), V.state = {
|
|
6658
6649
|
isLandscape: !1,
|
|
6659
6650
|
isPortrait: !1
|
|
6660
6651
|
}, V;
|
|
@@ -6700,7 +6691,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6700
6691
|
}]), m;
|
|
6701
6692
|
})(n.Component);
|
|
6702
6693
|
}
|
|
6703
|
-
function
|
|
6694
|
+
function Ma() {
|
|
6704
6695
|
var S = t.useState(function() {
|
|
6705
6696
|
var ye = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
6706
6697
|
return {
|
|
@@ -6726,13 +6717,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6726
6717
|
var f = S || window.navigator.userAgent;
|
|
6727
6718
|
return h(f);
|
|
6728
6719
|
}
|
|
6729
|
-
function
|
|
6720
|
+
function La(S) {
|
|
6730
6721
|
var f = S || window.navigator.userAgent, m = No(f), P = un(m);
|
|
6731
6722
|
return [P, m];
|
|
6732
6723
|
}
|
|
6733
|
-
return ne.AndroidView = Ea, ne.BrowserTypes = q, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Na, ne.IOSView = Ia, ne.MobileOnlyView = Fa, ne.MobileView = Ca, ne.OsTypes = oe, ne.SmartTVView = _a, ne.TabletView = Ba, ne.WearableView = Oa, ne.WinPhoneView = Pa, ne.browserName = sa, ne.browserVersion = oa, ne.deviceDetect = De, ne.deviceType = fa, ne.engineName = ia, ne.engineVersion = ca, ne.fullBrowserVersion = na, ne.getSelectorsByUserAgent = xa, ne.getUA = la, ne.isAndroid = To, ne.isBrowser =
|
|
6724
|
+
return ne.AndroidView = Ea, ne.BrowserTypes = q, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Na, ne.IOSView = Ia, ne.MobileOnlyView = Fa, ne.MobileView = Ca, ne.OsTypes = oe, ne.SmartTVView = _a, ne.TabletView = Ba, ne.WearableView = Oa, ne.WinPhoneView = Pa, ne.browserName = sa, ne.browserVersion = oa, ne.deviceDetect = De, ne.deviceType = fa, ne.engineName = ia, ne.engineVersion = ca, ne.fullBrowserVersion = na, ne.getSelectorsByUserAgent = xa, ne.getUA = la, ne.isAndroid = To, ne.isBrowser = ko, ne.isChrome = Xs, ne.isChromium = js, ne.isConsole = wo, ne.isDesktop = Js, ne.isEdge = da, ne.isEdgeChromium = wa, ne.isElectron = ga, ne.isEmbedded = zs, ne.isFirefox = Ks, ne.isIE = So, ne.isIOS = Eo, ne.isIOS13 = ma, ne.isIPad13 = pa, ne.isIPhone13 = ha, ne.isIPod13 = ba, ne.isLegacyEdge = ya, ne.isMIUI = ka, ne.isMacOs = Aa, ne.isMobile = mn, ne.isMobileOnly = vo, ne.isMobileSafari = Ys, ne.isOpera = Qs, ne.isSafari = Zs, ne.isSamsungBrowser = Ta, ne.isSmartTV = fn, ne.isTablet = Ao, ne.isWearable = yo, ne.isWinPhone = xo, ne.isWindows = va, ne.isYandex = ua, ne.mobileModel = ra, ne.mobileVendor = aa, ne.osName = ta, ne.osVersion = ea, ne.parseUserAgent = h, ne.setUserAgent = Ee, ne.useDeviceData = No, ne.useDeviceSelectors = La, ne.useMobileOrientation = Ma, ne.withOrientationChange = Ra, ne;
|
|
6734
6725
|
}
|
|
6735
|
-
var
|
|
6726
|
+
var Lt = zb();
|
|
6736
6727
|
function Vn(e, t) {
|
|
6737
6728
|
if (!e) return e;
|
|
6738
6729
|
const n = e.toLowerCase().trim();
|
|
@@ -6752,7 +6743,7 @@ const Yb = ({
|
|
|
6752
6743
|
position: o = "bottom-right",
|
|
6753
6744
|
modalChatStyle: s = {}
|
|
6754
6745
|
}) => {
|
|
6755
|
-
const { t: a, ti: r } = no(), { messages: l, addMessage: d, updateMessageAction: T, updateMessageText: I } = pb(), [R, h] = je(""), [x, p] = je(!1), [C, U] = je(!0), [
|
|
6746
|
+
const { t: a, ti: r } = no(), { messages: l, addMessage: d, updateMessageAction: T, updateMessageText: I } = pb(), [R, h] = je(""), [x, p] = je(!1), [C, U] = je(!0), [ve, N] = je(null), $ = It(null), X = It(null), de = It(null), fe = It(null), Ce = It(null), c = It(!1), u = It(C);
|
|
6756
6747
|
lt(() => {
|
|
6757
6748
|
u.current = C;
|
|
6758
6749
|
}, [C]);
|
|
@@ -6763,7 +6754,7 @@ const Yb = ({
|
|
|
6763
6754
|
chainTypeMoralis: y,
|
|
6764
6755
|
chainId: v,
|
|
6765
6756
|
isChainSupported: w
|
|
6766
|
-
} = bo(), { config:
|
|
6757
|
+
} = bo(), { config: k } = hb(), A = v && k?.rpcUrls?.[v] || void 0, E = Ie(() => {
|
|
6767
6758
|
const D = Pt.getItem("dataBuyToken");
|
|
6768
6759
|
if (D)
|
|
6769
6760
|
try {
|
|
@@ -6796,7 +6787,7 @@ const Yb = ({
|
|
|
6796
6787
|
},
|
|
6797
6788
|
[E, F]
|
|
6798
6789
|
), oe = Ie((D) => {
|
|
6799
|
-
N(D),
|
|
6790
|
+
N(D), Lt.isDesktop && de.current?.focus();
|
|
6800
6791
|
}, []), me = Ie(
|
|
6801
6792
|
async (D, Z) => {
|
|
6802
6793
|
q({
|
|
@@ -6860,7 +6851,7 @@ const Yb = ({
|
|
|
6860
6851
|
a,
|
|
6861
6852
|
r
|
|
6862
6853
|
]
|
|
6863
|
-
),
|
|
6854
|
+
), ke = Ie(
|
|
6864
6855
|
async (D, Z, G, ee) => {
|
|
6865
6856
|
const K = [25, 50, 75, 100];
|
|
6866
6857
|
q({
|
|
@@ -6872,14 +6863,14 @@ const Yb = ({
|
|
|
6872
6863
|
try {
|
|
6873
6864
|
const re = await Wn({
|
|
6874
6865
|
chainId: v,
|
|
6875
|
-
rpcUrl:
|
|
6866
|
+
rpcUrl: A
|
|
6876
6867
|
});
|
|
6877
6868
|
if (re.isGreaterThan(0)) {
|
|
6878
6869
|
const we = re.times(1e6), J = new ie(
|
|
6879
6870
|
gt(G, ee || 18).toString()
|
|
6880
6871
|
).minus(we);
|
|
6881
6872
|
J.isGreaterThan(0) ? z = ie(
|
|
6882
|
-
|
|
6873
|
+
Me(BigInt(J.toFixed(0)), 18)
|
|
6883
6874
|
).toFixed() : z = "0";
|
|
6884
6875
|
}
|
|
6885
6876
|
} catch (re) {
|
|
@@ -6919,7 +6910,7 @@ const Yb = ({
|
|
|
6919
6910
|
Y
|
|
6920
6911
|
);
|
|
6921
6912
|
},
|
|
6922
|
-
[d, v,
|
|
6913
|
+
[d, v, A, q, r]
|
|
6923
6914
|
), Ee = Ie(
|
|
6924
6915
|
async (D, Z) => {
|
|
6925
6916
|
q({
|
|
@@ -6939,9 +6930,9 @@ const Yb = ({
|
|
|
6939
6930
|
});
|
|
6940
6931
|
if (K.success && K.data) {
|
|
6941
6932
|
const z = K.data, Y = z.tokenIn, re = z.tokenOut, we = ie(
|
|
6942
|
-
|
|
6933
|
+
Me(BigInt(Y.amount || 0), Y.decimals)
|
|
6943
6934
|
).decimalPlaces(6).toFormat(), ae = ie(
|
|
6944
|
-
|
|
6935
|
+
Me(BigInt(re.amount || 0), re.decimals)
|
|
6945
6936
|
).decimalPlaces(6).toFormat(), J = G.srcTokenAddress === ze || G.srcTokenAddress === "";
|
|
6946
6937
|
let B = !1;
|
|
6947
6938
|
if (!J && i?.address && z.tx?.to)
|
|
@@ -6951,7 +6942,7 @@ const Yb = ({
|
|
|
6951
6942
|
ownerAddress: i.address,
|
|
6952
6943
|
spenderAddress: z.tx.to,
|
|
6953
6944
|
chainId: v,
|
|
6954
|
-
rpcUrl:
|
|
6945
|
+
rpcUrl: A
|
|
6955
6946
|
});
|
|
6956
6947
|
B = ie(_.toString()).isLessThan(
|
|
6957
6948
|
ee
|
|
@@ -6974,7 +6965,7 @@ const Yb = ({
|
|
|
6974
6965
|
to: _.to,
|
|
6975
6966
|
data: _.data,
|
|
6976
6967
|
chainId: v,
|
|
6977
|
-
rpcUrl:
|
|
6968
|
+
rpcUrl: A
|
|
6978
6969
|
});
|
|
6979
6970
|
} catch (_) {
|
|
6980
6971
|
console.warn("Approve fee estimation failed:", _);
|
|
@@ -6983,37 +6974,37 @@ const Yb = ({
|
|
|
6983
6974
|
let ge = "", se = !1;
|
|
6984
6975
|
if (i?.address && H.isGreaterThan(0))
|
|
6985
6976
|
try {
|
|
6986
|
-
const _ = await
|
|
6977
|
+
const _ = await An({
|
|
6987
6978
|
address: i.address,
|
|
6988
6979
|
chainId: v,
|
|
6989
|
-
rpcUrl:
|
|
6980
|
+
rpcUrl: A
|
|
6990
6981
|
});
|
|
6991
6982
|
if (_.isLessThan(H)) {
|
|
6992
6983
|
se = !0;
|
|
6993
|
-
const
|
|
6994
|
-
|
|
6984
|
+
const L = ie(
|
|
6985
|
+
Me(BigInt(_.toFixed(0)), 18)
|
|
6995
6986
|
).decimalPlaces(6).toFormat(), be = ie(
|
|
6996
|
-
|
|
6987
|
+
Me(BigInt(H.toFixed(0)), 18)
|
|
6997
6988
|
).decimalPlaces(6).toFormat();
|
|
6998
6989
|
ge = r("swapFeeWarning", {
|
|
6999
6990
|
symbol: te,
|
|
7000
|
-
balance:
|
|
6991
|
+
balance: L,
|
|
7001
6992
|
needed: be
|
|
7002
6993
|
});
|
|
7003
6994
|
}
|
|
7004
6995
|
} catch (_) {
|
|
7005
6996
|
console.warn("Fee balance check failed:", _);
|
|
7006
6997
|
}
|
|
7007
|
-
const
|
|
6998
|
+
const M = `From: ${we} ${Y.symbol}
|
|
7008
6999
|
⬇️
|
|
7009
7000
|
To: ${ae} ${re.symbol}
|
|
7010
7001
|
|
|
7011
7002
|
` + ge + `
|
|
7012
7003
|
`;
|
|
7013
7004
|
if (se)
|
|
7014
|
-
d(
|
|
7005
|
+
d(M, "bot");
|
|
7015
7006
|
else if (B) {
|
|
7016
|
-
const _ =
|
|
7007
|
+
const _ = M + r("swapNeedApprove", { symbol: Y.symbol }), L = [
|
|
7017
7008
|
{
|
|
7018
7009
|
id: "approve-for-swap",
|
|
7019
7010
|
text: r("swapApproveButton", { symbol: Y.symbol }),
|
|
@@ -7028,7 +7019,7 @@ To: ${ae} ${re.symbol}
|
|
|
7028
7019
|
}
|
|
7029
7020
|
}
|
|
7030
7021
|
];
|
|
7031
|
-
d(_, "bot", void 0,
|
|
7022
|
+
d(_, "bot", void 0, L);
|
|
7032
7023
|
} else {
|
|
7033
7024
|
const _ = [
|
|
7034
7025
|
{
|
|
@@ -7042,7 +7033,7 @@ To: ${ae} ${re.symbol}
|
|
|
7042
7033
|
}
|
|
7043
7034
|
];
|
|
7044
7035
|
d(
|
|
7045
|
-
|
|
7036
|
+
M + a("swapReadyToProceed"),
|
|
7046
7037
|
"bot",
|
|
7047
7038
|
void 0,
|
|
7048
7039
|
_
|
|
@@ -7063,7 +7054,7 @@ To: ${ae} ${re.symbol}
|
|
|
7063
7054
|
v,
|
|
7064
7055
|
i?.address,
|
|
7065
7056
|
b?.nativeCurrency?.symbol,
|
|
7066
|
-
|
|
7057
|
+
A,
|
|
7067
7058
|
a,
|
|
7068
7059
|
r
|
|
7069
7060
|
]
|
|
@@ -7083,7 +7074,7 @@ To: ${ae} ${re.symbol}
|
|
|
7083
7074
|
);
|
|
7084
7075
|
break;
|
|
7085
7076
|
case "click_balance_item_user_to_buy_button":
|
|
7086
|
-
await
|
|
7077
|
+
await ke(
|
|
7087
7078
|
G?.tokenAddress || "",
|
|
7088
7079
|
G?.symbol || "",
|
|
7089
7080
|
G?.balance || "",
|
|
@@ -7117,10 +7108,10 @@ Tx: ${Y.transactionHash}`;
|
|
|
7117
7108
|
a("txSubmitted") + we
|
|
7118
7109
|
);
|
|
7119
7110
|
try {
|
|
7120
|
-
await it(2e3), (await
|
|
7111
|
+
await it(2e3), (await Ln({
|
|
7121
7112
|
transactionHash: Y.transactionHash,
|
|
7122
7113
|
chainId: v || 1,
|
|
7123
|
-
rpcUrl:
|
|
7114
|
+
rpcUrl: A
|
|
7124
7115
|
})).status === "success" ? I(
|
|
7125
7116
|
z.id,
|
|
7126
7117
|
a("txConfirmedSwap") + we
|
|
@@ -7176,10 +7167,10 @@ Error: ${Y.error}` : "";
|
|
|
7176
7167
|
let J = ae.status === "success";
|
|
7177
7168
|
if (ae.status === "success" && ae.transactionHash)
|
|
7178
7169
|
try {
|
|
7179
|
-
J = (await
|
|
7170
|
+
J = (await Ln({
|
|
7180
7171
|
transactionHash: ae.transactionHash,
|
|
7181
7172
|
chainId: v || 1,
|
|
7182
|
-
rpcUrl:
|
|
7173
|
+
rpcUrl: A
|
|
7183
7174
|
})).status === "success";
|
|
7184
7175
|
} catch (B) {
|
|
7185
7176
|
console.warn("Approval tracking timeout:", B), J = !0;
|
|
@@ -7318,7 +7309,7 @@ Error: ${ae.error}` : "";
|
|
|
7318
7309
|
}
|
|
7319
7310
|
else
|
|
7320
7311
|
await it(500), d(`Received: ${D}`, "bot");
|
|
7321
|
-
p(!1),
|
|
7312
|
+
p(!1), Lt.isDesktop && de.current?.focus();
|
|
7322
7313
|
} catch (ee) {
|
|
7323
7314
|
d(a("errorProcessingRequest"), "bot"), p(!1), console.error("Error handling button click:", ee);
|
|
7324
7315
|
}
|
|
@@ -7333,11 +7324,11 @@ Error: ${ae.error}` : "";
|
|
|
7333
7324
|
y,
|
|
7334
7325
|
E,
|
|
7335
7326
|
me,
|
|
7336
|
-
|
|
7327
|
+
ke,
|
|
7337
7328
|
n,
|
|
7338
7329
|
Ee,
|
|
7339
7330
|
q,
|
|
7340
|
-
|
|
7331
|
+
A,
|
|
7341
7332
|
a,
|
|
7342
7333
|
r
|
|
7343
7334
|
]
|
|
@@ -7465,7 +7456,7 @@ $${ie(
|
|
|
7465
7456
|
text: r("buttonSendToken", { symbol: K.symbol }),
|
|
7466
7457
|
value: r("buttonSendToken", { symbol: K.symbol }),
|
|
7467
7458
|
action: "suggested_action",
|
|
7468
|
-
fullWidth: !!
|
|
7459
|
+
fullWidth: !!Lt.isMobile
|
|
7469
7460
|
},
|
|
7470
7461
|
// {
|
|
7471
7462
|
// id: `swap-${token.token_address}`,
|
|
@@ -7479,7 +7470,7 @@ $${ie(
|
|
|
7479
7470
|
text: r("buttonBuyMoreToken", { symbol: K.symbol }),
|
|
7480
7471
|
value: r("buttonBuyMoreToken", { symbol: K.symbol }),
|
|
7481
7472
|
action: "suggested_action",
|
|
7482
|
-
fullWidth: !!
|
|
7473
|
+
fullWidth: !!Lt.isMobile
|
|
7483
7474
|
}
|
|
7484
7475
|
]
|
|
7485
7476
|
), ee = Z.map((K, z) => {
|
|
@@ -7531,7 +7522,7 @@ $${ie(
|
|
|
7531
7522
|
lt(() => {
|
|
7532
7523
|
$.current?.scrollIntoView({ behavior: "smooth" });
|
|
7533
7524
|
}, [l]), lt(() => {
|
|
7534
|
-
e ? (de.current &&
|
|
7525
|
+
e ? (de.current && Lt.isDesktop && de.current.focus(), $.current?.scrollIntoView({ behavior: "instant" }), c.current && Ce.current ? Date.now() - Ce.current > 1e4 && U(!0) : U(!0), Ce.current = null, c.current = !1, setTimeout(() => {
|
|
7535
7526
|
$.current?.scrollIntoView({ behavior: "smooth" });
|
|
7536
7527
|
}, 50)) : (Ce.current = Date.now(), c.current = !u.current);
|
|
7537
7528
|
}, [e]), lt(() => {
|
|
@@ -7542,10 +7533,10 @@ $${ie(
|
|
|
7542
7533
|
}, [e, t]);
|
|
7543
7534
|
const _e = Ie(async () => {
|
|
7544
7535
|
if (R?.trim() === "" || x) return;
|
|
7545
|
-
const D =
|
|
7536
|
+
const D = ve, Z = d(
|
|
7546
7537
|
R?.trim(),
|
|
7547
7538
|
"user",
|
|
7548
|
-
|
|
7539
|
+
ve?.id
|
|
7549
7540
|
);
|
|
7550
7541
|
h(""), N(null), p(!0), U(!1), p(!0);
|
|
7551
7542
|
try {
|
|
@@ -7613,7 +7604,7 @@ $${ie(
|
|
|
7613
7604
|
D && (re = `[Replying to ${D.sender === "user" ? "my previous" : "your"} message: "${D.text}"]
|
|
7614
7605
|
|
|
7615
7606
|
${re}`);
|
|
7616
|
-
const we = await
|
|
7607
|
+
const we = await Ab({
|
|
7617
7608
|
prompt: re,
|
|
7618
7609
|
model: "gpt-4.1-mini",
|
|
7619
7610
|
stream: !1,
|
|
@@ -7663,12 +7654,12 @@ ${re}`);
|
|
|
7663
7654
|
te,
|
|
7664
7655
|
g
|
|
7665
7656
|
)
|
|
7666
|
-
]),
|
|
7667
|
-
ge.status === "fulfilled" && ge.value?.data &&
|
|
7668
|
-
const _ =
|
|
7669
|
-
(
|
|
7670
|
-
) ||
|
|
7671
|
-
(
|
|
7657
|
+
]), M = [];
|
|
7658
|
+
ge.status === "fulfilled" && ge.value?.data && M.push(...ge.value.data), se.status === "fulfilled" && se.value?.data && M.push(...se.value.data);
|
|
7659
|
+
const _ = M.find(
|
|
7660
|
+
(L) => L.address?.toLowerCase() === O.toLowerCase()
|
|
7661
|
+
) || M.find(
|
|
7662
|
+
(L) => L.symbol?.toUpperCase() === B.toUpperCase()
|
|
7672
7663
|
);
|
|
7673
7664
|
_ && (O = _.address, Q = _.decimals || 18);
|
|
7674
7665
|
}
|
|
@@ -7693,10 +7684,10 @@ ${re}`);
|
|
|
7693
7684
|
chain: y
|
|
7694
7685
|
});
|
|
7695
7686
|
if (se?.success && se?.data?.result) {
|
|
7696
|
-
const
|
|
7697
|
-
(
|
|
7698
|
-
) :
|
|
7699
|
-
(
|
|
7687
|
+
const M = se.data.result, _ = B.token_in ? M.find(
|
|
7688
|
+
(L) => L.token_address.toLowerCase() === B.token_in.toLowerCase()
|
|
7689
|
+
) : M.find(
|
|
7690
|
+
(L) => L.symbol.toUpperCase() === B.token_in_symbol.toUpperCase()
|
|
7700
7691
|
);
|
|
7701
7692
|
_ && (B.token_in = _.token_address, B.token_in_decimals = String(_.decimals));
|
|
7702
7693
|
}
|
|
@@ -7710,10 +7701,10 @@ ${re}`);
|
|
|
7710
7701
|
chain: y
|
|
7711
7702
|
});
|
|
7712
7703
|
if (se?.success && se?.data?.result) {
|
|
7713
|
-
const
|
|
7714
|
-
(
|
|
7715
|
-
) :
|
|
7716
|
-
(
|
|
7704
|
+
const M = se.data.result, _ = B.token_out ? M.find(
|
|
7705
|
+
(L) => L.token_address.toLowerCase() === B.token_out.toLowerCase()
|
|
7706
|
+
) : M.find(
|
|
7707
|
+
(L) => L.symbol.toUpperCase() === B.token_out_symbol.toUpperCase()
|
|
7717
7708
|
);
|
|
7718
7709
|
_ && (B.token_out = _.token_address, B.token_out_decimals = String(_.decimals));
|
|
7719
7710
|
}
|
|
@@ -7730,7 +7721,7 @@ ${re}`);
|
|
|
7730
7721
|
try {
|
|
7731
7722
|
const se = [];
|
|
7732
7723
|
B.token_out && se.push(B.token_out), B.token_in && !O && se.push(B.token_in);
|
|
7733
|
-
let
|
|
7724
|
+
let M = 18, _ = 18;
|
|
7734
7725
|
if (se.length > 0)
|
|
7735
7726
|
try {
|
|
7736
7727
|
const le = await nt.getTokensDetails(
|
|
@@ -7739,7 +7730,7 @@ ${re}`);
|
|
|
7739
7730
|
);
|
|
7740
7731
|
if (le?.data)
|
|
7741
7732
|
for (const Se of le.data)
|
|
7742
|
-
!O && Se.address.toLowerCase() === B.token_in?.toLowerCase() && (
|
|
7733
|
+
!O && Se.address.toLowerCase() === B.token_in?.toLowerCase() && (M = Se.decimals || 18), Se.address.toLowerCase() === B.token_out?.toLowerCase() && (_ = Se.decimals || 18);
|
|
7743
7734
|
} catch (le) {
|
|
7744
7735
|
console.warn(
|
|
7745
7736
|
"getTokensDetails failed, using default decimals:",
|
|
@@ -7762,14 +7753,14 @@ ${re}`);
|
|
|
7762
7753
|
try {
|
|
7763
7754
|
const et = await Wn({
|
|
7764
7755
|
chainId: v,
|
|
7765
|
-
rpcUrl:
|
|
7756
|
+
rpcUrl: A
|
|
7766
7757
|
});
|
|
7767
7758
|
if (et.isGreaterThan(0)) {
|
|
7768
7759
|
const dt = et.times(1e6), Nt = new ie(
|
|
7769
7760
|
Pe?.balance || "0"
|
|
7770
7761
|
).minus(dt);
|
|
7771
7762
|
Nt.isGreaterThan(0) ? Ne = ie(
|
|
7772
|
-
|
|
7763
|
+
Me(
|
|
7773
7764
|
BigInt(Nt.toFixed(0)),
|
|
7774
7765
|
Pe?.decimals || 18
|
|
7775
7766
|
)
|
|
@@ -7839,20 +7830,20 @@ ${re}`);
|
|
|
7839
7830
|
} catch (le) {
|
|
7840
7831
|
console.warn("Balance check failed:", le);
|
|
7841
7832
|
}
|
|
7842
|
-
const
|
|
7833
|
+
const L = O ? ze : B.token_in;
|
|
7843
7834
|
q({
|
|
7844
|
-
srcTokenAddress:
|
|
7835
|
+
srcTokenAddress: L,
|
|
7845
7836
|
descTokenAddress: B.token_out,
|
|
7846
7837
|
amount: B.amount,
|
|
7847
|
-
srcTokenDecimals:
|
|
7838
|
+
srcTokenDecimals: M,
|
|
7848
7839
|
descTokenDecimals: _
|
|
7849
7840
|
});
|
|
7850
7841
|
const be = gt(
|
|
7851
7842
|
B.amount,
|
|
7852
|
-
|
|
7843
|
+
M
|
|
7853
7844
|
).toString(), Be = await Rn({
|
|
7854
7845
|
chainId: v,
|
|
7855
|
-
tokenIn:
|
|
7846
|
+
tokenIn: L,
|
|
7856
7847
|
tokenInAmount: be,
|
|
7857
7848
|
tokenOut: B.token_out,
|
|
7858
7849
|
tokenOutRecipient: i?.address || "",
|
|
@@ -7861,19 +7852,19 @@ ${re}`);
|
|
|
7861
7852
|
});
|
|
7862
7853
|
if (Be.success && Be.data) {
|
|
7863
7854
|
const le = Be.data, Se = le.tokenIn, Pe = le.tokenOut, Ne = ie(
|
|
7864
|
-
|
|
7855
|
+
Me(BigInt(Se.amount || 0), Se.decimals)
|
|
7865
7856
|
).decimalPlaces(6).toFormat(), Oe = ie(
|
|
7866
|
-
|
|
7857
|
+
Me(BigInt(Pe.amount || 0), Pe.decimals)
|
|
7867
7858
|
).decimalPlaces(6).toFormat();
|
|
7868
7859
|
let Ke = !1;
|
|
7869
7860
|
if (!O && i?.address && le.tx?.to)
|
|
7870
7861
|
try {
|
|
7871
7862
|
const Ue = await Hn({
|
|
7872
|
-
tokenAddress:
|
|
7863
|
+
tokenAddress: L,
|
|
7873
7864
|
ownerAddress: i.address,
|
|
7874
7865
|
spenderAddress: le.tx.to,
|
|
7875
7866
|
chainId: v,
|
|
7876
|
-
rpcUrl:
|
|
7867
|
+
rpcUrl: A
|
|
7877
7868
|
});
|
|
7878
7869
|
Ke = ie(
|
|
7879
7870
|
Ue.toString()
|
|
@@ -7886,7 +7877,7 @@ ${re}`);
|
|
|
7886
7877
|
if (Ke && i?.address)
|
|
7887
7878
|
try {
|
|
7888
7879
|
const Ue = vn({
|
|
7889
|
-
tokenAddress:
|
|
7880
|
+
tokenAddress: L,
|
|
7890
7881
|
spenderAddress: le.tx?.to || "",
|
|
7891
7882
|
fromAddress: i.address,
|
|
7892
7883
|
chainId: v
|
|
@@ -7896,7 +7887,7 @@ ${re}`);
|
|
|
7896
7887
|
to: Ue.to,
|
|
7897
7888
|
data: Ue.data,
|
|
7898
7889
|
chainId: v,
|
|
7899
|
-
rpcUrl:
|
|
7890
|
+
rpcUrl: A
|
|
7900
7891
|
});
|
|
7901
7892
|
} catch (Ue) {
|
|
7902
7893
|
console.warn("Approve fee estimation failed:", Ue);
|
|
@@ -7905,17 +7896,17 @@ ${re}`);
|
|
|
7905
7896
|
let Ze = "", jt = !1;
|
|
7906
7897
|
if (i?.address && rt.isGreaterThan(0))
|
|
7907
7898
|
try {
|
|
7908
|
-
const Ue = await
|
|
7899
|
+
const Ue = await An({
|
|
7909
7900
|
address: i.address,
|
|
7910
7901
|
chainId: v,
|
|
7911
|
-
rpcUrl:
|
|
7902
|
+
rpcUrl: A
|
|
7912
7903
|
});
|
|
7913
7904
|
if (Ue.isLessThan(rt)) {
|
|
7914
7905
|
jt = !0;
|
|
7915
7906
|
const un = ie(
|
|
7916
|
-
|
|
7907
|
+
Me(BigInt(Ue.toFixed(0)), 18)
|
|
7917
7908
|
).decimalPlaces(6).toFormat(), fn = ie(
|
|
7918
|
-
|
|
7909
|
+
Me(BigInt(rt.toFixed(0)), 18)
|
|
7919
7910
|
).decimalPlaces(6).toFormat();
|
|
7920
7911
|
Ze = r("swapFeeWarning", {
|
|
7921
7912
|
symbol: Nt,
|
|
@@ -7947,7 +7938,7 @@ To: ${Oe} ${Pe.symbol}
|
|
|
7947
7938
|
action: "approve_for_swap",
|
|
7948
7939
|
fullWidth: !0,
|
|
7949
7940
|
extraData: {
|
|
7950
|
-
tokenAddress:
|
|
7941
|
+
tokenAddress: L,
|
|
7951
7942
|
spenderAddress: le.tx.to,
|
|
7952
7943
|
tokenSymbol: Se.symbol,
|
|
7953
7944
|
tx: le.tx
|
|
@@ -7988,51 +7979,51 @@ To: ${Oe} ${Pe.symbol}
|
|
|
7988
7979
|
console.error("Swap estimation error:", se), d(a("swapEstimationFailed"), "bot");
|
|
7989
7980
|
}
|
|
7990
7981
|
} else if (H && te && !ge) {
|
|
7991
|
-
let se = O ? 18 : parseInt(B.token_in_decimals || "18", 10),
|
|
7982
|
+
let se = O ? 18 : parseInt(B.token_in_decimals || "18", 10), M = parseInt(
|
|
7992
7983
|
B.token_out_decimals || "18",
|
|
7993
7984
|
10
|
|
7994
7985
|
);
|
|
7995
7986
|
const _ = [];
|
|
7996
7987
|
if (B.token_out && _.push(B.token_out), B.token_in && !O && _.push(B.token_in), _.length > 0)
|
|
7997
7988
|
try {
|
|
7998
|
-
const
|
|
7989
|
+
const L = await nt.getTokensDetails(
|
|
7999
7990
|
_,
|
|
8000
7991
|
g
|
|
8001
7992
|
);
|
|
8002
|
-
if (
|
|
8003
|
-
for (const be of
|
|
8004
|
-
!O && be.address.toLowerCase() === B.token_in?.toLowerCase() && (se = be.decimals || se), be.address.toLowerCase() === B.token_out?.toLowerCase() && (
|
|
8005
|
-
} catch (
|
|
7993
|
+
if (L?.data)
|
|
7994
|
+
for (const be of L.data)
|
|
7995
|
+
!O && be.address.toLowerCase() === B.token_in?.toLowerCase() && (se = be.decimals || se), be.address.toLowerCase() === B.token_out?.toLowerCase() && (M = be.decimals || M);
|
|
7996
|
+
} catch (L) {
|
|
8006
7997
|
console.warn(
|
|
8007
7998
|
"getTokensDetails failed in CASE 2, using fallback decimals:",
|
|
8008
|
-
|
|
7999
|
+
L
|
|
8009
8000
|
);
|
|
8010
8001
|
}
|
|
8011
8002
|
if (q({
|
|
8012
8003
|
descTokenAddress: B.token_out,
|
|
8013
|
-
descTokenDecimals:
|
|
8004
|
+
descTokenDecimals: M
|
|
8014
8005
|
}), O)
|
|
8015
8006
|
try {
|
|
8016
|
-
const
|
|
8007
|
+
const L = await Qe({
|
|
8017
8008
|
address: i?.address || "",
|
|
8018
8009
|
chain: y
|
|
8019
8010
|
});
|
|
8020
|
-
if (
|
|
8021
|
-
const Be =
|
|
8011
|
+
if (L?.success && L?.data?.result) {
|
|
8012
|
+
const Be = L.data.result.find(
|
|
8022
8013
|
(Oe) => Oe.native_token
|
|
8023
8014
|
), le = b?.nativeCurrency?.symbol || "ETH";
|
|
8024
8015
|
let Se = Be?.balance_formatted || "0";
|
|
8025
8016
|
try {
|
|
8026
8017
|
const Oe = await Wn({
|
|
8027
8018
|
chainId: v,
|
|
8028
|
-
rpcUrl:
|
|
8019
|
+
rpcUrl: A
|
|
8029
8020
|
});
|
|
8030
8021
|
if (Oe.isGreaterThan(0)) {
|
|
8031
8022
|
const Ke = Oe.times(1e6), dt = new ie(
|
|
8032
8023
|
Be?.balance || "0"
|
|
8033
8024
|
).minus(Ke);
|
|
8034
8025
|
dt.isGreaterThan(0) ? Se = ie(
|
|
8035
|
-
|
|
8026
|
+
Me(
|
|
8036
8027
|
BigInt(dt.toFixed(0)),
|
|
8037
8028
|
Be?.decimals || 18
|
|
8038
8029
|
)
|
|
@@ -8074,11 +8065,11 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8074
8065
|
);
|
|
8075
8066
|
} else
|
|
8076
8067
|
d(a("couldNotFetchBalance"), "bot");
|
|
8077
|
-
} catch (
|
|
8078
|
-
console.warn("Native balance fetch failed:",
|
|
8068
|
+
} catch (L) {
|
|
8069
|
+
console.warn("Native balance fetch failed:", L), d(a("couldNotFetchBalanceRetry"), "bot");
|
|
8079
8070
|
}
|
|
8080
8071
|
else {
|
|
8081
|
-
const
|
|
8072
|
+
const L = B.token_in_symbol || "Token";
|
|
8082
8073
|
q({
|
|
8083
8074
|
srcTokenAddress: B.token_in,
|
|
8084
8075
|
srcTokenDecimals: se
|
|
@@ -8094,7 +8085,7 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8094
8085
|
);
|
|
8095
8086
|
if (!le) {
|
|
8096
8087
|
d(
|
|
8097
|
-
r("swapTokenNotInWallet", { symbol:
|
|
8088
|
+
r("swapTokenNotInWallet", { symbol: L }),
|
|
8098
8089
|
"bot"
|
|
8099
8090
|
), p(!1);
|
|
8100
8091
|
return;
|
|
@@ -8141,15 +8132,15 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8141
8132
|
);
|
|
8142
8133
|
if (B.token_out)
|
|
8143
8134
|
try {
|
|
8144
|
-
const
|
|
8135
|
+
const M = await nt.getTokensDetails(
|
|
8145
8136
|
[B.token_out],
|
|
8146
8137
|
g
|
|
8147
8138
|
);
|
|
8148
|
-
|
|
8149
|
-
} catch (
|
|
8139
|
+
M?.data?.[0] && (se = M.data[0].decimals || se);
|
|
8140
|
+
} catch (M) {
|
|
8150
8141
|
console.warn(
|
|
8151
8142
|
"getTokensDetails failed in CASE 3, using fallback:",
|
|
8152
|
-
|
|
8143
|
+
M
|
|
8153
8144
|
);
|
|
8154
8145
|
}
|
|
8155
8146
|
await me(
|
|
@@ -8160,15 +8151,15 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8160
8151
|
let se = O ? 18 : parseInt(B.token_in_decimals || "18", 10);
|
|
8161
8152
|
if (B.token_in && !O)
|
|
8162
8153
|
try {
|
|
8163
|
-
const
|
|
8154
|
+
const M = await nt.getTokensDetails(
|
|
8164
8155
|
[B.token_in],
|
|
8165
8156
|
g
|
|
8166
8157
|
);
|
|
8167
|
-
|
|
8168
|
-
} catch (
|
|
8158
|
+
M?.data?.[0] && (se = M.data[0].decimals || se);
|
|
8159
|
+
} catch (M) {
|
|
8169
8160
|
console.warn(
|
|
8170
8161
|
"getTokensDetails failed in CASE 4, using fallback:",
|
|
8171
|
-
|
|
8162
|
+
M
|
|
8172
8163
|
);
|
|
8173
8164
|
}
|
|
8174
8165
|
q(O ? {
|
|
@@ -8184,12 +8175,12 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8184
8175
|
);
|
|
8185
8176
|
try {
|
|
8186
8177
|
p(!0);
|
|
8187
|
-
const
|
|
8178
|
+
const M = b?.tokenTrendingDefault || [], [_, L] = await Promise.allSettled([
|
|
8188
8179
|
nt.getTopGainers(g, "24h", 5),
|
|
8189
|
-
nt.getTokensDetails(
|
|
8180
|
+
nt.getTokensDetails(M, g)
|
|
8190
8181
|
]);
|
|
8191
8182
|
let be = [];
|
|
8192
|
-
_.status === "fulfilled" && _.value?.data && (be = [..._.value.data]),
|
|
8183
|
+
_.status === "fulfilled" && _.value?.data && (be = [..._.value.data]), L.status === "fulfilled" && L.value?.data && (be = [...L.value.data, ...be]), be = be.filter(
|
|
8193
8184
|
(le, Se, Pe) => Se === Pe.findIndex(
|
|
8194
8185
|
(Ne) => Ne.address.toLowerCase() === le.address.toLowerCase()
|
|
8195
8186
|
)
|
|
@@ -8216,8 +8207,8 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8216
8207
|
void 0,
|
|
8217
8208
|
Be
|
|
8218
8209
|
);
|
|
8219
|
-
} catch (
|
|
8220
|
-
console.error("Error fetching trending tokens for swap:",
|
|
8210
|
+
} catch (M) {
|
|
8211
|
+
console.error("Error fetching trending tokens for swap:", M), d(a("couldNotLoadTokenList"), "bot");
|
|
8221
8212
|
} finally {
|
|
8222
8213
|
p(!1);
|
|
8223
8214
|
}
|
|
@@ -8299,11 +8290,11 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8299
8290
|
});
|
|
8300
8291
|
if (B?.success && B?.data?.result) {
|
|
8301
8292
|
const O = B.data.result, Q = (J.parameters?.nft_name || "").toLowerCase(), H = J.parameters?.token_id || "", te = O.find((ge) => {
|
|
8302
|
-
const se = (ge.normalized_metadata?.name || ge.name || "").toLowerCase(),
|
|
8303
|
-
return Q && H ? _ &&
|
|
8293
|
+
const se = (ge.normalized_metadata?.name || ge.name || "").toLowerCase(), M = (ge.name || "").toLowerCase(), _ = Q && (se.includes(Q) || M.includes(Q)), L = H && ge.token_id === H;
|
|
8294
|
+
return Q && H ? _ && L : Q ? _ : L;
|
|
8304
8295
|
});
|
|
8305
8296
|
if (te) {
|
|
8306
|
-
const ge = te.normalized_metadata?.name || te.name || `#${te.token_id}`, se = te.normalized_metadata?.image || te.media?.original_media_url || "",
|
|
8297
|
+
const ge = te.normalized_metadata?.name || te.name || `#${te.token_id}`, se = te.normalized_metadata?.image || te.media?.original_media_url || "", M = {
|
|
8307
8298
|
contract_address: te.token_address,
|
|
8308
8299
|
token_id: te.token_id,
|
|
8309
8300
|
to_address: J.parameters?.to_address || "",
|
|
@@ -8323,7 +8314,7 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8323
8314
|
void 0,
|
|
8324
8315
|
{
|
|
8325
8316
|
action: "send_nft",
|
|
8326
|
-
parameters:
|
|
8317
|
+
parameters: M,
|
|
8327
8318
|
status: "pending",
|
|
8328
8319
|
nftInfo: {
|
|
8329
8320
|
name: ge,
|
|
@@ -8357,43 +8348,43 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8357
8348
|
const te = ["send_token", "approve_token"].includes(J.action) && (O.contract_address || O.token_symbol), ge = J.action === "send_native", se = J.action === "send_nft" && O.contract_address;
|
|
8358
8349
|
if (te && i?.address)
|
|
8359
8350
|
try {
|
|
8360
|
-
const
|
|
8351
|
+
const M = await Qe({
|
|
8361
8352
|
address: i.address,
|
|
8362
8353
|
chain: y
|
|
8363
8354
|
});
|
|
8364
|
-
if (
|
|
8365
|
-
const _ =
|
|
8355
|
+
if (M?.success && M?.data?.result) {
|
|
8356
|
+
const _ = M.data.result, L = O.contract_address ? _.find(
|
|
8366
8357
|
(be) => be.token_address.toLowerCase() === O.contract_address.toLowerCase()
|
|
8367
8358
|
) : _.find(
|
|
8368
8359
|
(be) => be.symbol.toUpperCase() === O.token_symbol.toUpperCase()
|
|
8369
8360
|
);
|
|
8370
|
-
|
|
8361
|
+
L && (O = {
|
|
8371
8362
|
...O,
|
|
8372
|
-
contract_address:
|
|
8373
|
-
decimals: String(
|
|
8363
|
+
contract_address: L.token_address,
|
|
8364
|
+
decimals: String(L.decimals)
|
|
8374
8365
|
}, Q = {
|
|
8375
|
-
symbol:
|
|
8376
|
-
name:
|
|
8377
|
-
balance:
|
|
8378
|
-
balanceFormatted:
|
|
8379
|
-
usdValue:
|
|
8380
|
-
usdPrice:
|
|
8381
|
-
decimals:
|
|
8382
|
-
logo:
|
|
8383
|
-
contractAddress:
|
|
8366
|
+
symbol: L.symbol,
|
|
8367
|
+
name: L.name,
|
|
8368
|
+
balance: L.balance,
|
|
8369
|
+
balanceFormatted: L.balance_formatted,
|
|
8370
|
+
usdValue: L.usd_value,
|
|
8371
|
+
usdPrice: L.usd_price,
|
|
8372
|
+
decimals: L.decimals,
|
|
8373
|
+
logo: L.logo || L.thumbnail,
|
|
8374
|
+
contractAddress: L.token_address
|
|
8384
8375
|
});
|
|
8385
8376
|
}
|
|
8386
|
-
} catch (
|
|
8387
|
-
console.warn("Token enrichment failed:",
|
|
8377
|
+
} catch (M) {
|
|
8378
|
+
console.warn("Token enrichment failed:", M);
|
|
8388
8379
|
}
|
|
8389
8380
|
if (te && !Q && O.contract_address)
|
|
8390
8381
|
try {
|
|
8391
|
-
const
|
|
8382
|
+
const M = await vb({
|
|
8392
8383
|
address: O.contract_address,
|
|
8393
8384
|
chain: y
|
|
8394
8385
|
});
|
|
8395
|
-
if (
|
|
8396
|
-
const _ =
|
|
8386
|
+
if (M?.success && M?.data) {
|
|
8387
|
+
const _ = M.data;
|
|
8397
8388
|
Q = {
|
|
8398
8389
|
symbol: _.symbol,
|
|
8399
8390
|
name: _.name,
|
|
@@ -8408,38 +8399,38 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8408
8399
|
decimals: String(_.decimals)
|
|
8409
8400
|
};
|
|
8410
8401
|
}
|
|
8411
|
-
} catch (
|
|
8412
|
-
console.warn("Token metadata fallback failed:",
|
|
8402
|
+
} catch (M) {
|
|
8403
|
+
console.warn("Token metadata fallback failed:", M);
|
|
8413
8404
|
}
|
|
8414
8405
|
if (ge && i?.address)
|
|
8415
8406
|
try {
|
|
8416
|
-
const
|
|
8407
|
+
const M = await Qe({
|
|
8417
8408
|
address: i.address,
|
|
8418
8409
|
chain: y
|
|
8419
8410
|
});
|
|
8420
|
-
if (
|
|
8421
|
-
const
|
|
8411
|
+
if (M?.success && M?.data?.result) {
|
|
8412
|
+
const L = M.data.result.find(
|
|
8422
8413
|
(be) => be.native_token
|
|
8423
8414
|
);
|
|
8424
|
-
if (
|
|
8425
|
-
let be =
|
|
8415
|
+
if (L) {
|
|
8416
|
+
let be = L.balance_formatted, Be = L.balance;
|
|
8426
8417
|
try {
|
|
8427
8418
|
const le = new ie(
|
|
8428
|
-
|
|
8419
|
+
L.balance
|
|
8429
8420
|
), Se = "0x" + BigInt(le.toFixed(0)).toString(16), Pe = await Qt({
|
|
8430
8421
|
from: i.address,
|
|
8431
8422
|
to: i.address,
|
|
8432
8423
|
data: "0x",
|
|
8433
8424
|
value: Se,
|
|
8434
8425
|
chainId: v,
|
|
8435
|
-
rpcUrl:
|
|
8426
|
+
rpcUrl: A
|
|
8436
8427
|
});
|
|
8437
8428
|
if (Pe.isGreaterThan(0)) {
|
|
8438
8429
|
const Ne = le.minus(Pe);
|
|
8439
8430
|
Ne.isGreaterThan(0) ? (Be = Ne.toFixed(0), be = ie(
|
|
8440
|
-
|
|
8431
|
+
Me(
|
|
8441
8432
|
BigInt(Ne.toFixed(0)),
|
|
8442
|
-
|
|
8433
|
+
L.decimals
|
|
8443
8434
|
)
|
|
8444
8435
|
).toFixed()) : (Be = "0", be = "0");
|
|
8445
8436
|
}
|
|
@@ -8450,29 +8441,29 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8450
8441
|
);
|
|
8451
8442
|
}
|
|
8452
8443
|
Q = {
|
|
8453
|
-
symbol:
|
|
8454
|
-
name:
|
|
8444
|
+
symbol: L.symbol,
|
|
8445
|
+
name: L.name,
|
|
8455
8446
|
balance: Be,
|
|
8456
8447
|
balanceFormatted: be,
|
|
8457
|
-
usdValue:
|
|
8458
|
-
usdPrice:
|
|
8459
|
-
decimals:
|
|
8460
|
-
logo:
|
|
8448
|
+
usdValue: L.usd_value,
|
|
8449
|
+
usdPrice: L.usd_price,
|
|
8450
|
+
decimals: L.decimals,
|
|
8451
|
+
logo: L.logo || L.thumbnail,
|
|
8461
8452
|
contractAddress: ze
|
|
8462
8453
|
};
|
|
8463
8454
|
}
|
|
8464
8455
|
}
|
|
8465
|
-
} catch (
|
|
8466
|
-
console.warn("Native token balance fetch failed:",
|
|
8456
|
+
} catch (M) {
|
|
8457
|
+
console.warn("Native token balance fetch failed:", M);
|
|
8467
8458
|
}
|
|
8468
8459
|
if (se) {
|
|
8469
8460
|
try {
|
|
8470
|
-
const
|
|
8461
|
+
const M = await kb({
|
|
8471
8462
|
address: O.contract_address,
|
|
8472
8463
|
chain: y
|
|
8473
8464
|
});
|
|
8474
|
-
if (
|
|
8475
|
-
const _ =
|
|
8465
|
+
if (M?.success && M?.data) {
|
|
8466
|
+
const _ = M.data;
|
|
8476
8467
|
_.contract_type && (O = {
|
|
8477
8468
|
...O,
|
|
8478
8469
|
token_standard: _.contract_type
|
|
@@ -8481,20 +8472,20 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8481
8472
|
nft_name: _.name
|
|
8482
8473
|
});
|
|
8483
8474
|
}
|
|
8484
|
-
} catch (
|
|
8485
|
-
console.warn("NFT contract metadata fetch failed:",
|
|
8475
|
+
} catch (M) {
|
|
8476
|
+
console.warn("NFT contract metadata fetch failed:", M);
|
|
8486
8477
|
}
|
|
8487
8478
|
if (i?.address)
|
|
8488
8479
|
try {
|
|
8489
|
-
const
|
|
8480
|
+
const M = await yn({
|
|
8490
8481
|
address: i.address,
|
|
8491
8482
|
chain: y,
|
|
8492
8483
|
limit: 100,
|
|
8493
8484
|
exclude_spam: !1
|
|
8494
8485
|
});
|
|
8495
|
-
if (
|
|
8496
|
-
const _ =
|
|
8497
|
-
(
|
|
8486
|
+
if (M?.success && M?.data?.result) {
|
|
8487
|
+
const _ = M.data.result.find(
|
|
8488
|
+
(L) => L.token_address.toLowerCase() === O.contract_address.toLowerCase() && L.token_id === O.token_id
|
|
8498
8489
|
);
|
|
8499
8490
|
if (_) {
|
|
8500
8491
|
O = {
|
|
@@ -8502,27 +8493,27 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8502
8493
|
amount: "1",
|
|
8503
8494
|
maxAmount: _.amount || "1"
|
|
8504
8495
|
};
|
|
8505
|
-
const
|
|
8496
|
+
const L = _.normalized_metadata?.image || _.media?.original_media_url || "";
|
|
8506
8497
|
H = {
|
|
8507
8498
|
name: _.normalized_metadata?.name || _.name || O.nft_name || `#${_.token_id}`,
|
|
8508
|
-
image:
|
|
8499
|
+
image: L || void 0,
|
|
8509
8500
|
tokenId: _.token_id,
|
|
8510
8501
|
contractAddress: _.token_address,
|
|
8511
8502
|
tokenStandard: _.contract_type || O.token_standard || void 0
|
|
8512
8503
|
};
|
|
8513
8504
|
}
|
|
8514
8505
|
}
|
|
8515
|
-
} catch (
|
|
8516
|
-
console.warn("NFT ownership lookup failed:",
|
|
8506
|
+
} catch (M) {
|
|
8507
|
+
console.warn("NFT ownership lookup failed:", M);
|
|
8517
8508
|
}
|
|
8518
8509
|
}
|
|
8519
8510
|
if (O.amount && Q?.balanceFormatted && (J.action === "send_token" || J.action === "send_native") && (O.amount = Vn(
|
|
8520
8511
|
O.amount,
|
|
8521
8512
|
Q.balanceFormatted
|
|
8522
8513
|
)), B) {
|
|
8523
|
-
const
|
|
8514
|
+
const M = J.message || "Please review and complete the form below.";
|
|
8524
8515
|
d(
|
|
8525
|
-
|
|
8516
|
+
M,
|
|
8526
8517
|
"bot",
|
|
8527
8518
|
Z.id,
|
|
8528
8519
|
void 0,
|
|
@@ -8573,13 +8564,13 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8573
8564
|
} catch (G) {
|
|
8574
8565
|
console.error("Error getting AI response:", G), d(a("errorProcessingRequest"), "bot", Z.id);
|
|
8575
8566
|
}
|
|
8576
|
-
p(!1), await it(50),
|
|
8567
|
+
p(!1), await it(50), Lt.isDesktop && de.current?.focus();
|
|
8577
8568
|
}, [
|
|
8578
8569
|
R,
|
|
8579
8570
|
x,
|
|
8580
8571
|
l,
|
|
8581
8572
|
d,
|
|
8582
|
-
|
|
8573
|
+
ve,
|
|
8583
8574
|
i?.address,
|
|
8584
8575
|
b?.name,
|
|
8585
8576
|
b?.nativeCurrency?.symbol,
|
|
@@ -8593,7 +8584,7 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8593
8584
|
xe,
|
|
8594
8585
|
$e,
|
|
8595
8586
|
q,
|
|
8596
|
-
|
|
8587
|
+
A,
|
|
8597
8588
|
a,
|
|
8598
8589
|
r
|
|
8599
8590
|
]);
|
|
@@ -8632,31 +8623,31 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8632
8623
|
});
|
|
8633
8624
|
if (z.success && z.data) {
|
|
8634
8625
|
const Y = z.data, re = Y.tokenIn, we = Y.tokenOut, ae = ie(
|
|
8635
|
-
|
|
8626
|
+
Me(BigInt(re.amount || 0), re.decimals)
|
|
8636
8627
|
).decimalPlaces(6).toFormat(), J = ie(
|
|
8637
|
-
|
|
8628
|
+
Me(BigInt(we.amount || 0), we.decimals)
|
|
8638
8629
|
).decimalPlaces(6).toFormat(), B = !Z.token_in || Z.token_in === ze;
|
|
8639
8630
|
let O = !1;
|
|
8640
8631
|
if (!B && i?.address && Y.tx?.to)
|
|
8641
8632
|
try {
|
|
8642
|
-
const
|
|
8633
|
+
const L = await Hn({
|
|
8643
8634
|
tokenAddress: Z.token_in,
|
|
8644
8635
|
ownerAddress: i.address,
|
|
8645
8636
|
spenderAddress: Y.tx.to,
|
|
8646
8637
|
chainId: v,
|
|
8647
|
-
rpcUrl:
|
|
8638
|
+
rpcUrl: A
|
|
8648
8639
|
});
|
|
8649
8640
|
O = ie(
|
|
8650
|
-
|
|
8641
|
+
L.toString()
|
|
8651
8642
|
).isLessThan(K);
|
|
8652
|
-
} catch (
|
|
8653
|
-
console.warn("Allowance check failed in ActionForm swap:",
|
|
8643
|
+
} catch (L) {
|
|
8644
|
+
console.warn("Allowance check failed in ActionForm swap:", L);
|
|
8654
8645
|
}
|
|
8655
8646
|
const Q = Y.estimatedTransactionFee?.total ? ie(Y.estimatedTransactionFee.total) : ie(0);
|
|
8656
8647
|
let H = ie(0);
|
|
8657
8648
|
if (O && i?.address)
|
|
8658
8649
|
try {
|
|
8659
|
-
const
|
|
8650
|
+
const L = vn({
|
|
8660
8651
|
tokenAddress: Z.token_in,
|
|
8661
8652
|
spenderAddress: Y.tx?.to || "",
|
|
8662
8653
|
fromAddress: i.address,
|
|
@@ -8664,29 +8655,29 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8664
8655
|
});
|
|
8665
8656
|
H = await Qt({
|
|
8666
8657
|
from: i.address,
|
|
8667
|
-
to:
|
|
8668
|
-
data:
|
|
8658
|
+
to: L.to,
|
|
8659
|
+
data: L.data,
|
|
8669
8660
|
chainId: v,
|
|
8670
|
-
rpcUrl:
|
|
8661
|
+
rpcUrl: A
|
|
8671
8662
|
});
|
|
8672
|
-
} catch (
|
|
8673
|
-
console.warn("Approve fee estimation failed:",
|
|
8663
|
+
} catch (L) {
|
|
8664
|
+
console.warn("Approve fee estimation failed:", L);
|
|
8674
8665
|
}
|
|
8675
8666
|
const te = Q.plus(H), ge = b?.nativeCurrency?.symbol || "native";
|
|
8676
|
-
let se = "",
|
|
8667
|
+
let se = "", M = !1;
|
|
8677
8668
|
if (i?.address && te.isGreaterThan(0))
|
|
8678
8669
|
try {
|
|
8679
|
-
const
|
|
8670
|
+
const L = await An({
|
|
8680
8671
|
address: i.address,
|
|
8681
8672
|
chainId: v,
|
|
8682
|
-
rpcUrl:
|
|
8673
|
+
rpcUrl: A
|
|
8683
8674
|
});
|
|
8684
|
-
if (
|
|
8685
|
-
|
|
8675
|
+
if (L.isLessThan(te)) {
|
|
8676
|
+
M = !0;
|
|
8686
8677
|
const be = ie(
|
|
8687
|
-
|
|
8678
|
+
Me(BigInt(L.toFixed(0)), 18)
|
|
8688
8679
|
).decimalPlaces(6).toFormat(), Be = ie(
|
|
8689
|
-
|
|
8680
|
+
Me(BigInt(te.toFixed(0)), 18)
|
|
8690
8681
|
).decimalPlaces(6).toFormat();
|
|
8691
8682
|
se = r("swapFeeWarning", {
|
|
8692
8683
|
symbol: ge,
|
|
@@ -8694,8 +8685,8 @@ To: ${Oe} ${Pe.symbol}
|
|
|
8694
8685
|
needed: Be
|
|
8695
8686
|
});
|
|
8696
8687
|
}
|
|
8697
|
-
} catch (
|
|
8698
|
-
console.warn("Fee balance check failed:",
|
|
8688
|
+
} catch (L) {
|
|
8689
|
+
console.warn("Fee balance check failed:", L);
|
|
8699
8690
|
}
|
|
8700
8691
|
const _ = `From: ${ae} ${re.symbol}
|
|
8701
8692
|
⬇️
|
|
@@ -8703,10 +8694,10 @@ To: ${J} ${we.symbol}
|
|
|
8703
8694
|
|
|
8704
8695
|
` + se + `
|
|
8705
8696
|
`;
|
|
8706
|
-
if (
|
|
8697
|
+
if (M)
|
|
8707
8698
|
T(G, "fail"), d(_, "bot");
|
|
8708
8699
|
else if (O) {
|
|
8709
|
-
const
|
|
8700
|
+
const L = [
|
|
8710
8701
|
{
|
|
8711
8702
|
id: "approve-swap-actionform",
|
|
8712
8703
|
text: r("swapApproveButton", { symbol: re.symbol }),
|
|
@@ -8725,10 +8716,10 @@ To: ${J} ${we.symbol}
|
|
|
8725
8716
|
_ + r("swapApprovalRequired", { symbol: re.symbol }),
|
|
8726
8717
|
"bot",
|
|
8727
8718
|
void 0,
|
|
8728
|
-
|
|
8719
|
+
L
|
|
8729
8720
|
);
|
|
8730
8721
|
} else {
|
|
8731
|
-
const
|
|
8722
|
+
const L = [
|
|
8732
8723
|
{
|
|
8733
8724
|
id: "confirm-swap-actionform",
|
|
8734
8725
|
text: "Yes",
|
|
@@ -8741,7 +8732,7 @@ To: ${J} ${we.symbol}
|
|
|
8741
8732
|
_ + a("swapReadyToProceed"),
|
|
8742
8733
|
"bot",
|
|
8743
8734
|
void 0,
|
|
8744
|
-
|
|
8735
|
+
L
|
|
8745
8736
|
);
|
|
8746
8737
|
}
|
|
8747
8738
|
} else
|
|
@@ -8772,19 +8763,19 @@ To: ${J} ${we.symbol}
|
|
|
8772
8763
|
data: ee.data,
|
|
8773
8764
|
value: ee.value && ee.value !== "0" ? `0x${BigInt(ee.value).toString(16)}` : void 0,
|
|
8774
8765
|
chainId: v,
|
|
8775
|
-
rpcUrl:
|
|
8766
|
+
rpcUrl: A
|
|
8776
8767
|
});
|
|
8777
8768
|
if (Y.isGreaterThan(0)) {
|
|
8778
|
-
const re = await
|
|
8769
|
+
const re = await An({
|
|
8779
8770
|
address: i.address,
|
|
8780
8771
|
chainId: v,
|
|
8781
|
-
rpcUrl:
|
|
8772
|
+
rpcUrl: A
|
|
8782
8773
|
});
|
|
8783
8774
|
if (re.isLessThan(Y)) {
|
|
8784
8775
|
const we = ie(
|
|
8785
|
-
|
|
8776
|
+
Me(BigInt(re.toFixed(0)), 18)
|
|
8786
8777
|
).decimalPlaces(6).toFormat(), ae = ie(
|
|
8787
|
-
|
|
8778
|
+
Me(BigInt(Y.toFixed(0)), 18)
|
|
8788
8779
|
).decimalPlaces(6).toFormat();
|
|
8789
8780
|
T(G, "fail"), d(
|
|
8790
8781
|
r("txInsufficientGas", {
|
|
@@ -8808,10 +8799,10 @@ To: ${J} ${we.symbol}
|
|
|
8808
8799
|
[View on Explorer](${Y}/tx/${z.transactionHash})` : `
|
|
8809
8800
|
Tx: ${z.transactionHash}`, we = d(a("txSubmitted") + re, "bot");
|
|
8810
8801
|
try {
|
|
8811
|
-
await it(2e3), (await
|
|
8802
|
+
await it(2e3), (await Ln({
|
|
8812
8803
|
transactionHash: z.transactionHash,
|
|
8813
8804
|
chainId: v || 1,
|
|
8814
|
-
rpcUrl:
|
|
8805
|
+
rpcUrl: A
|
|
8815
8806
|
})).status === "success" ? (T(G, "success"), I(we.id, a("txConfirmed") + re)) : (T(G, "fail"), I(we.id, a("txReverted") + re));
|
|
8816
8807
|
} catch (ae) {
|
|
8817
8808
|
console.warn("Transaction tracking timeout:", ae), T(G, "success"), d(a("txTimeout") + re, "bot");
|
|
@@ -8846,11 +8837,11 @@ Error: ${z.error}` : "";
|
|
|
8846
8837
|
b?.blockExplorers?.default?.url,
|
|
8847
8838
|
b?.nativeCurrency?.symbol,
|
|
8848
8839
|
I,
|
|
8849
|
-
|
|
8840
|
+
A,
|
|
8850
8841
|
a,
|
|
8851
8842
|
r
|
|
8852
8843
|
]
|
|
8853
|
-
),
|
|
8844
|
+
), Le = Ie(
|
|
8854
8845
|
(D) => {
|
|
8855
8846
|
T(D, "fail");
|
|
8856
8847
|
},
|
|
@@ -8882,15 +8873,15 @@ Error: ${z.error}` : "";
|
|
|
8882
8873
|
role: "dialog",
|
|
8883
8874
|
"aria-modal": "true",
|
|
8884
8875
|
"aria-labelledby": "chat-modal-title",
|
|
8885
|
-
children: /* @__PURE__ */
|
|
8876
|
+
children: /* @__PURE__ */ Ae(
|
|
8886
8877
|
"div",
|
|
8887
8878
|
{
|
|
8888
8879
|
className: "chat-modal",
|
|
8889
8880
|
style: s,
|
|
8890
8881
|
onClick: (D) => D.stopPropagation(),
|
|
8891
8882
|
children: [
|
|
8892
|
-
/* @__PURE__ */
|
|
8893
|
-
/* @__PURE__ */
|
|
8883
|
+
/* @__PURE__ */ Ae("div", { className: "chat-modal-header", children: [
|
|
8884
|
+
/* @__PURE__ */ Ae("div", { className: "chat-modal-header-left", children: [
|
|
8894
8885
|
/* @__PURE__ */ W("div", { className: "keyring-logo", children: /* @__PURE__ */ W(
|
|
8895
8886
|
"img",
|
|
8896
8887
|
{
|
|
@@ -8928,8 +8919,8 @@ Error: ${z.error}` : "";
|
|
|
8928
8919
|
chainId: b?.chainId
|
|
8929
8920
|
}
|
|
8930
8921
|
),
|
|
8931
|
-
/* @__PURE__ */
|
|
8932
|
-
/* @__PURE__ */
|
|
8922
|
+
/* @__PURE__ */ Ae("div", { className: "chat-modal-messages-wrapper", children: [
|
|
8923
|
+
/* @__PURE__ */ Ae(
|
|
8933
8924
|
"div",
|
|
8934
8925
|
{
|
|
8935
8926
|
className: "chat-modal-messages",
|
|
@@ -8937,9 +8928,9 @@ Error: ${z.error}` : "";
|
|
|
8937
8928
|
role: "log",
|
|
8938
8929
|
"aria-live": "polite",
|
|
8939
8930
|
children: [
|
|
8940
|
-
l.map((D, Z) => /* @__PURE__ */
|
|
8931
|
+
l.map((D, Z) => /* @__PURE__ */ Ae("div", { children: [
|
|
8941
8932
|
Xe(Z) && /* @__PURE__ */ W("div", { className: "date-separator", children: Qh(D.timestamp) }),
|
|
8942
|
-
/* @__PURE__ */
|
|
8933
|
+
/* @__PURE__ */ Ae(
|
|
8943
8934
|
"div",
|
|
8944
8935
|
{
|
|
8945
8936
|
className: `message ${D.sender === "user" ? "message-user" : "message-bot"}`,
|
|
@@ -8964,9 +8955,9 @@ Error: ${z.error}` : "";
|
|
|
8964
8955
|
) })
|
|
8965
8956
|
}
|
|
8966
8957
|
),
|
|
8967
|
-
/* @__PURE__ */
|
|
8968
|
-
D.replyTo && /* @__PURE__ */
|
|
8969
|
-
/* @__PURE__ */
|
|
8958
|
+
/* @__PURE__ */ Ae("div", { className: "message-bubble", children: [
|
|
8959
|
+
D.replyTo && /* @__PURE__ */ Ae("div", { className: "message-reply-to", children: [
|
|
8960
|
+
/* @__PURE__ */ Ae("div", { className: "message-reply-to-label", children: [
|
|
8970
8961
|
a("replyingTo"),
|
|
8971
8962
|
" ",
|
|
8972
8963
|
D.replyTo.sender === "user" ? a("replyingToYou") : a("replyingToAgent")
|
|
@@ -8994,7 +8985,7 @@ Error: ${z.error}` : "";
|
|
|
8994
8985
|
action: D.actionData.action,
|
|
8995
8986
|
initialValues: D.actionData.parameters,
|
|
8996
8987
|
onSubmit: (G, ee) => St(G, ee, D.id),
|
|
8997
|
-
onCancel: () =>
|
|
8988
|
+
onCancel: () => Le(D.id),
|
|
8998
8989
|
isSubmitting: De[D.id] || !1,
|
|
8999
8990
|
tokenInfo: D.actionData.tokenInfo,
|
|
9000
8991
|
nftInfo: D.actionData.nftInfo
|
|
@@ -9003,7 +8994,7 @@ Error: ${z.error}` : "";
|
|
|
9003
8994
|
D.actionData && D.actionData.status === "submitted" && /* @__PURE__ */ W("div", { className: "action-status action-status-submitted", children: a("actionProcessing") }),
|
|
9004
8995
|
D.actionData && D.actionData.status === "success" && /* @__PURE__ */ W("div", { className: "action-status action-status-success", children: a("actionSuccess") }),
|
|
9005
8996
|
D.actionData && D.actionData.status === "fail" && /* @__PURE__ */ W("div", { className: "action-status action-status-fail", children: a("actionFail") }),
|
|
9006
|
-
/* @__PURE__ */
|
|
8997
|
+
/* @__PURE__ */ Ae("div", { className: "message-timestamp", children: [
|
|
9007
8998
|
D.timestamp.toLocaleTimeString("en-US", {
|
|
9008
8999
|
hour: "2-digit",
|
|
9009
9000
|
minute: "2-digit",
|
|
@@ -9041,16 +9032,16 @@ Error: ${z.error}` : "";
|
|
|
9041
9032
|
className: "message message-bot typing-indicator",
|
|
9042
9033
|
role: "status",
|
|
9043
9034
|
"aria-label": a("botIsTyping"),
|
|
9044
|
-
children: /* @__PURE__ */
|
|
9035
|
+
children: /* @__PURE__ */ Ae("div", { className: "message-bubble", children: [
|
|
9045
9036
|
/* @__PURE__ */ W("span", { className: "typing-dot" }),
|
|
9046
9037
|
/* @__PURE__ */ W("span", { className: "typing-dot" }),
|
|
9047
9038
|
/* @__PURE__ */ W("span", { className: "typing-dot" })
|
|
9048
9039
|
] })
|
|
9049
9040
|
}
|
|
9050
9041
|
),
|
|
9051
|
-
(C || l.length === 1) && /* @__PURE__ */
|
|
9042
|
+
(C || l.length === 1) && /* @__PURE__ */ Ae(ts, { children: [
|
|
9052
9043
|
/* @__PURE__ */ W("div", { className: "message message-bot", role: "article", children: /* @__PURE__ */ W("div", { className: "message-bubble", children: /* @__PURE__ */ W("div", { className: "message-text", children: a("canIHelpYou") }) }) }),
|
|
9053
|
-
/* @__PURE__ */ W("div", { className: "suggestions-container", children: at.map((D) => /* @__PURE__ */
|
|
9044
|
+
/* @__PURE__ */ W("div", { className: "suggestions-container", children: at.map((D) => /* @__PURE__ */ Ae(
|
|
9054
9045
|
"button",
|
|
9055
9046
|
{
|
|
9056
9047
|
className: "suggestion-button",
|
|
@@ -9070,15 +9061,15 @@ Error: ${z.error}` : "";
|
|
|
9070
9061
|
),
|
|
9071
9062
|
/* @__PURE__ */ W(Fb, { scrollContainerRef: X })
|
|
9072
9063
|
] }),
|
|
9073
|
-
/* @__PURE__ */
|
|
9074
|
-
|
|
9075
|
-
/* @__PURE__ */
|
|
9076
|
-
/* @__PURE__ */
|
|
9064
|
+
/* @__PURE__ */ Ae("div", { className: "chat-modal-input", children: [
|
|
9065
|
+
ve && /* @__PURE__ */ Ae("div", { className: "reply-preview", children: [
|
|
9066
|
+
/* @__PURE__ */ Ae("div", { className: "reply-preview-content", children: [
|
|
9067
|
+
/* @__PURE__ */ Ae("div", { className: "reply-preview-label", children: [
|
|
9077
9068
|
a("replyingTo"),
|
|
9078
9069
|
" ",
|
|
9079
|
-
|
|
9070
|
+
ve.sender === "user" ? a("replyingToYou") : a("replyingToAgent")
|
|
9080
9071
|
] }),
|
|
9081
|
-
/* @__PURE__ */ W("div", { className: "reply-preview-text", children:
|
|
9072
|
+
/* @__PURE__ */ W("div", { className: "reply-preview-text", children: ve.text })
|
|
9082
9073
|
] }),
|
|
9083
9074
|
/* @__PURE__ */ W(
|
|
9084
9075
|
"button",
|
|
@@ -9099,7 +9090,7 @@ Error: ${z.error}` : "";
|
|
|
9099
9090
|
}
|
|
9100
9091
|
)
|
|
9101
9092
|
] }),
|
|
9102
|
-
/* @__PURE__ */
|
|
9093
|
+
/* @__PURE__ */ Ae("div", { className: "chat-modal-input-row", children: [
|
|
9103
9094
|
/* @__PURE__ */ W(
|
|
9104
9095
|
"input",
|
|
9105
9096
|
{
|
|
@@ -9161,7 +9152,7 @@ Error: ${z.error}` : "";
|
|
|
9161
9152
|
bottom: "20px",
|
|
9162
9153
|
zIndex: t.zIndex ?? 9999
|
|
9163
9154
|
};
|
|
9164
|
-
return /* @__PURE__ */
|
|
9155
|
+
return /* @__PURE__ */ Ae("div", { style: R, role: "complementary", "aria-label": "Chat widget", children: [
|
|
9165
9156
|
/* @__PURE__ */ W(Em, { onClick: I }),
|
|
9166
9157
|
/* @__PURE__ */ W(
|
|
9167
9158
|
Yb,
|