UNPKG

hfs-bluetooth-adapter

Version:

海富思科技对外提供的蓝牙设备LLSyncSDK

1,225 lines 147 kB
"use strict";var e,t,r,i,n,s,a,o,u,c,d,f,m,p,h,v,l,y,w,g,_,x,E,I,A,b,k,F,B,S,U,T,D,q,P,M=e=>{throw TypeError(e)},O=(e,t,r)=>t.has(e)||M("Cannot "+r),R=(e,t,r)=>(O(e,t,"read from private field"),r?r.call(e):t.get(e)),z=(e,t,r)=>t.has(e)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),N=(e,t,r,i)=>(O(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),C=(e,t,r)=>(O(e,t,"access private method"),r),W=(e=>(e.PROTOCOL_START="PROTOCOL_START",e.PROTOCOL_SUCCESS="PROTOCOL_SUCCESS",e.BLE_SEND_TOKEN_START="BLE_SEND_TOKEN_START",e.BUSINESS_QUERY_TOKEN_STATE_SUCCESS="BUSINESS_QUERY_TOKEN_STATE_SUCCESS",e.WIFI_CONF_SUCCESS="WIFI_CONF_SUCCESS",e))(W||{}),j=(e=>(e.PROTOCOL_FAIL="PROTOCOL_FAIL",e.BLE_SEND_TOKEN_ERROR="BLE_SEND_TOKEN_ERROR",e.WIFI_CONF_FAIL="WIFI_CONF_FAIL",e.BUSINESS_DEVICE_ERROR="BUSINESS_DEVICE_ERROR",e.BUSINESS_INVALID_RESPONSE="BUSINESS_INVALID_RESPONSE",e.BUSINESS_DEVICE_CONNECT_MQTT_FAIL="BUSINESS_DEVICE_CONNECT_MQTT_FAIL",e.BUSINESS_DEVICE_CONNECT_WIFI_FAIL="BUSINESS_DEVICE_CONNECT_WIFI_FAIL",e.BUSINESS_QUERY_BIND_TOKEN_TIMEOUT="BUSINESS_QUERY_BIND_TOKEN_TIMEOUT",e))(j||{});const L={properties:[{id:"no_disturb_switch",name:"勿扰开关",desc:"",mode:"rw",define:{type:"bool",mapping:{0:"未开启",1:"开启"}},required:!1},{id:"clarity",name:"清晰度",desc:"video录像的清晰度",mode:"rw",define:{type:"enum",mapping:{0:"低",1:"中",2:"高"}},required:!1},{id:"sensitivity",name:"灵敏度",desc:"人体移动监测灵敏度",mode:"rw",define:{type:"enum",mapping:{0:"低",1:"中",2:"高"}},required:!1},{id:"stay_trigger_distance",name:"逗留感应距离",desc:"",mode:"rw",define:{type:"enum",mapping:{1:"远",2:"中",3:"近"}},required:!1},{id:"stay_hold_time",name:"逗留保持时间",desc:"",mode:"rw",define:{type:"int",min:"5",max:"20",start:"5",step:"5",unit:"秒"},required:!1},{id:"battery_percentage",name:"电池电量",desc:"-1表示未获取到电量",mode:"rw",define:{type:"int",min:"-1",max:"100",start:"0",step:"1",unit:"百分比"},required:!1},{id:"no_disturb_time_set",name:"勿扰时间设置",desc:"设置每天休眠时间段,格式为23:59",mode:"rw",define:{type:"struct",specs:[{id:"start_time",name:"开始时间",dataType:{type:"string",min:"0",max:"6"}},{id:"end_time",name:"截止时间",dataType:{type:"string",min:"0",max:"6"}}]},required:!1},{id:"unlock_switch",name:"多重验证",desc:"",mode:"rw",define:{type:"enum",mapping:{0:"单一开锁",1:"指纹和密码",2:"指纹和门卡",3:"指纹和人脸",4:"密码和门卡",5:"密码和人脸",6:"门卡和人脸"}},required:!1},{id:"doorbell_song",name:"门铃铃声",desc:"",mode:"rw",define:{type:"enum",mapping:{0:"铃声0",1:"铃声1",2:"铃声2",3:"铃声3"}},required:!1},{id:"arming_switch",name:"离家布防",desc:"开启后,门从内侧打开触发报警",mode:"rw",define:{type:"bool",mapping:{0:"关闭",1:"开启"}},required:!1},{id:"stay_alarm_mode",name:"逗留侦测",desc:"开启后,可以进行逗留侦测",mode:"rw",define:{type:"bool",mapping:{0:"关闭",1:"开启"}},required:!1},{id:"detect_message",name:"侦测消息推送",desc:"摄像头侦测人员逗留消息是否上报",mode:"rw",define:{type:"bool",mapping:{0:"关闭",1:"开启"}},required:!1},{id:"volume",name:"音量",desc:"",mode:"rw",define:{type:"enum",mapping:{0:"静音",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"}},required:!1},{id:"lock_motor_state",name:"落锁状态",desc:"",mode:"r",define:{type:"bool",mapping:{0:"未落锁",1:"已落锁"}},required:!1},{id:"wakeup_state",name:"唤醒状态",desc:"设备主动上报是否处于唤醒状态",mode:"r",define:{type:"bool",mapping:{0:"休眠状态",1:"唤醒状态"}},required:!1},{id:"users",name:"用户",desc:"有权限解锁用户",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"userid",name:"用户id",dataType:{type:"string",min:"0",max:"20"}},{id:"name",name:"用户名",dataType:{type:"string",min:"0",max:"10"}},{id:"effectiveTime",name:"生效时间",dataType:{type:"string",min:"0",max:"1024"}}]},type:"array"},required:!1},{id:"fingerprints",name:"指纹",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"id",name:"id",dataType:{type:"string",min:"0",max:"100"}},{id:"userid",name:"userid",dataType:{type:"string",min:"0",max:"20"}}]},type:"array"},required:!1},{id:"cards",name:"卡片",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"id",name:"id",dataType:{type:"string",min:"0",max:"100"}},{id:"userid",name:"userid",dataType:{type:"string",min:"0",max:"20"}}]},type:"array"},required:!1},{id:"passwords",name:"密码",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"id",name:"id",dataType:{type:"string",min:"0",max:"100"}},{id:"userid",name:"userid",dataType:{type:"string",min:"0",max:"20"}}]},type:"array"},required:!1},{id:"cycle_password_list",name:"周期密码列表",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"id",name:"密码id",dataType:{type:"string",min:"0",max:"2048"}},{id:"take_effect_time",name:"生效时间",dataType:{type:"string",min:"0",max:"6"}},{id:"invalid_time",name:"失效时间",dataType:{type:"string",min:"0",max:"6"}},{id:"week",name:"生效星期",dataType:{type:"string",min:"0",max:"7"}},{id:"take_effect_date",name:"生效日期",dataType:{type:"string",min:"0",max:"10"}},{id:"invalid_date",name:"失败日期",dataType:{type:"string",min:"0",max:"10"}}]},type:"array"},required:!1},{id:"delete_user",name:"删除用户",desc:"",mode:"rw",define:{arrayInfo:{type:"int",min:"1",max:"1000",start:"1",step:"1",unit:""},type:"array"},required:!1,from:"custom"},{id:"openlock_history",name:"开锁记录",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"userid",name:"用户编号",dataType:{type:"int",min:"0",max:"1000",start:"0",step:"1",unit:""}},{id:"username",name:"用户名称",dataType:{type:"string",min:"0",max:"128"}},{id:"timestr",name:"开锁时间",dataType:{type:"timestamp"}},{id:"type",name:"开锁类型",dataType:{type:"enum",mapping:{0:"指纹",1:"密码",2:"卡片",3:"APP",4:"遥控"}}}]},type:"array"},required:!1,from:"custom"},{id:"get_all_user",name:"获取所有用户",desc:"",mode:"rw",define:{arrayInfo:{type:"struct",specs:[{id:"userid",name:"用户编号",dataType:{type:"int",min:"1",max:"1000",start:"1",step:"1",unit:""}},{id:"username",name:"用户名称",dataType:{type:"string",min:"0",max:"512"}},{id:"fingerprint",name:"指纹数",dataType:{type:"int",min:"0",max:"4",start:"0",step:"1",unit:""}},{id:"ordinary",name:"普通密码",dataType:{type:"enum",mapping:{0:"无",1:"有"}}},{id:"nfc",name:"卡片",dataType:{type:"enum",mapping:{0:"无",1:"有"}}},{id:"start_effective_time",name:"有效起始时间",dataType:{type:"timestamp"}},{id:"end_effective_time",name:"有效结束时间",dataType:{type:"timestamp"}},{id:"usertype",name:"用户类型",dataType:{type:"enum",mapping:{0:"普通用户",1:"管理员"}}}]},type:"array"},required:!1,from:"custom"},{id:"magnet_delayed",name:"门磁延时",desc:"",mode:"rw",define:{type:"int",min:"0",max:"5",start:"0",step:"1",unit:""},required:!1,from:"custom"},{id:"lock_delayed",name:"上锁延时",desc:"",mode:"rw",define:{type:"int",min:"3",max:"15",start:"3",step:"1",unit:""},required:!1,from:"custom"},{id:"error_lockout",name:"验证失败锁定",desc:"",mode:"rw",define:{type:"struct",specs:[{id:"errorcount",name:"失败次数",dataType:{type:"int",min:"1",max:"50",start:"1",step:"1",unit:""}},{id:"outtime",name:"锁定时间",dataType:{type:"int",min:"0",max:"180",start:"0",step:"1",unit:""}}]},required:!1,from:"custom"},{id:"normally_open",name:"常开时间段",desc:"",mode:"rw",define:{type:"struct",specs:[{id:"open_day",name:"常开日",dataType:{type:"int",min:"0",max:"255",start:"0",step:"1",unit:""}},{id:"start_time",name:"开始时间",dataType:{type:"string",min:"0",max:"8"}},{id:"end_time",name:"结束时间",dataType:{type:"string",min:"0",max:"8"}}]},required:!1,from:"custom"},{id:"blue_tooth_broadcast",name:"蓝牙广播",desc:"开启后,锁需要先唤醒才开启蓝牙",mode:"rw",define:{type:"bool",mapping:{0:"关",1:"开"}},required:!1,from:"custom"},{id:"add_nfc_num",name:"添加卡片状态",desc:"0未刷卡 1已刷卡",mode:"rw",define:{type:"string",min:"0",max:"1"},required:!1,from:"custom"},{id:"add_finger_num",name:"添加指纹状态",desc:"0失败1-6指纹次数A登记成功B请离开手指C指纹模板错误D指纹已满E退出",mode:"rw",define:{type:"string",min:"0",max:"1"},required:!1,from:"custom"}],actions:[{id:"unlock_remote",name:"远程解锁",desc:"",input:[],output:[{id:"result",name:"开锁成功状态",define:{type:"bool",mapping:{0:"开锁失败",1:"开锁成功"}}}],required:!1},{id:"cancel_add_fingerprint",name:"取消添加指纹",desc:"",input:[],output:[],required:!1},{id:"cancel_add_password",name:"取消添加密码",desc:"",input:[],output:[],required:!1},{id:"cancel_add_card",name:"取消添加卡片",desc:"",input:[],output:[],required:!1},{id:"restore_factory",name:"恢复出厂",desc:"",input:[],output:[],required:!1},{id:"delete_fingerprint",name:"删除指纹",desc:"",input:[{id:"id",name:"指纹id",define:{type:"string",min:"0",max:"100"}}],output:[{id:"result",name:"删除状态",define:{type:"bool",mapping:{0:"删除失败",1:"删除成功"}}}],required:!1},{id:"delete_card",name:"删除卡片",desc:"",input:[{id:"id",name:"卡id",define:{type:"string",min:"0",max:"2048"}}],output:[{id:"result",name:"删除状态",define:{type:"bool",mapping:{0:"删除失败",1:"删除成功"}}}],required:!1},{id:"delete_password",name:"删除密码",desc:"",input:[{id:"id",name:"密码id",define:{type:"string",min:"0",max:"2048"}}],output:[{id:"result",name:"删除状态",define:{type:"bool",mapping:{0:"删除失败",1:"删除成功"}}}],required:!1},{id:"del_cycle_password",name:"删除周期密码",desc:"",input:[{id:"id",name:"密码id",define:{type:"string",min:"0",max:"2048"}}],output:[{id:"result",name:"删除状态",define:{type:"bool",mapping:{0:"删除失败",1:"删除成功"}}}],required:!1},{id:"add_fingerprint",name:"添加指纹",desc:"",input:[{id:"userid",name:"用户id",define:{type:"string",min:"0",max:"20"}}],output:[],required:!1},{id:"add_password",name:"添加密码",desc:"",input:[{id:"userid",name:"用户id",define:{type:"string",min:"0",max:"20"}}],output:[],required:!1},{id:"add_card",name:"添加卡片",desc:"",input:[{id:"userid",name:"用户id",define:{type:"string",min:"0",max:"20"}}],output:[],required:!1},{id:"wake_up",name:"唤醒门锁",desc:"门锁处于休眠状态,需通过此指令唤醒门锁",input:[],output:[{id:"wakeup_state",name:"唤醒状态",define:{type:"bool",mapping:{0:"未唤醒",1:"已成功唤醒"}}}],required:!1},{id:"edit_user",name:"编辑用户",desc:"编辑一个用户",input:[{id:"userid",name:"用户id",define:{type:"string",min:"0",max:"20"}},{id:"name",name:"用户昵称",define:{type:"string",min:"0",max:"10"}},{id:"effectiveTime",name:"生效时间",define:{type:"string",min:"0",max:"1024"}}],output:[{id:"result",name:"编辑结果",define:{type:"bool",mapping:{0:"编辑成功",1:"编辑失败"}}}],required:!1},{id:"add_cycle_password",name:"添加周期密码",desc:"",input:[{id:"take_effect_time",name:"生效时间",define:{type:"string",min:"0",max:"6"}},{id:"invalid_time",name:"失效时间",define:{type:"string",min:"0",max:"6"}},{id:"check_code",name:"校验码",define:{type:"string",min:"0",max:"100"}},{id:"week",name:"生效星期",define:{type:"string",min:"0",max:"7"}},{id:"take_effect_date",name:"生效日期",define:{type:"string",min:"0",max:"10"}},{id:"invalid_date",name:"失败日期",define:{type:"string",min:"0",max:"10"}}],output:[{id:"id",name:"密码id",define:{type:"string",min:"0",max:"2048"}},{id:"result",name:"修改成功状态",define:{type:"bool",mapping:{0:"添加失败",1:"添加成功"}}}],required:!1},{id:"currentId",name:"查询当前用户编号",desc:"",input:[],output:[{id:"userid",name:"用户编号",define:{type:"int",min:"0",max:"1000",start:"0",step:"1",unit:""}}],required:!1,from:"custom"},{id:"close_lock",name:"远程关锁",desc:"",input:[],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"关锁失败",1:"关锁成功"}}}],required:!1,from:"custom"},{id:"device_restart",name:"设备重启",desc:"",input:[],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"重启失败",1:"重启成功"}}}],required:!1,from:"custom"},{id:"add_user_pwd",name:"添加用户密码",desc:"",input:[{id:"userid",name:"用户编号",define:{type:"int",min:"0",max:"1000",start:"0",step:"1",unit:""}},{id:"password",name:"密码",define:{type:"string",min:"0",max:"20"}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"添加失败",1:"添加成功"}}}],required:!1,from:"custom"},{id:"add_User",name:"添加用户",desc:"",input:[{id:"userid",name:"用户编号",define:{type:"int",min:"1",max:"1000",start:"1",step:"1",unit:""}},{id:"username",name:"用户名称",define:{type:"string",min:"0",max:"2048"}},{id:"usertype",name:"用户类型",define:{type:"enum",mapping:{0:"普通用户",1:"管理员"}}},{id:"pwdtype",name:"密码类型",define:{type:"enum",mapping:{0:"指纹",1:"密码",2:"卡片"}}},{id:"password",name:"密码",define:{type:"string",min:"0",max:"20"}},{id:"start_effective_time",name:"有效起始时间",define:{type:"timestamp"}},{id:"end_effective_time",name:"有效结束时间",define:{type:"timestamp"}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"添加失败",1:"添加成功"}}}],required:!1,from:"custom"},{id:"set_user",name:"编辑用户",desc:"",input:[{id:"userid",name:"用户编号",define:{type:"int",min:"0",max:"1000",start:"0",step:"1",unit:""}},{id:"username",name:"用户名称",define:{type:"string",min:"0",max:"2048"}},{id:"start_effective_time",name:"有效起始时间",define:{type:"timestamp"}},{id:"end_effective_time",name:"有效结束时间",define:{type:"timestamp"}},{id:"usertype",name:"用户类型",define:{type:"enum",mapping:{0:"普通用户",1:"管理员"}}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"},{id:"add_remote_control",name:"添加遥控",desc:"",input:[],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"添加失败",1:"添加成功"}}}],required:!1,from:"custom"},{id:"delete_remote_control",name:"删除遥控",desc:"",input:[],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"删除失败",1:"删除成功"}}}],required:!1,from:"custom"},{id:"get_open_history",name:"获取开锁记录",desc:"",input:[{id:"start_time",name:"开始时间",define:{type:"timestamp"}},{id:"end_time",name:"结束时间",define:{type:"timestamp"}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"},{id:"get_property_value",name:"获取设备属性值",desc:"",input:[{id:"property_id",name:"属性id",define:{type:"string",min:"0",max:"128"}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"},{id:"update_time",name:"设置时间",desc:"",input:[{id:"address",name:"时区值",define:{type:"string",min:"0",max:"2048"}},{id:"time",name:"当前时间",define:{type:"timestamp"}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"},{id:"add_nfc",name:"添加卡片",desc:"",input:[{id:"userid",name:"用户编号",define:{type:"int",min:"1",max:"1000",start:"1",step:"1",unit:""}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"},{id:"add_user_finger",name:"添加指纹",desc:"",input:[{id:"userid",name:"用户编号",define:{type:"int",min:"1",max:"1000",start:"1",step:"1",unit:""}}],output:[{id:"result",name:"结果",define:{type:"bool",mapping:{0:"失败",1:"成功"}}}],required:!1,from:"custom"}]};var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function J(e){return e&&e.t&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch(i){}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"t",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}var K,Q,V={exports:{}};const X=J((K||(K=1,Q=V,function(e){function t(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function r(e,r,i,n,s,a){return t((o=t(t(r,e),t(n,a)))<<(u=s)|o>>>32-u,i);var o,u}function i(e,t,i,n,s,a,o){return r(t&i|~t&n,e,t,s,a,o)}function n(e,t,i,n,s,a,o){return r(t&n|i&~n,e,t,s,a,o)}function s(e,t,i,n,s,a,o){return r(t^i^n,e,t,s,a,o)}function a(e,t,i,n,s,a,o){return r(i^(t|~n),e,t,s,a,o)}function o(e,r){var o,u,c,d,f;e[r>>5]|=128<<r%32,e[14+(r+64>>>9<<4)]=r;var m=1732584193,p=-271733879,h=-1732584194,v=271733878;for(o=0;o<e.length;o+=16)u=m,c=p,d=h,f=v,m=i(m,p,h,v,e[o],7,-680876936),v=i(v,m,p,h,e[o+1],12,-389564586),h=i(h,v,m,p,e[o+2],17,606105819),p=i(p,h,v,m,e[o+3],22,-1044525330),m=i(m,p,h,v,e[o+4],7,-176418897),v=i(v,m,p,h,e[o+5],12,1200080426),h=i(h,v,m,p,e[o+6],17,-1473231341),p=i(p,h,v,m,e[o+7],22,-45705983),m=i(m,p,h,v,e[o+8],7,1770035416),v=i(v,m,p,h,e[o+9],12,-1958414417),h=i(h,v,m,p,e[o+10],17,-42063),p=i(p,h,v,m,e[o+11],22,-1990404162),m=i(m,p,h,v,e[o+12],7,1804603682),v=i(v,m,p,h,e[o+13],12,-40341101),h=i(h,v,m,p,e[o+14],17,-1502002290),m=n(m,p=i(p,h,v,m,e[o+15],22,1236535329),h,v,e[o+1],5,-165796510),v=n(v,m,p,h,e[o+6],9,-1069501632),h=n(h,v,m,p,e[o+11],14,643717713),p=n(p,h,v,m,e[o],20,-373897302),m=n(m,p,h,v,e[o+5],5,-701558691),v=n(v,m,p,h,e[o+10],9,38016083),h=n(h,v,m,p,e[o+15],14,-660478335),p=n(p,h,v,m,e[o+4],20,-405537848),m=n(m,p,h,v,e[o+9],5,568446438),v=n(v,m,p,h,e[o+14],9,-1019803690),h=n(h,v,m,p,e[o+3],14,-187363961),p=n(p,h,v,m,e[o+8],20,1163531501),m=n(m,p,h,v,e[o+13],5,-1444681467),v=n(v,m,p,h,e[o+2],9,-51403784),h=n(h,v,m,p,e[o+7],14,1735328473),m=s(m,p=n(p,h,v,m,e[o+12],20,-1926607734),h,v,e[o+5],4,-378558),v=s(v,m,p,h,e[o+8],11,-2022574463),h=s(h,v,m,p,e[o+11],16,1839030562),p=s(p,h,v,m,e[o+14],23,-35309556),m=s(m,p,h,v,e[o+1],4,-1530992060),v=s(v,m,p,h,e[o+4],11,1272893353),h=s(h,v,m,p,e[o+7],16,-155497632),p=s(p,h,v,m,e[o+10],23,-1094730640),m=s(m,p,h,v,e[o+13],4,681279174),v=s(v,m,p,h,e[o],11,-358537222),h=s(h,v,m,p,e[o+3],16,-722521979),p=s(p,h,v,m,e[o+6],23,76029189),m=s(m,p,h,v,e[o+9],4,-640364487),v=s(v,m,p,h,e[o+12],11,-421815835),h=s(h,v,m,p,e[o+15],16,530742520),m=a(m,p=s(p,h,v,m,e[o+2],23,-995338651),h,v,e[o],6,-198630844),v=a(v,m,p,h,e[o+7],10,1126891415),h=a(h,v,m,p,e[o+14],15,-1416354905),p=a(p,h,v,m,e[o+5],21,-57434055),m=a(m,p,h,v,e[o+12],6,1700485571),v=a(v,m,p,h,e[o+3],10,-1894986606),h=a(h,v,m,p,e[o+10],15,-1051523),p=a(p,h,v,m,e[o+1],21,-2054922799),m=a(m,p,h,v,e[o+8],6,1873313359),v=a(v,m,p,h,e[o+15],10,-30611744),h=a(h,v,m,p,e[o+6],15,-1560198380),p=a(p,h,v,m,e[o+13],21,1309151649),m=a(m,p,h,v,e[o+4],6,-145523070),v=a(v,m,p,h,e[o+11],10,-1120210379),h=a(h,v,m,p,e[o+2],15,718787259),p=a(p,h,v,m,e[o+9],21,-343485551),m=t(m,u),p=t(p,c),h=t(h,d),v=t(v,f);return[m,p,h,v]}function u(e){var t,r="",i=32*e.length;for(t=0;t<i;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function c(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function d(e){var t,r,i="0123456789abcdef",n="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),n+=i.charAt(t>>>4&15)+i.charAt(15&t);return n}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return u(o(c(e),8*e.length))}(f(e))}function p(e,t){return function(e,t){var r,i,n=c(e),s=[],a=[];for(s[15]=a[15]=void 0,n.length>16&&(n=o(n,8*e.length)),r=0;r<16;r+=1)s[r]=909522486^n[r],a[r]=1549556828^n[r];return i=o(s.concat(c(t)),512+8*t.length),u(o(a.concat(i),640))}(f(e),f(t))}function h(e,t,r){return t?r?p(t,e):d(p(t,e)):r?m(e):d(m(e))}Q.exports?Q.exports=h:e.md5=h}(V.exports)),V.exports)),Y=e=>{let t=[];for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<=127?t.push(i):i<=2047?t.push(192|i>>>6,128|63&i):i<=65535?t.push(224|i>>>12,128|i>>>6&63,128|63&i):t.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)}return new Uint8Array(t)},Z=(e,t)=>{let r;switch(t){case"int":case"timestamp":r=4;break;case"enum":r=2;break;case"bool":r=1}const i=new ArrayBuffer(r),n=new DataView(i);return 4===r?n.setUint32(0,e,!1):2===r?n.setUint16(0,e,!1):n.setUint8(0,e),new Uint8Array(i)},G=e=>{let t="",r=0;const i=e.length;for(;r<i;){const n=e[r];if(n>=0&&n<=127)t+=String.fromCharCode(n),r++;else if(n>=192&&n<=223){if(r+1>=i)break;const s=(31&n)<<6|63&e[r+1];t+=String.fromCharCode(s),r+=2}else if(n>=224&&n<=239){if(r+2>=i)break;const s=(15&n)<<12|(63&e[r+1])<<6|63&e[r+2];t+=String.fromCharCode(s),r+=3}else if(n>=240&&n<=247){if(r+3>=i)break;const s=(7&n)<<18|(63&e[r+1])<<12|(63&e[r+2])<<6|63&e[r+3];t+=String.fromCodePoint(s),r+=4}else r++}return t},ee=e=>e[0]<<24|// 第1字节(最高位)
e[1]<<16|// 第2字节
e[2]<<8|// 第3字节
e[3],te=e=>((e,t)=>{const r=new Uint8Array(e,t);return String.fromCharCode.apply(null,r)})(e,9),re=(e,t)=>{const r=(e=>{if(16!==e.length)throw new Error(`Temp 长度异常!预期 16 字节,实际 ${e.length} 字节`);const t=e.slice(0,8),r=e.slice(8,16),i=new Uint8Array(8);for(let n=0;n<8;n++)i[n]=t[n]^r[n];return i})((e=>{if((e=e.replace(/^0x/,"")).length%2!=0)throw new Error("十六进制长度必须是偶数");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++)t[r]=parseInt(e.substr(2*r,2),16);return t})(X(e))),i=new Uint8Array(t,3,8);return JSON.stringify(r)==JSON.stringify(i)},ie=e=>{switch(e){case"string":return 2;case"int":return 1;case"bool":default:return 0;case"enum":return 4;case"array":return 7;case"object":return 6;case"timestamp":return 5}},ne=e=>{let t=[];const r=L.actions.find(t=>t.id===e);if(r&&r.input.length>0){for(let e of r.input)t.push({id:e.id,type:e.define.type});return{type:"object",data:t}}return r?{type:"ordinary",data:"bool"}:null},se=e=>{const t=L.actions.findIndex(t=>t.id===e);return-1!=t?t:null},ae=e=>{var t;let r=[],i=["int","bool","enum","timestamp"];const n=L.properties.find(t=>t.id===e);if(n){if(i.includes(n.define.type))return{type:"ordinary",data:n.define.type};if("struct"===n.define.type){for(let e of n.define.specs)r.push({id:e.id,type:e.dataType.type});return{type:"object",data:r}}if("array"===n.define.type&&n.define.arrayInfo){if(i.includes(n.define.arrayInfo.type))return{type:"array",data:n.define.arrayInfo.type};if("struct"===(null==(t=n.define.arrayInfo)?void 0:t.type)&&n.define.arrayInfo.specs){for(let e of n.define.arrayInfo.specs)r.push({id:e.id,type:e.dataType.type});return{type:"array",data:r}}}}return null},oe=e=>{const t=L.properties.findIndex(t=>t.id===e);return-1!=t?t:null};var ue={exports:{}};var ce={exports:{}};const de=$(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var fe;function me(){return fe||(fe=1,ce.exports=(e=e||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==H&&H.crypto&&(r=H.crypto),!r)try{r=de}catch(v){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},o=a.Base=function(){return{
/**
             * Creates a new object that inherits from this object.
             *
             * @param {Object} overrides Properties to copy into the new object.
             *
             * @return {Object} The new object.
             *
             * @static
             *
             * @example
             *
             *     var MyType = CryptoJS.lib.Base.extend({
             *         field: 'value',
             *
             *         method: function () {
             *         }
             *     });
             */
extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},
/**
             * Extends this object and runs the init method.
             * Arguments to create() will be passed to init().
             *
             * @return {Object} The new object.
             *
             * @static
             *
             * @example
             *
             *     var instance = MyType.create();
             */
create:function(){var e=this.extend();return e.init.apply(e,arguments),e},
/**
             * Initializes a newly created object.
             * Override this method to add some logic when your objects are created.
             *
             * @example
             *
             *     var MyType = CryptoJS.lib.Base.extend({
             *         init: function () {
             *             // ...
             *         }
             *     });
             */
init:function(){},
/**
             * Copies properties into this object.
             *
             * @param {Object} properties The properties to mix in.
             *
             * @example
             *
             *     MyType.mixIn({
             *         field: 'value'
             *     });
             */
mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},
/**
             * Creates a copy of this object.
             *
             * @return {Object} The clone.
             *
             * @example
             *
             *     var clone = instance.clone();
             */
clone:function(){return this.init.prototype.extend(this)}}}(),u=a.WordArray=o.extend({
/**
           * Initializes a newly created word array.
           *
           * @param {Array} words (Optional) An array of 32-bit words.
           * @param {number} sigBytes (Optional) The number of significant bytes in the words.
           *
           * @example
           *
           *     var wordArray = CryptoJS.lib.WordArray.create();
           *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
           *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
           */
init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},
/**
           * Converts this word array to a string.
           *
           * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
           *
           * @return {string} The stringified word array.
           *
           * @example
           *
           *     var string = wordArray + '';
           *     var string = wordArray.toString();
           *     var string = wordArray.toString(CryptoJS.enc.Utf8);
           */
toString:function(e){return(e||d).stringify(this)},
/**
           * Concatenates a word array to this word array.
           *
           * @param {WordArray} wordArray The word array to append.
           *
           * @return {WordArray} This word array.
           *
           * @example
           *
           *     wordArray1.concat(wordArray2);
           */
concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)t[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},
/**
           * Removes insignificant bits.
           *
           * @example
           *
           *     wordArray.clamp();
           */
clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},
/**
           * Creates a copy of this word array.
           *
           * @return {WordArray} The clone.
           *
           * @example
           *
           *     var clone = wordArray.clone();
           */
clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},
/**
           * Creates a word array filled with random bytes.
           *
           * @param {number} nBytes The number of random bytes to generate.
           *
           * @return {WordArray} The random word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.lib.WordArray.random(16);
           */
random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new u.init(t,e)}}),c=s.enc={},d=c.Hex={
/**
           * Converts a word array to a hex string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The hex string.
           *
           * @static
           *
           * @example
           *
           *     var hexString = CryptoJS.enc.Hex.stringify(wordArray);
           */
stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},
/**
           * Converts a hex string to a word array.
           *
           * @param {string} hexStr The hex string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Hex.parse(hexString);
           */
parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new u.init(r,t/2)}},f=c.Latin1={
/**
           * Converts a word array to a Latin1 string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The Latin1 string.
           *
           * @static
           *
           * @example
           *
           *     var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
           */
stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},
/**
           * Converts a Latin1 string to a word array.
           *
           * @param {string} latin1Str The Latin1 string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
           */
parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new u.init(r,t)}},m=c.Utf8={
/**
           * Converts a word array to a UTF-8 string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The UTF-8 string.
           *
           * @static
           *
           * @example
           *
           *     var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
           */
stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},
/**
           * Converts a UTF-8 string to a word array.
           *
           * @param {string} utf8Str The UTF-8 string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
           */
parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=o.extend({
/**
           * Resets this block algorithm's data buffer to its initial state.
           *
           * @example
           *
           *     bufferedBlockAlgorithm.reset();
           */
reset:function(){this.i=new u.init,this.o=0},
/**
           * Adds new data to this block algorithm's buffer.
           *
           * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
           *
           * @example
           *
           *     bufferedBlockAlgorithm._append('data');
           *     bufferedBlockAlgorithm._append(wordArray);
           */
u:function(e){"string"==typeof e&&(e=m.parse(e)),this.i.concat(e),this.o+=e.sigBytes},
/**
           * Processes available data blocks.
           *
           * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
           *
           * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
           *
           * @return {WordArray} The processed data.
           *
           * @example
           *
           *     var processedData = bufferedBlockAlgorithm._process();
           *     var processedData = bufferedBlockAlgorithm._process(!!'flush');
           */
m:function(t){var r,i=this.i,n=i.words,s=i.sigBytes,a=this.blockSize,o=s/(4*a),c=(o=t?e.ceil(o):e.max((0|o)-this.p,0))*a,d=e.min(4*c,s);if(c){for(var f=0;f<c;f+=a)this.h(n,f);r=n.splice(0,c),i.sigBytes-=d}return new u.init(r,d)},
/**
           * Creates a copy of this object.
           *
           * @return {Object} The clone.
           *
           * @example
           *
           *     var clone = bufferedBlockAlgorithm.clone();
           */
clone:function(){var e=o.clone.call(this);return e.i=this.i.clone(),e},p:0});a.Hasher=p.extend({
/**
           * Configuration options.
           */
cfg:o.extend(),
/**
           * Initializes a newly created hasher.
           *
           * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
           *
           * @example
           *
           *     var hasher = CryptoJS.algo.SHA256.create();
           */
init:function(e){this.cfg=this.cfg.extend(e),this.reset()},
/**
           * Resets this hasher to its initial state.
           *
           * @example
           *
           *     hasher.reset();
           */
reset:function(){p.reset.call(this),this.v()},
/**
           * Updates this hasher with a message.
           *
           * @param {WordArray|string} messageUpdate The message to append.
           *
           * @return {Hasher} This hasher.
           *
           * @example
           *
           *     hasher.update('message');
           *     hasher.update(wordArray);
           */
update:function(e){return this.u(e),this.m(),this},
/**
           * Finalizes the hash computation.
           * Note that the finalize operation is effectively a destructive, read-once operation.
           *
           * @param {WordArray|string} messageUpdate (Optional) A final message update.
           *
           * @return {WordArray} The hash.
           *
           * @example
           *
           *     var hash = hasher.finalize();
           *     var hash = hasher.finalize('message');
           *     var hash = hasher.finalize(wordArray);
           */
finalize:function(e){return e&&this.u(e),this.l()},blockSize:16,
/**
           * Creates a shortcut function to a hasher's object interface.
           *
           * @param {Hasher} hasher The hasher to create a helper for.
           *
           * @return {Function} The shortcut function.
           *
           * @static
           *
           * @example
           *
           *     var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
           */
_:function(e){return function(t,r){return new e.init(r).finalize(t)}},
/**
           * Creates a shortcut function to the HMAC's object interface.
           *
           * @param {Hasher} hasher The hasher to use in this HMAC helper.
           *
           * @return {Function} The shortcut function.
           *
           * @static
           *
           * @example
           *
           *     var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
           */
I:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=s.algo={};return s}(Math),e)),ce.exports;var e}var pe,he={exports:{}};function ve(){return pe?he.exports:(pe=1,he.exports=(a=me(),r=(t=a).lib,i=r.Base,n=r.WordArray,(s=t.x64={}).Word=i.extend({
/**
           * Initializes a newly created 64-bit word.
           *
           * @param {number} high The high 32 bits.
           * @param {number} low The low 32 bits.
           *
           * @example
           *
           *     var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
           */
init:function(e,t){this.high=e,this.low=t}
/**
           * Bitwise NOTs this word.
           *
           * @return {X64Word} A new x64-Word object after negating.
           *
           * @example
           *
           *     var negated = x64Word.not();
           */
// not: function () {
// var high = ~this.high;
// var low = ~this.low;
// return X64Word.create(high, low);
// },
/**
           * Bitwise ANDs this word with the passed word.
           *
           * @param {X64Word} word The x64-Word to AND with this word.
           *
           * @return {X64Word} A new x64-Word object after ANDing.
           *
           * @example
           *
           *     var anded = x64Word.and(anotherX64Word);
           */
// and: function (word) {
// var high = this.high & word.high;
// var low = this.low & word.low;
// return X64Word.create(high, low);
// },
/**
           * Bitwise ORs this word with the passed word.
           *
           * @param {X64Word} word The x64-Word to OR with this word.
           *
           * @return {X64Word} A new x64-Word object after ORing.
           *
           * @example
           *
           *     var ored = x64Word.or(anotherX64Word);
           */
// or: function (word) {
// var high = this.high | word.high;
// var low = this.low | word.low;
// return X64Word.create(high, low);
// },
/**
           * Bitwise XORs this word with the passed word.
           *
           * @param {X64Word} word The x64-Word to XOR with this word.
           *
           * @return {X64Word} A new x64-Word object after XORing.
           *
           * @example
           *
           *     var xored = x64Word.xor(anotherX64Word);
           */
// xor: function (word) {
// var high = this.high ^ word.high;
// var low = this.low ^ word.low;
// return X64Word.create(high, low);
// },
/**
           * Shifts this word n bits to the left.
           *
           * @param {number} n The number of bits to shift.
           *
           * @return {X64Word} A new x64-Word object after shifting.
           *
           * @example
           *
           *     var shifted = x64Word.shiftL(25);
           */
// shiftL: function (n) {
// if (n < 32) {
// var high = (this.high << n) | (this.low >>> (32 - n));
// var low = this.low << n;
// } else {
// var high = this.low << (n - 32);
// var low = 0;
// }
// return X64Word.create(high, low);
// },
/**
           * Shifts this word n bits to the right.
           *
           * @param {number} n The number of bits to shift.
           *
           * @return {X64Word} A new x64-Word object after shifting.
           *
           * @example
           *
           *     var shifted = x64Word.shiftR(7);
           */
// shiftR: function (n) {
// if (n < 32) {
// var low = (this.low >>> n) | (this.high << (32 - n));
// var high = this.high >>> n;
// } else {
// var low = this.high >>> (n - 32);
// var high = 0;
// }
// return X64Word.create(high, low);
// },
/**
           * Rotates this word n bits to the left.
           *
           * @param {number} n The number of bits to rotate.
           *
           * @return {X64Word} A new x64-Word object after rotating.
           *
           * @example
           *
           *     var rotated = x64Word.rotL(25);
           */
// rotL: function (n) {
// return this.shiftL(n).or(this.shiftR(64 - n));
// },
/**
           * Rotates this word n bits to the right.
           *
           * @param {number} n The number of bits to rotate.
           *
           * @return {X64Word} A new x64-Word object after rotating.
           *
           * @example
           *
           *     var rotated = x64Word.rotR(7);
           */
// rotR: function (n) {
// return this.shiftR(n).or(this.shiftL(64 - n));
// },
/**
           * Adds this word with the passed word.
           *
           * @param {X64Word} word The x64-Word to add with this word.
           *
           * @return {X64Word} A new x64-Word object after adding.
           *
           * @example
           *
           *     var added = x64Word.add(anotherX64Word);
           */
// add: function (word) {
// var low = (this.low + word.low) | 0;
// var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
// var high = (this.high + word.high + carry) | 0;
// return X64Word.create(high, low);
// }
}),s.WordArray=i.extend({
/**
           * Initializes a newly created word array.
           *
           * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
           * @param {number} sigBytes (Optional) The number of significant bytes in the words.
           *
           * @example
           *
           *     var wordArray = CryptoJS.x64.WordArray.create();
           *
           *     var wordArray = CryptoJS.x64.WordArray.create([
           *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),
           *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
           *     ]);
           *
           *     var wordArray = CryptoJS.x64.WordArray.create([
           *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),
           *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
           *     ], 10);
           */
init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},
/**
           * Converts this 64-bit word array to a 32-bit word array.
           *
           * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
           *
           * @example
           *
           *     var x32WordArray = x64WordArray.toX32();
           */
toX32:function(){for(var e=this.words,t=e.length,r=[],i=0;i<t;i++){var s=e[i];r.push(s.high),r.push(s.low)}return n.create(r,this.sigBytes)},
/**
           * Creates a copy of this word array.
           *
           * @return {X64WordArray} The clone.
           *
           * @example
           *
           *     var clone = x64WordArray.clone();
           */
clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),a));var e,t,r,i,n,s,a}var le,ye={exports:{}};function we(){return le||(le=1,ye.exports=(e=me(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init,i=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,i=[],n=0;n<t;n++)i[n>>>2]|=e[n]<<24-n%4*8;r.call(this,i,t)}else r.apply(this,arguments)};i.prototype=t}}(),e.lib.WordArray)),ye.exports;var e}var ge,_e={exports:{}};function xe(){return ge?_e.exports:(ge=1,_e.exports=(e=me(),function(){var t=e,r=t.lib.WordArray,i=t.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16=i.Utf16BE={
/**
           * Converts a word array to a UTF-16 BE string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The UTF-16 BE string.
           *
           * @static
           *
           * @example
           *
           *     var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
           */
stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n+=2){var s=t[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},
/**
           * Converts a UTF-16 BE string to a word array.
           *
           * @param {string} utf16Str The UTF-16 BE string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
           */
parse:function(e){for(var t=e.length,i=[],n=0;n<t;n++)i[n>>>1]|=e.charCodeAt(n)<<16-n%2*16;return r.create(i,2*t)}},i.Utf16LE={
/**
           * Converts a word array to a UTF-16 LE string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The UTF-16 LE string.
           *
           * @static
           *
           * @example
           *
           *     var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
           */
stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],s=0;s<r;s+=2){var a=n(t[s>>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},
/**
           * Converts a UTF-16 LE string to a word array.
           *
           * @param {string} utf16Str The UTF-16 LE string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
           */
parse:function(e){for(var t=e.length,i=[],s=0;s<t;s++)i[s>>>1]|=n(e.charCodeAt(s)<<16-s%2*16);return r.create(i,2*t)}}}(),e.enc.Utf16));var e}var Ee,Ie={exports:{}};function Ae(){return Ee?Ie.exports:(Ee=1,Ie.exports=(e=me(),function(){var t=e,r=t.lib.WordArray;function i(e,t,i){for(var n=[],s=0,a=0;a<t;a++)if(a%4){var o=i[e.charCodeAt(a-1)]<<a%4*2|i[e.charCodeAt(a)]>>>6-a%4*2;n[s>>>2]|=o<<24-s%4*8,s++}return r.create(n,s)}t.enc.Base64={
/**
           * Converts a word array to a Base64 string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @return {string} The Base64 string.
           *
           * @static
           *
           * @example
           *
           *     var base64String = CryptoJS.enc.Base64.stringify(wordArray);
           */
stringify:function(e){var t=e.words,r=e.sigBytes,i=this.A;e.clamp();for(var n=[],s=0;s<r;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o<r;o++)n.push(i.charAt(a>>>6*(3-o)&63));var u=i.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},
/**
           * Converts a Base64 string to a word array.
           *
           * @param {string} base64Str The Base64 string.
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Base64.parse(base64String);
           */
parse:function(e){var t=e.length,r=this.A,n=this.k;if(!n){n=this.k=[];for(var s=0;s<r.length;s++)n[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var o=e.indexOf(a);-1!==o&&(t=o)}return i(e,t,n)},A:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var be,ke={exports:{}};function Fe(){return be?ke.exports:(be=1,ke.exports=(e=me(),function(){var t=e,r=t.lib.WordArray;function i(e,t,i){for(var n=[],s=0,a=0;a<t;a++)if(a%4){var o=i[e.charCodeAt(a-1)]<<a%4*2|i[e.charCodeAt(a)]>>>6-a%4*2;n[s>>>2]|=o<<24-s%4*8,s++}return r.create(n,s)}t.enc.Base64url={
/**
           * Converts a word array to a Base64url string.
           *
           * @param {WordArray} wordArray The word array.
           *
           * @param {boolean} urlSafe Whether to use url safe
           *
           * @return {string} The Base64url string.
           *
           * @static
           *
           * @example
           *
           *     var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
           */
stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,i=e.sigBytes,n=t?this.F:this.A;e.clamp();for(var s=[],a=0;a<i;a+=3)for(var o=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,u=0;u<4&&a+.75*u<i;u++)s.push(n.charAt(o>>>6*(3-u)&63));var c=n.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},
/**
           * Converts a Base64url string to a word array.
           *
           * @param {string} base64Str The Base64url string.
           *
           * @param {boolean} urlSafe Whether to use url safe
           *
           * @return {WordArray} The word array.
           *
           * @static
           *
           * @example
           *
           *     var wordArray = CryptoJS.enc.Base64url.parse(base64String);
           */
parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this.F:this.A,s=this.k;if(!s){s=this.k=[];for(var a=0;a<n.length;a++)s[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var u=e.indexOf(o);-1!==u&&(r=u)}return i(e,r,s)},A:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",F:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Be,Se={exports:{}};function Ue(){return Be?Se.exports:(Be=1,Se.exports=(e=me(),function(t){var r=e,i=r.lib,n=i.WordArray,s=i.Hasher,a=r.algo,o=[];!function(){for(var e=0;e<64;e++)o[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=s.extend({v:function(){this.B=new n.init([1732584193,4023233417,2562383102,271733878])},h:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this.B.words,a=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],l=e[t+5],y=e[t+6],w=e[t+7],g=e[t+8],_=e[t+9],x=e[t+10],E=e[t+11],I=e[t+12],A=e[t+13],b=e[t+14],k=e[t+15],F=s[0],B=s[1],S=s[2],U=s[3];F=c(F,B,S,U,a,7,o[0]),U=c(U,F,B,S,u,12,o[1]),S=c(S,U,F,B,p,17,o[2]),B=c(B,S,U,F,h,22,o[3]),F=c(F,B,S,U,v,7,o[4]),U=c(U,F,B,S,l,12,o[5]),S=c(S,U,F,B,y,17,o[6]),B=c(B,S,U,F,w,22,o[7]),F=c(F,B,S,U,g,7,o[8]),U=c(U,F,B,S,_,12,o[9]),S=c(S,U,F,B,x,17,o[10]),B=c(B,S,U,F,E,22,o[11]),F=c(F,B,S,U,I,7,o[12]),U=c(U,F,B,S,A,12,o[13]),S=c(S,U,F,B,b,17,o[14]),F=d(F,B=c(B,S,U,F,k,22,o[15]),S,U,u,5,o[16]),U=d(U,F,B,S,y,9,o[17]),S=d(S,U,F,B,E,14,o[18]),B=d(B,S,U,F,a,20,o[19]),F=d(F,B,S,U,l,5,o[20]),U=d(U,F,B,S,x,9,o[21]),S=d(S,U,F,B,k,14,o[22]),B=d(B,S,U,F,v,20,o[23]),F=d(F,B,S,U,_,5,o[24]),U=d(U,F,B,S,b,9,o[25]),S=d(S,U,F,B,h,14,o[26]),B=d(B,S,U,F,g,20,o[27]),F=d(F,B,S,U,A,5,o[28]),U=d(U,F,B,S,p,9,o[29]),S=d(S,U,F,B,w,14,o[30]),F=f(F,B=d(B,S,U,F,I,20,o[31]),S,U,l,4,o[32]),U=f(U,F,B,S,g,11,o[33]),S=f(S,U,F,B,E,16,o[34]),B=f(B,S,U,F,b,23,o[35]),F=f(F,B,S,U,u,4,o[36]),U=f(U,F,B,S,v,11,o[37]),S=f(S,U,F,B,w,16,o[38]),B=f(B,S,U,F,x,23,o[39]),F=f(F,B,S,U,A,4,o[40]),U=f(U,F,B,S,a,11,o[41]),S=f(S,U,F,B,h,16,o[42]),B=f(B,S,U,F,y,23,o[43]),F=f(F,B,S,U,_,4,o[44]),U=f(U,F,B,S,I,11,o[45]),S=f(S,U,F,B,k,16,o[46]),F=m(F,B=f(B,S,U,F,p,23,o[47]),S,U,a,6,o[48]),U=m(U,F,B,S,w,10,o[49]),S=m(S,U,F,B,b,15,o[50]),B=m(B,S,U,F,l,21,o[51]),F=m(F,B,S,U,I,6,o[52]),U=m(U,F,B,S,h,10,o[53]),S=m(S,U,F,B,x,15,o[54]),B=m(B,S,U,F,u,21,o[55]),F=m(F,B,S,U,g,6,o[56]),U=m(U,F,B,S,k,10,o[57]),S=m(S,U,F,B,y,15,o[58]),B=m(B,S,U,F,A,21,o[59]),F=m(F,B,S,U,v,6,o[60]),U=m(U,F,B,S,E,10,o[61]),S=m(S,U,F,B,p,15,o[62]),B=m(B,S,U,F,_,21,o[63]),s[0]=s[0]+F|0,s[1]=s[1]+B|0,s[2]=s[2]+S|0,s[3]=s[3]+U|0},l:function(){var e=this.i,r=e.words,i=8*this.o,n=8*e.sigBytes;r[n>>>5]|=128<<24-n%32;var s=t.floor(i/4294967296),a=i;r[15+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this.m();for(var o=this.B,u=o.words,c=0;c<4;c++){var d=u[c];u[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return o},clone:function(){var e=s.clone.call(this);return e.B=this.B.clone(),e}});function c(e,t,r,i,n,s,a){var o=e+(t&r|~t&i)+n+a;return(o<<s|o>>>32-s)+t}function d(e,t,r,i,n,s,a){var o=e+(t&i|r&~i)+n+a;return(o<<s|o>>>32-s)+t}function f(e,t,r,i,n,s,a){var o=e+(t^r^i)+n+a;return(o<<s|o>>>32-s)+t}function m(e,t,r,i,n,s,a){var o=e+(r^(t|~i))+n+a;return(o<<s|o>>>32-s)+t}r.MD5=s._(u),r.HmacMD5=s.I(u)}(Math),e.MD5));var e}var Te,De={exports:{}};function qe(){return Te?De.exports:(Te=1,De.exports=(o=me(),t=(e=o).lib,r=t.WordArray,i=t.Hasher,n=e.algo,s=[],a=n.SHA1=i.extend({v:function(){this.B=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},h:function(e,t){for(var r=this.B.words,i=r[0],n=r[1],a=r[2],o=r[3],u=r[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var d=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=d<<1|d>>>31}var f=(i<<5|i>>>27)+u+s[c];f+=c<20?1518500249+(n&a|~n&o):c<40?1859775393+(n^a^o):c<60?(n&a|n&o|a&o)-1894007588:(n^a^o)-899497514,u=o,o=a,a=n<<30|n>>>2,n=i,i=f}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+u|0},l:function(){var e=this.i,t=e.words,r=8*this.o,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this.m(),this.B},clone:function(){var e=i.clone.call(this);return e.B=this.B.clone(),e}}),e.SHA1=i._(a),e.HmacSHA1=i.I(a),o.SHA1));var e,t,r,i,n,s,a,o}var Pe,Me={exports:{}};function Oe(){return Pe?Me.exports:(Pe=1,Me.exports=(e=me(),function(t){var r=e,i=r.lib,n=i.WordArray,s=i.Hasher,a=r.algo,o=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),i=2;i<=r;i++)if(!(e%i))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)e(i)&&(n<8&&(o[n]=r(t.pow(i,.5))),u[n]=r(t.pow(i,1/3)),n++),i++}();var c=[],d=a.SHA256=s.extend({v:function(){this.B=new n.init(o.slice(0))},h:function(e,t){for(var r=this.B.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],d=r[5],f=r[6],m=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,l=c[p-2],y=(l<<15|l>>>17)^(l<<13|l>>>19)^l>>>10;c[p]=v+c[p-7]+y+c[p-16]}var w=i&n^i&s^n&s,g=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),_=m+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&d^~o&f)+u[p]+c[p];m=f,f=d,d=o,o=a+_|0,a=s,s=n,n=i,i=_+(g+w)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0,r[5]=r[5]+d|0,r[6]=r[6]+f|0,r[7]=r[7]+m|0},l:function(){var e=this.i,r=e.words,i=8*this.o,n=8*e.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=t.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,e.sigBytes=4*r.length,this.m(),this.B},clone:function(){var e=s.clone.call(this);return e.B=this.B.clone(),e}});r.SHA256=s._(d),r.HmacSHA256=s.I(d)}(Math),e.SHA256));var e}var Re,ze={exports:{}};var Ne,Ce={exports:{}};function We(){return Ne||(Ne=1,Ce.exports=(e=me(),ve(),function(){var t=e,r=t.lib.Hasher,i=t.x64,n=i.Word,s=i.WordArray,a=t.algo;function o(){return n.create.apply(n,arguments)}var u=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=o()}();var d=a.SHA512=r.extend({v:function(){this.B=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},h:function(e,t){for(var r=this.B.words,i=r[0],n=r[1],s=r[2],a=r[3],o=r[4],d=r[5],f=r[6],m=r[7],p=i.high,h=i.low,v=n.high,l=n.low,y=s.high,w=s.low,g=a.high,_=a.low,x=o.high,E=o.low,I=d.high,A=d.low,b=f.high,k=f.low,F=m.high,B=m.low,S=p,U=h,T=v,D=l,q=y,P=w,M=g,O=_,R=x,z=E,N=I,C=A,W=b,j=k,L=F,H=B,J=0;J<80;J++){var $,K,Q=c[J];if(J<16)K=Q.high=0|e[t+2*J],$=Q.low=0|e[t+2*J+1];else{var V=c[J-15],X=V.high,Y=V.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,G=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[J-2],te=ee.high,re=ee.low,ie=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ne=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),se=c[J-7],ae=se.high,oe=se.low,ue=c[J-16],ce=ue.high,de=ue.low;K=(K=(K=Z+ae+(($=G+oe)>>>0<G>>>0?1:0))+ie+(($+=ne)>>>0<ne>>>0?1:0))+ce+(($+=de)>>>0<de>>>0?1:0),Q.high=K,Q.low=$}var fe,me=R&N^~R&W,pe=z&C^~z&j,he=S&T^S&q^T&q,ve=U&D^U&P^D&P,le=(S>>>28|U<<4)^(S<<30|U>>>2)^(S<<25|U>>>7),ye=(U>>>28|S<<4)^(U<<30|S>>>2)^(U<<25|S>>>7),we=(R>>>14|z<<18)^(R>>>18|z<<14)^(R<<23|z>>>9),ge=(z>>>14|R<<18)^(z>>>18|R<<14)^(z<<23|R>>>9),_e=u[J],xe=_e.high,Ee=_e.low,Ie=L+we+((fe=H+ge)>>>0<H>>>0?1:0),Ae=ye+ve;L=W,H=j,W=N,j=C,N=R,C=z,R=M+(Ie=(Ie=(Ie=Ie+me+((fe+=pe)>>>0<pe>>>0?1:0))+xe+((fe+=Ee)>>>0<Ee>>>0?1:0))+K+((fe+=$)>>>0<$>>>0?1:0))+((z=O+fe|0)>>>0<O>>>0?1:0)|0,M=q,O=P,q=T,P=D,T=S,D=U,S=Ie+(le+he+(Ae>>>0<ye>>>0?1:0))+((U=fe+Ae|0)>>>0<fe>>>0?1:0)|0}h=i.low=h+U,i.high=p+S+(h>>>0<U>>>0?1:0),l=n.low=l+D,n.high=v+T+(l>>>0<D>>>0?1:0),w=s.low=w+P,s.high=y+q+(w>>>0<P>>>0?1:0),_=a.low=_+O,a.high=g+M+(_>>>0<O>>>0?1:0),E=o.low=E+z,o.high=x+R+(E>>>0<z>>>0?1:0),A=d.low=A+C,d.high=I+N+(A>>>0<C>>>0?1:0),k=f.low=k+j,f.high=b+W+(k>>>0<j>>>0?1:0),B=m.low=B+H,m.high=F+L+(B>>>0<H>>>0?1:0)},l:function(){var e=this.i,t=e.words,r=8*this.o,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(i+128>>>10<<5)]=r,e.sigBytes=4*t.length,this.m(),this.B.toX32()},clone:function(){var e=r.clone.call(this);return e.B=this.B.clone(),e},blockSize:32});t.SHA512=r._(d),t.HmacSHA512=r.I(d)}(),e.SHA512)),Ce.exports;var e}var je,Le={exports:{}};var He,Je={exports:{}};function $e(){return He?Je.exports:(He=1,Je.exports=(e=me(),ve(),function(t){var r=e,i=r.lib,n=i.WordArray,s=i.Hasher,a=r.x64.Word,o=r.algo,u=[],c=[],d=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var n=1,s=0;s<24;s++){for(var o=0,f=0,m=0;m<7;m++){if(1&n){var p=(1<<m)-1;p<32?f^=1<<p:o^=1<<p-32}128&n?n=n<<1^113:n<<=1}d[s]=a.create(o,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var m=o.SHA3=s.extend({
/**
           * Configuration options.
           *
           * @property {number} outputLength
           *   The desired number of bits in the output hash.
           *   Only values permitted are: 224, 256, 384, 512.
           *   Default: 512
           */
cfg:s.cfg.extend({outputLength:512}),v:function(){for(var e=this.S=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},h:function(e,t){for(var r=this.S,i=this.blockSize/2,n=0;n<i;n++){var s=e[t+2*n],a=e[t+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(B=r[n]).high^=a,B.low^=s}for(var o=0;o<24;o++){for(var m=0;m<5;m++){for(var p=0,h=0,v=0;v<5;v++)p^=(B=r[m+5*v]).high,h^=B.low;var l=f[m];l.high=p,l.low=h}for(m=0;m<5;m++){var y=f[(m+4)%5],w=f[(m+1)%5],g=w.high,_=w.low;for(p=y.high^(g<<1|_>>>31),h=y.low^(_<<1|g>>>31),v=0;v<5;v++)(B=r[m+5*v]).high^=p,B.low^=h}for(var x=1;x<25;x++){var E=(B=r[x]).high,I=B.low,A=u[x];A<32?(p=E<<A|I>>>32-A,h=I<<A|E>>>32-A):(p=I<<A-32|E>>>64-A,h=E<<A-32|I>>>64-A);var b=f[c[x]];b.high=p,b.low=h}var k=f[0],F=r[0];for(k.high=F.high,k.low=F.low,m=0;m<5;m++)for(v=0;v<5;v++){var B=r[x=m+5*v],S=f[x],U=f[(m+1)%5+5*v],T=f[(m+2)%5+5*v];B.high=S.high^~U.high&T.high,B.low=S.low^~U.low&T.low}B=r[0];var D=d[o];B.high^=D.high,B.low^=D.low}},l:function(){var e=this.i,r=e.words;this.o;var i=8*e.sigBytes,s=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(t.ceil((i+1)/s)*s>>>5)-1]|=128,e.sigBytes=4*r.length,this.m();for(var a=this.S,o=this.cfg.outputLength/8,u=o/8,c=[],d=0;d<u;d++){var f=a[d],m=f.high,p=f.low;m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(m)}return new n.init(c,o)},clone:function(){for(var e=s.clone.call(this),t=e.S=this.S.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=s._(m),r.HmacSHA3=s.I(m)}(Math),e.SHA3));var e}var Ke,Qe={exports:{}};var Ve,Xe={exports:{}};function Ye(){return Ve?Xe.exports:(Ve=1,Xe.exports=(e=me(),r=(t=e).lib.Base,i=t.enc.Utf8,void(t.algo.HMAC=r.extend({
/**
           * Initializes a newly created HMAC.
           *
           * @param {Hasher} hasher The hash algorithm to use.
           * @param {WordArray|string} key The secret key.
           *
           * @example
           *
           *     var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
           */
init:function(e,t){e=this.U=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var s=this.T=t.clone(),a=this.D=t.clone(),o=s.words,u=a.words,c=0;c<r;c++)o[c]^=1549556828,u[c]^=909522486;s.sigBytes=a.sigBytes=n,this.reset()},
/**
           * Resets this HMAC to its initial state.
           *
           * @example
           *
           *     hmacHasher.reset();
           */
reset:function(){var e=this.U;e.reset(),e.update(this.D)},
/**
           * Updates this HMAC with a message.
           *
           * @param {WordArray|string} messageUpdate The message to append.
           *
           * @return {HMAC} This HMAC instance.
           *
           * @example
           *
           *     hmacHasher.update('message');
           *     hmacHasher.update(wordArray);
           */
update:function(e){return this.U.update(e),this},
/**
           * Finalizes the HMAC computation.
           * Note that the finalize operation is effectively a destructive, read-once operation.
           *
           * @param {WordArray|string} messageUpdate (Optional) A final message update.
           *
           * @return {WordArray} The HMAC.
           *
           * @example
           *
           *     var hmac = hmacHasher.finalize();
           *     var hmac = hmacHasher.finalize('message');
           *     var hmac = hmacHasher.finalize(wordArray);
           */
finalize:function(e){var t=this.U,r=t.finalize(e);return t.reset(),t.finalize(this.T.clone().concat(r))}}))));var e,t,r,i}var Ze,Ge={exports:{}};var et,tt={exports:{}};function rt(){return et?tt.exports:(et=1,tt.exports=(o=me(),qe(),Ye(),t=(e=o).lib,r=t.Base,i=t.WordArray,n=e.algo,s=n.MD5,a=n.EvpKDF=r.extend({
/**
           * Configuration options.
           *
           * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
           * @property {Hasher} hasher The hash algorithm to use. Default: MD5
           * @property {number} iterations The number of iterations to perform. Default: 1
           */
cfg:r.extend({keySize:4,hasher:s,iterations:1}),
/**
           * Initializes a newly created key derivation function.
           *
           * @param {Object} cfg (Optional) The configuration options to use for the derivation.
           *
           * @example
           *
           *     var kdf = CryptoJS.algo.EvpKDF.create();
           *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
           *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
           */
init:function(e){this.cfg=this.cfg.extend(e)},
/**
           * Derives a key from a password.
           *
           * @param {WordArray|string} password The password.
           * @param {WordArray|string} salt A salt.
           *
           * @return {WordArray} The derived key.
           *
           * @example
           *
           *     var key = kdf.compute(password, salt);
           */
compute:function(e,t){for(var r,n=this.cfg,s=n.hasher.create(),a=i.create(),o=a.words,u=n.keySize,c=n.iterations;o.length<u;){r&&s.update(r),r=s.update(e).finalize(t),s.reset();for(var d=1;d<c;d++)r=s.finalize(r),s.reset();a.concat(r)}return a.sigBytes=4*u,a}}),e.EvpKDF=function(e,t,r){return a.create(r).compute(e,t)},o.EvpKDF));var e,t,r,i,n,s,a,o}var it,nt={exports:{}};function st(){return it?nt.exports:(it=1,nt.exports=(e=me(),rt(),void(e.lib.Cipher||function(t){var r=e,i=r.lib,n=i.Base,s=i.WordArray,a=i.BufferedBlockAlgorithm,o=r.enc;o.Utf8;var u=o.Base64,c=r.algo.EvpKDF,d=i.Cipher=a.extend({
/**
           * Configuration options.
           *
           * @property {WordArray} iv The IV to use for this operation.
           */
cfg:n.extend(),
/**
           * Creates this cipher in encryption mode.
           *
           * @param {WordArray} key The key.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {Cipher} A cipher instance.
           *
           * @static
           *
           * @example
           *
           *     var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
           */
createEncryptor:function(e,t){return this.create(this.q,e,t)},
/**
           * Creates this cipher in decryption mode.
           *
           * @param {WordArray} key The key.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {Cipher} A cipher instance.
           *
           * @static
           *
           * @example
           *
           *     var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
           */
createDecryptor:function(e,t){return this.create(this.P,e,t)},
/**
           * Initializes a newly created cipher.
           *
           * @param {number} xformMode Either the encryption or decryption transormation mode constant.
           * @param {WordArray} key The key.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @example
           *
           *     var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
           */
init:function(e,t,r){this.cfg=this.cfg.extend(r),this.M=e,this.O=t,this.reset()},
/**
           * Resets this cipher to its initial state.
           *
           * @example
           *
           *     cipher.reset();
           */
reset:function(){a.reset.call(this),this.v()},
/**
           * Adds data to be encrypted or decrypted.
           *
           * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
           *
           * @return {WordArray} The data after processing.
           *
           * @example
           *
           *     var encrypted = cipher.process('data');
           *     var encrypted = cipher.process(wordArray);
           */
process:function(e){return this.u(e),this.m()},
/**
           * Finalizes the encryption or decryption process.
           * Note that the finalize operation is effectively a destructive, read-once operation.
           *
           * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
           *
           * @return {WordArray} The data after final processing.
           *
           * @example
           *
           *     var encrypted = cipher.finalize();
           *     var encrypted = cipher.finalize('data');
           *     var encrypted = cipher.finalize(wordArray);
           */
finalize:function(e){return e&&this.u(e),this.l()},keySize:4,ivSize:4,q:1,P:2,
/**
           * Creates shortcut functions to a cipher's object interface.
           *
           * @param {Cipher} cipher The cipher to create a helper for.
           *
           * @return {Object} An object with encrypt and decrypt shortcut functions.
           *
           * @static
           *
           * @example
           *
           *     var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
           */
_:function(){function e(e){return"string"==typeof e?g:y}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()});i.StreamCipher=d.extend({l:function(){return this.m(!0)},blockSize:1});var f=r.mode={},m=i.BlockCipherMode=n.extend({
/**
           * Creates this mode for encryption.
           *
           * @param {Cipher} cipher A block cipher instance.
           * @param {Array} iv The IV words.
           *
           * @static
           *
           * @example
           *
           *     var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
           */
createEncryptor:function(e,t){return this.Encryptor.create(e,t)},
/**
           * Creates this mode for decryption.
           *
           * @param {Cipher} cipher A block cipher instance.
           * @param {Array} iv The IV words.
           *
           * @static
           *
           * @example
           *
           *     var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
           */
createDecryptor:function(e,t){return this.Decryptor.create(e,t)},
/**
           * Initializes a newly created mode.
           *
           * @param {Cipher} cipher A block cipher instance.
           * @param {Array} iv The IV words.
           *
           * @example
           *
           *     var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
           */
init:function(e,t){this.R=e,this.N=t}}),p=f.CBC=function(){var e=m.extend();function r(e,r,i){var n,s=this.N;s?(n=s,this.N=t):n=this.C;for(var a=0;a<i;a++)e[r+a]^=n[a]}return e.Encryptor=e.extend({
/**
             * Processes the data block at offset.
             *
             * @param {Array} words The data words to operate on.
             * @param {number} offset The offset where the block starts.
             *
             * @example
             *
             *     mode.processBlock(data.words, offset);
             */
processBlock:function(e,t){var i=this.R,n=i.blockSize;r.call(this,e,t,n),i.encryptBlock(e,t),this.C=e.slice(t,t+n)}}),e.Decryptor=e.extend({
/**
             * Processes the data block at offset.
             *
             * @param {Array} words The data words to operate on.
             * @param {number} offset The offset where the block starts.
             *
             * @example
             *
             *     mode.processBlock(data.words, offset);
             */
processBlock:function(e,t){var i=this.R,n=i.blockSize,s=e.slice(t,t+n);i.decryptBlock(e,t),r.call(this,e,t,n),this.C=s}}),e}(),h=(r.pad={}).Pkcs7={
/**
           * Pads data using the algorithm defined in PKCS #5/7.
           *
           * @param {WordArray} data The data to pad.
           * @param {number} blockSize The multiple that the data should be padded to.
           *
           * @static
           *
           * @example
           *
           *     CryptoJS.pad.Pkcs7.pad(wordArray, 4);
           */
pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,a=[],o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);e.concat(u)},
/**
           * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
           *
           * @param {WordArray} data The data to unpad.
           *
           * @static
           *
           * @example
           *
           *     CryptoJS.pad.Pkcs7.unpad(wordArray);
           */
unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};i.BlockCipher=d.extend({
/**
           * Configuration options.
           *
           * @property {Mode} mode The block mode to use. Default: CBC
           * @property {Padding} padding The padding strategy to use. Default: Pkcs7
           */
cfg:d.cfg.extend({mode:p,padding:h}),reset:function(){var e;d.reset.call(this);var t=this.cfg,r=t.iv,i=t.mode;this.M==this.q?e=i.createEncryptor:(e=i.createDecryptor,this.p=1),this.W&&this.W.j==e?this.W.init(this,r&&r.words):(this.W=e.call(i,this,r&&r.words),this.W.j=e)},h:function(e,t){this.W.processBlock(e,t)},l:function(){var e,t=this.cfg.padding;return this.M==this.q?(t.pad(this.i,this.blockSize),e=this.m(!0)):(e=this.m(!0),t.unpad(e)),e},blockSize:4});var v=i.CipherParams=n.extend({
/**
           * Initializes a newly created cipher params object.
           *
           * @param {Object} cipherParams An object with any of the possible cipher parameters.
           *
           * @example
           *
           *     var cipherParams = CryptoJS.lib.CipherParams.create({
           *         ciphertext: ciphertextWordArray,
           *         key: keyWordArray,
           *         iv: ivWordArray,
           *         salt: saltWordArray,
           *         algorithm: CryptoJS.algo.AES,
           *         mode: CryptoJS.mode.CBC,
           *         padding: CryptoJS.pad.PKCS7,
           *         blockSize: 4,
           *         formatter: CryptoJS.format.OpenSSL
           *     });
           */
init:function(e){this.mixIn(e)},
/**
           * Converts this cipher params object to a string.
           *
           * @param {Format} formatter (Optional) The formatting strategy to use.
           *
           * @return {string} The stringified cipher params.
           *
           * @throws Error If neither the formatter nor the default formatter is set.
           *
           * @example
           *
           *     var string = cipherParams + '';
           *     var string = cipherParams.toString();
           *     var string = cipherParams.toString(CryptoJS.format.OpenSSL);
           */
toString:function(e){return(e||this.formatter).stringify(this)}}),l=(r.format={}).OpenSSL={
/**
           * Converts a cipher params object to an OpenSSL-compatible string.
           *
           * @param {CipherParams} cipherParams The cipher params object.
           *
           * @return {string} The OpenSSL-compatible string.
           *
           * @static
           *
           * @example
           *
           *     var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
           */
stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},
/**
           * Converts an OpenSSL-compatible string to a cipher params object.
           *
           * @param {string} openSSLStr The OpenSSL-compatible string.
           *
           * @return {CipherParams} The cipher params object.
           *
           * @static
           *
           * @example
           *
           *     var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
           */
parse:function(e){var t,r=u.parse(e),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},y=i.SerializableCipher=n.extend({
/**
           * Configuration options.
           *
           * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
           */
cfg:n.extend({format:l}),
/**
           * Encrypts a message.
           *
           * @param {Cipher} cipher The cipher algorithm to use.
           * @param {WordArray|string} message The message to encrypt.
           * @param {WordArray} key The key.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {CipherParams} A cipher params object.
           *
           * @static
           *
           * @example
           *
           *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
           *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
           *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
           */
encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),s=n.finalize(t),a=n.cfg;return v.create({ciphertext:s,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},
/**
           * Decrypts serialized ciphertext.
           *
           * @param {Cipher} cipher The cipher algorithm to use.
           * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
           * @param {WordArray} key The key.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {WordArray} The plaintext.
           *
           * @static
           *
           * @example
           *
           *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
           *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
           */
decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this.L(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},
/**
           * Converts serialized ciphertext to CipherParams,
           * else assumed CipherParams already and returns ciphertext unchanged.
           *
           * @param {CipherParams|string} ciphertext The ciphertext.
           * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
           *
           * @return {CipherParams} The unserialized ciphertext.
           *
           * @static
           *
           * @example
           *
           *     var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
           */
L:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(r.kdf={}).OpenSSL={
/**
           * Derives a key and IV from a password.
           *
           * @param {string} password The password to derive from.
           * @param {number} keySize The size in words of the key to generate.
           * @param {number} ivSize The size in words of the IV to generate.
           * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
           *
           * @return {CipherParams} A cipher params object with the key, IV, and salt.
           *
           * @static
           *
           * @example
           *
           *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
           *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
           */
execute:function(e,t,r,i,n){if(i||(i=s.random(8)),n)a=c.create({keySize:t+r,hasher:n}).compute(e,i);else var a=c.create({keySize:t+r}).compute(e,i);var o=s.create(a.words.slice(t),4*r);return a.sigBytes=4*t,v.create({key:a,iv:o,salt:i})}},g=i.PasswordBasedCipher=y.extend({
/**
           * Configuration options.
           *
           * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
           */
cfg:y.cfg.extend({kdf:w}),
/**
           * Encrypts a message using a password.
           *
           * @param {Cipher} cipher The cipher algorithm to use.
           * @param {WordArray|string} message The message to encrypt.
           * @param {string} password The password.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {CipherParams} A cipher params object.
           *
           * @static
           *
           * @example
           *
           *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
           *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
           */
encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=n.iv;var s=y.encrypt.call(this,e,t,n.key,i);return s.mixIn(n),s},
/**
           * Decrypts serialized ciphertext using a password.
           *
           * @param {Cipher} cipher The cipher algorithm to use.
           * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
           * @param {string} password The password.
           * @param {Object} cfg (Optional) The configuration options to use for this operation.
           *
           * @return {WordArray} The plaintext.
           *
           * @static
           *
           * @example
           *
           *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
           *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
           */
decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this.L(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt,i.hasher);return i.iv=n.iv,y.decrypt.call(this,e,t,n.key,i)}})}())));var e}var at,ot={exports:{}};var ut,ct={exports:{}};var dt,ft={exports:{}};function mt(){return dt?ft.exports:(dt=1,ft.exports=(e=me(),st(),
/** @preserve
       * Counter block mode compatible with  Dr Brian Gladman fileenc.c
       * derived from CryptoJS.mode.CTR
       * Jan Hruby jhruby.web@gmail.com
       */
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,i=255&e;255===t?(t=0,255===r?(r=0,255===i?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}return e}function i(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var r=this.R,n=r.blockSize,s=this.N,a=this.H;s&&(a=this.H=s.slice(0),this.N=void 0),i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)e[t+u]^=o[u]}});return t.Decryptor=n,t}(),e.mode.CTRGladman));var e}var pt,ht={exports:{}};var vt,lt={exports:{}};var yt,wt={exports:{}};var gt,_t={exports:{}};var xt,Et={exports:{}};var It,At={exports:{}};var bt,kt={exports:{}};var Ft,Bt={exports:{}};var St,Ut={exports:{}};var Tt,Dt={exports:{}};function qt(){return Tt?Dt.exports:(Tt=1,Dt.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib,i=r.WordArray,n=r.BlockCipher,s=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=s.DES=n.extend({v:function(){for(var e=this.O.words,t=[],r=0;r<56;r++){var i=a[r]-1;t[r]=e[i>>>5]>>>31-i%32&1}for(var n=this.J=[],s=0;s<16;s++){var c=n[s]=[],d=u[s];for(r=0;r<24;r++)c[r/6|0]|=t[(o[r]-1+d)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(o[r+24]-1+d)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this.$=[];for(r=0;r<16;r++)f[r]=n[15-r]},encryptBlock:function(e,t){this.K(e,t,this.J)},decryptBlock:function(e,t){this.K(e,t,this.$)},K:function(e,t,r){this.V=e[t],this.X=e[t+1],m.call(this,4,252645135),m.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),m.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],s=this.V,a=this.X,o=0,u=0;u<8;u++)o|=c[u][((a^n[u])&d[u])>>>0];this.V=a,this.X=s^o}var f=this.V;this.V=this.X,this.X=f,m.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),e[t]=this.V,e[t+1]=this.X},keySize:2,ivSize:2,blockSize:2});function m(e,t){var r=(this.V>>>e^this.X)&t;this.X^=r,this.V^=r<<e}function p(e,t){var r=(this.X>>>e^this.V)&t;this.V^=r,this.X^=r<<e}t.DES=n._(f);var h=s.TripleDES=n.extend({v:function(){var e=this.O.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),n=e.length<6?e.slice(0,2):e.slice(4,6);this.Y=f.createEncryptor(i.create(t)),this.Z=f.createEncryptor(i.create(r)),this.G=f.createEncryptor(i.create(n))},encryptBlock:function(e,t){this.Y.encryptBlock(e,t),this.Z.decryptBlock(e,t),this.G.encryptBlock(e,t)},decryptBlock:function(e,t){this.G.decryptBlock(e,t),this.Z.encryptBlock(e,t),this.Y.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=n._(h)}(),e.TripleDES));var e}var Pt,Mt={exports:{}};var Ot,Rt={exports:{}};var zt,Nt={exports:{}};var Ct,Wt={exports:{}};function jt(){return Ct?Wt.exports:(Ct=1,Wt.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib.BlockCipher,i=t.algo;const n=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function u(e,t){let r=t>>24&255,i=t>>16&255,n=t>>8&255,s=255&t,a=e.sbox[0][r]+e.sbox[1][i];return a^=e.sbox[2][n],a+=e.sbox[3][s],a}function c(e,t,r){let i,s=t,a=r;for(let o=0;o<n;++o)s^=e.pbox[o],a=u(e,s)^a,i=s,s=a,a=i;return i=s,s=a,a=i,a^=e.pbox[n],s^=e.pbox[n+1],{left:s,right:a}}function d(e,t,r){let i,s=t,a=r;for(let o=n+1;o>1;--o)s^=e.pbox[o],a=u(e,s)^a,i=s,s=a,a=i;return i=s,s=a,a=i,a^=e.pbox[1],s^=e.pbox[0],{left:s,right:a}}function f(e,t,r){for(let n=0;n<4;n++){e.sbox[n]=[];for(let t=0;t<256;t++)e.sbox[n][t]=a[n][t]}let i=0;for(let a=0;a<n+2;a++)e.pbox[a]=s[a]^t[i],i++,i>=r&&(i=0);let o=0,u=0,d=0;for(let s=0;s<n+2;s+=2)d=c(e,o,u),o=d.left,u=d.right,e.pbox[s]=o,e.pbox[s+1]=u;for(let n=0;n<4;n++)for(let t=0;t<256;t+=2)d=c(e,o,u),o=d.left,u=d.right,e.sbox[n][t]=o,e.sbox[n][t+1]=u;return!0}var m=i.Blowfish=r.extend({v:function(){if(this.ee!==this.O){var e=this.ee=this.O,t=e.words,r=e.sigBytes/4;f(o,t,r)}},encryptBlock:function(e,t){var r=c(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=d(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=r._(m)}(),e.Blowfish));var e}var Lt,Ht,Jt,$t,Kt,Qt,Vt;const Xt=J(Lt?ue.exports:(Lt=1,ue.exports=function(e){return e}(me(),ve(),we(),xe(),Ae(),Fe(),Ue(),qe(),Oe(),Re||(Re=1,ze.exports=(Vt=me(),Oe(),Jt=(Ht=Vt).lib.WordArray,$t=Ht.algo,Kt=$t.SHA256,Qt=$t.SHA224=Kt.extend({v:function(){this.B=new Jt.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},l:function(){var e=Kt.l.call(this);return e.sigBytes-=4,e}}),Ht.SHA224=Kt._(Qt),Ht.HmacSHA224=Kt.I(Qt),Vt.SHA224)),We(),function(){return je?Le.exports:(je=1,Le.exports=(o=me(),ve(),We(),t=(e=o).x64,r=t.Word,i=t.WordArray,n=e.algo,s=n.SHA512,a=n.SHA384=s.extend({v:function(){this.B=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},l:function(){var e=s.l.call(this);return e.sigBytes-=16,e}}),e.SHA384=s._(a),e.HmacSHA384=s.I(a),o.SHA384));var e,t,r,i,n,s,a,o}(),$e(),function(){return Ke?Qe.exports:(Ke=1,Qe.exports=(e=me(),
/** @preserve
      			(c) 2012 by Cédric Mesnil. All rights reserved.
      
      			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
      
      			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
      			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
      
      			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      			*/
function(){var t=e,r=t.lib,i=r.WordArray,n=r.Hasher,s=t.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=n.extend({v:function(){this.B=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},h:function(e,t){for(var r=0;r<16;r++){var i=t+r,n=e[i];e[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s,m,g,_,x,E,I,A,b,k,F,B=this.B.words,S=d.words,U=f.words,T=a.words,D=o.words,q=u.words,P=c.words;for(E=s=B[0],I=m=B[1],A=g=B[2],b=_=B[3],k=x=B[4],r=0;r<80;r+=1)F=s+e[t+T[r]]|0,F+=r<16?p(m,g,_)+S[0]:r<32?h(m,g,_)+S[1]:r<48?v(m,g,_)+S[2]:r<64?l(m,g,_)+S[3]:y(m,g,_)+S[4],F=(F=w(F|=0,q[r]))+x|0,s=x,x=_,_=w(g,10),g=m,m=F,F=E+e[t+D[r]]|0,F+=r<16?y(I,A,b)+U[0]:r<32?l(I,A,b)+U[1]:r<48?v(I,A,b)+U[2]:r<64?h(I,A,b)+U[3]:p(I,A,b)+U[4],F=(F=w(F|=0,P[r]))+k|0,E=k,k=b,b=w(A,10),A=I,I=F;F=B[1]+g+b|0,B[1]=B[2]+_+k|0,B[2]=B[3]+x+E|0,B[3]=B[4]+s+I|0,B[4]=B[0]+m+A|0,B[0]=F},l:function(){var e=this.i,t=e.words,r=8*this.o,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this.m();for(var n=this.B,s=n.words,a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var e=n.clone.call(this);return e.B=this.B.clone(),e}});function p(e,t,r){return e^t^r}function h(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function l(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=n._(m),t.HmacRIPEMD160=n.I(m)}(),e.RIPEMD160));var e}(),Ye(),function(){return Ze?Ge.exports:(Ze=1,Ge.exports=(u=me(),Oe(),Ye(),t=(e=u).lib,r=t.Base,i=t.WordArray,n=e.algo,s=n.SHA256,a=n.HMAC,o=n.PBKDF2=r.extend({
/**
           * Configuration options.
           *
           * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
           * @property {Hasher} hasher The hasher to use. Default: SHA256
           * @property {number} iterations The number of iterations to perform. Default: 250000
           */
cfg:r.extend({keySize:4,hasher:s,iterations:25e4}),
/**
           * Initializes a newly created key derivation function.
           *
           * @param {Object} cfg (Optional) The configuration options to use for the derivation.
           *
           * @example
           *
           *     var kdf = CryptoJS.algo.PBKDF2.create();
           *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
           *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
           */
init:function(e){this.cfg=this.cfg.extend(e)},
/**
           * Computes the Password-Based Key Derivation Function 2.
           *
           * @param {WordArray|string} password The password.
           * @param {WordArray|string} salt A salt.
           *
           * @return {WordArray} The derived key.
           *
           * @example
           *
           *     var key = kdf.compute(password, salt);
           */
compute:function(e,t){for(var r=this.cfg,n=a.create(r.hasher,e),s=i.create(),o=i.create([1]),u=s.words,c=o.words,d=r.keySize,f=r.iterations;u.length<d;){var m=n.update(t).finalize(o);n.reset();for(var p=m.words,h=p.length,v=m,l=1;l<f;l++){v=n.finalize(v),n.reset();for(var y=v.words,w=0;w<h;w++)p[w]^=y[w]}s.concat(m),c[0]++}return s.sigBytes=4*d,s}}),e.PBKDF2=function(e,t,r){return o.create(r).compute(e,t)},u.PBKDF2));var e,t,r,i,n,s,a,o,u}(),rt(),st(),function(){return at?ot.exports:(at=1,ot.exports=(e=me(),st(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,i){var n,s=this.N;s?(n=s.slice(0),this.N=void 0):n=this.C,i.encryptBlock(n,0);for(var a=0;a<r;a++)e[t+a]^=n[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this.R,n=i.blockSize;r.call(this,e,t,n,i),this.C=e.slice(t,t+n)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this.R,n=i.blockSize,s=e.slice(t,t+n);r.call(this,e,t,n,i),this.C=s}}),t}(),e.mode.CFB));var e}(),function(){return ut?ct.exports:(ut=1,ct.exports=(r=me(),st(),r.mode.CTR=(e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var r=this.R,i=r.blockSize,n=this.N,s=this.H;n&&(s=this.H=n.slice(0),this.N=void 0);var a=s.slice(0);r.encryptBlock(a,0),s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)e[t+o]^=a[o]}}),e.Decryptor=t,e),r.mode.CTR));var e,t,r}(),mt(),function(){return pt?ht.exports:(pt=1,ht.exports=(r=me(),st(),r.mode.OFB=(e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var r=this.R,i=r.blockSize,n=this.N,s=this.te;n&&(s=this.te=n.slice(0),this.N=void 0),r.encryptBlock(s,0);for(var a=0;a<i;a++)e[t+a]^=s[a]}}),e.Decryptor=t,e),r.mode.OFB));var e,t,r}(),function(){return vt?lt.exports:(vt=1,lt.exports=(t=me(),st(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this.R.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this.R.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return yt?wt.exports:(yt=1,wt.exports=(e=me(),st(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,i=4*t,n=i-r%i,s=r+n-1;e.clamp(),e.words[s>>>2]|=n<<24-s%4*8,e.sigBytes+=n},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return gt?_t.exports:(gt=1,_t.exports=(e=me(),st(),e.pad.Iso10126={pad:function(t,r){var i=4*r,n=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(n-1)).concat(e.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return xt?Et.exports:(xt=1,Et.exports=(e=me(),st(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return It?At.exports:(It=1,At.exports=(e=me(),st(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding));var e}(),function(){return bt?kt.exports:(bt=1,kt.exports=(e=me(),st(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Ft?Bt.exports:(Ft=1,Bt.exports=(i=me(),st(),t=(e=i).lib.CipherParams,r=e.enc.Hex,e.format.Hex={
/**
           * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
           *
           * @param {CipherParams} cipherParams The cipher params object.
           *
           * @return {string} The hexadecimally encoded string.
           *
           * @static
           *
           * @example
           *
           *     var hexString = CryptoJS.format.Hex.stringify(cipherParams);
           */
stringify:function(e){return e.ciphertext.toString(r)},
/**
           * Converts a hexadecimally encoded ciphertext string to a cipher params object.
           *
           * @param {string} input The hexadecimally encoded string.
           *
           * @return {CipherParams} The cipher params object.
           *
           * @static
           *
           * @example
           *
           *     var cipherParams = CryptoJS.format.Hex.parse(hexString);
           */
parse:function(e){var i=r.parse(e);return t.create({ciphertext:i})}},i.format.Hex));var e,t,r,i}(),function(){return St?Ut.exports:(St=1,Ut.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib.BlockCipher,i=t.algo,n=[],s=[],a=[],o=[],u=[],c=[],d=[],f=[],m=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var h=i^i<<1^i<<2^i<<3^i<<4;h=h>>>8^255&h^99,n[r]=h,s[h]=r;var v=e[r],l=e[v],y=e[l],w=257*e[h]^16843008*h;a[r]=w<<24|w>>>8,o[r]=w<<16|w>>>16,u[r]=w<<8|w>>>24,c[r]=w,w=16843009*y^65537*l^257*v^16843008*r,d[h]=w<<24|w>>>8,f[h]=w<<16|w>>>16,m[h]=w<<8|w>>>24,p[h]=w,r?(r=v^e[e[e[y^v]]],i^=e[e[i]]):r=i=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=r.extend({v:function(){if(!this.re||this.ee!==this.O){for(var e=this.ee=this.O,t=e.words,r=e.sigBytes/4,i=4*((this.re=r+6)+1),s=this.ie=[],a=0;a<i;a++)a<r?s[a]=t[a]:(c=s[a-1],a%r?r>6&&a%r==4&&(c=n[c>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c]):(c=n[(c=c<<8|c>>>24)>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c],c^=h[a/r|0]<<24),s[a]=s[a-r]^c);for(var o=this.ne=[],u=0;u<i;u++){if(a=i-u,u%4)var c=s[a];else c=s[a-4];o[u]=u<4||a<=4?c:d[n[c>>>24]]^f[n[c>>>16&255]]^m[n[c>>>8&255]]^p[n[255&c]]}}},encryptBlock:function(e,t){this.K(e,t,this.ie,a,o,u,c,n)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this.K(e,t,this.ne,d,f,m,p,s),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},K:function(e,t,r,i,n,s,a,o){for(var u=this.re,c=e[t]^r[0],d=e[t+1]^r[1],f=e[t+2]^r[2],m=e[t+3]^r[3],p=4,h=1;h<u;h++){var v=i[c>>>24]^n[d>>>16&255]^s[f>>>8&255]^a[255&m]^r[p++],l=i[d>>>24]^n[f>>>16&255]^s[m>>>8&255]^a[255&c]^r[p++],y=i[f>>>24]^n[m>>>16&255]^s[c>>>8&255]^a[255&d]^r[p++],w=i[m>>>24]^n[c>>>16&255]^s[d>>>8&255]^a[255&f]^r[p++];c=v,d=l,f=y,m=w}v=(o[c>>>24]<<24|o[d>>>16&255]<<16|o[f>>>8&255]<<8|o[255&m])^r[p++],l=(o[d>>>24]<<24|o[f>>>16&255]<<16|o[m>>>8&255]<<8|o[255&c])^r[p++],y=(o[f>>>24]<<24|o[m>>>16&255]<<16|o[c>>>8&255]<<8|o[255&d])^r[p++],w=(o[m>>>24]<<24|o[c>>>16&255]<<16|o[d>>>8&255]<<8|o[255&f])^r[p++],e[t]=v,e[t+1]=l,e[t+2]=y,e[t+3]=w},keySize:8});t.AES=r._(v)}(),e.AES));var e}(),qt(),function(){return Pt?Mt.exports:(Pt=1,Mt.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib.StreamCipher,i=t.algo,n=i.RC4=r.extend({v:function(){for(var e=this.O,t=e.words,r=e.sigBytes,i=this.se=[],n=0;n<256;n++)i[n]=n;n=0;for(var s=0;n<256;n++){var a=n%r,o=t[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s],i[s]=u}this.ae=this.oe=0},h:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this.se,t=this.ae,r=this.oe,i=0,n=0;n<4;n++){r=(r+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[r],e[r]=s,i|=e[(e[t]+e[r])%256]<<24-8*n}return this.ae=t,this.oe=r,i}t.RC4=r._(n);var a=i.RC4Drop=n.extend({
/**
           * Configuration options.
           *
           * @property {number} drop The number of keystream words to drop. Default 192
           */
cfg:n.cfg.extend({drop:192}),v:function(){n.v.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});t.RC4Drop=r._(a)}(),e.RC4));var e}(),function(){return Ot?Rt.exports:(Ot=1,Rt.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib.StreamCipher,i=t.algo,n=[],s=[],a=[],o=i.Rabbit=r.extend({v:function(){for(var e=this.O.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var i=this.ue=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this.ce=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this.de=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var s=t.words,a=s[0],o=s[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=c>>>16|4294901760&d,m=d<<16|65535&c;for(n[0]^=c,n[1]^=f,n[2]^=d,n[3]^=m,n[4]^=c,n[5]^=f,n[6]^=d,n[7]^=m,r=0;r<4;r++)u.call(this)}},h:function(e,t){var r=this.ue;u.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function u(){for(var e=this.ue,t=this.ce,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this.de|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this.de=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,u=((n*n>>>17)+n*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=u^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._(o)}(),e.Rabbit));var e}(),function(){return zt?Nt.exports:(zt=1,Nt.exports=(e=me(),Ae(),Ue(),rt(),st(),function(){var t=e,r=t.lib.StreamCipher,i=t.algo,n=[],s=[],a=[],o=i.RabbitLegacy=r.extend({v:function(){var e=this.O.words,t=this.cfg.iv,r=this.ue=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this.ce=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this.de=0;for(var n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var s=t.words,a=s[0],o=s[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=c>>>16|4294901760&d,m=d<<16|65535&c;for(i[0]^=c,i[1]^=f,i[2]^=d,i[3]^=m,i[4]^=c,i[5]^=f,i[6]^=d,i[7]^=m,n=0;n<4;n++)u.call(this)}},h:function(e,t){var r=this.ue;u.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),e[t+i]^=n[i]},blockSize:4,ivSize:2});function u(){for(var e=this.ue,t=this.ce,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this.de|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this.de=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var i=e[r]+t[r],n=65535&i,o=i>>>16,u=((n*n>>>17)+n*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);a[r]=u^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._(o)}(),e.RabbitLegacy));var e}(),jt()))),Yt=e=>{let t=new Uint8Array([226,255&JSON.stringify(e).length,0,255&JSON.stringify(e.SSID).length]),r=[];for(let n of JSON.stringify(e.SSID))r.push(n.charCodeAt(0));t=new Uint8Array([...t,...r,255&JSON.stringify(e.password).length]);let i=[];for(let n of JSON.stringify(e.password))i.push(n.charCodeAt(0));return t=new Uint8Array([...t,...i]),t.buffer},Zt=e=>{let t=new Uint8Array([228,255&JSON.stringify(e).length,0]),r=[];for(let i of e)r.push(i.charCodeAt(0));return t=new Uint8Array([...t,...r]),t.buffer};e=new WeakMap,t=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakSet,u=function(){return new Promise((e,r)=>{let i=Z(Math.floor(Date.now()/1e3),"timestamp"),n=new Uint8Array([72,70,83,48,...i]);const s=new Uint8Array([0,n.byteLength>>8&255,255&n.byteLength,...n]).buffer;wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:s,success:i=>{wx.notifyBLECharacteristicValueChange({characteristicId:"0000FFE3-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",state:!0,success:i=>{let n=0,s=setInterval(()=>{n++,60==n&&(clearInterval(s),wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:new Uint8Array([10,1]).buffer,success:e=>{r("绑定超时")},fail:e=>{r("绑定超时")}}))},1e3),a=t=>{const i=new Uint8Array(t.value);if(3==i.byteLength)r("设备端取消绑定");else{const t=i.slice(23);if(5==i[0]){let r=G(t);r&&(wx.offBLECharacteristicValueChange(a),clearInterval(s),e(r))}}};wx.onBLECharacteristicValueChange(a)}})},fail:e=>{r("writeUnixTs写入失败")}})})},c=function(){return new Promise((e,r)=>{C(this,o,u).call(this).then(r=>{const i=Y("HF519080"),n=new Uint8Array([72,70,83,48,...i]),s=new Uint8Array([2,n.byteLength>>8&255,255&n.byteLength,2,...n]).buffer;wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:s,success:t=>{e({msg:"绑定结果写入成功",result:1,deviceName:r})},fail:t=>{e({msg:"绑定结果写入失败",result:0})}})}).catch(e=>{"绑定超时"==e||"设备端取消绑定"==e?wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:new Uint8Array([3,1]).buffer,success:t=>{r({msg:e,result:0})}}):r({msg:e,result:0})})})},d=function(e){return new Promise((r,i)=>{const n=Xt.HmacSHA1("UnbindRequest","HFS0").toString(Xt.enc.Hex),s=new Uint8Array(n.match(/.{2}/g).map(e=>parseInt(e,16)));wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:new Uint8Array([4,s.byteLength>>8&255,255&s.byteLength,...s]).buffer,success:n=>{wx.notifyBLECharacteristicValueChange({characteristicId:"0000FFE3-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",state:!0,success:n=>{let s=n=>{7==new Uint8Array(n.value)[0]&&wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:new Uint8Array([7]).buffer,success:t=>{wx.offBLECharacteristicValueChange(s),r({msg:"蓝牙设备解绑成功",result:1,deviceName:e})},fail:r=>{wx.offBLECharacteristicValueChange(s),i({errMsg:`蓝牙设备 ${R(this,t).deviceId} 解绑失败`,err:r,result:0,deviceName:e})}})};wx.onBLECharacteristicValueChange(s)},fail:t=>{i({errMsg:"蓝牙设备解绑失败",err:t,result:0,deviceName:e})}})},fail:t=>{i({errMsg:"蓝牙设备解绑失败",err:t,result:0,deviceName:e})}})})},f=function(e,r){R(this,n)&&wx.offBLEConnectionStateChange(R(this,n));let s=n=>{n.connected?(N(this,i,!0),"connect"==e&&r&&r(n)):(console.log(`蓝牙设备 ${n.deviceId} 已断开连接`,{deviceId:R(this,t).deviceId,connected:!1}),wx.offBLEConnectionStateChange(s),N(this,i,!1),"disconnect"==e&&r&&r(n))};N(this,n,s),wx.onBLEConnectionStateChange(s)},m=function(){return new Promise((e,r)=>{R(this,t).deviceId?wx.closeBLEConnection({deviceId:R(this,t).deviceId,success:t=>{e(t)},fail:e=>{r(e)}}):r("请先连接蓝牙设备")})},p=function(e,r,i,n,s,o){return new Promise((u,c)=>{var d,f;const m=e<<6|r<<5|i;let p=null==(d=ae(s))?void 0:d.type;const h=ie("ordinary"==p?null==(f=ae(s))?void 0:f.data:p)<<5|n,v=((e,t)=>{let r=["int","bool","enum","timestamp"];const i=ae(e);let n=[];if("ordinary"==(null==i?void 0:i.type))return Z(t[e],null==i?void 0:i.data);if("array"==(null==i?void 0:i.type)){for(let r of t[e])n.push(...Z(r,null==i?void 0:i.data));return new Uint8Array([n.length>>8&255,255&n.length,...n])}for(let s of null==i?void 0:i.data)r.includes(s.type)?n.push(...Z(t[s.id],s.type)):n.push(...Y(t[s.id]));return new Uint8Array([n.length>>8&255,255&n.length,...n])})(s,o),l=new Uint8Array([h,...v]),y=new Uint8Array([m,l.byteLength>>8&255,255&l.byteLength,...l]).buffer;wx.writeBLECharacteristicValue({characteristicId:"0000FFE2-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:y,success:e=>{N(this,a,e=>{1==new Uint8Array(e.value)[0]&&u(e.value),wx.offBLECharacteristicValueChange(R(this,a))}),wx.onBLECharacteristicValueChange(R(this,a))},fail:e=>{c(e)}})})},h=function(e){return new Promise((t,r)=>{null!=oe(Object.keys(e.deviceData)[0])?C(this,o,p).call(this,0,0,0,oe(Object.keys(e.deviceData)[0]),Object.keys(e.deviceData)[0],e.deviceData).then(e=>{switch(new Uint8Array(e)[3]){case 0:t({msg:"属性已下发",result:1});break;case 1:r({errMsg:"属性下发失败",result:0});break;case 2:r({errMsg:"数据解析错误",result:0})}}):r({errMsg:"未找到该属性",result:0})})},v=function(e,r,i,n,s){return new Promise((o,u)=>{var c;const d=e<<6|r<<5|i,f=ie(null==(c=ne(n))?void 0:c.type),m=f<<5|i,p=((e,t)=>{let r=["int","bool","enum","timestamp"];const i=ne(e);if("ordinary"==(null==i?void 0:i.type))return Z(t,null==i?void 0:i.data);{const e=[],n=new Map;i.data.forEach((e,t)=>{n.set(e.id,t)});for(let[s,a]of Object.entries(t)){const t=n.get(s),o=i.data[t],u=ie(o.type)<<5|t;if(r.includes(o.type)){const t=Z(a,o.type);e.push(u,...t)}else{const t=Y(a),r=Z(t.length,"enum");e.push(u,...r,...t)}}return new Uint8Array([...e])}})(n,s);const h=new Uint8Array(2!=f&&6!=f&&7!=f?[m,p.byteLength>>8&255,255&p.byteLength,...p]:[...p]),v=new Uint8Array([d,h.byteLength>>8&255,255&h.byteLength,...h]).buffer;wx.writeBLECharacteristicValue({characteristicId:"0000FFE2-65D0-4E20-B56A-E493541BA4E2",deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:v,success:e=>{let t=[];N(this,a,e=>{const r=new Uint8Array(e.value),i=r[0];4==i?(o(e.value),wx.offBLECharacteristicValueChange(R(this,a))):0==i&&(0==r[1]||64==r[1]?(0==r.slice(8).length&&o({data:[],type:"暂无数据"}),t.push(...r.slice(8))):t.push(...r.slice(3)),135==r[r.byteLength-3]?(o({data:new Uint8Array(t).buffer,type:"用户"}),wx.offBLECharacteristicValueChange(R(this,a))):131==r[r.byteLength-3]?(o({data:new Uint8Array(t).buffer,type:"日志"}),wx.offBLECharacteristicValueChange(R(this,a))):3==r[r.byteLength-1]&&0==r[r.byteLength-2]&&1==r[r.byteLength-3]&&o({data:[],type:"暂无数据"}))}),wx.onBLECharacteristicValueChange(R(this,a))},fail:e=>{u(e)}})})},l=function(e){return new Promise((t,r)=>{null!=se(e.actionData.actionId)?C(this,o,v).call(this,2,0,se(e.actionData.actionId),e.actionData.actionId,e.actionData.params).then(i=>{if("get_property_value"==e.actionData.actionId||"get_open_history"==e.actionData.actionId){let e=i;if("暂无数据"==e.type&&t({msg:"动作已下发",result:[]}),"日志"==e.type){const r=(e=>{let t=[],r={};for(let i=0;i<e.length;)switch(e[i]){case 32:r.pwdId=e[i+4],i+=5;break;case 65:let n=e[i+2],s=e.slice(i+3,i+3+n);r.name=G(new Uint8Array(s)),i+=3+s.length;break;case 162:let a=e.slice(i+1,i+5);r.open_lock_time=ee(new Uint8Array(a)),i+=1+a.length;break;case 131:switch(e[i+2]){case 0:r.pwdtype="fingerprint";break;case 1:r.pwdtype="password";break;case 2:r.pwdtype="rfCard";break;case 3:r.pwdtype="ble"}t.push(r),r={},i+=3;break;default:i++}return t})([...new Uint8Array(e.data)]),i=r.every(e=>0==e.pwdId),n=r.some(e=>!e.hasOwnProperty("name"));i&&n&&t({msg:"动作已下发",result:[]}),t({msg:"动作已下发",result:r})}else if("用户"==e.type){const r=(e=>{let t=[],r={};for(let i=0;i<e.length;)switch(e[i]){case 32:r.pwdId=e[i+4],i+=5;break;case 65:let n=e[i+2],s=e.slice(i+3,i+3+n);r.name=G(new Uint8Array(s)),i+=3+s.length;break;case 34:1==e[i+4]&&(r.pwdtype="fingerprint"),i+=5;break;case 131:1==e[i+2]&&(r.pwdtype="password"),i+=3;break;case 132:1==e[i+2]&&(r.pwdtype="rfCard"),i+=3;break;case 165:let a=e.slice(i+1,i+5);r.start_effective_time=ee(new Uint8Array(a)),i+=1+a.length;break;case 166:let o=e.slice(i+1,i+5);r.end_effective_time=ee(new Uint8Array(o)),t.push(r),r={},i+=1+o.length;break;default:i++}return t})([...new Uint8Array(e.data)]);t({msg:"动作已下发",result:r})}}else{const n=new Uint8Array(i);let s=(e=>{let t=[];const r=L.actions.find(t=>t.id===e);if(r&&r.output.length>0){for(let e of r.output)t.push({id:e.id,type:e.define.type});return{output:t}}if(r)return null})(e.actionData.actionId);switch(n[3]){case 0:if(null==s)t({msg:"动作已下发",result:1});else{let e={};for(let t of s.output)e={msg:"动作已下发",result:n[n.byteLength-1]};t(e)}break;case 1:r({errMsg:"动作下发失败",result:0});break;case 2:r({errMsg:"数据解析错误",result:0})}}}).catch(e=>{r(e)}):r({errMsg:"未找到该动作",result:0})})},y=function(){return new Promise((e,r)=>{C(this,o,l).call(this,{actionData:{actionId:"update_time",params:{address:((new Date).getTimezoneOffset()/-1).toString(),time:(new Date).getTime()/1e3}}}).then(r=>{console.log(`${R(this,t).deviceId} 同步时间成功`),e(r)})})},w=function(){return new Promise((e,t)=>{C(this,o,l).call(this,{actionData:{actionId:"currentId",params:""}}).then(t=>{e(t)}).catch(e=>{t(e)})})},g=function(){return new Promise((e,t)=>{R(this,i)||t({msg:"未连接蓝牙设备",result:0}),C(this,o,l).call(this,{actionData:{actionId:"unlock_remote",params:""}}).then(t=>{e(t)}).catch(e=>{t(e)})})},_=function(){return new Promise((e,t)=>{R(this,i)||t({msg:"未连接蓝牙设备",result:0}),C(this,o,l).call(this,{actionData:{actionId:"close_lock",params:""}}).then(t=>{e(t)}).catch(e=>{t(e)})})},x=function(e){return new Promise((t,r)=>{R(this,i)?C(this,o,w).call(this).then(i=>{C(this,o,l).call(this,{actionData:{actionId:"add_User",params:{userid:i.result,username:e.name,usertype:1,pwdtype:1,password:e.password,start_effective_time:e.start_effective_time,end_effective_time:e.end_effective_time}}}).then(e=>{t({msg:"addPwd动作已下发",result:e.result})}).catch(e=>{r(e)})}).catch(e=>{r(e)}):r({msg:"未连接蓝牙设备",result:0})})},E=function(e){return new Promise((t,r)=>{R(this,i)||r({msg:"未连接蓝牙设备",result:0}),C(this,o,h).call(this,{deviceData:{delete_user:e.pwdIdGroup}}).then(e=>{t({msg:"deletePwd动作已下发",result:e.result})}).catch(e=>{r(e)})})},I=function(e,t){R(this,i)?C(this,o,w).call(this).then(r=>{C(this,o,l).call(this,{actionData:{actionId:"add_User",params:{userid:r.result,username:e.name,usertype:1,pwdtype:0,password:123456,start_effective_time:e.start_effective_time,end_effective_time:e.end_effective_time}}}).then(e=>{N(this,a,e=>{const r=new Uint8Array(e.value);if(0==r[0]){switch(r[r.byteLength-1]){case 0:t({result:0,msg:"指纹采集失败"});break;case 50:t({result:1,msg:"指纹成功采集一次"});break;case 51:t({result:2,msg:"指纹成功采集两次"});break;case 52:t({result:3,msg:"指纹成功采集三次"});break;case 53:t({result:4,msg:"指纹成功采集四次"});break;case 65:t({result:5,msg:"指纹成功采集成功"});break;case 66:t({result:"B",msg:"请移开手指"});break;case 67:t({result:"C",msg:"指纹模板错误"});break;case 68:t({result:"D",msg:"指纹已满"});break;case 69:t({result:"E",msg:"添加指纹功能退出"})}0!=r[r.byteLength-1]&&65!=r[r.byteLength-1]||wx.offBLECharacteristicValueChange(R(this,a))}}),wx.onBLECharacteristicValueChange(R(this,a)),console.log("addFP动作已下发")}).catch(e=>{t(e)})}).catch(e=>{t(e)}):t({msg:"未连接蓝牙设备",result:0})},A=function(e,t){R(this,i)?C(this,o,w).call(this).then(r=>{C(this,o,l).call(this,{actionData:{actionId:"add_User",params:{userid:r.result,username:e.name,usertype:1,pwdtype:2,password:123456,start_effective_time:e.start_effective_time,end_effective_time:e.end_effective_time}}}).then(e=>{N(this,a,e=>{const r=new Uint8Array(e.value);if(0==r[0]){switch(r[r.byteLength-1]){case 49:t({result:1,msg:"已刷卡"});break;case 50:t({result:0,msg:"未刷卡"});break;case 51:t({result:2,msg:"卡重复"})}49!=r[r.byteLength-1]&&50!=r[r.byteLength-1]||wx.offBLECharacteristicValueChange(R(this,a))}}),wx.onBLECharacteristicValueChange(R(this,a)),console.log("addRfCard动作已下发")})}).catch(e=>{t(e)}):t({msg:"未连接蓝牙设备",result:0})},b=function(){return new Promise((e,t)=>{R(this,i)||t({msg:"未连接蓝牙设备",result:0}),C(this,o,l).call(this,{actionData:{actionId:"restore_factory",params:""}}).then(t=>{e({msg:"lockReset动作已下发",result:t.result})}).catch(e=>{t(e)})})},k=function(){return new Promise((e,t)=>{C(this,o,l).call(this,{actionData:{actionId:"get_property_value",params:{property_id:"get_all_user"}}}).then(t=>{e({msg:"getAllPwd动作已下发",result:t.result})}).catch(e=>{t(e)})})},F=function(e){return new Promise((t,r)=>{C(this,o,l).call(this,{actionData:{actionId:"get_open_history",params:{start_time:e.start_effective_time,end_time:e.end_effective_time}}}).then(e=>{t({msg:"getHistory动作已下发",result:e.result})}).catch(e=>{r(e)})})},B=function(e){return new Promise((r,i)=>new Promise((r,i)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:new Uint8Array([224]).buffer,success:()=>{r("获取设备信息成功")},fail:t=>{e.onError({code:j.WIFI_CONF_FAIL,errMsg:"获取设备信息失败"}),i({error:t,errMsg:"获取设备信息失败"})}})}))},S=function(e){return new Promise((r,i)=>new Promise((r,i)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:new Uint8Array([225,1]).buffer,success:()=>{r("下发设备切换WiFi模式成功")},fail:t=>{e.onError({code:j.WIFI_CONF_FAIL,errMsg:"下发设备切换WiFi模式失败"}),i({error:t,errMsg:"下发设备切换WiFi模式失败"})}})}))},U=function(e){return new Promise((r,i)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:Yt(e.targetWifiInfo),success:()=>{r("下发WiFi信息成功")},fail:t=>{e.onError({code:j.WIFI_CONF_FAIL,errMsg:"下发WiFi信息失败"}),i({error:t,errMsg:"下发WiFi信息失败"})}})})},T=function(e){return new Promise((r,i)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:new Uint8Array([227]).buffer,success:()=>{r("下发设备请求WIFI连接成功")},fail:t=>{e.onError({code:j.WIFI_CONF_FAIL,errMsg:"下发设备请求WIFI连接成功"}),i(t)}})})},D=function(e){return e.onProgress({code:W.BLE_SEND_TOKEN_START,msg:"开始发送token到设备,用于连接云端"}),new Promise((r,i)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:Zt(JSON.stringify(e.wifiConfToken)),success:()=>{e.onProgress({code:W.BUSINESS_QUERY_TOKEN_STATE_SUCCESS,msg:"发送token到设备成功,设备开始连接云端"}),r("发送token到设备成功,设备开始连接云端")},fail:e=>{i(e)}})})},q=function(e){return new Promise((e,r)=>new Promise((e,r)=>{wx.writeBLECharacteristicValue({deviceId:R(this,t).deviceId,serviceId:"",characteristicId:"FFE1",value:new Uint8Array([229]).buffer,success:()=>{e("获取设备配网日志成功")},fail:e=>{r(e)}})}))},P=function(e){return new Promise((r,i)=>{wx.notifyBLECharacteristicValueChange({deviceId:R(this,t).deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",characteristicId:"0000FFE3-65D0-4E20-B56A-E493541BA4E2",state:!0,success:()=>{wx.onBLECharacteristicValueChange(t=>{const n=new Uint8Array(t.value);let s=0;switch(n[0]){case 8:
// let deviceName = arrayBufferTransFormString(data.buffer);
// console.log("设备信息长度", deviceName);
case 224:s=n[3],1==s&&(e.onError({code:j.BUSINESS_DEVICE_ERROR,errMsg:"设备切换WiFi模式失败"}),i({code:j.BUSINESS_DEVICE_ERROR,errMsg:"设备切换WiFi模式失败"}));break;case 255:s=n[3],1==s&&(e.onError({code:j.BUSINESS_DEVICE_ERROR,errMsg:"设备WIFI信息设置失败"}),i({code:j.BUSINESS_DEVICE_ERROR,errMsg:"设备WIFI信息设置失败"}));break;case 226:s=n[4],0==s?e.onProgress({code:W.PROTOCOL_SUCCESS,msg:"设备联网成功,设备可以访问互联网"}):(e.onError({code:j.BUSINESS_DEVICE_CONNECT_WIFI_FAIL,errMsg:"设备联网失败,WiFi连接失败"}),i({code:j.BUSINESS_DEVICE_CONNECT_WIFI_FAIL,errMsg:"设备联网失败,WiFi连接失败"}));break;case 227:s=n[3],0==s?(e.onProgress({code:W.BUSINESS_QUERY_TOKEN_STATE_SUCCESS,msg:"设备Token下发成功"}),e.onProgress({code:W.WIFI_CONF_SUCCESS,msg:"配网成功"}),r("配网成功")):(e.onError({code:j.BUSINESS_DEVICE_CONNECT_MQTT_FAIL,errMsg:"设备连接MQTT服务失败"}),i({code:j.BUSINESS_DEVICE_CONNECT_MQTT_FAIL,errMsg:"设备连接MQTT服务失败"}))}})}})})},module.exports=class{constructor(){z(this,o),z(this,e,!1),z(this,t),z(this,r,null),z(this,i,!1),z(this,n,null),z(this,s),z(this,a),N(this,s,()=>{}),N(this,a,()=>{}),N(this,t,{
// bindDevice: this.#startWifiConfBleCombo.bind(this),
bindDevice:C(this,o,c).bind(this),disconnectDevice:C(this,o,m).bind(this),
// controlDevice: this.#controlProperty.bind(this),
// controlAction: this.#controlAction.bind(this),
// authenticateConnection: this.#authenticateConnection.bind(this),
unbindDevice:C(this,o,d).bind(this),openLock:C(this,o,g).bind(this),closeLock:C(this,o,_).bind(this),addPwd:C(this,o,x).bind(this),deletePwd:C(this,o,E).bind(this),addFP:C(this,o,I).bind(this),
// deleteFP: this.#deleteFingerprint.bind(this),
addRfCard:C(this,o,A).bind(this),
// deleteRfCard: this.#deleteNfc.bind(this),
lockReset:C(this,o,b).bind(this),getAllPwd:C(this,o,k).bind(this),getHistory:C(this,o,F).bind(this),on:C(this,o,f).bind(this)})}initBluetooth(){return new Promise((t,r)=>{R(this,e)?t("蓝牙模块已初始化"):new Promise((e,t)=>{wx.openBluetoothAdapter({success(t){e(t)},fail(e){t(e)}})}).then(r=>{N(this,e,!0),wx.onBluetoothAdapterStateChange(t=>{t.available||N(this,e,!1)}),t(r)}).catch(e=>{r(e)})})}startSearch(e,t=20){this.initBluetooth().then(()=>{wx.closeBluetoothAdapter().then(()=>{wx.openBluetoothAdapter().then(()=>{wx.startBluetoothDevicesDiscovery({services:["FFE0"],allowDuplicatesKey:!0,success:()=>{let i={};N(this,s,e=>{const t=new Uint8Array(e.devices[0].advertisData)[2];32!=t&&33!=t||(i[e.devices[0].deviceId]=Object.assign(e.devices[0],{productId:te(e.devices[0].advertisData)}))}),wx.onBluetoothDeviceFound(R(this,s));let n=0;N(this,r,setInterval(()=>{Object.values(i).length>0&&e.onSearch(Object.values(i)),n++,n==t&&(clearInterval(R(this,r)),e.onError({errMsg:"已超出最大搜索时间"}),this.stopSearch())},1e3))},fail:t=>{e.onError(t)}})})})}).catch(t=>{e.onError(t)})}searchDevice({productId:e="EZRBB55EWH",deviceName:t}){return new Promise((r,i)=>{this.initBluetooth().then(()=>{wx.closeBluetoothAdapter().then(()=>{wx.openBluetoothAdapter().then(()=>{console.log(`开始搜索${t}设备`);let n=null,a=0;wx.startBluetoothDevicesDiscovery({services:["FFE0"],success:()=>{n=setInterval(()=>{a++,20==a&&(a=0,clearInterval(n),i({errMsg:"搜索设备超时,未搜索到设备"}))},1e3),N(this,s,i=>{if(34==new Uint8Array(i.devices[0].advertisData)[2]&&re(`${e}${t}`,i.devices[0].advertisData)){a=0,clearInterval(n),console.log(`搜到${t}设备 --\x3e ${i.devices[0].deviceId}`);let o=Object.assign(i.devices[0],{productId:e,deviceName:t});r(o),wx.offBluetoothDeviceFound(R(this,s)),N(this,s,()=>{}),wx.stopBluetoothDevicesDiscovery()}}),wx.onBluetoothDeviceFound(R(this,s))},fail:e=>{i(e)}})})})}).catch(e=>{i(e)})})}stopSearch(){clearInterval(R(this,r)),wx.offBluetoothDeviceFound(R(this,s)),N(this,s,()=>{}),wx.stopBluetoothDevicesDiscovery().then(e=>{console.warn("已停止搜索设备")}).catch(e=>{console.error("停止搜索设备失败",e)})}connectDevice(e){return new Promise((r,n)=>{this.initBluetooth().then(s=>{console.log(`连接设备 ${e.deviceId} 开始`),wx.createBLEConnection({deviceId:e.deviceId,success:()=>{wx.writeBLECharacteristicValue({characteristicId:"0000FFE1-65D0-4E20-B56A-E493541BA4E2",deviceId:e.deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",value:new Uint8Array([5]).buffer,success:n=>{console.log(`连接设备 ${e.deviceId} 成功`),N(this,t,Object.assign(R(this,t),e)),C(this,o,y).call(this),N(this,i,!0),C(this,o,f).call(this),r(R(this,t))}}),wx.notifyBLECharacteristicValueChange({characteristicId:"0000FFE3-65D0-4E20-B56A-E493541BA4E2",deviceId:e.deviceId,serviceId:"0000FFE0-65D0-4E20-B56A-E493541BA4E2",state:!0,success:e=>{},fail:e=>{}})},fail:t=>{console.error(`连接设备 ${e.deviceId} 发生异常`,t),n(t)}})}).catch(e=>{n(e)})})}};