bytefun-js
Version:
ByteFun JavaScript SDK
26 lines • 1.15 MB
JavaScript
/*
* Copyright 2025-2101 广州莱聚信息科技有限公司.
*
* This software is part of the bytefun Library.
*
* Licensed under the GNU Lesser General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/lgpl-3.0.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This software includes third-party libraries:
* - jss (https://github.com/cssinjs/jss)
* Licensed under the MIT License.
* - sm-crypto (https://github.com/JuneAndGreen/sm-crypto)
* Licensed under the MIT License.
* - DOMPurify (https://github.com/cure53/DOMPurify)
* Licensed under the MPL-2.0 OR Apache-2.0 License.
*/
var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},jsbn={exports:{}};!function(e){(function(){var t;function i(e,t,i){null!=e&&("number"==typeof e?this.fromNumber(e,t,i):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new i(null)}var a="undefined"!=typeof navigator;a&&"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=function(e,t,i,n,a,r){for(var s=32767&t,o=t>>15;--r>=0;){var l=32767&this[e],d=this[e++]>>15,c=o*l+d*s;a=((l=s*l+((32767&c)<<15)+i[n]+(1073741823&a))>>>30)+(c>>>15)+o*d+(a>>>30),i[n++]=1073741823&l}return a},t=30):a&&"Netscape"!=navigator.appName?(i.prototype.am=function(e,t,i,n,a,r){for(;--r>=0;){var s=t*this[e++]+i[n]+a;a=Math.floor(s/67108864),i[n++]=67108863&s}return a},t=26):(i.prototype.am=function(e,t,i,n,a,r){for(var s=16383&t,o=t>>14;--r>=0;){var l=16383&this[e],d=this[e++]>>14,c=o*l+d*s;a=((l=s*l+((16383&c)<<14)+i[n]+a)>>28)+(c>>14)+o*d,i[n++]=268435455&l}return a},t=28),i.prototype.DB=t,i.prototype.DM=(1<<t)-1,i.prototype.DV=1<<t;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-t,i.prototype.F2=2*t-52;var r,s,o=new Array;for(r="0".charCodeAt(0),s=0;s<=9;++s)o[r++]=s;for(r="a".charCodeAt(0),s=10;s<36;++s)o[r++]=s;for(r="A".charCodeAt(0),s=10;s<36;++s)o[r++]=s;function l(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function d(e,t){var i=o[e.charCodeAt(t)];return null==i?-1:i}function c(e){var t=n();return t.fromInt(e),t}function _(e){var t,i=1;return 0!=(t=e>>>16)&&(e=t,i+=16),0!=(t=e>>8)&&(e=t,i+=8),0!=(t=e>>4)&&(e=t,i+=4),0!=(t=e>>2)&&(e=t,i+=2),0!=(t=e>>1)&&(e=t,i+=1),i}function h(e){this.m=e}function u(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function x(e,t){return e&t}function p(e,t){return e|t}function f(e,t){return e^t}function g(e,t){return e&~t}function T(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function m(){}function E(e){return e}function C(e){this.r2=n(),this.q3=n(),i.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},u.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(i.ZERO)>0&&this.m.subTo(t,t),t},u.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},u.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var i=32767&e[t],n=i*this.mpl+((i*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[i=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[i]>=e.DV;)e[i]-=e.DV,e[++i]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},u.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},u.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},i.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},i.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},i.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var a=e.length,r=!1,s=0;--a>=0;){var o=8==n?255&e[a]:d(e,a);o<0?"-"==e.charAt(a)&&(r=!0):(r=!1,0==s?this[this.t++]=o:s+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&128&e[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&i.ZERO.subTo(this,this)},i.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},i.prototype.dlShiftTo=function(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e,t.s=this.s},i.prototype.drShiftTo=function(e,t){for(var i=e;i<this.t;++i)t[i-e]=this[i];t.t=Math.max(this.t-e,0),t.s=this.s},i.prototype.lShiftTo=function(e,t){var i,n=e%this.DB,a=this.DB-n,r=(1<<a)-1,s=Math.floor(e/this.DB),o=this.s<<n&this.DM;for(i=this.t-1;i>=0;--i)t[i+s+1]=this[i]>>a|o,o=(this[i]&r)<<n;for(i=s-1;i>=0;--i)t[i]=0;t[s]=o,t.t=this.t+s+1,t.s=this.s,t.clamp()},i.prototype.rShiftTo=function(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t)t.t=0;else{var n=e%this.DB,a=this.DB-n,r=(1<<n)-1;t[0]=this[i]>>n;for(var s=i+1;s<this.t;++s)t[s-i-1]|=(this[s]&r)<<a,t[s-i]=this[s]>>n;n>0&&(t[this.t-i-1]|=(this.s&r)<<a),t.t=this.t-i,t.clamp()}},i.prototype.subTo=function(e,t){for(var i=0,n=0,a=Math.min(e.t,this.t);i<a;)n+=this[i]-e[i],t[i++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;i<this.t;)n+=this[i],t[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<e.t;)n-=e[i],t[i++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[i++]=this.DV+n:n>0&&(t[i++]=n),t.t=i,t.clamp()},i.prototype.multiplyTo=function(e,t){var n=this.abs(),a=e.abs(),r=n.t;for(t.t=r+a.t;--r>=0;)t[r]=0;for(r=0;r<a.t;++r)t[r+n.t]=n.am(0,a[r],t,r,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&i.ZERO.subTo(t,t)},i.prototype.squareTo=function(e){for(var t=this.abs(),i=e.t=2*t.t;--i>=0;)e[i]=0;for(i=0;i<t.t-1;++i){var n=t.am(i,t[i],e,2*i,0,1);(e[i+t.t]+=t.am(i+1,2*t[i],e,2*i+1,n,t.t-i-1))>=t.DV&&(e[i+t.t]-=t.DV,e[i+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1)),e.s=0,e.clamp()},i.prototype.divRemTo=function(e,t,a){var r=e.abs();if(!(r.t<=0)){var s=this.abs();if(s.t<r.t)return null!=t&&t.fromInt(0),void(null!=a&&this.copyTo(a));null==a&&(a=n());var o=n(),l=this.s,d=e.s,c=this.DB-_(r[r.t-1]);c>0?(r.lShiftTo(c,o),s.lShiftTo(c,a)):(r.copyTo(o),s.copyTo(a));var h=o.t,u=o[h-1];if(0!=u){var x=u*(1<<this.F1)+(h>1?o[h-2]>>this.F2:0),p=this.FV/x,f=(1<<this.F1)/x,g=1<<this.F2,T=a.t,b=T-h,m=null==t?n():t;for(o.dlShiftTo(b,m),a.compareTo(m)>=0&&(a[a.t++]=1,a.subTo(m,a)),i.ONE.dlShiftTo(h,m),m.subTo(o,o);o.t<h;)o[o.t++]=0;for(;--b>=0;){var E=a[--T]==u?this.DM:Math.floor(a[T]*p+(a[T-1]+g)*f);if((a[T]+=o.am(0,E,a,b,0,h))<E)for(o.dlShiftTo(b,m),a.subTo(m,a);a[T]<--E;)a.subTo(m,a)}null!=t&&(a.drShiftTo(h,t),l!=d&&i.ZERO.subTo(t,t)),a.t=h,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&i.ZERO.subTo(a,a)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},i.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.prototype.exp=function(e,t){if(e>4294967295||e<1)return i.ONE;var a=n(),r=n(),s=t.convert(this),o=_(e)-1;for(s.copyTo(a);--o>=0;)if(t.sqrTo(a,r),(e&1<<o)>0)t.mulTo(r,s,a);else{var l=a;a=r,r=l}return t.revert(a)},i.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var i,n=(1<<t)-1,a=!1,r="",s=this.t,o=this.DB-s*this.DB%t;if(s-- >0)for(o<this.DB&&(i=this[s]>>o)>0&&(a=!0,r=l(i));s>=0;)o<t?(i=(this[s]&(1<<o)-1)<<t-o,i|=this[--s]>>(o+=this.DB-t)):(i=this[s]>>(o-=t)&n,o<=0&&(o+=this.DB,--s)),i>0&&(a=!0),a&&(r+=l(i));return a?r:"0"},i.prototype.negate=function(){var e=n();return i.ZERO.subTo(this,e),e},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var i=this.t;if(0!=(t=i-e.t))return this.s<0?-t:t;for(;--i>=0;)if(0!=(t=this[i]-e[i]))return t;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(e){var t=n();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(i.ZERO)>0&&e.subTo(t,t),t},i.prototype.modPowInt=function(e,t){var i;return i=e<256||t.isEven()?new h(t):new u(t),this.exp(e,i)},i.ZERO=c(0),i.ONE=c(1),m.prototype.convert=E,m.prototype.revert=E,m.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i)},m.prototype.sqrTo=function(e,t){e.squareTo(t)},C.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=n();return e.copyTo(t),this.reduce(t),t},C.prototype.revert=function(e){return e},C.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},C.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},C.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S,w,O,y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],v=(1<<26)/y[y.length-1];function L(){var e;e=(new Date).getTime(),w[O++]^=255&e,w[O++]^=e>>8&255,w[O++]^=e>>16&255,w[O++]^=e>>24&255,O>=R&&(O-=R)}if(i.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},i.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),i=Math.pow(e,t),a=c(i),r=n(),s=n(),o="";for(this.divRemTo(a,r,s);r.signum()>0;)o=(i+s.intValue()).toString(e).substr(1)+o,r.divRemTo(a,r,s);return s.intValue().toString(e)+o},i.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),a=Math.pow(t,n),r=!1,s=0,o=0,l=0;l<e.length;++l){var c=d(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(r=!0):(o=t*o+c,++s>=n&&(this.dMultiply(a),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(o,0)),r&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(i.ONE.shiftLeft(e-1),p,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(i.ONE.shiftLeft(e-1),this);else{var a=new Array,r=7&e;a.length=1+(e>>3),t.nextBytes(a),r>0?a[0]&=(1<<r)-1:a[0]=0,this.fromString(a,256)}},i.prototype.bitwiseTo=function(e,t,i){var n,a,r=Math.min(e.t,this.t);for(n=0;n<r;++n)i[n]=t(this[n],e[n]);if(e.t<this.t){for(a=e.s&this.DM,n=r;n<this.t;++n)i[n]=t(this[n],a);i.t=this.t}else{for(a=this.s&this.DM,n=r;n<e.t;++n)i[n]=t(a,e[n]);i.t=e.t}i.s=t(this.s,e.s),i.clamp()},i.prototype.changeBit=function(e,t){var n=i.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},i.prototype.addTo=function(e,t){for(var i=0,n=0,a=Math.min(e.t,this.t);i<a;)n+=this[i]+e[i],t[i++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;i<this.t;)n+=this[i],t[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<e.t;)n+=e[i],t[i++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[i++]=n:n<-1&&(t[i++]=this.DV+n),t.t=i,t.clamp()},i.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},i.prototype.multiplyLowerTo=function(e,t,i){var n,a=Math.min(this.t+e.t,t);for(i.s=0,i.t=a;a>0;)i[--a]=0;for(n=i.t-this.t;a<n;++a)i[a+this.t]=this.am(0,e[a],i,a,0,this.t);for(n=Math.min(e.t,t);a<n;++a)this.am(0,e[a],i,a,0,t-a);i.clamp()},i.prototype.multiplyUpperTo=function(e,t,i){--t;var n=i.t=this.t+e.t-t;for(i.s=0;--n>=0;)i[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)i[this.t+n-t]=this.am(t-n,e[n],i,0,0,this.t+n-t);i.clamp(),i.drShiftTo(1,i)},i.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(0==t)i=this[0]%e;else for(var n=this.t-1;n>=0;--n)i=(t*i+this[n])%e;return i},i.prototype.millerRabin=function(e){var t=this.subtract(i.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);(e=e+1>>1)>y.length&&(e=y.length);for(var s=n(),o=0;o<e;++o){s.fromInt(y[Math.floor(Math.random()*y.length)]);var l=s.modPow(r,this);if(0!=l.compareTo(i.ONE)&&0!=l.compareTo(t)){for(var d=1;d++<a&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(i.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},i.prototype.clone=function(){var e=n();return this.copyTo(e),e},i.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var i,n=this.DB-e*this.DB%8,a=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(t[a++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),128&i&&(i|=-256),0==a&&(128&this.s)!=(128&i)&&++a,(a>0||i!=this.s)&&(t[a++]=i);return t},i.prototype.equals=function(e){return 0==this.compareTo(e)},i.prototype.min=function(e){return this.compareTo(e)<0?this:e},i.prototype.max=function(e){return this.compareTo(e)>0?this:e},i.prototype.and=function(e){var t=n();return this.bitwiseTo(e,x,t),t},i.prototype.or=function(e){var t=n();return this.bitwiseTo(e,p,t),t},i.prototype.xor=function(e){var t=n();return this.bitwiseTo(e,f,t),t},i.prototype.andNot=function(e){var t=n();return this.bitwiseTo(e,g,t),t},i.prototype.not=function(){for(var e=n(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},i.prototype.shiftLeft=function(e){var t=n();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},i.prototype.shiftRight=function(e){var t=n();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},i.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+T(this[e]);return this.s<0?this.t*this.DB:-1},i.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,i=0;i<this.t;++i)e+=b(this[i]^t);return e},i.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},i.prototype.setBit=function(e){return this.changeBit(e,p)},i.prototype.clearBit=function(e){return this.changeBit(e,g)},i.prototype.flipBit=function(e){return this.changeBit(e,f)},i.prototype.add=function(e){var t=n();return this.addTo(e,t),t},i.prototype.subtract=function(e){var t=n();return this.subTo(e,t),t},i.prototype.multiply=function(e){var t=n();return this.multiplyTo(e,t),t},i.prototype.divide=function(e){var t=n();return this.divRemTo(e,t,null),t},i.prototype.remainder=function(e){var t=n();return this.divRemTo(e,null,t),t},i.prototype.divideAndRemainder=function(e){var t=n(),i=n();return this.divRemTo(e,t,i),new Array(t,i)},i.prototype.modPow=function(e,t){var i,a,r=e.bitLength(),s=c(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,a=r<8?new h(t):t.isEven()?new C(t):new u(t);var o=new Array,l=3,d=i-1,x=(1<<i)-1;if(o[1]=a.convert(this),i>1){var p=n();for(a.sqrTo(o[1],p);l<=x;)o[l]=n(),a.mulTo(p,o[l-2],o[l]),l+=2}var f,g,T=e.t-1,b=!0,m=n();for(r=_(e[T])-1;T>=0;){for(r>=d?f=e[T]>>r-d&x:(f=(e[T]&(1<<r+1)-1)<<d-r,T>0&&(f|=e[T-1]>>this.DB+r-d)),l=i;!(1&f);)f>>=1,--l;if((r-=l)<0&&(r+=this.DB,--T),b)o[f].copyTo(s),b=!1;else{for(;l>1;)a.sqrTo(s,m),a.sqrTo(m,s),l-=2;l>0?a.sqrTo(s,m):(g=s,s=m,m=g),a.mulTo(m,o[f],s)}for(;T>=0&&!(e[T]&1<<r);)a.sqrTo(s,m),g=s,s=m,m=g,--r<0&&(r=this.DB-1,--T)}return a.revert(s)},i.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return i.ZERO;for(var n=e.clone(),a=this.clone(),r=c(1),s=c(0),o=c(0),l=c(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(r.isEven()&&s.isEven()||(r.addTo(this,r),s.subTo(e,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),t?(o.isEven()&&l.isEven()||(o.addTo(this,o),l.subTo(e,l)),o.rShiftTo(1,o)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(a)>=0?(n.subTo(a,n),t&&r.subTo(o,r),s.subTo(l,s)):(a.subTo(n,a),t&&o.subTo(r,o),l.subTo(s,l))}return 0!=a.compareTo(i.ONE)?i.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},i.prototype.pow=function(e){return this.exp(e,new m)},i.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(t.compareTo(i)<0){var n=t;t=i,i=n}var a=t.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return t;for(a<r&&(r=a),r>0&&(t.rShiftTo(r,t),i.rShiftTo(r,i));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),t.compareTo(i)>=0?(t.subTo(i,t),t.rShiftTo(1,t)):(i.subTo(t,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},i.prototype.isProbablePrime=function(e){var t,i=this.abs();if(1==i.t&&i[0]<=y[y.length-1]){for(t=0;t<y.length;++t)if(i[0]==y[t])return!0;return!1}if(i.isEven())return!1;for(t=1;t<y.length;){for(var n=y[t],a=t+1;a<y.length&&n<v;)n*=y[a++];for(n=i.modInt(n);t<a;)if(n%y[t++]==0)return!1}return i.millerRabin(e)},i.prototype.square=function(){var e=n();return this.squareTo(e),e},i.prototype.Barrett=C,null==w){var N;if(w=new Array,O=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var M=new Uint8Array(32);for(window.crypto.getRandomValues(M),N=0;N<32;++N)w[O++]=M[N]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var P=window.crypto.random(32);for(N=0;N<P.length;++N)w[O++]=255&P.charCodeAt(N)}for(;O<R;)N=Math.floor(65536*Math.random()),w[O++]=N>>>8,w[O++]=255&N;O=0,L()}function I(){if(null==S){for(L(),(S=new V).init(w),O=0;O<w.length;++O)w[O]=0;O=0}return S.next()}function A(){}function V(){this.i=0,this.j=0,this.S=new Array}A.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=I()},V.prototype.init=function(e){var t,i,n;for(t=0;t<256;++t)this.S[t]=t;for(i=0,t=0;t<256;++t)i=i+this.S[t]+e[t%e.length]&255,n=this.S[t],this.S[t]=this.S[i],this.S[i]=n;this.i=0,this.j=0},V.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var R=256;e.exports={default:i,BigInteger:i,SecureRandom:A}}).call(commonjsGlobal)}(jsbn);var jsbnExports=jsbn.exports;const{BigInteger:BigInteger$3}=jsbnExports;function bigintToValue(e){let t=e.toString(16);if("-"!==t[0])t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let i=t.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);let n="";for(let e=0;e<i;e++)n+="f";n=new BigInteger$3(n,16),t=n.xor(e).add(BigInteger$3.ONE),t=t.toString(16).replace(/^-/,"")}return t}class ASN1Object{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;let t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;return(128+t.length/2).toString(16)+t}getValue(){return""}}class DERInteger extends ASN1Object{constructor(e){super(),this.t="02",e&&(this.v=bigintToValue(e))}getValue(){return this.v}}class DERSequence extends ASN1Object{constructor(e){super(),this.t="30",this.asn1Array=e}getValue(){return this.v=this.asn1Array.map((e=>e.getEncodedHex())).join(""),this.v}}function getLenOfL(e,t){return+e[t+2]<8?1:128&+e.substr(t+2,2)}function getL(e,t){const i=getLenOfL(e,t),n=e.substr(t+2,2*i);if(!n)return-1;return(+n[0]<8?new BigInteger$3(n,16):new BigInteger$3(n.substr(2),16)).intValue()}function getStartOfV(e,t){return t+2*(getLenOfL(e,t)+1)}var asn1={encodeDer(e,t){const i=new DERInteger(e),n=new DERInteger(t);return new DERSequence([i,n]).getEncodedHex()},decodeDer(e){const t=getStartOfV(e,0),i=getStartOfV(e,t),n=getL(e,t),a=e.substr(i,2*n),r=i+a.length,s=getStartOfV(e,r),o=getL(e,r),l=e.substr(s,2*o);return{r:new BigInteger$3(a,16),s:new BigInteger$3(l,16)}}};const{BigInteger:BigInteger$2}=jsbnExports,TWO=new BigInteger$2("2"),THREE=new BigInteger$2("3");class ECFieldElementFp{constructor(e,t){this.x=t,this.q=e}equals(e){return e===this||this.q.equals(e.q)&&this.x.equals(e.x)}toBigInteger(){return this.x}negate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}add(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}subtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}multiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}divide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}}class ECPointFp{constructor(e,t,i,n){this.curve=e,this.x=t,this.y=i,this.z=null==n?BigInteger$2.ONE:n,this.zinv=null}getX(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(e){if(e===this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();if(!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(BigInteger$2.ZERO))return!1;return e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(BigInteger$2.ZERO)}isInfinity(){return null===this.x&&null===this.y||this.z.equals(BigInteger$2.ZERO)&&!this.y.toBigInteger().equals(BigInteger$2.ZERO)}negate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;const t=this.x.toBigInteger(),i=this.y.toBigInteger(),n=this.z,a=e.x.toBigInteger(),r=e.y.toBigInteger(),s=e.z,o=this.curve.q,l=t.multiply(s).mod(o),d=a.multiply(n).mod(o),c=l.subtract(d),_=i.multiply(s).mod(o),h=r.multiply(n).mod(o),u=_.subtract(h);if(BigInteger$2.ZERO.equals(c))return BigInteger$2.ZERO.equals(u)?this.twice():this.curve.infinity;const x=l.add(d),p=n.multiply(s).mod(o),f=c.square().mod(o),g=c.multiply(f).mod(o),T=p.multiply(u.square()).subtract(x.multiply(f)).mod(o),b=c.multiply(T).mod(o),m=u.multiply(f.multiply(l).subtract(T)).subtract(_.multiply(g)).mod(o),E=g.multiply(p).mod(o);return new ECPointFp(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(m),E)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const e=this.x.toBigInteger(),t=this.y.toBigInteger(),i=this.z,n=this.curve.q,a=this.curve.a.toBigInteger(),r=e.square().multiply(THREE).add(a.multiply(i.square())).mod(n),s=t.shiftLeft(1).multiply(i).mod(n),o=t.square().mod(n),l=o.multiply(e).multiply(i).mod(n),d=s.square().mod(n),c=r.square().subtract(l.shiftLeft(3)).mod(n),_=s.multiply(c).mod(n),h=r.multiply(l.shiftLeft(2).subtract(c)).subtract(d.shiftLeft(1).multiply(o)).mod(n),u=s.multiply(d).mod(n);return new ECPointFp(this.curve,this.curve.fromBigInteger(_),this.curve.fromBigInteger(h),u)}multiply(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;const t=e.multiply(THREE),i=this.negate();let n=this;for(let a=t.bitLength()-2;a>0;a--){n=n.twice();const r=t.testBit(a);r!==e.testBit(a)&&(n=n.add(r?this:i))}return n}}let ECCurveFp$1=class{constructor(e,t,i){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(i),this.infinity=new ECPointFp(this,null,null)}equals(e){return e===this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}fromBigInteger(e){return new ECFieldElementFp(this.q,e)}decodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const t=this.fromBigInteger(new BigInteger$2(e.substr(2),16));let i=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new BigInteger$2("4")).add(BigInteger$2.ONE),this.q));return i.toBigInteger().mod(TWO).equals(new BigInteger$2(e.substr(0,2),16).subtract(TWO))||(i=i.negate()),new ECPointFp(this,t,i);case 4:case 6:case 7:const n=(e.length-2)/2,a=e.substr(2,n),r=e.substr(n+2,n);return new ECPointFp(this,this.fromBigInteger(new BigInteger$2(a,16)),this.fromBigInteger(new BigInteger$2(r,16)));default:return null}}};var ec={ECPointFp:ECPointFp,ECCurveFp:ECCurveFp$1};const{BigInteger:BigInteger$1,SecureRandom:SecureRandom}=jsbnExports,{ECCurveFp:ECCurveFp2}=ec,rng=new SecureRandom,{curve:curve$1,G:G$1,n:n$1}=generateEcparam();function getGlobalCurve(){return curve$1}function generateEcparam(){const e=new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),i=new BigInteger$1("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new ECCurveFp2(e,t,i),a=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:a,n:new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function generateKeyPairHex(e,t,i){const n=(e?new BigInteger$1(e,t,i):new BigInteger$1(n$1.bitLength(),rng)).mod(n$1.subtract(BigInteger$1.ONE)).add(BigInteger$1.ONE),a=leftPad$1(n.toString(16),64),r=G$1.multiply(n);return{privateKey:a,publicKey:"04"+leftPad$1(r.getX().toBigInteger().toString(16),64)+leftPad$1(r.getY().toBigInteger().toString(16),64)}}function compressPublicKeyHex(e){if(130!==e.length)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,i=e.substr(2,t);let n="03";return new BigInteger$1(e.substr(t+2,t),16).mod(new BigInteger$1("2")).equals(BigInteger$1.ZERO)&&(n="02"),n+i}function utf8ToHex(e){const t=(e=unescape(encodeURIComponent(e))).length,i=[];for(let n=0;n<t;n++)i[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;const n=[];for(let e=0;e<t;e++){const t=i[e>>>2]>>>24-e%4*8&255;n.push((t>>>4).toString(16)),n.push((15&t).toString(16))}return n.join("")}function leftPad$1(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function arrayToHex(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function arrayToUtf8$1(e){const t=[];let i=0;for(let n=0;n<2*e.length;n+=2)t[n>>>3]|=parseInt(e[i],10)<<24-n%8*4,i++;try{const i=[];for(let n=0;n<e.length;n++){const e=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(e))}return decodeURIComponent(escape(i.join("")))}catch(e){throw new Error("Malformed UTF-8 data")}}function hexToArray$2(e){const t=[];let i=e.length;i%2!=0&&(e=leftPad$1(e,i+1)),i=e.length;for(let n=0;n<i;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function verifyPublicKey(e){const t=curve$1.decodePointHex(e);if(!t)return!1;const i=t.getX();return t.getY().square().equals(i.multiply(i.square()).add(i.multiply(curve$1.a)).add(curve$1.b))}function comparePublicKeyHex(e,t){const i=curve$1.decodePointHex(e);if(!i)return!1;const n=curve$1.decodePointHex(t);return!!n&&i.equals(n)}var utils={getGlobalCurve:getGlobalCurve,generateEcparam:generateEcparam,generateKeyPairHex:generateKeyPairHex,compressPublicKeyHex:compressPublicKeyHex,utf8ToHex:utf8ToHex,leftPad:leftPad$1,arrayToHex:arrayToHex,arrayToUtf8:arrayToUtf8$1,hexToArray:hexToArray$2,verifyPublicKey:verifyPublicKey,comparePublicKeyHex:comparePublicKeyHex};const W=new Uint32Array(68),M=new Uint32Array(64);function rotl$1(e,t){const i=31&t;return e<<i|e>>>32-i}function xor(e,t){const i=[];for(let n=e.length-1;n>=0;n--)i[n]=255&(e[n]^t[n]);return i}function P0(e){return e^rotl$1(e,9)^rotl$1(e,17)}function P1(e){return e^rotl$1(e,15)^rotl$1(e,23)}function sm3$2(e){let t=8*e.length,i=t%512;i=i>=448?512-i%448-1:448-i-1;const n=new Array((i-7)/8),a=new Array(8);for(let e=0,t=n.length;e<t;e++)n[e]=0;for(let e=0,t=a.length;e<t;e++)a[e]=0;t=t.toString(2);for(let e=7;e>=0;e--)if(t.length>8){const i=t.length-8;a[e]=parseInt(t.substr(i),2),t=t.substr(0,i)}else t.length>0&&(a[e]=parseInt(t,2),t="");const r=new Uint8Array([...e,128,...n,...a]),s=new DataView(r.buffer,0),o=r.length/64,l=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let e=0;e<o;e++){W.fill(0),M.fill(0);const t=16*e;for(let e=0;e<16;e++)W[e]=s.getUint32(4*(t+e),!1);for(let e=16;e<68;e++)W[e]=P1(W[e-16]^W[e-9]^rotl$1(W[e-3],15))^rotl$1(W[e-13],7)^W[e-6];for(let e=0;e<64;e++)M[e]=W[e]^W[e+4];const i=2043430169,n=2055708042;let a,r,o,d,c,_=l[0],h=l[1],u=l[2],x=l[3],p=l[4],f=l[5],g=l[6],T=l[7];for(let e=0;e<64;e++)c=e>=0&&e<=15?i:n,a=rotl$1(rotl$1(_,12)+p+rotl$1(c,e),7),r=a^rotl$1(_,12),o=(e>=0&&e<=15?_^h^u:_&h|_&u|h&u)+x+r+M[e],d=(e>=0&&e<=15?p^f^g:p&f|~p&g)+T+a+W[e],x=u,u=rotl$1(h,9),h=_,_=o,T=g,g=rotl$1(f,19),f=p,p=P0(d);l[0]^=_,l[1]^=h,l[2]^=u,l[3]^=x,l[4]^=p,l[5]^=f,l[6]^=g,l[7]^=T}const d=[];for(let e=0,t=l.length;e<t;e++){const t=l[e];d.push((4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t)}return d}const blockLen=64,iPad=new Uint8Array(64),oPad=new Uint8Array(64);for(let e=0;e<64;e++)iPad[e]=54,oPad[e]=92;function hmac$1(e,t){for(t.length>64&&(t=sm3$2(t));t.length<64;)t.push(0);const i=xor(t,iPad),n=xor(t,oPad),a=sm3$2([...i,...e]);return sm3$2([...n,...a])}var sm3_1$1={sm3:sm3$2,hmac:hmac$1};const{BigInteger:BigInteger}=jsbnExports,{encodeDer:encodeDer,decodeDer:decodeDer}=asn1,_=utils,sm3$1=sm3_1$1.sm3,{G:G,curve:curve,n:n}=_.generateEcparam(),C1C2C3=0;function doEncrypt(e,t,i=1){e="string"==typeof e?_.hexToArray(_.utf8ToHex(e)):Array.prototype.slice.call(e),t=_.getGlobalCurve().decodePointHex(t);const n=_.generateKeyPairHex(),a=new BigInteger(n.privateKey,16);let r=n.publicKey;r.length>128&&(r=r.substr(r.length-128));const s=t.multiply(a),o=_.hexToArray(_.leftPad(s.getX().toBigInteger().toRadix(16),64)),l=_.hexToArray(_.leftPad(s.getY().toBigInteger().toRadix(16),64)),d=_.arrayToHex(sm3$1([].concat(o,e,l)));let c=1,h=0,u=[];const x=[].concat(o,l),p=()=>{u=sm3$1([...x,c>>24&255,c>>16&255,c>>8&255,255&c]),c++,h=0};p();for(let t=0,i=e.length;t<i;t++)h===u.length&&p(),e[t]^=255&u[h++];const f=_.arrayToHex(e);return 0===i?r+f+d:r+d+f}function doDecrypt(e,t,i=1,{output:n="string"}={}){t=new BigInteger(t,16);let a=e.substr(128,64),r=e.substr(192);0===i&&(a=e.substr(e.length-64),r=e.substr(128,e.length-128-64));const s=_.hexToArray(r),o=_.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=_.hexToArray(_.leftPad(o.getX().toBigInteger().toRadix(16),64)),d=_.hexToArray(_.leftPad(o.getY().toBigInteger().toRadix(16),64));let c=1,h=0,u=[];const x=[].concat(l,d),p=()=>{u=sm3$1([...x,c>>24&255,c>>16&255,c>>8&255,255&c]),c++,h=0};p();for(let e=0,t=s.length;e<t;e++)h===u.length&&p(),s[e]^=255&u[h++];return _.arrayToHex(sm3$1([].concat(l,s,d)))===a.toLowerCase()?"array"===n?s:_.arrayToUtf8(s):"array"===n?[]:""}function doSignature(e,t,{pointPool:i,der:a,hash:r,publicKey:s,userId:o}={}){let l="string"==typeof e?_.utf8ToHex(e):_.arrayToHex(e);r&&(l=getHash(l,s=s||getPublicKeyFromPrivateKey(t),o));const d=new BigInteger(t,16),c=new BigInteger(l,16);let h=null,u=null,x=null;do{do{let e;e=i&&i.length?i.pop():getPoint(),h=e.k,u=c.add(e.x1).mod(n)}while(u.equals(BigInteger.ZERO)||u.add(h).equals(n));x=d.add(BigInteger.ONE).modInverse(n).multiply(h.subtract(u.multiply(d))).mod(n)}while(x.equals(BigInteger.ZERO));return a?encodeDer(u,x):_.leftPad(u.toString(16),64)+_.leftPad(x.toString(16),64)}function doVerifySignature(e,t,i,{der:a,hash:r,userId:s}={}){let o,l,d="string"==typeof e?_.utf8ToHex(e):_.arrayToHex(e);if(r&&(d=getHash(d,i,s)),a){const e=decodeDer(t);o=e.r,l=e.s}else o=new BigInteger(t.substring(0,64),16),l=new BigInteger(t.substring(64),16);const c=curve.decodePointHex(i),h=new BigInteger(d,16),u=o.add(l).mod(n);if(u.equals(BigInteger.ZERO))return!1;const x=G.multiply(l).add(c.multiply(u)),p=h.add(x.getX().toBigInteger()).mod(n);return o.equals(p)}function getHash(e,t,i="1234567812345678"){i=_.utf8ToHex(i);const n=_.leftPad(G.curve.a.toBigInteger().toRadix(16),64),a=_.leftPad(G.curve.b.toBigInteger().toRadix(16),64),r=_.leftPad(G.getX().toBigInteger().toRadix(16),64),s=_.leftPad(G.getY().toBigInteger().toRadix(16),64);let o,l;if(128===t.length)o=t.substr(0,64),l=t.substr(64,64);else{const e=G.curve.decodePointHex(t);o=_.leftPad(e.getX().toBigInteger().toRadix(16),64),l=_.leftPad(e.getY().toBigInteger().toRadix(16),64)}const d=_.hexToArray(i+n+a+r+s+o+l),c=4*i.length;d.unshift(255&c),d.unshift(c>>8&255);const h=sm3$1(d);return _.arrayToHex(sm3$1(h.concat(_.hexToArray(e))))}function getPublicKeyFromPrivateKey(e){const t=G.multiply(new BigInteger(e,16));return"04"+_.leftPad(t.getX().toBigInteger().toString(16),64)+_.leftPad(t.getY().toBigInteger().toString(16),64)}function getPoint(){const e=_.generateKeyPairHex(),t=curve.decodePointHex(e.publicKey);return e.k=new BigInteger(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var sm2={generateKeyPairHex:_.generateKeyPairHex,compressPublicKeyHex:_.compressPublicKeyHex,comparePublicKeyHex:_.comparePublicKeyHex,doEncrypt:doEncrypt,doDecrypt:doDecrypt,doSignature:doSignature,doVerifySignature:doVerifySignature,getPublicKeyFromPrivateKey:getPublicKeyFromPrivateKey,getPoint:getPoint,verifyPublicKey:_.verifyPublicKey};const{sm3:sm3,hmac:hmac}=sm3_1$1;function leftPad(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function ArrayToHex$1(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function hexToArray$1(e){const t=[];let i=e.length;i%2!=0&&(e=leftPad(e,i+1)),i=e.length;for(let n=0;n<i;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function utf8ToArray$1(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e.codePointAt(i);if(n<=127)t.push(n);else if(n<=2047)t.push(192|n>>>6),t.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)t.push(224|n>>>12),t.push(128|n>>>6&63),t.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw t.push(n),new Error("input is not supported");i++,t.push(240|n>>>18&28),t.push(128|n>>>12&63),t.push(128|n>>>6&63),t.push(128|63&n)}}return t}var sm3_1=function(e,t){if(e="string"==typeof e?utf8ToArray$1(e):Array.prototype.slice.call(e),t){if("hmac"!==(t.mode||"hmac"))throw new Error("invalid mode");let i=t.key;if(!i)throw new Error("invalid key");return i="string"==typeof i?hexToArray$1(i):Array.prototype.slice.call(i),ArrayToHex$1(hmac(e,i))}return ArrayToHex$1(sm3(e))};const DECRYPT=0,ROUND=32,BLOCK=16,Sbox=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],CK=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function hexToArray(e){const t=[];for(let i=0,n=e.length;i<n;i+=2)t.push(parseInt(e.substr(i,2),16));return t}function ArrayToHex(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function utf8ToArray(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e.codePointAt(i);if(n<=127)t.push(n);else if(n<=2047)t.push(192|n>>>6),t.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)t.push(224|n>>>12),t.push(128|n>>>6&63),t.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw t.push(n),new Error("input is not supported");i++,t.push(240|n>>>18&28),t.push(128|n>>>12&63),t.push(128|n>>>6&63),t.push(128|63&n)}}return t}function arrayToUtf8(e){const t=[];for(let i=0,n=e.length;i<n;i++)e[i]>=240&&e[i]<=247?(t.push(String.fromCodePoint(((7&e[i])<<18)+((63&e[i+1])<<12)+((63&e[i+2])<<6)+(63&e[i+3]))),i+=3):e[i]>=224&&e[i]<=239?(t.push(String.fromCodePoint(((15&e[i])<<12)+((63&e[i+1])<<6)+(63&e[i+2]))),i+=2):e[i]>=192&&e[i]<=223?(t.push(String.fromCodePoint(((31&e[i])<<6)+(63&e[i+1]))),i++):t.push(String.fromCodePoint(e[i]));return t.join("")}function rotl(e,t){const i=31&t;return e<<i|e>>>32-i}function byteSub(e){return(255&Sbox[e>>>24&255])<<24|(255&Sbox[e>>>16&255])<<16|(255&Sbox[e>>>8&255])<<8|255&Sbox[255&e]}function l1(e){return e^rotl(e,2)^rotl(e,10)^rotl(e,18)^rotl(e,24)}function l2(e){return e^rotl(e,13)^rotl(e,23)}function sms4Crypt(e,t,i){const n=new Array(4),a=new Array(4);for(let t=0;t<4;t++)a[0]=255&e[4*t],a[1]=255&e[4*t+1],a[2]=255&e[4*t+2],a[3]=255&e[4*t+3],n[t]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];for(let e,t=0;t<32;t+=4)e=n[1]^n[2]^n[3]^i[t+0],n[0]^=l1(byteSub(e)),e=n[2]^n[3]^n[0]^i[t+1],n[1]^=l1(byteSub(e)),e=n[3]^n[0]^n[1]^i[t+2],n[2]^=l1(byteSub(e)),e=n[0]^n[1]^n[2]^i[t+3],n[3]^=l1(byteSub(e));for(let e=0;e<16;e+=4)t[e]=n[3-e/4]>>>24&255,t[e+1]=n[3-e/4]>>>16&255,t[e+2]=n[3-e/4]>>>8&255,t[e+3]=255&n[3-e/4]}function sms4KeyExt(e,t,i){const n=new Array(4),a=new Array(4);for(let t=0;t<4;t++)a[0]=255&e[0+4*t],a[1]=255&e[1+4*t],a[2]=255&e[2+4*t],a[3]=255&e[3+4*t],n[t]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let e,i=0;i<32;i+=4)e=n[1]^n[2]^n[3]^CK[i+0],t[i+0]=n[0]^=l2(byteSub(e)),e=n[2]^n[3]^n[0]^CK[i+1],t[i+1]=n[1]^=l2(byteSub(e)),e=n[3]^n[0]^n[1]^CK[i+2],t[i+2]=n[2]^=l2(byteSub(e)),e=n[0]^n[1]^n[2]^CK[i+3],t[i+3]=n[3]^=l2(byteSub(e));if(0===i)for(let e,i=0;i<16;i++)e=t[i],t[i]=t[31-i],t[31-i]=e}function sm4(e,t,i,{padding:n="pkcs#7",mode:a,iv:r=[],output:s="string"}={}){if("cbc"===a&&("string"==typeof r&&(r=hexToArray(r)),16!==r.length))throw new Error("iv is invalid");if("string"==typeof t&&(t=hexToArray(t)),16!==t.length)throw new Error("key is invalid");if(e="string"==typeof e?0!==i?utf8ToArray(e):hexToArray(e):[...e],("pkcs#5"===n||"pkcs#7"===n)&&0!==i){const t=16-e.length%16;for(let i=0;i<t;i++)e.push(t)}const o=new Array(32);sms4KeyExt(t,o,i);const l=[];let d=r,c=e.length,_=0;for(;c>=16;){const t=e.slice(_,_+16),n=new Array(16);if("cbc"===a)for(let e=0;e<16;e++)0!==i&&(t[e]^=d[e]);sms4Crypt(t,n,o);for(let e=0;e<16;e++)"cbc"===a&&0===i&&(n[e]^=d[e]),l[_+e]=n[e];"cbc"===a&&(d=0!==i?n:t),c-=16,_+=16}if(("pkcs#5"===n||"pkcs#7"===n)&&0===i){const e=l.length,t=l[e-1];for(let i=1;i<=t;i++)if(l[e-i]!==t)throw new Error("padding is invalid");l.splice(e-t,t)}return"array"!==s?0!==i?ArrayToHex(l):arrayToUtf8(l):l}var sm4_1={encrypt:(e,t,i)=>sm4(e,t,1,i),decrypt:(e,t,i)=>sm4(e,t,0,i)},src={sm2:sm2,sm3:sm3_1,sm4:sm4_1};const _0x231115=(e,t)=>e<<t|e>>>32-t,_0x553635=(e,t)=>{const i=2147483648&e,n=2147483648&t,a=1073741824&e,r=1073741824&t,s=(1073741823&e)+(1073741823&t);return a&r?2147483648^s^i^n:a|r?1073741824&s?3221225472^s^i^n:1073741824^s^i^n:s^i^n},_0x4d2c4b=(e,t,i)=>e&t|~e&i,_0x2f5c3a=(e,t,i)=>e&i|t&~i,_0x16b9e9=(e,t,i)=>e^t^i,_0x464c0f=(e,t,i)=>t^(e|~i),_0x3b8d11=(e,t,i,n,a,r,s)=>(e=_0x553635(e,_0x553635(_0x553635(_0x4d2c4b(t,i,n),a),s)),_0x553635(_0x231115(e,r),t)),_0x356ee9=(e,t,i,n,a,r,s)=>(e=_0x553635(e,_0x553635(_0x553635(_0x2f5c3a(t,i,n),a),s)),_0x553635(_0x231115(e,r),t)),_0xdea146=(e,t,i,n,a,r,s)=>(e=_0x553635(e,_0x553635(_0x553635(_0x16b9e9(t,i,n),a),s)),_0x553635(_0x231115(e,r),t)),_0x5b7867=(e,t,i,n,a,r,s)=>(e=_0x553635(e,_0x553635(_0x553635(_0x464c0f(t,i,n),a),s)),_0x553635(_0x231115(e,r),t)),_0x1c0f74=e=>{let t;const i=e.length,n=i+8,a=16*((n-n%64)/64+1),r=new Array(a-1);let s=0,o=0;for(;o<i;)t=(o-o%4)/4,s=o%4*8,r[t]=r[t]|e.charCodeAt(o)<<s,o++;return t=(o-o%4)/4,s=o%4*8,r[t]=r[t]|128<<s,r[a-2]=i<<3,r[a-1]=i>>>29,r},_0x5b4576=e=>{let t,i="",n="";for(let a=0;a<=3;a++)t=e>>>8*a&255,n="0"+t.toString(16),i+=n.substr(n.length-2,2);return i},_0x2396cf=e=>{e=e.replace(/\r\n/g,"\n");let t="";for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},_0x5afe0e=e=>{let t,i,n,a,r,s,o,l,d,c;for(e=_0x2396cf(e),t=_0x1c0f74(e),o=1732584193,l=4023233417,d=2562383102,c=271733878,i=0;i<t.length;i+=16)n=o,a=l,r=d,s=c,o=_0x3b8d11(o,l,d,c,t[i+0],7,3614090360),c=_0x3b8d11(c,o,l,d,t[i+1],12,3905402710),d=_0x3b8d11(d,c,o,l,t[i+2],17,606105819),l=_0x3b8d11(l,d,c,o,t[i+3],22,3250441966),o=_0x3b8d11(o,l,d,c,t[i+4],7,4118548399),c=_0x3b8d11(c,o,l,d,t[i+5],12,1200080426),d=_0x3b8d11(d,c,o,l,t[i+6],17,2821735955),l=_0x3b8d11(l,d,c,o,t[i+7],22,4249261313),o=_0x3b8d11(o,l,d,c,t[i+8],7,1770035416),c=_0x3b8d11(c,o,l,d,t[i+9],12,2336552879),d=_0x3b8d11(d,c,o,l,t[i+10],17,4294925233),l=_0x3b8d11(l,d,c,o,t[i+11],22,2304563134),o=_0x3b8d11(o,l,d,c,t[i+12],7,1804603682),c=_0x3b8d11(c,o,l,d,t[i+13],12,4254626195),d=_0x3b8d11(d,c,o,l,t[i+14],17,2792965006),l=_0x3b8d11(l,d,c,o,t[i+15],22,1236535329),o=_0x356ee9(o,l,d,c,t[i+1],5,4129170786),c=_0x356ee9(c,o,l,d,t[i+6],9,3225465664),d=_0x356ee9(d,c,o,l,t[i+11],14,643717713),l=_0x356ee9(l,d,c,o,t[i+0],20,3921069994),o=_0x356ee9(o,l,d,c,t[i+5],5,3593408605),c=_0x356ee9(c,o,l,d,t[i+10],9,38016083),d=_0x356ee9(d,c,o,l,t[i+15],14,3634488961),l=_0x356ee9(l,d,c,o,t[i+4],20,3889429448),o=_0x356ee9(o,l,d,c,t[i+9],5,568446438),c=_0x356ee9(c,o,l,d,t[i+14],9,3275163606),d=_0x356ee9(d,c,o,l,t[i+3],14,4107603335),l=_0x356ee9(l,d,c,o,t[i+8],20,1163531501),o=_0x356ee9(o,l,d,c,t[i+13],5,2850285829),c=_0x356ee9(c,o,l,d,t[i+2],9,4243563512),d=_0x356ee9(d,c,o,l,t[i+7],14,1735328473),l=_0x356ee9(l,d,c,o,t[i+12],20,2368359562),o=_0xdea146(o,l,d,c,t[i+5],4,4294588738),c=_0xdea146(c,o,l,d,t[i+8],11,2272392833),d=_0xdea146(d,c,o,l,t[i+11],16,1839030562),l=_0xdea146(l,d,c,o,t[i+14],23,4259657740),o=_0xdea146(o,l,d,c,t[i+1],4,2763975236),c=_0xdea146(c,o,l,d,t[i+4],11,1272893353),d=_0xdea146(d,c,o,l,t[i+7],16,4139469664),l=_0xdea146(l,d,c,o,t[i+10],23,3200236656),o=_0xdea146(o,l,d,c,t[i+13],4,681279174),c=_0xdea146(c,o,l,d,t[i+0],11,3936430074),d=_0xdea146(d,c,o,l,t[i+3],16,3572445317),l=_0xdea146(l,d,c,o,t[i+6],23,76029189),o=_0xdea146(o,l,d,c,t[i+9],4,3654602809),c=_0xdea146(c,o,l,d,t[i+12],11,3873151461),d=_0xdea146(d,c,o,l,t[i+15],16,530742520),l=_0xdea146(l,d,c,o,t[i+2],23,3299628645),o=_0x5b7867(o,l,d,c,t[i+0],6,4096336452),c=_0x5b7867(c,o,l,d,t[i+7],10,1126891415),d=_0x5b7867(d,c,o,l,t[i+14],15,2878612391),l=_0x5b7867(l,d,c,o,t[i+5],21,4237533241),o=_0x5b7867(o,l,d,c,t[i+12],6,1700485571),c=_0x5b7867(c,o,l,d,t[i+3],10,2399980690),d=_0x5b7867(d,c,o,l,t[i+10],15,4293915773),l=_0x5b7867(l,d,c,o,t[i+1],21,2240044497),o=_0x5b7867(o,l,d,c,t[i+8],6,1873313359),c=_0x5b7867(c,o,l,d,t[i+15],10,4264355552),d=_0x5b7867(d,c,o,l,t[i+6],15,2734768916),l=_0x5b7867(l,d,c,o,t[i+13],21,1309151649),o=_0x5b7867(o,l,d,c,t[i+4],6,4149444226),c=_0x5b7867(c,o,l,d,t[i+11],10,3174756917),d=_0x5b7867(d,c,o,l,t[i+2],15,718787259),l=_0x5b7867(l,d,c,o,t[i+9],21,3951481745),o=_0x553635(o,n),l=_0x553635(l,a),d=_0x553635(d,r),c=_0x553635(c,s);return(_0x5b4576(o)+_0x5b4576(l)+_0x5b4576(d)+_0x5b4576(c)).toLowerCase()};class _0x1b676b{static getCanvasShowH(){return this.canvasH-this.bottomBarH-this.statusBarH}}class _0x9203b0{constructor(){this.layoutX=0,this.layoutY=0,this.layoutW=0,this.layoutH=0,this.minW=0,this.minH=0,this.maxW=0,this.maxH=0,this.alignParent=100,this.padding=0,this.paddingLeft=0,this.paddingRight=0,this.paddingTop=0,this.paddingBottom=0,this.margin=0,this.marginLeft=0,this.marginRight=0,this.marginTop=0,this.marginBottom=0,this.border=0,this.borderLeft=0,this.borderRight=0,this.borderTop=0,this.borderBottom=0}cloneModelLayoutParam(e){this.alignParent=e.alignParent,this.padding=e.padding,this.paddingLeft=e.paddingLeft,this.paddingRight=e.paddingRight,this.paddingTop=e.paddingTop,this.paddingBottom=e.paddingBottom,this.margin=e.margin,this.marginLeft=e.marginLeft,this.marginRight=e.marginRight,this.marginTop=e.marginTop,this.marginBottom=e.marginBottom,this.border=e.border,this.borderLeft=e.borderLeft,this.borderRight=e.borderRight,this.borderTop=e.borderTop,this.borderBottom=e.borderBottom}}class _0x478c40{constructor(e){this.valueList=[],e&&this.valueList.push(e)}append(e){return this.valueList.push(e),this}toString(){return this.valueList.join("")}}var ALIGN_PARENT=(e=>(e[e.LEFT_CENTER=0]="LEFT_CENTER",e[e.LEFT_TOP=1]="LEFT_TOP",e[e.LEFT_BOTTOM=2]="LEFT_BOTTOM",e[e.RIGHT_CENTER=3]="RIGHT_CENTER",e[e.RIGHT_TOP=4]="RIGHT_TOP",e[e.RIGHT_BOTTOM=5]="RIGHT_BOTTOM",e[e.CENTER=6]="CENTER",e[e.TOP_CENTER=7]="TOP_CENTER",e[e.BOTTOM_CENTER=8]="BOTTOM_CENTER",e[e.HORIZONTAL_CENTER=9]="HORIZONTAL_CENTER",e[e.VERTICAL_CENTER=10]="VERTICAL_CENTER",e[e.NONE=100]="NONE",e))(ALIGN_PARENT||{});class _0x1bcdf9{static getVarName(e){return""+this.var+e.substring(0,1).toUpperCase()+e.substring(1)}}_0x1bcdf9.FAIL="fail",_0x1bcdf9.SUC="suc",_0x1bcdf9.ALICE_HAO="$alice_",_0x1bcdf9.FUN_HAO="$fun_",_0x1bcdf9.VAR_HAO="$var_",_0x1bcdf9.ALICE_EID_INPUT="$eid_",_0x1bcdf9.KONG_GE=" ",_0x1bcdf9.NONE="",_0x1bcdf9.ASSETS_FILE=".ap",_0x1bcdf9.noCache=0,_0x1bcdf9.verUpdateCache=1,_0x1bcdf9.WENHAO="?",_0x1bcdf9.DENG="=",_0x1bcdf9.HE="&",_0x1bcdf9.key="key",_0x1bcdf9.val="val",_0x1bcdf9.var="var",_0x1bcdf9.varKey="varKey",_0x1bcdf9.DATA_TYPE_OBJECT=1,_0x1bcdf9.DATA_TYPE_ARRAY=2,_0x1bcdf9.UNUSE_COLOR="",_0x1bcdf9.UNUSE_INT=-923582351,_0x1bcdf9.TRANSPARENT_COLOR="#00000000",_0x1bcdf9.DEF_COLOR="#000000",_0x1bcdf9.DEF_NUMBER=0,_0x1bcdf9.SHARE_SCENE_HY=0,_0x1bcdf9.SHARE_SCENE_PYQ=1,_0x1bcdf9.SHARE_SCENE_SC=2;class _0x1bbe8d{constructor(e){if(this.keys=[],this.values=[],e){const t=Object.keys(e);for(const i of t)this.keys.push(i),this.values.push(e[i])}}put(e,t){const i=this.keys.indexOf(e);-1===i?(this.keys.push(e),this.values.push(t)):this.values[i]=t}get(e){const t=this.keys.indexOf(e);return-1===t?void 0:this.values[t]}getKey(e){return this.keys[e]}getVal(e){return this.values[e]}has(e){return this.keys.includes(e)}remove(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),this.values.splice(t,1))}putAll(e){const t=e.getKeys(),i=e.getValues();for(let e=0;e<t.length;e++)this.put(t[e],i[e])}size(){return this.keys.length}clear(){this.keys=[],this.values=[]}getKeys(){return this.keys}getValues(){return this.values}clone(){const e=new _0x1bbe8d;for(let t=0;t<this.keys.length;t++)e.put(this.keys[t],this.values[t]);return e}containsKey(e){return this.keys.includes(e)}isEmpty(){return 0==this.keys.length&&0===this.values.length}forEach(e){for(let t=0;t<this.keys.length;t++){const i=e(this.values[t],this.keys[t]);if(!1===i)break;if(!0!==i&&void 0!==i)return i}}toObject(){const e={};for(let t=0;t<this.keys.length;t++)e[this.keys[t]]=this.values[t];return e}toJSONString(){const e={};return this.forEach(((t,i)=>{e[i]=t})),JSON.stringify(e)}*[Symbol.iterator](){for(let e=0;e<this.keys.length;e++)yield[this.keys[e],this.values[e]]}toUrlParams(){const e=new _0x478c40;if(this.size()>0){let t=0;this.forEach(((i,n)=>{t++,e.append(n),e.append(_0x1bcdf9.DENG),e.append(i),t<this.size()&&e.append(_0x1bcdf9.HE)}))}return e.toString()}}const _0x437014=class e{static encrypt(t){return src.sm4.encrypt(t,e.key,{mode:"cbc",iv:e.iv,padding:"pkcs#7"})}static decrypt(t){return src.sm4.decrypt(t,e.key,{mode:"cbc",iv:e.iv,padding:"pkcs#7"})}};_0x437014.key="8e57ceb3d52f37ba5caee980377958a2",_0x437014.iv="fedcba98765432100123456789abcdef";let _0x5692b7=_0x437014;const _0x3b8e83=class e{static toParams(t){let i=t;return e.notNullOrUndefined(t)&&(t instanceof _0x1bbe8d?i=t.toObject():Array.isArray(t)?i=t:"string"==typeof t&&(i=String(t))),i}static isNumber(e){re