From 03abdd1f340f7e2aed667e654b6f0425b62ee6f2 Mon Sep 17 00:00:00 2001 From: IceMimosa <514793425@qq.com> Date: Wed, 15 Feb 2023 18:58:35 +0800 Subject: [PATCH] Fix js json bigint display --- src/main/resources/static/js/json-bigint-1.0.0.min.js | 1 + src/main/resources/static/js/message-inspector.js | 4 ++-- src/main/resources/templates/lib/template.ftlh | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/static/js/json-bigint-1.0.0.min.js diff --git a/src/main/resources/static/js/json-bigint-1.0.0.min.js b/src/main/resources/static/js/json-bigint-1.0.0.min.js new file mode 100644 index 00000000..e8ef017a --- /dev/null +++ b/src/main/resources/static/js/json-bigint-1.0.0.min.js @@ -0,0 +1 @@ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jsonBigint=e()}}(function(){return function(){return function e(r,n,t){function i(u,f){if(!n[u]){if(!r[u]){var s="function"==typeof require&&require;if(!f&&s)return s(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[u]={exports:{}};r[u][0].call(l.exports,function(e){return i(r[u][1][e]||e)},l,l.exports,e,r,n,t)}return n[u].exports}for(var o="function"==typeof require&&require,u=0;u="0"&&f<="9";)i+=f,h();if("."===f)for(i+=".";h()&&f>="0"&&f<="9";)i+=f;if("e"===f||"E"===f)for(i+=f,h(),"-"!==f&&"+"!==f||(i+=f,h());f>="0"&&f<="9";)i+=f,h();if(r=+i,isFinite(r))return null==t&&(t=e("bignumber.js")),i.length>15?n.storeAsString?i:n.useNativeBigInt?BigInt(i):new t(i):n.alwaysParseAsBig?n.useNativeBigInt?BigInt(r):new t(r):r;a("Bad number")},g=function(){var e,r,n,t="";if('"'===f)for(var i=u;h();){if('"'===f)return u-1>i&&(t+=s.substring(i,u-1)),h(),t;if("\\"===f){if(u-1>i&&(t+=s.substring(i,u-1)),h(),"u"===f){for(n=0,r=0;r<4&&(e=parseInt(h(),16),isFinite(e));r+=1)n=16*n+e;t+=String.fromCharCode(n)}else{if("string"!=typeof l[f])break;t+=l[f]}i=u}}a("Bad string")},d=function(){for(;f&&f<=" ";)h()};return c=function(){switch(d(),f){case"{":return function(){var e,r=Object.create(null);if("{"===f){if(h("{"),d(),"}"===f)return h("}"),r;for(;f;){if(e=g(),d(),h(":"),!0===n.strict&&Object.hasOwnProperty.call(r,e)&&a('Duplicate key "'+e+'"'),!0===i.test(e)?"error"===n.protoAction?a("Object contains forbidden prototype property"):"ignore"===n.protoAction?c():r[e]=c():!0===o.test(e)?"error"===n.constructorAction?a("Object contains forbidden constructor property"):"ignore"===n.constructorAction?c():r[e]=c():r[e]=c(),d(),"}"===f)return h("}"),r;h(","),d()}}a("Bad object")}();case"[":return function(){var e=[];if("["===f){if(h("["),d(),"]"===f)return h("]"),e;for(;f;){if(e.push(c()),d(),"]"===f)return h("]"),e;h(","),d()}}a("Bad array")}();case'"':return g();case"-":return p();default:return f>="0"&&f<="9"?p():function(){switch(f){case"t":return h("t"),h("r"),h("u"),h("e"),!0;case"f":return h("f"),h("a"),h("l"),h("s"),h("e"),!1;case"n":return h("n"),h("u"),h("l"),h("l"),null}a("Unexpected '"+f+"'")}()}},function(e,r){var n;return s=e+"",u=0,f=" ",n=c(),d(),f&&a("Syntax error"),"function"==typeof r?function e(n,t){var i,o=n[t];return o&&"object"==typeof o&&Object.keys(o).forEach(function(r){void 0!==(i=e(o,r))?o[r]=i:delete o[r]}),r.call(n,t,o)}({"":n},""):n}}},{"bignumber.js":4}],3:[function(e,r,n){var t=e("bignumber.js"),i=r.exports;!function(){"use strict";var e,r,n,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function f(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,function(e){var r=u[e];return"string"==typeof r?r:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}"function"!=typeof i.stringify&&(i.stringify=function(i,o,u){var s;if(e="",r="","number"==typeof u)for(s=0;s0||e===r?r:r-1}function d(e){for(var r,n,t=1,i=e.length,o=e[0]+"";tc^n?1:-1;for(f=(s=i.length)<(c=o.length)?s:c,u=0;uo[u]^n?1:-1;return s==c?0:s>c^n?1:-1}function b(e,r,n,t){if(en||e!==o(e))throw Error(u+(t||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var r=e.c.length-1;return g(e.e/c)==r&&e.c[r]%2!=0}function v(e,r){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(r<0?"e":"e+")+r}function m(e,r,n){var t,i;if(r<0){for(i=n+".";++r;i+=n);e=i+e}else if(++r>(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rL?d.c=d.e=null:e.e=10;a/=10,s++);return void(s>L?d.c=d.e=null:(d.e=s,d.c=[e]))}g=String(e)}else{if(!t.test(g=String(e)))return N(d,g,h);d.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(s=g.indexOf("."))>-1&&(g=g.replace(".","")),(a=g.search(/e/i))>0?(s<0&&(s=a),s+=+g.slice(a+1),g=g.substring(0,a)):s<0&&(s=g.length)}else{if(b(r,2,G.length,"Base"),10==r)return V(d=new q(e),P+d.e+1,D);if(g=String(e),h="number"==typeof e){if(0*e!=0)return N(d,g,h,r);if(d.s=1/e<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(f+e)}else d.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=G.slice(0,r),s=a=0,p=g.length;as){s=p;continue}}else if(!u&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){u=!0,a=-1,s=0;continue}return N(d,String(e),h,r)}h=!1,(s=(g=A(g,r,10,d.s)).indexOf("."))>-1?g=g.replace(".",""):s=g.length}for(a=0;48===g.charCodeAt(a);a++);for(p=g.length;48===g.charCodeAt(--p););if(g=g.slice(a,++p)){if(p-=a,h&&q.DEBUG&&p>15&&(e>l||e!==o(e)))throw Error(f+d.s*e);if((s=s-a-1)>L)d.c=d.e=null;else if(s=U)?v(s,u):m(s,u,"0");else if(o=(e=V(new q(e),r,n)).e,f=(s=d(e.c)).length,1==t||2==t&&(r<=o||o<=R)){for(;ff){if(--r>0)for(s+=".";r--;s+="0");}else if((r+=o-f)>0)for(o+1==f&&(s+=".");r--;s+="0");return e.s<0&&i?"-"+s:s}function z(e,r){for(var n,t=1,i=new q(e[0]);t=10;i/=10,t++);return(n=t+n*c-1)>L?e.c=e.e=null:n=10;h/=10,u++);if((f=r-u)<0)f+=c,l=r,d=(p=w[g=0])/b[u-l-1]%10|0;else if((g=i((f+1)/c))>=w.length){if(!t)break e;for(;w.length<=g;w.push(0));p=d=0,u=1,l=(f%=c)-c+1}else{for(p=h=w[g],u=1;h>=10;h/=10,u++);d=(l=(f%=c)-c+u)<0?0:p/b[u-l-1]%10|0}if(t=t||r<0||null!=w[g+1]||(l<0?p:p%b[u-l-1]),t=n<4?(d||t)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||t||6==n&&(f>0?l>0?p/b[u-l]:0:w[g-1])%10&1||n==(e.s<0?8:7)),r<1||!w[0])return w.length=0,t?(r-=e.e+1,w[0]=b[(c-r%c)%c],e.e=-r||0):w[0]=e.e=0,e;if(0==f?(w.length=g,h=1,g--):(w.length=g+1,h=b[c-f],w[g]=l>0?o(p/b[u-l]%b[l])*h:0),t)for(;;){if(0==g){for(f=1,l=w[0];l>=10;l/=10,f++);for(l=w[0]+=h,h=1;l>=10;l/=10,h++);f!=h&&(e.e++,w[0]==s&&(w[0]=1));break}if(w[g]+=h,w[g]!=s)break;w[g--]=0,h=1}for(f=w.length;0===w[--f];w.pop());}e.e>L?e.c=e.e=null:e.e=U?v(r,n):m(r,n,"0"),e.s<0?"-"+r:r)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var r,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(b(n=e[r],0,p,r),P=n),e.hasOwnProperty(r="ROUNDING_MODE")&&(b(n=e[r],0,8,r),D=n),e.hasOwnProperty(r="EXPONENTIAL_AT")&&((n=e[r])&&n.pop?(b(n[0],-p,0,r),b(n[1],0,p,r),R=n[0],U=n[1]):(b(n,-p,p,r),R=-(U=n<0?-n:n))),e.hasOwnProperty(r="RANGE"))if((n=e[r])&&n.pop)b(n[0],-p,-1,r),b(n[1],1,p,r),F=n[0],L=n[1];else{if(b(n,-p,p,r),!n)throw Error(u+r+" cannot be zero: "+n);F=-(L=n<0?-n:n)}if(e.hasOwnProperty(r="CRYPTO")){if((n=e[r])!==!!n)throw Error(u+r+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw C=!n,Error(u+"crypto unavailable");C=n}else C=n}if(e.hasOwnProperty(r="MODULO_MODE")&&(b(n=e[r],0,9,r),T=n),e.hasOwnProperty(r="POW_PRECISION")&&(b(n=e[r],0,p,r),M=n),e.hasOwnProperty(r="FORMAT")){if("object"!=typeof(n=e[r]))throw Error(u+r+" not an object: "+n);k=n}if(e.hasOwnProperty(r="ALPHABET")){if("string"!=typeof(n=e[r])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+r+" invalid: "+n);G=n}}return{DECIMAL_PLACES:P,ROUNDING_MODE:D,EXPONENTIAL_AT:[R,U],RANGE:[F,L],CRYPTO:C,MODULO_MODE:T,POW_PRECISION:M,FORMAT:k,ALPHABET:G}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var r,n,t=e.c,i=e.e,f=e.s;e:if("[object Array]"=={}.toString.call(t)){if((1===f||-1===f)&&i>=-p&&i<=p&&i===o(i)){if(0===t[0]){if(0===i&&1===t.length)return!0;break e}if((r=(i+1)%c)<1&&(r+=c),String(t[0]).length==r){for(r=0;r=s||n!==o(n))break e;if(0!==n)return!0}}}else if(null===t&&null===i&&(null===f||1===f||-1===f))return!0;throw Error(u+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return z(arguments,I.lt)},q.minimum=q.min=function(){return z(arguments,I.gt)},q.random=(O=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var r,n,t,f,s,l=0,h=[],g=new q(_);if(null==e?e=P:b(e,0,p),f=i(e/c),C)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(f*=2));l>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(h.push(s%1e14),l+=2);l=f/2}else{if(!crypto.randomBytes)throw C=!1,Error(u+"crypto unavailable");for(r=crypto.randomBytes(f*=7);l=9e15?crypto.randomBytes(7).copy(r,l):(h.push(s%1e14),l+=7);l=f/7}if(!C)for(;l=10;s/=10,l++);ln-1&&(null==u[i+1]&&(u[i+1]=0),u[i+1]+=u[i]/n|0,u[i]%=n)}return u.reverse()}return function(r,t,i,o,u){var f,s,c,l,a,h,p,g,w=r.indexOf("."),b=P,y=D;for(w>=0&&(l=M,M=0,r=r.replace(".",""),h=(g=new q(t)).pow(r.length-w),M=l,g.c=e(m(d(h.c),h.e,"0"),10,i,"0123456789"),g.e=g.c.length),c=l=(p=e(r,t,i,u?(f=G,"0123456789"):(f="0123456789",G))).length;0==p[--l];p.pop());if(!p[0])return f.charAt(0);if(w<0?--c:(h.c=p,h.e=c,h.s=o,p=(h=n(h,g,b,y,i)).c,a=h.r,c=h.e),w=p[s=c+b+1],l=i/2,a=a||s<0||null!=p[s+1],a=y<4?(null!=w||a)&&(0==y||y==(h.s<0?3:2)):w>l||w==l&&(4==y||a||6==y&&1&p[s-1]||y==(h.s<0?8:7)),s<1||!p[0])r=a?m(f.charAt(1),-b,f.charAt(0)):f.charAt(0);else{if(p.length=s,a)for(--i;++p[--s]>i;)p[s]=0,s||(++c,p=[1].concat(p));for(l=p.length;!p[--l];);for(w=0,r="";w<=l;r+=f.charAt(p[w++]));r=m(r,c,f.charAt(0))}return r}}(),n=function(){function e(e,r,n){var t,i,o,u,f=0,s=e.length,c=r%h,l=r/h|0;for(e=e.slice();s--;)f=((i=c*(o=e[s]%h)+(t=l*o+(u=e[s]/h|0)*c)%h*h+f)/n|0)+(t/h|0)+l*u,e[s]=i%n;return f&&(e=[f].concat(e)),e}function r(e,r,n,t){var i,o;if(n!=t)o=n>t?1:-1;else for(i=o=0;ir[i]?1:-1;break}return o}function n(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(t,i,u,f,l){var a,h,p,d,w,b,y,v,m,A,N,O,E,x,B,S,j,I=t.s==i.s?1:-1,_=t.c,P=i.c;if(!(_&&_[0]&&P&&P[0]))return new q(t.s&&i.s&&(_?!P||_[0]!=P[0]:P)?_&&0==_[0]||!P?0*I:I/0:NaN);for(m=(v=new q(I)).c=[],I=u+(h=t.e-i.e)+1,l||(l=s,h=g(t.e/c)-g(i.e/c),I=I/c|0),p=0;P[p]==(_[p]||0);p++);if(P[p]>(_[p]||0)&&h--,I<0)m.push(1),d=!0;else{for(x=_.length,S=P.length,p=0,I+=2,(w=o(l/(P[0]+1)))>1&&(P=e(P,w,l),_=e(_,w,l),S=P.length,x=_.length),E=S,N=(A=_.slice(0,S)).length;N=l/2&&B++;do{if(w=0,(a=r(P,A,S,N))<0){if(O=A[0],S!=N&&(O=O*l+(A[1]||0)),(w=o(O/B))>1)for(w>=l&&(w=l-1),y=(b=e(P,w,l)).length,N=A.length;1==r(b,A,y,N);)w--,n(b,S=10;I/=10,p++);V(v,u+(v.e=p+h*c-1)+1,f,d)}else v.e=h,v.r=+d;return v}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,B=/^\.([^.]+)$/,S=/^-?(Infinity|NaN)$/,j=/^\s*\+(?=[\w.])|^\s+|\s+$/g,N=function(e,r,n,t){var i,o=n?r:r.replace(j,"");if(S.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(E,function(e,r,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,t&&t!=i?e:r}),t&&(i=t,o=o.replace(x,"$1").replace(B,"0.$1")),r!=o))return new q(o,i);if(q.DEBUG)throw Error(u+"Not a"+(t?" base "+t:"")+" number: "+r);e.s=null}e.c=e.e=null},I.absoluteValue=I.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},I.comparedTo=function(e,r){return w(this,new q(e,r))},I.decimalPlaces=I.dp=function(e,r){var n,t,i,o=this;if(null!=e)return b(e,0,p),null==r?r=D:b(r,0,8),V(new q(o),e+o.e+1,r);if(!(n=o.c))return null;if(t=((i=n.length-1)-g(this.e/c))*c,i=n[i])for(;i%10==0;i/=10,t--);return t<0&&(t=0),t},I.dividedBy=I.div=function(e,r){return n(this,new q(e,r),P,D)},I.dividedToIntegerBy=I.idiv=function(e,r){return n(this,new q(e,r),0,1)},I.exponentiatedBy=I.pow=function(e,r){var n,t,f,s,l,a,h,p,g=this;if((e=new q(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+J(e));if(null!=r&&(r=new q(r)),l=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new q(Math.pow(+J(g),l?2-y(e):+J(e))),r?p.mod(r):p;if(a=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new q(NaN);(t=!a&&g.isInteger()&&r.isInteger())&&(g=g.mod(r))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||l&&g.c[1]>=24e7:g.c[0]<8e13||l&&g.c[0]<=9999975e7)))return s=g.s<0&&y(e)?-0:0,g.e>-1&&(s=1/s),new q(a?1/s:s);M&&(s=i(M/c+2))}for(l?(n=new q(.5),a&&(e.s=1),h=y(e)):h=(f=Math.abs(+J(e)))%2,p=new q(_);;){if(h){if(!(p=p.times(g)).c)break;s?p.c.length>s&&(p.c.length=s):t&&(p=p.mod(r))}if(f){if(0===(f=o(f/2)))break;h=f%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)h=y(e);else{if(0==(f=+J(e)))break;h=f%2}g=g.times(g),s?g.c&&g.c.length>s&&(g.c.length=s):t&&(g=g.mod(r))}return t?p:(a&&(p=_.div(p)),r?p.mod(r):s?V(p,M,D,void 0):p)},I.integerValue=function(e){var r=new q(this);return null==e?e=D:b(e,0,8),V(r,r.e+1,e)},I.isEqualTo=I.eq=function(e,r){return 0===w(this,new q(e,r))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(e,r){return w(this,new q(e,r))>0},I.isGreaterThanOrEqualTo=I.gte=function(e,r){return 1===(r=w(this,new q(e,r)))||0===r},I.isInteger=function(){return!!this.c&&g(this.e/c)>this.c.length-2},I.isLessThan=I.lt=function(e,r){return w(this,new q(e,r))<0},I.isLessThanOrEqualTo=I.lte=function(e,r){return-1===(r=w(this,new q(e,r)))||0===r},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return this.s>0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(e,r){var n,t,i,o,u=this,f=u.s;if(r=(e=new q(e,r)).s,!f||!r)return new q(NaN);if(f!=r)return e.s=-r,u.plus(e);var l=u.e/c,a=e.e/c,h=u.c,p=e.c;if(!l||!a){if(!h||!p)return h?(e.s=-r,e):new q(p?u:NaN);if(!h[0]||!p[0])return p[0]?(e.s=-r,e):new q(h[0]?u:3==D?-0:0)}if(l=g(l),a=g(a),h=h.slice(),f=l-a){for((o=f<0)?(f=-f,i=h):(a=l,i=p),i.reverse(),r=f;r--;i.push(0));i.reverse()}else for(t=(o=(f=h.length)<(r=p.length))?f:r,f=r=0;r0)for(;r--;h[n++]=0);for(r=s-1;t>f;){if(h[--t]=0;){for(n=0,w=O[i]%m,b=O[i]/m|0,o=i+(u=l);o>i;)n=((a=w*(a=N[--u]%m)+(f=b*a+(p=N[u]/m|0)*w)%m*m+y[o]+n)/v|0)+(f/m|0)+b*p,y[o--]=a%v;y[o]=n}return n?++t:y.splice(0,1),H(e,y,t)},I.negated=function(){var e=new q(this);return e.s=-e.s||null,e},I.plus=function(e,r){var n,t=this,i=t.s;if(r=(e=new q(e,r)).s,!i||!r)return new q(NaN);if(i!=r)return e.s=-r,t.minus(e);var o=t.e/c,u=e.e/c,f=t.c,l=e.c;if(!o||!u){if(!f||!l)return new q(i/0);if(!f[0]||!l[0])return l[0]?e:new q(f[0]?t:0*i)}if(o=g(o),u=g(u),f=f.slice(),i=o-u){for(i>0?(u=o,n=l):(i=-i,n=f),n.reverse();i--;n.push(0));n.reverse()}for((i=f.length)-(r=l.length)<0&&(n=l,l=f,f=n,r=i),i=0;r;)i=(f[--r]=f[r]+l[r]+i)/s|0,f[r]=s===f[r]?0:f[r]%s;return i&&(f=[i].concat(f),++u),H(e,f,u)},I.precision=I.sd=function(e,r){var n,t,i,o=this;if(null!=e&&e!==!!e)return b(e,1,p),null==r?r=D:b(r,0,8),V(new q(o),e,r);if(!(n=o.c))return null;if(t=(i=n.length-1)*c+1,i=n[i]){for(;i%10==0;i/=10,t--);for(i=n[0];i>=10;i/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},I.shiftedBy=function(e){return b(e,-l,l),this.times("1e"+e)},I.squareRoot=I.sqrt=function(){var e,r,t,i,o,u=this,f=u.c,s=u.s,c=u.e,l=P+4,a=new q("0.5");if(1!==s||!f||!f[0])return new q(!s||s<0&&(!f||f[0])?NaN:f?u:1/0);if(0==(s=Math.sqrt(+J(u)))||s==1/0?(((r=d(f)).length+c)%2==0&&(r+="0"),s=Math.sqrt(+r),c=g((c+1)/2)-(c<0||c%2),t=new q(r=s==1/0?"5e"+c:(r=s.toExponential()).slice(0,r.indexOf("e")+1)+c)):t=new q(s+""),t.c[0])for((s=(c=t.e)+l)<3&&(s=0);;)if(o=t,t=a.times(o.plus(n(u,o,l,1))),d(o.c).slice(0,s)===(r=d(t.c)).slice(0,s)){if(t.e0&&d>0){for(o=d%s||s,a=g.substr(0,o);o0&&(a+=l+g.slice(o)),p&&(a="-"+a)}t=h?a+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):a}return(n.prefix||"")+t+(n.suffix||"")},I.toFraction=function(e){var r,t,i,o,f,s,l,h,p,g,w,b,y=this,v=y.c;if(null!=e&&(!(l=new q(e)).isInteger()&&(l.c||1!==l.s)||l.lt(_)))throw Error(u+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+J(l));if(!v)return new q(y);for(r=new q(_),p=t=new q(_),i=h=new q(_),b=d(v),f=r.e=b.length-y.e-1,r.c[0]=a[(s=f%c)<0?c+s:s],e=!e||l.comparedTo(r)>0?f>0?r:p:l,s=L,L=1/0,l=new q(b),h.c[0]=0;g=n(l,r,0,1),1!=(o=t.plus(g.times(i))).comparedTo(e);)t=i,i=o,p=h.plus(g.times(o=p)),h=o,r=l.minus(g.times(o=r)),l=o;return o=n(e.minus(t),i,0,1),h=h.plus(o.times(p)),t=t.plus(o.times(i)),h.s=p.s=y.s,w=n(p,i,f*=2,D).minus(y).abs().comparedTo(n(h,t,f,D).minus(y).abs())<1?[p,i]:[h,t],L=s,w},I.toNumber=function(){return+J(this)},I.toPrecision=function(e,r){return null!=e&&b(e,1,p),$(this,e,r,2)},I.toString=function(e){var r,n=this,t=n.s,i=n.e;return null===i?t?(r="Infinity",t<0&&(r="-"+r)):r="NaN":(null==e?r=i<=R||i>=U?v(d(n.c),i):m(d(n.c),i,"0"):10===e?r=m(d((n=V(new q(n),P+i+1,D)).c),n.e,"0"):(b(e,2,G.length,"Base"),r=A(m(d(n.c),i,"0"),10,e,t,!0)),t<0&&n.c[0]&&(r="-"+r)),r},I.valueOf=I.toJSON=function(){return J(this)},I._isBigNumber=!0,null!=r&&q.set(r),q}()).default=n.BigNumber=n,void 0!==r&&r.exports?r.exports=n:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=n)}(this)},{}]},{},[1])(1)}); diff --git a/src/main/resources/static/js/message-inspector.js b/src/main/resources/static/js/message-inspector.js index 2b852371..9363cf0f 100644 --- a/src/main/resources/static/js/message-inspector.js +++ b/src/main/resources/static/js/message-inspector.js @@ -26,10 +26,10 @@ jQuery(document).ready(function () { linkIcon.toggleClass('fa-chevron-circle-right fa-chevron-circle-down'); if (true == body.data('expanded')) { - body.text(JSON.stringify(JSON.parse(body.text()))); + body.text(jsonBigint.stringify(jsonBigint.parse(body.text()))); body.data('expanded', false); } else { - body.text(JSON.stringify(JSON.parse(body.text()), null, 3)); + body.text(jsonBigint.stringify(jsonBigint.parse(body.text()), null, 3)); body.data('expanded', true); } }); diff --git a/src/main/resources/templates/lib/template.ftlh b/src/main/resources/templates/lib/template.ftlh index 4e498c35..9ee4c6b3 100644 --- a/src/main/resources/templates/lib/template.ftlh +++ b/src/main/resources/templates/lib/template.ftlh @@ -25,6 +25,7 @@ +