Files
epusdt/src/www/assets/_trade_id-Cd6oGTRE.js
T
2026-06-16 10:11:12 +00:00

4 lines
81 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{r as e}from"./chunk-DECur_0Z.js";import{a as t,p as n}from"./auth-store-paR9oIR_.js";import{t as r}from"./react-CO2uhaBc.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,Kp as h,L as g,M as _,N as v,O as y,P as b,Q as x,R as S,Ru as C,T as w,U as T,V as E,W as D,X as O,Y as k,Z as A,Zp as ee,at as te,ct as j,et as ne,it as re,j as ie,k as ae,lt as M,n as N,nt as oe,ot as P,r as F,st as se,t as ce,tt as I,z as L}from"./messages-BLwDcEAr.js";import{t as le}from"./useNavigate-7u4DX0Ho.js";import{i as ue,t as R}from"./button-C0SPdqvs.js";import{a as z,i as de,n as fe,r as B,t as pe}from"./select-CNrSwHJR.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as me}from"./arrow-left-right-CcCrkQiR.js";import{t as H}from"./arrow-left-BpZwGREZ.js";import{t as he}from"./check-CHp0nSkR.js";import{n as ge,t as _e}from"./radio-group-D__IFVa8.js";import{n as ve,t as ye}from"./copy-to-clipboard-C1tj4a8X.js";import{t as U}from"./loader-circle-DpEz1fQv.js";import{t as be}from"./send-BNvceEpO.js";import{t as xe}from"./triangle-alert-DB5v_9sS.js";import{a as Se,c as Ce,i as we,l as Te,n as Ee,o as De,r as Oe,s as ke,t as Ae}from"./dialog-iqE0q8bN.js";import{n as je}from"./dist-CffCYhqm.js";import{t as Me}from"./_trade_id-CjTMRIjN.js";import{t as Ne}from"./input-D-qaLZKc.js";import{a as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./crypto-icon-CJd7sdrZ.js";import{n as Ve,t as He}from"./labels-BiExVADV.js";import{a as Ue,c as We,d as Ge,f as W,h as Ke,i as qe,l as Je,m as Ye,n as Xe,o as Ze,p as Qe,r as $e,s as et,u as tt}from"./checkout-model-CQ3aqlob.js";var nt=V(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),rt=V(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),it=V(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),at=V(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),ot=e(ye(),1),G=e(r()),st=Object.defineProperty,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,dt=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ft=(e,t)=>{for(var n in t||={})lt.call(t,n)&&dt(e,n,t[n]);if(ct)for(var n of ct(t))ut.call(t,n)&&dt(e,n,t[n]);return e},pt=(e,t)=>{var n={};for(var r in e)lt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ct)for(var r of ct(e))t.indexOf(r)<0&&ut.call(e,r)&&(n[r]=e[r]);return n},mt;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=a-s%a,l=Math.floor(s/a),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=r(e[n>>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+i),10),i*3+1,r),e+=i}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let r=[],i;for(i=0;i+2<=t.length;i+=2){let a=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),n(a,11,r)}return i<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,r),new e(e.Mode.ALPHANUMERIC,t.length,r)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else if(t<1e6)n(6,3,r),n(t,21,r);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`;let o=a;e.QrSegment=a})(mt||={}),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(mt||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(mt||={});var K=mt,ht={L:K.QrCode.Ecc.LOW,M:K.QrCode.Ecc.MEDIUM,Q:K.QrCode.Ecc.QUARTILE,H:K.QrCode.Ecc.HIGH},gt=128,_t=`L`,vt=`#FFFFFF`,yt=`#000000`,bt=!1,xt=1,St=4,Ct=0,wt=.1;function Tt(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Et(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function Dt(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*wt),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function Ot(e,t){return t==null?e?St:Ct:Math.max(Math.floor(t),0)}function kt({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=G.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...K.QrSegment.makeSegments(t)),e),[]);return K.QrCode.encodeSegments(r,ht[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=G.useMemo(()=>{let e=c.getModules(),t=Ot(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Dt(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var At=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),jt=G.forwardRef(function(e,t){let n=e,{value:r,size:i=gt,level:a=_t,bgColor:o=vt,fgColor:s=yt,includeMargin:c=bt,minVersion:l=xt,boostLevel:u,marginSize:d,imageSettings:f}=n,p=pt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=pt(p,[`style`]),g=f?.src,_=G.useRef(null),v=G.useRef(null),y=G.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=G.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=kt({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});G.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Et(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,At?t.fill(new Path2D(Tt(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),G.useEffect(()=>{x(!1)},[g]);let E=ft({height:i,width:i},m),D=null;return g!=null&&(D=G.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),G.createElement(G.Fragment,null,G.createElement(`canvas`,ft({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});jt.displayName=`QRCodeCanvas`;var Mt=G.forwardRef(function(e,t){let n=e,{value:r,size:i=gt,level:a=_t,bgColor:o=vt,fgColor:s=yt,includeMargin:c=bt,minVersion:l=xt,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=pt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=kt({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Et(g,v.excavation)),b=G.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Tt(y,h);return G.createElement(`svg`,ft({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&G.createElement(`title`,null,d),G.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),G.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Mt.displayName=`QRCodeSVG`;var q=ee(),Nt=1400;function Pt(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>String(e).padStart(2,`0`);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function Ft({className:e,onClick:t}){let[n,r]=(0,G.useState)(!1),i=(0,G.useRef)(void 0);return(0,G.useEffect)(()=>()=>{i.current!==void 0&&window.clearTimeout(i.current)},[]),(0,q.jsx)(R,{className:ue(`mb-0.5 shrink-0`,e),onClick:()=>{if(i.current!==void 0&&window.clearTimeout(i.current),t()===!1){r(!1);return}r(!0),i.current=window.setTimeout(()=>{r(!1),i.current=void 0},Nt)},size:`icon-sm`,type:`button`,variant:`secondary`,children:n?(0,q.jsx)(he,{className:`text-emerald-600 dark:text-emerald-400`}):(0,q.jsx)(ve,{})})}var It=2*Math.PI*20;function Lt({onCopyAddress:e,onChangePaymentOption:t,onSubmitTxHash:n,onTxHashChange:r,order:i,paymentMethod:c,remaining:l,showChangePaymentOption:u,showTxHashSubmit:d,submittingTxHash:f,timeColor:m,timerRatio:g,txHash:b}){let[x,S]=(0,G.useState)(!1),C=i?.receive_address??``,w=i?.payment_url;return c===`okpay`||String(i?.network??``)===`okpay`||w&&!C?(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-4 w-full rounded-2xl border bg-card px-5 py-5 text-card-foreground shadow-md`,children:[(0,q.jsx)(`p`,{className:`mb-2 font-semibold text-sm`,children:ce()}),w?(0,q.jsx)(`p`,{className:`break-all text-muted-foreground text-sm`,children:w}):null]}),w?(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:()=>{window.open(w,`okpay_checkout`,`popup,width=480,height=720`)},type:`button`,children:[(0,q.jsx)(nt,{}),F()]}):null]}):(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-4 w-full overflow-hidden rounded-2xl border bg-card px-5 pt-5 pb-0 text-card-foreground shadow-md`,children:[(0,q.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,q.jsx)(`p`,{className:`font-semibold text-sm`,children:D()}),(0,q.jsxs)(`div`,{className:`relative size-10 shrink-0`,children:[(0,q.jsxs)(`svg`,{"aria-hidden":`true`,className:`absolute inset-0 size-10`,viewBox:`0 0 48 48`,children:[(0,q.jsx)(`circle`,{className:`text-border`,cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:`currentColor`,strokeWidth:`3`}),(0,q.jsx)(`circle`,{cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:m,strokeDasharray:It,strokeDashoffset:It*(1-g),strokeLinecap:`round`,strokeWidth:`3`,style:{transform:`rotate(-90deg)`,transformOrigin:`50% 50%`}})]}),(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,q.jsx)(at,{className:`size-4 text-muted-foreground`})})]})]}),(0,q.jsx)(`p`,{className:`mb-4 text-center font-bold font-mono text-3xl leading-none`,style:{color:m},children:Pt(l)}),(0,q.jsx)(`div`,{className:`mb-4 flex justify-center`,children:(0,q.jsx)(`div`,{className:`rounded-xl border bg-white p-3.5 shadow-md`,children:C?(0,q.jsx)(Mt,{bgColor:`#ffffff`,fgColor:`#111111`,level:`M`,size:120,value:C}):(0,q.jsx)(`div`,{className:`flex size-30 items-center justify-center text-muted-foreground text-xs`,children:`--`})})}),(0,q.jsxs)(`div`,{className:`-mx-5 flex w-[calc(100%+2.5rem)] items-start gap-3 border-border/50 border-t px-5 py-3.5`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-0.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:p()}),(0,q.jsx)(`p`,{className:`break-all font-medium text-card-foreground text-sm leading-relaxed`,children:i?.receive_address??`--`})]}),(0,q.jsx)(Ft,{className:`mt-0.5`,onClick:e})]})]}),u?(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:t,type:`button`,variant:`outline`,children:[(0,q.jsx)(me,{}),o()]}):null,d?(0,q.jsxs)(Ae,{onOpenChange:S,open:x,children:[(0,q.jsx)(Ce,{asChild:!0,children:(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,type:`button`,children:[(0,q.jsx)(he,{}),v()]})}),(0,q.jsxs)(Oe,{children:[(0,q.jsxs)(De,{children:[(0,q.jsx)(ke,{children:_()}),(0,q.jsx)(we,{children:ie()})]}),(0,q.jsxs)(`form`,{className:`space-y-4`,onSubmit:async e=>{e.preventDefault(),await n()&&S(!1)},children:[(0,q.jsxs)(`div`,{className:`space-y-2`,children:[(0,q.jsx)(`label`,{className:`font-medium text-sm`,htmlFor:`checkout-tx-hash`,children:a()}),(0,q.jsx)(Ne,{autoComplete:`off`,autoFocus:!0,className:`h-11`,disabled:f,id:`checkout-tx-hash`,onChange:e=>r(e.target.value),placeholder:ae(),value:b})]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs leading-relaxed`,children:y()}),(0,q.jsxs)(Se,{children:[(0,q.jsx)(Ee,{asChild:!0,children:(0,q.jsx)(R,{disabled:f,type:`button`,variant:`outline`,children:h()})}),(0,q.jsxs)(R,{disabled:f||!b.trim(),type:`submit`,children:[f?(0,q.jsx)(U,{className:`animate-spin`}):(0,q.jsx)(be,{}),s()]})]})]})]})]}):null,(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 py-1 text-muted-foreground`,children:[(0,q.jsx)(U,{className:`size-3.5 animate-spin`}),(0,q.jsx)(`span`,{className:`text-xs`,children:se()})]})]})}function Rt({className:e,disabled:t,onClick:n}){return(0,q.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06] ${e??``}`,disabled:t,onClick:n,type:`button`,variant:`ghost`,children:[(0,q.jsx)(Be,{alt:``,className:`size-10 shrink-0 rounded-lg`,height:40,name:`okpay`,type:`wallet`,width:40}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:F()}),(0,q.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:N()})]}),t?(0,q.jsx)(U,{className:`size-5 shrink-0 animate-spin text-muted-foreground`}):null]})}function zt({onSelectChain:e,onSelectOkpay:t,showChain:n,showOkpay:r}){return(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsx)(`p`,{className:`mb-3 font-semibold text-base`,children:E()}),(0,q.jsxs)(`div`,{className:`space-y-3`,children:[n?(0,q.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]`,onClick:e,type:`button`,variant:`ghost`,children:[(0,q.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-foreground/10 text-foreground`,children:(0,q.jsx)(it,{className:`size-5`})}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:L()}),(0,q.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:S()})]})]}):null,r?(0,q.jsx)(Rt,{onClick:t}):null]})]})}function Bt({onBack:e,networkOptions:t,onConfirm:n,onNetworkChange:r,onTokenChange:a,paymentMethod:o,selectedNetwork:s,selectedOption:c,selectedToken:l,showBack:u=!0,submitting:f,tokenOptions:p}){let m=o!==`okpay`,h=o===`okpay`,g=m?d():T(),_=t.find(e=>e.network.toLowerCase()===s.toLowerCase());return(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[u?(0,q.jsx)(R,{"aria-label":j(),className:`size-8 rounded-full`,onClick:e,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,q.jsx)(H,{})}):null,(0,q.jsx)(`p`,{className:`font-semibold text-base`,children:g})]}),(0,q.jsxs)(`div`,{className:`mb-4 flex gap-2`,children:[m?(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:i()}),(0,q.jsxs)(pe,{disabled:t.length===0,onValueChange:r,value:s,children:[(0,q.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,q.jsx)(z,{placeholder:(0,q.jsx)(He,{displayName:_?.displayName,network:s})})}),(0,q.jsx)(fe,{position:`popper`,children:t.map(e=>(0,q.jsx)(B,{value:e.network,children:(0,q.jsx)(He,{displayName:e.displayName,network:e.network})},e.network))})]})]}):null,(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:re()}),h?(0,q.jsx)(_e,{className:`grid grid-cols-2 gap-2`,onValueChange:a,value:l,children:p.map(e=>(0,q.jsxs)(`label`,{className:`flex h-12.5 cursor-pointer items-center gap-3 rounded-xl border bg-card px-3 transition-colors hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5`,htmlFor:`okpay-token-${e.toLowerCase()}`,children:[(0,q.jsx)(ge,{id:`okpay-token-${e.toLowerCase()}`,value:e}),(0,q.jsx)(Ve,{token:e})]},e))}):(0,q.jsxs)(pe,{disabled:p.length===0,onValueChange:a,value:l,children:[(0,q.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,q.jsx)(z,{placeholder:(0,q.jsx)(Ve,{token:l})})}),(0,q.jsx)(fe,{position:`popper`,children:p.map(e=>(0,q.jsx)(B,{value:e,children:(0,q.jsx)(Ve,{token:e})},e))})]})]})]}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl text-base`,disabled:f||!c,onClick:n,type:`button`,children:P()})]})}function Vt({children:e,description:t,icon:n,title:r}){return(0,q.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-96 w-full flex-col items-center justify-center rounded-2xl border bg-card px-6 py-10 text-center text-card-foreground shadow-md`,role:`status`,children:[(0,q.jsx)(`div`,{className:`mb-6 flex size-20 items-center justify-center rounded-full bg-muted`,children:n}),(0,q.jsx)(`p`,{className:`mb-2 font-bold text-xl`,children:r}),(0,q.jsx)(`p`,{className:`mb-6 text-muted-foreground text-sm`,children:t}),e]})}function Ht(){return(0,q.jsx)(Vt,{description:se(),icon:(0,q.jsx)(U,{className:`size-8 animate-spin text-muted-foreground`}),title:ne()})}function Ut({redirecting:e}){return(0,q.jsx)(Vt,{description:e?m():f(),icon:(0,q.jsx)(he,{className:`size-10 text-green-500`}),title:g(),children:e?(0,q.jsx)(U,{className:`size-6 animate-spin text-muted-foreground`}):null})}function Wt({onBack:e}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:I(),icon:(0,q.jsx)(Te,{className:`size-10 text-destructive`}),title:oe()}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Gt({onBack:e,onRetry:t}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:b(),icon:(0,q.jsx)(xe,{className:`size-10 text-orange-500`}),title:l()}),(0,q.jsxs)(`div`,{className:`flex gap-3`,children:[(0,q.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()}),(0,q.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:t,type:`button`,children:u()})]})]})}function Kt({onBack:e}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:A(),icon:(0,q.jsx)(rt,{className:`size-10 text-muted-foreground`}),title:x()}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function qt({networkOptions:e,onBack:t,onChangePaymentOption:n,onConfirmSelection:r,onCopyAddress:i,onNetworkChange:a,onRetry:o,onReturnToMethods:s,onSelectChainPayment:c,onSelectOkpayPayment:l,onSubmitTxHash:u,onTokenChange:d,onTxHashChange:f,order:p,panel:m,remaining:h,selectedPaymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showChainPayment:b,showChangePaymentOption:x,showOkpay:S,showReturnToMethods:C,showTxHashSubmit:w,submitting:T,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k,tokenOptions:A}){switch(m){case`loading`:return(0,q.jsx)(Ht,{});case`method`:return(0,q.jsx)(zt,{onSelectChain:c,onSelectOkpay:l,showChain:b,showOkpay:S});case`select`:return(0,q.jsx)(Bt,{networkOptions:e,onBack:s,onConfirm:r,onNetworkChange:a,onTokenChange:d,paymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showBack:C,submitting:T,tokenOptions:A});case`payment`:return(0,q.jsx)(Lt,{onChangePaymentOption:n,onCopyAddress:i,onSubmitTxHash:u,onTxHashChange:f,order:p,paymentMethod:g,remaining:h,showChangePaymentOption:x,showTxHashSubmit:w,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k});case`success`:return(0,q.jsx)(Ut,{redirecting:!!p?.redirect_url});case`expired`:return(0,q.jsx)(Wt,{onBack:t});case`timeout`:return(0,q.jsx)(Gt,{onBack:t,onRetry:o});case`not-found`:return(0,q.jsx)(Kt,{onBack:t});default:return null}}var Jt=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),Yt=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function Xt(e){if(e<=255)return Jt[e];let t=0,n=Yt.length-1;for(;t<=n;){let r=t+n>>1,i=Yt[r];if(e<i[0]){n=r-1;continue}if(e>i[1]){t=r+1;continue}return i[2]}return`L`}function Zt(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i<t;){let a=e.charCodeAt(i),o=a,s=1;if(a>=55296&&a<=56319&&i+1<t){let t=e.charCodeAt(i+1);t>=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=Xt(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e<s;e++)n[i+e]=c;i+=s}if(!r)return null;let i=0;for(let e=0;e<t;e++){let t=n[e];if(t===`L`){i=0;break}if(t===`R`||t===`AL`){i=1;break}}let a=new Int8Array(t);for(let e=0;e<t;e++)a[e]=i;let o=i&1?`R`:`L`,s=o,c=s;for(let e=0;e<t;e++)n[e]===`NSM`?n[e]=c:c=n[e];c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`AL`?`AN`:`EN`:(t===`R`||t===`L`||t===`AL`)&&(c=t)}for(let e=0;e<t;e++)n[e]===`AL`&&(n[e]=`R`);for(let e=1;e<t-1;e++)n[e]===`ES`&&n[e-1]===`EN`&&n[e+1]===`EN`&&(n[e]=`EN`),n[e]===`CS`&&(n[e-1]===`EN`||n[e-1]===`AN`)&&n[e+1]===n[e-1]&&(n[e]=n[e-1]);for(let e=0;e<t;e++){if(n[e]!==`EN`)continue;let r;for(r=e-1;r>=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r<t&&n[r]===`ET`;r++)n[r]=`EN`}for(let e=0;e<t;e++){let t=n[e];(t===`WS`||t===`ES`||t===`ET`||t===`CS`)&&(n[e]=`ON`)}c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`L`?`L`:`EN`:(t===`R`||t===`L`)&&(c=t)}for(let e=0;e<t;e++){if(n[e]!==`ON`)continue;let r=e+1;for(;r<t&&n[r]===`ON`;)r++;let i=e>0?n[e-1]:s,a=r<t?n[r]:s,o=i===`L`?`L`:`R`;if(o===(a===`L`?`L`:`R`))for(let t=e;t<r;t++)n[t]=o;e=r-1}for(let e=0;e<t;e++)n[e]===`ON`&&(n[e]=o);for(let e=0;e<t;e++){let t=n[e];a[e]&1?(t===`L`||t===`AN`||t===`EN`)&&a[e]++:t===`R`?a[e]++:(t===`AN`||t===`EN`)&&(a[e]+=2)}return a}function Qt(e,t){let n=Zt(e);if(n===null)return null;let r=new Int8Array(t.length);for(let e=0;e<t.length;e++)r[e]=n[t[e]];return r}var $t=/[ \t\n\r\f]+/g,en=/[\t\n\r\f]| {2,}|^ | $/;function tn(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function nn(e){if(!en.test(e))return e;let t=e.replace($t,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function rn(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
`).replace(/[\r\f]/g,`
`):e}var an=null,on;function sn(){return an===null&&(an=new Intl.Segmenter(on,{granularity:`word`})),an}function cn(){an=null}var ln=/\p{Script=Arabic}/u,J=/\p{M}/u,un=/\p{Nd}/u;function dn(e){return ln.test(e)}function fn(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Y(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){if(fn((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(fn(n))return!0}}return!1}function pn(e){let t=An(e);return t!==null&&(yn.has(t)||X.has(t))}var mn=new Set([`\xA0`,``,``,``]),hn=new Set([`-`,``,``,``]);function gn(e){let t=An(e);return t!==null&&mn.has(t)}function _n(e){let t=An(e);return t!==null&&hn.has(t)}function vn(e,t){return gn(e)?!1:t?!(pn(e)||_n(e)):!0}var yn=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),bn=new Set([`"`,`(`,`[`,`{`,`¡`,`¿`,``,``,``,``,`«`,``,``,``,``,``,``,``,``,``,``,``,``]),xn=new Set([`'`,``]),X=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”((»((…`.split(`(`)),Sn=new Set([`:`,`.`,`،`,`؛`]),Cn=new Set([``]),wn=new Set([``,``,`»`,``,``,``,``,``,``,``,``]);function Tn(e){if(On(e))return!0;let t=!1;for(let n of e){if(X.has(n)||Fn(n)){t=!0;continue}if(!(t&&J.test(n)))return!1}return t}function En(e){for(let t of e)if(!yn.has(t)&&!X.has(t))return!1;return e.length>0}function Dn(e){if(On(e))return!0;for(let t of e)if(!bn.has(t)&&!xn.has(t)&&!J.test(t)&&!Fn(t))return!1;return e.length>0}function On(e){let t=!1;for(let n of e)if(!(n===`\\`||J.test(n))){if(bn.has(n)||X.has(n)||xn.has(n)){t=!0;continue}return!1}return t}function kn(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function An(e){if(e.length===0)return null;let t=kn(e,e.length);return e.slice(t)}function jn(e){for(let t of e)if(!J.test(t))return t;return null}function Mn(e){for(let t=e.length;t>0;){let n=kn(e,t),r=e.slice(n,t);if(!J.test(r))return r;t=n}return null}var Nn=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Pn(e,t){for(let n=0;n<t.length;n+=2)if(e>=t[n]&&e<=t[n+1])return!0;return!1}function Fn(e){let t=e.codePointAt(0);return t!==void 0&&Pn(t,Nn)}function In(e){let t=Mn(e);return t!==null&&Fn(t)}function Ln(e){let t=jn(e);return t!==null&&un.test(t)}function Rn(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(J.test(e)){n--;continue}if(bn.has(e)||xn.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function zn(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==``?e:null}function Bn(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function Vn(e,t){return e&&t!==null&&Sn.has(t)}function Hn(e){let t=An(e);return t!==null&&Cn.has(t)}function Un(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Wn(e){let t=e.length;for(;t>0;){let n=kn(e,t),r=e.slice(n,t);if(wn.has(r))return!0;if(!X.has(r))return!1;t=n}return!1}function Gn(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`
`)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===``||e===``||e===``?`glue`:e===``?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var Kn=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Z(e){return e.length===1?e[0]:e.join(``)}function qn(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),Z(n)}function Jn(e,t,n,r){if(!Kn.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=Gn(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:Z(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:Z(o),isWordLike:c,kind:a,start:s}),i}function Yn(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Xn=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Zn(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Xn.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function Qn(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}function $n(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!Zn(e,i))continue;let a=[t[i]],o=i+1;for(;o<e.len&&!Yn(r[o]);){a.push(t[o]),n[i]=!0;let e=t[o].includes(`?`);if(r[o]=`text`,t[o]=``,o++,e)break}t[i]=Z(a)}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}function er(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!Qn(o))continue;let s=a+1;if(s>=e.len||Yn(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u<e.len&&!Yn(e.kinds[u]);)c.push(e.texts[u]),u++;c.length>0&&(t.push(Z(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var tr=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,``,``]),nr=new Set([`.`,`,`,`:`,`;`]);function rr(e){for(let t=e.length;t>0;){let n=kn(e,t),r=e.slice(n,t);if(J.test(r)){t=n;continue}return nr.has(r)||Fn(r)}return!1}function ir(e,t){return t&&!Y(e)}function ar(e){for(let t of e)if(un.test(t))return!0;return!1}function or(e){if(e.length===0)return!1;for(let t of e)if(!(un.test(t)||tr.has(t)))return!1;return!0}function sr(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&or(o)&&ar(o)){let s=[o],c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&or(e.texts[c]);)s.push(e.texts[c]),c++;t.push(Z(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function cr(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`&&rr(o)&&(c||In(o))&&!Y(o)){let s=[o],c=!0,l=a+1;for(;c&&l<e.len&&e.kinds[l]===`text`&&ir(e.texts[l],e.isWordLike[l]);){let t=e.texts[l];s.push(t),c=rr(t),l++}t.push(Z(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=l-1;continue}t.push(o),n.push(c),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function lr(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;(t.length===0||!ar(t)||!or(t))&&(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function ur(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=[e.texts[a]],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=[o[0]],d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u.push(e.texts[a]),a++;let f=Z(u);if(a<e.len&&e.kinds[a]===`text`)o[0]=f,o.push(e.texts[a]),s=e.isWordLike[a],c=`text`,l=d,a++;else{t.push(f),n.push(!1),r.push(`glue`),i.push(d);continue}}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=[];for(;a<e.len&&e.kinds[a]===`glue`;)t.push(e.texts[a]),a++;let n=Z(t);if(a<e.len&&e.kinds[a]===`text`){o.push(n,e.texts[a]),s||=e.isWordLike[a],a++;continue}o.push(n)}t.push(Z(o)),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function dr(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!Y(t[e])||!Y(t[e+1]))continue;let n=Rn(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function fr(e,t,n){let r=sn(),i=0,a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=[];for(let _ of r.segment(e))for(let e of Jn(_.segment,_.isWordLike??!1,_.index,n)){let n=e.kind===`text`,r=zn(e.text,e.isWordLike,e.kind),_=Y(e.text),v=dn(e.text),y=An(e.text),b=Wn(e.text),x=Hn(e.text),S=i-1;function C(){u[S]!==null&&(o[S]=[Bn(a,u,d,S)],u[S]=null),o[S].push(e.text),s[S]=s[S]||e.isWordLike,f[S]=f[S]||_,p[S]=p[S]||v,m[S]=b,h[S]=x,g[S]=Vn(p[S],y)}t.carryCJKAfterClosingQuote&&n&&i>0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&En(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&!f[S]&&(Tn(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=Vn(v,y),i++)}for(let e=0;e<i;e++){if(u[e]!==null){a[e]=Bn(a,u,d,e);continue}a[e]=Z(o[e])}for(let e=1;e<i;e++)c[e]===`text`&&!s[e]&&On(a[e])&&c[e-1]===`text`&&!f[e-1]&&(a[e-1]+=a[e],s[e-1]=s[e-1]||s[e],a[e]=``);let _=Array.from({length:i},()=>null),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&v>=0&&c[v]===`text`&&(Dn(t)||t===`-`&&Ln(a[v]))){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e<i;e++){let t=_[e];t!=null&&(a[e]=qn(t,a[e]))}let y=0;for(let e=0;e<i;e++){let t=a[e];t.length!==0&&(y!==e&&(a[y]=t,s[y]=s[e],c[y]=c[e],l[y]=l[e]),y++)}a.length=y,s.length=y,c.length=y,l.length=y;let b=dr(cr(lr(sr(er($n(ur({len:y,texts:a,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<b.len-1;e++){let t=Un(b.texts[e]);t!==null&&(b.kinds[e]!==`space`&&b.kinds[e]!==`preserved-space`||b.kinds[e+1]!==`text`||!dn(b.texts[e+1])||(b.texts[e]=t.space,b.isWordLike[e]=!1,b.kinds[e]=b.kinds[e]===`preserved-space`?`preserved-space`:`space`,b.texts[e+1]=t.marks+b.texts[e+1],b.starts[e+1]=b.starts[e]+t.space.length))}return b}function pr(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function mr(e,t,n){if(t.len<=1)return t;let r=[],i=[],a=[],o=[],s=-1,c=!1;function l(e){r.push(t.texts[e]),i.push(t.isWordLike[e]),a.push(`text`),o.push(t.starts[e])}function u(n,s){let c=!1;for(let e=n;e<s;e++)c||=t.isWordLike[e];let l=t.starts[n],u=s<t.len?t.starts[s]:e.length;r.push(e.slice(l,u)),i.push(c),a.push(`text`),o.push(l)}function d(e){if(!(s<0)){if(c)s+1===e?l(s):u(s,e);else for(let t=s;t<e;t++)l(t);s=-1,c=!1}}for(let e=0;e<t.len;e++){let l=t.texts[e],u=t.kinds[e];if(u===`text`){s>=0&&!vn(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=Y(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function hr(e,t,n=`normal`,r=`normal`){let i=tn(n),a=i.mode===`pre-wrap`?rn(e):nn(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=fr(a,t,i),s=r===`keep-all`?mr(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:pr(s,i),...s}}var gr=null,_r=new Map,vr=null,yr=96,br=/\p{Emoji_Presentation}/u,xr=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Sr=null,Cr=new Map;function wr(){if(gr!==null)return gr;if(typeof OffscreenCanvas<`u`)return gr=new OffscreenCanvas(1,1).getContext(`2d`),gr;if(typeof document<`u`)return gr=document.createElement(`canvas`).getContext(`2d`),gr;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Tr(e){let t=_r.get(e);return t||(t=new Map,_r.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:wr().measureText(e).width,containsCJK:Y(e)},t.set(e,n)),n}function Er(){if(vr!==null)return vr;if(typeof navigator>`u`)return vr={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},vr;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return vr={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},vr}function Dr(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function Or(){return Sr===null&&(Sr=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Sr}function kr(e){return br.test(e)||e.includes(``)}function Ar(e){return xr.test(e)}function jr(e,t){let n=Cr.get(e);if(n!==void 0)return n;let r=wr();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return Cr.set(e,n),n}function Mr(e){let t=0,n=Or();for(let r of n.segment(e))kr(r.segment)&&t++;return t}function Nr(e,t){return t.emojiCount===void 0&&(t.emojiCount=Mr(e)),t.emojiCount}function $(e,t,n){return n===0?t.width:t.width-Nr(e,t)*n}function Pr(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Or(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=Q(t,n);e.push($(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>yr){let e=[],i=null,a=0;for(let t of o){let o=$(t,Q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=Q(o,n);e.push($(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=Q(c,n),i=$(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Fr(e,t){let n=wr();n.font=e;let r=Tr(e),i=Dr(e);return{cache:r,fontSize:i,emojiCorrection:t?jr(e,i):0}}function Ir(){_r.clear(),Cr.clear(),Sr=null}function Lr(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Rr(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function zr(e,t,n=e.widths.length){for(;t<n;){let n=e.kinds[t];if(!Lr(n))break;t++}return t}function Br(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Vr(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function Hr(e,t){return t===0?0:e+t}function Ur(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function Wr(e,t,n,r,i){return Hr(r,t===`tab`?i+Ur(e,n):e.lineEndFitAdvances[n])}function Gr(e,t,n,r){return Hr(r,t===`tab`?0:e.lineEndFitAdvances[n])}function Kr(e,t,n,r,i){return Hr(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function qr(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function Jr(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Yr(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function Xr(e,t,n,r,i,a){return t+Yr(e,n,r,i,a)}function Zr(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+Er().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;r<n.length;r++){let t=n[r];l?c+t>o?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S<r.length&&!(!l&&(S=zr(e,S),S>=r.length));){let e=r[S],t=i[S],n=Rr(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function Qr(e,t,n){if(e.simpleLineWalkFastPath)return Zr(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=Er(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(Xr(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=Gr(e,t,r,a),c=Kr(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;i<r.length;i++){let n=r[i];if(!f)T(t,i,n);else{let r=qr(e,!0,n),a=d+r;Jr(e,a)>l?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t<s.length;t++){let n=s[t];if(n.startSegmentIndex===n.endSegmentIndex){k(n);continue}f=!1,d=0,p=n.startSegmentIndex,m=0,h=n.startSegmentIndex,g=0,x();let u=n.startSegmentIndex;for(;u<n.endSegmentIndex&&!(!f&&(u=zr(e,u,n.endSegmentIndex),u>=n.endSegmentIndex));){let t=i[u],n=Rr(t),s=Vr(e,f,u),p=t===`tab`?Br(d+s,e.tabStopAdvance):r[u],m=s+p,x=Wr(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+Gr(e,t,u,s),i=d+Kr(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}var $r=null;function ei(){return $r===null&&($r=new Intl.Segmenter(void 0,{granularity:`grapheme`})),$r}function ti(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function ni(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Wn(e),s=bn.has(e)}function u(e,t){r.push(e),a||=t;let n=Wn(e);e.length===1&&X.has(e)?o||=n:o=n,s=!1}for(let n of ei().segment(e)){let e=n.segment,i=Y(e);if(r.length===0){l(e,n.index,i);continue}if(s||yn.has(e)||X.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ri(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i<t.length?t[i].start:e.length;r.push({text:e.slice(a,o),start:a})}function s(e){if(!(i<0)){if(a)i+1===e?r.push(t[i]):o(i,e);else for(let n=i;n<e;n++)r.push(t[n]);i=-1,a=!1}}for(let e=0;e<t.length;e++){let r=t[e];i>=0&&!vn(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=Y(r.text)}return s(t.length),r}function ii(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=ei();for(let t of r.segment(e))n++;return n}function ai(e,t,n){return t>1?e+(t-1)*n:e}function oi(e,t,n,r,i){let a=Er(),{cache:o,emojiCorrection:s}=Fr(t,Ar(e.normalized)),c=$(`-`,Q(`-`,o),s)+(i===0?0:i*2),l=$(` `,Q(` `,o),s)*8,u=i!==0;if(e.len===0)return ti(n);let d=[],f=[],p=[],m=[],h=e.chunks.length<=1&&!u,g=n?[]:null,_=[],v=[],y=n?[]:null,b=Array.from({length:e.len});function x(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(h=!1),d.push(t),f.push(n),p.push(r),m.push(i),g?.push(a),_.push(o),u&&v.push(s),y!==null&&y.push(e)}function S(e,t,n,r,c){let l=Q(e,o),d=u?ii(e,t):0,f=ai($(e,l,s),d,i),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(d>0?i:0),h=t===`space`||t===`zero-width-break`?0:f;if(c&&r&&e.length>1){let r=`sum-graphemes`;i===0?or(e)?r=`pair-context`:a.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,x(e,f,m,h,t,n,Pr(e,l,o,s,r),d);return}x(e,f,m,h,t,n,null,d)}for(let t=0;t<e.len;t++){b[t]=d.length;let n=e.texts[t],i=e.isWordLike[t],s=e.kinds[t],l=e.starts[t];if(s===`soft-hyphen`){x(n,0,c,c,s,l,null,0);continue}if(s===`hard-break`){x(n,0,0,0,s,l,null,0);continue}if(s===`tab`){x(n,0,0,0,s,l,null,u?ii(n,s):0);continue}let f=Q(n,o);if(s===`text`&&f.containsCJK){let e=ni(n,a),t=r===`keep-all`?ri(n,e,a.breakKeepAllAfterPunctuation):e;for(let e=0;e<t.length;e++){let n=t[e];S(n.text,`text`,l+n.start,i,r===`keep-all`||!Y(n.text))}continue}S(n,s,l,i,!0)}let C=si(e.chunks,b,d.length),w=g===null?null:Qt(e.normalized,g);return y===null?{widths:d,lineEndFitAdvances:f,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:h,segLevels:w,breakableFitAdvances:_,letterSpacing:i,spacingGraphemeCounts:v,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:C}:{widths:d,lineEndFitAdvances:f,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:h,segLevels:w,breakableFitAdvances:_,letterSpacing:i,spacingGraphemeCounts:v,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:C,segments:y}}function si(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}function ci(e,t,n,r){let i=r?.wordBreak??`normal`,a=r?.letterSpacing??0;return oi(hr(e,Er(),r?.whiteSpace,i),t,n,i,a)}function li(e,t,n){return ci(e,t,!0,n)}function ui(e){return e}function di(e){let t=0;return Qr(ui(e),1/0,e=>{e>t&&(t=e)}),t}function fi(){cn(),$r=null,Ir()}var pi=ze({cdnList:Fe,fallback:{},path:e=>`colors/${Re[e]}.json`});function mi(e,t){let n=Pe(t).replace(/\s+/g,`-`),[r,i]=(0,G.useState)(()=>pi.get(e)?.[n]);return(0,G.useEffect)(()=>{let t=!1;if(!n){i(void 0);return}return Promise.all([Le(e,n),pi.load(e)]).then(([e,n])=>{if(!t){let t=Pe(e).replace(/\s+/g,`-`);i(n?.[t])}}),()=>{t=!0}},[n,e]),r}function hi(e){if(e)return{background:`rgba(${e.r}, ${e.g}, ${e.b}, 0.16)`,color:`rgb(${e.r} ${e.g} ${e.b})`}}function gi({className:e,displayName:t,label:n,name:r,type:i}){let a=mi(i,r),o=n??(i===`network`?Ie(r,t):r);return(0,q.jsxs)(`span`,{className:ue(`inline-flex min-w-0 items-center gap-1 rounded-full px-2 py-0.5`,e),style:hi(a),children:[(0,q.jsx)(Be,{alt:``,className:`size-4 shrink-0 rounded-full`,height:16,name:r,type:i,width:16}),(0,q.jsx)(`span`,{className:`truncate font-semibold text-xs`,children:o})]})}function _i({className:e,displayName:t,network:n}){return(0,q.jsx)(gi,{className:e,displayName:t,name:n,type:`network`})}var vi=36,yi=1,bi=`700 ${vi}px "Nunito Variable"`,xi={wordBreak:`keep-all`},Si=`\xA0`;function Ci({activeNetwork:e,activeNetworkDisplayName:t,amountMode:n,onCopyAmount:r,order:i,tradeId:a}){let o=n===`payment`?Oi(i):Di(i);return(0,q.jsxs)(`section`,{className:`mb-4 w-full rounded-2xl border bg-card px-6 pt-6 pb-5 text-card-foreground shadow-md`,children:[(0,q.jsx)(`p`,{className:`mb-1 font-medium text-muted-foreground text-sm`,children:n===`payment`?M():O()}),(0,q.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,q.jsx)(wi,{children:o}),(0,q.jsx)(Ft,{onClick:r})]}),n===`payment`&&e?(0,q.jsx)(_i,{className:`mt-2`,displayName:t,network:e??``}):null,(0,q.jsx)(`div`,{className:`mt-3 border-border/50 border-t pt-3`,children:(0,q.jsx)(`table`,{className:`w-full border-separate border-spacing-y-1 text-muted-foreground text-sm`,children:(0,q.jsxs)(`tbody`,{children:[n===`payment`?(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:O()}),(0,q.jsx)(`td`,{className:`whitespace-nowrap font-medium text-card-foreground`,children:Di(i)})]}):null,(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:k()}),(0,q.jsx)(`td`,{className:`break-all font-medium text-card-foreground`,children:i?.trade_id??a})]})]})})})]})}function wi({children:e}){let t=Ti(e),n=(0,G.useRef)(null),[r,i]=(0,G.useState)(()=>Ei(t)),[a,o]=(0,G.useState)(vi),s=(0,G.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.clientWidth;if(!(t&&r))return;let i=Math.max(yi,Math.min(vi,vi*t/r));o(e=>Math.abs(e-i)<.5?e:i)},[r]);return(0,G.useLayoutEffect)(()=>{i(Ei(t))},[t]),(0,G.useLayoutEffect)(()=>{s();let e=n.current,t=new ResizeObserver(s);return e&&t.observe(e),()=>{t.disconnect()}},[s]),(0,G.useLayoutEffect)(()=>{let e=!0;return document.fonts?.ready.then(()=>{e&&(fi(),i(Ei(t)))}),()=>{e=!1}},[t]),(0,q.jsx)(`span`,{className:`relative block min-w-0 flex-1 overflow-hidden leading-none`,ref:n,children:(0,q.jsx)(`span`,{className:`block whitespace-nowrap font-bold font-nunito leading-none`,style:{fontSize:a},children:t})})}function Ti(e){return e.replace(/\s+/g,Si)}function Ei(e){return di(li(e,bi,xi))}function Di(e){return e?.amount==null?`--`:ki(e.amount,e.currency)}function Oi(e){let t=e?.actual_amount??e?.amount,n=e?.actual_amount==null?e?.currency:e?.token;return t==null?`--`:ki(t,n)}function ki(e,t){return t?`${e}${Si}${t}`:String(e)}function Ai(e,t){return t===2?e===`payment`||e===`success`||e===`expired`?2:+(e===`select`):e===`payment`||e===`success`||e===`expired`?3:e===`select`?2:+(e===`method`)}function ji({hidden:e,panel:t,totalSteps:n=3}){if(e)return null;let r=Ai(t,n);return(0,q.jsx)(`div`,{className:`mb-4 flex w-full items-center gap-2`,children:Array.from({length:n},(e,t)=>t+1).map(e=>(0,q.jsx)(`div`,{className:`h-1 flex-1 overflow-hidden rounded-full bg-foreground/10`,children:(0,q.jsx)(`div`,{className:ue(`h-full rounded-full bg-foreground transition-all`,r>=e?`w-full`:`w-0`)})},e))})}var Mi=new Set,Ni,Pi=Date.now();function Fi(e){return Pi=Date.now(),Mi.add(e),Ni===void 0&&(Ni=window.setInterval(()=>{Pi=Date.now();for(let e of Mi)e()},1e3)),()=>{Mi.delete(e),Mi.size===0&&Ni!==void 0&&(window.clearInterval(Ni),Ni=void 0)}}function Ii(){return Pi}function Li(e){return(0,G.useSyncExternalStore)(e?Fi:()=>()=>void 0,Ii,Ii)}function Ri({tradeId:e}){let r=le(),i=t.useQuery(`get`,`/pay/checkout-counter-resp/{trade_id}`,{params:{path:{trade_id:e}}},{retry:!1}),a=(0,G.useMemo)(()=>{let e=Ke(i.data);return e?tt(e):void 0},[i.data]),o=t.useMutation(`post`,`/pay/switch-network`),s=t.useMutation(`post`,`/pay/submit-tx-hash/{trade_id}`),[l,u]=(0,G.useState)(),[d,f]=(0,G.useState)(),[p,m]=(0,G.useState)(),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(``),x=d??a,S=!!(x?.payment_url||x?.receive_address),T=!!(x?.trade_id&&!S),E=!!(x?.network&&x?.token&&!W(x.network,`okpay`)),D=!!(x?.trade_id&&E&&!Je(x.is_selected)),O=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{enabled:!!x?.trade_id,retry:!1}),k=(0,G.useMemo)(()=>Ke(O.data),[O.data]),A=(0,G.useMemo)(()=>Ye(k).filter(e=>!W(e.network,`okpay`)),[k]),ee=(0,G.useMemo)(()=>T||_||D?A:[],[D,_,T,A]),j=(0,G.useMemo)(()=>zi(k?.okpay?.allow_tokens),[k?.okpay?.allow_tokens]),ne=ee.length>0,re=!!(k?.okpay?.enabled&&j.length),ie=Number(ne)+Number(re),ae;ie===1&&(ae=ne?`chain`:`okpay`);let M=p??(_||E?`chain`:ae),N=(0,G.useMemo)(()=>M===`okpay`?j:M===`chain`?ee:[],[M,j,ee]),oe=(0,G.useMemo)(()=>et(N,x,{network:k?.epay?.default_network,token:k?.epay?.default_token}),[N,x,k]),P=h??oe,F=P?.network??x?.network??``,se=P?.token??x?.token??``,ce=(0,G.useMemo)(()=>{if(M===`okpay`&&k?.okpay?.enabled&&W(F,`tron`)&&[`trx`,`usdt`].includes(String(se).toLowerCase()))return{network:`okpay`,token:se.toUpperCase()}},[M,k,F,se]),I=(0,G.useMemo)(()=>Ge(x?.expiration_time),[x?.expiration_time]),L=(0,G.useMemo)(()=>Ge(x?.created_at),[x?.created_at]),ue=L&&I&&L<I?Math.max(1,Math.round((I.getTime()-L.getTime())/1e3)):600,R=Li(!!(I&&x?.trade_id)),z=I?Math.max(0,Math.round((I.getTime()-R)/1e3)):0,de=`error`in i?i.error:void 0,fe=`error`in O?O.error:void 0,B=(0,G.useMemo)(()=>{if(l)return l;if(i.isPending)return`loading`;if(de){let e=We(de);return $e.includes(e??0)?`not-found`:`timeout`}if(!x?.trade_id)return`not-found`;if(z<=0&&I)return`expired`;if(T||_){if(O.isPending)return`loading`;if(fe){let e=We(fe);return $e.includes(e??0)?`not-found`:`timeout`}return M?`select`:`method`}return`payment`},[M,I,_,T,x,de,i.isPending,z,fe,O.isPending,l]),pe=!!x?.trade_id&&!l&&![`loading`,`not-found`,`timeout`].includes(B),V=t.useQuery(`get`,`/pay/check-status/{trade_id}`,{params:{path:{trade_id:x?.trade_id??``}}},{enabled:pe,refetchInterval:({state:e})=>pe&&e.fetchFailureCount<5?qe:!1,retry:!1}),me=Ke(V.data)?.status,H=(0,G.useMemo)(()=>me===2?`success`:me===3?`expired`:B===`payment`&&V.failureCount>=5?`timeout`:B,[B,me,V.failureCount]);n({queryKey:[`checkout-redirect`,x?.trade_id,x?.redirect_url],queryFn:async({signal:e})=>(await Ze(Ue,e),window.location.href=x?.redirect_url,!0),enabled:H===`success`&&!!x?.redirect_url,retry:!1});let he=(0,G.useMemo)(()=>{let e=new Map;for(let t of N){if(!t.network)continue;let n=t.network.toLowerCase();e.has(n)||e.set(n,{network:t.network,displayName:t.displayName})}return Array.from(e.values())},[N]),ge=(0,G.useMemo)(()=>{let e=new Map;for(let t of A)t.network&&t.displayName&&e.set(t.network.toLowerCase(),t.displayName);return e},[A]),_e=(0,G.useMemo)(()=>Array.from(new Set(N.filter(e=>W(e.network,F)).map(e=>e.token))),[N,F]),ve=ue>0?Math.max(0,Math.min(1,z/ue)):0,ye=Qe(ve),U=L?Math.max(0,Math.round((R-L.getTime())/1e3)):0,be=H===`payment`&&U>=10,xe=H===`method`||H===`select`||!S?`order`:`payment`,Se=e=>e==null||e===``?!1:(0,ot.default)(String(e))?(je.success(te()),!0):(je.error(C()),!1),Ce=(0,G.useCallback)((e,t)=>{if(t&&!t.closed){t.location.href=e,t.focus();return}window.open(e,`okpay_checkout`,`popup,width=480,height=720`)},[]),we=(0,G.useCallback)(async(e,t)=>{if(!x?.trade_id)return;let n=W(e.network,`okpay`);try{let i=Ke(await o.mutateAsync({body:{trade_id:x.trade_id,network:e.network.toLowerCase(),token:e.token.toLowerCase()}}));if(!i)throw Error(Xe);let a=tt(i);if(f({...x,...a,is_selected:a.is_selected??!0,network:a.network??e.network,token:a.token??e.token}),v(!1),n&&a.payment_url){Ce(a.payment_url,t);return}t?.close(),a.trade_id&&a.trade_id!==x.trade_id&&r({params:{trade_id:a.trade_id},replace:!0,to:`/cashier/$trade_id`}).catch(()=>void 0),u(void 0)}catch(e){t?.close();let n=We(e);$e.includes(n??0)?u(`not-found`):n===10010?u(`expired`):je.error(e instanceof Error?e.message:Xe)}},[x,Ce,r,o]),Te=async()=>{if(M===`okpay`){await Ee();return}P&&await we(P)},Ee=async()=>{ce&&await we(ce,window.open(`about:blank`,`okpay_checkout`,`popup,width=480,height=720`))},De=()=>{if(u(void 0),x?.trade_id&&x.receive_address){V.refetch();return}i.refetch(),(T||O.isError)&&O.refetch()},Oe=()=>{if(x?.redirect_url){window.location.href=x.redirect_url;return}if(document.referrer){window.location.href=document.referrer;return}history.back()},ke=async()=>{let e=y.trim();if(!(x?.trade_id&&e))return je.error(c()),!1;try{let t=Ke(await s.mutateAsync({body:{block_transaction_id:e},params:{path:{trade_id:x.trade_id}}}));return je.success(w()),b(``),t?.status===2?(u(`success`),!0):(V.refetch(),!0)}catch(e){let t=We(e);return $e.includes(t??0)?u(`not-found`):t===10010&&u(`expired`),!1}},Ae=()=>{m(`chain`),g(null)},Me=()=>{m(`okpay`),g(j[0]??null)},Ne=()=>{if(_){v(!1);return}m(void 0),g(null)},Pe=()=>{let e=A.find(e=>W(e.network,x?.network)&&W(e.token,x?.token));m(`chain`),g(e??null),v(!0)},Fe=e=>{g(N.find(t=>W(t.network,e))??null)},Ie=e=>{g(N.find(t=>W(t.network,F)&&W(t.token,e))??null)},Le=M===`okpay`||W(x?.network,`okpay`);return(0,q.jsxs)(`main`,{className:`flex flex-1 flex-col justify-center`,children:[H===`not-found`?null:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ji,{hidden:!!(!(_||d)&&S&&E),panel:H,totalSteps:Le||!M?3:2}),(0,q.jsx)(Ci,{activeNetwork:x?.network??F,activeNetworkDisplayName:ge.get((x?.network??F).toLowerCase()),amountMode:xe,onCopyAmount:()=>Se(xe===`payment`?x?.actual_amount??x?.amount:x?.amount),order:x,tradeId:e})]}),(0,q.jsx)(qt,{networkOptions:he,onBack:Oe,onChangePaymentOption:Pe,onConfirmSelection:Te,onCopyAddress:()=>Se(x?.receive_address),onNetworkChange:Fe,onRetry:De,onReturnToMethods:Ne,onSelectChainPayment:Ae,onSelectOkpayPayment:Me,onSubmitTxHash:ke,onTokenChange:Ie,onTxHashChange:b,order:x,panel:H,remaining:z,selectedNetwork:F,selectedOption:P??void 0,selectedPaymentMethod:M,selectedToken:se,showChainPayment:ne,showChangePaymentOption:D&&H===`payment`&&!W(x?.network,`okpay`),showOkpay:re,showReturnToMethods:!!p&&ie>1,showTxHashSubmit:be,submitting:o.isPending,submittingTxHash:s.isPending,timeColor:ye,timerRatio:ve,tokenOptions:_e,txHash:y})]})}function zi(e){return Array.from(new Set((e??[]).map(e=>e.trim().toUpperCase()).filter(e=>[`TRX`,`USDT`].includes(e)))).map(e=>({network:`tron`,token:e,displayName:`TRON`}))}function Bi(){let{trade_id:e}=Me.useParams();return(0,q.jsx)(Ri,{tradeId:e},e)}export{Bi as component};