@ivujs/i-utils 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -19
- package/dist/cjs/index.cjs +5 -400
- package/dist/es/index.d.ts +1 -26
- package/dist/es/index.mjs +2 -55
- package/dist/index.d.ts +11 -2851
- package/dist/lib/index.full.umd.js +33 -14240
- package/dist/lib/index.full.umd.min.js +2 -64
- package/dist/lib/index.full.umd.min.js.map +1 -1
- package/dist/resolver/auto-imports.cjs +1 -337
- package/dist/resolver/auto-imports.mjs +1 -337
- package/dist/resolver/index.cjs +1 -1
- package/dist/resolver/index.d.ts +1 -1
- package/dist/resolver/index.mjs +1 -1
- package/package.json +6 -18
- package/dist/cjs/ID-card/index.cjs +0 -87
- package/dist/cjs/array/index.cjs +0 -470
- package/dist/cjs/clipboard/index.cjs +0 -128
- package/dist/cjs/color/index.cjs +0 -193
- package/dist/cjs/constants/date.cjs +0 -178
- package/dist/cjs/constants/id-card.cjs +0 -52
- package/dist/cjs/constants/keycode.cjs +0 -117
- package/dist/cjs/constants/lang.cjs +0 -13
- package/dist/cjs/constants/math.cjs +0 -13
- package/dist/cjs/constants/regexp.cjs +0 -53
- package/dist/cjs/constants/sort.cjs +0 -15
- package/dist/cjs/cookie/index.cjs +0 -70
- package/dist/cjs/crypto/aes/aes.cjs +0 -480
- package/dist/cjs/crypto/aes/index.cjs +0 -27
- package/dist/cjs/crypto/base32/base32.cjs +0 -357
- package/dist/cjs/crypto/base32/index.cjs +0 -41
- package/dist/cjs/crypto/base64/base64.cjs +0 -348
- package/dist/cjs/crypto/base64/index.cjs +0 -59
- package/dist/cjs/crypto/des/des.cjs +0 -257
- package/dist/cjs/crypto/des/index.cjs +0 -28
- package/dist/cjs/crypto/md5/index.cjs +0 -24
- package/dist/cjs/crypto/md5/md5.cjs +0 -897
- package/dist/cjs/crypto/sha/sha1/index.cjs +0 -24
- package/dist/cjs/crypto/sha/sha1/sha1.cjs +0 -529
- package/dist/cjs/crypto/sha/sha256/index.cjs +0 -43
- package/dist/cjs/crypto/sha/sha256/sha256.cjs +0 -595
- package/dist/cjs/crypto/sha/sha3/index.cjs +0 -41
- package/dist/cjs/crypto/sha/sha3/sha3.cjs +0 -624
- package/dist/cjs/crypto/sha/sha512/index.cjs +0 -81
- package/dist/cjs/crypto/sha/sha512/sha512.cjs +0 -950
- package/dist/cjs/crypto/sm/lib/asn1.cjs +0 -149
- package/dist/cjs/crypto/sm/lib/ec.cjs +0 -315
- package/dist/cjs/crypto/sm/lib/jsbn.cjs +0 -1608
- package/dist/cjs/crypto/sm/lib/sm3.cjs +0 -158
- package/dist/cjs/crypto/sm/lib/utils.cjs +0 -170
- package/dist/cjs/crypto/sm/sm2/index.cjs +0 -112
- package/dist/cjs/crypto/sm/sm2/sm2.cjs +0 -231
- package/dist/cjs/crypto/sm/sm3/index.cjs +0 -15
- package/dist/cjs/crypto/sm/sm3/sm3.cjs +0 -93
- package/dist/cjs/crypto/sm/sm4/index.cjs +0 -27
- package/dist/cjs/crypto/sm/sm4/sm4.cjs +0 -327
- package/dist/cjs/crypto/tea/index.cjs +0 -25
- package/dist/cjs/crypto/tea/tea.cjs +0 -187
- package/dist/cjs/date/index.cjs +0 -1266
- package/dist/cjs/desensitized/index.cjs +0 -75
- package/dist/cjs/device/index.cjs +0 -151
- package/dist/cjs/dom/index.cjs +0 -129
- package/dist/cjs/file/index.cjs +0 -333
- package/dist/cjs/function/index.cjs +0 -69
- package/dist/cjs/keycode/index.cjs +0 -33
- package/dist/cjs/math/index.cjs +0 -278
- package/dist/cjs/number/index.cjs +0 -31
- package/dist/cjs/object/index.cjs +0 -272
- package/dist/cjs/pagination/index.cjs +0 -131
- package/dist/cjs/random/index.cjs +0 -24
- package/dist/cjs/regexp/index.cjs +0 -100
- package/dist/cjs/storage/index.cjs +0 -11
- package/dist/cjs/storage/localStorage.cjs +0 -37
- package/dist/cjs/storage/sessionStorage.cjs +0 -37
- package/dist/cjs/string/index.cjs +0 -358
- package/dist/cjs/url/index.cjs +0 -258
- package/dist/cjs/validate/index.cjs +0 -468
- package/dist/cjs/weapp/index.cjs +0 -142
- package/dist/es/ID-card/index.d.ts +0 -31
- package/dist/es/ID-card/index.mjs +0 -81
- package/dist/es/array/index.d.ts +0 -203
- package/dist/es/array/index.mjs +0 -441
- package/dist/es/clipboard/index.d.ts +0 -29
- package/dist/es/clipboard/index.mjs +0 -122
- package/dist/es/color/index.d.ts +0 -52
- package/dist/es/color/index.mjs +0 -183
- package/dist/es/constants/date.d.ts +0 -174
- package/dist/es/constants/date.mjs +0 -176
- package/dist/es/constants/id-card.d.ts +0 -43
- package/dist/es/constants/id-card.mjs +0 -50
- package/dist/es/constants/index.d.ts +0 -7
- package/dist/es/constants/keycode.d.ts +0 -103
- package/dist/es/constants/keycode.mjs +0 -115
- package/dist/es/constants/lang.d.ts +0 -4
- package/dist/es/constants/lang.mjs +0 -11
- package/dist/es/constants/math.d.ts +0 -4
- package/dist/es/constants/math.mjs +0 -11
- package/dist/es/constants/regexp.d.ts +0 -24
- package/dist/es/constants/regexp.mjs +0 -51
- package/dist/es/constants/sort.d.ts +0 -5
- package/dist/es/constants/sort.mjs +0 -13
- package/dist/es/cookie/index.d.ts +0 -29
- package/dist/es/cookie/index.mjs +0 -64
- package/dist/es/crypto/aes/aes.d.ts +0 -156
- package/dist/es/crypto/aes/aes.mjs +0 -478
- package/dist/es/crypto/aes/index.d.ts +0 -16
- package/dist/es/crypto/aes/index.mjs +0 -24
- package/dist/es/crypto/base32/base32.d.ts +0 -3
- package/dist/es/crypto/base32/base32.mjs +0 -353
- package/dist/es/crypto/base32/index.d.ts +0 -24
- package/dist/es/crypto/base32/index.mjs +0 -36
- package/dist/es/crypto/base64/base64.d.ts +0 -5
- package/dist/es/crypto/base64/base64.mjs +0 -342
- package/dist/es/crypto/base64/index.d.ts +0 -36
- package/dist/es/crypto/base64/index.mjs +0 -52
- package/dist/es/crypto/des/des.d.ts +0 -52
- package/dist/es/crypto/des/des.mjs +0 -255
- package/dist/es/crypto/des/index.d.ts +0 -14
- package/dist/es/crypto/des/index.mjs +0 -25
- package/dist/es/crypto/index.d.ts +0 -8
- package/dist/es/crypto/md5/index.d.ts +0 -13
- package/dist/es/crypto/md5/index.mjs +0 -21
- package/dist/es/crypto/md5/md5.d.ts +0 -144
- package/dist/es/crypto/md5/md5.mjs +0 -894
- package/dist/es/crypto/sha/index.d.ts +0 -4
- package/dist/es/crypto/sha/sha1/index.d.ts +0 -13
- package/dist/es/crypto/sha/sha1/index.mjs +0 -21
- package/dist/es/crypto/sha/sha1/sha1.d.ts +0 -2
- package/dist/es/crypto/sha/sha1/sha1.mjs +0 -526
- package/dist/es/crypto/sha/sha256/index.d.ts +0 -26
- package/dist/es/crypto/sha/sha256/index.mjs +0 -38
- package/dist/es/crypto/sha/sha256/sha256.d.ts +0 -4
- package/dist/es/crypto/sha/sha256/sha256.mjs +0 -590
- package/dist/es/crypto/sha/sha3/index.d.ts +0 -24
- package/dist/es/crypto/sha/sha3/index.mjs +0 -36
- package/dist/es/crypto/sha/sha3/sha3.d.ts +0 -4
- package/dist/es/crypto/sha/sha3/sha3.mjs +0 -619
- package/dist/es/crypto/sha/sha512/index.d.ts +0 -52
- package/dist/es/crypto/sha/sha512/index.mjs +0 -72
- package/dist/es/crypto/sha/sha512/sha512.d.ts +0 -8
- package/dist/es/crypto/sha/sha512/sha512.mjs +0 -941
- package/dist/es/crypto/sm/index.d.ts +0 -3
- package/dist/es/crypto/sm/lib/asn1.d.ts +0 -12
- package/dist/es/crypto/sm/lib/asn1.mjs +0 -146
- package/dist/es/crypto/sm/lib/ec.d.ts +0 -126
- package/dist/es/crypto/sm/lib/ec.mjs +0 -312
- package/dist/es/crypto/sm/lib/jsbn.d.ts +0 -198
- package/dist/es/crypto/sm/lib/jsbn.mjs +0 -1605
- package/dist/es/crypto/sm/lib/sm3.d.ts +0 -5
- package/dist/es/crypto/sm/lib/sm3.mjs +0 -155
- package/dist/es/crypto/sm/lib/utils.d.ts +0 -53
- package/dist/es/crypto/sm/lib/utils.mjs +0 -158
- package/dist/es/crypto/sm/sm2/index.d.ts +0 -71
- package/dist/es/crypto/sm/sm2/index.mjs +0 -101
- package/dist/es/crypto/sm/sm2/sm2.d.ts +0 -34
- package/dist/es/crypto/sm/sm2/sm2.mjs +0 -220
- package/dist/es/crypto/sm/sm3/index.d.ts +0 -7
- package/dist/es/crypto/sm/sm3/index.mjs +0 -13
- package/dist/es/crypto/sm/sm3/sm3.d.ts +0 -1
- package/dist/es/crypto/sm/sm3/sm3.mjs +0 -91
- package/dist/es/crypto/sm/sm4/index.d.ts +0 -16
- package/dist/es/crypto/sm/sm4/index.mjs +0 -24
- package/dist/es/crypto/sm/sm4/sm4.d.ts +0 -2
- package/dist/es/crypto/sm/sm4/sm4.mjs +0 -324
- package/dist/es/crypto/tea/index.d.ts +0 -14
- package/dist/es/crypto/tea/index.mjs +0 -22
- package/dist/es/crypto/tea/tea.d.ts +0 -69
- package/dist/es/crypto/tea/tea.mjs +0 -185
- package/dist/es/date/index.d.ts +0 -547
- package/dist/es/date/index.mjs +0 -1179
- package/dist/es/desensitized/index.d.ts +0 -38
- package/dist/es/desensitized/index.mjs +0 -69
- package/dist/es/device/index.d.ts +0 -67
- package/dist/es/device/index.mjs +0 -137
- package/dist/es/dom/index.d.ts +0 -57
- package/dist/es/dom/index.mjs +0 -119
- package/dist/es/file/index.d.ts +0 -93
- package/dist/es/file/index.mjs +0 -317
- package/dist/es/function/index.d.ts +0 -23
- package/dist/es/function/index.mjs +0 -65
- package/dist/es/keycode/index.d.ts +0 -12
- package/dist/es/keycode/index.mjs +0 -30
- package/dist/es/math/index.d.ts +0 -66
- package/dist/es/math/index.mjs +0 -268
- package/dist/es/number/index.d.ts +0 -14
- package/dist/es/number/index.mjs +0 -28
- package/dist/es/object/index.d.ts +0 -83
- package/dist/es/object/index.mjs +0 -259
- package/dist/es/pagination/index.d.ts +0 -34
- package/dist/es/pagination/index.mjs +0 -125
- package/dist/es/random/index.d.ts +0 -15
- package/dist/es/random/index.mjs +0 -21
- package/dist/es/regexp/index.d.ts +0 -63
- package/dist/es/regexp/index.mjs +0 -89
- package/dist/es/storage/index.d.ts +0 -7
- package/dist/es/storage/index.mjs +0 -9
- package/dist/es/storage/localStorage.d.ts +0 -21
- package/dist/es/storage/localStorage.mjs +0 -32
- package/dist/es/storage/sessionStorage.d.ts +0 -21
- package/dist/es/storage/sessionStorage.mjs +0 -32
- package/dist/es/string/index.d.ts +0 -121
- package/dist/es/string/index.mjs +0 -339
- package/dist/es/url/index.d.ts +0 -118
- package/dist/es/url/index.mjs +0 -240
- package/dist/es/validate/index.d.ts +0 -228
- package/dist/es/validate/index.mjs +0 -431
- package/dist/es/weapp/index.d.ts +0 -57
- package/dist/es/weapp/index.mjs +0 -131
- package/dist/lib/index.full.cjs.js +0 -14264
- package/dist/lib/index.full.cjs.min.js +0 -69
- package/dist/lib/index.full.cjs.min.js.map +0 -1
- package/dist/lib/index.full.esm.js +0 -13910
- package/dist/lib/index.full.esm.min.js +0 -64
- package/dist/lib/index.full.esm.min.js.map +0 -1
|
@@ -1,69 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @ivujs/i-utils v1.1.
|
|
2
|
+
* @ivujs/i-utils v1.1.18
|
|
3
3
|
* Copyright 2021-2026, <gao911222@163.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).iUtils={})}(this,(function(t){"use strict";const e={DESC:0,ASC:1,RANDOM:2},r={ROUND:0,ROUND_FLOOR:1},n={CH:/^[\u4E00-\u9FA5]+$/,EN:/^[a-zA-Z]$/,LOWER_CASE:/^[a-z]+$/,UPPER_CASE:/^[A-Z]+$/,CH_NAME:/^[\u4e00-\u9fa5·]{2,16}$/,EN_NAME:/(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)/,NUMBER:/^([-+])?\d+(\.\d+)?$/,INTEGER:/^(0|[1-9][0-9]*|-[1-9][0-9]*)$/,DECIMAL:/^\d+\.\d+$/,INT_OR_FLOAT:/(^[1-9][0-9]*$)|(^[1-9][0-9]*\.[0-9]{1,2}$)|(^0\.[0-9]{1,2}$)|(^0$)/,MOBILE:/^(?:(?:\+|00)86)?1[1-9]\d{9}$/,PHONE:/^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,EMAIL:/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,ID_CARD:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,ID_CARD15:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)/,ID_CARD18:/(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,BANK_CARD:/^[1-9]\d{9,29}$/,POST_CODE:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,URL:/^(?:(ftp|https?|ftps):\/\/)?((?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2,6})?)?(?::(\d+))?(?:\/([^\?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,IP:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,IP6:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,EXTERNAL:/^(http?:|https?:|mailto:|tel:)/},i={AM_PM:{zh:{AM:"上午",PM:"下午"},en:{AM:"AM",PM:"PM"}},WEEK:{zh:{FULL:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],SHORT:["周日","周一","周二","周三","周四","周五","周六"],MINI:["日","一","二","三","四","五","六"]},en:{FULL:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SHORT:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MINI:["Su","Mo","Tu","We","Th","Fr","Sa"]}},MONTH:{zh:{FULL:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],SHORT:["一","二","三","四","五","六","七","八","九","十","十一","十二"]},en:{FULL:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},QUARTER:{zh:{FULL:["第一季度","第二季度","第三季度","第四季度"],SHORT:["一季度","二季度","三季度","四季度"],MINI:["一","二","三","四"]},en:{FULL:["quarter 1st","quarter 2nd","quarter 3rd","quarter 4th"],SHORT:["Q1th","Q2nd","Q3rd","Q4th"],MINI:["Q1","Q2","Q3","Q4"]}},OVER_TIME:{zh:{YEAR:"年",MONTH:"月",DATE:"日",HOUR:"时",MINUTE:"分",SECOND:"秒",MILLISECOND:"毫秒",DAY:"天",QUARTER:"季度"},en:{YEAR:"year",MONTH:"month",DATE:"date",HOUR:"hour",MINUTE:"minute",SECOND:"second",MILLISECOND:"millisecond",DAY:"day",QUARTER:"quarter"}},PASS_TIME:{zh:{YEAR:"年前",MONTH:"个月前",DAY:"天前",BEFORE_YESTERDAY:"前天",YESTERDAY:"昨天",TODAY:"今天",HOUR:"小时前",MINUTE:"分钟前",JUST:"刚刚"},en:{YEAR:" year ago",MONTH:" month ago",DAY:" day ago",BEFORE_YESTERDAY:"before yesterday",YESTERDAY:" yesterday",TODAY:" today",HOUR:" hour ago",MINUTE:" minute ago",JUST:" just"}},HOLIDAY:{zh:["元旦","春节","清明节","劳动节","端午节","中秋节","国庆节"],en:["New Year‘s Day","Spring Festival","Tomb Sweeping Day","Labor Day","Dragon Boat Festival","Mid-Autumn Day","National Day"]},ZODIAC:{zh:["摩羯座","水瓶座","双鱼座","白羊座","金牛座","双子座","巨蟹座","狮子座","处女座","天秤座","天蝎座","射手座"],en:["Capricorn","Aquarius","Pisces","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius"]},CHINESE_ZODIAC:{zh:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],en:["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"]},HEAVENLY_STEMS:{zh:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],en:["Jia","Yi","Bing","Ding","Wu","Ji","Geng","Xin","Ren","Gui"]},EARTHLY_BRANCHES:{zh:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],en:["Zi","Chou","Yin","Mao","Chen","Si","Wu","Wei","Shen","You","Xu","Hai"]}},o={8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",42:"Print Screen",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Windows",93:"Right Click",96:"Numpad 0",97:"Numpad 1",98:"Numpad 2",99:"Numpad 3",100:"Numpad 4",101:"Numpad 5",102:"Numpad 6",103:"Numpad 7",104:"Numpad 8",105:"Numpad 9",106:"Numpad *",107:"Numpad +",109:"Numpad -",110:"Numpad .",111:"Numpad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Num Lock",145:"Scroll Lock",182:"My Computer",183:"My Calculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={PROVINCE:{11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"},SEX:{MAN:"男",WOMAN:"女"}};function a(t){if(t.indexOf("_")>0){let e=t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}if(t.indexOf("-")>0){let e=t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toUpperCase()+t.slice(1):t}function h(t){return Number.isInteger(t)}function u(t){return"String"===Object.prototype.toString.call(t).slice(8,-1)}function f(t){return"Array"===Object.prototype.toString.call(t).slice(8,-1)}function c(t){return"Object"===Object.prototype.toString.call(t).slice(8,-1)}function l(t){return"Date"===Object.prototype.toString.call(t).slice(8,-1)}function p(t){return null==t||"undefined"===t||"null"===t||0===t||!1===t||d(t)}function d(t){return window.isNaN(t)||f(t)||null==t||""===t}function g(t){return null==t||""===t}function y(t){return!!g(t)||("string"==typeof t||Array.isArray(t)?0===t.length:"object"==typeof t&&(t instanceof Map||t instanceof Set?0===t.size:!(t instanceof Date||t instanceof RegExp||t instanceof Error)&&0===Object.keys(t).length))}function w(t){return y(t)||/^\s*$/.test(t)}function m(t){return void 0===t}function b(t,e=10){return g(t)?0:Number.parseInt(t,e)}function A(t){return t.reduce((function(t,e){return t+e}))}function v(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t}function S(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,t.splice(e,1,r)[0])}return t}function D(t){let e=Object.create(null);for(let[r,n]of t)e[r]=n;return e}function E(t){let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e}function M(t){let e=t.match(/^(\w+)\[(\d+)]$/);return{propName:e&&e[1]||void 0,propIndex:e?parseInt(e[2],10):void 0,isArray:!!e}}function F(t=new Date){let e=t.getFullYear();return e%100!=0&&e%4==0||e%400==0}function C(t,e=new Date){return t.getTime()-e.getTime()<0}function T(t,e=new Date){return t.getTime()-e.getTime()>0}function B(t,e){return["getFullYear","getMonth","getDate"].every((r=>t[r]()===e[r]()))}function O(t=new Date,e="yyyy-MM-dd"){return z(t,e)}function I(t=new Date){return{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),milliseconds:t.getMilliseconds()}}function R(t=new Date){return[7,1,2,3,4,5,6][t.getDay()]}function _(t=new Date){return t.getDate()}function x(t=new Date){return Math.ceil((t-new Date(t.getFullYear().toString()))/864e5)+1}function N(t=new Date){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function U(t=new Date){return F(t)?366:365}function P(t){let e=0,r=z(t).split("-"),n=Number(r[0]),i=Number(r[1]),o=Number(r[2]),s=new Date,a=s.getFullYear(),h=s.getMonth()+1,u=s.getDate(),f=a-n;if(f>0){let t=h-i;e=0===t?u-o<0?f-1:f:t<0?f-1:f}return e}function k(t=new Date,e=1){return t.setDate(t.getDate()+e),t}function z(t,e="yyyy-MM-dd",r="zh"){if(g(t))return"";if(u(t))t=j(t);else if(l(t));else if(h(t)&&13===String(t).length)t=new Date(t);else{if(!h(t)||10!==String(t).length)return console.error("Not supported date format!"),t;t=new Date(1e3*t)}let n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours()%12==0?12:t.getHours()%12,"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"S+":t.getMilliseconds(),"a+":t.getHours()<12?"am":"pm","A+":t.getHours()<12?"AM":"PM","E+":t.getDay(),"Q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()},o=new RegExp(/(y+)/g);o.test(e)&&(e=e.replace(o,(function(e,r){return(t.getFullYear()+"").substring(4-r.length)})));let s=new RegExp(/((b+)|(A+))/g);s.test(e)&&(e=e.replace(s,(function(e,n){return n.length>1?t.getHours()<12?i.AM_PM[r].AM:i.AM_PM[r].PM:n===n.toLowerCase()?t.getHours()<12?i.AM_PM.en.AM.toLowerCase():i.AM_PM.en.PM.toLowerCase():t.getHours()<12?i.AM_PM.en.AM:i.AM_PM.en.PM})));let a=new RegExp(/(E+)/g);a.test(e)&&(e=e.replace(a,(function(e,n){return 1===n.length?i.WEEK[r].MINI[t.getDay()]:2===n.length?i.WEEK[r].SHORT[t.getDay()]:i.WEEK[r].FULL[t.getDay()]})));let f=new RegExp(/(Q+)/g);f.test(e)&&(e=e.replace(f,(function(e,n){return 1===n.length?i.QUARTER[r].MINI[Math.floor((t.getMonth()+3)/3)-1]:2===n.length?i.QUARTER[r].SHORT[Math.floor((t.getMonth()+3)/3)-1]:i.QUARTER[r].FULL[Math.floor((t.getMonth()+3)/3)-1]})));for(let t in n){let r=new RegExp("("+t+")");r.test(e)&&(e=e.replace(r,(function(e,r){return 1===r.length?n[t]:2===r.length?("00"+n[t]).substring((""+n[t]).length):("000"+n[t]).substring((""+n[t]).length)})))}return e}function j(t){return g(t)?null:u(t)?new Date(t.replace(/-/g,"/")):h(t)&&13===String(t).length?new Date(t):h(t)&&10===String(t).length?new Date(1e3*t):(console.error("Not supported date format!"),t)}function L(t){return(t=t.toString())[1]?t:"0"+t}function $(t,e){return e?$(e,t%e):t}function H(t,e){return new RegExp(e).test(t)}function q(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.type,i=t.size,o=n.split("/")[1];r(new File([t],`${Date.now()}.${o}`,{type:n,size:i,name:`${e}.${o}`,lastModified:Date.now(),lastModifiedDate:new Date}))}catch(t){console.error(t),n(t)}}))}function Y(t){return new Promise(((e,r)=>{const n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t)},n.readAsText(t)}))}function W(t){if(t>255)throw"'"+t+"'' is greater than 255(0xff);";return("0"+Number(t).toString(16)).slice(-2)}
|
|
7
|
-
/*
|
|
8
|
-
* [hi-base64]{@link https://github.com/emn178/hi-base64}
|
|
9
|
-
*
|
|
10
|
-
* @version 0.3.1
|
|
11
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
12
|
-
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
13
|
-
* @license MIT
|
|
14
|
-
*/
|
|
15
|
-
var V="not a UTF-8 string",J="object"==typeof window,K=J?window:{};K.HI_BASE64_NO_WINDOW&&(J=!1);var Z=!J&&"object"==typeof self,Q=!K.HI_BASE64_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Q?K=global:Z&&(K=self);for(var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),G={},tt=0;tt<64;++tt)G[X[tt]]=tt;G["-"]=62,G._=63;var et,rt,nt=function(t){return t.split("=")[0].replace(/[\r\n]/g,"")},it=function(t){for(var e,r,n,i,o=[],s=0,a=(t=nt(t)).length,h=0,u=a>>2<<2;h<u;)e=G[t.charAt(h++)],r=G[t.charAt(h++)],n=G[t.charAt(h++)],i=G[t.charAt(h++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2),o[s++]=255&(n<<6|i);var f=a-u;return 2===f?(e=G[t.charAt(h++)],r=G[t.charAt(h++)],o[s++]=255&(e<<2|r>>>4)):3===f&&(e=G[t.charAt(h++)],r=G[t.charAt(h++)],n=G[t.charAt(h++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2)),o},ot=function(t){for(var e,r,n,i=[],o=t.length,s=0,a=3*parseInt(o/3);s<a;)e=t[s++],r=t[s++],n=t[s++],i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[63&(r<<2|n>>>6)],X[63&n]);var h=o-a;return 1===h?(e=t[s],i.push(X[e>>>2],X[e<<4&63],"==")):2===h&&(e=t[s++],r=t[s],i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[r<<2&63],"=")),i.join("")},st=K.btoa,at=K.atob;if(Q){var ht=require("buffer").Buffer;st=function(t){return ht.from(t,"ascii").toString("base64")},ot=et=function(t){return ht.from(t).toString("base64")},at=function(t){return ht.from(t,"base64").toString("ascii")},rt=function(t){return ht.from(t,"base64").toString()}}else st?(et=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(String.fromCharCode(n)):n<2048?e.push(String.fromCharCode(192|n>>6),String.fromCharCode(128|63&n)):n<55296||n>=57344?e.push(String.fromCharCode(224|n>>12),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e.push(String.fromCharCode(240|n>>18),String.fromCharCode(128|n>>12&63),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)))}return st(e.join(""))},rt=function(t){var e=at(t.replace(/-/g,"+").replace(/_/g,"/"));if(!/[^\x00-\x7F]/.test(e))return e;for(var r,n,i=[],o=0,s=e.length,a=0;o<s;)if((r=e.charCodeAt(o++))<=127)i.push(String.fromCharCode(r));else{if(r>191&&r<=223)n=31&r,a=1;else if(r<=239)n=15&r,a=2;else{if(!(r<=247))throw new Error(V);n=7&r,a=3}for(var h=0;h<a;++h){if((r=e.charCodeAt(o++))<128||r>191)throw new Error(V);n<<=6,n+=63&r}if(n>=55296&&n<=57343)throw new Error(V);if(n>1114111)throw new Error(V);n<=65535?i.push(String.fromCharCode(n)):(n-=65536,i.push(String.fromCharCode(55296+(n>>10)),String.fromCharCode(56320+(1023&n))))}return i.join("")}):(st=function(t){for(var e,r,n,i=[],o=t.length,s=0,a=3*parseInt(o/3);s<a;)e=t.charCodeAt(s++),r=t.charCodeAt(s++),n=t.charCodeAt(s++),i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[63&(r<<2|n>>>6)],X[63&n]);var h=o-a;return 1===h?(e=t.charCodeAt(s),i.push(X[e>>>2],X[e<<4&63],"==")):2===h&&(e=t.charCodeAt(s++),r=t.charCodeAt(s),i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[r<<2&63],"=")),i.join("")},et=function(t){for(var e,r,n,i=[],o=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e[e.length]=n:n<2048?(e[e.length]=192|n>>6,e[e.length]=128|63&n):n<55296||n>=57344?(e[e.length]=224|n>>12,e[e.length]=128|n>>6&63,e[e.length]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e[e.length]=240|n>>18,e[e.length]=128|n>>12&63,e[e.length]=128|n>>6&63,e[e.length]=128|63&n)}return e}(t),s=o.length,a=0,h=3*parseInt(s/3);a<h;)e=o[a++],r=o[a++],n=o[a++],i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[63&(r<<2|n>>>6)],X[63&n]);var u=s-h;return 1===u?(e=o[a],i.push(X[e>>>2],X[e<<4&63],"==")):2===u&&(e=o[a++],r=o[a],i.push(X[e>>>2],X[63&(e<<4|r>>>4)],X[r<<2&63],"=")),i.join("")},at=function(t){for(var e,r,n,i,o=[],s=t.length,a=0,h=s>>2<<2;a<h;)e=G[t.charAt(a++)],r=G[t.charAt(a++)],n=G[t.charAt(a++)],i=G[t.charAt(a++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)),String.fromCharCode(255&(n<<6|i)));var u=s-h;return 2===u?(e=G[t.charAt(a++)],r=G[t.charAt(a++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)))):3===u&&(e=G[t.charAt(a++)],r=G[t.charAt(a++)],n=G[t.charAt(a++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)))),o.join("")},rt=function(t){for(var e,r,n=[],i=it(t),o=i.length,s=0,a=0;s<o;)if((e=i[s++])<=127)n.push(String.fromCharCode(e));else{if(e>191&&e<=223)r=31&e,a=1;else if(e<=239)r=15&e,a=2;else{if(!(e<=247))throw new Error(V);r=7&e,a=3}for(var h=0;h<a;++h){if((e=i[s++])<128||e>191)throw new Error(V);r<<=6,r+=63&e}if(r>=55296&&r<=57343)throw new Error(V);if(r>1114111)throw new Error(V);r<=65535?n.push(String.fromCharCode(r)):(r-=65536,n.push(String.fromCharCode(55296+(r>>10)),String.fromCharCode(56320+(1023&r))))}return n.join("")});var ut=function(t,e){var r="string"!=typeof t;return r&&t.constructor===K.ArrayBuffer&&(t=new Uint8Array(t)),r?ot(t):/[^\x00-\x7F]/.test(t)?et(t):st(t)};const ft=et,ct=rt;var lt=Object.freeze({__proto__:null,decode:function(t){return e=nt(e=t),r?at(e):rt(e);var e,r},decodeAsBytes:function(t){return it(t)},encode:function(t){return ut(t)},encodeAsBytes:function(t){return ut(t)},utf8Decode:function(t){return ct(t)},utf8Encode:function(t){return ft(t)}}),pt="object"==typeof window?window:{};
|
|
16
|
-
/*
|
|
17
|
-
* [hi-base32]{@link https://github.com/emn178/hi-base32}
|
|
18
|
-
*
|
|
19
|
-
* @version 0.5.0
|
|
20
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
21
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
22
|
-
* @license MIT
|
|
23
|
-
*/!pt.HI_BASE32_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node&&(pt=global);var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),gt={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},yt=[0,0,0,0,0,0,0,0],wt=function(t,e){e.length>10&&(e="..."+e.substr(-10));var r=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+t+" bytes: "+e+" <-");throw r.position=t,r},mt=function(t){if(""===t)return[];if(!/^[A-Z2-7=]+$/.test(t))throw new Error("Invalid base32 characters");for(var e,r,n,i,o,s,a,h,u=[],f=0,c=(t=t.replace(/=/g,"")).length,l=0,p=c>>3<<3;l<p;)e=gt[t.charAt(l++)],r=gt[t.charAt(l++)],n=gt[t.charAt(l++)],i=gt[t.charAt(l++)],o=gt[t.charAt(l++)],s=gt[t.charAt(l++)],a=gt[t.charAt(l++)],h=gt[t.charAt(l++)],u[f++]=255&(e<<3|r>>>2),u[f++]=255&(r<<6|n<<1|i>>>4),u[f++]=255&(i<<4|o>>>1),u[f++]=255&(o<<7|s<<2|a>>>3),u[f++]=255&(a<<5|h);var d=c-p;return 2===d?(e=gt[t.charAt(l++)],r=gt[t.charAt(l++)],u[f++]=255&(e<<3|r>>>2)):4===d?(e=gt[t.charAt(l++)],r=gt[t.charAt(l++)],n=gt[t.charAt(l++)],i=gt[t.charAt(l++)],u[f++]=255&(e<<3|r>>>2),u[f++]=255&(r<<6|n<<1|i>>>4)):5===d?(e=gt[t.charAt(l++)],r=gt[t.charAt(l++)],n=gt[t.charAt(l++)],i=gt[t.charAt(l++)],o=gt[t.charAt(l++)],u[f++]=255&(e<<3|r>>>2),u[f++]=255&(r<<6|n<<1|i>>>4),u[f++]=255&(i<<4|o>>>1)):7===d&&(e=gt[t.charAt(l++)],r=gt[t.charAt(l++)],n=gt[t.charAt(l++)],i=gt[t.charAt(l++)],o=gt[t.charAt(l++)],s=gt[t.charAt(l++)],a=gt[t.charAt(l++)],u[f++]=255&(e<<3|r>>>2),u[f++]=255&(r<<6|n<<1|i>>>4),u[f++]=255&(i<<4|o>>>1),u[f++]=255&(o<<7|s<<2|a>>>3)),u},bt=function(t,e){var r="string"!=typeof t;return r&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),r?function(t){for(var e,r,n,i,o,s="",a=t.length,h=0,u=5*parseInt(a/5);h<u;)e=t[h++],r=t[h++],n=t[h++],i=t[h++],o=t[h++],s+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[31&(n<<1|i>>>7)]+dt[i>>>2&31]+dt[31&(i<<3|o>>>5)]+dt[31&o];var f=a-u;return 1===f?(e=t[h],s+=dt[e>>>3]+dt[e<<2&31]+"======"):2===f?(e=t[h++],r=t[h],s+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[r<<4&31]+"===="):3===f?(e=t[h++],r=t[h++],n=t[h],s+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[n<<1&31]+"==="):4===f&&(e=t[h++],r=t[h++],n=t[h++],i=t[h],s+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[31&(n<<1|i>>>7)]+dt[i>>>2&31]+dt[i<<3&31]+"="),s}(t):function(t){var e,r,n,i,o,s,a,h=!1,u="",f=0,c=0,l=t.length;if(""===t)return u;do{for(yt[0]=yt[5],yt[1]=yt[6],yt[2]=yt[7],a=c;f<l&&a<5;++f)(s=t.charCodeAt(f))<128?yt[a++]=s:s<2048?(yt[a++]=192|s>>6,yt[a++]=128|63&s):s<55296||s>=57344?(yt[a++]=224|s>>12,yt[a++]=128|s>>6&63,yt[a++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++f)),yt[a++]=240|s>>18,yt[a++]=128|s>>12&63,yt[a++]=128|s>>6&63,yt[a++]=128|63&s);c=a-5,f===l&&++f,f>l&&a<6&&(h=!0),e=yt[0],a>4?(r=yt[1],n=yt[2],i=yt[3],o=yt[4],u+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[31&(n<<1|i>>>7)]+dt[i>>>2&31]+dt[31&(i<<3|o>>>5)]+dt[31&o]):1===a?u+=dt[e>>>3]+dt[e<<2&31]+"======":2===a?(r=yt[1],u+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[r<<4&31]+"===="):3===a?(r=yt[1],n=yt[2],u+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[n<<1&31]+"==="):(r=yt[1],n=yt[2],i=yt[3],u+=dt[e>>>3]+dt[31&(e<<2|r>>>6)]+dt[r>>>1&31]+dt[31&(r<<4|n>>>4)]+dt[31&(n<<1|i>>>7)]+dt[i>>>2&31]+dt[i<<3&31]+"=")}while(!h);return u}(t)},At=function(t,e){return function(t){for(var e,r,n="",i=t.length,o=0,s=0;o<i;)if((e=t[o++])<=127)n+=String.fromCharCode(e);else{e>191&&e<=223?(r=31&e,s=1):e<=239?(r=15&e,s=2):e<=247?(r=7&e,s=3):wt(o,n);for(var a=0;a<s;++a)((e=t[o++])<128||e>191)&&wt(o,n),r<<=6,r+=63&e;r>=55296&&r<=57343&&wt(o,n),r>1114111&&wt(o,n),r<=65535?n+=String.fromCharCode(r):(r-=65536,n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+(1023&r)))}return n}(mt(t))};var vt=Object.freeze({__proto__:null,decode:function(t){return At(t)},decodeAsBytes:function(t){return mt(t)},encode:function(t){return bt(t)},encodeAsBytes:function(t){return bt(t)}}),St="input is invalid type",Dt="object"==typeof window,Et=Dt?window:{};
|
|
24
|
-
/**
|
|
25
|
-
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
26
|
-
*
|
|
27
|
-
* @namespace md5
|
|
28
|
-
* @version 0.8.3
|
|
29
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
30
|
-
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
31
|
-
* @license MIT
|
|
32
|
-
*/Et.JS_MD5_NO_WINDOW&&(Dt=!1);var Mt=!Dt&&"object"==typeof self,Ft=!Et.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Ft?Et=global:Mt&&(Et=self);var Ct,Tt=!Et.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Bt="0123456789abcdef".split(""),Ot=[128,32768,8388608,-2147483648],It=[0,8,16,24],Rt=["hex","array","digest","buffer","arrayBuffer","base64"],_t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),xt=[];if(Tt){var Nt=new ArrayBuffer(68);Ct=new Uint8Array(Nt),xt=new Uint32Array(Nt)}var Ut=Array.isArray;!Et.JS_MD5_NO_NODE_JS&&Ut||(Ut=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var Pt=ArrayBuffer.isView;!Tt||!Et.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&Pt||(Pt=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var kt=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(St);if(Tt&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!Ut(t)&&!Pt(t))throw new Error(St);return[t,!1]},zt=function(t){return function(e){return new $t(!0).update(e)[t]()}},jt=function(t){var e,r=require("crypto"),n=require("buffer").Buffer;e=n.from&&!Et.JS_MD5_NO_BUFFER_FROM?n.from:function(t){return new n(t)};return function(i){if("string"==typeof i)return r.createHash("md5").update(i,"utf8").digest("hex");if(null==i)throw new Error(St);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),Ut(i)||Pt(i)||i.constructor===n?r.createHash("md5").update(e(i)).digest("hex"):t(i)}},Lt=function(t){return function(e,r){return new Ht(e,!0).update(r)[t]()}};function $t(t){if(t)xt[0]=xt[16]=xt[1]=xt[2]=xt[3]=xt[4]=xt[5]=xt[6]=xt[7]=xt[8]=xt[9]=xt[10]=xt[11]=xt[12]=xt[13]=xt[14]=xt[15]=0,this.blocks=xt,this.buffer8=Ct;else if(Tt){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function Ht(t,e){var r,n=kt(t);if(t=n[0],n[1]){var i,o=[],s=t.length,a=0;for(r=0;r<s;++r)(i=t.charCodeAt(r))<128?o[a++]=i:i<2048?(o[a++]=192|i>>>6,o[a++]=128|63&i):i<55296||i>=57344?(o[a++]=224|i>>>12,o[a++]=128|i>>>6&63,o[a++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),o[a++]=240|i>>>18,o[a++]=128|i>>>12&63,o[a++]=128|i>>>6&63,o[a++]=128|63&i);t=o}t.length>64&&(t=new $t(!0).update(t).array());var h=[],u=[];for(r=0;r<64;++r){var f=t[r]||0;h[r]=92^f,u[r]=54^f}$t.call(this,e),this.update(u),this.oKeyPad=h,this.inner=!0,this.sharedMemory=e}$t.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=kt(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length,a=this.blocks,h=this.buffer8;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)if(Tt)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?h[n++]=r:r<2048?(h[n++]=192|r>>>6,h[n++]=128|63&r):r<55296||r>=57344?(h[n++]=224|r>>>12,h[n++]=128|r>>>6&63,h[n++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),h[n++]=240|r>>>18,h[n++]=128|r>>>12&63,h[n++]=128|r>>>6&63,h[n++]=128|63&r);else for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?a[n>>>2]|=r<<It[3&n++]:r<2048?(a[n>>>2]|=(192|r>>>6)<<It[3&n++],a[n>>>2]|=(128|63&r)<<It[3&n++]):r<55296||r>=57344?(a[n>>>2]|=(224|r>>>12)<<It[3&n++],a[n>>>2]|=(128|r>>>6&63)<<It[3&n++],a[n>>>2]|=(128|63&r)<<It[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),a[n>>>2]|=(240|r>>>18)<<It[3&n++],a[n>>>2]|=(128|r>>>12&63)<<It[3&n++],a[n>>>2]|=(128|r>>>6&63)<<It[3&n++],a[n>>>2]|=(128|63&r)<<It[3&n++]);else if(Tt)for(n=this.start;o<s&&n<64;++o)h[n++]=t[o];else for(n=this.start;o<s&&n<64;++o)a[n>>>2]|=t[o]<<It[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},$t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=Ot[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},$t.prototype.hash=function(){var t,e,r,n,i,o,s=this.blocks;this.first?e=((e=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879|0)^(r=((r=(-271733879^(n=((n=(-1732584194^2004318071&t)+s[1]-117830708)<<12|n>>>20)+t|0)&(-271733879^t))+s[2]-1126478375)<<17|r>>>15)+n|0)&(n^t))+s[3]-1316259209)<<22|e>>>10)+r|0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((n=this.h3)^e&(r^n))+s[0]-680876936)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[1]-389564586)<<12|n>>>20)+t|0)&(t^e))+s[2]+606105819)<<17|r>>>15)+n|0)&(n^t))+s[3]-1044525330)<<22|e>>>10)+r|0),e=((e+=((t=((t+=(n^e&(r^n))+s[4]-176418897)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[5]+1200080426)<<12|n>>>20)+t|0)&(t^e))+s[6]-1473231341)<<17|r>>>15)+n|0)&(n^t))+s[7]-45705983)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[8]+1770035416)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[9]-1958414417)<<12|n>>>20)+t|0)&(t^e))+s[10]-42063)<<17|r>>>15)+n|0)&(n^t))+s[11]-1990404162)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[12]+1804603682)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[13]-40341101)<<12|n>>>20)+t|0)&(t^e))+s[14]-1502002290)<<17|r>>>15)+n|0)&(n^t))+s[15]+1236535329)<<22|e>>>10)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[1]-165796510)<<5|t>>>27)+e|0)^e))+s[6]-1069501632)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[11]+643717713)<<14|r>>>18)+n|0)^n))+s[0]-373897302)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[5]-701558691)<<5|t>>>27)+e|0)^e))+s[10]+38016083)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[15]-660478335)<<14|r>>>18)+n|0)^n))+s[4]-405537848)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[9]+568446438)<<5|t>>>27)+e|0)^e))+s[14]-1019803690)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[3]-187363961)<<14|r>>>18)+n|0)^n))+s[8]+1163531501)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[13]-1444681467)<<5|t>>>27)+e|0)^e))+s[2]-51403784)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[7]+1735328473)<<14|r>>>18)+n|0)^n))+s[12]-1926607734)<<20|e>>>12)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[5]-378558)<<4|t>>>28)+e|0))+s[8]-2022574463)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[11]+1839030562)<<16|r>>>16)+n|0))+s[14]-35309556)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[1]-1530992060)<<4|t>>>28)+e|0))+s[4]+1272893353)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[7]-155497632)<<16|r>>>16)+n|0))+s[10]-1094730640)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[13]+681279174)<<4|t>>>28)+e|0))+s[0]-358537222)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[3]-722521979)<<16|r>>>16)+n|0))+s[6]+76029189)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[9]-640364487)<<4|t>>>28)+e|0))+s[12]-421815835)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[15]+530742520)<<16|r>>>16)+n|0))+s[2]-995338651)<<23|e>>>9)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[0]-198630844)<<6|t>>>26)+e|0)|~r))+s[7]+1126891415)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[14]-1416354905)<<15|r>>>17)+n|0)|~t))+s[5]-57434055)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[12]+1700485571)<<6|t>>>26)+e|0)|~r))+s[3]-1894986606)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[10]-1051523)<<15|r>>>17)+n|0)|~t))+s[1]-2054922799)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[8]+1873313359)<<6|t>>>26)+e|0)|~r))+s[15]-30611744)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[6]-1560198380)<<15|r>>>17)+n|0)|~t))+s[13]+1309151649)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[4]-145523070)<<6|t>>>26)+e|0)|~r))+s[11]-1120210379)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[2]+718787259)<<15|r>>>17)+n|0)|~t))+s[9]-343485551)<<21|e>>>11)+r|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=r-1732584194|0,this.h3=n+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+r|0,this.h3=this.h3+n|0)},$t.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return Bt[t>>>4&15]+Bt[15&t]+Bt[t>>>12&15]+Bt[t>>>8&15]+Bt[t>>>20&15]+Bt[t>>>16&15]+Bt[t>>>28&15]+Bt[t>>>24&15]+Bt[e>>>4&15]+Bt[15&e]+Bt[e>>>12&15]+Bt[e>>>8&15]+Bt[e>>>20&15]+Bt[e>>>16&15]+Bt[e>>>28&15]+Bt[e>>>24&15]+Bt[r>>>4&15]+Bt[15&r]+Bt[r>>>12&15]+Bt[r>>>8&15]+Bt[r>>>20&15]+Bt[r>>>16&15]+Bt[r>>>28&15]+Bt[r>>>24&15]+Bt[n>>>4&15]+Bt[15&n]+Bt[n>>>12&15]+Bt[n>>>8&15]+Bt[n>>>20&15]+Bt[n>>>16&15]+Bt[n>>>28&15]+Bt[n>>>24&15]},$t.prototype.toString=$t.prototype.hex,$t.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255]},$t.prototype.array=$t.prototype.digest,$t.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},$t.prototype.buffer=$t.prototype.arrayBuffer,$t.prototype.base64=function(){for(var t,e,r,n="",i=this.array(),o=0;o<15;)t=i[o++],e=i[o++],r=i[o++],n+=_t[t>>>2]+_t[63&(t<<4|e>>>4)]+_t[63&(e<<2|r>>>6)]+_t[63&r];return t=i[o],n+=_t[t>>>2]+_t[t<<4&63]+"=="},Ht.prototype=new $t,Ht.prototype.finalize=function(){if($t.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();$t.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),$t.prototype.finalize.call(this)}};const qt=function(){var t=zt("hex");Ft&&(t=jt(t)),t.create=function(){return new $t},t.update=function(e){return t.create().update(e)};for(var e=0;e<Rt.length;++e){var r=Rt[e];t[r]=zt(r)}return t}(),Yt=function(){var t=Lt("hex");t.create=function(t){return new Ht(t)},t.update=function(e,r){return t.create(e).update(r)};for(var e=0;e<Rt.length;++e){var r=Rt[e];t[r]=Lt(r)}return t}();
|
|
33
|
-
/*
|
|
34
|
-
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
|
35
|
-
*
|
|
36
|
-
* @version 0.7.0
|
|
37
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
38
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
39
|
-
* @license MIT
|
|
40
|
-
*/
|
|
41
|
-
var Wt="input is invalid type",Vt="object"==typeof window,Jt=Vt?window:{};Jt.JS_SHA1_NO_WINDOW&&(Vt=!1);var Kt=!Vt&&"object"==typeof self,Zt=!Jt.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Zt?Jt=global:Kt&&(Jt=self);var Qt=!Jt.JS_SHA1_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Xt="0123456789abcdef".split(""),Gt=[-2147483648,8388608,32768,128],te=[24,16,8,0],ee=["hex","array","digest","arrayBuffer"],re=[],ne=Array.isArray;!Jt.JS_SHA1_NO_NODE_JS&&ne||(ne=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var ie=ArrayBuffer.isView;!Qt||!Jt.JS_SHA1_NO_ARRAY_BUFFER_IS_VIEW&&ie||(ie=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var oe=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Wt);if(Qt&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!ne(t)&&!ie(t))throw new Error(Wt);return[t,!1]},se=function(t){return function(e){return new ue(!0).update(e)[t]()}},ae=function(t){var e,r=require("crypto"),n=require("buffer").Buffer;e=n.from&&!Jt.JS_SHA1_NO_BUFFER_FROM?n.from:function(t){return new n(t)};return function(i){if("string"==typeof i)return r.createHash("sha1").update(i,"utf8").digest("hex");if(null==i)throw new Error(Wt);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),ne(i)||ie(i)||i.constructor===n?r.createHash("sha1").update(e(i)).digest("hex"):t(i)}},he=function(t){return function(e,r){return new fe(e,!0).update(r)[t]()}};function ue(t){t?(re[0]=re[16]=re[1]=re[2]=re[3]=re[4]=re[5]=re[6]=re[7]=re[8]=re[9]=re[10]=re[11]=re[12]=re[13]=re[14]=re[15]=0,this.blocks=re):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function fe(t,e){var r,n=oe(t);if(t=n[0],n[1]){var i,o=[],s=t.length,a=0;for(r=0;r<s;++r)(i=t.charCodeAt(r))<128?o[a++]=i:i<2048?(o[a++]=192|i>>>6,o[a++]=128|63&i):i<55296||i>=57344?(o[a++]=224|i>>>12,o[a++]=128|i>>>6&63,o[a++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),o[a++]=240|i>>>18,o[a++]=128|i>>>12&63,o[a++]=128|i>>>6&63,o[a++]=128|63&i);t=o}t.length>64&&(t=new ue(!0).update(t).array());var h=[],u=[];for(r=0;r<64;++r){var f=t[r]||0;h[r]=92^f,u[r]=54^f}ue.call(this,e),this.update(u),this.oKeyPad=h,this.inner=!0,this.sharedMemory=e}ue.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=oe(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length||0,a=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,this.block=a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?a[n>>>2]|=r<<te[3&n++]:r<2048?(a[n>>>2]|=(192|r>>>6)<<te[3&n++],a[n>>>2]|=(128|63&r)<<te[3&n++]):r<55296||r>=57344?(a[n>>>2]|=(224|r>>>12)<<te[3&n++],a[n>>>2]|=(128|r>>>6&63)<<te[3&n++],a[n>>>2]|=(128|63&r)<<te[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),a[n>>>2]|=(240|r>>>18)<<te[3&n++],a[n>>>2]|=(128|r>>>12&63)<<te[3&n++],a[n>>>2]|=(128|r>>>6&63)<<te[3&n++],a[n>>>2]|=(128|63&r)<<te[3&n++]);else for(n=this.start;o<s&&n<64;++o)a[n>>>2]|=t[o]<<te[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},ue.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=Gt[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},ue.prototype.hash=function(){var t,e,r=this.h0,n=this.h1,i=this.h2,o=this.h3,s=this.h4,a=this.blocks;for(t=16;t<80;++t)e=a[t-3]^a[t-8]^a[t-14]^a[t-16],a[t]=e<<1|e>>>31;for(t=0;t<20;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n&i|~n&o)+s+1518500249+a[t]|0)<<5|s>>>27)+(r&(n=n<<30|n>>>2)|~r&i)+o+1518500249+a[t+1]|0)<<5|o>>>27)+(s&(r=r<<30|r>>>2)|~s&n)+i+1518500249+a[t+2]|0)<<5|i>>>27)+(o&(s=s<<30|s>>>2)|~o&r)+n+1518500249+a[t+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|~i&s)+r+1518500249+a[t+4]|0,i=i<<30|i>>>2;for(;t<40;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n^i^o)+s+1859775393+a[t]|0)<<5|s>>>27)+(r^(n=n<<30|n>>>2)^i)+o+1859775393+a[t+1]|0)<<5|o>>>27)+(s^(r=r<<30|r>>>2)^n)+i+1859775393+a[t+2]|0)<<5|i>>>27)+(o^(s=s<<30|s>>>2)^r)+n+1859775393+a[t+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^s)+r+1859775393+a[t+4]|0,i=i<<30|i>>>2;for(;t<60;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n&i|n&o|i&o)+s-1894007588+a[t]|0)<<5|s>>>27)+(r&(n=n<<30|n>>>2)|r&i|n&i)+o-1894007588+a[t+1]|0)<<5|o>>>27)+(s&(r=r<<30|r>>>2)|s&n|r&n)+i-1894007588+a[t+2]|0)<<5|i>>>27)+(o&(s=s<<30|s>>>2)|o&r|s&r)+n-1894007588+a[t+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|i&s|o&s)+r-1894007588+a[t+4]|0,i=i<<30|i>>>2;for(;t<80;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n^i^o)+s-899497514+a[t]|0)<<5|s>>>27)+(r^(n=n<<30|n>>>2)^i)+o-899497514+a[t+1]|0)<<5|o>>>27)+(s^(r=r<<30|r>>>2)^n)+i-899497514+a[t+2]|0)<<5|i>>>27)+(o^(s=s<<30|s>>>2)^r)+n-899497514+a[t+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^s)+r-899497514+a[t+4]|0,i=i<<30|i>>>2;this.h0=this.h0+r|0,this.h1=this.h1+n|0,this.h2=this.h2+i|0,this.h3=this.h3+o|0,this.h4=this.h4+s|0},ue.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return Xt[t>>>28&15]+Xt[t>>>24&15]+Xt[t>>>20&15]+Xt[t>>>16&15]+Xt[t>>>12&15]+Xt[t>>>8&15]+Xt[t>>>4&15]+Xt[15&t]+Xt[e>>>28&15]+Xt[e>>>24&15]+Xt[e>>>20&15]+Xt[e>>>16&15]+Xt[e>>>12&15]+Xt[e>>>8&15]+Xt[e>>>4&15]+Xt[15&e]+Xt[r>>>28&15]+Xt[r>>>24&15]+Xt[r>>>20&15]+Xt[r>>>16&15]+Xt[r>>>12&15]+Xt[r>>>8&15]+Xt[r>>>4&15]+Xt[15&r]+Xt[n>>>28&15]+Xt[n>>>24&15]+Xt[n>>>20&15]+Xt[n>>>16&15]+Xt[n>>>12&15]+Xt[n>>>8&15]+Xt[n>>>4&15]+Xt[15&n]+Xt[i>>>28&15]+Xt[i>>>24&15]+Xt[i>>>20&15]+Xt[i>>>16&15]+Xt[i>>>12&15]+Xt[i>>>8&15]+Xt[i>>>4&15]+Xt[15&i]},ue.prototype.toString=ue.prototype.hex,ue.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i]},ue.prototype.array=ue.prototype.digest,ue.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t},fe.prototype=new ue,fe.prototype.finalize=function(){if(ue.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();ue.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),ue.prototype.finalize.call(this)}};const ce=function(){var t=se("hex");Zt&&(t=ae(t)),t.create=function(){return new ue},t.update=function(e){return t.create().update(e)};for(var e=0;e<ee.length;++e){var r=ee[e];t[r]=se(r)}return t}(),le=function(){var t=he("hex");t.create=function(t){return new fe(t)},t.update=function(e,r){return t.create(e).update(r)};for(var e=0;e<ee.length;++e){var r=ee[e];t[r]=he(r)}return t}();
|
|
42
|
-
/**
|
|
43
|
-
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
44
|
-
*
|
|
45
|
-
* @version 0.11.0
|
|
46
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
47
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/
|
|
50
|
-
var pe="input is invalid type",de="object"==typeof window,ge=de?window:{};ge.JS_SHA256_NO_WINDOW&&(de=!1);var ye=!de&&"object"==typeof self,we=!ge.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;we?ge=global:ye&&(ge=self);var me=!ge.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,be="0123456789abcdef".split(""),Ae=[-2147483648,8388608,32768,128],ve=[24,16,8,0],Se=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],De=["hex","array","digest","arrayBuffer"],Ee=[];!ge.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!me||!ge.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var Me=function(t,e){return function(r){return new Oe(e,!0).update(r)[t]()}},Fe=function(t){var e=Me("hex",t);we&&(e=Ce(e,t)),e.create=function(){return new Oe(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<De.length;++r){var n=De[r];e[n]=Me(n,t)}return e},Ce=function(t,e){var r,n=require("crypto"),i=require("buffer").Buffer,o=e?"sha224":"sha256";r=i.from&&!ge.JS_SHA256_NO_BUFFER_FROM?i.from:function(t){return new i(t)};return function(e){if("string"==typeof e)return n.createHash(o).update(e,"utf8").digest("hex");if(null==e)throw new Error(pe);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===i?n.createHash(o).update(r(e)).digest("hex"):t(e)}},Te=function(t,e){return function(r,n){return new Ie(r,e,!0).update(n)[t]()}},Be=function(t){var e=Te("hex",t);e.create=function(e){return new Ie(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<De.length;++r){var n=De[r];e[n]=Te(n,t)}return e};function Oe(t,e){e?(Ee[0]=Ee[16]=Ee[1]=Ee[2]=Ee[3]=Ee[4]=Ee[5]=Ee[6]=Ee[7]=Ee[8]=Ee[9]=Ee[10]=Ee[11]=Ee[12]=Ee[13]=Ee[14]=Ee[15]=0,this.blocks=Ee):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function Ie(t,e,r){var n,i=typeof t;if("string"===i){var o,s=[],a=t.length,h=0;for(n=0;n<a;++n)(o=t.charCodeAt(n))<128?s[h++]=o:o<2048?(s[h++]=192|o>>>6,s[h++]=128|63&o):o<55296||o>=57344?(s[h++]=224|o>>>12,s[h++]=128|o>>>6&63,s[h++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),s[h++]=240|o>>>18,s[h++]=128|o>>>12&63,s[h++]=128|o>>>6&63,s[h++]=128|63&o);t=s}else{if("object"!==i)throw new Error(pe);if(null===t)throw new Error(pe);if(me&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||me&&ArrayBuffer.isView(t)))throw new Error(pe)}t.length>64&&(t=new Oe(e,!0).update(t).array());var u=[],f=[];for(n=0;n<64;++n){var c=t[n]||0;u[n]=92^c,f[n]=54^c}Oe.call(this,e,r),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Oe.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(pe);if(null===t)throw new Error(pe);if(me&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||me&&ArrayBuffer.isView(t)))throw new Error(pe);e=!0}for(var n,i,o=0,s=t.length,a=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,this.block=a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)for(i=this.start;o<s&&i<64;++o)a[i>>>2]|=t[o]<<ve[3&i++];else for(i=this.start;o<s&&i<64;++o)(n=t.charCodeAt(o))<128?a[i>>>2]|=n<<ve[3&i++]:n<2048?(a[i>>>2]|=(192|n>>>6)<<ve[3&i++],a[i>>>2]|=(128|63&n)<<ve[3&i++]):n<55296||n>=57344?(a[i>>>2]|=(224|n>>>12)<<ve[3&i++],a[i>>>2]|=(128|n>>>6&63)<<ve[3&i++],a[i>>>2]|=(128|63&n)<<ve[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),a[i>>>2]|=(240|n>>>18)<<ve[3&i++],a[i>>>2]|=(128|n>>>12&63)<<ve[3&i++],a[i>>>2]|=(128|n>>>6&63)<<ve[3&i++],a[i>>>2]|=(128|63&n)<<ve[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Oe.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=Ae[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Oe.prototype.hash=function(){var t,e,r,n,i,o,s,a,h,u=this.h0,f=this.h1,c=this.h2,l=this.h3,p=this.h4,d=this.h5,g=this.h6,y=this.h7,w=this.blocks;for(t=16;t<64;++t)e=((i=w[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=w[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,w[t]=w[t-16]+e+w[t-7]+r|0;for(h=f&c,t=0;t<64;t+=4)this.first?(this.is224?(o=300032,y=(i=w[0]-1413257819)-150054599|0,l=i+24177077|0):(o=704751109,y=(i=w[0]-210244248)-1521486534|0,l=i+143694565|0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(o=u&f)^u&c^h,y=l+(i=y+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&d^~p&g)+Se[t]+w[t])|0,l=i+(e+n)|0),e=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(s=l&u)^l&f^o,g=c+(i=g+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&p^~y&d)+Se[t+1]+w[t+1])|0,e=((c=i+(e+n)|0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(a=c&l)^c&u^s,d=f+(i=d+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&p)+Se[t+2]+w[t+2])|0,e=((f=i+(e+n)|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(h=f&c)^f&l^a,p=u+(i=p+(r=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&g^~d&y)+Se[t+3]+w[t+3])|0,u=i+(e+n)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+u|0,this.h1=this.h1+f|0,this.h2=this.h2+c|0,this.h3=this.h3+l|0,this.h4=this.h4+p|0,this.h5=this.h5+d|0,this.h6=this.h6+g|0,this.h7=this.h7+y|0},Oe.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,h=be[t>>>28&15]+be[t>>>24&15]+be[t>>>20&15]+be[t>>>16&15]+be[t>>>12&15]+be[t>>>8&15]+be[t>>>4&15]+be[15&t]+be[e>>>28&15]+be[e>>>24&15]+be[e>>>20&15]+be[e>>>16&15]+be[e>>>12&15]+be[e>>>8&15]+be[e>>>4&15]+be[15&e]+be[r>>>28&15]+be[r>>>24&15]+be[r>>>20&15]+be[r>>>16&15]+be[r>>>12&15]+be[r>>>8&15]+be[r>>>4&15]+be[15&r]+be[n>>>28&15]+be[n>>>24&15]+be[n>>>20&15]+be[n>>>16&15]+be[n>>>12&15]+be[n>>>8&15]+be[n>>>4&15]+be[15&n]+be[i>>>28&15]+be[i>>>24&15]+be[i>>>20&15]+be[i>>>16&15]+be[i>>>12&15]+be[i>>>8&15]+be[i>>>4&15]+be[15&i]+be[o>>>28&15]+be[o>>>24&15]+be[o>>>20&15]+be[o>>>16&15]+be[o>>>12&15]+be[o>>>8&15]+be[o>>>4&15]+be[15&o]+be[s>>>28&15]+be[s>>>24&15]+be[s>>>20&15]+be[s>>>16&15]+be[s>>>12&15]+be[s>>>8&15]+be[s>>>4&15]+be[15&s];return this.is224||(h+=be[a>>>28&15]+be[a>>>24&15]+be[a>>>20&15]+be[a>>>16&15]+be[a>>>12&15]+be[a>>>8&15]+be[a>>>4&15]+be[15&a]),h},Oe.prototype.toString=Oe.prototype.hex,Oe.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,h=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||h.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),h},Oe.prototype.array=Oe.prototype.digest,Oe.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},Ie.prototype=new Oe,Ie.prototype.finalize=function(){if(Oe.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Oe.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Oe.prototype.finalize.call(this)}};const Re=Fe(),_e=Fe(!0),xe=Be(),Ne=Be(!0);
|
|
51
|
-
/*
|
|
52
|
-
* [js-sha512]{@link https://github.com/emn178/js-sha512}
|
|
53
|
-
*
|
|
54
|
-
* @version 0.9.0
|
|
55
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
56
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/
|
|
59
|
-
var Ue="input is invalid type",Pe="object"==typeof window,ke=Pe?window:{};ke.JS_SHA512_NO_WINDOW&&(Pe=!1);var ze=!Pe&&"object"==typeof self;!ke.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?ke=global:ze&&(ke=self);var je=!ke.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Le="0123456789abcdef".split(""),$e=[-2147483648,8388608,32768,128],He=[24,16,8,0],qe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Ye=["hex","array","digest","arrayBuffer"],We=[],Ve=Array.isArray;!ke.JS_SHA512_NO_NODE_JS&&Ve||(Ve=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var Je=ArrayBuffer.isView;!je||!ke.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&Je||(Je=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var Ke=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Ue);if(je&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!Ve(t)&&!Je(t))throw new Error(Ue);return[t,!1]},Ze=function(t,e){return function(r){return new tr(e,!0).update(r)[t]()}},Qe=function(t){var e=Ze("hex",t);e.create=function(){return new tr(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<Ye.length;++r){var n=Ye[r];e[n]=Ze(n,t)}return e},Xe=function(t,e){return function(r,n){return new er(r,e,!0).update(n)[t]()}},Ge=function(t){var e=Xe("hex",t);e.create=function(e){return new er(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<Ye.length;++r){var n=Ye[r];e[n]=Xe(n,t)}return e};function tr(t,e){e?(We[0]=We[1]=We[2]=We[3]=We[4]=We[5]=We[6]=We[7]=We[8]=We[9]=We[10]=We[11]=We[12]=We[13]=We[14]=We[15]=We[16]=We[17]=We[18]=We[19]=We[20]=We[21]=We[22]=We[23]=We[24]=We[25]=We[26]=We[27]=We[28]=We[29]=We[30]=We[31]=We[32]=0,this.blocks=We):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==t?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==t?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==t?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=t,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function er(t,e,r){var n=Ke(t);if(t=n[0],n[1]){for(var i,o=[],s=t.length,a=0,h=0;h<s;++h)(i=t.charCodeAt(h))<128?o[a++]=i:i<2048?(o[a++]=192|i>>>6,o[a++]=128|63&i):i<55296||i>=57344?(o[a++]=224|i>>>12,o[a++]=128|i>>>6&63,o[a++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),o[a++]=240|i>>>18,o[a++]=128|i>>>12&63,o[a++]=128|i>>>6&63,o[a++]=128|63&i);t=o}t.length>128&&(t=new tr(e,!0).update(t).array());var u=[],f=[];for(h=0;h<128;++h){var c=t[h]||0;u[h]=92^c,f[h]=54^c}tr.call(this,e,r),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}tr.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=Ke(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length,a=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,this.block=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=a[16]=a[17]=a[18]=a[19]=a[20]=a[21]=a[22]=a[23]=a[24]=a[25]=a[26]=a[27]=a[28]=a[29]=a[30]=a[31]=a[32]=0),i)for(n=this.start;o<s&&n<128;++o)(r=t.charCodeAt(o))<128?a[n>>>2]|=r<<He[3&n++]:r<2048?(a[n>>>2]|=(192|r>>>6)<<He[3&n++],a[n>>>2]|=(128|63&r)<<He[3&n++]):r<55296||r>=57344?(a[n>>>2]|=(224|r>>>12)<<He[3&n++],a[n>>>2]|=(128|r>>>6&63)<<He[3&n++],a[n>>>2]|=(128|63&r)<<He[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),a[n>>>2]|=(240|r>>>18)<<He[3&n++],a[n>>>2]|=(128|r>>>12&63)<<He[3&n++],a[n>>>2]|=(128|r>>>6&63)<<He[3&n++],a[n>>>2]|=(128|63&r)<<He[3&n++]);else for(n=this.start;o<s&&n<128;++o)a[n>>>2]|=t[o]<<He[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=128?(this.block=a[32],this.start=n-128,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},tr.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[32]=this.block,t[e>>>2]|=$e[3&e],this.block=t[32],e>=112&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash()}},tr.prototype.hash=function(){var t,e,r,n,i,o,s,a,h,u,f,c,l,p,d,g,y,w,m,b,A,v,S,D,E,M=this.h0h,F=this.h0l,C=this.h1h,T=this.h1l,B=this.h2h,O=this.h2l,I=this.h3h,R=this.h3l,_=this.h4h,x=this.h4l,N=this.h5h,U=this.h5l,P=this.h6h,k=this.h6l,z=this.h7h,j=this.h7l,L=this.blocks;for(t=32;t<160;t+=2)e=((b=L[t-30])>>>1|(A=L[t-29])<<31)^(b>>>8|A<<24)^b>>>7,r=(A>>>1|b<<31)^(A>>>8|b<<24)^(A>>>7|b<<25),n=((b=L[t-4])>>>19|(A=L[t-3])<<13)^(A>>>29|b<<3)^b>>>6,i=(A>>>19|b<<13)^(b>>>29|A<<3)^(A>>>6|b<<26),b=L[t-32],A=L[t-31],h=((v=L[t-14])>>>16)+(b>>>16)+(e>>>16)+(n>>>16)+((a=(65535&v)+(65535&b)+(65535&e)+(65535&n)+((s=((S=L[t-13])>>>16)+(A>>>16)+(r>>>16)+(i>>>16)+((o=(65535&S)+(65535&A)+(65535&r)+(65535&i))>>>16))>>>16))>>>16),L[t]=h<<16|65535&a,L[t+1]=s<<16|65535&o;var $=M,H=F,q=C,Y=T,W=B,V=O,J=I,K=R,Z=_,Q=x,X=N,G=U,tt=P,et=k,rt=z,nt=j;for(g=q&W,y=Y&V,t=0;t<160;t+=8)e=($>>>28|H<<4)^(H>>>2|$<<30)^(H>>>7|$<<25),r=(H>>>28|$<<4)^($>>>2|H<<30)^($>>>7|H<<25),n=(Z>>>14|Q<<18)^(Z>>>18|Q<<14)^(Q>>>9|Z<<23),i=(Q>>>14|Z<<18)^(Q>>>18|Z<<14)^(Z>>>9|Q<<23),w=(u=$&q)^$&W^g,m=(f=H&Y)^H&V^y,D=Z&X^~Z&tt,E=Q&G^~Q&et,b=L[t],A=L[t+1],b=(h=((v=qe[t])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(rt>>>16)+((a=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&rt)+((s=((S=qe[t+1])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(nt>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&nt))>>>16))>>>16))>>>16))<<16|65535&a,A=s<<16|65535&o,v=(h=(w>>>16)+(e>>>16)+((a=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&a,S=s<<16|65535&o,rt=(h=(J>>>16)+(b>>>16)+((a=(65535&J)+(65535&b)+((s=(K>>>16)+(A>>>16)+((o=(65535&K)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a,nt=s<<16|65535&o,e=((J=(h=(v>>>16)+(b>>>16)+((a=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(K=s<<16|65535&o)<<4)^(K>>>2|J<<30)^(K>>>7|J<<25),r=(K>>>28|J<<4)^(J>>>2|K<<30)^(J>>>7|K<<25),n=(rt>>>14|nt<<18)^(rt>>>18|nt<<14)^(nt>>>9|rt<<23),i=(nt>>>14|rt<<18)^(nt>>>18|rt<<14)^(rt>>>9|nt<<23),w=(c=J&$)^J&q^u,m=(l=K&H)^K&Y^f,D=rt&Z^~rt&X,E=nt&Q^~nt&G,b=L[t+2],A=L[t+3],b=(h=((v=qe[t+2])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(tt>>>16)+((a=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&tt)+((s=((S=qe[t+3])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(et>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&et))>>>16))>>>16))>>>16))<<16|65535&a,A=s<<16|65535&o,v=(h=(w>>>16)+(e>>>16)+((a=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&a,S=s<<16|65535&o,tt=(h=(W>>>16)+(b>>>16)+((a=(65535&W)+(65535&b)+((s=(V>>>16)+(A>>>16)+((o=(65535&V)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a,et=s<<16|65535&o,e=((W=(h=(v>>>16)+(b>>>16)+((a=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(V=s<<16|65535&o)<<4)^(V>>>2|W<<30)^(V>>>7|W<<25),r=(V>>>28|W<<4)^(W>>>2|V<<30)^(W>>>7|V<<25),n=(tt>>>14|et<<18)^(tt>>>18|et<<14)^(et>>>9|tt<<23),i=(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23),w=(p=W&J)^W&$^c,m=(d=V&K)^V&H^l,D=tt&rt^~tt&Z,E=et&nt^~et&Q,b=L[t+4],A=L[t+5],b=(h=((v=qe[t+4])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(X>>>16)+((a=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&X)+((s=((S=qe[t+5])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(G>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&G))>>>16))>>>16))>>>16))<<16|65535&a,A=s<<16|65535&o,v=(h=(w>>>16)+(e>>>16)+((a=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&a,S=s<<16|65535&o,X=(h=(q>>>16)+(b>>>16)+((a=(65535&q)+(65535&b)+((s=(Y>>>16)+(A>>>16)+((o=(65535&Y)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a,G=s<<16|65535&o,e=((q=(h=(v>>>16)+(b>>>16)+((a=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(Y=s<<16|65535&o)<<4)^(Y>>>2|q<<30)^(Y>>>7|q<<25),r=(Y>>>28|q<<4)^(q>>>2|Y<<30)^(q>>>7|Y<<25),n=(X>>>14|G<<18)^(X>>>18|G<<14)^(G>>>9|X<<23),i=(G>>>14|X<<18)^(G>>>18|X<<14)^(X>>>9|G<<23),w=(g=q&W)^q&J^p,m=(y=Y&V)^Y&K^d,D=X&tt^~X&rt,E=G&et^~G&nt,b=L[t+6],A=L[t+7],b=(h=((v=qe[t+6])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(Z>>>16)+((a=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&Z)+((s=((S=qe[t+7])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(Q>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&Q))>>>16))>>>16))>>>16))<<16|65535&a,A=s<<16|65535&o,v=(h=(w>>>16)+(e>>>16)+((a=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&a,S=s<<16|65535&o,Z=(h=($>>>16)+(b>>>16)+((a=(65535&$)+(65535&b)+((s=(H>>>16)+(A>>>16)+((o=(65535&H)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a,Q=s<<16|65535&o,$=(h=(v>>>16)+(b>>>16)+((a=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&a,H=s<<16|65535&o;h=(M>>>16)+($>>>16)+((a=(65535&M)+(65535&$)+((s=(F>>>16)+(H>>>16)+((o=(65535&F)+(65535&H))>>>16))>>>16))>>>16),this.h0h=h<<16|65535&a,this.h0l=s<<16|65535&o,h=(C>>>16)+(q>>>16)+((a=(65535&C)+(65535&q)+((s=(T>>>16)+(Y>>>16)+((o=(65535&T)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=h<<16|65535&a,this.h1l=s<<16|65535&o,h=(B>>>16)+(W>>>16)+((a=(65535&B)+(65535&W)+((s=(O>>>16)+(V>>>16)+((o=(65535&O)+(65535&V))>>>16))>>>16))>>>16),this.h2h=h<<16|65535&a,this.h2l=s<<16|65535&o,h=(I>>>16)+(J>>>16)+((a=(65535&I)+(65535&J)+((s=(R>>>16)+(K>>>16)+((o=(65535&R)+(65535&K))>>>16))>>>16))>>>16),this.h3h=h<<16|65535&a,this.h3l=s<<16|65535&o,h=(_>>>16)+(Z>>>16)+((a=(65535&_)+(65535&Z)+((s=(x>>>16)+(Q>>>16)+((o=(65535&x)+(65535&Q))>>>16))>>>16))>>>16),this.h4h=h<<16|65535&a,this.h4l=s<<16|65535&o,h=(N>>>16)+(X>>>16)+((a=(65535&N)+(65535&X)+((s=(U>>>16)+(G>>>16)+((o=(65535&U)+(65535&G))>>>16))>>>16))>>>16),this.h5h=h<<16|65535&a,this.h5l=s<<16|65535&o,h=(P>>>16)+(tt>>>16)+((a=(65535&P)+(65535&tt)+((s=(k>>>16)+(et>>>16)+((o=(65535&k)+(65535&et))>>>16))>>>16))>>>16),this.h6h=h<<16|65535&a,this.h6l=s<<16|65535&o,h=(z>>>16)+(rt>>>16)+((a=(65535&z)+(65535&rt)+((s=(j>>>16)+(nt>>>16)+((o=(65535&j)+(65535&nt))>>>16))>>>16))>>>16),this.h7h=h<<16|65535&a,this.h7l=s<<16|65535&o},tr.prototype.hex=function(){this.finalize();var t=this.h0h,e=this.h0l,r=this.h1h,n=this.h1l,i=this.h2h,o=this.h2l,s=this.h3h,a=this.h3l,h=this.h4h,u=this.h4l,f=this.h5h,c=this.h5l,l=this.h6h,p=this.h6l,d=this.h7h,g=this.h7l,y=this.bits,w=Le[t>>>28&15]+Le[t>>>24&15]+Le[t>>>20&15]+Le[t>>>16&15]+Le[t>>>12&15]+Le[t>>>8&15]+Le[t>>>4&15]+Le[15&t]+Le[e>>>28&15]+Le[e>>>24&15]+Le[e>>>20&15]+Le[e>>>16&15]+Le[e>>>12&15]+Le[e>>>8&15]+Le[e>>>4&15]+Le[15&e]+Le[r>>>28&15]+Le[r>>>24&15]+Le[r>>>20&15]+Le[r>>>16&15]+Le[r>>>12&15]+Le[r>>>8&15]+Le[r>>>4&15]+Le[15&r]+Le[n>>>28&15]+Le[n>>>24&15]+Le[n>>>20&15]+Le[n>>>16&15]+Le[n>>>12&15]+Le[n>>>8&15]+Le[n>>>4&15]+Le[15&n]+Le[i>>>28&15]+Le[i>>>24&15]+Le[i>>>20&15]+Le[i>>>16&15]+Le[i>>>12&15]+Le[i>>>8&15]+Le[i>>>4&15]+Le[15&i]+Le[o>>>28&15]+Le[o>>>24&15]+Le[o>>>20&15]+Le[o>>>16&15]+Le[o>>>12&15]+Le[o>>>8&15]+Le[o>>>4&15]+Le[15&o]+Le[s>>>28&15]+Le[s>>>24&15]+Le[s>>>20&15]+Le[s>>>16&15]+Le[s>>>12&15]+Le[s>>>8&15]+Le[s>>>4&15]+Le[15&s];return y>=256&&(w+=Le[a>>>28&15]+Le[a>>>24&15]+Le[a>>>20&15]+Le[a>>>16&15]+Le[a>>>12&15]+Le[a>>>8&15]+Le[a>>>4&15]+Le[15&a]),y>=384&&(w+=Le[h>>>28&15]+Le[h>>>24&15]+Le[h>>>20&15]+Le[h>>>16&15]+Le[h>>>12&15]+Le[h>>>8&15]+Le[h>>>4&15]+Le[15&h]+Le[u>>>28&15]+Le[u>>>24&15]+Le[u>>>20&15]+Le[u>>>16&15]+Le[u>>>12&15]+Le[u>>>8&15]+Le[u>>>4&15]+Le[15&u]+Le[f>>>28&15]+Le[f>>>24&15]+Le[f>>>20&15]+Le[f>>>16&15]+Le[f>>>12&15]+Le[f>>>8&15]+Le[f>>>4&15]+Le[15&f]+Le[c>>>28&15]+Le[c>>>24&15]+Le[c>>>20&15]+Le[c>>>16&15]+Le[c>>>12&15]+Le[c>>>8&15]+Le[c>>>4&15]+Le[15&c]),512==y&&(w+=Le[l>>>28&15]+Le[l>>>24&15]+Le[l>>>20&15]+Le[l>>>16&15]+Le[l>>>12&15]+Le[l>>>8&15]+Le[l>>>4&15]+Le[15&l]+Le[p>>>28&15]+Le[p>>>24&15]+Le[p>>>20&15]+Le[p>>>16&15]+Le[p>>>12&15]+Le[p>>>8&15]+Le[p>>>4&15]+Le[15&p]+Le[d>>>28&15]+Le[d>>>24&15]+Le[d>>>20&15]+Le[d>>>16&15]+Le[d>>>12&15]+Le[d>>>8&15]+Le[d>>>4&15]+Le[15&d]+Le[g>>>28&15]+Le[g>>>24&15]+Le[g>>>20&15]+Le[g>>>16&15]+Le[g>>>12&15]+Le[g>>>8&15]+Le[g>>>4&15]+Le[15&g]),w},tr.prototype.toString=tr.prototype.hex,tr.prototype.digest=function(){this.finalize();var t=this.h0h,e=this.h0l,r=this.h1h,n=this.h1l,i=this.h2h,o=this.h2l,s=this.h3h,a=this.h3l,h=this.h4h,u=this.h4l,f=this.h5h,c=this.h5l,l=this.h6h,p=this.h6l,d=this.h7h,g=this.h7l,y=this.bits,w=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return y>=256&&w.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),y>=384&&w.push(h>>>24&255,h>>>16&255,h>>>8&255,255&h,u>>>24&255,u>>>16&255,u>>>8&255,255&u,f>>>24&255,f>>>16&255,f>>>8&255,255&f,c>>>24&255,c>>>16&255,c>>>8&255,255&c),512==y&&w.push(l>>>24&255,l>>>16&255,l>>>8&255,255&l,p>>>24&255,p>>>16&255,p>>>8&255,255&p,d>>>24&255,d>>>16&255,d>>>8&255,255&d,g>>>24&255,g>>>16&255,g>>>8&255,255&g),w},tr.prototype.array=tr.prototype.digest,tr.prototype.arrayBuffer=function(){this.finalize();var t=this.bits,e=new ArrayBuffer(t/8),r=new DataView(e);return r.setUint32(0,this.h0h),r.setUint32(4,this.h0l),r.setUint32(8,this.h1h),r.setUint32(12,this.h1l),r.setUint32(16,this.h2h),r.setUint32(20,this.h2l),r.setUint32(24,this.h3h),t>=256&&r.setUint32(28,this.h3l),t>=384&&(r.setUint32(32,this.h4h),r.setUint32(36,this.h4l),r.setUint32(40,this.h5h),r.setUint32(44,this.h5l)),512==t&&(r.setUint32(48,this.h6h),r.setUint32(52,this.h6l),r.setUint32(56,this.h7h),r.setUint32(60,this.h7l)),e},tr.prototype.clone=function(){var t=new tr(this.bits,!1);return this.copyTo(t),t},tr.prototype.copyTo=function(t){var e=0,r=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(e=0;e<r.length;++e)t[r[e]]=this[r[e]];for(e=0;e<this.blocks.length;++e)t.blocks[e]=this.blocks[e]},er.prototype=new tr,er.prototype.finalize=function(){if(tr.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();tr.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(t),tr.prototype.finalize.call(this)}},er.prototype.clone=function(){var t=new er([],this.bits,!1);this.copyTo(t),t.inner=this.inner;for(var e=0;e<this.oKeyPad.length;++e)t.oKeyPad[e]=this.oKeyPad[e];return t};const rr=Qe(512),nr=Qe(384),ir=Qe(256),or=Qe(224),sr=Ge(512),ar=Ge(384),hr=Ge(256),ur=Ge(224);
|
|
60
|
-
/**
|
|
61
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
62
|
-
*
|
|
63
|
-
* @version 0.9.3
|
|
64
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
65
|
-
* @copyright Chen, Yi-Cyuan 2015-2023
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/
|
|
68
|
-
var fr="input is invalid type",cr="object"==typeof window,lr=cr?window:{};lr.JS_SHA3_NO_WINDOW&&(cr=!1);var pr=!cr&&"object"==typeof self;!lr.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?lr=global:pr&&(lr=self);for(var dr=!lr.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,gr="0123456789abcdef".split(""),yr=[4,1024,262144,67108864],wr=[0,8,16,24],mr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],br=[224,256,384,512],Ar=[128,256],vr=["hex","buffer","arrayBuffer","array","digest"],Sr={128:168,256:136},Dr=lr.JS_SHA3_NO_NODE_JS||!Array.isArray?function(t){return"[object Array]"===Object.prototype.toString.call(t)}:Array.isArray,Er=!dr||!lr.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView?ArrayBuffer.isView:function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer},Mr=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(fr);if(dr&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!Dr(t)&&!Er(t))throw new Error(fr);return[t,!1]},Fr=function(t){return 0===Mr(t)[0].length},Cr=function(t){for(var e=[],r=0;r<t.length;++r)e[r]=t[r];return e},Tr=function(t,e,r){return function(n){return new $r(t,e,t).update(n)[r]()}},Br=function(t,e,r){return function(n,i){return new $r(t,e,i).update(n)[r]()}},Or=function(t,e,r){return function(e,n,i,o){return Nr["cshake"+t].update(e,n,i,o)[r]()}},Ir=function(t,e,r){return function(e,n,i,o){return Nr["kmac"+t].update(e,n,i,o)[r]()}},Rr=function(t,e,r,n){for(var i=0;i<vr.length;++i){var o=vr[i];t[o]=e(r,n,o)}return t},_r=function(t,e){var r=Tr(t,e,"hex");return r.create=function(){return new $r(t,e,t)},r.update=function(t){return r.create().update(t)},Rr(r,Tr,t,e)},xr=[{name:"keccak",padding:[1,256,65536,16777216],bits:br,createMethod:_r},{name:"sha3",padding:[6,1536,393216,100663296],bits:br,createMethod:_r},{name:"shake",padding:[31,7936,2031616,520093696],bits:Ar,createMethod:function(t,e){var r=Br(t,e,"hex");return r.create=function(r){return new $r(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},Rr(r,Br,t,e)}},{name:"cshake",padding:yr,bits:Ar,createMethod:function(t,e){var r=Sr[t],n=Or(t,0,"hex");return n.create=function(n,i,o){return Fr(i)&&Fr(o)?Nr["shake"+t].create(n):new $r(t,e,n).bytepad([i,o],r)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},Rr(n,Or,t,e)}},{name:"kmac",padding:yr,bits:Ar,createMethod:function(t,e){var r=Sr[t],n=Ir(t,0,"hex");return n.create=function(n,i,o){return new Hr(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},Rr(n,Ir,t,e)}}],Nr={},Ur=0;Ur<xr.length;++Ur)for(var Pr=xr[Ur],kr=Pr.bits,zr=0;zr<kr.length;++zr){var jr=Pr.name+"_"+kr[zr];if(Nr[jr]=Pr.createMethod(kr[zr],Pr.padding),"sha3"!==Pr.name){var Lr=Pr.name+kr[zr];Nr[Lr]=Nr[jr]}}function $r(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function Hr(t,e,r){$r.call(this,t,e,r)}$r.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=Mr(t);t=e[0];for(var r,n,i=e[1],o=this.blocks,s=this.byteCount,a=t.length,h=this.blockCount,u=0,f=this.s;u<a;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<h+1;++r)o[r]=0;if(i)for(r=this.start;u<a&&r<s;++u)(n=t.charCodeAt(u))<128?o[r>>2]|=n<<wr[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<wr[3&r++],o[r>>2]|=(128|63&n)<<wr[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<wr[3&r++],o[r>>2]|=(128|n>>6&63)<<wr[3&r++],o[r>>2]|=(128|63&n)<<wr[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<wr[3&r++],o[r>>2]|=(128|n>>12&63)<<wr[3&r++],o[r>>2]|=(128|n>>6&63)<<wr[3&r++],o[r>>2]|=(128|63&n)<<wr[3&r++]);else for(r=this.start;u<a&&r<s;++u)o[r>>2]|=t[u]<<wr[3&r++];if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[h],r=0;r<h;++r)f[r]^=o[r];qr(f),this.reset=!0}else this.start=r}return this},$r.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},$r.prototype.encodeString=function(t){var e=Mr(t);t=e[0];var r=e[1],n=0,i=t.length;if(r)for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++o)),n+=4)}else n=i;return n+=this.encode(8*n),this.update(t),n},$r.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=(e-r%e)%e,o=[];return o.length=i,this.update(o),this},$r.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];qr(n)}},$r.prototype.toString=$r.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";s<n;){for(o=0;o<e&&s<n;++o,++s)t=r[o],a+=gr[t>>4&15]+gr[15&t]+gr[t>>12&15]+gr[t>>8&15]+gr[t>>20&15]+gr[t>>16&15]+gr[t>>28&15]+gr[t>>24&15];s%e==0&&(r=Cr(r),qr(r),o=0)}return i&&(t=r[o],a+=gr[t>>4&15]+gr[15&t],i>1&&(a+=gr[t>>12&15]+gr[t>>8&15]),i>2&&(a+=gr[t>>20&15]+gr[t>>16&15])),a},$r.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var h=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)h[s]=r[o];s%e==0&&(r=Cr(r),qr(r))}return i&&(h[s]=r[o],t=t.slice(0,a)),t},$r.prototype.buffer=$r.prototype.arrayBuffer,$r.prototype.digest=$r.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,h=[];a<i;){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],h[t]=255&e,h[t+1]=e>>8&255,h[t+2]=e>>16&255,h[t+3]=e>>24&255;a%r==0&&(n=Cr(n),qr(n))}return o&&(t=a<<2,e=n[s],h[t]=255&e,o>1&&(h[t+1]=e>>8&255),o>2&&(h[t+2]=e>>16&255)),h},Hr.prototype=new $r,Hr.prototype.finalize=function(){return this.encode(this.outputBits,!0),$r.prototype.finalize.call(this)};var qr=function(t){var e,r,n,i,o,s,a,h,u,f,c,l,p,d,g,y,w,m,b,A,v,S,D,E,M,F,C,T,B,O,I,R,_,x,N,U,P,k,z,j,L,$,H,q,Y,W,V,J,K,Z,Q,X,G,tt,et,rt,nt,it,ot,st,at,ht,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],e=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|u>>>31),r=o^(u<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(f<<1|c>>>31),r=a^(c<<1|f>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(l<<1|p>>>31),r=u^(p<<1|l>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=f^(i<<1|o>>>31),r=c^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,d=t[0],g=t[1],W=t[11]<<4|t[10]>>>28,V=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,at=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,x=t[2]<<1|t[3]>>>31,N=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,K=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,I=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,m=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,Z=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,_=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,k=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,v=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,G=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,F=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,j=t[38]<<8|t[39]>>>24,L=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,D=t[49]<<14|t[48]>>>18,t[0]=d^~y&m,t[1]=g^~w&b,t[10]=E^~F&T,t[11]=M^~C&B,t[20]=x^~U&k,t[21]=N^~P&z,t[30]=q^~W&J,t[31]=Y^~V&K,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=y^~m&A,t[3]=w^~b&v,t[12]=F^~T&O,t[13]=C^~B&I,t[22]=U^~k&j,t[23]=P^~z&L,t[32]=W^~J&Z,t[33]=V^~K&Q,t[42]=rt^~it&st,t[43]=nt^~ot&at,t[4]=m^~A&S,t[5]=b^~v&D,t[14]=T^~O&R,t[15]=B^~I&_,t[24]=k^~j&$,t[25]=z^~L&H,t[34]=J^~Z&X,t[35]=K^~Q&G,t[44]=it^~st&ht,t[45]=ot^~at&ut,t[6]=A^~S&d,t[7]=v^~D&g,t[16]=O^~R&E,t[17]=I^~_&M,t[26]=j^~$&x,t[27]=L^~H&N,t[36]=Z^~X&q,t[37]=Q^~G&Y,t[46]=st^~ht&tt,t[47]=at^~ut&et,t[8]=S^~d&y,t[9]=D^~g&w,t[18]=R^~E&F,t[19]=_^~M&C,t[28]=$^~x&U,t[29]=H^~N&P,t[38]=X^~q&W,t[39]=G^~Y&V,t[48]=ht^~tt&rt,t[49]=ut^~et&nt,t[0]^=mr[n],t[1]^=mr[n+1]};const Yr=Nr.sha3_512,Wr=Nr.sha3_384,Vr=Nr.sha3_256,Jr=Nr.sha3_224;var Kr;function Zr(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function Qr(){return new Zr(null)}var Xr="undefined"!=typeof navigator;Xr&&"Microsoft Internet Explorer"==navigator.appName?(Zr.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var h=32767&this[t],u=this[t++]>>15,f=a*h+u*s;i=((h=s*h+((32767&f)<<15)+r[n]+(1073741823&i))>>>30)+(f>>>15)+a*u+(i>>>30),r[n++]=1073741823&h}return i},Kr=30):Xr&&"Netscape"!=navigator.appName?(Zr.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},Kr=26):(Zr.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var h=16383&this[t],u=this[t++]>>14,f=a*h+u*s;i=((h=s*h+((16383&f)<<14)+r[n]+i)>>28)+(f>>14)+a*u,r[n++]=268435455&h}return i},Kr=28),Zr.prototype.DB=Kr,Zr.prototype.DM=(1<<Kr)-1,Zr.prototype.DV=1<<Kr;Zr.prototype.FV=Math.pow(2,52),Zr.prototype.F1=52-Kr,Zr.prototype.F2=2*Kr-52;var Gr,tn,en="0123456789abcdefghijklmnopqrstuvwxyz",rn=new Array;for(Gr="0".charCodeAt(0),tn=0;tn<=9;++tn)rn[Gr++]=tn;for(Gr="a".charCodeAt(0),tn=10;tn<36;++tn)rn[Gr++]=tn;for(Gr="A".charCodeAt(0),tn=10;tn<36;++tn)rn[Gr++]=tn;function nn(t){return en.charAt(t)}function on(t,e){var r=rn[t.charCodeAt(e)];return null==r?-1:r}function sn(t){var e=Qr();return e.fromInt(t),e}function an(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function hn(t){this.m=t}function un(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function fn(t,e){return t&e}function cn(t,e){return t|e}function ln(t,e){return t^e}function pn(t,e){return t&~e}function dn(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function gn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function yn(){}function wn(t){return t}function mn(t){this.r2=Qr(),this.q3=Qr(),Zr.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}hn.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},hn.prototype.revert=function(t){return t},hn.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},hn.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},hn.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},un.prototype.convert=function(t){var e=Qr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Zr.ZERO)>0&&this.m.subTo(e,e),e},un.prototype.revert=function(t){var e=Qr();return t.copyTo(e),this.reduce(e),e},un.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},un.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},un.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},Zr.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},Zr.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},Zr.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,o=0;--n>=0;){var s=8==r?255&t[n]:on(t,n);s<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&t[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&Zr.ZERO.subTo(this,this)},Zr.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},Zr.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},Zr.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},Zr.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},Zr.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},Zr.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},Zr.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),i=r.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+r.t]=r.am(0,n[i],e,i,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&Zr.ZERO.subTo(e,e)},Zr.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},Zr.prototype.divRemTo=function(t,e,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Qr());var o=Qr(),s=this.s,a=t.s,h=this.DB-an(n[n.t-1]);h>0?(n.lShiftTo(h,o),i.lShiftTo(h,r)):(n.copyTo(o),i.copyTo(r));var u=o.t,f=o[u-1];if(0!=f){var c=f*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),l=this.FV/c,p=(1<<this.F1)/c,d=1<<this.F2,g=r.t,y=g-u,w=null==e?Qr():e;for(o.dlShiftTo(y,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),Zr.ONE.dlShiftTo(u,w),w.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--y>=0;){var m=r[--g]==f?this.DM:Math.floor(r[g]*l+(r[g-1]+d)*p);if((r[g]+=o.am(0,m,r,y,0,u))<m)for(o.dlShiftTo(y,w),r.subTo(w,r);r[g]<--m;)r.subTo(w,r)}null!=e&&(r.drShiftTo(u,e),s!=a&&Zr.ZERO.subTo(e,e)),r.t=u,r.clamp(),h>0&&r.rShiftTo(h,r),s<0&&Zr.ZERO.subTo(r,r)}}},Zr.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},Zr.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},Zr.prototype.exp=function(t,e){if(t>4294967295||t<1)return Zr.ONE;var r=Qr(),n=Qr(),i=e.convert(this),o=an(t)-1;for(i.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<<o)>0)e.mulTo(n,i,r);else{var s=r;r=n,n=s}return e.revert(r)},Zr.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=nn(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=nn(r));return i?o:"0"},Zr.prototype.negate=function(){var t=Qr();return Zr.ZERO.subTo(this,t),t},Zr.prototype.abs=function(){return this.s<0?this.negate():this},Zr.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},Zr.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+an(this[this.t-1]^this.s&this.DM)},Zr.prototype.mod=function(t){var e=Qr();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Zr.ZERO)>0&&t.subTo(e,e),e},Zr.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new hn(e):new un(e),this.exp(t,r)},Zr.ZERO=sn(0),Zr.ONE=sn(1),yn.prototype.convert=wn,yn.prototype.revert=wn,yn.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},yn.prototype.sqrTo=function(t,e){t.squareTo(e)},mn.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=Qr();return t.copyTo(e),this.reduce(e),e},mn.prototype.revert=function(t){return t},mn.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},mn.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},mn.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var bn,An,vn,Sn=[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],Dn=(1<<26)/Sn[Sn.length-1];function En(){var t;t=(new Date).getTime(),An[vn++]^=255&t,An[vn++]^=t>>8&255,An[vn++]^=t>>16&255,An[vn++]^=t>>24&255,vn>=In&&(vn-=In)}if(Zr.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},Zr.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=sn(r),i=Qr(),o=Qr(),s="";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(t).substr(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(t)+s},Zr.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),i=!1,o=0,s=0,a=0;a<t.length;++a){var h=on(t,a);h<0?"-"==t.charAt(a)&&0==this.signum()&&(i=!0):(s=e*s+h,++o>=r&&(this.dMultiply(n),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),i&&Zr.ZERO.subTo(this,this)},Zr.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(Zr.ONE.shiftLeft(t-1),cn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(Zr.ONE.shiftLeft(t-1),this);else{var n=new Array,i=7&t;n.length=1+(t>>3),e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},Zr.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},Zr.prototype.changeBit=function(t,e){var r=Zr.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},Zr.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},Zr.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},Zr.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},Zr.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},Zr.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},Zr.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},Zr.prototype.millerRabin=function(t){var e=this.subtract(Zr.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var n=e.shiftRight(r);(t=t+1>>1)>Sn.length&&(t=Sn.length);for(var i=Qr(),o=0;o<t;++o){i.fromInt(Sn[Math.floor(Math.random()*Sn.length)]);var s=i.modPow(n,this);if(0!=s.compareTo(Zr.ONE)&&0!=s.compareTo(e)){for(var a=1;a++<r&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(Zr.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},Zr.prototype.clone=function(){var t=Qr();return this.copyTo(t),t},Zr.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]},Zr.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},Zr.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},Zr.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},Zr.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},Zr.prototype.equals=function(t){return 0==this.compareTo(t)},Zr.prototype.min=function(t){return this.compareTo(t)<0?this:t},Zr.prototype.max=function(t){return this.compareTo(t)>0?this:t},Zr.prototype.and=function(t){var e=Qr();return this.bitwiseTo(t,fn,e),e},Zr.prototype.or=function(t){var e=Qr();return this.bitwiseTo(t,cn,e),e},Zr.prototype.xor=function(t){var e=Qr();return this.bitwiseTo(t,ln,e),e},Zr.prototype.andNot=function(t){var e=Qr();return this.bitwiseTo(t,pn,e),e},Zr.prototype.not=function(){for(var t=Qr(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},Zr.prototype.shiftLeft=function(t){var e=Qr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},Zr.prototype.shiftRight=function(t){var e=Qr();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},Zr.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+dn(this[t]);return this.s<0?this.t*this.DB:-1},Zr.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=gn(this[r]^e);return t},Zr.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},Zr.prototype.setBit=function(t){return this.changeBit(t,cn)},Zr.prototype.clearBit=function(t){return this.changeBit(t,pn)},Zr.prototype.flipBit=function(t){return this.changeBit(t,ln)},Zr.prototype.add=function(t){var e=Qr();return this.addTo(t,e),e},Zr.prototype.subtract=function(t){var e=Qr();return this.subTo(t,e),e},Zr.prototype.multiply=function(t){var e=Qr();return this.multiplyTo(t,e),e},Zr.prototype.divide=function(t){var e=Qr();return this.divRemTo(t,e,null),e},Zr.prototype.remainder=function(t){var e=Qr();return this.divRemTo(t,null,e),e},Zr.prototype.divideAndRemainder=function(t){var e=Qr(),r=Qr();return this.divRemTo(t,e,r),new Array(e,r)},Zr.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=sn(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new hn(e):e.isEven()?new mn(e):new un(e);var s=new Array,a=3,h=r-1,u=(1<<r)-1;if(s[1]=n.convert(this),r>1){var f=Qr();for(n.sqrTo(s[1],f);a<=u;)s[a]=Qr(),n.mulTo(f,s[a-2],s[a]),a+=2}var c,l,p=t.t-1,d=!0,g=Qr();for(i=an(t[p])-1;p>=0;){for(i>=h?c=t[p]>>i-h&u:(c=(t[p]&(1<<i+1)-1)<<h-i,p>0&&(c|=t[p-1]>>this.DB+i-h)),a=r;!(1&c);)c>>=1,--a;if((i-=a)<0&&(i+=this.DB,--p),d)s[c].copyTo(o),d=!1;else{for(;a>1;)n.sqrTo(o,g),n.sqrTo(g,o),a-=2;a>0?n.sqrTo(o,g):(l=o,o=g,g=l),n.mulTo(g,s[c],o)}for(;p>=0&&!(t[p]&1<<i);)n.sqrTo(o,g),l=o,o=g,g=l,--i<0&&(i=this.DB-1,--p)}return n.revert(o)},Zr.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return Zr.ZERO;for(var r=t.clone(),n=this.clone(),i=sn(1),o=sn(0),s=sn(0),a=sn(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),e?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);r.compareTo(n)>=0?(r.subTo(n,r),e&&i.subTo(s,i),o.subTo(a,o)):(n.subTo(r,n),e&&s.subTo(i,s),a.subTo(o,a))}return 0!=n.compareTo(Zr.ONE)?Zr.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},Zr.prototype.pow=function(t){return this.exp(t,new yn)},Zr.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},Zr.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=Sn[Sn.length-1]){for(e=0;e<Sn.length;++e)if(r[0]==Sn[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<Sn.length;){for(var n=Sn[e],i=e+1;i<Sn.length&&n<Dn;)n*=Sn[i++];for(n=r.modInt(n);e<i;)if(n%Sn[e++]==0)return!1}return r.millerRabin(t)},Zr.prototype.square=function(){var t=Qr();return this.squareTo(t),t},Zr.prototype.Barrett=mn,null==An){var Mn;if(An=new Array,vn=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var Fn=new Uint8Array(32);for(window.crypto.getRandomValues(Fn),Mn=0;Mn<32;++Mn)An[vn++]=Fn[Mn]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var Cn=window.crypto.random(32);for(Mn=0;Mn<Cn.length;++Mn)An[vn++]=255&Cn.charCodeAt(Mn)}for(;vn<In;)Mn=Math.floor(65536*Math.random()),An[vn++]=Mn>>>8,An[vn++]=255&Mn;vn=0,En()}function Tn(){if(null==bn){for(En(),(bn=new On).init(An),vn=0;vn<An.length;++vn)An[vn]=0;vn=0}return bn.next()}function Bn(){}function On(){this.i=0,this.j=0,this.S=new Array}Bn.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=Tn()},On.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},On.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var In=256,Rn=Object.freeze({__proto__:null,BigInteger:Zr,SecureRandom:Bn});const{BigInteger:_n}=Rn;class xn{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 t=this.v.length/2;let e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;return(128+e.length/2).toString(16)+e}getValue(){return""}}class Nn extends xn{constructor(t){super(),this.t="02",t&&(this.v=function(t){let e=t.toString(16);if("-"!==e[0])e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{e=e.substr(1);let r=e.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);let n="";for(let t=0;t<r;t++)n+="f";n=new _n(n,16),e=n.xor(t).add(_n.ONE),e=e.toString(16).replace(/^-/,"")}return e}(t))}getValue(){return this.v}}class Un extends xn{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map((t=>t.getEncodedHex())).join(""),this.v}}function Pn(t,e){return+t[e+2]<8?1:128&+t.substr(e+2,2)}function kn(t,e){const r=Pn(t,e),n=t.substr(e+2,2*r);if(!n)return-1;return(+n[0]<8?new _n(n,16):new _n(n.substr(2),16)).intValue()}function zn(t,e){return e+2*(Pn(t,e)+1)}var jn=Object.freeze({__proto__:null,decodeDer:function(t){const e=zn(t,0),r=zn(t,e),n=kn(t,e),i=t.substr(r,2*n),o=r+i.length,s=zn(t,o),a=kn(t,o),h=t.substr(s,2*a);return{r:new _n(i,16),s:new _n(h,16)}},encodeDer:function(t,e){const r=new Nn(t),n=new Nn(e);return new Un([r,n]).getEncodedHex()}});const{BigInteger:Ln}=Rn,$n=new Ln("2"),Hn=new Ln("3");class qn{constructor(t,e){this.x=e,this.q=t}equals(t){return t===this||this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new qn(this.q,this.x.negate().mod(this.q))}add(t){return new qn(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new qn(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new qn(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new qn(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new qn(this.q,this.x.square().mod(this.q))}}class Yn{constructor(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=null==n?Ln.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(t){if(t===this)return!0;if(this.isInfinity())return t.isInfinity();if(t.isInfinity())return this.isInfinity();if(!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ln.ZERO))return!1;return t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ln.ZERO)}isInfinity(){return null===this.x&&null===this.y||this.z.equals(Ln.ZERO)&&!this.y.toBigInteger().equals(Ln.ZERO)}negate(){return new Yn(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=this.z,i=t.x.toBigInteger(),o=t.y.toBigInteger(),s=t.z,a=this.curve.q,h=e.multiply(s).mod(a),u=i.multiply(n).mod(a),f=h.subtract(u),c=r.multiply(s).mod(a),l=o.multiply(n).mod(a),p=c.subtract(l);if(Ln.ZERO.equals(f))return Ln.ZERO.equals(p)?this.twice():this.curve.infinity;const d=h.add(u),g=n.multiply(s).mod(a),y=f.square().mod(a),w=f.multiply(y).mod(a),m=g.multiply(p.square()).subtract(d.multiply(y)).mod(a),b=f.multiply(m).mod(a),A=p.multiply(y.multiply(h).subtract(m)).subtract(c.multiply(w)).mod(a),v=w.multiply(g).mod(a);return new Yn(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(A),v)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),e=this.y.toBigInteger(),r=this.z,n=this.curve.q,i=this.curve.a.toBigInteger(),o=t.square().multiply(Hn).add(i.multiply(r.square())).mod(n),s=e.shiftLeft(1).multiply(r).mod(n),a=e.square().mod(n),h=a.multiply(t).multiply(r).mod(n),u=s.square().mod(n),f=o.square().subtract(h.shiftLeft(3)).mod(n),c=s.multiply(f).mod(n),l=o.multiply(h.shiftLeft(2).subtract(f)).subtract(u.shiftLeft(1).multiply(a)).mod(n),p=s.multiply(u).mod(n);return new Yn(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(l),p)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const e=t.multiply(Hn),r=this.negate();let n=this;for(let i=e.bitLength()-2;i>0;i--){n=n.twice();const o=e.testBit(i);o!==t.testBit(i)&&(n=n.add(o?this:r))}return n}}var Wn=Object.freeze({__proto__:null,ECCurveFp:class{constructor(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new Yn(this,null,null)}equals(t){return t===this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new qn(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new Ln(t.substr(2),16));let r=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Ln("4")).add(Ln.ONE),this.q));return r.toBigInteger().mod($n).equals(new Ln(t.substr(0,2),16).subtract($n))||(r=r.negate()),new Yn(this,e,r);case 4:case 6:case 7:const n=(t.length-2)/2,i=t.substr(2,n),o=t.substr(n+2,n);return new Yn(this,this.fromBigInteger(new Ln(i,16)),this.fromBigInteger(new Ln(o,16)));default:return null}}},ECPointFp:Yn});const{BigInteger:Vn,SecureRandom:Jn}=Rn,{ECCurveFp:Kn}=Wn,Zn=new Jn,{curve:Qn,G:Xn,n:Gn}=ei();function ti(){return Qn}function ei(){const t=new Vn("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),e=new Vn("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),r=new Vn("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new Kn(t,e,r),i=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:i,n:new Vn("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function ri(t,e,r){const n=(t?new Vn(t,e,r):new Vn(Gn.bitLength(),Zn)).mod(Gn.subtract(Vn.ONE)).add(Vn.ONE),i=ii(n.toString(16),64),o=Xn.multiply(n);return{privateKey:i,publicKey:"04"+ii(o.getX().toBigInteger().toString(16),64)+ii(o.getY().toBigInteger().toString(16),64)}}function ni(t){const e=(t=unescape(encodeURIComponent(t))).length,r=[];for(let n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;const n=[];for(let t=0;t<e;t++){const e=r[t>>>2]>>>24-t%4*8&255;n.push((e>>>4).toString(16)),n.push((15&e).toString(16))}return n.join("")}function ii(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t}function oi(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")}function si(t){const e=[];let r=t.length;r%2!=0&&(t=ii(t,r+1)),r=t.length;for(let n=0;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return e}const ai=new Uint32Array(68),hi=new Uint32Array(64);function ui(t,e){const r=31&e;return t<<r|t>>>32-r}function fi(t,e){const r=[];for(let n=t.length-1;n>=0;n--)r[n]=255&(t[n]^e[n]);return r}function ci(t){return t^ui(t,9)^ui(t,17)}function li(t){let e=8*t.length,r=e%512;r=r>=448?512-r%448-1:448-r-1;const n=new Array((r-7)/8),i=new Array(8);for(let t=0,e=n.length;t<e;t++)n[t]=0;for(let t=0,e=i.length;t<e;t++)i[t]=0;e=e.toString(2);for(let t=7;t>=0;t--)if(e.length>8){const r=e.length-8;i[t]=parseInt(e.substr(r),2),e=e.substr(0,r)}else e.length>0&&(i[t]=parseInt(e,2),e="");const o=new Uint8Array([...t,128,...n,...i]),s=new DataView(o.buffer,0),a=o.length/64,h=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let t=0;t<a;t++){ai.fill(0),hi.fill(0);const e=16*t;for(let t=0;t<16;t++)ai[t]=s.getUint32(4*(e+t),!1);for(let t=16;t<68;t++)ai[t]=(u=ai[t-16]^ai[t-9]^ui(ai[t-3],15))^ui(u,15)^ui(u,23)^ui(ai[t-13],7)^ai[t-6];for(let t=0;t<64;t++)hi[t]=ai[t]^ai[t+4];const r=2043430169,n=2055708042;let i,o,a,f,c,l=h[0],p=h[1],d=h[2],g=h[3],y=h[4],w=h[5],m=h[6],b=h[7];for(let t=0;t<64;t++)c=t>=0&&t<=15?r:n,i=ui(ui(l,12)+y+ui(c,t),7),o=i^ui(l,12),a=(t>=0&&t<=15?l^p^d:l&p|l&d|p&d)+g+o+hi[t],f=(t>=0&&t<=15?y^w^m:y&w|~y&m)+b+i+ai[t],g=d,d=ui(p,9),p=l,l=a,b=m,m=ui(w,19),w=y,y=ci(f);h[0]^=l,h[1]^=p,h[2]^=d,h[3]^=g,h[4]^=y,h[5]^=w,h[6]^=m,h[7]^=b}var u;const f=[];for(let t=0,e=h.length;t<e;t++){const e=h[t];f.push((4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e)}return f}const pi=64,di=new Uint8Array(pi),gi=new Uint8Array(pi);for(let t=0;t<pi;t++)di[t]=54,gi[t]=92;const{BigInteger:yi}=Rn,{decodeDer:wi,encodeDer:mi}=jn,{G:bi,curve:Ai,n:vi}=ei(),Si=0;function Di(t,e,r=1,{output:n="string"}={}){e=new yi(e,16);let i=t.substr(128,64),o=t.substr(192);r===Si&&(i=t.substr(t.length-64),o=t.substr(128,t.length-128-64));const s=si(o),a=ti().decodePointHex("04"+t.substr(0,128)).multiply(e),h=si(ii(a.getX().toBigInteger().toRadix(16),64)),u=si(ii(a.getY().toBigInteger().toRadix(16),64));let f=1,c=0,l=[];const p=[].concat(h,u),d=()=>{l=li([...p,f>>24&255,f>>16&255,f>>8&255,255&f]),f++,c=0};d();for(let t=0,e=s.length;t<e;t++)c===l.length&&d(),s[t]^=255&l[c++];return oi(li([].concat(h,s,u)))===i.toLowerCase()?"array"===n?s:function(t){const e=[];let r=0;for(let n=0;n<2*t.length;n+=2)e[n>>>3]|=parseInt(t[r],10)<<24-n%8*4,r++;try{const r=[];for(let n=0;n<t.length;n++){const t=e[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(t))}return decodeURIComponent(escape(r.join("")))}catch(t){throw new Error("Malformed UTF-8 data")}}(s):"array"===n?[]:""}function Ei(t,e,r="1234567812345678"){r=ni(r);const n=ii(bi.curve.a.toBigInteger().toRadix(16),64),i=ii(bi.curve.b.toBigInteger().toRadix(16),64),o=ii(bi.getX().toBigInteger().toRadix(16),64),s=ii(bi.getY().toBigInteger().toRadix(16),64);let a,h;if(128===e.length)a=e.substr(0,64),h=e.substr(64,64);else{const t=bi.curve.decodePointHex(e);a=ii(t.getX().toBigInteger().toRadix(16),64),h=ii(t.getY().toBigInteger().toRadix(16),64)}const u=si(r+n+i+o+s+a+h),f=4*r.length;u.unshift(255&f),u.unshift(f>>8&255);const c=li(u);return oi(li(c.concat(si(t))))}function Mi(t){const e=bi.multiply(new yi(t,16));return"04"+ii(e.getX().toBigInteger().toString(16),64)+ii(e.getY().toBigInteger().toString(16),64)}function Fi(){const t=ri(),e=Ai.decodePointHex(t.publicKey);return t.k=new yi(t.privateKey,16),t.x1=e.getX().toBigInteger(),t}const Ci=ri,Ti=function(t){if(130!==t.length)throw new Error("Invalid public key to compress");const e=(t.length-2)/2,r=t.substr(2,e);let n="03";return new Vn(t.substr(e+2,e),16).mod(new Vn("2")).equals(Vn.ZERO)&&(n="02"),n+r},Bi=function(t,e){const r=Qn.decodePointHex(t);if(!r)return!1;const n=Qn.decodePointHex(e);return!!n&&r.equals(n)},Oi=function(t){const e=Qn.decodePointHex(t);if(!e)return!1;const r=e.getX();return e.getY().square().equals(r.multiply(r.square()).add(r.multiply(Qn.a)).add(Qn.b))};var Ii=Object.freeze({__proto__:null,comparePublicKeyHex:function(t,e){return Bi(t,e)},compressPublicKeyHex:function(t){return Ti(t)},decrypt:function(t,e,r=1,n={output:"string"}){return Di(t,e,r,n)},doSignature:function(t,e,r){return function(t,e,{pointPool:r,der:n,hash:i,publicKey:o,userId:s}={}){let a="string"==typeof t?ni(t):oi(t);i&&(a=Ei(a,o=o||Mi(e),s));const h=new yi(e,16),u=new yi(a,16);let f=null,c=null,l=null;do{do{let t;t=r&&r.length?r.pop():Fi(),f=t.k,c=u.add(t.x1).mod(vi)}while(c.equals(yi.ZERO)||c.add(f).equals(vi));l=h.add(yi.ONE).modInverse(vi).multiply(f.subtract(c.multiply(h))).mod(vi)}while(l.equals(yi.ZERO));return n?mi(c,l):ii(c.toString(16),64)+ii(l.toString(16),64)}(t,e,r)},doVerifySignature:function(t,e,r,n){return function(t,e,r,{der:n,hash:i,userId:o}={}){let s,a,h="string"==typeof t?ni(t):oi(t);if(i&&(h=Ei(h,r,o)),n){const t=wi(e);s=t.r,a=t.s}else s=new yi(e.substring(0,64),16),a=new yi(e.substring(64),16);const u=Ai.decodePointHex(r),f=new yi(h,16),c=s.add(a).mod(vi);if(c.equals(yi.ZERO))return!1;const l=bi.multiply(a).add(u.multiply(c)),p=f.add(l.getX().toBigInteger()).mod(vi);return s.equals(p)}(t,e,r,n)},encrypt:function(t,e,r=1){return function(t,e,r=1){t="string"==typeof t?si(ni(t)):Array.prototype.slice.call(t),e=ti().decodePointHex(e);const n=ri(),i=new yi(n.privateKey,16);let o=n.publicKey;o.length>128&&(o=o.substr(o.length-128));const s=e.multiply(i),a=si(ii(s.getX().toBigInteger().toRadix(16),64)),h=si(ii(s.getY().toBigInteger().toRadix(16),64)),u=oi(li([].concat(a,t,h)));let f=1,c=0,l=[];const p=[].concat(a,h),d=()=>{l=li([...p,f>>24&255,f>>16&255,f>>8&255,255&f]),f++,c=0};d();for(let e=0,r=t.length;e<r;e++)c===l.length&&d(),t[e]^=255&l[c++];const g=oi(t);return r===Si?o+g+u:o+u+g}(t,e,r)},generateKeyPairHex:function(t,e){return Ci(t,e)},getPoint:function(){return Fi()},getPublicKeyFromPrivateKey:function(t){return Mi(t)},verifyPublicKey:function(t){return Oi(t)}});function Ri(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")}function _i(t){const e=[];let r=t.length;var n,i;r%2!=0&&(i=r+1,t=(n=t).length>=i?n:new Array(i-n.length+1).join("0")+n),r=t.length;for(let n=0;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return e}function xi(t,e){if(t="string"==typeof t?function(t){const e=[];for(let r=0,n=t.length;r<n;r++){const n=t.codePointAt(r);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>>6),e.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)e.push(224|n>>>12),e.push(128|n>>>6&63),e.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw e.push(n),new Error("input is not supported");r++,e.push(240|n>>>18&28),e.push(128|n>>>12&63),e.push(128|n>>>6&63),e.push(128|63&n)}}return e}(t):Array.prototype.slice.call(t),e){if("hmac"!==(e.mode||"hmac"))throw new Error("invalid mode");let r=e.key;if(!r)throw new Error("invalid key");return r="string"==typeof r?_i(r):Array.prototype.slice.call(r),Ri(function(t,e){for(e.length>pi&&(e=li(e));e.length<pi;)e.push(0);const r=fi(e,di),n=fi(e,gi),i=li([...r,...t]);return li([...n,...i])}(t,r))}return Ri(li(t))}var Ni=Object.freeze({__proto__:null,encrypt:function(t,e){return xi(t,e)}});const Ui=0,Pi=32,ki=16,zi=[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],ji=[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 Li(t){const e=[];for(let r=0,n=t.length;r<n;r+=2)e.push(parseInt(t.substr(r,2),16));return e}function $i(t,e){const r=31&e;return t<<r|t>>>32-r}function Hi(t){return(255&zi[t>>>24&255])<<24|(255&zi[t>>>16&255])<<16|(255&zi[t>>>8&255])<<8|255&zi[255&t]}function qi(t){return t^$i(t,2)^$i(t,10)^$i(t,18)^$i(t,24)}function Yi(t){return t^$i(t,13)^$i(t,23)}function Wi(t,e,r){const n=new Array(4),i=new Array(4);for(let e=0;e<4;e++)i[0]=255&t[4*e],i[1]=255&t[4*e+1],i[2]=255&t[4*e+2],i[3]=255&t[4*e+3],n[e]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(let t,e=0;e<32;e+=4)t=n[1]^n[2]^n[3]^r[e+0],n[0]^=qi(Hi(t)),t=n[2]^n[3]^n[0]^r[e+1],n[1]^=qi(Hi(t)),t=n[3]^n[0]^n[1]^r[e+2],n[2]^=qi(Hi(t)),t=n[0]^n[1]^n[2]^r[e+3],n[3]^=qi(Hi(t));for(let t=0;t<16;t+=4)e[t]=n[3-t/4]>>>24&255,e[t+1]=n[3-t/4]>>>16&255,e[t+2]=n[3-t/4]>>>8&255,e[t+3]=255&n[3-t/4]}function Vi(t,e,r,{padding:n="pkcs#7",mode:i,iv:o=[],output:s="string"}={}){if("cbc"===i&&("string"==typeof o&&(o=Li(o)),16!==o.length))throw new Error("iv is invalid");if("string"==typeof e&&(e=Li(e)),16!==e.length)throw new Error("key is invalid");if(t="string"==typeof t?r!==Ui?function(t){const e=[];for(let r=0,n=t.length;r<n;r++){const n=t.codePointAt(r);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>>6),e.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)e.push(224|n>>>12),e.push(128|n>>>6&63),e.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw e.push(n),new Error("input is not supported");r++,e.push(240|n>>>18&28),e.push(128|n>>>12&63),e.push(128|n>>>6&63),e.push(128|63&n)}}return e}(t):Li(t):[...t],("pkcs#5"===n||"pkcs#7"===n)&&r!==Ui){const e=ki-t.length%ki;for(let r=0;r<e;r++)t.push(e)}const a=new Array(Pi);!function(t,e,r){const n=new Array(4),i=new Array(4);for(let e=0;e<4;e++)i[0]=255&t[0+4*e],i[1]=255&t[1+4*e],i[2]=255&t[2+4*e],i[3]=255&t[3+4*e],n[e]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let t,r=0;r<32;r+=4)t=n[1]^n[2]^n[3]^ji[r+0],e[r+0]=n[0]^=Yi(Hi(t)),t=n[2]^n[3]^n[0]^ji[r+1],e[r+1]=n[1]^=Yi(Hi(t)),t=n[3]^n[0]^n[1]^ji[r+2],e[r+2]=n[2]^=Yi(Hi(t)),t=n[0]^n[1]^n[2]^ji[r+3],e[r+3]=n[3]^=Yi(Hi(t));if(r===Ui)for(let t,r=0;r<16;r++)t=e[r],e[r]=e[31-r],e[31-r]=t}(e,a,r);const h=[];let u=o,f=t.length,c=0;for(;f>=ki;){const e=t.slice(c,c+16),n=new Array(16);if("cbc"===i)for(let t=0;t<ki;t++)r!==Ui&&(e[t]^=u[t]);Wi(e,n,a);for(let t=0;t<ki;t++)"cbc"===i&&r===Ui&&(n[t]^=u[t]),h[c+t]=n[t];"cbc"===i&&(u=r!==Ui?n:e),f-=ki,c+=ki}if(("pkcs#5"===n||"pkcs#7"===n)&&r===Ui){const t=h.length,e=h[t-1];for(let r=1;r<=e;r++)if(h[t-r]!==e)throw new Error("padding is invalid");h.splice(t-e,e)}return"array"!==s?r!==Ui?h.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join(""):function(t){const e=[];for(let r=0,n=t.length;r<n;r++)t[r]>=240&&t[r]<=247?(e.push(String.fromCodePoint(((7&t[r])<<18)+((63&t[r+1])<<12)+((63&t[r+2])<<6)+(63&t[r+3]))),r+=3):t[r]>=224&&t[r]<=239?(e.push(String.fromCodePoint(((15&t[r])<<12)+((63&t[r+1])<<6)+(63&t[r+2]))),r+=2):t[r]>=192&&t[r]<=223?(e.push(String.fromCodePoint(((31&t[r])<<6)+(63&t[r+1]))),r++):e.push(String.fromCodePoint(t[r]));return e.join("")}(h):h}var Ji=Object.freeze({__proto__:null,decrypt:function(t,e,r){return function(t,e,r){return Vi(t,e,0,r)}(t,e,r)},encrypt:function(t,e,r){return function(t,e,r){return Vi(t,e,1,r)}(t,e,r)}});const{encode:Ki,decode:Zi,utf8Decode:Qi,utf8Encode:Xi}=lt;class Gi{static cipher(t,e){const r=e.length/4-1;let n=[[],[],[],[]];for(let e=0;e<16;e++)n[e%4][Math.floor(e/4)]=t[e];n=Gi.addRoundKey(n,e,0,4);for(let t=1;t<r;t++)n=Gi.subBytes(n,4),n=Gi.shiftRows(n,4),n=Gi.mixColumns(n,4),n=Gi.addRoundKey(n,e,t,4);n=Gi.subBytes(n,4),n=Gi.shiftRows(n,4),n=Gi.addRoundKey(n,e,r,4);const i=new Array(16);for(let t=0;t<16;t++)i[t]=n[t%4][Math.floor(t/4)];return i}static keyExpansion(t){const e=t.length/4,r=e+6,n=new Array(4*(r+1));let i=new Array(4);for(let r=0;r<e;r++){const e=[t[4*r],t[4*r+1],t[4*r+2],t[4*r+3]];n[r]=e}for(let t=e;t<4*(r+1);t++){n[t]=new Array(4);for(let e=0;e<4;e++)i[e]=n[t-1][e];if(t%e==0){i=Gi.subWord(Gi.rotWord(i));for(let r=0;r<4;r++)i[r]^=Gi.rCon[t/e][r]}else e>6&&t%e==4&&(i=Gi.subWord(i));for(let r=0;r<4;r++)n[t][r]=n[t-e][r]^i[r]}return n}static subBytes(t,e){for(let r=0;r<4;r++)for(let n=0;n<e;n++)t[r][n]=Gi.sBox[t[r][n]];return t}static shiftRows(t,e){const r=new Array(4);for(let n=1;n<4;n++){for(let i=0;i<4;i++)r[i]=t[n][(i+n)%e];for(let e=0;e<4;e++)t[n][e]=r[e]}return t}static mixColumns(t,e){for(let r=0;r<e;r++){const n=new Array(e),i=new Array(e);for(let e=0;e<4;e++)n[e]=t[e][r],i[e]=128&t[e][r]?t[e][r]<<1^283:t[e][r]<<1;t[0][r]=i[0]^n[1]^i[1]^n[2]^n[3],t[1][r]=n[0]^i[1]^n[2]^i[2]^n[3],t[2][r]=n[0]^n[1]^i[2]^n[3]^i[3],t[3][r]=n[0]^i[0]^n[1]^n[2]^i[3]}return t}static addRoundKey(t,e,r,n){for(let i=0;i<4;i++)for(let o=0;o<n;o++)t[i][o]^=e[4*r+o][i];return t}static subWord(t){for(let e=0;e<4;e++)t[e]=Gi.sBox[t[e]];return t}static rotWord(t){const e=t[0];for(let e=0;e<3;e++)t[e]=t[e+1];return t[3]=e,t}}Gi.sBox=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Gi.rCon=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];class to extends Gi{static encrypt(t,e,r){if(![128,192,256].includes(r))throw new Error("Key size is not 128 / 192 / 256");t=to.utf8Encode(String(t)),e=to.utf8Encode(String(e));const n=r/8,i=new Array(n);for(let t=0;t<n;t++)i[t]=t<e.length?e.charCodeAt(t):0;let o=Gi.cipher(i,Gi.keyExpansion(i));o=o.concat(o.slice(0,n-16));const s=(new Date).getTime(),a=s%1e3,h=Math.floor(s/1e3),u=Math.floor(65535*Math.random()),f=[255&a,a>>>8&255,255&u,u>>>8&255,255&h,h>>>8&255,h>>>16&255,h>>>24&255,0,0,0,0,0,0,0,0],c=f.slice(0,8).map((t=>String.fromCharCode(t))).join(""),l=t.split("").map((t=>t.charCodeAt(0))),p=to.nistEncryption(l,o,f).map((t=>String.fromCharCode(t))).join("");return to.base64Encode(c+p)}static nistEncryption(t,e,r){const n=16,i=Gi.keyExpansion(e),o=Math.ceil(t.length/n),s=new Array(t.length);for(let e=0;e<o;e++){const a=Gi.cipher(r,i),h=e<o-1?n:(t.length-1)%n+1;for(let r=0;r<h;r++)s[e*n+r]=a[r]^t[e*n+r];r[15]++;for(let t=15;t>=8;t--)r[t-1]+=r[t]>>8,r[t]&=255;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&e%1e3==0&&self.postMessage({progress:e/o})}return s}static decrypt(t,e,r){if(![128,192,256].includes(r))throw new Error("Key size is not 128 / 192 / 256");t=to.base64Decode(String(t)),e=to.utf8Encode(String(e));const n=r/8,i=new Array(n);for(let t=0;t<n;t++)i[t]=t<e.length?e.charCodeAt(t):0;let o=Gi.cipher(i,Gi.keyExpansion(i));o=o.concat(o.slice(0,n-16));const s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(let e=0;e<8;e++)s[e]=t.charCodeAt(e);const a=new Array(t.length-8);for(let e=8;e<t.length;e++)a[e-8]=t.charCodeAt(e);const h=to.nistDecryption(a,o,s).map((t=>String.fromCharCode(t))).join("");return to.utf8Decode(h)}static nistDecryption(t,e,r){const n=16,i=Gi.keyExpansion(e),o=Math.ceil(t.length/n),s=new Array(t.length);for(let e=0;e<o;e++){const a=Gi.cipher(r,i),h=e<o-1?n:(t.length-1)%n+1;for(let r=0;r<h;r++)s[e*n+r]=a[r]^t[e*n+r];r[15]++;for(let t=15;t>=8;t--)r[t-1]+=r[t]>>8,r[t]&=255;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&e%1e3==0&&self.postMessage({progress:e/o})}return s}static utf8Encode(t){return Xi(t)}static utf8Decode(t){return Qi(t)}static base64Encode(t){return Ki(t)}static base64Decode(t){return Zi(t)}}var eo=Object.freeze({__proto__:null,decrypt:function(t,e,r){return to.decrypt(t,e,r)},encrypt:function(t,e,r=256){return to.encrypt(t,e,r)}});const{encode:ro,decode:no}=lt;function io(t,e){this.key=t,this.value=e}io.prototype._DesCreate=function(t,e,r){var n=e;if("decrypt"===r){for(var i="",o="0x"==e.substr(0,2)?2:0;o<e.length;o+=2)i+=String.fromCharCode(parseInt(e.substr(o,2),16));n=i}var s,a,h,u,f,c,l,p,d,g=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),y=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),w=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),m=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),b=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),A=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),v=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),S=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),D=this._DesCreateKeys(t),E=0,M=n.length,F=0,C=32==D.length?3:9;l=3==C?"encrypt"===r?new Array(0,32,2):new Array(30,-2,-2):"encrypt"===r?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2);for(var T="",B="";E<M;){for(f=n.charCodeAt(E++)<<24|n.charCodeAt(E++)<<16|n.charCodeAt(E++)<<8|n.charCodeAt(E++),f^=(a=252645135&(f>>>4^(c=n.charCodeAt(E++)<<24|n.charCodeAt(E++)<<16|n.charCodeAt(E++)<<8|n.charCodeAt(E++))))<<4,f^=(a=65535&(f>>>16^(c^=a)))<<16,f^=a=858993459&((c^=a)>>>2^f),f^=a=16711935&((c^=a<<2)>>>8^f),f=(f^=(a=1431655765&(f>>>1^(c^=a<<8)))<<1)<<1|f>>>31,c=(c^=a)<<1|c>>>31,s=0;s<C;s+=3){for(p=l[s+1],d=l[s+2],o=l[s];o!=p;o+=d)h=c^D[o],u=(c>>>4|c<<28)^D[o+1],a=f,f=c,c=a^(y[h>>>24&63]|m[h>>>16&63]|A[h>>>8&63]|S[63&h]|g[u>>>24&63]|w[u>>>16&63]|b[u>>>8&63]|v[63&u]);a=f,f=c,c=a}c=c>>>1|c<<31,c^=a=1431655765&((f=f>>>1|f<<31)>>>1^c),c^=(a=16711935&(c>>>8^(f^=a<<1)))<<8,c^=(a=858993459&(c>>>2^(f^=a)))<<2,c^=a=65535&((f^=a)>>>16^c),c^=a=252645135&((f^=a<<16)>>>4^c),f^=a<<4,B+=String.fromCharCode(f>>>24,f>>>16&255,f>>>8&255,255&f,c>>>24,c>>>16&255,c>>>8&255,255&c),512==(F+=8)&&(T+=B,B="",F=0)}var O=T+B;if("encrypt"===r){var I="",R=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");for(o=0;o<O.length;o++)I+=R[O.charCodeAt(o)>>4]+R[15&O.charCodeAt(o)];return I}return T+B},io.prototype._DesCreateKeys=function(t){for(var e,r,n,i=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),o=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),s=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),a=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),h=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),u=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),f=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),c=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),l=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),p=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),d=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),g=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),y=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),w=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261),m=t.length>8?3:1,b=new Array(32*m),A=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),v=0,S=0,D=0;D<m;D++){var E=t.charCodeAt(v++)<<24|t.charCodeAt(v++)<<16|t.charCodeAt(v++)<<8|t.charCodeAt(v++),M=t.charCodeAt(v++)<<24|t.charCodeAt(v++)<<16|t.charCodeAt(v++)<<8|t.charCodeAt(v++);E^=(n=252645135&(E>>>4^M))<<4,E^=n=65535&((M^=n)>>>-16^E),E^=(n=858993459&(E>>>2^(M^=n<<-16)))<<2,E^=n=65535&((M^=n)>>>-16^E),E^=(n=1431655765&(E>>>1^(M^=n<<-16)))<<1,E^=n=16711935&((M^=n)>>>8^E),n=(E^=(n=1431655765&(E>>>1^(M^=n<<8)))<<1)<<8|(M^=n)>>>20&240,E=M<<24|M<<8&16711680|M>>>8&65280|M>>>24&240,M=n;for(var F=0;F<A.length;F++)A[F]?(E=E<<2|E>>>26,M=M<<2|M>>>26):(E=E<<1|E>>>27,M=M<<1|M>>>27),M&=-15,e=i[(E&=-15)>>>28]|o[E>>>24&15]|s[E>>>20&15]|a[E>>>16&15]|h[E>>>12&15]|u[E>>>8&15]|f[E>>>4&15],n=65535&((r=c[M>>>28]|l[M>>>24&15]|p[M>>>20&15]|d[M>>>16&15]|g[M>>>12&15]|y[M>>>8&15]|w[M>>>4&15])>>>16^e),b[S++]=e^n,b[S++]=r^n<<16}return b},io.prototype.encrypt=function(t,e){var r=ro(e);return this._DesCreate(t,r,"encrypt")},io.prototype.decrypt=function(t,e){var r=this._DesCreate(t,e,"decrypt");return no(r)};var oo=Object.freeze({__proto__:null,decrypt:function(t,e){return new io(e,t).decrypt(e,t)},encrypt:function(t,e){return new io(e,t).encrypt(e,t)}});class so{static encrypt(t,e){if(t=String(t),e=String(e),0==t.length)return"";const r=so.strToLongs(so.utf8Encode(t)),n=so.strToLongs(so.utf8Encode(e).slice(0,16)),i=so.encode(r,n),o=so.longsToStr(i);return so.base64Encode(o)}static decrypt(t,e){if(t=String(t),e=String(e),0==t.length)return"";const r=so.strToLongs(so.base64Decode(t)),n=so.strToLongs(so.utf8Encode(e).slice(0,16)),i=so.decode(r,n),o=so.longsToStr(i);return so.utf8Decode(o.replace(/\0+$/,""))}static encode(t,e){t.length<2&&(t[1]=0);const r=t.length;let n,i,o=Math.floor(6+52/r),s=t[r-1],a=t[0],h=0;for(;o-- >0;){h+=2654435769,i=h>>>2&3;for(let o=0;o<r;o++)a=t[(o+1)%r],n=(s>>>5^a<<2)+(a>>>3^s<<4)^(h^a)+(e[3&o^i]^s),s=t[o]+=n}return t}static decode(t,e){const r=t.length,n=2654435769,i=Math.floor(6+52/r);let o,s,a=t[r-1],h=t[0],u=i*n;for(;0!=u;){s=u>>>2&3;for(let n=r-1;n>=0;n--)a=t[n>0?n-1:r-1],o=(a>>>5^h<<2)+(h>>>3^a<<4)^(u^h)+(e[3&n^s]^a),h=t[n]-=o;u-=n}return t}static strToLongs(t){const e=new Array(Math.ceil(t.length/4));for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(4*r)+(t.charCodeAt(4*r+1)<<8)+(t.charCodeAt(4*r+2)<<16)+(t.charCodeAt(4*r+3)<<24);return e}static longsToStr(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(255&t[r],t[r]>>>8&255,t[r]>>>16&255,t[r]>>>24&255);return e}static utf8Encode(t){return unescape(encodeURIComponent(t))}static utf8Decode(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}static base64Encode(t){if("undefined"!=typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return new Buffer(t,"binary").toString("base64");throw new Error("No Base64 Encode")}static base64Decode(t){if("undefined"==typeof atob&&"undefined"==typeof Buffer)throw new Error("No base64 decode");try{if("undefined"!=typeof atob)return atob(t);if("undefined"!=typeof Buffer)return new Buffer(t,"base64").toString("binary")}catch(t){throw new Error("Invalid ciphertext")}}}var ao=Object.freeze({__proto__:null,decrypt:function(t,e){return so.decrypt(t,e)},encrypt:function(t,e){return so.encrypt(t,e)}});function ho(t,e,r){if(e>(t=String(t)).length)return t;let n="";return r<0&&(r=0),r>t.length-e&&(r=t.length-e),n=String().padEnd(r,"*"),t.substring(0,e)+n+t.substring(e+r)}function uo(t){if(!g(t))return 15===t.length?"19"+t.substring(6,8)+"-"+t.substring(8,10)+"-"+t.substring(10,12):18===t.length?t.substring(6,10)+"-"+t.substring(10,12)+"-"+t.substring(12,14):void 0}function fo(t){if(g(t))return;return P(j(uo(t)))}function co(t){if(!g(t))return 15===t.length?Number(t.substring(14))%2==0?s.SEX.WOMAN:s.SEX.MAN:18===t.length?Number(t.substring(16,17))%2==0?s.SEX.WOMAN:s.SEX.MAN:void 0}function lo(t){if(!g(t))return s.PROVINCE[t.substring(0,2)]}function po(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7}){return Math.ceil((t.total||0)/(t.pageSize||0))}function go(t=window.location.href){let e=t.match(n.URL);if(e)return e[5]||""}function yo(t=window.location.href){let e=go(t).split("&"),r={};for(let t=0;t<e.length;t++){let n=e[t].split("=");r[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return r}function wo(t,e=void 0){if("object"!=typeof t)return t;let r=[];for(let e in t){let n=t[e];if(f(n))for(let t=0;t<n.length;++t)r.push(encodeURIComponent(e+"["+t+"]")+"="+encodeURIComponent(n[t]));else r.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]))}return e?e.replace(/(\?.+?)(?=#|$)/,"?"+r.join("&")):r.join("&")}function mo(t,e,r=864e5){"undefined"!=typeof document&&(document.cookie=t+"="+e+";expires="+new Date(Date.now()+r))}function bo(t,e){return t.className.indexOf(e)>0}function Ao(t,e){bo(t,e)||(t.className+=" "+e)}function vo(t,e){bo(t,e)&&(t.className=t.className.replace(new RegExp(e,"gm"),""))}function So(){let t=window.navigator.userAgent;return/Android|webOS|iPhone|iPod|BlackBerry|Windows Phone|IEMobile/i.test(t)}function Do(t){return new Promise(((e,r)=>{window.navigator.clipboard?window.navigator.clipboard.writeText(t).then((t=>{e(!0)}),(t=>{r(!1)})):console.warn("not support navigator clipboard!")}))}t.DATE=i,t.ID_CARD=s,t.KEYCODE=o,t.LANG={ZH:"zh",EN:"en"},t.MATH=r,t.REGEXP=n,t.SORT=e,t.add=function(t,e){let r,n,i;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),(t*i+e*i)/i},t.addClass=Ao,t.addDate=k,t.addHours=function(t=new Date,e=1){return t.setHours(t.getHours()+e),t},t.addMillisecond=function(t=new Date,e=100){return t.setMilliseconds(t.getMilliseconds()+e),t},t.addMinutes=function(t=new Date,e=1){return t.setMinutes(t.getMinutes()+e),t},t.addMonth=function(t=new Date,e=1){return t.setMonth(t.getMonth()+e),t},t.addQuarter=function(t=new Date,e=1){return t.setMonth(t.getMonth()+4*e),t},t.addSeconds=function(t=new Date,e=1){return t.setSeconds(t.getSeconds()+e),t},t.addStyle=function(t,e={}){if(t)for(let r in e)t.style[r]=e[r]},t.addWeek=function(t=new Date,e=1){return t.setDate(t.getDate()+7*e),t},t.addYear=function(t=new Date,e=1){return t.setFullYear(t.getFullYear()+e),t},t.aes=eo,t.appendSearchParam=function(t=window.location.href,e,r){let n=go(t).split("&");return n.push(`${e}=${r}`),t.replace(/(\?.+?)(?=#|$)/,"?"+n.join("&"))},t.appendToSearchParam=function(t=window.location.href,e,r,n){let i=go(t).split("&"),o=i.findIndex((t=>t.includes(e))),s=S(i,o,`${r}=${n}`);return t.replace(/(\?.+?)(?=#|$)/,"?"+s.join("&"))},t.arrayAvg=function(t){return A(t)/t.length},t.arrayBottom=function(t=[],e=0){return e<0||e>t.length-1||t.push(t.splice(e,1)[0]),t},t.arrayComplement=function(t,e){return[...[...new Set(t)].filter((t=>!e.includes(t))),...[...new Set(e)].filter((e=>!t.includes(e)))]},t.arrayCreate=function(t=0){return[...Array(t).keys()]},t.arrayDifference=function(t,e){return[...new Set(t)].filter((t=>!e.includes(t)))},t.arrayDown=function(t=[],e=0){return e<0||e>t.length-1||(e<t.length-1?t.splice(e+1,0,t.splice(e,1)[0]):t.unshift(t.splice(e,1)[0])),t},t.arrayEquals=function(t,e){return t===e||t.length===e.length&&t.every(((t,r)=>t===e[r]))},t.arrayInsert=function(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t},t.arrayInsertAfter=S,t.arrayInsertBefore=v,t.arrayIntersect=function(t,e){return[...new Set(t)].filter((t=>e.includes(t)))},t.arrayMax=function(t){return Math.max.apply(null,t)},t.arrayMin=function(t){return Math.min.apply(null,t)},t.arrayRemove=function(t=[],e=0){return e<0||e>t.length-1||t.splice(e,1),t},t.arrayRemoveAfter=function(t=[],e=0){return e<0||e>t.length-1||t.splice(e+1,1),t},t.arrayRemoveBefore=function(t=[],e=0){return e<=0||e>t.length-1||t.splice(e-1,1),t},t.arrayShuffle=function(t){for(let e=1;e<t.length;e++){const r=Math.floor(Math.random()*(e+1));[t[r],t[e]]=[t[e],t[r]]}return t},t.arraySort=function(t,r=e.ASC){return t.sort(((n,i)=>{switch(r){case e.ASC:return n-i;case e.DESC:return i-n;case e.RANDOM:return Math.random()-.5;default:return t}}))},t.arraySortBy=function(t,e){return t.sort(((t,r)=>{for(let n of e){let e="",i="asc";if(c(n)?(e=n.prop,i=n.order||"asc"):(e=n,i="asc"),t[e]<r[e])return"asc"===i?-1:1;if(t[e]>r[e])return"asc"===i?1:-1}return 0}))},t.arraySum=A,t.arraySwap=function(t,e,r){return e<0||r<0||e>t.length-1||r>t.length-1||([t[r],t[e]]=[t[e],t[r]]),t},t.arrayToTree=function(t,e={key:"id",parentKey:"pid",childrenKey:"children"}){let r=e.key,n=e.parentKey,i=e.childrenKey;if(!t||0===t.length||!r||""===r)return[];const o=function(t,e,r){return t?(void 0!==r&&(t[e]=r),t[e]):null};let s=[],a={};for(let e=0;e<t.length;e++)t[e][i]&&delete t[e][i],a[t[e][r]]=t[e];for(let e=0;e<t.length;e++){let h=a[t[e][n]];if(h&&t[e][r]!==t[e][n]){let r=o(h,i);r||(r=o(h,i,[])),r.push(t[e])}else s.push(t[e])}return s},t.arrayTop=function(t=[],e=0){return e<0||e>t.length-1||t.unshift(t.splice(e,1)[0]),t},t.arrayUnion=function(t,e){return[...new Set(t.concat(e))]},t.arrayUnique=function(t){return y(t)?[]:Array.from(new Set(t))},t.arrayUp=function(t=[],e=0){return e<0||e>t.length-1||(e>0?t.splice(e-1,0,t.splice(e,1)[0]):t.push(t.splice(e,1)[0])),t},t.base32=vt,t.base64=lt,t.base64ToBlob=function(t){return new Promise(((e,r)=>{try{const r=t.split(","),n=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]);let o=i.length;const s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);e(new Blob([s],{type:n}))}catch(t){console.error(t),r(t)}}))},t.base64ToFile=function(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.split(","),i=n[0].match(/:(.*?);/)[1],o=i.split("/")[1],s=window.atob(n[1]);let a=s.length;const h=new Uint8Array(a);for(;a--;)h[a]=s.charCodeAt(a);r(new File([h],`${e}.${o}`,{type:i}))}catch(t){console.error(t),n(t)}}))},t.blobToBase64=function(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))},t.blobToFile=q,t.blobToText=Y,t.clearClipboard=function(){return new Promise((async(t,e)=>{await Do(""),t(!0)}))},t.clearCookie=function(t=document.domain){let e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let r=e.length;r--;)document.cookie=e[r]+"=0;path=/;"+t?"domain="+t+";":"expires="+new Date(0).toUTCString()},t.clearLocalStorage=function(){window.localStorage.clear()},t.clearSessionStorage=function(){window.sessionStorage.clear()},t.clearStorage=function(){return new Promise(((t,e)=>{wx.clearStorage({success(e){t(e)},fail(t){e(t)}})}))},t.clearStorageSync=function(){wx.clearStorageSync()},t.clone=function(t){return Object.assign(t)},t.debounce=function(t,e=1e3,r=!0){let n;return function(){const i=arguments;if(n&&clearTimeout(n),r){const r=!n;n=setTimeout((function(){n=null}),e),r&&t.apply(this,i)}else n=setTimeout((function(){t.apply(this,i)}),e)}},t.deepClone=function t(e){if(c(e)){let r={};for(let n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n]));return r}if(f(e)){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=t(e[n]);return r}if(l(e)){let t=new Date;return t.setTime(e.getTime()),t}return e},t.deepCompare=function(t,e){let r,n,i,o;function s(t,e){let r;if(d(t)&&d(e)&&"number"==typeof t&&"number"==typeof e)return!0;if(t===e)return!0;if("function"==typeof t&&"function"==typeof e||t instanceof Date&&e instanceof Date||t instanceof RegExp&&e instanceof RegExp||t instanceof String&&e instanceof String||t instanceof Number&&e instanceof Number)return t.toString()===e.toString();if(!(t instanceof Object&&e instanceof Object))return!1;if(t.isPrototypeOf(e)||e.isPrototypeOf(t))return!1;if(t.constructor!==e.constructor)return!1;if(t.prototype!==e.prototype)return!1;if(i.indexOf(t)>-1||o.indexOf(e)>-1)return!1;for(r in e){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1}for(r in t){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1;switch(typeof t[r]){case"object":case"function":if(i.push(t),o.push(e),!s(t[r],e[r]))return!1;i.pop(),o.pop();break;default:if(t[r]!==e[r])return!1}}return!0}if(arguments.length<1)return!0;for(r=1,n=arguments.length;r<n;r++)if(i=[],o=[],!s(arguments[0],arguments[r]))return!1;return!0},t.des=oo,t.divide=function(t,e){let r,n,i=0,o=0;try{i=t.toString().split(".")[1].length}catch(t){}try{o=e.toString().split(".")[1].length}catch(t){}return r=Number(t.toString().replace(".","")),n=Number(e.toString().replace(".","")),r/n*Math.pow(10,o-i)},t.downloadBlobFile=function(t,e){try{const r=window.URL.createObjectURL(t),n=window.document.createElement("a");n.download=e,n.href=r,n.click(),URL.revokeObjectURL(r)}catch(t){console.error(t)}},t.downloadFileUrl=function(t,e){try{const r=window.document.createElement("a");r.download=e,r.href=t,r.target="_blank",window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}catch(t){console.error(t)}},t.equals=function(t,e){return Object.is(t,e)},t.equalsIgnoreCase=function(t,e){return Object.is(t.toLowerCase(),e.toLowerCase())},t.fileToBase64=function(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))},t.fileToBlob=function(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsArrayBuffer(t),n.onload=r=>{const n=new Blob([r.target.result],{type:t.type});e(n)},n.onerror=function(t){console.error(t),r(t)}}))},t.fileToUrl=function(t){return new Promise(((e,r)=>{try{e(URL.createObjectURL(t))}catch(e){console.error(e),URL.revokeObjectURL(t),r(e)}}))},t.formatDate=z,t.formatFileSize=function(t){return y(t)?"0B":t<1024?t+"B":t<1048576?(t/1024).toFixed(2)+"KB":t<1073741824?(t/1048576).toFixed(2)+"MB":(t/1073741824).toFixed(2)+"GB"},t.formatRmbChinese=function(t){let e,r,n,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],o=["","拾","佰","仟"],s=["","万","亿","兆"],a=["角","分","毫","厘"],h=Number("999999999999999.9999"),u="";if(""===t)return"";if((t=parseFloat(t))>=h)throw new Error("Calculated number overflow!");if(0===t)return u=i[0]+"元整",u;if(-1===(t=t.toString()).indexOf(".")?(e=t,r=""):(n=t.split("."),e=n[0],r=n[1].substr(0,4)),parseInt(e,10)>0){let t=0,r=e.length;for(let n=0;n<r;n++){let a=e.substr(n,1),h=r-n-1,f=h/4,c=h%4;"0"===a?t++:(t>0&&(u+=i[0]),t=0,u+=i[parseInt(a)]+o[c]),0===c&&t<4&&(u+=s[f])}u+="元"}if(""!==r){let t=r.length;for(let e=0;e<t;e++){let t=r.substr(e,1);"0"!==t&&(u+=i[Number(t)]+a[e])}}return""===u?u+=i[0]+"元整":""===r&&(u+="整"),u},t.formatStartOf=ho,t.formatStartOfBankCard=function(t,e=4,r=11){return ho(t,e,r)},t.formatStartOfIDCard=function(t,e=4,r=8){return ho(t,e,r)},t.formatStartOfMobile=function(t,e=3,r=4){return ho(t,e,r)},t.formatStartOfName=function(t){return 2===t.length?ho(t,1,1):t.length>2?ho(t,1,t.length-2):t},t.formatTemplate=function(t,e){return t?Array.from(t.matchAll(/\{\{(.+?)\}\}/g)).reduce(((t,r)=>t.replace(r[0],e[r[1]])),t):""},t.formatThousand=function(t){if(!parseFloat(t))return t;let e=(t=String(t)).indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return t.replace(e,"$1,")},t.formatTitle=function(t){return t?t.split(/(?=[A-Z])|[\.\-\s_]/).map((t=>t.trim())).filter((t=>!!t)).map((t=>a(t.toLowerCase()))).join(" "):""},t.gcd=$,t.getAge=P,t.getAgeByIDCard=fo,t.getBetweenDates=function(t,e){if(g(t)||g(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear(),n=L(t.getMonth()+1),i=L(t.getDate());r.push(e+"-"+n+"-"+i),t.setDate(t.getDate()+1)}return r},t.getBetweenMonths=function(t,e){if(g(t)||g(e))return[];let r=[],n=new Date,i=new Date;n.setFullYear(t.getFullYear(),t.getMonth()+1),i.setFullYear(e.getFullYear(),e.getMonth()+1);let o=n,s="";for(;o<=i;){let t=o.getMonth();s=0===t?o.getFullYear()-1+"-12":o.getFullYear()+"-"+L(t),r.push(s),o.setMonth(t+1)}return r},t.getBetweenYears=function(t,e){if(g(t)||g(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear();r.push(e),t.setFullYear(t.getFullYear()+1)}return r},t.getBirthdayByIDCard=uo,t.getBrowserInfo=function(){let t=window.navigator.userAgent.toLowerCase(),e=t.match(/rv:([\d.]+)\) like gecko/)||t.match(/msie ([\d\.]+)/),r=t.match(/edg\/([\d\.]+)/),n=t.match(/firefox\/([\d\.]+)/),i=t.match(/(?:opera|opr).([\d\.]+)/),o=t.match(/chrome\/([\d\.]+)/),s=t.match(/version\/([\d\.]+).*safari/);return e?{name:"ie",version:e[1]}:r?{name:"edge",version:r[1]}:n?{name:"firefox",version:n[1]}:i?{name:"opera",version:i[1]}:o?{name:"chrome",version:o[1]}:s?{name:"safari",version:s[1]}:"unknown"},t.getChineseZodiac=function(t,e="zh"){if(g(t))return"";let r=t.getFullYear();return r<1900?"未知":i.CHINESE_ZODIAC[e][(r-1900)%i.CHINESE_ZODIAC[e].length]},t.getClipboard=function(){return new Promise(((t,e)=>{window.navigator.clipboard?window.navigator.clipboard.read().then((e=>{let r=[];for(let t of e)for(let e of t.types)t.getType(e).then((async t=>{if(t.type.includes("text")){let e=await Y(t);r.push({type:t.type,data:e})}else r.push({type:t.type,data:t})}));t(r)})):console.warn("not support navigator clipboard!")}))},t.getClipboardText=function(){return new Promise(((t,e)=>{window.navigator.clipboard?window.navigator.clipboard.readText().then((e=>{t(e)})).catch((t=>{e(t)})):console.warn("not support navigator clipboard!")}))},t.getCookie=function(t){if("undefined"==typeof document)return"";let e=document.cookie?document.cookie.replace(/\s/g,"").split(";"):[];for(let r in e){let n=e[r].split("=");if(n[0]===t)return decodeURIComponent(n[1])}return""},t.getDate=O,t.getDateArray=function(t=new Date){return Object.entries(I(t)).map((([t,e])=>e))},t.getDateObject=I,t.getDateTime=function(t=new Date,e="yyyy-MM-dd HH:mm:ss"){return z(t,e)},t.getDayOfMonth=_,t.getDayOfWeek=R,t.getDayOfYear=x,t.getDaysOfMonth=N,t.getDaysOfWeek=function(t=new Date){return 7},t.getDaysOfYear=U,t.getDiffDay=function(t,e){if(g(t)||g(e))return 0;let r=(e-t)/864e5;return r>=0?Math.abs(r):r},t.getDiffMonth=function(t,e){if(g(t)||g(e))return 0;let r=(t-e)/2592e6;return r>=0?Math.abs(r):r},t.getDiffWeek=function(t,e){if(g(t)||g(e))return 0;let r=(e-t)/6048e5;return r>=0?Math.abs(r):r},t.getDiffYear=function(t,e){if(g(t)||g(e))return 0;let r=(e-t)/31104e6;return r>=0?Math.abs(r):r},t.getDrawHex=function(){return"#"+(t=(16777216*Math.random()|0).toString(16),new Array(7-t.length).join("0")+t);var t},t.getDrawRgb=function(){return`rgb(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())})`},t.getDrawRgba=function(){return`rgba(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Number(Math.random()).toFixed(2)})`},t.getFileName=function(t){if(!y(t))return t.substring(0,t.lastIndexOf("."))},t.getFileSuffix=function(t){if(!y(t))return t.substring(t.lastIndexOf(".")+1).toLowerCase()},t.getFirstDateOfMonth=function(t=new Date){return t.setDate(1),z(t)},t.getFirstDateOfWeek=function(t=new Date){let e=R(t);return t.setDate(t.getDate()-e+1),z(t)},t.getFirstDateOfYear=function(t=new Date){return new Date(t.getFullYear(),0,1)},t.getFullDateOfMonth=function(t=new Date){let e=[],r=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(t.getFullYear(),t.getMonth()+1,0);for(let t=0;t<n.getDate();t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n)}return e},t.getFullDateOfWeek=function(t=new Date){let e=[],r=t.getDay(),n=new Date;n.setDate(t.getDate()-(0===r?6:r-1));for(let t=0;t<7;t++){let r=new Date(n);r.setDate(r.getDate()+t),e.push(z(r))}return e},t.getFullDateOfYear=function(t=new Date){let e=[],r=new Date(t.getFullYear(),0,1),n=U();for(let t=0;t<n;t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n.toLocaleDateString())}return e},t.getGUID=function(){let t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.getHost=function(t=window.location.href){let e=t.match(n.URL);if(e)return(e[2]||"")+(e[3]?":"+e[3]:"")},t.getHostName=function(t=window.location.href){let e=t.match(n.URL);if(e)return e[2]||""},t.getInfoByIDCard=function(t){if(!g(t))return{province:lo(t),birthday:uo(t),age:fo(t),sex:co(t)}},t.getKeyCode=function(t){for(let e in o)if(o[e]===t)return e},t.getKeyName=function(t){return o[t]?o[t]:(console.log("Unknow Key Code: "+t),"")},t.getLastDateOfMonth=function(t=new Date){return z(new Date(t.getFullYear(),t.getMonth()+1,0))},t.getLastDateOfWeek=function(t=new Date){let e=R(t);return t.setDate(t.getDate()+(7-e)),z(t)},t.getLastDateOfYear=function(t=new Date){return new Date(t.getFullYear(),11,31)},t.getLimit=function(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7}){return[t.pageSize*(t.page-1),t.pageSize*t.page]},t.getLocalStorage=function(t){return window.localStorage.getItem(t)||void 0},t.getNextPage=function(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{let n=t.totalPage>0?t.totalPage:po(t);t.page>0?t.page<n?t.page++:t.page=n:t.page=1,e&&e(t.page),r(t.page)}))},t.getNow=function(){return new Date},t.getOverTime=function(t,e="zh"){if(g(t))return"--";let r=new Date,n=t.getTime()-r.getTime(),o=0,s=0,a=0,h=0;return n>=0&&(o=Math.floor(n/1e3/3600/24),s=Math.floor(n/1e3/60/60%24),a=Math.floor(n/1e3/60%60),h=Math.floor(n/1e3%60)),`${o}${i.OVER_TIME[e].DAY} ${s}${i.OVER_TIME[e].HOUR} ${a}${i.OVER_TIME[e].MINUTE} ${h}${i.OVER_TIME[e].SECOND}`},t.getPastTime=function(t,e="zh"){if(g(t))return"--";let r=t.getTime(),n=Date.now()-r,o=b(n/31104e6),s=b(n/2592e6),a=b(n/864e5),h=b(n/36e5),u=b(n/6e4);return o?o+i.PASS_TIME[e].YEAR:s?s+i.PASS_TIME[e].MONTH:a?1===a?i.PASS_TIME[e].YESTERDAY:2===a?i.PASS_TIME[e].BEFORE_YESTERDAY:a+i.PASS_TIME[e].DAY:h?h>12?i.PASS_TIME[e].TODAY:h+i.PASS_TIME[e].HOUR:u?u+i.PASS_TIME[e].MINUTE:i.PASS_TIME[e].JUST},t.getPort=function(t=window.location.href){let e=t.match(n.URL);if(e)return e[3]||""},t.getPrevPage=function(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{t.page>1?t.page--:t.page=1,e&&e(t.page),r(t.page)}))},t.getProtocol=function(t=window.location.href){let e=t.match(n.URL);if(e)return e[1]||""},t.getProvinceByIDCard=lo,t.getQuarter=function(t=new Date,e="Q",r="zh"){let n=Number(Math.floor((t.getMonth()+3)/3));return"Q"===e?i.QUARTER[r].MINI[n-1]:"QQ"===e?i.QUARTER[r].SHORT[n-1]:"QQQ"===e?i.QUARTER[r].FULL[n-1]:n},t.getRainbowPager=function(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{let n=t.page||1,i=t.totalPage>0?t.totalPage:po(t),o=t.pagerCount||7,s=!(1&o),a=o>>1,h=o>>1,u=o;s&&h++,i<o&&(u=i);let f=new Array(u);if(i>=o)if(n<=a)for(let t=0;t<f.length;t++)f[t]=t+1;else if(n>i-h)for(let t=0;t<f.length;t++)f[t]=t+i-o+1;else for(let t=0;t<f.length;t++)f[t]=t+n-a+(s?1:0);else for(let t=0;t<f.length;t++)f[t]=t+1;e&&e(f),r(f)}))},t.getRandom=function(t=0,e=9){return Math.floor(Math.random()*(e-t+1)+t)},t.getRandomDigit=function(t=1){return Math.floor((Math.random()+Math.floor(9*Math.random()+1))*Math.pow(10,t-1))},t.getSearchParam=function(t=window.location.href,e=""){e=e.replace(/[[\]]/g,"\\$&"),t=go(t);let r=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=t.substring(0).match(r);if(n)return decodeURIComponent(n[2])},t.getSearchString=go,t.getSessionStorage=function(t){return window.sessionStorage.getItem(t)||""},t.getSexByIDCard=co,t.getStorage=function({key:t,encrypt:e=!1}){return new Promise(((r,n)=>{wx.getStorage({key:t,encrypt:e,success(t){r(t)},fail(t){n(t)}})}))},t.getStorageInfo=function(){return new Promise(((t,e)=>{wx.getStorageInfo({success(e){t(e)},fail(t){e(t)}})}))},t.getStorageInfoSync=function(){return wx.getStorageInfoSync()},t.getStorageSync=function(t){return wx.getStorageSync(t)},t.getStyle=function(t,e){if(t)return t.style[e]},t.getTimestamp=function(t=new Date){return t.getTime()},t.getTotalPage=po,t.getUUID=function(t=32,e=16){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let n,i=[];if(e=e||r.length,t)for(n=0;n<t;n++)i[n]=r[0|Math.random()*e];else{let t;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",n=0;n<36;n++)i[n]||(t=0|16*Math.random(),i[n]=r[19===n?3&t|8:t])}return i.join("")},t.getUnixTimestamp=function(t=new Date){return Math.round(t/1e3)},t.getUrlHash=function(t=window.location.href){let e=t.match(n.URL);if(e)return e[6]||""},t.getUrlPath=function(t=window.location.href){let e=t.match(n.URL);if(e)return e[4]||""},t.getValueByPath=function(t,e="data"){const r=(e||"data").split(".");let n=t;for(const t in r){let e=r[t],{propName:i,propIndex:o,isArray:s}=M(r[t]);if(s){if(o<0||o>=n[i].length)return;n=n[i][o]}else{if(!n||!n.hasOwnProperty(e)||"object"!=typeof n)return;n=n[e]}}return n},t.getWeek=function(t=new Date,e="E",r="zh"){return"E"===e?i.WEEK[r].MINI[t.getDay()]:"EE"===e?i.WEEK[r].SHORT[t.getDay()]:"EEE"===e?i.WEEK[r].FULL[t.getDay()]:R(t)},t.getWeekOfMonth=function(t=new Date){return Math.ceil((t.getDate()+6-R(t))/7)},t.getWeekOfYear=function(t=new Date){let e=new Date(t.getFullYear(),0,1),r=R(e),n=Math.round((t-e)/864e5);return Math.ceil((n+r)/7)},t.getWeeksOfMonth=function(t=new Date){let e=R(new Date(t.getFullYear(),0,1)),r=F(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)},t.getWeeksOfYear=function(t=new Date){let e=R(new Date(t.getFullYear(),0,1)),r=F(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)},t.getZodiac=function(t,e="zh"){if(g(t))return"";let r=t.getMonth()+1;return t.getDate()<[20,19,21,20,21,22,23,23,23,24,23,22][r-1]?i.ZODIAC[e][r-1]:i.ZODIAC[e][r]},t.hasClass=bo,t.hasSearchParam=function(t=window.location.href,e){return void 0!==yo(t)[e]},t.hexToHsl=function(t){let e,r,n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(i[1],16)/255,s=parseInt(i[2],16)/255,a=parseInt(i[3],16)/255,h=Math.max(o,s,a),u=Math.min(o,s,a),f=(h+u)/2;if(h===u)e=r=0;else{let t=h-u;switch(r=f>.5?t/(2-h-u):t/(h+u),h){case o:e=(s-a)/t+(s<a?6:0);break;case s:e=(a-o)/t+2;break;case a:e=(o-s)/t+4}e/=6}return`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*f)}%)`},t.hexToRgb=function(t){let e={},r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return e.r=parseInt(n[1],16),e.g=parseInt(n[2],16),e.b=parseInt(n[3],16),`rgb(${e.r},${e.g},${e.b})`},t.hexToRgba=function(t,e=1){let r={},n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r.r=parseInt(i[1],16),r.g=parseInt(i[2],16),r.b=parseInt(i[3],16),r.o=e,`rgba(${r.r},${r.g},${r.b},${r.o})`},t.htmlDecode=function(t){const e={"<":"<",">":">","&":"&","(":"(",")":")","/":"/"," ":" ",""":'"',"'":"'"};return t.replace(/(<|>|&|(|)|/| |"|')/gi,(function(t,r){return e[r]}))},t.htmlEncode=function(t){const e={"<":"<",">":">","&":"&","(":"(",")":")","/":"/"," ":" ",'"':""","'":"'"};return t.replace(/[<>&|()\/ '"]/g,(function(t){return e[t]}))},t.inArray=function(t,e){return!g(t)&&e.includes(t)},t.inString=function(t,e){return e.includes(t)},t.isAM=function(t=new Date){return t.getHours()<12},t.isAfter=T,t.isAfterTomorrow=function(t=new Date){return 2===b((t.getTime()-Date.now())/864e5)},t.isAndroid=function(){let t=window.navigator.userAgent;return/Android|BlackBerry/i.test(t)},t.isArray=f,t.isAsyncFunction=function(t){return"AsyncFunction"===Object.prototype.toString.call(t).slice(8,-1)},t.isBefore=C,t.isBeforeYesterday=function(t=new Date){let e=t.getTime();return 2===b((Date.now()-e)/864e5)},t.isBetween=function(t,e,r){let n=t.getTime(),i=e.getTime(),o=r.getTime();return n>i&&n<o},t.isBigInt=function(t){return"BigInt"===Object.prototype.toString.call(t).slice(8,-1)},t.isBlank=w,t.isBoolean=function(t){return"Boolean"===Object.prototype.toString.call(t).slice(8,-1)},t.isChinese=function(t){return H(t,n.CH)},t.isCommonYear=function(t=new Date){return!F(t)},t.isDate=l,t.isDecimal=function(t){return/^\d+\.\d+$/.test(t)},t.isEmail=function(t){return H(t,n.EMAIL)},t.isEmpty=y,t.isEnglish=function(t){return H(t,n.EN)},t.isError=function(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)},t.isExternal=function(t){return H(t,n.EXTERNAL)},t.isFalse=p,t.isFirstDayOfMonth=function(t=new Date){return 1===_(t)},t.isFirstDayOfWeek=function(t=new Date){return 1===R(t)},t.isFirstDayOfYear=function(t=new Date){return 1===x(t)},t.isFunction=function(t){return"Function"===Object.prototype.toString.call(t).slice(8,-1)},t.isFunctionString=function(t){if(!t)return!1;try{return"function"==typeof new Function(`return ${t}`)()}catch(t){return!1}},t.isIdCard=function(t){return H(t,n.ID_CARD)},t.isInteger=h,t.isIos=function(){let t=window.navigator.userAgent;return/iPhone|iPad|iPod|iOS/i.test(t)},t.isIpad=function(){let t=window.navigator.userAgent;return/iPod/i.test(t)},t.isIphone=function(){let t=window.navigator.userAgent;return/iPhone/i.test(t)},t.isJson=function(t){try{return JSON.parse(t),!0}catch(t){return!1}},t.isLastDayOfMonth=function(t=new Date){return _(t)===N(t)},t.isLastDayOfWeek=function(t=new Date){return 7===R(t)},t.isLastDayOfYear=function(t=new Date){return x(t)===U(t)},t.isLeapYear=F,t.isLinux=function(){let t=window.navigator.userAgent;return/linux/i.test(t)},t.isLowerCase=function(t){return H(t,n.LOWER_CASE)},t.isMac=function(){let t=window.navigator.userAgent;return/mac/i.test(t)},t.isMap=function(t){return"Map"===Object.prototype.toString.call(t).slice(8,-1)},t.isMobile=function(t){return H(t,n.MOBILE)},t.isNaN=d,t.isNotBlank=function(t){return!w(t)},t.isNotEmpty=function(t){return!y(t)},t.isNotNaN=function(t){return!d(t)},t.isNotNull=function(t){return!g(t)},t.isNotUndefined=function(t){return!m(t)},t.isNull=g,t.isNumber=function(t){return"Number"===Object.prototype.toString.call(t).slice(8,-1)},t.isObject=c,t.isPM=function(t=new Date){return t.getHours()>=12},t.isPc=function(){return!So()},t.isPhone=So,t.isPromise=function(t){return"Promise"===Object.prototype.toString.call(t).slice(8,-1)},t.isQQ=function(){let t=window.navigator.userAgent;return/QQ/i.test(t)},t.isRegExp=function(t){return"RegExp"===Object.prototype.toString.call(t).slice(8,-1)},t.isSame=B,t.isSameMonth=function(t,e){return["getFullYear","getMonth"].every((r=>t[r]()===e[r]()))},t.isSameOrAfter=function(t,e){return B(t,e)||T(t,e)},t.isSameOrBefore=function(t,e){return B(t,e)||C(t,e)},t.isSameWeek=function(t,e){let r=t.getTime()/864e5,n=e.getTime()/864e5;return b((r+4)/7)===b((n+4)/7)},t.isSameYear=function(t,e){return["getFullYear"].every((r=>t[r]()===e[r]()))},t.isSet=function(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)},t.isString=u,t.isSupportCookie=function(){return window.navigator.cookieEnabled},t.isSupportStorage=function(){return!(!window.localStorage||!window.sessionStorage)},t.isSymbol=function(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)},t.isToday=function(t=new Date){let e=new Date;return["getFullYear","getMonth","getDate"].every((r=>e[r]()===t[r]()))},t.isTomorrow=function(t=new Date){return 1===b((t.getTime()-Date.now())/864e5)},t.isTrue=function(t){return!p(t)},t.isUndefined=m,t.isUpperCase=function(t){return H(t,n.UPPER_CASE)},t.isUrl=function(t){return H(t,n.URL)},t.isWeakMap=function(t){return"WeakMap"===Object.prototype.toString.call(t).slice(8,-1)},t.isWeakSet=function(t){return"WeakSet"===Object.prototype.toString.call(t).slice(8,-1)},t.isWeekend=function(t=new Date){let e=R(t);return 6===e||7===e},t.isWeixin=function(){let t=window.navigator.userAgent;return/MicroMessenger/i.test(t)},t.isWindows=function(){let t=window.navigator.userAgent;return/win/i.test(t)},t.isWindowsPhone=function(){let t=window.navigator.userAgent;return/Windows Phone/i.test(t)},t.isWorkday=function(t=new Date){let e=R(t);return 6!==e&&7!==e},t.isYesterday=function(t=new Date){let e=t.getTime();return 1===b((Date.now()-e)/864e5)},t.jsonToMap=function(t){return E(JSON.parse(t))},t.lastMonth=function(t=new Date){return z(k(t,-30))},t.lastWeek=function(t=new Date){return z(k(t,-7))},t.lastYear=function(t=new Date){return z(k(t,-365))},t.loadedTestUtils=function(){console.log("Nice, iUtils loaded successfully!")},t.mapToJson=function(t){return JSON.stringify(D(t))},t.mapToObject=D,t.md5=function(t){return qt(t)},t.md5_hmac=function(t,e){return Yt(e,t)},t.merge=function(t,...e){return Object.assign(t,...e)},t.modulo=function(t,e){let r=0,n=0,i=0;try{r=t.toString().split(".")[1].length}catch(t){}try{n=e.toString().split(".")[1].length}catch(t){}return i=Math.pow(10,Math.max(r,n)),Math.round(Number(t)*i)%Math.round(Number(e)*i)/i},t.multiply=function(t,e){let r=0,n=t.toString(),i=e.toString();try{r+=n.split(".")[1].length}catch(t){}try{r+=i.split(".")[1].length}catch(t){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,r)},t.nextMonth=function(t=new Date){return z(k(t,30))},t.nextWeek=function(t=new Date){return z(k(t,7))},t.nextYear=function(t=new Date){return z(k(t,365))},t.objectEquals=function t(e,r){if(e===r)return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(!e||!r||"object"!=typeof e&&"object"!=typeof r)return e===r;if(e.prototype!==r.prototype)return!1;const n=Object.keys(e);return n.length===Object.keys(r).length&&n.every((n=>t(e[n],r[n])))},t.objectToMap=E,t.parseDate=j,t.parseFloat=function(t){return g(t)?0:Number.parseFloat(t)},t.parseInt=b,t.parseJson=function(t){if(!y(t))return JSON.parse(t)},t.parseSearchParam=yo,t.prependSearchParam=function(t=window.location.href,e,r){let n=go(t).split("&");if(f(r)){let t=[];for(let n=0;n<r.length;n++)t.push(`${encodeURIComponent(e)}[${n}]=${encodeURIComponent(r[n])}`);n.unshift(...t)}else n.unshift(`${encodeURIComponent(e)}=${encodeURIComponent(r)}`);return t.replace(/(\?.+?)(?=#|$)/,"?"+n.join("&"))},t.prependToSearchParam=function(t=window.location.href,e,r,n){let i=go(t).split("&"),o=i.findIndex((t=>t.includes(e))),s=v(i,o,`${r}=${n}`);return t.replace(/(\?.+?)(?=#|$)/,"?"+s.join("&"))},t.regexpTest=H,t.removeClass=vo,t.removeCookie=function(t){y(t)||mo(t,"",-1)},t.removeLocalStorage=function(t){window.localStorage.removeItem(t)},t.removeSearchParam=function(t=window.location.href,e){let r=go(t).split("&"),n=r.findIndex((t=>t.includes(e)));return n>-1&&r.splice(n,1),t.replace(/(\?.+?)(?=#|$)/,"?"+r.join("&"))},t.removeSessionStorage=function(t){window.sessionStorage.removeItem(t)},t.removeStorage=function({key:t}){return new Promise(((e,r)=>{wx.removeStorage({key:t,success(t){e(t)},fail(t){r(t)}})}))},t.removeStorageSync=function(t){wx.removeStorageSync(t)},t.removeStyle=function(t,e){t&&t.style.removeProperty(e)},t.replaceAll=function(t,e,r){return t.replace(new RegExp(e,"gm"),r)},t.replaceClass=function(t,e,r){vo(t,r),Ao(t,e)},t.rgbToHex=function(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2].split(")")[0]);return"#"+W(r)+W(n)+W(i)},t.rgbaToHex=function(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2]),o=parseFloat(e[3].split(")")[0]);return`#${W(Math.round(256*o-1))}${W(r)}${W(n)}${W(i)}`},t.rgbaToHsl=function(t){let e,r,n=t.split(","),i=parseInt(n[0].split("(")[1])/255,o=parseInt(n[1])/255,s=parseInt(n[2])/255,a=parseFloat(n[3]&&n[3].split(")")[0]),h=Math.max(i,o,s),u=Math.min(i,o,s),f=(h+u)/2;if(h===u)e=r=0;else{let t=h-u;switch(r=f>.5?t/(2-h-u):t/(h+u),h){case i:e=(o-s)/t+(o<s?6:0);break;case o:e=(s-i)/t+2;break;case s:e=(i-o)/t+4}e/=6}return a?`hsla(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*f)}%,${a})`:`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*f)}%)`},t.scm=function(t,e){return t*e/$(t,e)},t.setClipboard=function(t){return new Promise(((e,r)=>{if(window.navigator.clipboard){let n=null;if("string"==typeof t){let e=new Blob([t],{type:"text/plain"});n=new window.ClipboardItem({"text/plain":e})}else n=new window.ClipboardItem({[t.type]:t});window.navigator.clipboard.write([n]).then((t=>{e(!0)}),(t=>{r(!1)}))}else console.warn("not support navigator clipboard!")}))},t.setClipboardText=Do,t.setCookie=mo,t.setLocalStorage=function(t,e){window.localStorage.setItem(t,e)},t.setSearchParam=function(t=window.location.href,e="",r){let n=yo(t);return n[e]=r,t.replace(/(\?.+?)(?=#|$)/,"?"+wo(n))},t.setSessionStorage=function(t,e){window.sessionStorage.setItem(t,e)},t.setStorage=function({key:t,data:e,encrypt:r=!1}){return new Promise(((n,i)=>{wx.setStorage({key:t,data:e,encrypt:r,success(t){n(t)},fail(t){i(t)}})}))},t.setStorageSync=function(t,e){wx.setStorageSync(t,e)},t.setValueByPath=function(t,e="data",r){const n=(e||"data").split(".");let i=t;for(let t=0;t<n.length-1;t++){let e=n[t],r=n[t+1],{propName:o,propIndex:s,isArray:a}=M(e);if(a){for(i&&i.hasOwnProperty(o)||(i[o]=[]);i[o].length<=s;)i[o].push({});i=i[o][s]}else i&&i.hasOwnProperty(e)&&"object"==typeof i[e]||(i[e]=d(r)?[]:{}),i=i[e]}let o=n[n.length-1],{propName:s,propIndex:a,isArray:h}=M(o);if(h){for(i.hasOwnProperty(s)&&Array.isArray(i[s])||(i[s]=[]);i[s].length<=a;)i[s].push({});i[s][a]=r}else i[o]=r;return t},t.sha1=function(t){return ce(t)},t.sha1_hmac=function(t,e){return le(e,t)},t.sha224=function(t){return _e(t)},t.sha224_hmac=function(t,e){return Ne(e,t)},t.sha256=function(t){return Re(t)},t.sha256_hmac=function(t,e){return xe(e,t)},t.sha384=function(t){return nr(t)},t.sha384_hmac=function(t,e){return ar(e,t)},t.sha3_224=function(t){return Jr(t)},t.sha3_256=function(t){return Vr(t)},t.sha3_384=function(t){return Wr(t)},t.sha3_512=function(t){return Yr(t)},t.sha512=function(t){return rr(t)},t.sha512_224=function(t){return or(t)},t.sha512_224_hmac=function(t,e){return ur(e,t)},t.sha512_256=function(t){return ir(t)},t.sha512_256_hmac=function(t,e){return hr(e,t)},t.sha512_hmac=function(t,e){return sr(e,t)},t.sleep=function(t=1e3){return new Promise((e=>setTimeout(e,t)))},t.sm2=Ii,t.sm3=Ni,t.sm4=Ji,t.stringifyJson=function(t){return JSON.stringify(t)},t.stringifySearchParam=wo,t.subtract=function(t,e){let r,n,i,o;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),o=r>=n?r:n,((t*i-e*i)/i).toFixed(o)},t.tea=ao,t.throttle=function(t,e=1e3){let r;return function(){const n=arguments;r||(r=setTimeout((()=>{r=null,t.apply(this,n)}),e))}},t.toCamelCase=function(t){return t.indexOf("_")>0?t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()})):t.indexOf("-")>0?t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()})):/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toLowerCase()+t.slice(1):t},t.toDecimal=function(t,e=2,n=r.ROUND){return n===r.ROUND?function(t,e=2){if(d(t))return"--";let r=Math.pow(10,e);return Math.round(t*r)/r}(t,e):n===r.ROUND_FLOOR?function(t,e=2){if(d(t))return"--";let r=Math.pow(10,e);return Math.floor(t*r)/r}(t,e):void 0},t.toFixed=function(t,e=2,n=r.ROUND){return n===r.ROUND?function(t,e=2){if(d(t))return"--";let r=String(t);e||(e=0);-1===r.indexOf(".")&&(r+=".");if(r+=new Array(e+1).join("0"),new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,"+(e+1)+"})?)\\d*$").test(r)){let t="0"+RegExp.$2,r=RegExp.$1,n=RegExp.$3.length,i=!0;if(n===e+2){if(n=t.match(/\d/g),parseInt(n[n.length-1])>4)for(let t=n.length-2;t>=0&&(n[t]=parseInt(n[t])+1,10===n[t]);t--)n[t]=0,i=1!==t;t=n.join("").replace(new RegExp("(\\d+)(\\d{"+e+"})\\d$"),"$1.$2")}return i&&(t=t.substr(1)),(r+t).replace(/\.$/,"")}return String(t)}(t,e):n===r.ROUND_FLOOR?function(t,e=2){if(d(t))return"--";let r=e,n=Number(t),i=String(n).indexOf(".")+1,o=i?String(n).length-i:0;if(0===i||o<=r){let t=n;if(0===i){t=`${t}.`;for(let e=0;e<r-o;e++)t=`${t}0`}else for(let e=0;e<r-o;e++)t=`${t}0`;return t}let s="";return s=`${String(n).split(".")[0]}.${String(n).split(".")[1].substring(0,r)}`,String(s)}(t,e):void 0},t.toKebabCase=function(t){if(t.indexOf("_")>0)return t.replace(/_/g,"-").toLowerCase();if(/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0))return t.replace(/([A-Z])/g,"-$1").toLowerCase();if(/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)){return(t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"-$1").toLowerCase()}},t.toLowerCase=function(t){String(t).toLocaleLowerCase()},t.toPascalCase=a,t.toSnakeCase=function(t){return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.replace(/([A-Z])/g,"_$1").toLowerCase():t.indexOf("-")>0?t.replace(/-/g,"_").toLowerCase():/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?(t=t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"_$1").toLowerCase():void 0},t.toUpperCase=function(t){return String(t).toLocaleUpperCase()},t.today=function(){return O()},t.tomorrow=function(){return z(k(new Date,1))},t.treeToArray=function t(e,r={childrenKey:"children"}){let n=r.childrenKey,i=[];for(let o of e)if(o[n]&&!o[n].length&&delete o[n],i.push(o),o[n]&&o[n].length){let e=t(o[n],r);e&&i.push(...e)}return i},t.trim=function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},t.trimAll=function(t){return t.replace(/\s+/g,"")},t.trimEnd=function(t){return t.replace(/(\s*$)/g,"")},t.trimStart=function(t){return t.replace(/(^\s*)/g,"")},t.urlToBase64=function(t){return new Promise(((e,r)=>{const n=new Image;n.src=t,n.onload=function(){const t=document.createElement("canvas"),r=t.getContext("2d");t.width=n.width,t.height=n.height,r.drawImage(n,0,0,n.width,n.height);const i=t.toDataURL("image/png");e(i)},n.onerror=function(t){console.error(t),r(t)}}))},t.urlToFile=function(t){return new Promise((async(e,r)=>{try{let r=await window.fetch(t);if(200===r.status){let t=await r.blob();e(await q(t))}}catch(t){console.error(t),r(t)}}))},t.yesterday=function(){return z(k(new Date,-1))},t.zeroEnd=function(t,e=2){let r=t.toString().length;for(;r<e;)t+="0",r++;return t},t.zeroStart=function(t,e=2){let r=t.toString().length;for(;r<e;)t="0"+t,r++;return t}}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).iUtils={})}(this,(function(t){"use strict";t.getGUID=function(){let t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.getUUID=function(t=32,e=16){const n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let o,i=[];if(e=e||n.length,t)for(o=0;o<t;o++)i[o]=n[0|Math.random()*e];else{let t;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",o=0;o<36;o++)i[o]||(t=0|16*Math.random(),i[o]=n[19===o?3&t|8:t])}return i.join("")},t.testLoadUtils=function(){console.log("Nice, iUtils loaded successfully!")}}));
|
|
69
7
|
//# sourceMappingURL=index.full.umd.min.js.map
|