import{commonjsGlobal as t}from"../../_virtual/_commonjsHelpers.mjs";import{__module as e}from"../../_virtual/index53.mjs";var r;function n(){return r||(r=1,function(e,r){var n,u=1/0,o=NaN,f=/^\s+|\s+$/g,i=/\w*$/,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l="\\ud800-\\udfff",p="\\u0300-\\u036f\\ufe20-\\ufe23",d="\\u20d0-\\u20f0",v="\\ufe0e\\ufe0f",g="["+l+"]",b="["+p+d+"]",x="\\ud83c[\\udffb-\\udfff]",y="[^"+l+"]",j="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",O="(?:"+b+"|"+x+")"+"?",_="["+v+"]?",E=_+O+("(?:"+h+"(?:"+[y,j,m].join("|")+")"+_+O+")*"),R="(?:"+[y+b+"?",b,j,m,g].join("|")+")",$=RegExp(x+"(?="+x+")|"+R+E,"g"),I=RegExp("["+h+l+p+d+v+"]"),S=parseInt,N="object"==typeof t&&t&&t.Object===Object&&t,T="object"==typeof self&&self&&self.Object===Object&&self,q=N||T||Function("return this")(),w=r&&!r.nodeType&&r,A=w&&e&&!e.nodeType&&e,F=A&&A.exports===w&&N.process,H=function(){try{return F&&F.binding("util")}catch(t){}}(),k=H&&H.isRegExp,z=(n="length",function(t){return null==t?void 0:t[n]});function B(t){return I.test(t)}function C(t){return B(t)?function(t){var e=$.lastIndex=0;for(;$.test(t);)e++;return e}(t):z(t)}function D(t){return B(t)?function(t){return t.match($)||[]}(t):function(t){return t.split("")}(t)}var G=Object.prototype.toString,J=q.Symbol,K=J?J.prototype:void 0,L=K?K.toString:void 0;function M(t){if("string"==typeof t)return t;if(W(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function P(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,u=t.length;e<0&&(e=-e>u?0:u+e),(r=r>u?u:r)<0&&(r+=u),u=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(u);++n<u;)o[n]=t[n+e];return o}(t,e,r)}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var U,V=k?(U=k,function(t){return U(t)}):function(t){return Q(t)&&"[object RegExp]"==G.call(t)};function W(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==G.call(t)}function X(t){return t?(t=function(t){if("number"==typeof t)return t;if(W(t))return o;if(Q(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Q(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(f,"");var r=s.test(t);return r||a.test(t)?S(t.slice(2),r?2:8):c.test(t)?o:+t}(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Y(t){return null==t?"":M(t)}e.exports=function(t,e){var r=30,n="...";if(Q(e)){var u="separator"in e?e.separator:u;r="length"in e?function(t){var e=X(t),r=e%1;return e==e?r?e-r:e:0}(e.length):r,n="omission"in e?M(e.omission):n}var o=(t=Y(t)).length;if(B(t)){var f=D(t);o=f.length}if(r>=o)return t;var c=r-C(n);if(c<1)return n;var s=f?P(f,0,c).join(""):t.slice(0,c);if(void 0===u)return s+n;if(f&&(c+=s.length-c),V(u)){if(t.slice(c).search(u)){var a,l=s;for(u.global||(u=RegExp(u.source,Y(i.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var p=a.index;s=s.slice(0,void 0===p?c:p)}}else if(t.indexOf(M(u),c)!=c){var d=s.lastIndexOf(u);d>-1&&(s=s.slice(0,d))}return s+n}}(e,e.exports)),e.exports}e.exports;export{n as __require};